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

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://help.wpmet.com/

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.3.0-beta1
Comparing to
See all releases

Code changes from version 1.2.3 to 1.3.0-beta1

Files changed (57) hide show
  1. controls/assets/js/form-picker-inspactor.js +5 -31
  2. controls/form-picker-utils.php +1 -1
  3. core/admin/views/settings.php +26 -20
  4. core/entries/action.php +45 -31
  5. core/entries/api.php +8 -2
  6. core/entries/form-data.php +1 -1
  7. core/entries/hooks.php +29 -9
  8. core/entries/meta-data.php +1 -1
  9. core/forms/builder.php +3 -13
  10. metform.php +1 -1
  11. plugin.php +19 -29
  12. public/assets/css/admin-style.css +1 -1
  13. public/assets/css/asRange.min.css +0 -1
  14. public/assets/css/flatpickr.min.css +13 -906
  15. public/assets/css/style.css +500 -185
  16. public/assets/js/app.js +96 -0
  17. public/assets/js/count-views.js +0 -22
  18. public/assets/js/flatpickr.js +0 -2
  19. public/assets/js/htm.js +1 -0
  20. public/assets/js/inputs.js +0 -1
  21. public/assets/js/jquery-asRange.min.js +0 -1
  22. public/assets/js/jquery.validate.min.js +0 -4
  23. public/assets/js/map-location.js +0 -27
  24. public/assets/js/submission.js +0 -1
  25. public/assets/js/summary.js +0 -63
  26. readme.txt +7 -4
  27. traits/button-controls.php +1 -2
  28. traits/common-controls.php +86 -64
  29. utils/util.php +55 -24
  30. widgets/button/button.php +6 -5
  31. widgets/checkbox/checkbox.php +76 -40
  32. widgets/date/date.php +94 -29
  33. widgets/email/email.php +44 -28
  34. widgets/file-upload/file-upload.php +70 -30
  35. widgets/form.php +0 -1
  36. widgets/gdpr-consent/gdpr-consent.php +63 -27
  37. widgets/listing-fname/listing-fname.php +41 -28
  38. widgets/listing-lname/listing-lname.php +43 -30
  39. widgets/listing-optin/listing-optin.php +76 -30
  40. widgets/manifest.php +0 -2
  41. widgets/multi-select/multi-select.php +93 -43
  42. widgets/number/number.php +43 -28
  43. widgets/password/password.php +42 -28
  44. widgets/radio/radio.php +75 -40
  45. widgets/range/range.php +127 -65
  46. widgets/rating/rating.php +99 -90
  47. widgets/recaptcha/recaptcha.php +81 -27
  48. widgets/response/response.php +0 -98
  49. widgets/select/select.php +104 -39
  50. widgets/simple-captcha/simple-captcha.php +105 -38
  51. widgets/summary/summary.php +42 -32
  52. widgets/switch/switch.php +49 -19
  53. widgets/telephone/telephone.php +42 -27
  54. widgets/text/text.php +47 -29
  55. widgets/textarea/textarea.php +42 -30
  56. widgets/time/time.php +77 -20
  57. widgets/url/url.php +50 -21
controls/assets/js/form-picker-inspactor.js CHANGED
@@ -44,43 +44,17 @@ jQuery(window).on('elementor:init', function () {
44
 
45
  var formpicker_load = jQuery('body').attr('data-metform-template-load'),
46
  formpicker_key = jQuery('body').attr('data-metform-template-key');
47
-
48
- // console.log(self.isRendered);
49
 
50
  if(formpicker_load == 'true' && self.isRendered == true && formpicker_key !== undefined){
51
- jQuery('body').attr('data-metform-template-load', 'false');
52
-
53
- // console.log([formpicker_key, formpicker_load, self.isRendered, self.isDestroyed]);
54
  var time = new Date().getTime(),
55
- new_id, new_val,
56
- formpicker_key_spilt = formpicker_key.split('***');
57
 
58
  formpicker_key_spilt = formpicker_key_spilt[0];
59
- new_id = formpicker_key_spilt + '***' + time;
60
- // console.log(new_val);
61
-
62
- // console.log(window.metform_api.resturl);
63
 
64
- jQuery.ajax({
65
- url: window.metform_api.resturl + 'metform/v1/forms/form_content/' + formpicker_key_spilt,
66
- type: 'get',
67
- async: false,
68
- cache: false,
69
- // headers: {
70
- // 'X-WP-Nonce': nonce
71
- // },
72
- dataType: 'json',
73
- success: function (data) {
74
- new_val = {
75
- id: new_id,
76
- data: data
77
- };
78
- console.log(new_val);
79
- self.setValue(JSON.stringify(new_val));
80
- }
81
- });
82
- console.log(window.metform_api.resturl);
83
-
84
  }
85
  }, 200);
86
  }
44
 
45
  var formpicker_load = jQuery('body').attr('data-metform-template-load'),
46
  formpicker_key = jQuery('body').attr('data-metform-template-key');
 
 
47
 
48
  if(formpicker_load == 'true' && self.isRendered == true && formpicker_key !== undefined){
 
 
 
49
  var time = new Date().getTime(),
50
+ new_val,
51
+ formpicker_key_spilt = formpicker_key.split('***');
52
 
53
  formpicker_key_spilt = formpicker_key_spilt[0];
54
+ new_val = formpicker_key_spilt + '***' + time;
 
 
 
55
 
56
+ jQuery('body').attr('data-metform-template-load', 'false');
57
+ self.setValue(new_val);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
  }, 200);
60
  }
controls/form-picker-utils.php CHANGED
@@ -50,4 +50,4 @@ class Form_Picker_Utils{
50
 
51
  return $output;
52
  }
53
- }
50
 
51
  return $output;
52
  }
53
+ }
core/admin/views/settings.php CHANGED
@@ -275,7 +275,7 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
275
  </div>
276
  </div> <!-- ./End Section heading -->
277
  <div class="mf-admin-right-content--button">
278
- <a target="_blank" href="https://wordpress.org/support/plugin/elementskit-lite/reviews/?rate=5#new-post" class="mf-admin-setting-btn fatty"><span class="mf mf-star-1"></span><?php esc_html_e('Rate it now', 'elementskit'); ?></a>
279
  </div>
280
  </div>
281
 
@@ -573,24 +573,23 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
573
  </p>
574
  </div>
575
  </div>
576
- <?php if (false) : ?>
577
- <div class="attr-col-lg-6">
578
- <div class="mf-setting-input-desc">
579
- <div class="mf-setting-input-desc-data">
580
- <h2 class="mf-setting-input-desc--title">
581
- <?php esc_html_e('How To', 'metfrom') ?></h2>
582
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
583
- </p>
584
- <ol>
585
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
586
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
587
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
588
- </ol>
589
- </div>
590
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
591
  </div>
 
592
  </div>
593
- <?php endif; ?>
594
  </div>
595
  </div>
596
 
@@ -616,6 +615,13 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
616
  </p>
617
  </div>
618
 
 
 
 
 
 
 
 
619
  <?php if (!empty($code)) : ?>
620
  <div class="mf-setting-input-group">
621
  <p class="description">
@@ -660,7 +666,7 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
660
  <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
661
  <input type="text" name="mf_ckit_api_key" value="<?php echo esc_attr((isset($settings['mf_ckit_api_key'])) ? $settings['mf_ckit_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
662
  <p class="description">
663
- <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://admin.ckit.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
664
  </p>
665
  </div>
666
 
@@ -669,7 +675,7 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
669
  <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Secret Key:', 'metform'); ?></label>
670
  <input type="text" name="mf_ckit_sec_key" value="<?php echo esc_attr((isset($settings['mf_ckit_sec_key'])) ? $settings['mf_ckit_sec_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
671
  <p class="description">
672
- <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://admin.ckit.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
673
  </p>
674
  </div>
675
 
@@ -839,4 +845,4 @@ $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
839
  </div>
840
  </div>
841
  </div>
842
- </div>
275
  </div>
276
  </div> <!-- ./End Section heading -->
277
  <div class="mf-admin-right-content--button">
278
+ <a target="_blank" href="https://wordpress.org/support/plugin/metform/reviews/?rate=5#new-post" class="mf-admin-setting-btn fatty"><span class="mf mf-star-1"></span><?php esc_html_e('Rate it now', 'elementskit'); ?></a>
279
  </div>
280
  </div>
281
 
573
  </p>
574
  </div>
575
  </div>
576
+
577
+ <div class="attr-col-lg-6">
578
+ <div class="mf-setting-input-desc">
579
+ <div class="mf-setting-input-desc-data">
580
+ <h2 class="mf-setting-input-desc--title">
581
+ <?php esc_html_e('How To', 'metfrom') ?></h2>
582
+ <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
583
+ </p>
584
+ <ol>
585
+ <li><?php esc_html_e('Item 1', 'metform') ?></li>
586
+ <li><?php esc_html_e('Item 2', 'metform') ?></li>
587
+ <li><?php esc_html_e('Item 3', 'metform') ?></li>
588
+ </ol>
 
 
589
  </div>
590
+ <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
591
  </div>
592
+ </div>
593
  </div>
594
  </div>
595
 
615
  </p>
616
  </div>
617
 
618
+ <div class="mf-setting-input-group">
619
+ <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php echo __('Redirect url:', 'metform'); ?></label>
620
+ <p class="description">
621
+ <?php echo get_admin_url() . 'admin.php?page=metform-menu-settings'; ?>
622
+ </p>
623
+ </div>
624
+
625
  <?php if (!empty($code)) : ?>
626
  <div class="mf-setting-input-group">
627
  <p class="description">
666
  <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
667
  <input type="text" name="mf_ckit_api_key" value="<?php echo esc_attr((isset($settings['mf_ckit_api_key'])) ? $settings['mf_ckit_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
668
  <p class="description">
669
+ <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://app.convertkit.com/users/login'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
670
  </p>
671
  </div>
672
 
675
  <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Secret Key:', 'metform'); ?></label>
676
  <input type="text" name="mf_ckit_sec_key" value="<?php echo esc_attr((isset($settings['mf_ckit_sec_key'])) ? $settings['mf_ckit_sec_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
677
  <p class="description">
678
+ <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://app.convertkit.com/users/login'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
679
  </p>
680
  </div>
681
 
845
  </div>
846
  </div>
847
  </div>
848
+ </div>
core/entries/action.php CHANGED
@@ -53,7 +53,7 @@ class Action
53
  $this->post_type = Base::instance()->cpt->get_name();
54
  }
55
 
56
- public function submit($form_id, $form_data, $file_data)
57
  {
58
 
59
  $this->form_id = $form_id;
@@ -177,9 +177,11 @@ class Action
177
  }
178
 
179
  // signature input upload as image from base64
180
- if (class_exists('\MetForm_Pro\Base\Package')) {
181
 
182
  $signature_input = $this->get_input_name_by_widget_type('mf-signature');
 
 
183
 
184
  if ($signature_input != null) {
185
  $inputs = (is_array($signature_input) ? $signature_input : []);
@@ -196,7 +198,6 @@ class Action
196
 
197
  if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot')) {
198
 
199
-
200
  $hubspot = new \MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot();
201
 
202
  if (isset($this->form_settings['mf_hubspot']) && $this->form_settings['mf_hubspot'] == '1') {
@@ -243,7 +244,7 @@ class Action
243
  if (isset($this->form_settings['mf_registration']) && $this->form_settings['mf_registration'] == '1') {
244
 
245
  $register = new \MetForm_Pro\Core\Integrations\Auth\Register\Register();
246
- $register->action($form_id,$form_data);
247
 
248
  }
249
 
@@ -260,12 +261,13 @@ class Action
260
  if (isset($this->form_settings['mf_login']) && $this->form_settings['mf_login'] == '1') {
261
 
262
  $login = new \MetForm_Pro\Core\Integrations\Auth\Login\Login();
263
- $login->action($form_id,$form_data);
264
 
265
  }
266
 
267
  }
268
 
 
269
  // mailchimp email store action
270
  if (class_exists('\MetForm\Core\Integrations\Mail_Chimp')) {
271
  if (isset($this->form_settings['mf_mail_chimp']) && $this->form_settings['mf_mail_chimp'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
@@ -357,32 +359,39 @@ class Action
357
  }
358
  }
359
 
360
- // #Adding convertKit..........
361
- // if (class_exists('\MetForm_Pro\Core\Integrations\Convert_Kit')) {
362
- // if (isset($this->form_settings['mf_convert_kit']) && $this->form_settings['mf_convert_kit'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
 
 
 
 
 
363
 
364
- // $cKit = new \MetForm_Pro\Core\Integrations\Convert_Kit(false);
365
 
366
- // $response = $cKit->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
 
 
367
 
368
- // $this->response->status = isset($response['status']) ? $response['status'] : 0;
369
- // }
370
- // }
 
 
 
371
 
372
- #Adding Aweber..........
373
- // if(class_exists('\MetForm_Pro\Core\Integrations\Aweber')) {
374
- // if (isset($this->form_settings['mf_mail_aweber']) && $this->form_settings['mf_mail_aweber'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
375
 
376
- // $aweber = new \MetForm_Pro\Core\Integrations\Aweber(false);
377
 
378
- // $response = $aweber->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
 
 
379
 
380
- // $this->response->status = isset($response['status']) ? $response['status'] : 0;
381
- // }
382
- // }
383
 
384
- if(defined('MAILPOET_VERSION') && class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) {
385
- if (isset($this->form_settings['mf_mail_poet']) && $this->form_settings['mf_mail_poet'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
386
 
387
  $mPoet = new \MetForm_Pro\Core\Integrations\Mail_Poet(false);
388
 
@@ -415,6 +424,8 @@ class Action
415
  ];
416
 
417
  $this->entry_id = wp_insert_post($defaults);
 
 
418
 
419
  $all_data = array_merge($all_data, ['mf_id' => $this->entry_id, 'mf_form_name' => $this->title]);
420
  }
@@ -748,6 +759,15 @@ class Action
748
  }
749
  }
750
 
 
 
 
 
 
 
 
 
 
751
  public function covert_base64_to_png($input, $b64string)
752
  {
753
  $status = [];
@@ -756,22 +776,16 @@ class Action
756
  $upload_path = $upload_dir['path'];
757
  $upload_url = $upload_dir['url'];
758
 
759
- $bin = str_replace('data:image/png;base64,', '', $b64string);
760
 
761
  $decoded = base64_decode($bin);
762
 
763
- $im = imageCreateFromString($decoded);
764
-
765
- if (!$im) {
766
- $status['error'] = esc_html__('Base64 value is not a valid image', 'metform');
767
- }
768
-
769
  $img_name = '/' . $input . time() . '.png';
770
 
771
  $img_file = $upload_path . $img_name;
772
  $img_url = $upload_url . $img_name;
773
 
774
- $img = imagepng($im, $img_file, 0);
775
 
776
  if ($img) {
777
  $status['status'] = true;
53
  $this->post_type = Base::instance()->cpt->get_name();
54
  }
55
 
56
+ public function submit($form_id, $form_data, $file_data, $page_id = '')
57
  {
58
 
59
  $this->form_id = $form_id;
177
  }
178
 
179
  // signature input upload as image from base64
180
+ if (class_exists('\MetForm_Pro\Base\Package') && isset($form_data['mf-signature'])) {
181
 
182
  $signature_input = $this->get_input_name_by_widget_type('mf-signature');
183
+ $this->response->data['signature_name'] = $signature_input;
184
+ $this->response->data['signature_input_data'] = $form_data['mf-signature'];
185
 
186
  if ($signature_input != null) {
187
  $inputs = (is_array($signature_input) ? $signature_input : []);
198
 
199
  if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot')) {
200
 
 
201
  $hubspot = new \MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot();
202
 
203
  if (isset($this->form_settings['mf_hubspot']) && $this->form_settings['mf_hubspot'] == '1') {
244
  if (isset($this->form_settings['mf_registration']) && $this->form_settings['mf_registration'] == '1') {
245
 
246
  $register = new \MetForm_Pro\Core\Integrations\Auth\Register\Register();
247
+ $register->action($form_id, $form_data);
248
 
249
  }
250
 
261
  if (isset($this->form_settings['mf_login']) && $this->form_settings['mf_login'] == '1') {
262
 
263
  $login = new \MetForm_Pro\Core\Integrations\Auth\Login\Login();
264
+ $login->action($form_id, $form_data);
265
 
266
  }
267
 
268
  }
269
 
270
+
271
  // mailchimp email store action
272
  if (class_exists('\MetForm\Core\Integrations\Mail_Chimp')) {
273
  if (isset($this->form_settings['mf_mail_chimp']) && $this->form_settings['mf_mail_chimp'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
359
  }
360
  }
361
 
362
+ /**
363
+ * Checking if convertKit is exists
364
+ * If exists calling the api
365
+ */
366
+ if (class_exists('\MetForm_Pro\Core\Integrations\Convert_Kit')) {
367
+ if (isset($this->form_settings['mf_convert_kit']) && $this->form_settings['mf_convert_kit'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
368
+
369
+ $cKit = new \MetForm_Pro\Core\Integrations\Convert_Kit(false);
370
 
371
+ $response = $cKit->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
372
 
373
+ $this->response->status = isset($response['status']) ? $response['status'] : 0;
374
+ }
375
+ }
376
 
377
+ /*
378
+ * Aweber integration
379
+ *
380
+ */
381
+ if(class_exists('\MetForm_Pro\Core\Integrations\Aweber')) {
382
+ if (isset($this->form_settings['mf_mail_aweber']) && $this->form_settings['mf_mail_aweber'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
383
 
384
+ $aweber = new \MetForm_Pro\Core\Integrations\Aweber(false);
 
 
385
 
386
+ $response = $aweber->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
387
 
388
+ $this->response->status = isset($response['status']) ? $response['status'] : 0;
389
+ }
390
+ }
391
 
 
 
 
392
 
393
+ if (defined('MAILPOET_VERSION') && class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) {
394
+ if (isset($this->form_settings['mf_mail_poet']) && $this->form_settings['mf_mail_poet'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
395
 
396
  $mPoet = new \MetForm_Pro\Core\Integrations\Mail_Poet(false);
397
 
424
  ];
425
 
426
  $this->entry_id = wp_insert_post($defaults);
427
+
428
+ update_post_meta($this->entry_id, 'mf_page_id', $page_id);
429
 
430
  $all_data = array_merge($all_data, ['mf_id' => $this->entry_id, 'mf_form_name' => $this->title]);
431
  }
759
  }
760
  }
761
 
762
+
763
+ /**
764
+ * Converting an png image string to png image file.
765
+ *
766
+ * @param $input
767
+ * @param $b64string
768
+ *
769
+ * @return array
770
+ */
771
  public function covert_base64_to_png($input, $b64string)
772
  {
773
  $status = [];
776
  $upload_path = $upload_dir['path'];
777
  $upload_url = $upload_dir['url'];
778
 
779
+ $bin = str_replace('data:image/png;base64,', '', $b64string, $ct);
780
 
781
  $decoded = base64_decode($bin);
782
 
 
 
 
 
 
 
783
  $img_name = '/' . $input . time() . '.png';
784
 
785
  $img_file = $upload_path . $img_name;
786
  $img_url = $upload_url . $img_name;
787
 
788
+ $img = file_put_contents($img_file, $decoded);
789
 
790
  if ($img) {
791
  $status['status'] = true;
core/entries/api.php CHANGED
@@ -18,6 +18,13 @@ class Api extends \MetForm\Base\Api
18
 
19
  public function post_insert()
20
  {
 
 
 
 
 
 
 
21
 
22
  $id = $this->request['id'];
23
 
@@ -25,7 +32,7 @@ class Api extends \MetForm\Base\Api
25
 
26
  $file_data = $this->request->get_file_params();
27
 
28
- return Action::instance()->submit($id, $form_data, $file_data);
29
  }
30
 
31
  public function get_export()
@@ -127,7 +134,6 @@ class Api extends \MetForm\Base\Api
127
  public function get_test()
128
  {
129
 
130
-
131
  }
132
 
133
  }
18
 
19
  public function post_insert()
20
  {
21
+ /**
22
+ * Get page id
23
+ */
24
+
25
+ $url = wp_get_referer();
26
+ $post_id = url_to_postid($url);
27
+ $post_id;
28
 
29
  $id = $this->request['id'];
30
 
32
 
33
  $file_data = $this->request->get_file_params();
34
 
35
+ return Action::instance()->submit($id, $form_data, $file_data,$post_id);
36
  }
37
 
38
  public function get_export()
134
  public function get_test()
135
  {
136
 
 
137
  }
138
 
139
  }
core/entries/form-data.php CHANGED
@@ -47,7 +47,7 @@ class Form_Data
47
  echo "</td>";
48
  }
49
 
50
- if ($value['widgetType'] == 'mf-like-dislike') {
51
  $like_dislike = (isset($form_data[$key]) ? $form_data[$key] : '');
52
  echo "<td>";
53
  echo (($like_dislike == '1') ? "<span class='dashicons dashicons-thumbs-up'></span>" : "");
47
  echo "</td>";
48
  }
49
 
50
+ if (isset($value['widgetType']) && ($value['widgetType'] == 'mf-like-dislike')) {
51
  $like_dislike = (isset($form_data[$key]) ? $form_data[$key] : '');
52
  echo "<td>";
53
  echo (($like_dislike == '1') ? "<span class='dashicons dashicons-thumbs-up'></span>" : "");
core/entries/hooks.php CHANGED
@@ -26,7 +26,7 @@ class Hooks
26
 
27
  $columns['form_name'] = esc_html__('Form Name', 'metform');
28
 
29
-
30
 
31
  $columns['date'] = esc_html($date_column);
32
 
@@ -44,16 +44,19 @@ class Hooks
44
  $post_title = (isset($form_name->post_title) ? $form_name->post_title : '');
45
 
46
  global $wp;
47
- $current_url = add_query_arg($wp->query_string . "&form_id=" . $form_id, '', home_url($wp->request));
48
 
49
- echo "<a data-metform-form-id=" . esc_attr($form_id) . " class='mf-entry-filter' href=" . esc_url($current_url) . ">" . esc_html($post_title) . "</a>";
50
  break;
51
 
52
- case 'referral':
53
- echo 'link';
54
 
 
 
 
 
55
  break;
56
-
57
  }
58
  }
59
 
@@ -67,16 +70,33 @@ class Hooks
67
  && 'metform-entry' == $current_page
68
  && 'edit.php' == $pagenow
69
  && $query->query_vars['post_type'] == 'metform-entry'
70
- && isset($_GET['form_id'])
71
- && $_GET['form_id'] != 'all'
72
  ) {
73
- $form_id = sanitize_key($_GET['form_id']);
74
  $query->query_vars['meta_key'] = 'metform_entries__form_id';
75
  $query->query_vars['meta_value'] = $form_id;
76
  $query->query_vars['meta_compare'] = '=';
77
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
79
 
 
 
 
80
  public function wp_mail_from($name)
81
  {
82
  return get_bloginfo('name');
26
 
27
  $columns['form_name'] = esc_html__('Form Name', 'metform');
28
 
29
+ $columns['referral'] = esc_html__('Referral','metform');
30
 
31
  $columns['date'] = esc_html($date_column);
32
 
44
  $post_title = (isset($form_name->post_title) ? $form_name->post_title : '');
45
 
46
  global $wp;
47
+ $current_url = add_query_arg($wp->query_string . "&mf_form_id=" . $form_id, '', home_url($wp->request));
48
 
49
+ echo "<a data-metform-form-id=" . esc_attr($form_id) . " class='mf-entry-filter mf-entry-flter-form_id' href=" . esc_url($current_url) . ">" . esc_html($post_title) . "</a>";
50
  break;
51
 
52
+ case 'referral':
53
+ $page_id = get_post_meta( $post_id, 'mf_page_id',true );
54
 
55
+ global $wp;
56
+ $current_url = add_query_arg($wp->query_string . "&mf_ref_id=" . $page_id, '', home_url($wp->request));
57
+
58
+ echo "<a class='mf-entry-filter mf-entry-flter-form_id' href='" . esc_url($current_url) . "'>".get_the_title($page_id)."</a>";
59
  break;
 
60
  }
61
  }
62
 
70
  && 'metform-entry' == $current_page
71
  && 'edit.php' == $pagenow
72
  && $query->query_vars['post_type'] == 'metform-entry'
73
+ && isset($_GET['mf_form_id'])
74
+ && $_GET['mf_form_id'] != 'all'
75
  ) {
76
+ $form_id = sanitize_key($_GET['mf_form_id']);
77
  $query->query_vars['meta_key'] = 'metform_entries__form_id';
78
  $query->query_vars['meta_value'] = $form_id;
79
  $query->query_vars['meta_compare'] = '=';
80
  }
81
+
82
+ if (
83
+ is_admin()
84
+ && 'metform-entry' == $current_page
85
+ && 'edit.php' == $pagenow
86
+ && $query->query_vars['post_type'] == 'metform-entry'
87
+ && isset($_GET['mf_ref_id'])
88
+ && $_GET['mf_ref_id'] != 'all'
89
+ ) {
90
+ $page_id = sanitize_key($_GET['mf_ref_id']);
91
+ $query->query_vars['meta_key'] = 'mf_page_id';
92
+ $query->query_vars['meta_value'] = $page_id;
93
+ $query->query_vars['meta_compare'] = '=';
94
+ }
95
  }
96
 
97
+
98
+
99
+
100
  public function wp_mail_from($name)
101
  {
102
  return get_bloginfo('name');
core/entries/meta-data.php CHANGED
@@ -171,7 +171,7 @@ class Meta_Data
171
 
172
  function show_file_upload_cmb($post)
173
  {
174
- echo "<div class='mf-file-show'><p class='mf-file'>";
175
  foreach ($this->file_meta_data as $key => $value) {
176
  if (empty($this->fields)) {
177
  return;
171
 
172
  function show_file_upload_cmb($post)
173
  {
174
+ echo "<div class='mf-file-show'><p><i class='mf mf-file-2'></i> ";
175
  foreach ($this->file_meta_data as $key => $value) {
176
  if (empty($this->fields)) {
177
  return;
core/forms/builder.php CHANGED
@@ -15,21 +15,11 @@ Class Builder{
15
  exit;
16
  }
17
 
18
- public function get_form_content( $form_id ){
19
- $form = get_post($form_id);
20
- $content = 0;
21
- if($form != null){
22
- $content = get_post_meta($form->ID, '_elementor_data');
23
- }
24
-
25
- return $content;
26
- exit;
27
- }
28
-
29
- public function create_form($title, $template_id = 0, $data = ''){
30
  $template_id = 'template-' . (($template_id == '') ? 0 : $template_id);
31
  $title = ($title == '' ? 'New Form # ' . time() : $title);
32
- $template_content = ($data != '') ? json_decode($data) : \MetForm\Templates\Base::instance()->get_template_contents($template_id);
 
33
  $user_id = get_current_user_id();
34
 
35
  $defaults = array(
15
  exit;
16
  }
17
 
18
+ public function create_form($title, $template_id = 0, $data = []){
 
 
 
 
 
 
 
 
 
 
 
19
  $template_id = 'template-' . (($template_id == '') ? 0 : $template_id);
20
  $title = ($title == '' ? 'New Form # ' . time() : $title);
21
+ $template_content = \MetForm\Templates\Base::instance()->get_template_contents($template_id);
22
+
23
  $user_id = get_current_user_id();
24
 
25
  $defaults = array(
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.2.3
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.3.0-beta1
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
plugin.php CHANGED
@@ -14,7 +14,7 @@ final class Plugin{
14
  }
15
 
16
  public function version(){
17
- return '1.2.3';
18
  }
19
 
20
  public function package_type(){
@@ -127,19 +127,18 @@ final class Plugin{
127
  }
128
 
129
  function js_css_public(){
 
130
 
131
- wp_enqueue_style('asRange', $this->public_url().'assets/css/asRange.min.css', false, $this->version());
132
- wp_enqueue_style('select2', $this->public_url().'assets/css/select2.min.css', false, $this->version());
133
- wp_enqueue_style('flatpickr', $this->public_url().'assets/css/flatpickr.min.css', false, $this->version());
134
  wp_enqueue_style('metform-ui', $this->public_url().'assets/css/metform-ui.css', false, $this->version());
135
  wp_enqueue_style('metform-style', $this->public_url().'assets/css/style.css', false, $this->version());
136
 
137
- wp_enqueue_script('validate', $this->public_url().'assets/js/jquery.validate.min.js', array(), $this->version(), true);
138
- wp_enqueue_script('asRange', $this->public_url().'assets/js/jquery-asRange.min.js', array(), $this->version(), true);
139
- wp_enqueue_script('select2', $this->public_url().'assets/js/select2.min.js', array(), $this->version(), true);
140
- wp_enqueue_script('flatpickr', $this->public_url().'assets/js/flatpickr.js', array(), $this->version(), true);
141
-
142
- wp_register_script('recaptcha-v2', 'https://www.google.com/recaptcha/api.js?onload=onloadMetFormCallback&render=explicit', array(), $this->version(), false);
 
143
 
144
  $this->global_settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
145
 
@@ -148,23 +147,19 @@ final class Plugin{
148
  }
149
 
150
  if(isset($this->global_settings['mf_google_map_api_key']) && ( $this->global_settings['mf_google_map_api_key'] != '' ) ){
151
- wp_register_script( 'maps-api', 'https://maps.googleapis.com/maps/api/js?key='.$this->global_settings['mf_google_map_api_key'].'&libraries=places&callback=metformMapAutoComplete', array(), '', true );
152
  }
153
 
154
- wp_enqueue_script('metform-submission', $this->public_url().'assets/js/submission.js', array(), null, true);
155
- wp_localize_script('metform-submission', 'mf_submission', array(
156
- 'default_required_message' => esc_html__('This field is required.', 'metform')
157
- ));
158
 
159
- if(! \Elementor\Plugin::$instance->preview->is_preview_mode()){
160
- $rest_url = get_rest_url( null, 'metform/v1/forms/');
161
- wp_enqueue_script('metform-count-views', $this->public_url().'assets/js/count-views.js', array(), $this->version(), true);
162
- wp_localize_script('metform-count-views', 'rest_api', array(
163
- 'end_point' => $rest_url
164
- ));
165
- }
166
 
167
- wp_register_script('metform-summary', $this->public_url().'assets/js/summary.js', array(), $this->version(), true);
 
 
 
 
168
 
169
  do_action('metform/onload/enqueue_scripts');
170
  }
@@ -185,11 +180,6 @@ final class Plugin{
185
  }
186
 
187
  public function elementor_js() {
188
- wp_enqueue_script('metform-inputs', $this->public_url().'assets/js/inputs.js', array('elementor-frontend'), $this->version(), true);
189
- wp_localize_script('metform-inputs', 'mf_plugin', array(
190
- 'mf_dir' => plugin_dir_url(__FILE__),
191
- ));
192
-
193
  }
194
 
195
  public function elementor_css(){
@@ -330,4 +320,4 @@ final class Plugin{
330
  return self::$instance;
331
  }
332
 
333
- }
14
  }
15
 
16
  public function version(){
17
+ return '1.3.0-beta1';
18
  }
19
 
20
  public function package_type(){
127
  }
128
 
129
  function js_css_public(){
130
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->preview->is_preview_mode();
131
 
 
 
 
132
  wp_enqueue_style('metform-ui', $this->public_url().'assets/css/metform-ui.css', false, $this->version());
133
  wp_enqueue_style('metform-style', $this->public_url().'assets/css/style.css', false, $this->version());
134
 
135
+ wp_register_style('asRange', $this->public_url().'assets/css/asRange.min.css', false, $this->version());
136
+ wp_register_script('asRange', $this->public_url().'assets/js/jquery-asRange.min.js', array(), $this->version(), true);
137
+
138
+ wp_register_style('mf-select2', $this->public_url().'assets/css/select2.min.css', false, $this->version());
139
+ wp_register_script('mf-select2', $this->public_url().'assets/js/select2.min.js', array(), $this->version(), true);
140
+
141
+ wp_register_script('recaptcha-v2', 'https://google.com/recaptcha/api.js', array(), null, true);
142
 
143
  $this->global_settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
144
 
147
  }
148
 
149
  if(isset($this->global_settings['mf_google_map_api_key']) && ( $this->global_settings['mf_google_map_api_key'] != '' ) ){
150
+ wp_register_script( 'maps-api', 'https://maps.googleapis.com/maps/api/js?key='.$this->global_settings['mf_google_map_api_key'].'&libraries=places&&callback=mfMapLocation', array(), '', true );
151
  }
152
 
153
+ wp_deregister_style('flatpickr'); // flatpickr stylesheet
154
+ wp_register_style('flatpickr', $this->public_url().'assets/css/flatpickr.min.css', false, $this->version()); // flatpickr stylesheet
 
 
155
 
156
+ wp_enqueue_script('htm', $this->public_url().'assets/js/htm.js', null, null, true);
 
 
 
 
 
 
157
 
158
+ wp_enqueue_script('metform-app', $this->public_url().'assets/js/app.js', array('htm', 'jquery'), null, true);
159
+ wp_localize_script('metform-app', 'mf', array(
160
+ 'postType' => get_post_type(),
161
+ 'restURI' => get_rest_url( null, 'metform/v1/forms/views/')
162
+ ));
163
 
164
  do_action('metform/onload/enqueue_scripts');
165
  }
180
  }
181
 
182
  public function elementor_js() {
 
 
 
 
 
183
  }
184
 
185
  public function elementor_css(){
320
  return self::$instance;
321
  }
322
 
323
+ }
public/assets/css/admin-style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";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;color:#FF433C;text-decoration:none;text-transform:uppercase;border-radius:100px;padding:10px 23px;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.4s;font-weight:bold;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:none}.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:none;-webkit-box-shadow:none;box-shadow:none;border:none}.mf-settings-tab li.nav-tab-active{background-color:#FFFFFF;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:none;float:none;display:-webkit-box;display:-ms-flexbox;display:flex;padding:16px 44px 18px 20px;color:#121116;border:none;-webkit-transition:all 100ms ease-out;-o-transition:all 100ms ease-out;transition:all 100ms ease-out;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:0px;-webkit-box-shadow:none;box-shadow:none;position:relative;padding:23px 40px;text-decoration:none;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.4s}.mf-settings-tab .mf-setting-nav-link:focus,.mf-settings-tab .mf-setting-nav-link:hover{outline:none;-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:0.8125rem;font-weight:bold;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:0.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 0.4s;-o-transition:opacity 0.4s;transition:opacity 0.4s;position:absolute;top:-9999px;display:none}.mf-settings-section.active{opacity:1;position:static;visibility:visible;display:block}.metform-admin-container{background-color:#FFFFFF;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:0px;color:#FF433C;font-size:24px;line-height:28px;font-weight:bold;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,0.1);color:#FF433C;text-align:center;border-radius:5px;vertical-align:middle;font-size:18px;font-family:"elementskit"!important;speak:none;font-style:normal;font-weight:normal;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:0px;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;color:#555555;-webkit-box-shadow:none;box-shadow:none;color:#121116;border:1px solid #DEE3EA;font-weight:normal}.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:none}.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,0.3);box-shadow:0 7px 15px rgba(242,41,91,0.3);font-size:14px;line-height:16px;text-transform:uppercase;color:#fff;font-weight:500;border:none;padding:12px 23px;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.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:-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:none;-webkit-box-shadow:0 7px 15px rgba(242,41,91,0.3);box-shadow:0 7px 15px rgba(242,41,91,0.3)}.metform-admin-container .button-primary:before{border-radius:inherit;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 0.7s ease-in-out;-o-transition:opacity 0.7s ease-in-out;transition:opacity 0.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:-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 0.4s;-o-transition:all 0.4s;transition:all 0.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:normal;font-size:13px;line-height:15px;color:#999999;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:#111111}.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:#111111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 14px;border:none;margin-right:0;border:none;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:#ffffff;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:none;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:none}.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-set-dash-rate-now{margin-top:100px}.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:bold;letter-spacing:-1px}.mf-setting-dash-section-heading--title strong{color:#FF433C}.mf-setting-dash-section-heading--subtitle{color:rgba(0,0,0,0.05);font-size:60px;line-height:69px;margin:0;font-weight:bold;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:#999999}.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 0.4s;-o-transition:all 0.4s;transition:all 0.4s}.mf-set-dash-free-pro-content .attr-nav-link:focus{outline:none;-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:none;-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,0.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:#444444}.mf-set-dash-free-pro-content .attr-tab-content ul li{color:#444444;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:#FFFFFF;-webkit-box-shadow:0 7px 15px rgba(0,0,0,0.07);box-shadow:0 7px 15px rgba(0,0,0,0.07);margin:10px 0;text-align:left}.mf-admin-single-accordion.active .mf-admin-single-accordion--heading:after{content:"";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:"";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{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:0px}#mf-set-dash-faq{margin-left:-30px;margin-right:-30px}.mf-admin-left-thumb{margin-bottom:-30px}.mf-admin-left-thumb{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:500ms;animation-duration:500ms;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loading .attr-modal-content:before{opacity:0.8;position:absolute;content:"";top:0;left:0;height:100%;width:100%;background-color:#fff;-webkit-transition:opaicty 0.5s ease;-o-transition:opaicty 0.5s ease;transition:opaicty 0.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:565px}.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:bold;color:#111111;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{margin-right:8px;width:23%;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a{text-decoration:none;color:#111111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 0px;padding-left:0;border:none;margin-right:0;border:none;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.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:none;-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:#ffffff;background-color:#1F55F8;border-radius:4px;text-align:center}.attr-modal-dialog-centered .attr-modal-header button.attr-close{opacity:0.8;font-size:inherit;outline:none;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:none;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:#111111;font-size:16px;margin-bottom:7px;display:block;font-weight:500}.attr-modal-dialog-centered .attr-tab-content .mf-input-group{margin-bottom:14px}.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:#555;font-size:14px;height:48px;padding:0 22px;border-color:#ededed;-webkit-box-shadow:0px 2px 5px rgba(153,153,153,0.2);box-shadow:0px 2px 5px rgba(153,153,153,0.2);margin-top:12px;max-width:100%}.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:bold;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all 0.4s;-o-transition:all 0.4s;transition:all 0.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 0.4s;-o-transition:all 0.4s;transition:all 0.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:bold;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:red}.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:0px}.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 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:bold;-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 0.4s;-o-transition:all 0.4s;transition:all 0.4s;outline:none}.attr-modal-dialog-centered .attr-modal-footer button:focus{border:none;outline:none}.attr-modal-dialog-centered .attr-modal-footer button.metform-form-save-btn-editor{background-color:#d8d8d8;color:#111111}.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,0.5)}.modal-backdrop{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:0.9em;border:none;border-radius:0;color:#6d7882}.mf-headerfooter-status{display:inline-block;margin-left:5px;padding:2px 5px 3px;color:#FFFFFF;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:0px 2px 5px rgba(153,153,153,0.2);box-shadow:0px 2px 5px rgba(153,153,153,0.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}.mf-entry-filter{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:-1px}.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:0}.metform-entry-data table.mf-entry-data{width:100%;background-color:#FFFFFF;border:1px solid #EAF2FA}.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:#FFFFFF}.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{height:100px;width:200px}
1
+ body.metform_page_metform-menu-settings{overflow-y:scroll}.mf-settings-dashboard{margin-top:40px}.mf-settings-dashboard .attr-row>div{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;color:#FF433C;text-decoration:none;text-transform:uppercase;border-radius:100px;padding:10px 23px;transition:all .4s;font-weight:bold;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{box-shadow:none;outline:none}.mf-settings-tab{margin-bottom:40px}.mf-settings-tab li{box-shadow:none;border:none;margin:0;background-color:#fff}.mf-settings-tab li:focus,.mf-settings-tab li:hover{outline:none;box-shadow:none;border:none}.mf-settings-tab li.nav-tab-active{background-color:#FFFFFF;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%;transform:translateY(-50%)}.mf-settings-tab .mf-setting-nav-link{outline:none;float:none;display:flex;padding:16px 44px 18px 20px;color:#121116;border:none;transition:all 100ms ease-out;background-color:#f1f1f1;justify-content:space-between;align-items:center;border-radius:0px;box-shadow:none;position:relative;padding:23px 40px;text-decoration:none;transition:all .4s}.mf-settings-tab .mf-setting-nav-link:focus,.mf-settings-tab .mf-setting-nav-link:hover{outline: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:bold;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;transition:all 150ms ease-out}.mf-settings-section{opacity:0;visibility:hidden;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:#FFFFFF;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:0px;color:#FF433C;font-size:24px;line-height:28px;font-weight:bold;vertical-align:middle;position:relative}.metform-admin-container--body .mf-settings-single-section--title span{align-items:center;justify-content:center;display:inline-block;width:40px;height:40px;line-height:40px!important;margin-right:24px;background-color:rgba(255,67,60,0.1);color:#FF433C;text-align:center;border-radius:5px;vertical-align:middle;font-size:18px;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased}.metform-admin-container--body .mf-setting-header{display:flex;justify-content:space-between;margin-bottom:40px;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:0px;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;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;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;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;box-sizing:border-box;font-size:14px;line-height:17px;display:inline-block;color:#555555;box-shadow:none;color:#121116;border:1px solid #DEE3EA;font-weight:normal}.metform-admin-container .mf-setting-input:active,.metform-admin-container .mf-setting-input:focus{border-color:#FF324D;box-shadow:none;outline:none}.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;box-shadow:0 7px 15px rgba(242,41,91,0.3);font-size:14px;line-height:16px;text-transform:uppercase;color:#fff;font-weight:500;border:none;padding:12px 23px;transition:all .4s;display:inline-flex;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:none;box-shadow:0 7px 15px rgba(242,41,91,0.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;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;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;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:normal;font-size:13px;line-height:15px;color:#999999;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:#111111}.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:#111111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 14px;border:none;margin-right:0;border:none;display:inline-block;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:#ffffff;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;box-shadow:none;outline:none;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;appearance:none;background:none}.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;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-set-dash-rate-now{margin-top:100px}.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:bold;letter-spacing:-1px}.mf-setting-dash-section-heading--title strong{color:#FF433C}.mf-setting-dash-section-heading--subtitle{color:rgba(0,0,0,0.05);font-size:60px;line-height:69px;margin:0;font-weight:bold;position:absolute;top:-25px;left:50%;width:100%;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:flex;flex-wrap:wrap;border-right:1px solid #F0F0F0;border-bottom:1px solid #F0F0F0}.mf-set-dash-top-notch--item{flex:0 0 33.33%;border:1px solid #F0F0F0;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:#999999}.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:flex;flex-wrap:wrap}.mf-set-dash-free-pro-content img{max-width:100%}.mf-set-dash-free-pro-content .attr-nav-tabs{display:flex;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;transition:all .4s}.mf-set-dash-free-pro-content .attr-nav-link:focus{outline: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: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,0.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;box-sizing:border-box;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:#444444}.mf-set-dash-free-pro-content .attr-tab-content ul li{color:#444444;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:#FFFFFF;box-shadow:0 7px 15px rgba(0,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%;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{display:flex;justify-content:space-between;align-items:center;padding-bottom:0;padding-top:0;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;align-self:flex-end}#mf-set-dash-rate-now>div{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;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{flex:0 0 100%}.admin-bar .mf-setting-header.fixed{top:0px}#mf-set-dash-faq{margin-left:-30px;margin-right:-30px}.mf-admin-left-thumb{margin-bottom:-30px}.mf-admin-left-thumb{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{animation-name:rotate;animation-duration:500ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(360deg)}}.loading .attr-modal-content:before{opacity:.8;position:absolute;content:"";top:0;left:0;height:100%;width:100%;background-color:#fff;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:flex;align-items:center;padding-top:30px;width:565px}.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:bold;color:#111111;text-transform:capitalize;margin-bottom:38px;line-height:1}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs{border:none;display:flex;flex-wrap:wrap}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li{margin-right:8px;width:23%;transition:all 0.4s}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs a{text-decoration:none;color:#111111;font-size:14px;text-transform:capitalize;font-weight:600;padding:8px 0px;padding-left:0;border:none;margin-right:0;border:none;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:none;box-shadow:none;border:none}.attr-modal-dialog-centered .attr-modal-header .attr-nav-tabs li.attr-active a{border:none;color:#ffffff;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:none;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:none;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:#111111;font-size:16px;margin-bottom:7px;display:block;font-weight:500}.attr-modal-dialog-centered .attr-tab-content .mf-input-group{margin-bottom:14px}.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:#555;font-size:14px;height:48px;padding:0 22px;border-color:#ededed;box-shadow:0px 2px 5px rgba(153,153,153,0.2);margin-top:12px;max-width:100%}.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:bold;font-size:10px;padding:3px;box-sizing:border-box;padding-right:10px;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;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:bold;font-size:10px;padding:3px;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:red}.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:0px}.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 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:bold;box-sizing:border-box;padding:12px 20px;box-shadow:none;border:1px solid transparent;transition:all .4s;outline:none}.attr-modal-dialog-centered .attr-modal-footer button:focus{border:none;outline:none}.attr-modal-dialog-centered .attr-modal-footer button.metform-form-save-btn-editor{background-color:#d8d8d8;color:#111111}.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,0.5)}.modal-backdrop{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:#FFFFFF;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%;transform:translate(-50%,-50%);box-shadow:0px 2px 5px rgba(153,153,153,0.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{box-sizing:border-box}.mf-entry-filter{margin-right:10px}.mf-entry-filter{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:-1px}.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:0}.metform-entry-data table.mf-entry-data{width:100%;background-color:#FFFFFF;border:1px solid #EAF2FA}.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:#FFFFFF}.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%}
public/assets/css/asRange.min.css CHANGED
@@ -6,4 +6,3 @@
6
  * Released under the LGPL-3.0 license
7
  */
8
  .asRange{position:relative;width:331px;height:8px;background-color:#cfcdc7;border-radius:8px}.asRange .asRange-pointer{position:absolute;left:30%;z-index:2;width:8px;height:8px;margin-left:-4px;background-color:#fff;border-radius:9px}.asRange .asRange-pointer:before{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;content:"";background:#6ba1ad;border-radius:inherit}.asRange .asRange-pointer:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:#fff;border-radius:inherit}.asRange .asRange-pointer.start{left:0;margin-left:4px}.asRange .asRange-pointer.stop{left:100%;margin-left:-12px}.asRange .asRange-pointer .asRange-tip{position:absolute;top:-33px;left:0;width:36px;height:20px;margin-left:-15px;font-family:Bpreplay;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#5d5c58;border:1px solid #5d5c58;border-radius:3px;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s}.asRange .asRange-pointer .asRange-tip:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#5d5c58;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.asRange .asRange-selected{position:absolute;left:30%;z-index:1;width:40%;height:8px;background-color:#7ebdcb;border-radius:9px}.asRange .asRange-scale{display:none}.asRange-scale{position:relative;width:331px;height:8px;background-color:#cfcdc7;border-radius:8px}.asRange-scale .asRange-pointer{position:absolute;left:30%;z-index:2;width:8px;height:8px;margin-left:-4px;background-color:#fff;border-radius:9px}.asRange-scale .asRange-pointer:before{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;content:"";background:#6ba1ad;border-radius:inherit}.asRange-scale .asRange-pointer:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:#fff;border-radius:inherit}.asRange-scale .asRange-pointer.start{left:0;margin-left:4px}.asRange-scale .asRange-pointer.stop{left:100%;margin-left:-12px}.asRange-scale .asRange-pointer .asRange-tip{position:absolute;top:-33px;left:0;width:36px;height:20px;margin-left:-15px;font-family:Bpreplay;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#5d5c58;border:1px solid #5d5c58;border-radius:3px;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s}.asRange-scale .asRange-pointer .asRange-tip:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#5d5c58;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.asRange-scale .asRange-selected{position:absolute;left:30%;z-index:1;width:40%;height:8px;background-color:#7ebdcb;border-radius:9px}.asRange-scale .asRange-scale{position:absolute;bottom:-22px;left:0;width:100%;height:20px;padding:0;margin:0;list-style:none;background:url(../image/scale.png) no-repeat 0 transparent}.asRange-scale .asRange-scale li{position:absolute;top:18px;width:30px;height:20px;padding:0;margin:0;margin-left:-15px;text-align:center}.asRange-scale .asRange-scale li:first-child{left:0}.asRange-scale .asRange-scale li:nth-child(2){left:33.3%}.asRange-scale .asRange-scale li:nth-child(3){left:66.6%}.asRange-scale .asRange-scale li:last-child{left:100%}
9
- /*# sourceMappingURL=asRange.min.css.map */
6
  * Released under the LGPL-3.0 license
7
  */
8
  .asRange{position:relative;width:331px;height:8px;background-color:#cfcdc7;border-radius:8px}.asRange .asRange-pointer{position:absolute;left:30%;z-index:2;width:8px;height:8px;margin-left:-4px;background-color:#fff;border-radius:9px}.asRange .asRange-pointer:before{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;content:"";background:#6ba1ad;border-radius:inherit}.asRange .asRange-pointer:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:#fff;border-radius:inherit}.asRange .asRange-pointer.start{left:0;margin-left:4px}.asRange .asRange-pointer.stop{left:100%;margin-left:-12px}.asRange .asRange-pointer .asRange-tip{position:absolute;top:-33px;left:0;width:36px;height:20px;margin-left:-15px;font-family:Bpreplay;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#5d5c58;border:1px solid #5d5c58;border-radius:3px;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s}.asRange .asRange-pointer .asRange-tip:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#5d5c58;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.asRange .asRange-selected{position:absolute;left:30%;z-index:1;width:40%;height:8px;background-color:#7ebdcb;border-radius:9px}.asRange .asRange-scale{display:none}.asRange-scale{position:relative;width:331px;height:8px;background-color:#cfcdc7;border-radius:8px}.asRange-scale .asRange-pointer{position:absolute;left:30%;z-index:2;width:8px;height:8px;margin-left:-4px;background-color:#fff;border-radius:9px}.asRange-scale .asRange-pointer:before{position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;content:"";background:#6ba1ad;border-radius:inherit}.asRange-scale .asRange-pointer:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:#fff;border-radius:inherit}.asRange-scale .asRange-pointer.start{left:0;margin-left:4px}.asRange-scale .asRange-pointer.stop{left:100%;margin-left:-12px}.asRange-scale .asRange-pointer .asRange-tip{position:absolute;top:-33px;left:0;width:36px;height:20px;margin-left:-15px;font-family:Bpreplay;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#5d5c58;border:1px solid #5d5c58;border-radius:3px;-webkit-transition:opacity .3s ease-in-out 0s;transition:opacity .3s ease-in-out 0s}.asRange-scale .asRange-pointer .asRange-tip:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#5d5c58;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.asRange-scale .asRange-selected{position:absolute;left:30%;z-index:1;width:40%;height:8px;background-color:#7ebdcb;border-radius:9px}.asRange-scale .asRange-scale{position:absolute;bottom:-22px;left:0;width:100%;height:20px;padding:0;margin:0;list-style:none;background:url(../image/scale.png) no-repeat 0 transparent}.asRange-scale .asRange-scale li{position:absolute;top:18px;width:30px;height:20px;padding:0;margin:0;margin-left:-15px;text-align:center}.asRange-scale .asRange-scale li:first-child{left:0}.asRange-scale .asRange-scale li:nth-child(2){left:33.3%}.asRange-scale .asRange-scale li:nth-child(3){left:66.6%}.asRange-scale .asRange-scale li:last-child{left:100%}
 
public/assets/css/flatpickr.min.css CHANGED
@@ -1,906 +1,13 @@
1
- .flatpickr-calendar {
2
- background: transparent;
3
- opacity: 0;
4
- display: none;
5
- text-align: center;
6
- visibility: hidden;
7
- padding: 0;
8
- -webkit-animation: none;
9
- animation: none;
10
- direction: ltr;
11
- border: 0;
12
- font-size: 14px;
13
- line-height: 24px;
14
- border-radius: 5px;
15
- position: absolute;
16
- width: 307.875px;
17
- -webkit-box-sizing: border-box;
18
- box-sizing: border-box;
19
- -ms-touch-action: manipulation;
20
- touch-action: manipulation;
21
- background: #fff;
22
- -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
23
- box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
24
- /* Custom */
25
- left: 0 !important;
26
- bottom: -290px;
27
- top: inherit !important;
28
- /* Custom */
29
- }
30
-
31
- /* custom */
32
- .flatpickr-calendar.hasTime.noCalendar {
33
- bottom: -50px;
34
- }
35
- /* end custom */
36
-
37
- .flatpickr-calendar.open,
38
- .flatpickr-calendar.inline {
39
- opacity: 1;
40
- max-height: 640px;
41
- visibility: visible
42
- }
43
-
44
- .flatpickr-calendar.open {
45
- display: inline-block;
46
- z-index: 99999
47
- }
48
-
49
- .flatpickr-calendar.animate.open {
50
- -webkit-animation: fpFadeInDown 300ms cubic-bezier(.23, 1, .32, 1);
51
- animation: fpFadeInDown 300ms cubic-bezier(.23, 1, .32, 1)
52
- }
53
-
54
- .flatpickr-calendar.inline {
55
- display: block;
56
- position: relative;
57
- top: 2px
58
- }
59
-
60
- .flatpickr-calendar.static {
61
- position: absolute;
62
- top: calc(100% + 2px);
63
- }
64
-
65
- .flatpickr-calendar.static.open {
66
- z-index: 999;
67
- display: block
68
- }
69
-
70
- .flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {
71
- -webkit-box-shadow: none !important;
72
- box-shadow: none !important
73
- }
74
-
75
- .flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
76
- -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
77
- box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6
78
- }
79
-
80
- .flatpickr-calendar .hasWeeks .dayContainer,
81
- .flatpickr-calendar .hasTime .dayContainer {
82
- border-bottom: 0;
83
- border-bottom-right-radius: 0;
84
- border-bottom-left-radius: 0
85
- }
86
-
87
- .flatpickr-calendar .hasWeeks .dayContainer {
88
- border-left: 0
89
- }
90
-
91
- .flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
92
- height: 40px;
93
- border-top: 1px solid #e6e6e6
94
- }
95
-
96
- .flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
97
- height: auto
98
- }
99
-
100
- .flatpickr-calendar:before,
101
- .flatpickr-calendar:after {
102
- position: absolute;
103
- display: block;
104
- pointer-events: none;
105
- border: solid transparent;
106
- content: '';
107
- height: 0;
108
- width: 0;
109
- left: 22px
110
- }
111
-
112
- .flatpickr-calendar.rightMost:before,
113
- .flatpickr-calendar.rightMost:after {
114
- left: auto;
115
- right: 22px
116
- }
117
-
118
- .flatpickr-calendar:before {
119
- border-width: 5px;
120
- margin: 0 -5px
121
- }
122
-
123
- .flatpickr-calendar:after {
124
- border-width: 4px;
125
- margin: 0 -4px
126
- }
127
-
128
- .flatpickr-calendar.arrowTop:before,
129
- .flatpickr-calendar.arrowTop:after {
130
- bottom: 100%
131
- }
132
-
133
- .flatpickr-calendar.arrowTop:before {
134
- border-bottom-color: #e6e6e6
135
- }
136
-
137
- .flatpickr-calendar.arrowTop:after {
138
- border-bottom-color: #fff
139
- }
140
-
141
- .flatpickr-calendar.arrowBottom:before,
142
- .flatpickr-calendar.arrowBottom:after {
143
- top: 100%
144
- }
145
-
146
- .flatpickr-calendar.arrowBottom:before {
147
- border-top-color: #e6e6e6
148
- }
149
-
150
- .flatpickr-calendar.arrowBottom:after {
151
- border-top-color: #fff
152
- }
153
-
154
- .flatpickr-calendar:focus {
155
- outline: 0
156
- }
157
-
158
- .flatpickr-wrapper {
159
- position: relative;
160
- display: inline-block
161
- }
162
-
163
- .flatpickr-months {
164
- display: -webkit-box;
165
- display: -webkit-flex;
166
- display: -ms-flexbox;
167
- display: flex;
168
- }
169
-
170
- .flatpickr-months .flatpickr-month {
171
- background: transparent;
172
- color: rgba(0, 0, 0, 0.9);
173
- fill: rgba(0, 0, 0, 0.9);
174
- height: 34px;
175
- line-height: 1;
176
- text-align: center;
177
- position: relative;
178
- -webkit-user-select: none;
179
- -moz-user-select: none;
180
- -ms-user-select: none;
181
- user-select: none;
182
- overflow: hidden;
183
- -webkit-box-flex: 1;
184
- -webkit-flex: 1;
185
- -ms-flex: 1;
186
- flex: 1
187
- }
188
-
189
- .flatpickr-months .flatpickr-prev-month,
190
- .flatpickr-months .flatpickr-next-month {
191
- text-decoration: none;
192
- cursor: pointer;
193
- position: absolute;
194
- top: 0;
195
- height: 34px;
196
- padding: 10px;
197
- z-index: 3;
198
- color: rgba(0, 0, 0, 0.9);
199
- fill: rgba(0, 0, 0, 0.9);
200
- }
201
-
202
- .flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
203
- .flatpickr-months .flatpickr-next-month.flatpickr-disabled {
204
- display: none
205
- }
206
-
207
- .flatpickr-months .flatpickr-prev-month i,
208
- .flatpickr-months .flatpickr-next-month i {
209
- position: relative
210
- }
211
-
212
- .flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,
213
- .flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
214
- /*
215
- /*rtl:begin:ignore*/
216
- left: 0;
217
- /*
218
- /*rtl:end:ignore*/
219
- }
220
-
221
-
222
- /*
223
- /*rtl:begin:ignore*/
224
-
225
-
226
- /*
227
- /*rtl:end:ignore*/
228
-
229
- .flatpickr-months .flatpickr-prev-month.flatpickr-next-month,
230
- .flatpickr-months .flatpickr-next-month.flatpickr-next-month {
231
- /*
232
- /*rtl:begin:ignore*/
233
- right: 0;
234
- /*
235
- /*rtl:end:ignore*/
236
- }
237
-
238
-
239
- /*
240
- /*rtl:begin:ignore*/
241
-
242
-
243
- /*
244
- /*rtl:end:ignore*/
245
-
246
- .flatpickr-months .flatpickr-prev-month:hover,
247
- .flatpickr-months .flatpickr-next-month:hover {
248
- color: #959ea9;
249
- }
250
-
251
- .flatpickr-months .flatpickr-prev-month:hover svg,
252
- .flatpickr-months .flatpickr-next-month:hover svg {
253
- fill: #f64747
254
- }
255
-
256
- .flatpickr-months .flatpickr-prev-month svg,
257
- .flatpickr-months .flatpickr-next-month svg {
258
- width: 14px;
259
- height: 14px;
260
- }
261
-
262
- .flatpickr-months .flatpickr-prev-month svg path,
263
- .flatpickr-months .flatpickr-next-month svg path {
264
- -webkit-transition: fill .1s;
265
- transition: fill .1s;
266
- fill: inherit
267
- }
268
-
269
- .numInputWrapper {
270
- position: relative;
271
- height: auto;
272
- }
273
-
274
- .numInputWrapper input,
275
- .numInputWrapper span {
276
- display: inline-block
277
- }
278
-
279
- .numInputWrapper input {
280
- width: 100%;
281
- }
282
-
283
- .numInputWrapper input::-ms-clear {
284
- display: none
285
- }
286
-
287
- .numInputWrapper input::-webkit-outer-spin-button,
288
- .numInputWrapper input::-webkit-inner-spin-button {
289
- margin: 0;
290
- -webkit-appearance: none
291
- }
292
-
293
- .numInputWrapper span {
294
- position: absolute;
295
- right: 0;
296
- width: 14px;
297
- padding: 0 4px 0 2px;
298
- height: 50%;
299
- line-height: 50%;
300
- opacity: 0;
301
- cursor: pointer;
302
- border: 1px solid rgba(57, 57, 57, 0.15);
303
- -webkit-box-sizing: border-box;
304
- box-sizing: border-box;
305
- }
306
-
307
- .numInputWrapper span:hover {
308
- background: rgba(0, 0, 0, 0.1)
309
- }
310
-
311
- .numInputWrapper span:active {
312
- background: rgba(0, 0, 0, 0.2)
313
- }
314
-
315
- .numInputWrapper span:after {
316
- display: block;
317
- content: "";
318
- position: absolute
319
- }
320
-
321
- .numInputWrapper span.arrowUp {
322
- top: 0;
323
- border-bottom: 0;
324
- }
325
-
326
- .numInputWrapper span.arrowUp:after {
327
- border-left: 4px solid transparent;
328
- border-right: 4px solid transparent;
329
- border-bottom: 4px solid rgba(57, 57, 57, 0.6);
330
- top: 26%
331
- }
332
-
333
- .numInputWrapper span.arrowDown {
334
- top: 50%;
335
- }
336
-
337
- .numInputWrapper span.arrowDown:after {
338
- border-left: 4px solid transparent;
339
- border-right: 4px solid transparent;
340
- border-top: 4px solid rgba(57, 57, 57, 0.6);
341
- top: 40%
342
- }
343
-
344
- .numInputWrapper span svg {
345
- width: inherit;
346
- height: auto;
347
- }
348
-
349
- .numInputWrapper span svg path {
350
- fill: rgba(0, 0, 0, 0.5)
351
- }
352
-
353
- .numInputWrapper:hover {
354
- background: rgba(0, 0, 0, 0.05);
355
- }
356
-
357
- .numInputWrapper:hover span {
358
- opacity: 1
359
- }
360
-
361
- .flatpickr-current-month {
362
- font-size: 135%;
363
- line-height: inherit;
364
- font-weight: 300;
365
- color: inherit;
366
- position: absolute;
367
- width: 75%;
368
- left: 12.5%;
369
- padding: 7.48px 0 0 0;
370
- line-height: 1;
371
- height: 34px;
372
- display: inline-block;
373
- text-align: center;
374
- -webkit-transform: translate3d(0, 0, 0);
375
- transform: translate3d(0, 0, 0);
376
- }
377
-
378
- .flatpickr-current-month span.cur-month {
379
- font-family: inherit;
380
- font-weight: 700;
381
- color: inherit;
382
- display: inline-block;
383
- margin-left: .5ch;
384
- padding: 0;
385
- }
386
-
387
- .flatpickr-current-month span.cur-month:hover {
388
- background: rgba(0, 0, 0, 0.05)
389
- }
390
-
391
- .flatpickr-current-month .numInputWrapper {
392
- width: 6ch;
393
- width: 7ch\0;
394
- display: inline-block;
395
- }
396
-
397
- .flatpickr-current-month .numInputWrapper span.arrowUp:after {
398
- border-bottom-color: rgba(0, 0, 0, 0.9)
399
- }
400
-
401
- .flatpickr-current-month .numInputWrapper span.arrowDown:after {
402
- border-top-color: rgba(0, 0, 0, 0.9)
403
- }
404
-
405
- .flatpickr-current-month input.cur-year {
406
- background: transparent;
407
- -webkit-box-sizing: border-box;
408
- box-sizing: border-box;
409
- color: inherit;
410
- cursor: text;
411
- padding: 0 0 0 .5ch;
412
- margin: 0;
413
- display: inline-block;
414
- font-size: inherit;
415
- font-family: inherit;
416
- font-weight: 300;
417
- line-height: inherit;
418
- height: auto;
419
- border: 0;
420
- border-radius: 0;
421
- vertical-align: initial;
422
- -webkit-appearance: textfield;
423
- -moz-appearance: textfield;
424
- appearance: textfield;
425
- }
426
-
427
- .flatpickr-current-month input.cur-year:focus {
428
- outline: 0
429
- }
430
-
431
- .flatpickr-current-month input.cur-year[disabled],
432
- .flatpickr-current-month input.cur-year[disabled]:hover {
433
- font-size: 100%;
434
- color: rgba(0, 0, 0, 0.5);
435
- background: transparent;
436
- pointer-events: none
437
- }
438
-
439
- .flatpickr-current-month .flatpickr-monthDropdown-months {
440
- appearance: menulist;
441
- background: transparent;
442
- border: none;
443
- border-radius: 0;
444
- box-sizing: border-box;
445
- color: inherit;
446
- cursor: pointer;
447
- font-size: inherit;
448
- font-family: inherit;
449
- font-weight: 300;
450
- height: auto;
451
- line-height: inherit;
452
- margin: -1px 0 0 0;
453
- outline: none;
454
- padding: 0 0 0 .5ch;
455
- position: relative;
456
- vertical-align: initial;
457
- -webkit-box-sizing: border-box;
458
- -webkit-appearance: menulist;
459
- -moz-appearance: menulist;
460
- width: auto;
461
- }
462
-
463
- .flatpickr-current-month .flatpickr-monthDropdown-months:focus,
464
- .flatpickr-current-month .flatpickr-monthDropdown-months:active {
465
- outline: none
466
- }
467
-
468
- .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
469
- background: rgba(0, 0, 0, 0.05)
470
- }
471
-
472
- .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
473
- background-color: transparent;
474
- outline: none;
475
- padding: 0
476
- }
477
-
478
- .flatpickr-weekdays {
479
- background: transparent;
480
- text-align: center;
481
- overflow: hidden;
482
- width: 100%;
483
- display: -webkit-box;
484
- display: -webkit-flex;
485
- display: -ms-flexbox;
486
- display: flex;
487
- -webkit-box-align: center;
488
- -webkit-align-items: center;
489
- -ms-flex-align: center;
490
- align-items: center;
491
- height: 28px;
492
- }
493
-
494
- .flatpickr-weekdays .flatpickr-weekdaycontainer {
495
- display: -webkit-box;
496
- display: -webkit-flex;
497
- display: -ms-flexbox;
498
- display: flex;
499
- -webkit-box-flex: 1;
500
- -webkit-flex: 1;
501
- -ms-flex: 1;
502
- flex: 1
503
- }
504
-
505
- span.flatpickr-weekday {
506
- cursor: default;
507
- font-size: 90%;
508
- background: transparent;
509
- color: rgba(0, 0, 0, 0.54);
510
- line-height: 1;
511
- margin: 0;
512
- text-align: center;
513
- display: block;
514
- -webkit-box-flex: 1;
515
- -webkit-flex: 1;
516
- -ms-flex: 1;
517
- flex: 1;
518
- font-weight: bolder
519
- }
520
-
521
- .dayContainer,
522
- .flatpickr-weeks {
523
- padding: 1px 0 0 0
524
- }
525
-
526
- .flatpickr-days {
527
- position: relative;
528
- overflow: hidden;
529
- display: -webkit-box;
530
- display: -webkit-flex;
531
- display: -ms-flexbox;
532
- display: flex;
533
- -webkit-box-align: start;
534
- -webkit-align-items: flex-start;
535
- -ms-flex-align: start;
536
- align-items: flex-start;
537
- width: 307.875px;
538
- }
539
-
540
- .flatpickr-days:focus {
541
- outline: 0
542
- }
543
-
544
- .dayContainer {
545
- padding: 0;
546
- outline: 0;
547
- text-align: left;
548
- width: 307.875px;
549
- min-width: 307.875px;
550
- max-width: 307.875px;
551
- -webkit-box-sizing: border-box;
552
- box-sizing: border-box;
553
- display: inline-block;
554
- display: -ms-flexbox;
555
- display: -webkit-box;
556
- display: -webkit-flex;
557
- display: flex;
558
- -webkit-flex-wrap: wrap;
559
- flex-wrap: wrap;
560
- -ms-flex-wrap: wrap;
561
- -ms-flex-pack: justify;
562
- -webkit-justify-content: space-around;
563
- justify-content: space-around;
564
- -webkit-transform: translate3d(0, 0, 0);
565
- transform: translate3d(0, 0, 0);
566
- opacity: 1;
567
- }
568
-
569
- .dayContainer + .dayContainer {
570
- -webkit-box-shadow: -1px 0 0 #e6e6e6;
571
- box-shadow: -1px 0 0 #e6e6e6
572
- }
573
-
574
- .flatpickr-day {
575
- background: none;
576
- border: 1px solid transparent;
577
- border-radius: 150px;
578
- -webkit-box-sizing: border-box;
579
- box-sizing: border-box;
580
- color: #393939;
581
- cursor: pointer;
582
- font-weight: 400;
583
- width: 14.2857143%;
584
- -webkit-flex-basis: 14.2857143%;
585
- -ms-flex-preferred-size: 14.2857143%;
586
- flex-basis: 14.2857143%;
587
- max-width: 39px;
588
- height: 39px;
589
- line-height: 39px;
590
- margin: 0;
591
- display: inline-block;
592
- position: relative;
593
- -webkit-box-pack: center;
594
- -webkit-justify-content: center;
595
- -ms-flex-pack: center;
596
- justify-content: center;
597
- text-align: center;
598
- }
599
-
600
- .flatpickr-day.inRange,
601
- .flatpickr-day.prevMonthDay.inRange,
602
- .flatpickr-day.nextMonthDay.inRange,
603
- .flatpickr-day.today.inRange,
604
- .flatpickr-day.prevMonthDay.today.inRange,
605
- .flatpickr-day.nextMonthDay.today.inRange,
606
- .flatpickr-day:hover,
607
- .flatpickr-day.prevMonthDay:hover,
608
- .flatpickr-day.nextMonthDay:hover,
609
- .flatpickr-day:focus,
610
- .flatpickr-day.prevMonthDay:focus,
611
- .flatpickr-day.nextMonthDay:focus {
612
- cursor: pointer;
613
- outline: 0;
614
- background: #e6e6e6;
615
- border-color: #e6e6e6
616
- }
617
-
618
- .flatpickr-day.today {
619
- border-color: #959ea9;
620
- }
621
-
622
- .flatpickr-day.today:hover,
623
- .flatpickr-day.today:focus {
624
- border-color: #959ea9;
625
- background: #959ea9;
626
- color: #fff
627
- }
628
-
629
- .flatpickr-day.selected,
630
- .flatpickr-day.startRange,
631
- .flatpickr-day.endRange,
632
- .flatpickr-day.selected.inRange,
633
- .flatpickr-day.startRange.inRange,
634
- .flatpickr-day.endRange.inRange,
635
- .flatpickr-day.selected:focus,
636
- .flatpickr-day.startRange:focus,
637
- .flatpickr-day.endRange:focus,
638
- .flatpickr-day.selected:hover,
639
- .flatpickr-day.startRange:hover,
640
- .flatpickr-day.endRange:hover,
641
- .flatpickr-day.selected.prevMonthDay,
642
- .flatpickr-day.startRange.prevMonthDay,
643
- .flatpickr-day.endRange.prevMonthDay,
644
- .flatpickr-day.selected.nextMonthDay,
645
- .flatpickr-day.startRange.nextMonthDay,
646
- .flatpickr-day.endRange.nextMonthDay {
647
- background: #569ff7;
648
- -webkit-box-shadow: none;
649
- box-shadow: none;
650
- color: #fff;
651
- border-color: #569ff7
652
- }
653
-
654
- .flatpickr-day.selected.startRange,
655
- .flatpickr-day.startRange.startRange,
656
- .flatpickr-day.endRange.startRange {
657
- border-radius: 50px 0 0 50px
658
- }
659
-
660
- .flatpickr-day.selected.endRange,
661
- .flatpickr-day.startRange.endRange,
662
- .flatpickr-day.endRange.endRange {
663
- border-radius: 0 50px 50px 0
664
- }
665
-
666
- .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
667
- .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
668
- .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
669
- -webkit-box-shadow: -10px 0 0 #569ff7;
670
- box-shadow: -10px 0 0 #569ff7
671
- }
672
-
673
- .flatpickr-day.selected.startRange.endRange,
674
- .flatpickr-day.startRange.startRange.endRange,
675
- .flatpickr-day.endRange.startRange.endRange {
676
- border-radius: 50px
677
- }
678
-
679
- .flatpickr-day.inRange {
680
- border-radius: 0;
681
- -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
682
- box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6
683
- }
684
-
685
- .flatpickr-day.flatpickr-disabled,
686
- .flatpickr-day.flatpickr-disabled:hover,
687
- .flatpickr-day.prevMonthDay,
688
- .flatpickr-day.nextMonthDay,
689
- .flatpickr-day.notAllowed,
690
- .flatpickr-day.notAllowed.prevMonthDay,
691
- .flatpickr-day.notAllowed.nextMonthDay {
692
- color: rgba(57, 57, 57, 0.3);
693
- background: transparent;
694
- border-color: transparent;
695
- cursor: default
696
- }
697
-
698
- .flatpickr-day.flatpickr-disabled,
699
- .flatpickr-day.flatpickr-disabled:hover {
700
- cursor: not-allowed;
701
- color: rgba(57, 57, 57, 0.1)
702
- }
703
-
704
- .flatpickr-day.week.selected {
705
- border-radius: 0;
706
- -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;
707
- box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7
708
- }
709
-
710
- .flatpickr-day.hidden {
711
- visibility: hidden
712
- }
713
-
714
- .rangeMode .flatpickr-day {
715
- margin-top: 1px
716
- }
717
-
718
- .flatpickr-weekwrapper {
719
- float: left;
720
- }
721
-
722
- .flatpickr-weekwrapper .flatpickr-weeks {
723
- padding: 0 12px;
724
- -webkit-box-shadow: 1px 0 0 #e6e6e6;
725
- box-shadow: 1px 0 0 #e6e6e6
726
- }
727
-
728
- .flatpickr-weekwrapper .flatpickr-weekday {
729
- float: none;
730
- width: 100%;
731
- line-height: 28px
732
- }
733
-
734
- .flatpickr-weekwrapper span.flatpickr-day,
735
- .flatpickr-weekwrapper span.flatpickr-day:hover {
736
- display: block;
737
- width: 100%;
738
- max-width: none;
739
- color: rgba(57, 57, 57, 0.3);
740
- background: transparent;
741
- cursor: default;
742
- border: none
743
- }
744
-
745
- .flatpickr-innerContainer {
746
- display: block;
747
- display: -webkit-box;
748
- display: -webkit-flex;
749
- display: -ms-flexbox;
750
- display: flex;
751
- -webkit-box-sizing: border-box;
752
- box-sizing: border-box;
753
- overflow: hidden;
754
- }
755
-
756
- .flatpickr-rContainer {
757
- display: inline-block;
758
- padding: 0;
759
- -webkit-box-sizing: border-box;
760
- box-sizing: border-box
761
- }
762
-
763
- .flatpickr-time {
764
- text-align: center;
765
- outline: 0;
766
- display: block;
767
- height: 0;
768
- line-height: 40px;
769
- max-height: 40px;
770
- -webkit-box-sizing: border-box;
771
- box-sizing: border-box;
772
- overflow: hidden;
773
- display: -webkit-box;
774
- display: -webkit-flex;
775
- display: -ms-flexbox;
776
- display: flex;
777
- }
778
-
779
- .flatpickr-time:after {
780
- content: "";
781
- display: table;
782
- clear: both
783
- }
784
-
785
- .flatpickr-time .numInputWrapper {
786
- -webkit-box-flex: 1;
787
- -webkit-flex: 1;
788
- -ms-flex: 1;
789
- flex: 1;
790
- width: 40%;
791
- height: 40px;
792
- float: left;
793
- }
794
-
795
- .flatpickr-time .numInputWrapper span.arrowUp:after {
796
- border-bottom-color: #393939
797
- }
798
-
799
- .flatpickr-time .numInputWrapper span.arrowDown:after {
800
- border-top-color: #393939
801
- }
802
-
803
- .flatpickr-time.hasSeconds .numInputWrapper {
804
- width: 26%
805
- }
806
-
807
- .flatpickr-time.time24hr .numInputWrapper {
808
- width: 49%
809
- }
810
-
811
- .flatpickr-time input {
812
- background: transparent;
813
- -webkit-box-shadow: none;
814
- box-shadow: none;
815
- border: 0;
816
- border-radius: 0;
817
- text-align: center;
818
- margin: 0;
819
- padding: 0;
820
- height: inherit;
821
- line-height: inherit;
822
- color: #393939;
823
- font-size: 14px;
824
- position: relative;
825
- -webkit-box-sizing: border-box;
826
- box-sizing: border-box;
827
- -webkit-appearance: textfield;
828
- -moz-appearance: textfield;
829
- appearance: textfield;
830
- }
831
-
832
- .flatpickr-time input.flatpickr-hour {
833
- font-weight: bold
834
- }
835
-
836
- .flatpickr-time input.flatpickr-minute,
837
- .flatpickr-time input.flatpickr-second {
838
- font-weight: 400
839
- }
840
-
841
- .flatpickr-time input:focus {
842
- outline: 0;
843
- border: 0
844
- }
845
-
846
- .flatpickr-time .flatpickr-time-separator,
847
- .flatpickr-time .flatpickr-am-pm {
848
- height: inherit;
849
- float: left;
850
- line-height: inherit;
851
- color: #393939;
852
- font-weight: bold;
853
- width: 2%;
854
- -webkit-user-select: none;
855
- -moz-user-select: none;
856
- -ms-user-select: none;
857
- user-select: none;
858
- -webkit-align-self: center;
859
- -ms-flex-item-align: center;
860
- align-self: center
861
- }
862
-
863
- .flatpickr-time .flatpickr-am-pm {
864
- outline: 0;
865
- width: 18%;
866
- cursor: pointer;
867
- text-align: center;
868
- font-weight: 400
869
- }
870
-
871
- .flatpickr-time input:hover,
872
- .flatpickr-time .flatpickr-am-pm:hover,
873
- .flatpickr-time input:focus,
874
- .flatpickr-time .flatpickr-am-pm:focus {
875
- background: #eee
876
- }
877
-
878
- .flatpickr-input[readonly] {
879
- cursor: pointer
880
- }
881
-
882
- @-webkit-keyframes fpFadeInDown {
883
- from {
884
- opacity: 0;
885
- -webkit-transform: translate3d(0, -20px, 0);
886
- transform: translate3d(0, -20px, 0)
887
- }
888
- to {
889
- opacity: 1;
890
- -webkit-transform: translate3d(0, 0, 0);
891
- transform: translate3d(0, 0, 0)
892
- }
893
- }
894
-
895
- @keyframes fpFadeInDown {
896
- from {
897
- opacity: 0;
898
- -webkit-transform: translate3d(0, -20px, 0);
899
- transform: translate3d(0, -20px, 0)
900
- }
901
- to {
902
- opacity: 1;
903
- -webkit-transform: translate3d(0, 0, 0);
904
- transform: translate3d(0, 0, 0)
905
- }
906
- }
1
+ .flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99998}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.rightMost:after{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{/*
2
+ /*rtl:begin:ignore*/left:0;/*
3
+ /*rtl:end:ignore*/}/*
4
+ /*rtl:begin:ignore*/
5
+ /*
6
+ /*rtl:end:ignore*/
7
+ .flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{/*
8
+ /*rtl:begin:ignore*/right:0;/*
9
+ /*rtl:end:ignore*/}/*
10
+ /*rtl:begin:ignore*/
11
+ /*
12
+ /*rtl:end:ignore*/
13
+ .flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9;}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px;}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%;}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05);}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto;}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px;}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px;}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left;}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/assets/css/style.css CHANGED
@@ -17,6 +17,9 @@
17
  position: relative;
18
  display: inline-block;
19
  }
 
 
 
20
 
21
  .mf-input-control {
22
  position: absolute;
@@ -50,14 +53,41 @@
50
  justify-content: flex-end;
51
  }
52
 
53
- .metform-msg {
54
- margin: 0;
55
- padding: 10px;
56
- max-width: 100%;
57
  }
58
- .elementor-editor-active.single-metform-form .metform-msg {
59
- display: block;
 
 
 
 
60
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  .mf-input-control-label::before, .custom-file-label, .custom-select {
62
  transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
63
  }
@@ -78,6 +108,7 @@
78
  .mf-input-switch label.mf-input-control-label {
79
  display: inline-block;
80
  position: relative;
 
81
  }
82
 
83
  .mf-input-control:checked~.mf-input-control-label::before {
@@ -91,12 +122,6 @@
91
  }
92
  .mf-input-switch .mf-input-control:checked~.mf-input-control-label::after {
93
  background-color: #fff;
94
- /* right: 2px;
95
- left: inherit; */
96
- }
97
- .metform-msg{
98
- display: none;
99
- margin: 0 auto;
100
  }
101
  .mf-input-wrapper .mf-input-help{
102
  display: block;
@@ -106,8 +131,9 @@
106
  clear: both;
107
  font-weight: 400;
108
  }
109
- .mf-input-wrapper .mf-input{
110
  width: 100%;
 
111
  padding: 12px;
112
  height: auto;
113
  border-width: 1px;
@@ -120,6 +146,7 @@
120
  box-sizing: border-box;
121
  transition: all .2s linear;
122
  font-size: 14px;
 
123
  }
124
 
125
  .mf-input-wrapper.mf-field-error .mf-input,
@@ -144,17 +171,10 @@
144
  color: #c9c1c1;
145
  font-weight: 400;
146
  font-size: 14px;
147
- }
148
- .mf-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered{
149
- font-size: 14px;
150
- }
151
- .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__rendered li{
152
- line-height: 29px;
153
  }
154
- .mf-input-wrapper .select2-container--default .select2-search--inline .select2-search__field{
155
- line-height: inherit;
156
- }
157
- .mf-input-wrapper .mf-input-label{
158
  font-family: "Roboto", Sans-serif;
159
  font-weight: 600;
160
  font-size: 14px;
@@ -165,12 +185,9 @@
165
  margin-bottom: 5px;
166
  }
167
  .mf-input-wrapper .mf-input-label,
168
- .mf-input-wrapper .mf-input{
169
  vertical-align: middle;
170
  }
171
- .mf-input-required-indicator{
172
- color: #FF0000;
173
- }
174
 
175
  div.mf-input-wrapper > textarea.mf-input {
176
  padding: 15px;
@@ -186,8 +203,10 @@ div.mf-input-wrapper > textarea.mf-input {
186
  display: none;
187
  }
188
  .mf-checkbox-option input[type="checkbox"] + span:before {
 
189
  content: "\f0c8";
190
  font-family: "Font Awesome 5 Free" !important;
 
191
  display: inline-block;
192
  border: none;
193
  font-size: 18px;
@@ -196,8 +215,6 @@ div.mf-input-wrapper > textarea.mf-input {
196
  width: 25px;
197
  line-height: 1;
198
  top: 2px;
199
- position: relative;
200
- font-weight: 500 !important;
201
  }
202
  .mf-checkbox-option input[type="checkbox"] + span{
203
  font-weight: 400;
@@ -224,6 +241,7 @@ div.mf-input-wrapper > textarea.mf-input {
224
  .mf-radio-option input[type="radio"] + span:before {
225
  content: "\f111";
226
  font-family: "Font Awesome 5 Free" !important;
 
227
  display: inline-block;
228
  border: none;
229
  font-size: 18px;
@@ -233,7 +251,6 @@ div.mf-input-wrapper > textarea.mf-input {
233
  line-height: 1;
234
  top: 2px;
235
  position: relative;
236
- font-weight: 500 !important;
237
  }
238
  .mf-radio-option input[type="radio"] + span{
239
  font-weight: 400;
@@ -249,139 +266,136 @@ div.mf-input-wrapper > textarea.mf-input {
249
  color: #5F7BFF;
250
  }
251
 
252
- /* Select */
253
- .mf-input-wrapper select.mf-input-dropdown {
254
- border: none;
255
- padding: 15px 25px;
256
- font-size: 15px;
257
- font-weight: 500 !important;
258
- -webkit-appearance: none;
259
- -moz-appearance: none;
260
- -o-appearance: none;
261
- appearance: none;
262
- border-width: 1px;
263
- border-style: solid;
264
- border-color: #eaeaea;
265
- }
266
- .mf-input-wrapper select.mf-input-dropdown option {
267
- background-color: #fff;
268
- color: #222222;
269
- font-size: 15px;
270
  }
271
 
272
- .mf-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
273
- line-height: 1.8;
 
 
 
 
 
 
 
 
274
  }
275
- .mf-input-wrapper .span.selection{
276
- overflow: hidden;
277
  }
278
- .mf-input-wrapper .select2-container--default .select2-selection--single {
279
- display: inline-block;
280
- width: 100%;
281
- height: auto;
282
- border-color: #eaeaea;
283
- padding: 8px;
284
- border-radius: 0;
285
- background-color: #FAFAFA;
286
  }
287
- .mf-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
288
- height: 26px;
289
- position: absolute;
290
- top: 50%;
291
- right: 10px;
292
- width: 20px;
293
- transform: translateY(-50%);
294
  }
295
- .mf-input-wrapper ul.select2-results__options .select2-results__option {
296
- background-color: #fff;
297
- padding: 10px 15px;
298
- font-size: 15px;
299
- border-top: none !important;
300
- border-left: none;
301
- border: none;
302
- border-color: transparent;
303
- border: 1px solid #eaeaea;
304
  }
305
 
306
- .mf-input-wrapper .select2-container--default ul.select2-results__options .select2-results__option[aria-selected=true] {
307
- background-color: #F0F0F0;
308
- color: #333
309
  }
310
- .mf-input-wrapper .select2-search--dropdown{
 
 
 
 
311
  padding: 0;
 
 
 
312
  }
313
- .mf-input-wrapper .select2-container--default .select2-selection--multiple,
314
- .mf-input-wrapper .select2-container--default.select2-container--focus .select2-selection--multiple {
315
- border: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  padding: 0;
317
- background: transparent;
318
  }
319
- .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered {
320
- display: inline-block;
321
- overflow: hidden;
322
- padding-left: 8px;
323
- text-overflow: ellipsis;
324
- white-space: nowrap;
325
  border: 1px solid #eaeaea;
326
- padding: 5px !important;
327
- background-color:#FAFAFA
328
  }
329
- .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
330
- background-color: #eaeaea;
331
- border: 1px solid #eaeaea;
332
- border-radius: 4px;
333
- cursor: default;
334
- float: left;
335
- margin-right: 5px;
336
- margin-top: 5px;
337
- padding: 0 5px;
338
- margin: 0;
339
- margin-right: 5px;
340
  }
341
- .mf-input-wrapper .select2-dropdown{
342
- border: none;
 
343
  }
344
- .mf-input-wrapper .select2-container .select2-selection--multiple{
345
- min-height: inherit;
346
- line-height: inherit;
347
  }
348
- .mf-input-wrapper .select2-container{
349
- box-shadow: none !important;
 
 
 
 
 
 
350
  }
351
- .select2-container--default .select2-results>.select2-results__options {
352
- border-bottom: none !important;
353
- border-left: none !important;
354
- border-right: none !important;
 
 
 
 
 
 
 
 
 
355
  }
 
 
 
 
 
 
356
  .mf-input-switch-control.mf-input-switch.mf-input {
357
  box-shadow: none !important;
358
  vertical-align: -webkit-baseline-middle;
359
  border: none;
360
  padding: 0;
361
  }
362
- .select2-container--default.select2-container--focus .select2-selection--multiple {
363
- border: 1px solid #eaeaea;
364
- }
365
- .mf-input-wrapper ul.select2-results__options .select2-results__option:hover {
366
- background-color: #F0F0F0;
367
- }
368
- .select2-results__options{
369
- border-top: 1px solid #eaeaea;
370
- }
371
  .mf-input-wrapper .range-slider {
372
  display: inline-block;
373
  width: 100%;
374
  }
375
- .mf-input-wrapper .flatpickr-calendar {
376
- bottom: -288px !important;
377
- top: inherit !important;
378
- left: 0 !important;
379
- }
380
- .mf-input-wrapper .flatpickr-calendar.hasTime.noCalendar {
381
- bottom: -50px !important;
382
- top: inherit !important;
383
- left: 0 !important;
384
- }
385
  .mf-input-wrapper .asRange {
386
  width: 100%;
387
  background-color: #F1F4F9;
@@ -418,31 +432,26 @@ div.mf-input-wrapper > textarea.mf-input {
418
  .metform-btn:hover,
419
  .metform-btn:focus {
420
  background-color: #4285f4;
 
421
  outline: none;
422
  }
 
 
 
 
 
 
 
 
423
 
424
- .mf-input-wrapper ul.mf-input-rating {
425
- list-style-type: none;
426
- padding: 0;
427
- margin: 0px;
428
- -moz-user-select: none;
429
- -webkit-user-select: none;
430
- min-height: 28px;
431
- display: inline-block;
432
- vertical-align: middle;
433
- }
434
- .mf-input-wrapper ul.mf-input-rating li.star{
435
- display: inline-block;
436
- line-height: 17px;
437
- cursor: pointer;
438
- }
439
- .mf-input-wrapper .iti{
440
- display: block;
441
- }
442
- .mf-input-wrapper > .iti{
443
  display: inline-block;
444
  width: 100%;
445
- }
446
 
447
  .mf-input-wrapper .iti .mf-input{
448
  width: 100% !important;
@@ -457,8 +466,9 @@ display: none;
457
  display: block;
458
  }
459
 
 
460
  .flatpickr-calendar {
461
- margin-bottom: -8px;
462
  }
463
 
464
  .flatpickr-month {
@@ -466,9 +476,45 @@ display: none;
466
  margin-bottom: 5px;
467
  }
468
 
469
- ul.mf-input.mf-input-rating{
470
- border: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  }
 
 
 
 
 
 
 
 
472
  .mf-input-file-upload{
473
  width: .1px;
474
  height: .1px;
@@ -478,6 +524,7 @@ ul.mf-input.mf-input-rating{
478
  }
479
  .mf-input-file-upload-label {
480
  color: #fff;
 
481
  padding: 5px 15px;
482
  display: inline-flex;
483
  align-items: center;
@@ -503,49 +550,177 @@ ul.mf-input.mf-input-rating{
503
  display: block;
504
  font-size: 14px;
505
  }
506
- .mf-input-multiselect,
507
- .mf-input-select{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
508
  display: none;
509
  }
510
-
511
- .metform-entry-data table.mf-entry-data {
512
- width: 100%;
513
- background-color: #fff;
514
- border: 1px solid #eaf2fa;
515
  }
516
- .metform-entry-data table.mf-entry-data tbody tr.mf-data-label {
517
- background-color: #eaf2fa;
518
  }
519
- .metform-entry-data table.mf-entry-data tbody tr.mf-data-value {
 
520
  background-color: #fff;
 
 
521
  }
522
- .metform-entry-data table.mf-entry-data tbody tr.mf-data-value td.mf-value-space {
523
- width: 20px;
 
 
 
524
  }
525
- .elementor-widget-mf-range .mf-field-error .error {
526
- display: none !important;
527
  }
528
- .mf-input-wrapper .select2 {
529
- width: 100% !important;
530
  }
531
- .mf-input-wrapper #-error{
532
- display: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
533
  }
534
 
535
- /* summary table css */
536
- td.mf-value-space {
537
- border: none;
 
538
  border-width: 0;
539
  }
540
- .mf-input.metform-entry-data.container {
541
- border: none;
 
542
  padding: 0;
 
 
 
 
 
 
 
 
 
 
543
  }
544
- tr.mf-data-value > td {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  border-width: 0;
 
546
  }
547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
 
 
549
  .mf-captcha-input-wrapper.mf-captcha-block > i {
550
  padding-left: 25px;
551
  }
@@ -576,8 +751,148 @@ img.mf-input.mf-captcha-image{
576
  order: 1;
577
  }
578
 
579
- .mf-form-submitting .metform-submit-btn{
580
- box-shadow: 0px 5px 5px 0px rgba(14,14,14,0.3);
581
- background-color: #ccc;
582
- cursor: no-drop;
583
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  position: relative;
18
  display: inline-block;
19
  }
20
+ .mf-input-switch-control > input[type="checkbox"] {
21
+ display: none !important;
22
+ }
23
 
24
  .mf-input-control {
25
  position: absolute;
53
  justify-content: flex-end;
54
  }
55
 
56
+ .metform-form-content {
57
+ position: relative;
58
+ z-index: 0;
 
59
  }
60
+
61
+ /** Response Message **/
62
+ .mf-response-msg-wrap {
63
+ overflow: hidden;
64
+ -webkit-transition: height .45s, opacity .45s, visibility .45s;
65
+ transition: height .45s, opacity .45s, visibility .45s;
66
  }
67
+ .mf-response-msg-wrap[data-show="0"] {
68
+ height: 0 !important;
69
+ opacity: 0;
70
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
71
+ visibility: hidden;
72
+ }
73
+ .mf-response-msg-wrap[data-show="1"] {
74
+ height: auto;
75
+ opacity: 1;
76
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
77
+ visibility: visible;
78
+ }
79
+ .mf-response-msg {
80
+ margin: 0 auto 20px;
81
+ padding: 32px 15px 34px;
82
+ color: #101010;
83
+ background-color: #fff;
84
+ border: 1px solid #101010;
85
+ border-radius: 5px;
86
+ font-size: 20px;
87
+ line-height: 28px;
88
+ text-align: center;
89
+ }
90
+
91
  .mf-input-control-label::before, .custom-file-label, .custom-select {
92
  transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
93
  }
108
  .mf-input-switch label.mf-input-control-label {
109
  display: inline-block;
110
  position: relative;
111
+ margin: 0;
112
  }
113
 
114
  .mf-input-control:checked~.mf-input-control-label::before {
122
  }
123
  .mf-input-switch .mf-input-control:checked~.mf-input-control-label::after {
124
  background-color: #fff;
 
 
 
 
 
 
125
  }
126
  .mf-input-wrapper .mf-input-help{
127
  display: block;
131
  clear: both;
132
  font-weight: 400;
133
  }
134
+ .mf-input-wrapper .mf-input {
135
  width: 100%;
136
+ max-width: 100%;
137
  padding: 12px;
138
  height: auto;
139
  border-width: 1px;
146
  box-sizing: border-box;
147
  transition: all .2s linear;
148
  font-size: 14px;
149
+ line-height: 21px;
150
  }
151
 
152
  .mf-input-wrapper.mf-field-error .mf-input,
171
  color: #c9c1c1;
172
  font-weight: 400;
173
  font-size: 14px;
 
 
 
 
 
 
174
  }
175
+
176
+ .mf-input-wrapper .mf-input-label,
177
+ .mf-repeater-field-label {
 
178
  font-family: "Roboto", Sans-serif;
179
  font-weight: 600;
180
  font-size: 14px;
185
  margin-bottom: 5px;
186
  }
187
  .mf-input-wrapper .mf-input-label,
188
+ .mf-input-wrapper .mf-input {
189
  vertical-align: middle;
190
  }
 
 
 
191
 
192
  div.mf-input-wrapper > textarea.mf-input {
193
  padding: 15px;
203
  display: none;
204
  }
205
  .mf-checkbox-option input[type="checkbox"] + span:before {
206
+ position: relative;
207
  content: "\f0c8";
208
  font-family: "Font Awesome 5 Free" !important;
209
+ font-weight: 500 !important;
210
  display: inline-block;
211
  border: none;
212
  font-size: 18px;
215
  width: 25px;
216
  line-height: 1;
217
  top: 2px;
 
 
218
  }
219
  .mf-checkbox-option input[type="checkbox"] + span{
220
  font-weight: 400;
241
  .mf-radio-option input[type="radio"] + span:before {
242
  content: "\f111";
243
  font-family: "Font Awesome 5 Free" !important;
244
+ font-weight: 500 !important;
245
  display: inline-block;
246
  border: none;
247
  font-size: 18px;
251
  line-height: 1;
252
  top: 2px;
253
  position: relative;
 
254
  }
255
  .mf-radio-option input[type="radio"] + span{
256
  font-weight: 400;
266
  color: #5F7BFF;
267
  }
268
 
269
+ /* Select Widget */
270
+ .mf-input-wrapper .mf-input-select {
271
+ padding: 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
273
 
274
+ .mf-input-select .mf_select__control {
275
+ min-height: 0;
276
+ padding: 12px;
277
+ border-width: 0;
278
+ border-radius: 0;
279
+ box-shadow: none;
280
+ cursor: pointer;
281
+ border-radius: none !Important;
282
+ border: 1px solid #eaeaea;
283
+ background-color: transparent;
284
  }
285
+ .mf-input-select .mf_select__control:hover{
286
+ border: 1px solid #eaeaea;
287
  }
288
+
289
+ .mf-input-select .mf_select__indicator-separator {
290
+ display: none;
 
 
 
 
 
291
  }
292
+
293
+ .mf-input-select .mf_select__value-container,
294
+ .mf-input-select .mf_select__value-container input {
295
+ padding: 0;
 
 
 
296
  }
297
+
298
+ .mf-input-select .mf_select__placeholder {
299
+ margin-left: 0;
300
+ margin-right: 0;
301
+ color: inherit;
 
 
 
 
302
  }
303
 
304
+ .mf-input-select .mf_select__indicators {
305
+ margin-right: 2px;
 
306
  }
307
+ .mf-input-multiselect .mf_multiselect__indicators {
308
+ margin-right: 15px;
309
+ }
310
+ .mf-input-select .mf_select__indicator,
311
+ .mf-input-multiselect .mf_multiselect__dropdown-indicator {
312
  padding: 0;
313
+ border-style: solid;
314
+ border-width: 5px 4px 0;
315
+ border-color: currentColor transparent transparent;
316
  }
317
+ .mf-input-select .mf_select__control--menu-is-open .mf_select__indicator,
318
+ .mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator {
319
+ border-width: 0 4px 5px;
320
+ border-color: transparent transparent currentColor;
321
+ }
322
+ .mf-input-select .mf_select__indicator > svg,
323
+ .mf-input-multiselect .mf_multiselect__dropdown-indicator > svg {
324
+ display: none;
325
+ }
326
+
327
+ .mf-input-select .mf_select__menu {
328
+ width: 100%;
329
+ margin: 0;
330
+ /* border: 1px solid #eaeaea; */
331
+ border-radius: 0;
332
+ box-shadow: none;
333
+ background-color: #fff;
334
+ }
335
+ .mf-input-select .mf_select__menu > div{
336
+ overflow-X: hidden;
337
+ }
338
+ .mf-input-select .mf_select__menu-list {
339
  padding: 0;
 
340
  }
341
+
342
+ .mf-input-select .mf_select__option {
343
+ cursor: pointer;
 
 
 
344
  border: 1px solid #eaeaea;
 
 
345
  }
346
+ .mf-input-select .mf_select__option.mf_select__option--is-selected,
347
+ .mf-input-select .mf_select__option.mf_select__option--is-focused,
348
+ .mf-input-select .mf_select__option:hover {
349
+ background-color: #F0F0F0;
 
 
 
 
 
 
 
350
  }
351
+ .mf-input-select .mf_select__control.mf_select__control--is-focused{
352
+ border-color: #4285f478;
353
+ background-color: #fff;
354
  }
355
+ .mf-input.mf-input-select{
356
+ border: none !important;
357
+ background-color: #FAFAFA;
358
  }
359
+ .mf-input-select .mf_select__single-value {
360
+ position: relative;
361
+ top: 0;
362
+ width: 100%;
363
+ max-width: calc(100% - 22px);
364
+ margin-left: 0;
365
+ margin-right: 0;
366
+ transform: none;
367
  }
368
+
369
+ .mf-input-wrapper select.mf-input-dropdown {
370
+ border: none;
371
+ padding: 15px 25px;
372
+ font-size: 15px;
373
+ font-weight: 500 !important;
374
+ -webkit-appearance: none;
375
+ -moz-appearance: none;
376
+ -o-appearance: none;
377
+ appearance: none;
378
+ border-width: 1px;
379
+ border-style: solid;
380
+ border-color: #eaeaea;
381
  }
382
+ .mf-input-wrapper select.mf-input-dropdown option {
383
+ background-color: #fff;
384
+ color: #222222;
385
+ font-size: 15px;
386
+ }
387
+
388
  .mf-input-switch-control.mf-input-switch.mf-input {
389
  box-shadow: none !important;
390
  vertical-align: -webkit-baseline-middle;
391
  border: none;
392
  padding: 0;
393
  }
394
+
 
 
 
 
 
 
 
 
395
  .mf-input-wrapper .range-slider {
396
  display: inline-block;
397
  width: 100%;
398
  }
 
 
 
 
 
 
 
 
 
 
399
  .mf-input-wrapper .asRange {
400
  width: 100%;
401
  background-color: #F1F4F9;
432
  .metform-btn:hover,
433
  .metform-btn:focus {
434
  background-color: #4285f4;
435
+ text-decoration: none;
436
  outline: none;
437
  }
438
+ button.metform-btn,
439
+ button.metform-btn:not(.toggle) {
440
+ background-color: #4285f4;
441
+ }
442
+ button.metform-btn:hover,
443
+ button.metform-btn:focus {
444
+ background-color: #4285f4;
445
+ }
446
 
447
+ /** Mobile Widget **/
448
+ .mf-input-wrapper .iti{
449
+ display: block;
450
+ }
451
+ .mf-input-wrapper > .iti{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  display: inline-block;
453
  width: 100%;
454
+ }
455
 
456
  .mf-input-wrapper .iti .mf-input{
457
  width: 100% !important;
466
  display: block;
467
  }
468
 
469
+ /** Date Widget **/
470
  .flatpickr-calendar {
471
+ margin-top: 8px;
472
  }
473
 
474
  .flatpickr-month {
476
  margin-bottom: 5px;
477
  }
478
 
479
+ .mf-input-wrapper > .flatpickr-wrapper {
480
+ display: block;
481
+ }
482
+
483
+ .elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,
484
+ .elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar {
485
+ top: 100% !important;
486
+ left: 0 !important;
487
+ }
488
+
489
+ /** Ratings **/
490
+ .mf-ratings {
491
+ display: -webkit-inline-box;
492
+ display: -ms-inline-flexbox;
493
+ display: inline-flex;
494
+ -ms-flex-wrap: wrap;
495
+ flex-wrap: wrap;
496
+ }
497
+ .mf-ratings > input {
498
+ display: none !important;
499
+ }
500
+ .mf-ratings > label {
501
+ cursor: pointer;
502
+ }
503
+ .mf-ratings > label:not(:last-child) {
504
+ margin-right: 5px;
505
+ }
506
+ .mf-ratings.is-selected > label,
507
+ .mf-ratings:not(.is-selected):hover > label {
508
+ color: #ffdb72;
509
  }
510
+ .mf-ratings:not(.is-selected),
511
+ .mf-ratings.is-selected:not(:hover) > input:checked + label ~ label,
512
+ .mf-ratings.is-selected > label:hover ~ label,
513
+ .mf-ratings:not(.is-selected) > label:hover ~ label {
514
+ color: #ccc;
515
+ }
516
+
517
+ /** File Upload **/
518
  .mf-input-file-upload{
519
  width: .1px;
520
  height: .1px;
524
  }
525
  .mf-input-file-upload-label {
526
  color: #fff;
527
+ margin-right: 10px;
528
  padding: 5px 15px;
529
  display: inline-flex;
530
  align-items: center;
550
  display: block;
551
  font-size: 14px;
552
  }
553
+
554
+ /** Select **/
555
+ .mf-input-select,
556
+ .mf-input-multiselect {
557
+ padding: 0;
558
+ cursor: pointer;
559
+ }
560
+ .mf-input.mf-input-multiselect{
561
+ padding: 0 !important;
562
+ box-shadow: none !important;
563
+ border: none !important;
564
+ }
565
+ .mf-input-multiselect .mf_multiselect__control{
566
+ border: 1px solid #eaeaea;
567
+ border-radius: 0;
568
+ background-color: #fafafa;
569
+ cursor: pointer;
570
+ }
571
+ .mf-input-multiselect .mf_multiselect__control:hover,
572
+ .mf-input-multiselect .mf_multiselect__control:focus{
573
+ border: 1px solid #eaeaea;
574
+ outline: none;
575
+ box-shadow: none;
576
+ }
577
+ .mf_multiselect__indicator-separator{
578
  display: none;
579
  }
580
+ .mf_multiselect__option.mf_multiselect__option--is-focused,
581
+ .mf_multiselect__option:hover {
582
+ background-color: #F0F0F0;
 
 
583
  }
584
+ .mf_multiselect__option.mf_multiselect__option--is-focused {
585
+ background-color: #fff;
586
  }
587
+ .mf_multiselect__option{
588
+ border: 1px solid #eaeaea;
589
  background-color: #fff;
590
+ padding: 10px 15px;
591
+ font-size: 15px;
592
  }
593
+ .mf-input-multiselect .mf_multiselect__menu {
594
+ margin: 0;
595
+ border-radius: 0;
596
+ box-shadow: none;
597
+ cursor: pointer;
598
  }
599
+ .mf-input-multiselect .mf_multiselect__menu-list {
600
+ padding: 0;
601
  }
602
+ .mf-input-multiselect .mf_multiselect__placeholder {
603
+ color: #C9C1C1;
604
  }
605
+ .mf_multiselect__menu-notice--no-options {
606
+ border: 1px solid #eaeaea;
607
+ color: #C9C1C1;
608
+ }
609
+ .mf_multiselect__control .mf_multiselect__value-container {
610
+ padding: 8px 12px;
611
+ }
612
+ .mf_multiselect__control .mf_multiselect__value-container > div:last-child {
613
+ height: 25px;
614
+ }
615
+ .mf-input-multiselect .mf_multiselect__multi-value {
616
+ margin: 0 5px 0 0;
617
+ }
618
+ .mf_multiselect__multi-value__remove {
619
+ border-top-left-radius: 0 !important;
620
+ border-bottom-left-radius: 0 !important;
621
+ }
622
+ .mf_multiselect__multi-value__label {
623
+ border-top-right-radius: 0 !important;
624
+ border-bottom-right-radius: 0 !important;
625
+ }
626
+ .mf-input-multiselect .mf_multiselect__input > input {
627
+ min-height: 0;
628
  }
629
 
630
+ /** Summary **/
631
+ .mf-input.mf-input-summary {
632
+ padding: 0;
633
+ background-color: #fff;
634
  border-width: 0;
635
  }
636
+
637
+ .mf-entry-data {
638
+ margin: 0;
639
  padding: 0;
640
+ list-style: none;
641
+ word-break: break-word;
642
+ }
643
+
644
+ .mf-entry-data > li {
645
+ border: 1px solid rgba(0, 0, 0, 0.1);
646
+ }
647
+
648
+ .mf-entry-data > li:not(:last-child) {
649
+ border-bottom-width: 0;
650
  }
651
+
652
+ .mf-entry-data > li > strong {
653
+ display: block;
654
+ padding: 8px;
655
+ background-color: #eaf2fa;
656
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
657
+ }
658
+
659
+ .mf-entry-data > li > span {
660
+ display: block;
661
+ padding: 8px 28px;
662
+ min-height: 42px;
663
+ }
664
+
665
+ /** Range **/
666
+ .elementor-widget-mf-range .mf-field-error .error {
667
+ display: none !important;
668
+ }
669
+
670
+ /** reCAPTCHA **/
671
+ .g-recaptcha > div {
672
+ position: relative;
673
+ z-index: 0;
674
+ }
675
+
676
+ .g-recaptcha > div:before,
677
+ .g-recaptcha > div:after,
678
+ .g-recaptcha > div > div:before,
679
+ .g-recaptcha > div > div:after {
680
+ content: " ";
681
+ position: absolute;
682
+ border-style: solid;
683
+ border-color: #d3d3d3;
684
  border-width: 0;
685
+ z-index: 0;
686
  }
687
 
688
+ .g-recaptcha > div:before {
689
+ top: 0;
690
+ left: 0;
691
+ bottom: 2px;
692
+ border-left-width: 1px;
693
+ }
694
+
695
+ .g-recaptcha > div:after {
696
+ top: 0;
697
+ right: 2px;
698
+ bottom: 2px;
699
+ border-right-width: 1px;
700
+ }
701
+
702
+ .g-recaptcha > div > div:before {
703
+ top: 0;
704
+ left: 0;
705
+ right: 2px;
706
+ border-top-width: 1px;
707
+ }
708
+
709
+ .g-recaptcha > div > div:after {
710
+ left: 0;
711
+ right: 2px;
712
+ bottom: 2px;
713
+ border-bottom-width: 1px;
714
+ }
715
+
716
+ .g-recaptcha + .attr-alert {
717
+ display: none;
718
+ }
719
+ .g-recaptcha:empty + .attr-alert {
720
+ display: block !important;
721
+ }
722
 
723
+ /** Simple Captcha **/
724
  .mf-captcha-input-wrapper.mf-captcha-block > i {
725
  padding-left: 25px;
726
  }
751
  order: 1;
752
  }
753
 
754
+ .mf-refresh-captcha:before {
755
+ content: "\f01e";
756
+ font-family: "Font Awesome 5 Free";
757
+ font-weight: 700;
758
+ font-style: normal;
759
+ cursor: pointer;
760
+ }
761
+
762
+ /** Error Message **/
763
+ .mf-error-message {
764
+ display: block;
765
+ }
766
+
767
+ /** Range Slider **/
768
+ .mf-input-wrapper .input-range__slider {
769
+ -webkit-appearance: none;
770
+ -moz-appearance: none;
771
+ appearance: none;
772
+ background-color: #fff;
773
+ border: 4px solid #000000;
774
+ border-radius: 100%;
775
+ cursor: pointer;
776
+ display: block;
777
+ height: 15px;
778
+ margin-left: -7.5px;
779
+ margin-top: -11px;
780
+ outline: none;
781
+ position: absolute;
782
+ top: 50%;
783
+ -webkit-transition: box-shadow 0.3s ease-out, -webkit-transform 0.3s ease-out;
784
+ transition: box-shadow 0.3s ease-out, -webkit-transform 0.3s ease-out;
785
+ transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
786
+ transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, -webkit-transform 0.3s ease-out;
787
+ width: 15px;
788
+ }
789
+ .mf-input-wrapper .input-range__slider:active {
790
+ /* -webkit-transform: scale(1.3);
791
+ transform: scale(1.3); */
792
+ }
793
+ .mf-input-wrapper .input-range__slider:focus {
794
+ box-shadow: 0 0 0 5px rgba(63, 81, 181, 0.2);
795
+ }
796
+ .input-range--disabled .input-range__slider {
797
+ background: #cccccc;
798
+ border: 1px solid #cccccc;
799
+ box-shadow: none;
800
+ -webkit-transform: none;
801
+ transform: none;
802
+ }
803
+
804
+ .mf-input-wrapper .input-range__slider-container {
805
+ -webkit-transition: left 0.3s ease-out;
806
+ transition: left 0.3s ease-out;
807
+ }
808
+
809
+ .mf-input-wrapper .input-range__label {
810
+ color: #aaaaaa;
811
+ font-family: "Helvetica Neue", san-serif;
812
+ font-size: 0.8rem;
813
+ -webkit-transform: translateZ(0);
814
+ transform: translateZ(0);
815
+ white-space: nowrap;
816
+ }
817
+
818
+ .mf-input-wrapper .input-range__label--min,
819
+ .mf-input-wrapper .input-range__label--max {
820
+ bottom: -1.4rem;
821
+ position: absolute;
822
+ display: none;
823
+ }
824
+
825
+ .mf-input-wrapper .input-range__label--min {
826
+ left: 0;
827
+ }
828
+
829
+ .mf-input-wrapper .input-range__label--max {
830
+ right: 0;
831
+ }
832
+
833
+ .mf-input-wrapper .input-range__label--value {
834
+ position: absolute;
835
+ bottom: 20px;
836
+ }
837
+
838
+ .mf-input-wrapper .input-range__label-container {
839
+ left: -50%;
840
+ position: relative;
841
+ background-color: #000;
842
+ width: 36px;
843
+ height: 20px;
844
+ display: inline-block;
845
+ color: #fff;
846
+ font-size: 12px;
847
+ text-align: center;
848
+ border-radius: 3px;
849
+ }
850
+ .mf-input-wrapper .input-range__label-container:before {
851
+ position: absolute;
852
+ bottom: -3px;
853
+ left: 50%;
854
+ display: inline-block;
855
+ width: 6px;
856
+ height: 6px;
857
+ margin-left: -3px;
858
+ content: "";
859
+ background-color: #000;
860
+ -webkit-transform: rotate(-45deg);
861
+ -ms-transform: rotate(-45deg);
862
+ transform: rotate(-45deg);
863
+ }
864
+ .mf-input-wrapper .input-range__label--max .input-range__label-container {
865
+ left: 50%;
866
+ }
867
+
868
+ .mf-input-wrapper .input-range__track {
869
+ background: #F1F4F9;
870
+ border-radius: 0.3rem;
871
+ cursor: pointer;
872
+ display: block;
873
+ height: 8px;
874
+ position: relative;
875
+ -webkit-transition: left 0.3s ease-out, width 0.3s ease-out;
876
+ transition: left 0.3s ease-out, width 0.3s ease-out;
877
+ }
878
+ .mf-input-wrapper .input-range--disabled .input-range__track {
879
+ background: #F1F4F9;
880
+ }
881
+
882
+ .mf-input-wrapper .input-range__track--background {
883
+ left: 0;
884
+ margin-top: -0.15rem;
885
+ position: absolute;
886
+ right: 0;
887
+ top: 50%;
888
+ }
889
+
890
+ .mf-input-wrapper .input-range__track--active {
891
+ background: #000;
892
+ }
893
+
894
+ .mf-input-wrapper .input-range {
895
+ height: 1rem;
896
+ position: relative;
897
+ width: 100%;
898
+ }
public/assets/js/app.js ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=52)}([function(e,t,n){"use strict";e.exports=n(25)},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){e.exports=n(30)()},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(26)},function(e,t){e.exports=function(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(e,t,n){var r=n(11),o=n(14);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(33);Object.defineProperty(t,"captialize",{enumerable:!0,get:function(){return c(r).default}});var o=n(34);Object.defineProperty(t,"clamp",{enumerable:!0,get:function(){return c(o).default}});var a=n(35);Object.defineProperty(t,"distanceTo",{enumerable:!0,get:function(){return c(a).default}});var i=n(36);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return c(i).default}});var u=n(37);Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return c(u).default}});var l=n(38);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return c(l).default}});var s=n(39);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"length",{enumerable:!0,get:function(){return c(s).default}})},function(e,t,n){"use strict";function r(e){var t=void 0;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,o(e,t,n))}})),e}function o(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),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?r.apply(void 0,t):o.apply(void 0,t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=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}}(),a=n(0),i=l(a),u=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var s={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p()},n}return function(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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||p()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(a.Component);h.propTypes={className:u.default.string,defaultValue:u.default.any,extraWidth:u.default.oneOfType([u.default.number,u.default.string]),id:u.default.string,injectStyles:u.default.bool,inputClassName:u.default.string,inputRef:u.default.func,inputStyle:u.default.object,minWidth:u.default.oneOfType([u.default.number,u.default.string]),onAutosize:u.default.func,onChange:u.default.func,placeholder:u.default.string,placeholderIsMinWidth:u.default.bool,style:u.default.object,value:u.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,l=i(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(l[c]=n[c]);if(r){u=r(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(l[u[f]]=n[u[f]])}}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.formatLabel?e.formatLabel(e.children,e.type):e.children;return r.default.createElement("span",{className:e.classNames[e.type+"Label"]},r.default.createElement("span",{className:e.classNames.labelContainer},t))}i.propTypes={children:o.default.node.isRequired,classNames:o.default.objectOf(o.default.string).isRequired,formatLabel:o.default.func,type:o.default.string.isRequired},e.exports=t.default},function(e,t,n){var r=n(12),o=n(49),a=n(50),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(47).Symbol;e.exports=r},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){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(29),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(0)},function(e,t,n){var r;
7
+ /*!
8
+ Copyright (c) 2017 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */!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 u in r)n.call(r,u)&&r[u]&&e.push(u)}}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,u="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,s=u||l||Function("return this")(),c=Object.prototype.toString,f=s.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]"==c.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 u=o.test(e);return u||a.test(e)?i(e.slice(2),u?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="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,a="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,u=a||i||Function("return this")(),l=Array.prototype,s=Function.prototype,c=Object.prototype,f=u["__core-js_shared__"],d=(n=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",p=s.toString,h=c.hasOwnProperty,m=c.toString,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=l.splice,y=S(u,"Map"),b=S(Object,"create");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 E(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 x(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,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 k(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 S(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!D(e)||(t=e,d&&d in t))&&(function(e){var t=D(e)?m.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)?g:o).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function O(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(O.Cache||x),n}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}w.prototype.clear=function(){this.__data__=b?b(null):{}},w.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},w.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return n===r?void 0:n}return h.call(t,e)?t[e]:void 0},w.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:h.call(t,e)},w.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?r:t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,n=C(t,e);return!(n<0||(n==t.length-1?t.pop():v.call(t,n,1),0))},E.prototype.get=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]},E.prototype.has=function(e){return C(this.__data__,e)>-1},E.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},x.prototype.clear=function(){this.__data__={hash:new w,map:new(y||E),string:new w}},x.prototype.delete=function(e){return k(this,e).delete(e)},x.prototype.get=function(e){return k(this,e).get(e)},x.prototype.has=function(e){return k(this,e).has(e)},x.prototype.set=function(e,t){return k(this,e).set(e,t),this},O.Cache=x,e.exports=O}).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,u="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,s=u||l||Function("return this")(),c=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return s.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]"==c.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 u=o.test(e);return u||a.test(e)?i(e.slice(2),u?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,u,l,s=0,c=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,a=o;return r=o=void 0,s=t,i=e.apply(a,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-s>=a}function w(){var e=p();if(b(e))return E(e);u=setTimeout(w,function(e){var n=t-(e-l);return g?d(n,a-(e-s)):n}(e))}function E(e){return u=void 0,v&&r?y(e):(r=o=void 0,i)}function x(){var e=p(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(w,t),c?y(e):i}(l);if(g)return u=setTimeout(w,t),y(l)}return void 0===u&&(u=setTimeout(w,t)),i}return t=m(t)||0,h(n)&&(c=!!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!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},x.flush=function(){return void 0===u?i:E(p())},x}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",u="[object Boolean]",l="[object Date]",s="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,x=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,S=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[a]=D[i]=D[y]=D[u]=D[b]=D[l]=D[s]=D[c]=D[f]=D[d]=D[p]=D[h]=D[m]=D[g]=D["[object WeakMap]"]=!1;var T="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,M=T||_||Function("return this")(),P=t&&!t.nodeType&&t,F=P&&"object"==typeof n&&n&&!n.nodeType&&n,A=F&&F.exports===P&&T.process,j=function(){try{return A&&A.binding("util")}catch(e){}}(),N=j&&j.isTypedArray;function I(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 L(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function R(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var U,H,W,Y=Array.prototype,$=Function.prototype,K=Object.prototype,q=M["__core-js_shared__"],Q=(U=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",G=$.toString,X=K.hasOwnProperty,J=K.toString,Z=RegExp("^"+G.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=M.Symbol,te=M.Uint8Array,ne=K.propertyIsEnumerable,re=Y.splice,oe=(H=Object.keys,W=Object,function(e){return H(W(e))}),ae=Ne(M,"DataView"),ie=Ne(M,"Map"),ue=Ne(M,"Promise"),le=Ne(M,"Set"),se=Ne(M,"WeakMap"),ce=Ne(Object,"create"),fe=He(ae),de=He(ie),pe=He(ue),he=He(le),me=He(se),ge=ee?ee.prototype:void 0,ve=ge?ge.valueOf:void 0,ye=ge?ge.toString:void 0;function be(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 we(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 Ee(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 xe(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ee;++t<n;)this.add(e[t])}function Ce(e){this.__data__=new we(e)}function ke(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}be.prototype.clear=function(){this.__data__=ce?ce(null):{}},be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},be.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===r?void 0:n}return X.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:X.call(t,e)},be.prototype.set=function(e,t){return this.__data__[e]=ce&&void 0===t?r:t,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0||(n==t.length-1?t.pop():re.call(t,n,1),0))},we.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},we.prototype.has=function(e){return ke(this.__data__,e)>-1},we.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new be,map:new(ie||we),string:new be}},Ee.prototype.delete=function(e){return je(this,e).delete(e)},Ee.prototype.get=function(e){return je(this,e).get(e)},Ee.prototype.has=function(e){return je(this,e).has(e)},Ee.prototype.set=function(e,t){return je(this,e).set(e,t),this},xe.prototype.add=xe.prototype.push=function(e){return this.__data__.set(e,r),this},xe.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.clear=function(){this.__data__=new we},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof we){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ee(r)}return n.set(e,t),this};var Se,Oe=(Se=function(e,t){return e&&De(e,t,tt)},function(e,t){if(null==e)return e;if(!qe(e))return Se(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),De=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var u=a[++r];if(!1===t(o[u],u,o))break}return e};function Te(e,t){for(var n=0,r=(t=Re(t,e)?[t]:Fe(t)).length;null!=e&&n<r;)e=e[Ue(t[n++])];return n&&n==r?e:void 0}function _e(e,t){return null!=e&&t in Object(e)}function Me(e,t,n,r,o){return e===t||(null==e||null==t||!Xe(e)&&!Je(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var w=Ke(e),E=Ke(t),x=i,C=i;w||(x=(x=Ie(e))==a?p:x),E||(C=(C=Ie(t))==a?p:C);var k=x==p&&!V(e),S=C==p&&!V(t),O=x==C;if(O&&!k)return c||(c=new Ce),w||et(e)?Ae(e,t,n,r,o,c):function(e,t,n,r,o,a,i){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!r(new te(e),new te(t)));case u:case l:case d:return Ye(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case g:return e==t+"";case f:var c=z;case m:var p=2&a;if(c||(c=B),e.size!=t.size&&!p)return!1;var w=i.get(e);if(w)return w==t;a|=1,i.set(e,t);var E=Ae(c(e),c(t),r,o,a,i);return i.delete(e),E;case v:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,x,n,r,o,c);if(!(2&o)){var D=k&&X.call(e,"__wrapped__"),T=S&&X.call(t,"__wrapped__");if(D||T){var _=D?e.value():e,M=T?t.value():t;return c||(c=new Ce),n(_,M,r,o,c)}}return!!O&&(c||(c=new Ce),function(e,t,n,r,o,a){var i=2&o,u=tt(e),l=u.length;if(l!=tt(t).length&&!i)return!1;for(var s=l;s--;){var c=u[s];if(!(i?c in t:X.call(t,c)))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;++s<l;){var h=e[c=u[s]],m=t[c];if(r)var g=i?r(m,h,c,t,e,a):r(h,m,c,e,t,a);if(!(void 0===g?h===m||n(h,m,r,o,a):g)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,c))}(e,t,Me,n,r,o))}function Pe(e){return"function"==typeof e?e:null==e?nt:"object"==typeof e?Ke(e)?function(e,t){return Re(e)&&Ve(t)?ze(Ue(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Te(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=Re(t,e)?[t]:Fe(t)).length;++o<a;){var i=Ue(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&Ge(a)&&Le(i,a)&&(Ke(e)||$e(e))}(e,t,_e)}(n,e):Me(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=tt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ve(o)]}return t}(e);return 1==t.length&&t[0][2]?ze(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 u=(i=n[o])[0],l=e[u],s=i[1];if(i[2]){if(void 0===l&&!(u in e))return!1}else{var c,f=new Ce;if(!(void 0===c?Me(s,l,r,3,f):c))return!1}}return!0}(n,0,t)}}(e):Re(t=e)?(n=Ue(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Te(t,e)}}(t);var t,n}function Fe(e){return Ke(e)?e:Be(e)}function Ae(e,t,n,r,o,a){var i=2&o,u=e.length,l=t.length;if(u!=l&&!(i&&l>u))return!1;var s=a.get(e);if(s&&a.get(t))return s==t;var c=-1,f=!0,d=1&o?new xe:void 0;for(a.set(e,t),a.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var m=i?r(h,p,c,t,e,a):r(p,h,c,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!L(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 je(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 Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Xe(e)||function(e){return!!Q&&Q in e}(e))&&(Qe(e)||V(e)?Z:S).test(He(e))}(n)?n:void 0}var Ie=function(e){return J.call(e)};function Le(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t){if(Ke(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ze(e))||E.test(e)||!w.test(e)||null!=t&&e in Object(t)}function Ve(e){return e==e&&!Xe(e)}function ze(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(ae&&Ie(new ae(new ArrayBuffer(1)))!=b||ie&&Ie(new ie)!=f||ue&&"[object Promise]"!=Ie(ue.resolve())||le&&Ie(new le)!=m||se&&"[object WeakMap]"!=Ie(new se))&&(Ie=function(e){var t=J.call(e),n=t==p?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case fe:return b;case de:return f;case pe:return"[object Promise]";case he:return m;case me:return"[object WeakMap]"}return t});var Be=We((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ze(e))return ye?ye.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return x.test(e)&&n.push(""),e.replace(C,(function(e,t,r,o){n.push(r?o.replace(k,"$1"):t||e)})),n}));function Ue(e){if("string"==typeof e||Ze(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function He(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function We(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(We.Cache||Ee),n}function Ye(e,t){return e===t||e!=e&&t!=t}function $e(e){return function(e){return Je(e)&&qe(e)}(e)&&X.call(e,"callee")&&(!ne.call(e,"callee")||J.call(e)==a)}We.Cache=Ee;var Ke=Array.isArray;function qe(e){return null!=e&&Ge(e.length)&&!Qe(e)}function Qe(e){var t=Xe(e)?J.call(e):"";return t==c||"[object GeneratorFunction]"==t}function Ge(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Xe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return!!e&&"object"==typeof e}function Ze(e){return"symbol"==typeof e||Je(e)&&J.call(e)==v}var et=N?function(e){return function(t){return e(t)}}(N):function(e){return Je(e)&&Ge(e.length)&&!!D[J.call(e)]};function tt(e){return qe(e)?function(e,t){var n=Ke(e)||$e(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&&!X.call(e,a)||o&&("length"==a||Le(a,r))||n.push(a);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||K))return oe(e);var t,n,r=[];for(var o in Object(e))X.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function nt(e){return e}n.exports=function(e,t,n){var r=Ke(e)?I:R,o=arguments.length<3;return r(e,Pe(t),n,o,Oe)}}).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,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){return function(e){if(Array.isArray(e))return e}(e)||o(e)||function(){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 l(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 s(e){return(s="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 c(e){return(c="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var h=n(0),m=n.n(h),g=n(5),v=n.n(g),y=n(4),b=n.n(y),w=n(6),E=n.n(w),x=n(2),C=n.n(x),k=n(1),S=n.n(k),O=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["American Samoa",["oceania"],"as","1684"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Anguilla",["america","carribean"],"ai","1264"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","... ... ..."],["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"],["Bermuda",["america","north-america"],"bm","1441"],["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"],["British Virgin Islands",["america","carribean"],"vg","1284"],["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],["Cayman Islands",["america","carribean"],"ky","1345"],["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"],["Cook Islands",["oceania"],"ck","682"],["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"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["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"],["Gibraltar",["europe"],"gi","350"],["Greece",["europe","eu-union"],"gr","30"],["Greenland",["america"],"gl","299"],["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"],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Montserrat",["america","carribean"],"ms","1664"],["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"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["North Korea",["asia"],"kp","850"],["Northern Mariana Islands",["oceania"],"mp","1670"],["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 Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["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","....-...."],["Sint Maarten",["america","carribean"],"sx","1721"],["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"],["Tokelau",["oceania"],"tk","690"],["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"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["Tuvalu",["asia"],"tv","688"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["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"],["Wallis and Futuna",["oceania"],"wf","681"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]];function D(e,t,n,r,o){return!n||o?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function T(e,t,n,o){var i,u;return u="boolean"==typeof e,(i=[]).concat.apply(i,a(O.map((function(a){var i={name:a[0],regions:a[1],iso2:a[2],dialCode:a[3],format:D(t,a[3],a[4],n,o),priority:a[5]||0,hasAreaCodes:!!a[6]},l=[];return a[6]&&(u||e.includes(a[2]))&&a[6].map((function(e){var t=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}({},i);t.regions=a[1],t.dialCode=a[3]+e,t.isAreaCode=!0,l.push(t)})),l.length>0?(i.mainCode=!0,[i].concat(l)):[i]}))))}var _=function e(t,n,r,o,a,i,l,s,c,f,d,p,h){var m=this;u(this,e),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.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.extendCountries=function(e,t,n,r,o){for(var a=0;a<e.length;a++)void 0!==t[e[a].iso2]?e[a].localName=t[e[a].iso2]:void 0!==t[e[a].name]&&(e[a].localName=t[e[a].name]),void 0!==n[e[a].iso2]?e[a].format=n[e[a].iso2]:void 0!==n[e[a].name]&&(e[a].format=n[e[a].name]);if(Object.keys(r).length>0){var i=function(){for(var t=[],n=null,a=0;a<e.length;a++)if(t.push(e[a]),void 0!==r[e[a].iso2]){if(n||(n=e[a]),e[a+1]&&e[a+1].iso2===n.iso2)continue;m.getCustomAreas(n,r[e[a].iso2]).forEach((function(e){t.push(e)})),n=null}else if(void 0!==r[e[a].name]){if(n||(n=e[a]),e[a+1]&&e[a+1].iso2===n.iso2)continue;m.getCustomAreas(n,r[e[a].name]).forEach((function(e){t.push(e)})),n=null}return{v:m.modifyPriority(t,o)}}();if("object"==typeof i)return i.v}return m.modifyPriority(e,o)},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.modifyPriority=function(e,t){if(t){var n=Object.keys(t);e.forEach((function(e){n.includes(e.iso2)&&Object.keys(t).forEach((function(n){n===e.iso2&&(e.priority=t[n])}))}))}return e},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var g=t?T(t,f,d,p):function(e,t,n){return O.map((function(r){return{name:r[0],regions:r[1],iso2:r[2],dialCode:r[3],format:D(e,r[3],r[4],t,n),priority:r[5]||0}}))}(f,d,p);n&&(g=this.filterRegions(n,g)),this.onlyCountries=this.excludeCountries(this.extendCountries(this.getFilteredCountryList(r,g,i.includes("onlyCountries")),l,s,c,h),a),this.preferredCountries=0===o.length?[]:this.extendCountries(this.getFilteredCountryList(o,g,i.includes("preferredCountries")),l,s,c,h)},M=function(e){function t(e){var n;u(this,t),(n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?f(e):t}(this,d(t).call(this,e))).getProbableCandidate=b()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return C()(t.name.toLowerCase(),e.toLowerCase())}),f(f(n)))[0]:null})),n.guessSelectedCountry=b()((function(e,t,r){var o=t.find((function(e){return e.iso2==r}));if(""===e.trim())return o;var a=t.reduce((function(t,n){if(C()(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},f(f(n)));return a.name?a:o})),n.updateCountry=function(e){var t;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?n.state.onlyCountries.find((function(t){return t.dialCode==+e})):n.state.onlyCountries.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({country:e,selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.props.prefix+t.dialCode})},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,u=e,l=u.getBoundingClientRect(),s=u.offsetHeight,c=l.top+document.body.scrollTop,f=c+s,d=c-a+r.scrollTop,p=o/2-s/2;if(n.props.enableSearch?c<a+32:c<a)t&&(d-=p),r.scrollTop=d;else if(f>i){t&&(d+=p);var h=o-s;r.scrollTop=d-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){var r,o=n.props,a=o.disableCountryCode,u=o.enableLongNumbers,l=o.autoFormat;if(a&&t?((r=t.split(" ")).shift(),r=r.join(" ")):r=t,!e||0===e.length)return a?"":n.props.prefix;if(e&&e.length<2||!r||!l)return a?e:n.props.prefix+e;var s,c=E()(r,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n=i(e.remainingText),r=n[0],o=n.slice(1);return{formattedText:e.formattedText+r,remainingText:o}}),{formattedText:"",remainingText:e.split("")});return(s=u?c.formattedText+c.remainingText.join(""):c.formattedText).includes("(")&&!s.includes(")")&&(s+=")"),s},n.cursorToEnd=function(){var e=n.numberInputRef;e.focus();var t=e.value.length;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(){if(n.state.showDropdown||!n.props.disabled){var e,t=n.state,r=t.preferredCountries,o=t.selectedCountry,a=r.concat(n.state.onlyCountries);e=r.includes(o)?r.findIndex((function(e){return e==o})):n.props.enableAreaCodes?a.findIndex((function(e){return e==o})):a.findIndex((function(e){return e.iso2==o.iso2})),n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:e},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=n.props.disableCountryCode?"":n.props.prefix,r=n.state.selectedCountry,o=n.state.freezeSelection;if(!n.props.countryCodeEditable){var a=r.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===r.iso2&&e.mainCode})).dialCode:r.dialCode,i=n.props.prefix+a;if(e.target.value.slice(0,i.length)!==i)return}if(!(e.target.value.replace(/\D/g,"").length>15)&&e.target.value!==n.state.formattedNumber){if(e.preventDefault?e.preventDefault():e.returnValue=!1,n.props.onChange&&e.persist(),e.target.value.length>0){var u=e.target.value.replace(/\D/g,"");(!n.state.freezeSelection||n.state.selectedCountry.dialCode.length>u.length)&&(r=n.guessSelectedCountry(u.substring(0,6),n.state.onlyCountries,n.state.country)||n.state.selectedCountry,o=!1),t=r?n.formatNumber(u,r.format):u,r=r.dialCode?r:n.state.selectedCountry}var l=e.target.selectionStart,s=n.state.formattedNumber,c=t.length-s.length;n.setState({formattedNumber:t,freezeSelection:o,selectedCountry:r},(function(){c>0&&(l-=c),")"==t.charAt(t.length-1)?n.numberInputRef.setSelectionRange(t.length-1,t.length-1):l>0&&s.length>=t.length&&n.numberInputRef.setSelectionRange(l,l),n.props.onChange&&n.props.onChange(n.state.formattedNumber,n.getCountryData(),e)}))}},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){var t=n.state.selectedCountry,r=n.state.onlyCountries.find((function(t){return t==e}));if(r){var o=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=o.length>1?o.replace(t.dialCode,r.dialCode):r.dialCode,i=n.formatNumber(a.replace(/\D/g,""),r.format);n.setState({showDropdown:!1,selectedCountry:r,freezeSelection:!0,formattedNumber:i},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(i.replace(/[^0-9]+/g,""),n.getCountryData())}))}},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("flag-dropdown")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick();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: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.keys;e.which===t.ENTER&&n.props.onEnterKeyPress(e),n.props.onKeyDown&&n.props.onKeyDown(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 u=n.state.onlyCountries;i=o.concat(u).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,u=t.concat(r),l=o.trim().toLowerCase();if(i&&l){var s=u.filter((function(e){e.name,e.localName;var t=e.iso2;return e.dialCode,["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))})),c=u.filter((function(e){var t=e.name,r=e.localName,o=(e.iso2,e.dialCode);return["".concat(t),"".concat(r),n.props.prefix+o].some((function(e){return e.toLowerCase().includes(l)}))}));return n.scrollToTop(),a(new Set([].concat(s,c)))}return u},n.getCountryDropdownList=function(){var e,t=n.state,o=t.preferredCountries,a=t.highlightCountryIndex,i=t.showDropdown,u=t.searchValue,l=n.props,s=l.enableSearch,c=l.disableSearchIcon,f=l.searchClass,d=l.searchStyle,p=l.searchPlaceholder,h=l.autocompleteSearch,g=n.getSearchFilteredCountries().map((function(e,t){var r=S()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:a===t}),o="flag ".concat(e.iso2);return m.a.createElement("li",{ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:r,"data-dial-code":"1",tabIndex:n.props.tabIndex,"data-country-code":e.iso2,onClick:function(){return n.handleFlagItemClick(e)}},m.a.createElement("div",{className:o}),m.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),m.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e.format):n.props.prefix+e.dialCode))})),v=m.a.createElement("li",{key:"dashes",className:"divider"});o.length>0&&(!s||s&&!u.trim())&&g.splice(o.length,0,v);var y=S()((r(e={},n.props.dropdownClass,!0),r(e,"country-list",!0),r(e,"hide",!i),e));return m.a.createElement("ul",{ref:function(e){return n.dropdownRef=e},className:y,style:n.props.dropdownStyle},s&&m.a.createElement("li",{className:S()(r({search:!0},f,f))},!c&&m.a.createElement("span",{className:S()(r({"search-emoji":!0},"".concat(f,"-emoji"),f)),role:"img","aria-label":"Magnifying glass"},"🔎"),m.a.createElement("input",{className:S()(r({"search-box":!0},"".concat(f,"-box"),f)),style:d,type:"search",placeholder:p,autoFocus:!0,autoComplete:h?"on":"off",value:u,onChange:n.handleSearchChange})),g.length>0?g:m.a.createElement("li",{className:"no-entries-message"},m.a.createElement("span",null,"No entries to show.")))};var o,l=new _(e.enableAreaCodes,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.localization,e.masks,e.areaCodes,e.prefix,e.defaultMask,e.alwaysDefaultMask,e.priority),s=l.onlyCountries,p=l.preferredCountries,h=e.value.replace(/[^0-9\.]+/g,"")||"";o=h.length>1?n.guessSelectedCountry(h.substring(0,6),s,e.country)||0:e.country&&s.find((function(t){return t.iso2==e.country}))||0;var g,y=h.length<2&&o&&!C()(h.replace(/\D/g,""),o.dialCode)?o.dialCode:"";g=""===h&&0===o?"":n.formatNumber((e.disableCountryCode?"":y)+h.replace(/\D/g,""),o.name?o.format:void 0);var w=s.findIndex((function(e){return e==o}));return n.state={formattedNumber:g,onlyCountries:s,preferredCountries:p,country:e.country,selectedCountry:o,highlightCountryIndex:w,queryString:"",showDropdown:!1,freezeSelection:!1,debouncedQueryStingSearcher:v()(n.searchCountry,250),searchValue:""},n}var n,o;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&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){document.addEventListener&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.country&&e.country!==this.state.country?this.updateCountry(e.country):e.value!==this.state.formattedNumber&&this.updateFormattedNumber(e.value)}},{key:"updateFormattedNumber",value:function(e){var t,n=this.state,r=n.onlyCountries,o=n.country,a=e,i=e;if(C()(a,this.props.prefix))a=a.replace(/\D/g,""),i=(t=this.guessSelectedCountry(a.substring(0,6),r,o)||this.state.selectedCountry)?this.formatNumber(a,t.format):a;else{var u=(t=this.state.selectedCountry||r.find((function(e){return e.iso2==o})))&&!C()(a.replace(/\D/g,""),t.dialCode)?t.dialCode:"";i=this.formatNumber((this.props.disableCountryCode?"":u)+a.replace(/\D/g,""),t?t.format:void 0)}this.setState({selectedCountry:t,formattedNumber:i})}},{key:"render",value:function(){var e,t,n=this,o=this.state,a=o.onlyCountries,i=o.selectedCountry,u=o.showDropdown,l=o.formattedNumber,s=this.props,c=s.disableDropdown,f=s.renderStringAsFlag,d=S()({arrow:!0,up:u}),p=S()((r(e={},this.props.inputClass,!0),r(e,"form-control",!0),r(e,"invalid-number",!this.props.isValid(l.replace(/\D/g,""),a)),r(e,"open",u),e)),h=S()({"selected-flag":!0,open:u}),g=S()((r(t={},this.props.buttonClass,!0),r(t,"flag-dropdown",!0),r(t,"open",u),t)),v="flag ".concat(i&&i.iso2);return m.a.createElement("div",{className:this.props.containerClass,style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},m.a.createElement("input",Object.assign({className:p,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:l,ref:function(e){return n.numberInputRef=e},onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps)),m.a.createElement("div",{className:g,style:this.props.buttonStyle,ref:function(e){return n.dropdownContainerRef=e},tabIndex:this.props.tabIndex,role:"button"},f?m.a.createElement("div",{className:h},f):m.a.createElement("div",{onClick:c?void 0:this.handleFlagDropdownClick,className:h,title:i?"".concat(i.name,": + ").concat(i.dialCode):""},m.a.createElement("div",{className:v},!c&&m.a.createElement("div",{className:d}))),u&&this.getCountryDropdownList()))}}])&&l(n.prototype,o),t}(m.a.Component);M.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"react-tel-input",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",autoFormat:!0,enableAreaCodes:!1,isValid:function(e,t){return!0},disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,regions:"",inputProps:{},localization:{},masks:{},areaCodes:{},preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,tabIndex:"0",priority:null,onEnterKeyPress:function(){},keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32}},t.default=M}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=i(n(2)),a=i(n(46));function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=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 s(e,t){if(null==e)return{};var n,r,o=function(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}(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?m(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],b=o.default.oneOfType([o.default.func,o.default.arrayOf(o.default.func)]),w=["onCreate","onDestroy"],E=o.default.func,x=function(e){function t(){var e,n;f(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return v(m(n=p(this,(e=h(t)).call.apply(e,[this].concat(o)))),"createFlatpickrInstance",(function(){var e=c({onClose:function(){n.node.blur&&n.node.blur()}},n.props.options);y.forEach((function(t){n.props[t]&&(e[t]=n.props[t])})),n.flatpickr=(0,a.default)(n.node,e),n.props.hasOwnProperty("value")&&n.flatpickr.setDate(n.props.value,!1);var t=n.props.onCreate;t&&t(n.flatpickr)})),v(m(n),"destroyFlatpickrInstance",(function(){var e=n.props.onDestroy;e&&e(n.flatpickr),n.flatpickr.destroy(),n.flatpickr=null})),v(m(n),"handleNodeChange",(function(e){n.node=e,n.flatpickr&&(n.destroyFlatpickrInstance(),n.createFlatpickrInstance())})),n}var n,o,i;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&&g(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=this;this.props.hasOwnProperty("value")&&this.props.value!==e.value&&this.flatpickr.setDate(this.props.value,!1);var n=this.props.options,r=e.options;y.forEach((function(o){t.props.hasOwnProperty(o)&&(n[o]=t.props[o]),e.hasOwnProperty(o)&&(r[o]=e[o])}));for(var o=Object.getOwnPropertyNames(n),a=o.length-1;a>=0;a--){var i=o[a],u=n[i];u!==r[i]&&(-1===y.indexOf(i)||Array.isArray(u)||(u=[u]),this.flatpickr.set(i,u))}}},{key:"componentDidMount",value:function(){this.createFlatpickrInstance()}},{key:"componentWillUnmount",value:function(){this.destroyFlatpickrInstance()}},{key:"render",value:function(){var e=this.props,t=e.options,n=e.defaultValue,o=e.value,a=e.children,i=e.render,u=s(e,["options","defaultValue","value","children","render"]);return y.forEach((function(e){delete u[e]})),w.forEach((function(e){delete u[e]})),i?i(c({},u,{defaultValue:n,value:o}),this.handleNodeChange):t.wrap?r.default.createElement("div",l({},u,{ref:this.handleNodeChange}),a):r.default.createElement("input",l({},u,{defaultValue:n,ref:this.handleNodeChange}))}}])&&d(n.prototype,o),i&&d(n,i),t}(r.Component);v(x,"propTypes",{defaultValue:o.default.string,options:o.default.object,onChange:b,onOpen:b,onClose:b,onMonthChange:b,onYearChange:b,onReady:b,onValueUpdate:b,onDayCreate:b,onCreate:E,onDestroy:E,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node,className:o.default.string,render:o.default.func}),v(x,"defaultProps",{options:{}});var C=x;t.default=C},function(e,t,n){var r;e.exports=(r=n(0),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";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.startPoint=t,this.control1=n,this.control2=r,this.endPoint=o}return n(e,[{key:"length",value:function(){var e,t,n,r,o,a,i,u,l=0;for(e=0;10>=e;e++)t=e/10,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,u=r-a,l+=Math.sqrt(i*i+u*u)),o=n,a=r;return l}},{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=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),a=r(n(4)),i=r(n(1)),u=r(n(3)),l=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;l=void 0,r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,a);if(void 0!==u){if("value"in u)return u.value;var l=u.get;return void 0===l?void 0:l.call(i)}var s=Object.getPrototypeOf(o);if(null===s)return;e=s,t=a,n=i,r=!0}}(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 function(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)}(t,e),o(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 u.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 i.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,l=(e.x+t.x)/2,s=(e.y+t.y)/2,c=(t.x+n.x)/2,f=(t.y+n.y)/2,d=Math.sqrt(r*r+o*o),p=Math.sqrt(a*a+i*i),h=p/(d+p),m=c+(l-c)*h,g=f+(s-f)*h,v=t.x-m,y=t.y-g;return{c1:new u.default(l+v,s+y),c2:new u.default(c+v,f+y)}}},{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,u,l,s,c,f,d,p,h=this._ctx,m=n-t;for(r=Math.floor(e.length()),h.beginPath(),a=0;r>a;a++)l=(u=(i=a/r)*i)*i,d=(f=(c=(s=1-i)*s)*s)*e.startPoint.x,d+=3*c*i*e.control1.x,d+=3*s*u*e.control2.x,d+=l*e.endPoint.x,p=f*e.startPoint.y,p+=3*c*i*e.control1.y,p+=3*s*u*e.control2.y,p+=l*e.endPoint.y,o=t+l*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 a.default.createElement("div",{id:"signature-pad",className:"m-signature-pad"},a.default.createElement("div",{className:"m-signature-pad--body"},a.default.createElement("canvas",{ref:"cv"})),this.props.clearButton&&a.default.createElement("div",{className:"m-signature-pad--footer"},a.default.createElement("button",{className:"btn btn-default button clear",onClick:this.clear.bind(this)},"Clear")))}}]),t}(a.default.Component);t.default=l,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.x=t,this.y=n,this.time=r||(new Date).getTime()}return n(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=r,e.exports=t.default},function(e,t){e.exports=r}]))},function(e,t,n){"use strict";
12
+ /*!
13
+ * MoveTo - A lightweight scroll animation javascript library without any dependency.
14
+ * Version 1.8.2 (28-06-2019 14:30)
15
+ * Licensed under MIT
16
+ * Copyright 2019 Hasan Aydoğdu <hsnaydd@gmail.com>
17
+ */var r=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,r){return e/=r,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function r(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function o(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,r),this.easeFunctions=n({easeOutQuart:t},o)}return o.prototype.registerTrigger=function(e,t){var r=this;if(e){var o=e.getAttribute("href")||e.getAttribute("data-target"),a=o&&"#"!==o?document.getElementById(o.substring(1)):document.body,i=n(this.options,function(e,t){var n={};return Object.keys(t).forEach((function(t){var r=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))));r&&(n[t]=isNaN(r)?r:parseInt(r,10))})),n}(e,this.options));"function"==typeof t&&(i.callback=t);var u=function(e){e.preventDefault(),r.move(a,i)};return e.addEventListener("click",u,!1),function(){return e.removeEventListener("click",u,!1)}}},o.prototype.move=function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){o=n(this.options,o);var a,i="number"==typeof e?e:e.getBoundingClientRect().top,u=r(o.container),l=null;i-=o.tolerance;var s=function n(s){var c=r(t.options.container);l||(l=s-1);var f=s-l;if(a&&(i>0&&a>c||i<0&&a<c))return o.callback(e);a=c;var d=t.easeFunctions[o.easing](f,u,i,o.duration);o.container.scroll(0,d),f<o.duration?window.requestAnimationFrame(n):(o.container.scroll(0,i+u),o.callback(e))};window.requestAnimationFrame(s)}},o.prototype.addEaseFunction=function(e,t){this.easeFunctions[e]=t},o}();e.exports=r},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){var r=n(5);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(11),o=n(51),a=n(14);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";(function(e){
18
+ /**!
19
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
20
+ * @version 1.16.1
21
+ * @license
22
+ * Copyright (c) 2016 Federico Zivolo and contributors
23
+ *
24
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ * of this software and associated documentation files (the "Software"), to deal
26
+ * in the Software without restriction, including without limitation the rights
27
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ * copies of the Software, and to permit persons to whom the Software is
29
+ * furnished to do so, subject to the following conditions:
30
+ *
31
+ * The above copyright notice and this permission notice shall be included in all
32
+ * copies or substantial portions of the Software.
33
+ *
34
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ * SOFTWARE.
41
+ */
42
+ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&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()}),r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:l(u(e))}function s(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?f:c||f}function p(e){if(!e)return document.documentElement;for(var t=d(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"===i(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(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,u,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(u=(i=l).nodeName)||"HTML"!==u&&p(i.firstElementChild)!==i?p(l):l;var s=h(e);return s.host?m(s.host,t):m(e,h(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?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 v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),o=g(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 y(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 b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=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}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=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 S(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=g(e,"top"),r=g(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?w(e.ownerDocument):{},u=a.width||e.clientWidth||o.width,l=a.height||e.clientHeight||o.height,s=e.offsetWidth-u,c=e.offsetHeight-l;if(s||c){var f=i(e);s-=y(f,"x"),c-=y(f,"y"),o.width-=s,o.height-=c}return S(o)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,a=O(e),u=O(t),s=l(e),c=i(t),f=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);n&&o&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var h=S({top:a.top-u.top-f,left:a.left-u.left-p,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-g,h.right-=p-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=v(h,t)),h}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=D(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:g(n),u=t?0:g(n,"left"),l={top:i-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:o,height:a};return S(l)}function _(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===i(e,"position"))return!0;var n=u(e);return!!n&&_(n)}function M(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?M(e):m(e,s(t));if("viewport"===r)a=T(i,o);else{var c=void 0;"scrollParent"===r?"BODY"===(c=l(u(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=D(c,i,o);if("HTML"!==c.nodeName||_(i))a=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;a.top+=f.top-f.marginTop,a.bottom=p+f.top,a.left+=f.left-f.marginLeft,a.right=h+f.left}}var g="number"==typeof(n=n||0);return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function F(e){return e.width*e.height}function A(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=P(n,r,a,o),u={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}},l=Object.keys(u).map((function(e){return k({key:e},u[e],{area:F(u[e])})})).sort((function(e,t){return t.area-e.area})),s=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=s.length>0?s[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?M(t):m(t,s(n));return D(n,o,r)}function N(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 I(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 L(e,t,n){n=n.split("-")[0];var r=N(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",u=a?"left":"top",l=a?"height":"width",s=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[u]=n===u?t[u]-r[s]:t[I(u)],o}function R(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function V(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=R(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&&a(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(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=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=V(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(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(void 0!==document.body.style[a])return a}return null}function H(){return this.state.isDestroyed=!0,B(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[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function Y(e,t,n,r){n.updateBound=r,W(e).addEventListener("resize",n.updateBound,{passive:!0});var o=l(e);return function e(t,n,r,o){var a="BODY"===t.nodeName,i=a?t.ownerDocument.defaultView:t;i.addEventListener(n,r,{passive:!0}),a||e(l(i.parentNode),n,r,o),o.push(i)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(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 q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var G=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=R(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 J=["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"],Z=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function oe(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),u=i.indexOf(R(i,(function(e){return-1!==e.search(/,|\s/)})));i[u]&&-1===i[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,s=-1!==u?[i.slice(0,u).concat([i[u].split(l)[0]]),[i[u].split(l)[1]].concat(i.slice(u+1))]:[i];return(s=s.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 u=void 0;switch(i){case"%p":u=n;break;case"%":case"%r":default:u=r}return S(u)[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){q(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ae={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,u=-1!==["bottom","top"].indexOf(n),l=u?"left":"top",s=u?"width":"height",c={start:C({},l,a[l]),end:C({},l,a[l]+a[s]-i[s])};e.offsets.popper=k({},i,c[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,u=r.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:oe(n,a,i,u),"left"===u?(a.top+=l[0],a.left-=l[1]):"right"===u?(a.top+=l[0],a.left+=l[1]):"top"===u?(a.left+=l[0],a.top-=l[1]):"bottom"===u&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=U("transform"),o=e.instance.popper.style,a=o.top,i=o.left,u=o[r];o.top="",o.left="",o[r]="";var l=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=u,t.boundaries=l;var s=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),C({},n,r)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=k({},c,f[t](e))})),e.offsets.popper=c,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),u=i?"right":"bottom",l=i?"left":"top",s=i?"width":"height";return n[u]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[s]),n[l]>a(r[u])&&(e.offsets.popper[l]=a(r[u])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(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,u=a.popper,l=a.reference,s=-1!==["left","right"].indexOf(o),c=s?"height":"width",f=s?"Top":"Left",d=f.toLowerCase(),p=s?"left":"top",h=s?"bottom":"right",m=N(r)[c];l[h]-m<u[d]&&(e.offsets.popper[d]-=u[d]-(l[h]-m)),l[d]+m>u[h]&&(e.offsets.popper[d]+=l[d]+m-u[h]),e.offsets.popper=S(e.offsets.popper);var g=l[d]+l[c]/2-m/2,v=i(e.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),w=g-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(u[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(C(n={},d,Math.round(w)),C(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=I(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case te:i=[r,o];break;case ne:i=ee(r);break;case re:i=ee(r,!0);break;default:i=t.behavior}return i.forEach((function(u,l){if(r!==u||i.length===l+1)return e;r=e.placement.split("-")[0],o=I(r);var s=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(s.right)>f(c.left)||"right"===r&&f(s.left)<f(c.right)||"top"===r&&f(s.bottom)>f(c.top)||"bottom"===r&&f(s.top)<f(c.bottom),p=f(s.left)<f(n.left),h=f(s.right)>f(n.right),m=f(s.top)<f(n.top),g=f(s.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&h||!y&&"start"===a&&m||!y&&"end"===a&&g),w=!!t.flipVariationsByContent&&(y&&"start"===a&&h||y&&"end"===a&&p||!y&&"start"===a&&g||!y&&"end"===a&&m),E=b||w;(d||v||E)&&(e.flipped=!0,(d||v)&&(r=i[l+1]),E&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=k({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=V(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),u=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(u?o[i?"width":"height"]:0),e.placement=I(t),e.offsets.popper=S(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=R(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=R(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,u=p(e.instance.popper),l=O(u),s={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,u=function(e){return e},l=a(o.width),s=a(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||l%2==s%2?a:i:u,p=t?a:u;return{left:d(l%2==1&&s%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||!G),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=U("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===d?"HTML"===u.nodeName?-u.clientWidth+c.right:-l.width+c.right:c.left,i&&h)s[h]="translate3d("+m+"px, "+g+"px, 0)",s[f]=0,s[d]=0,s.willChange="transform";else{var v="bottom"===f?-1:1,y="right"===d?-1:1;s[f]=g*v,s[d]=m*y,s.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=k({},b,e.attributes),e.styles=k({},s,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Q(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&&Q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=j(o,t,e,n.positionFixed),i=A(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),Q(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ie=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=k({},e.Defaults,i),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(k({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var u=this.options.eventsEnabled;u&&this.enableEventListeners(),this.state.eventsEnabled=u}return x(e,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ie.Utils=("undefined"!=typeof window?window:e).PopperUtils,ie.placements=J,ie.Defaults=ae,t.a=ie}).call(this,n(13))},function(e,t,n){"use strict";
43
+ /** @license React v16.13.0
44
+ * react.production.min.js
45
+ *
46
+ * Copyright (c) Facebook, Inc. and its affiliates.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */var r=n(9),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function E(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var C=x.prototype=new E;C.constructor=x,r(C,w.prototype),C.isPureReactComponent=!0;var k={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,n){var r,o={},i=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:u,props:o,_owner:k.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var _=/\/+/g,M=[];function P(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function A(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case a:case i:l=!0}}if(l)return r(o,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+j(u=t[s],s);l+=e(u,c,r,o)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(u=t.next()).done;)l+=e(u=u.value,c=n+j(u,s++),r,o);else if("object"===u)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(_,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(_,"$&/")+"/"),A(e,I,t=P(t,a,r,o)),F(t)}var R={current:null};function V(){var e=R.current;if(null===e)throw Error(v(321));return e}var z={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,N,t=P(null,null,t,n)),F(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),i=e.key,u=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,l=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)S.call(t,c)&&!O.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:a,type:e.type,key:i,ref:u,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=D,t.createFactory=function(e){var t=D.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return V().useCallback(e,t)},t.useContext=function(e,t){return V().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return V().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return V().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return V().useLayoutEffect(e,t)},t.useMemo=function(e,t){return V().useMemo(e,t)},t.useReducer=function(e,t,n){return V().useReducer(e,t,n)},t.useRef=function(e){return V().useRef(e)},t.useState=function(e){return V().useState(e)},t.version="16.13.0"},function(e,t,n){"use strict";
51
+ /** @license React v16.13.0
52
+ * react-dom.production.min.js
53
+ *
54
+ * Copyright (c) Facebook, Inc. and its affiliates.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */var r=n(0),o=n(9),a=n(27);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));function u(e,t,n,r,o,a,i,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var l=!1,s=null,c=!1,f=null,d={onError:function(e){l=!0,s=e}};function p(e,t,n,r,o,a,i,c,f){l=!1,s=null,u.apply(d,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,a,u,d,h){if(p.apply(this,arguments),l){if(!l)throw Error(i(198));var m=s;l=!1,s=null,c||(c=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;y.hasOwnProperty("ReactCurrentDispatcher")||(y.ReactCurrentDispatcher={current:null}),y.hasOwnProperty("ReactCurrentBatchConfig")||(y.ReactCurrentBatchConfig={suspense:null});var b=/^(.*)[\\\/]/,w="function"==typeof Symbol&&Symbol.for,E=w?Symbol.for("react.element"):60103,x=w?Symbol.for("react.portal"):60106,C=w?Symbol.for("react.fragment"):60107,k=w?Symbol.for("react.strict_mode"):60108,S=w?Symbol.for("react.profiler"):60114,O=w?Symbol.for("react.provider"):60109,D=w?Symbol.for("react.context"):60110,T=w?Symbol.for("react.concurrent_mode"):60111,_=w?Symbol.for("react.forward_ref"):60112,M=w?Symbol.for("react.suspense"):60113,P=w?Symbol.for("react.suspense_list"):60120,F=w?Symbol.for("react.memo"):60115,A=w?Symbol.for("react.lazy"):60116,j=w?Symbol.for("react.block"):60121,N="function"==typeof Symbol&&Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}function L(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case x:return"Portal";case S:return"Profiler";case k:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return"Context.Consumer";case O:return"Context.Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case F:return L(e.type);case j:return L(e.render);case A:if(e=1===e._status?e._result:null)return L(e)}return null}function R(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,a=L(e.type);n=null,r&&(n=L(r.type)),r=a,a="",o?a=" (at "+o.fileName.replace(b,"")+":"+o.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}var V=null,z={};function B(){if(V)for(var e in z){var t=z[e],n=V.indexOf(e);if(!(-1<n))throw Error(i(96,e));if(!H[n]){if(!t.extractEvents)throw Error(i(97,e));for(var r in H[n]=t,n=t.eventTypes){var o=void 0,a=n[r],u=t,l=r;if(W.hasOwnProperty(l))throw Error(i(99,l));W[l]=a;var s=a.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&U(s[o],u,l);o=!0}else a.registrationName?(U(a.registrationName,u,l),o=!0):o=!1;if(!o)throw Error(i(98,r,e))}}}}function U(e,t,n){if(Y[e])throw Error(i(100,e));Y[e]=t,$[e]=t.eventTypes[n].dependencies}var H=[],W={},Y={},$={};function K(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!z.hasOwnProperty(t)||z[t]!==r){if(z[t])throw Error(i(102,t));z[t]=r,n=!0}}n&&B()}var q=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Q=null,G=null,X=null;function J(e){if(e=m(e)){if("function"!=typeof Q)throw Error(i(280));var t=e.stateNode;t&&(t=h(t),Q(e.stateNode,e.type,t))}}function Z(e){G?X?X.push(e):X=[e]:G=e}function ee(){if(G){var e=G,t=X;if(X=G=null,J(e),t)for(e=0;e<t.length;e++)J(t[e])}}function te(e,t){return e(t)}function ne(e,t,n,r,o){return e(t,n,r,o)}function re(){}var oe=te,ae=!1,ie=!1;function ue(){null===G&&null===X||(re(),ee())}function le(e,t,n){if(ie)return e(t,n);ie=!0;try{return oe(e,t,n)}finally{ie=!1,ue()}}var se=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce=Object.prototype.hasOwnProperty,fe={},de={};function pe(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){he[e]=new pe(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];he[t]=new pe(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){he[e]=new pe(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){he[e]=new pe(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){he[e]=new pe(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){he[e]=new pe(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){he[e]=new pe(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){he[e]=new pe(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){he[e]=new pe(e,5,!1,e.toLowerCase(),null,!1)}));var me=/[\-:]([a-z])/g;function ge(e){return e[1].toUpperCase()}function ve(e,t,n,r){var o=he.hasOwnProperty(t)?he[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ce.call(de,e)||!ce.call(fe,e)&&(se.test(e)?de[e]=!0:(fe[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&ve(e,"checked",t,!1)}function Se(e,t){ke(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?De(e,t.type,n):t.hasOwnProperty("defaultValue")&&De(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function De(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function _e(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Me(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Fe(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(me,ge);he[t]=new pe(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(me,ge);he[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(me,ge);he[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){he[e]=new pe(e,1,!1,e.toLowerCase(),null,!1)})),he.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){he[e]=new pe(e,1,!1,e.toLowerCase(),null,!0)}));var je="http://www.w3.org/1999/xhtml",Ne="http://www.w3.org/2000/svg";function Ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Re,Ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ne||"innerHTML"in e)e.innerHTML=t;else{for((Re=Re||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Re.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Be(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},He={},We={};function Ye(e){if(He[e])return He[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}q&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var $e=Ye("animationend"),Ke=Ye("animationiteration"),qe=Ye("animationstart"),Qe=Ye("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(i(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return tt(o),e;if(a===r)return tt(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=a;break}if(l===r){u=!0,r=o,n=a;break}l=l.sibling}if(!u){for(l=a.child;l;){if(l===n){u=!0,n=a,r=o;break}if(l===r){u=!0,r=a,n=o;break}l=l.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(i(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(ot(e,it),at)throw Error(i(95));if(c)throw e=f,c=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!q)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var o=ct.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Dn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,i=e.eventSystemFlags;0===n&&(i|=64);for(var u=null,l=0;l<H.length;l++){var s=H[l];s&&(s=s.extractEvents(r,t,a,o,i))&&(u=rt(u,s))}ut(u)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&Kt(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],wt=null,Et=null,xt=null,Ct=new Map,kt=new Map,St=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Dt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function _t(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=Tt(t,n,r,o,a),null!==t&&(null!==(t=Tn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Dn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Tn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function At(e,t,n){Ft(e)&&n.delete(t)}function jt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Tn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&Ft(wt)&&(wt=null),null!==Et&&Ft(Et)&&(Et=null),null!==xt&&Ft(xt)&&(xt=null),Ct.forEach(At),kt.forEach(At)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,jt)))}function It(e){function t(t){return Nt(t,e)}if(0<bt.length){Nt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Nt(wt,e),null!==Et&&Nt(Et,e),null!==xt&&Nt(xt,e),Ct.forEach(t),kt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Pt(n),null===n.blockedOn&&St.shift()}var Lt={},Rt=new Map,Vt=new Map,zt=["abort","abort",$e,"animationEnd",Ke,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],a="on"+(o[0].toUpperCase()+o.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Vt.set(r,t),Rt.set(r,a),Lt[o]=a}}Bt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(zt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Ut.length;Ht++)Vt.set(Ut[Ht],0);var Wt=a.unstable_UserBlockingPriority,Yt=a.unstable_runWithPriority,$t=!0;function Kt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Vt.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){ae||re();var o=Xt,a=ae;ae=!0;try{ne(o,e,t,n,r)}finally{(ae=a)||ue()}}function Gt(e,t,n,r){Yt(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if($t)if(0<bt.length&&-1<Ot.indexOf(e))e=Tt(null,e,t,n,r),bt.push(e);else{var o=Jt(e,t,n,r);if(null===o)_t(e,r);else if(-1<Ot.indexOf(e))e=Tt(o,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return wt=Mt(wt,e,t,n,r,o),!0;case"dragenter":return Et=Mt(Et,e,t,n,r,o),!0;case"mouseover":return xt=Mt(xt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Ct.set(a,Mt(Ct.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,kt.set(a,Mt(kt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){_t(e,r),e=dt(e,r,null,t);try{le(pt,e)}finally{ft(e)}}}}function Jt(e,t,n,r){if(null!==(n=Dn(n=lt(r)))){var o=Ze(n);if(null===o)n=null;else{var a=o.tag;if(13===a){if(null!==(n=et(o)))return n;n=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{le(pt,e)}finally{ft(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=je;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=$[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function sn(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function pn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function En(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+Cn,Sn="__reactEventHandlers$"+Cn,On="__reactContainere$"+Cn;function Dn(e){var t=e[kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[kn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xn(e);null!==e;){if(n=e[kn])return n;e=xn(e)}return t}n=(e=n).parentNode}return null}function Tn(e){return!(e=e[kn]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _n(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Mn(e){return e[Sn]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Fn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}function An(e,t,n){(t=Fn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)An(n[t],"captured",e);for(t=0;t<n.length;t++)An(n[t],"bubbled",e)}}function Nn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Fn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function In(e){e&&e.dispatchConfig.registrationName&&Nn(e._targetInst,null,e)}function Ln(e){ot(e,jn)}var Rn=null,Vn=null,zn=null;function Bn(){if(zn)return zn;var e,t,n=Vn,r=n.length,o="value"in Rn?Rn.value:Rn.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return zn=o.slice(e,1<t?1-t:void 0)}function Un(){return!0}function Hn(){return!1}function Wn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Un:Hn,this.isPropagationStopped=Hn,this}function Yn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(i(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Kn(e){e.eventPool=[],e.getPooled=Yn,e.release=$n}o(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){this.isPersistent=Un},isPersistent:Hn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return o(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Kn(n),n},Kn(Wn);var qn=Wn.extend({data:null}),Qn=Wn.extend({data:null}),Gn=[9,13,27,32],Xn=q&&"CompositionEvent"in window,Jn=null;q&&"documentMode"in document&&(Jn=document.documentMode);var Zn=q&&"TextEvent"in window&&!Jn,er=q&&(!Xn||Jn&&8<Jn&&11>=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Gn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ir=!1;var ur={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(Xn)e:{switch(e){case"compositionstart":var a=nr.compositionStart;break e;case"compositionend":a=nr.compositionEnd;break e;case"compositionupdate":a=nr.compositionUpdate;break e}a=void 0}else ir?or(e,n)&&(a=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=nr.compositionStart);return a?(er&&"ko"!==n.locale&&(ir||a!==nr.compositionStart?a===nr.compositionEnd&&ir&&(o=Bn()):(Vn="value"in(Rn=r)?Rn.value:Rn.textContent,ir=!0)),a=qn.getPooled(a,t,n,r),o?a.data=o:null!==(o=ar(n))&&(a.data=o),Ln(a),o=a):o=null,(e=Zn?function(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ir)return"compositionend"===e||!Xn&&or(e,t)?(e=Bn(),zn=Vn=Rn=null,ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(nr.beforeInput,t,n,r)).data=e,Ln(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Wn.getPooled(cr.change,e,t,n)).type="change",Z(n),Ln(e),e}var dr=null,pr=null;function hr(e){ut(e)}function mr(e){if(Ee(_n(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function yr(){dr&&(dr.detachEvent("onpropertychange",br),pr=dr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=fr(pr,e,lt(e)),ae)ut(e);else{ae=!0;try{te(hr,e)}finally{ae=!1,ue()}}}function wr(e,t,n){"focus"===e?(yr(),pr=n,(dr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function Er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function xr(e,t){if("click"===e)return mr(t)}function Cr(e,t){if("input"===e||"change"===e)return mr(t)}q&&(vr=st("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:cr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var o=t?_n(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var i=gr;else if(sr(o))if(vr)i=Cr;else{i=Er;var u=wr}else(a=o.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=xr);if(i&&(i=i(e,t)))return fr(i,n,r);u&&u(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&De(o,"number",o.value)}},Sr=Wn.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function Tr(){return Dr}var _r=0,Mr=0,Pr=!1,Fr=!1,Ar=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Tr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=_r;return _r=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mr;return Mr=e.screenY,Fr?"mousemove"===e.type?e.screenY-t:0:(Fr=!0,0)}}),jr=Ar.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Nr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ir={eventTypes:Nr,extractEvents:function(e,t,n,r,o){var a="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(a&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!i&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,i)?(i=t,null!==(t=(t=n.relatedTarget||n.toElement)?Dn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):i=null;if(i===t)return null;if("mouseout"===e||"mouseover"===e)var u=Ar,l=Nr.mouseLeave,s=Nr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=jr,l=Nr.pointerLeave,s=Nr.pointerEnter,c="pointer");if(e=null==i?a:_n(i),a=null==t?a:_n(t),(l=u.getPooled(l,i,n,r)).type=c+"leave",l.target=e,l.relatedTarget=a,(n=u.getPooled(s,t,n,r)).type=c+"enter",n.target=a,n.relatedTarget=e,c=t,(r=i)&&c)e:{for(s=c,i=0,e=u=r;e;e=Pn(e))i++;for(e=0,t=s;t;t=Pn(t))e++;for(;0<i-e;)u=Pn(u),i--;for(;0<e-i;)s=Pn(s),e--;for(;i--;){if(u===s||u===s.alternate)break e;u=Pn(u),s=Pn(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(i=r.alternate)||i!==s);)u.push(r),r=Pn(r);for(r=[];c&&c!==s&&(null===(i=c.alternate)||i!==s);)r.push(c),c=Pn(c);for(c=0;c<u.length;c++)Nn(u[c],"bubbled",l);for(c=r.length;0<c--;)Nn(r[c],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Rr=Object.prototype.hasOwnProperty;function Vr(e,t){if(Lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Rr.call(t,n[r])||!Lr(e[n[r]],t[n[r]]))return!1;return!0}var zr=q&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ur=null,Hr=null,Wr=null,Yr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Ur||Ur!==cn(n)?null:("selectionStart"in(n=Ur)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Vr(Wr,n)?null:(Wr=n,(e=Wn.getPooled(Br.select,Hr,e,t)).type="select",e.target=Ur,Ln(e),e))}var Kr={eventTypes:Br,extractEvents:function(e,t,n,r,o,a){if(!(a=!(o=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Je(o),a=$.onSelect;for(var i=0;i<a.length;i++)if(!o.has(a[i])){o=!1;break e}o=!0}a=!o}if(a)return null;switch(o=t?_n(t):window,e){case"focus":(sr(o)||"true"===o.contentEditable)&&(Ur=o,Hr=t,Wr=null);break;case"blur":Wr=Hr=Ur=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,$r(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return $r(n,r)}return null}},qr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gr=Sr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo=Sr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=Ar.extend({dataTransfer:null}),no=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Tr}),ro=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Ar.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ao={eventTypes:Lt,extractEvents:function(e,t,n,r){var o=Rt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=Gr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=no;break;case $e:case Ke:case qe:e=qr;break;case Qe:e=ro;break;case"scroll":e=Sr;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=jr;break;default:e=Wn}return Ln(t=e.getPooled(o,t,n,r)),t}};if(V)throw Error(i(101));V=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),B(),h=Mn,m=Tn,g=_n,K({SimpleEventPlugin:ao,EnterLeaveEventPlugin:Ir,ChangeEventPlugin:kr,SelectEventPlugin:Kr,BeforeInputEventPlugin:ur});var io=[],uo=-1;function lo(e){0>uo||(e.current=io[uo],io[uo]=null,uo--)}function so(e,t){uo++,io[uo]=e.current,e.current=t}var co={},fo={current:co},po={current:!1},ho=co;function mo(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return null!=(e=e.childContextTypes)}function vo(){lo(po),lo(fo)}function yo(e,t,n){if(fo.current!==co)throw Error(i(168));so(fo,t),so(po,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,L(t)||"Unknown",a));return o({},n,{},r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,ho=fo.current,so(fo,e),so(po,po.current),!0}function Eo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=bo(e,t,ho),r.__reactInternalMemoizedMergedChildContext=e,lo(po),lo(fo),so(fo,e)):lo(po),so(po,n)}var xo=a.unstable_runWithPriority,Co=a.unstable_scheduleCallback,ko=a.unstable_cancelCallback,So=a.unstable_requestPaint,Oo=a.unstable_now,Do=a.unstable_getCurrentPriorityLevel,To=a.unstable_ImmediatePriority,_o=a.unstable_UserBlockingPriority,Mo=a.unstable_NormalPriority,Po=a.unstable_LowPriority,Fo=a.unstable_IdlePriority,Ao={},jo=a.unstable_shouldYield,No=void 0!==So?So:function(){},Io=null,Lo=null,Ro=!1,Vo=Oo(),zo=1e4>Vo?Oo:function(){return Oo()-Vo};function Bo(){switch(Do()){case To:return 99;case _o:return 98;case Mo:return 97;case Po:return 96;case Fo:return 95;default:throw Error(i(332))}}function Uo(e){switch(e){case 99:return To;case 98:return _o;case 97:return Mo;case 96:return Po;case 95:return Fo;default:throw Error(i(332))}}function Ho(e,t){return e=Uo(e),xo(e,t)}function Wo(e,t,n){return e=Uo(e),Co(e,t,n)}function Yo(e){return null===Io?(Io=[e],Lo=Co(To,Ko)):Io.push(e),Ao}function $o(){if(null!==Lo){var e=Lo;Lo=null,ko(e)}Ko()}function Ko(){if(!Ro&&null!==Io){Ro=!0;var e=0;try{var t=Io;Ho(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Io=null}catch(t){throw null!==Io&&(Io=Io.slice(e+1)),Co(To,$o),t}finally{Ro=!1}}}function qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Qo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Go={current:null},Xo=null,Jo=null,Zo=null;function ea(){Zo=Jo=Xo=null}function ta(e){var t=Go.current;lo(Go),e.type._context._currentValue=t}function na(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ra(e,t){Xo=e,Zo=Jo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Mi=!0),e.firstContext=null)}function oa(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jo){if(null===Xo)throw Error(i(308));Jo=t,Xo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jo=Jo.next=t;return e._currentValue}var aa=!1;function ia(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function la(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function sa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ca(e,t){var n=e.alternate;null!==n&&ua(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function fa(e,t,n,r){var a=e.updateQueue;aa=!1;var i=a.baseQueue,u=a.shared.pending;if(null!==u){if(null!==i){var l=i.next;i.next=u.next,u.next=l}i=u,a.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=u))}if(null!==i){l=i.next;var s=a.baseState,c=0,f=null,d=null,p=null;if(null!==l)for(var h=l;;){if((u=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=s):p=p.next=m,u>c&&(c=u)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),al(u,h.suspenseConfig);e:{var g=e,v=h;switch(u=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){s=g.call(m,s,u);break e}s=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(u="function"==typeof(g=v.payload)?g.call(m,s,u):g))break e;s=o({},s,u);break e;case 2:aa=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=a.effects)?a.effects=[h]:u.push(h))}if(null===(h=h.next)||h===l){if(null===(u=a.shared.pending))break;h=i.next=u.next,u.next=l,a.baseQueue=i=u,a.shared.pending=null}}null===p?f=s:p.next=d,a.baseState=f,a.baseQueue=p,il(c),e.expirationTime=c,e.memoizedState=s}}function da(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(i(191,r));r.call(o)}}}var pa=y.ReactCurrentBatchConfig,ha=(new r.Component).refs;function ma(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=$u(),o=pa.suspense;(o=la(r=Ku(r,e,o),o)).payload=t,null!=n&&(o.callback=n),sa(e,o),qu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=$u(),o=pa.suspense;(o=la(r=Ku(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),sa(e,o),qu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=$u(),r=pa.suspense;(r=la(n=Ku(n,e,r),r)).tag=2,null!=t&&(r.callback=t),sa(e,r),qu(e,n)}};function va(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(o,a))}function ya(e,t,n){var r=!1,o=co,a=t.contextType;return"object"==typeof a&&null!==a?a=oa(a):(o=go(t)?ho:fo.current,a=(r=null!=(r=t.contextTypes))?mo(e,o):co),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ba(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function wa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ha,ia(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=oa(a):(a=go(t)?ho:fo.current,o.context=mo(e,a)),fa(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ma(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ga.enqueueReplaceState(o,o.state,null),fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ea=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===ha&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ca(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ol(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=_l(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Dl(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Tl(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=_l(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Dl(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case x:return(t=Ml(t,e.mode,n)).return=e,t}if(Ea(t)||I(t))return(t=Tl(t,e.mode,n,null)).return=e,t;Ca(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===C?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null}if(Ea(n)||I(n))return null!==o?null:f(e,t,n,r,null);Ca(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===C?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ea(r)||I(r))return f(t,e=e.get(n)||null,r,o,null);Ca(t,r)}return null}function m(o,i,u,l){for(var s=null,c=null,f=i,m=i=0,g=null;null!==f&&m<u.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=p(o,f,u[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v,f=g}if(m===u.length)return n(o,f),s;if(null===f){for(;m<u.length;m++)null!==(f=d(o,u[m],l))&&(i=a(f,i,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);m<u.length;m++)null!==(g=h(f,o,m,u[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(o,e)})),s}function g(o,u,l,s){var c=I(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var f=c=null,m=u,g=u=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),u=a(b,u,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(o,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,s))&&(u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),u=a(y,u,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,a,l){var s="object"==typeof a&&null!==a&&a.type===C&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===C){n(e,s.sibling),(r=o(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=o(s,a.props)).ref=xa(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===C?((r=Tl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Dl(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return u(e);case x:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ml(a,e.mode,l)).return=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=_l(a,e.mode,l)).return=e,e=r),u(e);if(Ea(a))return m(e,r,a,l);if(I(a))return g(e,r,a,l);if(c&&Ca(e,a),void 0===a&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Sa=ka(!0),Oa=ka(!1),Da={},Ta={current:Da},_a={current:Da},Ma={current:Da};function Pa(e){if(e===Da)throw Error(i(174));return e}function Fa(e,t){switch(so(Ma,t),so(_a,e),so(Ta,Da),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ta),so(Ta,t)}function Aa(){lo(Ta),lo(_a),lo(Ma)}function ja(e){Pa(Ma.current);var t=Pa(Ta.current),n=Le(t,e.type);t!==n&&(so(_a,e),so(Ta,n))}function Na(e){_a.current===e&&(lo(Ta),lo(_a))}var Ia={current:0};function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ra(e,t){return{responder:e,props:t}}var Va=y.ReactCurrentDispatcher,za=y.ReactCurrentBatchConfig,Ba=0,Ua=null,Ha=null,Wa=null,Ya=!1;function $a(){throw Error(i(321))}function Ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lr(e[n],t[n]))return!1;return!0}function qa(e,t,n,r,o,a){if(Ba=a,Ua=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Va.current=null===e||null===e.memoizedState?vi:yi,e=n(r,o),t.expirationTime===Ba){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(i(301));a+=1,Wa=Ha=null,t.updateQueue=null,Va.current=bi,e=n(r,o)}while(t.expirationTime===Ba)}if(Va.current=gi,t=null!==Ha&&null!==Ha.next,Ba=0,Wa=Ha=Ua=null,Ya=!1,t)throw Error(i(300));return e}function Qa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wa?Ua.memoizedState=Wa=e:Wa=Wa.next=e,Wa}function Ga(){if(null===Ha){var e=Ua.alternate;e=null!==e?e.memoizedState:null}else e=Ha.next;var t=null===Wa?Ua.memoizedState:Wa.next;if(null!==t)Wa=t,Ha=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Ha=e).memoizedState,baseState:Ha.baseState,baseQueue:Ha.baseQueue,queue:Ha.queue,next:null},null===Wa?Ua.memoizedState=Wa=e:Wa=Wa.next=e}return Wa}function Xa(e,t){return"function"==typeof t?t(e):t}function Ja(e){var t=Ga(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=Ha,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var u=o.next;o.next=a.next,a.next=u}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=u=a=null,s=o;do{var c=s.expirationTime;if(c<Ba){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(u=l=f,a=r):l=l.next=f,c>Ua.expirationTime&&(Ua.expirationTime=c,il(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),al(c,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==o);null===l?a=r:l.next=u,Lr(r,t.memoizedState)||(Mi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Za(e){var t=Ga(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{a=e(a,u.action),u=u.next}while(u!==o);Lr(a,t.memoizedState)||(Mi=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ei(e){var t=Qa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:e}).dispatch=mi.bind(null,Ua,e),[t.memoizedState,e]}function ti(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ua.updateQueue)?(t={lastEffect:null},Ua.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ni(){return Ga().memoizedState}function ri(e,t,n,r){var o=Qa();Ua.effectTag|=e,o.memoizedState=ti(1|t,n,void 0,void 0===r?null:r)}function oi(e,t,n,r){var o=Ga();r=void 0===r?null:r;var a=void 0;if(null!==Ha){var i=Ha.memoizedState;if(a=i.destroy,null!==r&&Ka(r,i.deps))return void ti(t,n,a,r)}Ua.effectTag|=e,o.memoizedState=ti(1|t,n,a,r)}function ai(e,t){return ri(516,4,e,t)}function ii(e,t){return oi(516,4,e,t)}function ui(e,t){return oi(4,2,e,t)}function li(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function si(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,2,li.bind(null,t,e),n)}function ci(){}function fi(e,t){return Qa().memoizedState=[e,void 0===t?null:t],e}function di(e,t){var n=Ga();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pi(e,t){var n=Ga();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hi(e,t,n){var r=Bo();Ho(98>r?98:r,(function(){e(!0)})),Ho(97<r?97:r,(function(){var r=za.suspense;za.suspense=void 0===t?null:t;try{e(!1),n()}finally{za.suspense=r}}))}function mi(e,t,n){var r=$u(),o=pa.suspense;o={expirationTime:r=Ku(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Ua||null!==a&&a===Ua)Ya=!0,o.expirationTime=Ba,Ua.expirationTime=Ba;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=a(i,n);if(o.eagerReducer=a,o.eagerState=u,Lr(u,i))return}catch(e){}qu(e,r)}}var gi={readContext:oa,useCallback:$a,useContext:$a,useEffect:$a,useImperativeHandle:$a,useLayoutEffect:$a,useMemo:$a,useReducer:$a,useRef:$a,useState:$a,useDebugValue:$a,useResponder:$a,useDeferredValue:$a,useTransition:$a},vi={readContext:oa,useCallback:fi,useContext:oa,useEffect:ai,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ri(4,2,li.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ri(4,2,e,t)},useMemo:function(e,t){var n=Qa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=mi.bind(null,Ua,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Qa().memoizedState=e},useState:ei,useDebugValue:ci,useResponder:Ra,useDeferredValue:function(e,t){var n=ei(e),r=n[0],o=n[1];return ai((function(){var n=za.suspense;za.suspense=void 0===t?null:t;try{o(e)}finally{za.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ei(!1),n=t[0];return t=t[1],[fi(hi.bind(null,t,e),[t,e]),n]}},yi={readContext:oa,useCallback:di,useContext:oa,useEffect:ii,useImperativeHandle:si,useLayoutEffect:ui,useMemo:pi,useReducer:Ja,useRef:ni,useState:function(){return Ja(Xa)},useDebugValue:ci,useResponder:Ra,useDeferredValue:function(e,t){var n=Ja(Xa),r=n[0],o=n[1];return ii((function(){var n=za.suspense;za.suspense=void 0===t?null:t;try{o(e)}finally{za.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ja(Xa),n=t[0];return t=t[1],[di(hi.bind(null,t,e),[t,e]),n]}},bi={readContext:oa,useCallback:di,useContext:oa,useEffect:ii,useImperativeHandle:si,useLayoutEffect:ui,useMemo:pi,useReducer:Za,useRef:ni,useState:function(){return Za(Xa)},useDebugValue:ci,useResponder:Ra,useDeferredValue:function(e,t){var n=Za(Xa),r=n[0],o=n[1];return ii((function(){var n=za.suspense;za.suspense=void 0===t?null:t;try{o(e)}finally{za.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Za(Xa),n=t[0];return t=t[1],[di(hi.bind(null,t,e),[t,e]),n]}},wi=null,Ei=null,xi=!1;function Ci(e,t){var n=kl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ki(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Si(e){if(xi){var t=Ei;if(t){var n=t;if(!ki(e,t)){if(!(t=En(n.nextSibling))||!ki(e,t))return e.effectTag=-1025&e.effectTag|2,xi=!1,void(wi=e);Ci(wi,n)}wi=e,Ei=En(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,xi=!1,wi=e}}function Oi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wi=e}function Di(e){if(e!==wi)return!1;if(!xi)return Oi(e),xi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=Ei;t;)Ci(e,t),t=En(t.nextSibling);if(Oi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ei=En(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ei=null}}else Ei=wi?En(e.stateNode.nextSibling):null;return!0}function Ti(){Ei=wi=null,xi=!1}var _i=y.ReactCurrentOwner,Mi=!1;function Pi(e,t,n,r){t.child=null===e?Oa(t,null,n,r):Sa(t,e.child,n,r)}function Fi(e,t,n,r,o){n=n.render;var a=t.ref;return ra(t,o),r=qa(e,t,n,r,a,o),null===e||Mi?(t.effectTag|=1,Pi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qi(e,t,o))}function Ai(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Sl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dl(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ji(e,t,i,r,o,a))}return i=e.child,o<a&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(o,r)&&e.ref===t.ref)?qi(e,t,a):(t.effectTag|=1,(e=Ol(i,r)).ref=t.ref,e.return=t,t.child=e)}function ji(e,t,n,r,o,a){return null!==e&&Vr(e.memoizedProps,r)&&e.ref===t.ref&&(Mi=!1,o<a)?(t.expirationTime=e.expirationTime,qi(e,t,a)):Ii(e,t,n,r,a)}function Ni(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ii(e,t,n,r,o){var a=go(n)?ho:fo.current;return a=mo(t,a),ra(t,o),n=qa(e,t,n,r,a,o),null===e||Mi?(t.effectTag|=1,Pi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qi(e,t,o))}function Li(e,t,n,r,o){if(go(n)){var a=!0;wo(t)}else a=!1;if(ra(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ya(t,n,r),wa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var l=i.context,s=n.contextType;"object"==typeof s&&null!==s?s=oa(s):s=mo(t,s=go(n)?ho:fo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||l!==s)&&ba(t,i,r,s),aa=!1;var d=t.memoizedState;i.state=d,fa(t,r,i,o),l=t.memoizedState,u!==r||d!==l||po.current||aa?("function"==typeof c&&(ma(t,n,c,r),l=t.memoizedState),(u=aa||va(t,n,u,r,d,l,s))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=s,r=u):("function"==typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,ua(e,t),u=t.memoizedProps,i.props=t.type===t.elementType?u:Qo(t.type,u),l=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=oa(s):s=mo(t,s=go(n)?ho:fo.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||l!==s)&&ba(t,i,r,s),aa=!1,l=t.memoizedState,i.state=l,fa(t,r,i,o),d=t.memoizedState,u!==r||l!==d||po.current||aa?("function"==typeof c&&(ma(t,n,c,r),d=t.memoizedState),(c=aa||va(t,n,u,r,l,d,s))?(f||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,d,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,d,s)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),i.props=r,i.state=d,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ri(e,t,n,r,a,o)}function Ri(e,t,n,r,o,a){Ni(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return o&&Eo(t,n,!1),qi(e,t,a);r=t.stateNode,_i.current=t;var u=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,u,a)):Pi(e,t,u,a),t.memoizedState=r.state,o&&Eo(t,n,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yo(0,t.context,!1),Fa(e,t.containerInfo)}var zi,Bi,Ui,Hi={dehydrated:null,retryTime:0};function Wi(e,t,n){var r,o=t.mode,a=t.pendingProps,i=Ia.current,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&i)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),so(Ia,1&i),null===e){if(void 0!==a.fallback&&Si(t),u){if(u=a.fallback,(a=Tl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Tl(u,o,n,null)).return=t,a.sibling=n,t.memoizedState=Hi,t.child=a,n}return o=a.children,t.memoizedState=null,t.child=Oa(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,u){if(a=a.fallback,(n=Ol(e,e.pendingProps)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(o=Ol(o,a)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Hi,t.child=n,o}return n=Sa(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=a.fallback,(a=Tl(null,o,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Tl(u,o,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=Hi,t.child=a,n}return t.memoizedState=null,t.child=Sa(t,e,a.children,n)}function Yi(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),na(e.return,t)}function $i(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o,i.lastEffect=a)}function Ki(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Pi(e,t,r.children,n),0!=(2&(r=Ia.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Yi(e,n);else if(19===e.tag)Yi(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Ia,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$i(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===La(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$i(t,!0,n,null,a,t.lastEffect);break;case"together":$i(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function qi(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&il(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ol(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ol(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qi(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gi(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return go(t.type)&&vo(),null;case 3:return Aa(),lo(po),lo(fo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Di(t)||(t.effectTag|=4),null;case 5:Na(t),n=Pa(Ma.current);var a=t.type;if(null!==e&&null!=t.stateNode)Bi(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Pa(Ta.current),Di(t)){r=t.stateNode,a=t.type;var u=t.memoizedProps;switch(r[kn]=t,r[Sn]=u,a){case"iframe":case"object":case"embed":Kt("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)Kt(Ge[e],r);break;case"source":Kt("error",r);break;case"img":case"image":case"link":Kt("error",r),Kt("load",r);break;case"form":Kt("reset",r),Kt("submit",r);break;case"details":Kt("toggle",r);break;case"input":Ce(r,u),Kt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Kt("invalid",r),ln(n,"onChange");break;case"textarea":Pe(r,u),Kt("invalid",r),ln(n,"onChange")}for(var l in on(a,u),e=null,u)if(u.hasOwnProperty(l)){var s=u[l];"children"===l?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):Y.hasOwnProperty(l)&&null!=s&&ln(n,l)}switch(a){case"input":we(r),Oe(r,u,!0);break;case"textarea":we(r),Ae(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Ie(a)),e===un?"script"===a?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(a,{is:r.is}):(e=l.createElement(a),"select"===a&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,a),e[kn]=t,e[Sn]=r,zi(e,t),t.stateNode=e,l=an(a,r),a){case"iframe":case"object":case"embed":Kt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ge.length;s++)Kt(Ge[s],e);s=r;break;case"source":Kt("error",e),s=r;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),s=r;break;case"form":Kt("reset",e),Kt("submit",e),s=r;break;case"details":Kt("toggle",e),s=r;break;case"input":Ce(e,r),s=xe(e,r),Kt("invalid",e),ln(n,"onChange");break;case"option":s=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=o({},r,{value:void 0}),Kt("invalid",e),ln(n,"onChange");break;case"textarea":Pe(e,r),s=Me(e,r),Kt("invalid",e),ln(n,"onChange");break;default:s=r}on(a,s);var c=s;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?nn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Ve(e,f):"children"===u?"string"==typeof f?("textarea"!==a||""!==f)&&ze(e,f):"number"==typeof f&&ze(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Y.hasOwnProperty(u)?null!=f&&ln(n,u):null!=f&&ve(e,u,f,l))}switch(a){case"input":we(e),Oe(e,r,!1);break;case"textarea":we(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?_e(e,!!r.multiple,n,!1):null!=r.defaultValue&&_e(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=sn)}vn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ui(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=Pa(Ma.current),Pa(Ta.current),Di(t)?(n=t.stateNode,r=t.memoizedProps,n[kn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kn]=t,t.stateNode=n)}return null;case 13:return lo(Ia),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Di(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=a,a.nextEffect=u):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ia.current)?Du===wu&&(Du=Eu):(Du!==wu&&Du!==Eu||(Du=xu),0!==Fu&&null!==ku&&(Al(ku,Ou),jl(ku,Fu)))),(n||r)&&(t.effectTag|=4),null);case 4:return Aa(),null;case 10:return ta(t),null;case 17:return go(t.type)&&vo(),null;case 19:if(lo(Ia),null===(r=t.memoizedState))return null;if(a=0!=(64&t.effectTag),null===(u=r.rendering)){if(a)Qi(r,!1);else if(Du!==wu||null!==e&&0!=(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=La(u))){for(t.effectTag|=64,Qi(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=u,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,u=e.dependencies,a.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return so(Ia,1&Ia.current|2),t.child}u=u.sibling}}else{if(!a)if(null!==(e=La(u))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Qi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Qi(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=zo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zo(),n.sibling=null,t=Ia.current,so(Ia,a?1&t|2:1&t),n):null}throw Error(i(156,t.tag))}function Xi(e){switch(e.tag){case 1:go(e.type)&&vo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Aa(),lo(po),lo(fo),0!=(64&(t=e.effectTag)))throw Error(i(285));return e.effectTag=-4097&t|64,e;case 5:return Na(e),null;case 13:return lo(Ia),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Ia),null;case 4:return Aa(),null;case 10:return ta(e),null;default:return null}}function Ji(e,t){return{value:e,source:t,stack:R(t)}}zi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Bi=function(e,t,n,r,a){var i=e.memoizedProps;if(i!==r){var u,l,s=t.stateNode;switch(Pa(Ta.current),e=null,n){case"input":i=xe(s,i),r=xe(s,r),e=[];break;case"option":i=Te(s,i),r=Te(s,r),e=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":i=Me(s,i),r=Me(s,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(s.onclick=sn)}for(u in on(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u)for(l in s=i[u])s.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Y.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(u,c)):"children"===u?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Y.hasOwnProperty(u)?(null!=c&&ln(a,u),e||s===c||(e=[])):(e=e||[]).push(u,c))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Ui=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Zi="function"==typeof WeakSet?WeakSet:Set;function eu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=R(n)),null!==n&&L(n.type),t=t.value,null!==e&&1===e.tag&&L(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function tu(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function nu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(i(163))}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ou(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&da(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}da(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&It(n)))));case 19:case 17:case 20:case 21:return}throw Error(i(163))}function iu(e,t,n){switch("function"==typeof xl&&xl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ho(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){yl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:tu(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:tu(t);break;case 4:cu(e,t,n)}}function uu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&uu(t)}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:{for(var t=e.return;null!==t;){if(lu(t)){var n=t;break e}t=t.return}throw Error(i(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||lu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=sn));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,a=5===o||6===o;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cu(e,t,n){for(var r,o,a=t,u=!1;;){if(!u){u=a.return;e:for(;;){if(null===u)throw Error(i(160));switch(r=u.stateNode,u.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}u=u.return}u=!0}if(5===a.tag||6===a.tag){e:for(var l=e,s=a,c=n,f=s;;)if(iu(l,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(l=r,s=a.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,o=!0,a.child.return=a,a=a.child;continue}}else if(iu(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(u=!1)}a.sibling.return=a.return,a=a.sibling}}function fu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ru(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),an(e,o),t=an(e,r),o=0;o<a.length;o+=2){var u=a[o],l=a[o+1];"style"===u?nn(n,l):"dangerouslySetInnerHTML"===u?Ve(n,l):"children"===u?ze(n,l):ve(n,u,l,t)}switch(e){case"input":Se(n,r);break;case"textarea":Fe(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?_e(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?_e(n,!!r.multiple,r.defaultValue,!0):_e(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,It(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,ju=zo()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,a.style.display=tn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void du(t);case 19:return void du(t);case 17:return}throw Error(i(163))}function du(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zi),t.forEach((function(t){var r=wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var pu="function"==typeof WeakMap?WeakMap:Map;function hu(e,t,n){(n=la(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Iu||(Iu=!0,Lu=r),eu(e,t)},n}function mu(e,t,n){(n=la(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return eu(e,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ru?Ru=new Set([this]):Ru.add(this),eu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gu,vu=Math.ceil,yu=y.ReactCurrentDispatcher,bu=y.ReactCurrentOwner,wu=0,Eu=3,xu=4,Cu=0,ku=null,Su=null,Ou=0,Du=wu,Tu=null,_u=1073741823,Mu=1073741823,Pu=null,Fu=0,Au=!1,ju=0,Nu=null,Iu=!1,Lu=null,Ru=null,Vu=!1,zu=null,Bu=90,Uu=null,Hu=0,Wu=null,Yu=0;function $u(){return 0!=(48&Cu)?1073741821-(zo()/10|0):0!==Yu?Yu:Yu=1073741821-(zo()/10|0)}function Ku(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Bo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Cu))return Ou;if(null!==n)e=qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=qo(e,150,100);break;case 97:case 96:e=qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(i(326))}return null!==ku&&e===Ou&&--e,e}function qu(e,t){if(50<Hu)throw Hu=0,Wu=null,Error(i(185));if(null!==(e=Qu(e,t))){var n=Bo();1073741823===t?0!=(8&Cu)&&0==(48&Cu)?Zu(e):(Xu(e),0===Cu&&$o()):Xu(e),0==(4&Cu)||98!==n&&99!==n||(null===Uu?Uu=new Map([[e,t]]):(void 0===(n=Uu.get(e))||n>t)&&Uu.set(e,t))}}function Qu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ku===o&&(il(t),Du===xu&&Al(o,Ou)),jl(o,t)),o}function Gu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Fl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yo(Zu.bind(null,e));else{var t=Gu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=$u();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Ao&&ko(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yo(Zu.bind(null,e)):Wo(r,Ju.bind(null,e),{timeout:10*(1073741821-t)-zo()}),e.callbackNode=t}}}function Ju(e,t){if(Yu=0,t)return Nl(e,t=$u()),Xu(e),null;var n=Gu(e);if(0!==n){if(t=e.callbackNode,0!=(48&Cu))throw Error(i(327));if(ml(),e===ku&&n===Ou||nl(e,n),null!==Su){var r=Cu;Cu|=16;for(var o=ol();;)try{ll();break}catch(t){rl(e,t)}if(ea(),Cu=r,yu.current=o,1===Du)throw t=Tu,nl(e,n),Al(e,n),Xu(e),t;if(null===Su)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Du,ku=null,r){case wu:case 1:throw Error(i(345));case 2:Nl(e,2<n?2:n);break;case Eu:if(Al(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fl(o)),1073741823===_u&&10<(o=ju+500-zo())){if(Au){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(a=Gu(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(dl.bind(null,e),o);break}dl(e);break;case xu:if(Al(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fl(o)),Au&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(o=Gu(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Mu?r=10*(1073741821-Mu)-zo():1073741823===_u?r=0:(r=10*(1073741821-_u)-5e3,0>(r=(o=zo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vu(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(dl.bind(null,e),r);break}dl(e);break;case 5:if(1073741823!==_u&&null!==Pu){a=_u;var u=Pu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(o=0|u.busyDelayMs,r=(a=zo()-(10*(1073741821-a)-(0|u.timeoutMs||5e3)))<=o?0:o+r-a),10<r){Al(e,n),e.timeoutHandle=bn(dl.bind(null,e),r);break}}dl(e);break;default:throw Error(i(329))}if(Xu(e),e.callbackNode===t)return Ju.bind(null,e)}}return null}function Zu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Cu))throw Error(i(327));if(ml(),e===ku&&t===Ou||nl(e,t),null!==Su){var n=Cu;Cu|=16;for(var r=ol();;)try{ul();break}catch(t){rl(e,t)}if(ea(),Cu=n,yu.current=r,1===Du)throw n=Tu,nl(e,t),Al(e,t),Xu(e),n;if(null!==Su)throw Error(i(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ku=null,dl(e),Xu(e)}return null}function el(e,t){var n=Cu;Cu|=1;try{return e(t)}finally{0===(Cu=n)&&$o()}}function tl(e,t){var n=Cu;Cu&=-2,Cu|=8;try{return e(t)}finally{0===(Cu=n)&&$o()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Su)for(n=Su.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Aa(),lo(po),lo(fo);break;case 5:Na(r);break;case 4:Aa();break;case 13:case 19:lo(Ia);break;case 10:ta(r)}n=n.return}ku=e,Su=Ol(e.current,null),Ou=t,Du=wu,Tu=null,Mu=_u=1073741823,Pu=null,Fu=0,Au=!1}function rl(e,t){for(;;){try{if(ea(),Va.current=gi,Ya)for(var n=Ua.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ba=0,Wa=Ha=Ua=null,Ya=!1,null===Su||null===Su.return)return Du=1,Tu=t,Su=null;e:{var o=e,a=Su.return,i=Su,u=t;if(t=Ou,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&i.mode)){var s=i.alternate;s?(i.memoizedState=s.memoizedState,i.expirationTime=s.expirationTime):i.memoizedState=null}var c=0!=(1&Ia.current),f=a;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var m=f.updateQueue;if(null===m){var g=new Set;g.add(l),f.updateQueue=g}else m.add(l);if(0==(2&f.mode)){if(f.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var v=la(1073741823,null);v.tag=2,sa(i,v)}i.expirationTime=1073741823;break e}u=void 0,i=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new pu,u=new Set,y.set(l,u)):void 0===(u=y.get(l))&&(u=new Set,y.set(l,u)),!u.has(i)){u.add(i);var b=bl.bind(null,o,l,i);l.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((L(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+R(i))}5!==Du&&(Du=2),u=Ji(u,i),f=a;do{switch(f.tag){case 3:l=u,f.effectTag|=4096,f.expirationTime=t,ca(f,hu(f,l,t));break e;case 1:l=u;var w=f.type,E=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Ru||!Ru.has(E)))){f.effectTag|=4096,f.expirationTime=t,ca(f,mu(f,l,t));break e}}f=f.return}while(null!==f)}Su=cl(Su)}catch(e){t=e;continue}break}}function ol(){var e=yu.current;return yu.current=gi,null===e?gi:e}function al(e,t){e<_u&&2<e&&(_u=e),null!==t&&e<Mu&&2<e&&(Mu=e,Pu=t)}function il(e){e>Fu&&(Fu=e)}function ul(){for(;null!==Su;)Su=sl(Su)}function ll(){for(;null!==Su&&!jo();)Su=sl(Su)}function sl(e){var t=gu(e.alternate,e,Ou);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),bu.current=null,t}function cl(e){Su=e;do{var t=Su.alternate;if(e=Su.return,0==(2048&Su.effectTag)){if(t=Gi(t,Su,Ou),1===Ou||1!==Su.childExpirationTime){for(var n=0,r=Su.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}Su.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Su.firstEffect),null!==Su.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Su.firstEffect),e.lastEffect=Su.lastEffect),1<Su.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Su:e.firstEffect=Su,e.lastEffect=Su))}else{if(null!==(t=Xi(Su)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Su.sibling))return t;Su=e}while(null!==Su);return Du===wu&&(Du=5),null}function fl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=Bo();return Ho(99,pl.bind(null,e,t)),null}function pl(e,t){do{ml()}while(null!==zu);if(0!=(48&Cu))throw Error(i(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=fl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ku&&(Su=ku=null,Ou=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var a=Cu;Cu|=32,bu.current=null,mn=$t;var u=pn();if(hn(u)){if("selectionStart"in u)var l={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(l=(l=u.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(s&&0!==s.rangeCount){l=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,m=0,g=0,v=u,y=null;t:for(;;){for(var b;v!==l||0!==c&&3!==v.nodeType||(p=d+c),v!==f||0!==s&&3!==v.nodeType||(h=d+s),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===u)break t;if(y===l&&++m===c&&(p=d),y===f&&++g===s&&(h=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:u,selectionRange:l},$t=!1,Nu=o;do{try{hl()}catch(e){if(null===Nu)throw Error(i(330));yl(Nu,e),Nu=Nu.nextEffect}}while(null!==Nu);Nu=o;do{try{for(u=e,l=t;null!==Nu;){var w=Nu.effectTag;if(16&w&&ze(Nu.stateNode,""),128&w){var E=Nu.alternate;if(null!==E){var x=E.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:su(Nu),Nu.effectTag&=-3;break;case 6:su(Nu),Nu.effectTag&=-3,fu(Nu.alternate,Nu);break;case 1024:Nu.effectTag&=-1025;break;case 1028:Nu.effectTag&=-1025,fu(Nu.alternate,Nu);break;case 4:fu(Nu.alternate,Nu);break;case 8:cu(u,c=Nu,l),uu(c)}Nu=Nu.nextEffect}}catch(e){if(null===Nu)throw Error(i(330));yl(Nu,e),Nu=Nu.nextEffect}}while(null!==Nu);if(x=gn,E=pn(),w=x.focusedElem,l=x.selectionRange,E!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==l&&hn(w)&&(E=l.start,void 0===(x=l.end)&&(x=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(x,w.value.length)):(x=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(x=x.getSelection(),c=w.textContent.length,u=Math.min(l.start,c),l=void 0===l.end?u:Math.min(l.end,c),!x.extend&&u>l&&(c=l,l=u,u=c),c=dn(w,u),f=dn(w,l),c&&f&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((E=E.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),u>l?(x.addRange(E),x.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),x.addRange(E))))),E=[];for(x=w;x=x.parentNode;)1===x.nodeType&&E.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(x=E[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!mn,gn=mn=null,e.current=n,Nu=o;do{try{for(w=e;null!==Nu;){var C=Nu.effectTag;if(36&C&&au(w,Nu.alternate,Nu),128&C){E=void 0;var k=Nu.ref;if(null!==k){var S=Nu.stateNode;switch(Nu.tag){case 5:E=S;break;default:E=S}"function"==typeof k?k(E):k.current=E}}Nu=Nu.nextEffect}}catch(e){if(null===Nu)throw Error(i(330));yl(Nu,e),Nu=Nu.nextEffect}}while(null!==Nu);Nu=null,No(),Cu=a}else e.current=n;if(Vu)Vu=!1,zu=e,Bu=t;else for(Nu=o;null!==Nu;)t=Nu.nextEffect,Nu.nextEffect=null,Nu=t;if(0===(t=e.firstPendingTime)&&(Ru=null),1073741823===t?e===Wu?Hu++:(Hu=0,Wu=e):Hu=0,"function"==typeof El&&El(n.stateNode,r),Xu(e),Iu)throw Iu=!1,e=Lu,Lu=null,e;return 0!=(8&Cu)||$o(),null}function hl(){for(;null!==Nu;){var e=Nu.effectTag;0!=(256&e)&&nu(Nu.alternate,Nu),0==(512&e)||Vu||(Vu=!0,Wo(97,(function(){return ml(),null}))),Nu=Nu.nextEffect}}function ml(){if(90!==Bu){var e=97<Bu?97:Bu;return Bu=90,Ho(e,gl)}}function gl(){if(null===zu)return!1;var e=zu;if(zu=null,0!=(48&Cu))throw Error(i(331));var t=Cu;for(Cu|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ru(5,n),ou(5,n)}}catch(t){if(null===e)throw Error(i(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Cu=t,$o(),!0}function vl(e,t,n){sa(e,t=hu(e,t=Ji(n,t),1073741823)),null!==(e=Qu(e,1073741823))&&Xu(e)}function yl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ru||!Ru.has(r))){sa(n,e=mu(n,e=Ji(t,e),1073741823)),null!==(n=Qu(n,1073741823))&&Xu(n);break}}n=n.return}}function bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ku===e&&Ou===n?Du===xu||Du===Eu&&1073741823===_u&&zo()-ju<500?nl(e,Ou):Au=!0:Fl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xu(e)))}function wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ku(t=$u(),e,null)),null!==(e=Qu(e,t))&&Xu(e)}gu=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||po.current)Mi=!0;else{if(r<n){switch(Mi=!1,t.tag){case 3:Vi(t),Ti();break;case 5:if(ja(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&wo(t);break;case 4:Fa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,so(Go,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wi(e,t,n):(so(Ia,1&Ia.current),null!==(t=qi(e,t,n))?t.sibling:null);so(Ia,1&Ia.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ki(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),so(Ia,Ia.current),!r)return null}return qi(e,t,n)}Mi=!1}}else Mi=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=mo(t,fo.current),ra(t,n),o=qa(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var a=!0;wo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ia(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&ma(t,r,u,e),o.updater=ga,t.stateNode=o,o._reactInternalFiber=t,wa(t,r,e,n),t=Ri(null,t,r,!0,a,n)}else t.tag=0,Pi(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,a=t.tag=function(e){if("function"==typeof e)return Sl(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===F)return 14}return 2}(o),e=Qo(o,e),a){case 0:t=Ii(null,t,o,e,n);break e;case 1:t=Li(null,t,o,e,n);break e;case 11:t=Fi(null,t,o,e,n);break e;case 14:t=Ai(null,t,o,Qo(o.type,e),r,n);break e}throw Error(i(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ii(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Li(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Vi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ua(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===o)Ti(),t=qi(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ei=En(t.stateNode.containerInfo.firstChild),wi=t,o=xi=!0),o)for(n=Oa(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pi(e,t,r,n),Ti();t=t.child}return t;case 5:return ja(t),null===e&&Si(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,yn(r,o)?u=null:null!==a&&yn(r,a)&&(t.effectTag|=16),Ni(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pi(e,t,u,n),t=t.child),t;case 6:return null===e&&Si(t),null;case 13:return Wi(e,t,n);case 4:return Fa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):Pi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fi(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Pi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value;var l=t.type._context;if(so(Go,l._currentValue),l._currentValue=a,null!==u)if(l=u.value,0===(a=Lr(l,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(u.children===o.children&&!po.current){t=qi(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){u=l.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===l.tag&&((c=la(n,null)).tag=2,sa(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),na(l.return,n),s.expirationTime<n&&(s.expirationTime=n);break}c=c.next}}else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}Pi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,ra(t,n),r=r(o=oa(o,a.unstable_observedBits)),t.effectTag|=1,Pi(e,t,r,n),t.child;case 14:return a=Qo(o=t.type,t.pendingProps),Ai(e,t,o,a=Qo(o.type,a),r,n);case 15:return ji(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,wo(t)):e=!1,ra(t,n),ya(t,r,o),wa(t,r,o,n),Ri(null,t,r,!0,e,n);case 19:return Ki(e,t,n)}throw Error(i(156,t.tag))};var El=null,xl=null;function Cl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kl(e,t,n,r){return new Cl(e,t,n,r)}function Sl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ol(e,t){var n=e.alternate;return null===n?((n=kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dl(e,t,n,r,o,a){var u=2;if(r=e,"function"==typeof e)Sl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case C:return Tl(n.children,o,a,t);case T:u=8,o|=7;break;case k:u=8,o|=1;break;case S:return(e=kl(12,n,t,8|o)).elementType=S,e.type=S,e.expirationTime=a,e;case M:return(e=kl(13,n,t,o)).type=M,e.elementType=M,e.expirationTime=a,e;case P:return(e=kl(19,n,t,o)).elementType=P,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:u=10;break e;case D:u=9;break e;case _:u=11;break e;case F:u=14;break e;case A:u=16,r=null;break e;case j:u=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=kl(u,n,t,o)).elementType=e,t.type=r,t.expirationTime=a,t}function Tl(e,t,n,r){return(e=kl(7,e,r,t)).expirationTime=n,e}function _l(e,t,n){return(e=kl(6,e,null,t)).expirationTime=n,e}function Ml(e,t,n){return(t=kl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Fl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Al(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function jl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Nl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Il(e,t,n,r){var o=t.current,a=$u(),u=pa.suspense;a=Ku(a,o,u);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(go(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var s=n.type;if(go(s)){n=bo(n,s,l);break e}}n=l}else n=co;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),sa(o,t),qu(o,a),a}function Ll(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Rl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vl(e,t){Rl(e,t),(e=e.alternate)&&Rl(e,t)}function zl(e,t,n){var r=new Pl(e,t,n=null!=n&&!0===n.hydrate),o=kl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ia(o),e[On]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ot.forEach((function(e){ht(e,t,n)})),Dt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Bl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ul(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var u=o;o=function(){var e=Ll(i);u.call(e)}}Il(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new zl(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Ll(i);l.call(e)}}tl((function(){Il(t,i,e,o)}))}return Ll(i)}function Hl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Bl(t))throw Error(i(200));return Hl(e,t,null,n)}zl.prototype.render=function(e){Il(e,this._internalRoot,null,null)},zl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Il(null,e,null,(function(){t[On]=null}))},mt=function(e){if(13===e.tag){var t=qo($u(),150,100);qu(e,t),Vl(e,t)}},gt=function(e){13===e.tag&&(qu(e,3),Vl(e,3))},vt=function(e){if(13===e.tag){var t=$u();qu(e,t=Ku(t,e,null)),Vl(e,t)}},Q=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Mn(r);if(!o)throw Error(i(90));Ee(r),Se(r,o)}}}break;case"textarea":Fe(e,n);break;case"select":null!=(t=n.value)&&_e(e,!!n.multiple,t,!1)}},te=el,ne=function(e,t,n,r,o){var a=Cu;Cu|=4;try{return Ho(98,e.bind(null,t,n,r,o))}finally{0===(Cu=a)&&$o()}},re=function(){0==(49&Cu)&&(function(){if(null!==Uu){var e=Uu;Uu=null,e.forEach((function(e,t){Nl(t,e),Xu(t)})),$o()}}(),ml())},oe=function(e,t){var n=Cu;Cu|=2;try{return e(t)}finally{0===(Cu=n)&&$o()}};var Yl,$l,Kl={Events:[Tn,_n,Mn,K,W,Ln,function(e){ot(e,In)},Z,ee,Xt,ut,ml,{current:!1}]};$l=(Yl={findFiberByHostInstance:Dn,bundleType:0,version:"16.13.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);El=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},xl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},Yl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return $l?$l(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kl,t.createPortal=Wl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Cu))throw Error(i(187));var n=Cu;Cu|=1;try{return Ho(99,e.bind(null,t))}finally{Cu=n,$o()}},t.hydrate=function(e,t,n){if(!Bl(t))throw Error(i(200));return Ul(null,e,t,!0,n)},t.render=function(e,t,n){if(!Bl(t))throw Error(i(200));return Ul(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Bl(e))throw Error(i(40));return!!e._reactRootContainer&&(tl((function(){Ul(null,null,e,!1,(function(){e._reactRootContainer=null,e[On]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Wl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Bl(n))throw Error(i(200));if(null==e||void 0===e._reactInternalFiber)throw Error(i(38));return Ul(e,t,n,!1,r)},t.version="16.13.0"},function(e,t,n){"use strict";e.exports=n(28)},function(e,t,n){"use strict";
59
+ /** @license React v0.19.0
60
+ * scheduler.production.min.js
61
+ *
62
+ * Copyright (c) Facebook, Inc. and its affiliates.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE file in the root directory of this source tree.
66
+ */var r,o,a,i,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},o=function(e,t){s=setTimeout(e,t)},a=function(){clearTimeout(s)},i=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,w=-1,E=5,x=0;i=function(){return t.unstable_now()>=x},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):E=0<e?Math.floor(1e3/e):5};var C=new MessageChannel,k=C.port2;C.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+E;try{b(!0,e)?k.postMessage(null):(y=!1,b=null)}catch(e){throw k.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,k.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},a=function(){m(w),w=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function O(e){return void 0===(e=e[0])?null:e}function D(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],u=a+1,l=e[u];if(void 0!==i&&0>T(i,n))void 0!==l&&0>T(l,i)?(e[r]=l,e[u]=n,r=u):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],M=[],P=1,F=null,A=3,j=!1,N=!1,I=!1;function L(e){for(var t=O(M);null!==t;){if(null===t.callback)D(M);else{if(!(t.startTime<=e))break;D(M),t.sortIndex=t.expirationTime,S(_,t)}t=O(M)}}function R(e){if(I=!1,L(e),!N)if(null!==O(_))N=!0,r(V);else{var t=O(M);null!==t&&o(R,t.startTime-e)}}function V(e,n){N=!1,I&&(I=!1,a()),j=!0;var r=A;try{for(L(n),F=O(_);null!==F&&(!(F.expirationTime>n)||e&&!i());){var u=F.callback;if(null!==u){F.callback=null,A=F.priorityLevel;var l=u(F.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?F.callback=l:F===O(_)&&D(_),L(n)}else D(_);F=O(_)}if(null!==F)var s=!0;else{var c=O(M);null!==c&&o(R,c.startTime-n),s=!1}return s}finally{F=null,A=r,j=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||j||(N=!0,r(V))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return O(_)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,i){var u=t.unstable_now();if("object"==typeof i&&null!==i){var l=i.delay;l="number"==typeof l&&0<l?u+l:u,i="number"==typeof i.timeout?i.timeout:z(e)}else i=z(e),l=u;return e={id:P++,callback:n,priorityLevel:e,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>u?(e.sortIndex=l,S(M,e),null===O(_)&&e===O(M)&&(I?a():I=!0,o(R,l-u))):(e.sortIndex=i,S(_,e),N||j||(N=!0,r(V))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=O(_);return n!==F&&null!==F&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<F.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=v(n(0)),i=v(n(2)),u=v(n(7)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(32)),s=v(n(40)),c=v(n(10)),f=v(n(41)),d=v(n(42)),p=v(n(43)),h=v(n(44)),m=n(6),g=n(45);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var b=(y((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.startValue=null,n.node=null,n.trackNode=null,n.isSliderDragging=!1,n.lastKeyMoved=null,n}return function(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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{allowSameValues:i.default.bool,ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string),disabled:i.default.bool,draggableTrack:i.default.bool,formatLabel:i.default.func,maxValue:f.default,minValue:f.default,name:i.default.string,onChangeStart:i.default.func,onChange:i.default.func.isRequired,onChangeComplete:i.default.func,step:i.default.number,value:d.default}}},{key:"defaultProps",get:function(){return{allowSameValues:!1,classNames:s.default,disabled:!1,maxValue:10,minValue:0,step:1}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener()}},{key:"getComponentClassName",value:function(){return this.props.disabled?this.props.classNames.disabledInputRange:this.props.classNames.inputRange}},{key:"getTrackClientRect",value:function(){return this.trackNode.getClientRect()}},{key:"getKeyByPosition",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue()),n=l.getPositionsFromValues(t,this.props.minValue,this.props.maxValue,this.getTrackClientRect());if(this.isMultiValue()&&(0,m.distanceTo)(e,n.min)<(0,m.distanceTo)(e,n.max))return"min";return"max"}},{key:"getKeys",value:function(){return this.isMultiValue()?["min","max"]:["max"]}},{key:"hasStepDifference",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue());return(0,m.length)(e.min,t.min)>=this.props.step||(0,m.length)(e.max,t.max)>=this.props.step}},{key:"isMultiValue",value:function(){return(0,m.isObject)(this.props.value)}},{key:"isWithinRange",value:function(e){return this.isMultiValue()?e.min>=this.props.minValue&&e.max<=this.props.maxValue&&this.props.allowSameValues?e.min<=e.max:e.min<e.max:e.max>=this.props.minValue&&e.max<=this.props.maxValue}},{key:"shouldUpdate",value:function(e){return this.isWithinRange(e)&&this.hasStepDifference(e)}},{key:"updatePosition",value:function(e,t){var n=l.getValueFromProps(this.props,this.isMultiValue()),r=l.getPositionsFromValues(n,this.props.minValue,this.props.maxValue,this.getTrackClientRect());r[e]=t,this.lastKeyMoved=e,this.updatePositions(r)}},{key:"updatePositions",value:function(e){var t={min:l.getValueFromPosition(e.min,this.props.minValue,this.props.maxValue,this.getTrackClientRect()),max:l.getValueFromPosition(e.max,this.props.minValue,this.props.maxValue,this.getTrackClientRect())},n={min:l.getStepValueFromValue(t.min,this.props.step),max:l.getStepValueFromValue(t.max,this.props.step)};this.updateValues(n)}},{key:"updateValue",value:function(e,t){var n=l.getValueFromProps(this.props,this.isMultiValue());n[e]=t,this.updateValues(n)}},{key:"updateValues",value:function(e){this.shouldUpdate(e)&&this.props.onChange(this.isMultiValue()?e:e.max)}},{key:"incrementValue",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue())[e]+this.props.step;this.updateValue(e,t)}},{key:"decrementValue",value:function(e){var t=l.getValueFromProps(this.props,this.isMultiValue())[e]-this.props.step;this.updateValue(e,t)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleSliderDrag",value:function(e,t){var n=this;if(!this.props.disabled){var r=l.getPositionFromEvent(e,this.getTrackClientRect());this.isSliderDragging=!0,requestAnimationFrame((function(){return n.updatePosition(t,r)}))}}},{key:"handleTrackDrag",value:function(e,t){if(!this.props.disabled&&this.props.draggableTrack&&!this.isSliderDragging){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,u=a.min,s=l.getPositionFromEvent(e,this.getTrackClientRect()),c=l.getValueFromPosition(s,o,r,this.getTrackClientRect()),f=l.getStepValueFromValue(c,this.props.step),d=l.getPositionFromEvent(t,this.getTrackClientRect()),p=l.getValueFromPosition(d,o,r,this.getTrackClientRect()),h=l.getStepValueFromValue(p,this.props.step)-f,m={min:u-h,max:i-h};this.updateValues(m)}}},{key:"handleSliderKeyDown",value:function(e,t){if(!this.props.disabled)switch(e.keyCode){case g.LEFT_ARROW:case g.DOWN_ARROW:e.preventDefault(),this.decrementValue(t);break;case g.RIGHT_ARROW:case g.UP_ARROW:e.preventDefault(),this.incrementValue(t)}}},{key:"handleTrackMouseDown",value:function(e,t){if(!this.props.disabled){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,u=a.min;e.preventDefault();var s=l.getValueFromPosition(t,o,r,this.getTrackClientRect()),c=l.getStepValueFromValue(s,this.props.step);(!this.props.draggableTrack||c>i||c<u)&&this.updatePosition(this.getKeyByPosition(t),t)}}},{key:"handleInteractionStart",value:function(){this.props.onChangeStart&&this.props.onChangeStart(this.props.value),this.props.onChangeComplete&&!(0,m.isDefined)(this.startValue)&&(this.startValue=this.props.value)}},{key:"handleInteractionEnd",value:function(){this.isSliderDragging&&(this.isSliderDragging=!1),this.props.onChangeComplete&&(0,m.isDefined)(this.startValue)&&(this.startValue!==this.props.value&&this.props.onChangeComplete(this.props.value),this.startValue=null)}},{key:"handleKeyDown",value:function(e){this.handleInteractionStart(e)}},{key:"handleKeyUp",value:function(e){this.handleInteractionEnd(e)}},{key:"handleMouseDown",value:function(e){this.handleInteractionStart(e),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(e){this.handleInteractionEnd(e),this.removeDocumentMouseUpListener()}},{key:"handleTouchStart",value:function(e){this.handleInteractionStart(e),this.addDocumentTouchEndListener()}},{key:"handleTouchEnd",value:function(e){this.handleInteractionEnd(e),this.removeDocumentTouchEndListener()}},{key:"renderSliders",value:function(){var e=this,t=l.getValueFromProps(this.props,this.isMultiValue()),n=l.getPercentagesFromValues(t,this.props.minValue,this.props.maxValue);return(this.props.allowSameValues&&"min"===this.lastKeyMoved?this.getKeys().reverse():this.getKeys()).map((function(r){var o=t[r],i=n[r],u=e.props,l=u.maxValue,s=u.minValue;return"min"===r?l=t.max:s=t.min,a.default.createElement(p.default,{ariaLabelledby:e.props.ariaLabelledby,ariaControls:e.props.ariaControls,classNames:e.props.classNames,formatLabel:e.props.formatLabel,key:r,maxValue:l,minValue:s,onSliderDrag:e.handleSliderDrag,onSliderKeyDown:e.handleSliderKeyDown,percentage:i,type:r,value:o})}))}},{key:"renderHiddenInputs",value:function(){var e=this;if(!this.props.name)return[];var t=this.isMultiValue(),n=l.getValueFromProps(this.props,t);return this.getKeys().map((function(r){var o=n[r],i=t?""+e.props.name+(0,m.captialize)(r):e.props.name;return a.default.createElement("input",{key:r,type:"hidden",name:i,value:o})}))}},{key:"render",value:function(){var e=this,t=this.getComponentClassName(),n=l.getValueFromProps(this.props,this.isMultiValue()),r=l.getPercentagesFromValues(n,this.props.minValue,this.props.maxValue);return a.default.createElement("div",{"aria-disabled":this.props.disabled,ref:function(t){e.node=t},className:t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},a.default.createElement(c.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"min"},this.props.minValue),a.default.createElement(h.default,{classNames:this.props.classNames,draggableTrack:this.props.draggableTrack,ref:function(t){e.trackNode=t},percentages:r,onTrackDrag:this.handleTrackDrag,onTrackMouseDown:this.handleTrackMouseDown},this.renderSliders()),a.default.createElement(c.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"max"},this.props.maxValue),this.renderHiddenInputs())}}]),t}(a.default.Component)).prototype,"handleSliderDrag",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderDrag"),r.prototype),y(r.prototype,"handleTrackDrag",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackDrag"),r.prototype),y(r.prototype,"handleSliderKeyDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderKeyDown"),r.prototype),y(r.prototype,"handleTrackMouseDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackMouseDown"),r.prototype),y(r.prototype,"handleInteractionStart",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionStart"),r.prototype),y(r.prototype,"handleInteractionEnd",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionEnd"),r.prototype),y(r.prototype,"handleKeyDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),y(r.prototype,"handleKeyUp",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyUp"),r.prototype),y(r.prototype,"handleMouseDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),y(r.prototype,"handleMouseUp",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),y(r.prototype,"handleTouchStart",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),y(r.prototype,"handleTouchEnd",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),r);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(31);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.getPercentageFromPosition=a,t.getValueFromPosition=function(e,t,n,r){var o=a(e,r);return t+(n-t)*o},t.getValueFromProps=function(e,t){if(t)return r({},e.value);return{min:e.minValue,max:e.value}},t.getPercentageFromValue=i,t.getPercentagesFromValues=function(e,t,n){return{min:i(e.min,t,n),max:i(e.max,t,n)}},t.getPositionFromValue=u,t.getPositionsFromValues=function(e,t,n,r){return{min:u(e.min,t,n,r),max:u(e.max,t,n,r)}},t.getPositionFromEvent=function(e,t){var n=t.width,r=(e.touches?e.touches[0]:e).clientX;return{x:(0,o.clamp)(r-t.left,0,n),y:0}},t.getStepValueFromValue=function(e,t){return Math.round(e/t)*t};var o=n(6);function a(e,t){var n=t.width;return e.x/n||0}function i(e,t,n){return((0,o.clamp)(e,t,n)-t)/(n-t)||0}function u(e,t,n,r){var o=r.width;return{x:i(e,t,n)*o,y:0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return Math.min(Math.max(e,t),n)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=Math.pow(t.x-e.x,2),r=Math.pow(t.y-e.y,2);return Math.sqrt(n+r)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"number"==typeof e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.abs(e-t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={activeTrack:"input-range__track input-range__track--active",disabledInputRange:"input-range input-range--disabled",inputRange:"input-range",labelContainer:"input-range__label-container",maxLabel:"input-range__label input-range__label--max",minLabel:"input-range__label input-range__label--min",slider:"input-range__slider",sliderContainer:"input-range__slider-container",track:"input-range__track input-range__track--background",valueLabel:"input-range__label input-range__label--value"},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.maxValue,n=e.minValue;if(!(0,r.isNumber)(n)||!(0,r.isNumber)(t))return new Error('"minValue" and "maxValue" must be a number');if(n>=t)return new Error('"minValue" must be smaller than "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.maxValue,o=e.minValue,a=e[t];if(!((0,r.isNumber)(a)||(0,r.isObject)(a)&&(0,r.isNumber)(a.min)&&(0,r.isNumber)(a.max)))return new Error('"'+t+'" must be a number or a range object');if((0,r.isNumber)(a)&&(a<o||a>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"');if((0,r.isObject)(a)&&(a.min<o||a.min>n||a.max<o||a.max>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=s(n(0)),i=s(n(2)),u=s(n(7)),l=s(n(10));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var f=(c((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n}return function(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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string).isRequired,formatLabel:i.default.func,maxValue:i.default.number,minValue:i.default.number,onSliderDrag:i.default.func.isRequired,onSliderKeyDown:i.default.func.isRequired,percentage:i.default.number.isRequired,type:i.default.string.isRequired,value:i.default.number.isRequired}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener(),this.removeDocumentTouchMoveListener()}},{key:"getStyle",value:function(){return{position:"absolute",left:100*(this.props.percentage||0)+"%"}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchMoveListener",value:function(){this.removeDocumentTouchMoveListener(),this.node.ownerDocument.addEventListener("touchmove",this.handleTouchMove)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchMoveListener",value:function(){this.node.ownerDocument.removeEventListener("touchmove",this.handleTouchMove)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleMouseDown",value:function(){this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener()}},{key:"handleMouseMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchStart",value:function(){this.addDocumentTouchEndListener(),this.addDocumentTouchMoveListener()}},{key:"handleTouchMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchEnd",value:function(){this.removeDocumentTouchMoveListener(),this.removeDocumentTouchEndListener()}},{key:"handleKeyDown",value:function(e){this.props.onSliderKeyDown(e,this.props.type)}},{key:"render",value:function(){var e=this,t=this.getStyle();return a.default.createElement("span",{className:this.props.classNames.sliderContainer,ref:function(t){e.node=t},style:t},a.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"value"},this.props.value),a.default.createElement("div",{"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.props.ariaControls,"aria-valuemax":this.props.maxValue,"aria-valuemin":this.props.minValue,"aria-valuenow":this.props.value,className:this.props.classNames.slider,draggable:"false",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,role:"slider",tabIndex:"0"}))}}]),t}(a.default.Component)).prototype,"handleMouseDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),c(r.prototype,"handleMouseUp",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),c(r.prototype,"handleMouseMove",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),c(r.prototype,"handleTouchStart",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),c(r.prototype,"handleTouchMove",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchMove"),r.prototype),c(r.prototype,"handleTouchEnd",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),c(r.prototype,"handleKeyDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),r);t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=l(n(0)),i=l(n(2)),u=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var c=(s((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n.trackDragEvent=null,n}return function(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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"propTypes",get:function(){return{children:i.default.node.isRequired,classNames:i.default.objectOf(i.default.string).isRequired,draggableTrack:i.default.bool,onTrackDrag:i.default.func,onTrackMouseDown:i.default.func.isRequired,percentages:i.default.objectOf(i.default.number).isRequired}}}]),o(t,[{key:"getClientRect",value:function(){return this.node.getBoundingClientRect()}},{key:"getActiveTrackStyle",value:function(){var e=100*(this.props.percentages.max-this.props.percentages.min)+"%";return{left:100*this.props.percentages.min+"%",width:e}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseMove",value:function(e){this.props.draggableTrack&&(null!==this.trackDragEvent&&this.props.onTrackDrag(e,this.trackDragEvent),this.trackDragEvent=e)}},{key:"handleMouseUp",value:function(){this.props.draggableTrack&&(this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.trackDragEvent=null)}},{key:"handleMouseDown",value:function(e){var t={x:(e.touches?e.touches[0].clientX:e.clientX)-this.getClientRect().left,y:0};this.props.onTrackMouseDown(e,t),this.props.draggableTrack&&(this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener())}},{key:"handleTouchStart",value:function(e){e.preventDefault(),this.handleMouseDown(e)}},{key:"render",value:function(){var e=this,t=this.getActiveTrackStyle();return a.default.createElement("div",{className:this.props.classNames.track,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,ref:function(t){e.node=t}},a.default.createElement("div",{style:t,className:this.props.classNames.activeTrack}),this.props.children)}}]),t}(a.default.Component)).prototype,"handleMouseMove",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),s(r.prototype,"handleMouseUp",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),s(r.prototype,"handleMouseDown",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),s(r.prototype,"handleTouchStart",[u.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),r);t.default=c,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DOWN_ARROW=40,t.LEFT_ARROW=37,t.RIGHT_ARROW=39,t.UP_ARROW=38},function(e,t,n){
67
+ /* flatpickr v4.6.3, @license MIT */
68
+ e.exports=function(){"use strict";
69
+ /*! *****************************************************************************
70
+ Copyright (c) Microsoft Corporation. All rights reserved.
71
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
72
+ this file except in compliance with the License. You may obtain a copy of the
73
+ License at http://www.apache.org/licenses/LICENSE-2.0
74
+
75
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
76
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
77
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
78
+ MERCHANTABLITY OR NON-INFRINGEMENT.
79
+
80
+ See the Apache Version 2.0 License for specific language governing permissions
81
+ and limitations under the License.
82
+ ***************************************************************************** */var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!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",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var 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:void 0,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},r={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:function(e){var 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",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e){return("0"+e).slice(-2)},a=function(e){return!0===e?1:0};function i(e,t,n){var r;return void 0===n&&(n=!1),function(){var o=this,a=arguments;null!==r&&clearTimeout(r),r=window.setTimeout((function(){r=null,n||e.apply(o,a)}),t),n&&!r&&e.apply(o,a)}}var u=function(e){return e instanceof Array?e:[e]};function l(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function s(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function c(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){var n=s("div","numInputWrapper"),r=s("input","numInput "+e),o=s("span","arrowUp"),a=s("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var i in t)r.setAttribute(i,t[i]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}var d=function(){},p=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},h={D:d,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var 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:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:d,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:d,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},m={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})"},g={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[g.w(e,t,n)]},F:function(e,t,n){return p(g.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(g.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return p(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,o=void 0===t?n:t,a=e.l10n,i=void 0===a?r:a;return function(e,t,n){var r=n||i;return void 0!==o.formatDate?o.formatDate(e,t,r):t.split("").map((function(t,n,a){return g[t]&&"\\"!==a[n-1]?g[t](e,r,o):"\\"!==t?t:""})).join("")}},y=function(e){var t=e.config,o=void 0===t?n:t,a=e.l10n,i=void 0===a?r:a;return function(e,t,r,a){if(0===e||e){var u,l=a||i,s=e;if(e instanceof Date)u=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)u=new Date(e);else if("string"==typeof e){var c=t||(o||n).dateFormat,f=String(e).trim();if("today"===f)u=new Date,r=!0;else if(/Z$/.test(f)||/GMT$/.test(f))u=new Date(e);else if(o&&o.parseDate)u=o.parseDate(e,c);else{u=o&&o.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var d=void 0,p=[],g=0,v=0,y="";g<c.length;g++){var b=c[g],w="\\"===b,E="\\"===c[g-1]||w;if(m[b]&&!E){y+=m[b];var x=new RegExp(y).exec(e);x&&(d=!0)&&p["Y"!==b?"push":"unshift"]({fn:h[b],val:x[++v]})}else w||(y+=".");p.forEach((function(e){var t=e.fn,n=e.val;return u=t(u,n,l)||u}))}u=d?u:void 0}}if(u instanceof Date&&!isNaN(u.getTime()))return!0===r&&u.setHours(0,0,0,0),u;o.errorHandler(new Error("Invalid date provided: "+s))}}};function b(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var w=864e5;function E(d,h){var g={config:e({},n,C.defaultConfig),l10n:r};function E(e){return e.bind(g)}function x(){var e=g.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==g.calendarContainer&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),void 0!==g.daysContainer){var t=(g.days.offsetWidth+1)*e.showMonths;g.daysContainer.style.width=t+"px",g.calendarContainer.style.width=t+(void 0!==g.weekWrapper?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display")}}))}function k(e){0===g.selectedDates.length&&ne(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==g.amPM&&e.target===g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]);var r=parseFloat(n.getAttribute("min")),i=parseFloat(n.getAttribute("max")),u=parseFloat(n.getAttribute("step")),l=parseInt(n.value,10),s=e.delta||(t?38===e.which?1:-1:0),c=l+u*s;if(void 0!==n.value&&2===n.value.length){var f=n===g.hourElement,d=n===g.minuteElement;c<r?(c=i+c+a(!f)+(a(f)&&a(!g.amPM)),d&&N(void 0,-1,g.hourElement)):c>i&&(c=n===g.hourElement?c-i-a(!g.amPM):r,d&&N(void 0,1,g.hourElement)),g.amPM&&f&&(1===u?c+l===23:Math.abs(c-l)>u)&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]),n.value=o(c)}}(e);var t=g._input.value;S(),ve(),g._input.value!==t&&g._debouncedChange()}function S(){if(void 0!==g.hourElement&&void 0!==g.minuteElement){var e,t,n=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(g.minuteElement.value,10)||0)%60,o=void 0!==g.secondElement?(parseInt(g.secondElement.value,10)||0)%60:0;void 0!==g.amPM&&(e=n,t=g.amPM.textContent,n=e%12+12*a(t===g.l10n.amPM[1]));var i=void 0!==g.config.minTime||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&0===b(g.latestSelectedDateObj,g.config.minDate,!0);if(void 0!==g.config.maxTime||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&0===b(g.latestSelectedDateObj,g.config.maxDate,!0)){var u=void 0!==g.config.maxTime?g.config.maxTime:g.config.maxDate;(n=Math.min(n,u.getHours()))===u.getHours()&&(r=Math.min(r,u.getMinutes())),r===u.getMinutes()&&(o=Math.min(o,u.getSeconds()))}if(i){var l=void 0!==g.config.minTime?g.config.minTime:g.config.minDate;(n=Math.max(n,l.getHours()))===l.getHours()&&(r=Math.max(r,l.getMinutes())),r===l.getMinutes()&&(o=Math.max(o,l.getSeconds()))}T(n,r,o)}}function O(e){var t=e||g.latestSelectedDateObj;t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function D(){var e=g.config.defaultHour,t=g.config.defaultMinute,n=g.config.defaultSeconds;if(void 0!==g.config.minDate){var r=g.config.minDate.getHours(),o=g.config.minDate.getMinutes();(e=Math.max(e,r))===r&&(t=Math.max(o,t)),e===r&&t===o&&(n=g.config.minDate.getSeconds())}if(void 0!==g.config.maxDate){var a=g.config.maxDate.getHours(),i=g.config.maxDate.getMinutes();(e=Math.min(e,a))===a&&(t=Math.min(i,t)),e===a&&t===i&&(n=g.config.maxDate.getSeconds())}T(e,t,n)}function T(e,t,n){void 0!==g.latestSelectedDateObj&&g.latestSelectedDateObj.setHours(e%24,t,n||0,0),g.hourElement&&g.minuteElement&&!g.isMobile&&(g.hourElement.value=o(g.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),g.minuteElement.value=o(t),void 0!==g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(e>=12)]),void 0!==g.secondElement&&(g.secondElement.value=o(n)))}function _(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&G(t)}function M(e,t,n,r){return t instanceof Array?t.forEach((function(t){return M(e,t,n,r)})):e instanceof Array?e.forEach((function(e){return M(e,t,n,r)})):(e.addEventListener(t,n,r),void g._handlers.push({element:e,event:t,handler:n,options:r}))}function P(e){return function(t){1===t.which&&e(t)}}function F(){de("onChange")}function A(e,t){var n=void 0!==e?g.parseDate(e):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),r=g.currentYear,o=g.currentMonth;try{void 0!==n&&(g.currentYear=n.getFullYear(),g.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,g.config.errorHandler(e)}t&&g.currentYear!==r&&(de("onYearChange"),U()),!t||g.currentYear===r&&g.currentMonth===o||de("onMonthChange"),g.redraw()}function j(e){~e.target.className.indexOf("arrow")&&N(e,e.target.classList.contains("arrowUp")?1:-1)}function N(e,t,n){var r=e&&e.target,o=n||r&&r.parentNode&&r.parentNode.firstChild,a=pe("increment");a.delta=t,o&&o.dispatchEvent(a)}function I(e,t,n,r){var o=X(t,!0),a=s("span","flatpickr-day "+e,t.getDate().toString());return a.dateObj=t,a.$i=r,a.setAttribute("aria-label",g.formatDate(t,g.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===b(t,g.now)&&(g.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,he(t)&&(a.classList.add("selected"),g.selectedDateElem=a,"range"===g.config.mode&&(l(a,"startRange",g.selectedDates[0]&&0===b(t,g.selectedDates[0],!0)),l(a,"endRange",g.selectedDates[1]&&0===b(t,g.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===g.config.mode&&function(e){return!("range"!==g.config.mode||g.selectedDates.length<2)&&b(e,g.selectedDates[0])>=0&&b(e,g.selectedDates[1])<=0}(t)&&!he(t)&&a.classList.add("inRange"),g.weekNumbers&&1===g.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(t)+"</span>"),de("onDayCreate",a),a}function L(e){e.focus(),"range"===g.config.mode&&ee(e)}function R(e){for(var t=e>0?0:g.config.showMonths-1,n=e>0?g.config.showMonths:-1,r=t;r!=n;r+=e)for(var o=g.daysContainer.children[r],a=e>0?0:o.children.length-1,i=e>0?o.children.length:-1,u=a;u!=i;u+=e){var l=o.children[u];if(-1===l.className.indexOf("hidden")&&X(l.dateObj))return l}}function V(e,t){var n=J(document.activeElement||document.body),r=void 0!==e?e:n?document.activeElement:void 0!==g.selectedDateElem&&J(g.selectedDateElem)?g.selectedDateElem:void 0!==g.todayDateElem&&J(g.todayDateElem)?g.todayDateElem:R(t>0?1:-1);return void 0===r?g._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():g.currentMonth,r=t>0?g.config.showMonths:-1,o=t>0?1:-1,a=n-g.currentMonth;a!=r;a+=o)for(var i=g.daysContainer.children[a],u=n-g.currentMonth===a?e.$i+t:t<0?i.children.length-1:0,l=i.children.length,s=u;s>=0&&s<l&&s!=(t>0?l:-1);s+=o){var c=i.children[s];if(-1===c.className.indexOf("hidden")&&X(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(t))return L(c)}g.changeMonth(o),V(R(o),0)}(r,t):L(r)}function z(e,t){for(var n=(new Date(e,t,1).getDay()-g.l10n.firstDayOfWeek+7)%7,r=g.utils.getDaysInMonth((t-1+12)%12),o=g.utils.getDaysInMonth(t),a=window.document.createDocumentFragment(),i=g.config.showMonths>1,u=i?"prevMonthDay hidden":"prevMonthDay",l=i?"nextMonthDay hidden":"nextMonthDay",c=r+1-n,f=0;c<=r;c++,f++)a.appendChild(I(u,new Date(e,t-1,c),c,f));for(c=1;c<=o;c++,f++)a.appendChild(I("",new Date(e,t,c),c,f));for(var d=o+1;d<=42-n&&(1===g.config.showMonths||f%7!=0);d++,f++)a.appendChild(I(l,new Date(e,t+1,d%o),d,f));var p=s("div","dayContainer");return p.appendChild(a),p}function B(){if(void 0!==g.daysContainer){c(g.daysContainer),g.weekNumbers&&c(g.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<g.config.showMonths;t++){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),e.appendChild(z(n.getFullYear(),n.getMonth()))}g.daysContainer.appendChild(e),g.days=g.daysContainer.firstChild,"range"===g.config.mode&&1===g.selectedDates.length&&ee()}}function U(){if(!(g.config.showMonths>1||"dropdown"!==g.config.monthSelectorType)){var e=function(e){return!(void 0!==g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&e<g.config.minDate.getMonth()||void 0!==g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()&&e>g.config.maxDate.getMonth())};g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=s("option","flatpickr-monthDropdown-month");n.value=new Date(g.currentYear,t).getMonth().toString(),n.textContent=p(t,g.config.shorthandCurrentMonth,g.l10n),n.tabIndex=-1,g.currentMonth===t&&(n.selected=!0),g.monthsDropdownContainer.appendChild(n)}}}function H(){var e,t=s("div","flatpickr-month"),n=window.document.createDocumentFragment();g.config.showMonths>1||"static"===g.config.monthSelectorType?e=s("span","cur-month"):(g.monthsDropdownContainer=s("select","flatpickr-monthDropdown-months"),M(g.monthsDropdownContainer,"change",(function(e){var t=e.target,n=parseInt(t.value,10);g.changeMonth(n-g.currentMonth),de("onMonthChange")})),U(),e=g.monthsDropdownContainer);var r=f("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&o.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(o.setAttribute("max",g.config.maxDate.getFullYear().toString()),o.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear());var a=s("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(r),n.appendChild(a),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function W(){c(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var e=g.config.showMonths;e--;){var t=H();g.yearElements.push(t.yearElement),g.monthElements.push(t.monthElement),g.monthNav.appendChild(t.container)}g.monthNav.appendChild(g.nextMonthNav)}function Y(){g.weekdayContainer?c(g.weekdayContainer):g.weekdayContainer=s("div","flatpickr-weekdays");for(var e=g.config.showMonths;e--;){var t=s("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(t)}return $(),g.weekdayContainer}function $(){if(g.weekdayContainer){var e=g.l10n.firstDayOfWeek,t=g.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=g.config.showMonths;n--;)g.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function K(e,t){void 0===t&&(t=!0);var n=t?e:e-g.currentMonth;n<0&&!0===g._hidePrevMonthArrow||n>0&&!0===g._hideNextMonthArrow||(g.currentMonth+=n,(g.currentMonth<0||g.currentMonth>11)&&(g.currentYear+=g.currentMonth>11?1:-1,g.currentMonth=(g.currentMonth+12)%12,de("onYearChange"),U()),B(),de("onMonthChange"),me())}function q(e){return!(!g.config.appendTo||!g.config.appendTo.contains(e))||g.calendarContainer.contains(e)}function Q(e){if(g.isOpen&&!g.config.inline){var t="function"==typeof(i=e).composedPath?i.composedPath()[0]:i.target,n=q(t),r=t===g.input||t===g.altInput||g.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(g.input)||~e.path.indexOf(g.altInput)),o="blur"===e.type?r&&e.relatedTarget&&!q(e.relatedTarget):!r&&!n&&!q(e.relatedTarget),a=!g.config.ignoredFocusElements.some((function(e){return e.contains(t)}));o&&a&&(void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&k(),g.close(),"range"===g.config.mode&&1===g.selectedDates.length&&(g.clear(!1),g.redraw()))}var i}function G(e){if(!(!e||g.config.minDate&&e<g.config.minDate.getFullYear()||g.config.maxDate&&e>g.config.maxDate.getFullYear())){var t=e,n=g.currentYear!==t;g.currentYear=t||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),n&&(g.redraw(),de("onYearChange"),U())}}function X(e,t){void 0===t&&(t=!0);var n=g.parseDate(e,void 0,t);if(g.config.minDate&&n&&b(n,g.config.minDate,void 0!==t?t:!g.minDateHasTime)<0||g.config.maxDate&&n&&b(n,g.config.maxDate,void 0!==t?t:!g.maxDateHasTime)>0)return!1;if(0===g.config.enable.length&&0===g.config.disable.length)return!0;if(void 0===n)return!1;for(var r=g.config.enable.length>0,o=r?g.config.enable:g.config.disable,a=0,i=void 0;a<o.length;a++){if("function"==typeof(i=o[a])&&i(n))return r;if(i instanceof Date&&void 0!==n&&i.getTime()===n.getTime())return r;if("string"==typeof i&&void 0!==n){var u=g.parseDate(i,void 0,!0);return u&&u.getTime()===n.getTime()?r:!r}if("object"==typeof i&&void 0!==n&&i.from&&i.to&&n.getTime()>=i.from.getTime()&&n.getTime()<=i.to.getTime())return r}return!r}function J(e){return void 0!==g.daysContainer&&-1===e.className.indexOf("hidden")&&g.daysContainer.contains(e)}function Z(e){var t=e.target===g._input,n=g.config.allowInput,r=g.isOpen&&(!n||!t),o=g.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return g.setDate(g._input.value,!0,e.target===g.altInput?g.config.altFormat:g.config.dateFormat),e.target.blur();g.open()}else if(q(e.target)||r||o){var a=!!g.timeContainer&&g.timeContainer.contains(e.target);switch(e.keyCode){case 13:a?(e.preventDefault(),k(),ue()):le(e);break;case 27:e.preventDefault(),ue();break;case 8:case 46:t&&!g.config.allowInput&&(e.preventDefault(),g.clear());break;case 37:case 39:if(a||t)g.hourElement&&g.hourElement.focus();else if(e.preventDefault(),void 0!==g.daysContainer&&(!1===n||document.activeElement&&J(document.activeElement))){var i=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),K(i),V(R(1),0)):V(void 0,i)}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;g.daysContainer&&void 0!==e.target.$i||e.target===g.input||e.target===g.altInput?e.ctrlKey?(e.stopPropagation(),G(g.currentYear-u),V(R(1),0)):a||V(void 0,7*u):e.target===g.currentYearElement?G(g.currentYear-u):g.config.enableTime&&(!a&&g.hourElement&&g.hourElement.focus(),k(e),g._debouncedChange());break;case 9:if(a){var l=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter((function(e){return e})),s=l.indexOf(e.target);if(-1!==s){var c=l[s+(e.shiftKey?-1:1)];e.preventDefault(),(c||g._input).focus()}}else!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),g._input.focus())}}if(void 0!==g.amPM&&e.target===g.amPM)switch(e.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],S(),ve();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],S(),ve()}(t||q(e.target))&&de("onKeyDown",e)}function ee(e){if(1===g.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():g.days.firstElementChild.dateObj.getTime(),n=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),r=Math.min(t,g.selectedDates[0].getTime()),o=Math.max(t,g.selectedDates[0].getTime()),a=!1,i=0,u=0,l=r;l<o;l+=w)X(new Date(l),!0)||(a=a||l>r&&l<o,l<n&&(!i||l>i)?i=l:l>n&&(!u||l<u)&&(u=l));for(var s=0;s<g.config.showMonths;s++)for(var c=g.daysContainer.children[s],f=function(r,o){var l,s,f,d=c.children[r],p=d.dateObj.getTime(),h=i>0&&p<i||u>0&&p>u;return h?(d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){d.classList.remove(e)})),"continue"):a&&!h?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){d.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=g.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&p===n?d.classList.add("startRange"):n>t&&p===n&&d.classList.add("endRange"),p>=i&&(0===u||p<=u)&&(s=n,f=t,(l=p)>Math.min(s,f)&&l<Math.max(s,f))&&d.classList.add("inRange"))))},d=0,p=c.children.length;d<p;d++)f(d)}}function te(){!g.isOpen||g.config.static||g.config.inline||ae()}function ne(){g.setDate(void 0!==g.config.minDate?new Date(g.config.minDate.getTime()):new Date,!0),D(),ve()}function re(e){return function(t){var n=g.config["_"+e+"Date"]=g.parseDate(t,g.config.dateFormat),r=g.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(g["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),g.selectedDates&&(g.selectedDates=g.selectedDates.filter((function(e){return X(e)})),g.selectedDates.length||"min"!==e||O(n),ve()),g.daysContainer&&(ie(),void 0!==n?g.currentYearElement[e]=n.getFullYear().toString():g.currentYearElement.removeAttribute(e),g.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function oe(){"object"!=typeof g.config.locale&&void 0===C.l10ns[g.config.locale]&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=e({},C.l10ns.default,"object"==typeof g.config.locale?g.config.locale:"default"!==g.config.locale?C.l10ns[g.config.locale]:void 0),m.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")",void 0===e({},h,JSON.parse(JSON.stringify(d.dataset||{}))).time_24hr&&void 0===C.defaultConfig.time_24hr&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=v(g),g.parseDate=y({config:g.config,l10n:g.l10n})}function ae(e){if(void 0!==g.calendarContainer){de("onPreCalendarPosition");var t=e||g._positionElement,n=Array.prototype.reduce.call(g.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),r=g.calendarContainer.offsetWidth,o=g.config.position.split(" "),a=o[0],i=o.length>1?o[1]:null,u=t.getBoundingClientRect(),s=window.innerHeight-u.bottom,c="above"===a||"below"!==a&&s<n&&u.top>n,f=window.pageYOffset+u.top+(c?-n-2:t.offsetHeight+2);if(l(g.calendarContainer,"arrowTop",!c),l(g.calendarContainer,"arrowBottom",c),!g.config.inline){var d=window.pageXOffset+u.left-(null!=i&&"center"===i?(r-u.width)/2:0),p=window.document.body.offsetWidth-(window.pageXOffset+u.right),h=d+r>window.document.body.offsetWidth,m=p+r>window.document.body.offsetWidth;if(l(g.calendarContainer,"rightMost",h),!g.config.static)if(g.calendarContainer.style.top=f+"px",h)if(m){var v=document.styleSheets[0];if(void 0===v)return;var y=window.document.body.offsetWidth,b=Math.max(0,y/2-r/2),w=v.cssRules.length,E="{left:"+u.left+"px;right:auto;}";l(g.calendarContainer,"rightMost",!1),l(g.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+E,w),g.calendarContainer.style.left=b+"px",g.calendarContainer.style.right="auto"}else g.calendarContainer.style.left="auto",g.calendarContainer.style.right=p+"px";else g.calendarContainer.style.left=d+"px",g.calendarContainer.style.right="auto"}}}function ie(){g.config.noCalendar||g.isMobile||(me(),B())}function ue(){g._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(g.close,0):g.close()}function le(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,r=g.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(r.getMonth()<g.currentMonth||r.getMonth()>g.currentMonth+g.config.showMonths-1)&&"range"!==g.config.mode;if(g.selectedDateElem=n,"single"===g.config.mode)g.selectedDates=[r];else if("multiple"===g.config.mode){var a=he(r);a?g.selectedDates.splice(parseInt(a),1):g.selectedDates.push(r)}else"range"===g.config.mode&&(2===g.selectedDates.length&&g.clear(!1,!1),g.latestSelectedDateObj=r,g.selectedDates.push(r),0!==b(r,g.selectedDates[0],!0)&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),o){var i=g.currentYear!==r.getFullYear();g.currentYear=r.getFullYear(),g.currentMonth=r.getMonth(),i&&(de("onYearChange"),U()),de("onMonthChange")}if(me(),B(),ve(),g.config.enableTime&&setTimeout((function(){return g.showTimeInput=!0}),50),o||"range"===g.config.mode||1!==g.config.showMonths?void 0!==g.selectedDateElem&&void 0===g.hourElement&&g.selectedDateElem&&g.selectedDateElem.focus():L(n),void 0!==g.hourElement&&void 0!==g.hourElement&&g.hourElement.focus(),g.config.closeOnSelect){var u="single"===g.config.mode&&!g.config.enableTime,l="range"===g.config.mode&&2===g.selectedDates.length&&!g.config.enableTime;(u||l)&&ue()}F()}}g.parseDate=y({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=M,g._setHoursFromDate=O,g._positionCalendar=ae,g.changeMonth=K,g.changeYear=G,g.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),g.input.value="",void 0!==g.altInput&&(g.altInput.value=""),void 0!==g.mobileInput&&(g.mobileInput.value=""),g.selectedDates=[],g.latestSelectedDateObj=void 0,!0===t&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth()),g.showTimeInput=!1,!0===g.config.enableTime&&D(),g.redraw(),e&&de("onChange")},g.close=function(){g.isOpen=!1,g.isMobile||(void 0!==g.calendarContainer&&g.calendarContainer.classList.remove("open"),void 0!==g._input&&g._input.classList.remove("active")),de("onClose")},g._createElement=s,g.destroy=function(){void 0!==g.config&&de("onDestroy");for(var e=g._handlers.length;e--;){var t=g._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var n=g.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput),g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.input.removeAttribute("readonly"),g.input.value=""),["_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((function(e){try{delete g[e]}catch(e){}}))},g.isEnabled=X,g.jumpToDate=A,g.open=function(e,t){if(void 0===t&&(t=g._positionElement),!0===g.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==g.mobileInput&&(g.mobileInput.focus(),g.mobileInput.click()),void de("onOpen");if(!g._input.disabled&&!g.config.inline){var n=g.isOpen;g.isOpen=!0,n||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),de("onOpen"),ae(t)),!0===g.config.enableTime&&!0===g.config.noCalendar&&(0===g.selectedDates.length&&ne(),!1!==g.config.allowInput||void 0!==e&&g.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return g.hourElement.select()}),50))}},g.redraw=ie,g.set=function(e,n){if(null!==e&&"object"==typeof e)for(var r in Object.assign(g.config,e),e)void 0!==se[r]&&se[r].forEach((function(e){return e()}));else g.config[e]=n,void 0!==se[e]?se[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(g.config[e]=u(n));g.redraw(),ve(!1)},g.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=g.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return g.clear(t);ce(e,n),g.showTimeInput=g.selectedDates.length>0,g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),A(),O(),0===g.selectedDates.length&&g.clear(!1),ve(t),t&&de("onChange")},g.toggle=function(e){if(!0===g.isOpen)return g.close();g.open(e)};var se={locale:[oe,$],showMonths:[W,x,Y],minDate:[A],maxDate:[A]};function ce(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return g.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[g.parseDate(e,t)];else if("string"==typeof e)switch(g.config.mode){case"single":case"time":n=[g.parseDate(e,t)];break;case"multiple":n=e.split(g.config.conjunction).map((function(e){return g.parseDate(e,t)}));break;case"range":n=e.split(g.l10n.rangeSeparator).map((function(e){return g.parseDate(e,t)}))}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));g.selectedDates=n.filter((function(e){return e instanceof Date&&X(e,!1)})),"range"===g.config.mode&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function fe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?g.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:g.parseDate(e.from,void 0),to:g.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function de(e,t){if(void 0!==g.config){var n=g.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](g.selectedDates,g.input.value,g,t);"onChange"===e&&(g.input.dispatchEvent(pe("change")),g.input.dispatchEvent(pe("input")))}}function pe(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function he(e){for(var t=0;t<g.selectedDates.length;t++)if(0===b(g.selectedDates[t],e))return""+t;return!1}function me(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach((function(e,t){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),g.config.showMonths>1||"static"===g.config.monthSelectorType?g.monthElements[t].textContent=p(n.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),g._hidePrevMonthArrow=void 0!==g.config.minDate&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=void 0!==g.config.maxDate&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function ge(e){return g.selectedDates.map((function(t){return g.formatDate(t,e)})).filter((function(e,t,n){return"range"!==g.config.mode||g.config.enableTime||n.indexOf(e)===t})).join("range"!==g.config.mode?g.config.conjunction:g.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==g.mobileInput&&g.mobileFormatStr&&(g.mobileInput.value=void 0!==g.latestSelectedDateObj?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=ge(g.config.dateFormat),void 0!==g.altInput&&(g.altInput.value=ge(g.config.altFormat)),!1!==e&&de("onValueUpdate")}function ye(e){var t=g.prevMonthNav.contains(e.target),n=g.nextMonthNav.contains(e.target);t||n?K(t?-1:1):g.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):e.target.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}return function(){g.element=g.input=d,g.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=e({},h,JSON.parse(JSON.stringify(d.dataset||{}))),a={};g.config.parseDate=o.parseDate,g.config.formatDate=o.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(e){g.config._enable=fe(e)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(e){g.config._disable=fe(e)}});var i="time"===o.mode;if(!o.dateFormat&&(o.enableTime||i)){var l=C.defaultConfig.dateFormat||n.dateFormat;a.dateFormat=o.noCalendar||i?"H:i"+(o.enableSeconds?":S":""):l+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||i)&&!o.altFormat){var s=C.defaultConfig.altFormat||n.altFormat;a.altFormat=o.noCalendar||i?"h:i"+(o.enableSeconds?":S K":" K"):s+" h:i"+(o.enableSeconds?":S":"")+" K"}o.altInputClass||(g.config.altInputClass=g.input.className+" "+g.config.altInputClass),Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:re("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:re("max")});var c=function(e){return function(t){g.config["min"===e?"_minTime":"_maxTime"]=g.parseDate(t,"H:i:S")}};Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:c("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:c("max")}),"time"===o.mode&&(g.config.noCalendar=!0,g.config.enableTime=!0),Object.assign(g.config,a,o);for(var f=0;f<r.length;f++)g.config[r[f]]=!0===g.config[r[f]]||"true"===g.config[r[f]];for(t.filter((function(e){return void 0!==g.config[e]})).forEach((function(e){g.config[e]=u(g.config[e]||[]).map(E)})),g.isMobile=!g.config.disableMobile&&!g.config.inline&&"single"===g.config.mode&&!g.config.disable.length&&!g.config.enable.length&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=0;f<g.config.plugins.length;f++){var p=g.config.plugins[f](g)||{};for(var m in p)t.indexOf(m)>-1?g.config[m]=u(p[m]).map(E).concat(g.config[m]):void 0===o[m]&&(g.config[m]=p[m])}de("onParseConfig")}(),oe(),g.input=g.config.wrap?d.querySelector("[data-input]"):d,g.input?(g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=s(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling)),g.config.allowInput||g._input.setAttribute("readonly","readonly"),g._positionElement=g.config.positionElement||g._input):g.config.errorHandler(new Error("Invalid input element specified")),function(){g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date;var e=g.config.defaultDate||("INPUT"!==g.input.nodeName&&"TEXTAREA"!==g.input.nodeName||!g.input.placeholder||g.input.value!==g.input.placeholder?g.input.value:null);e&&ce(e,g.config.dateFormat),g._initialDate=g.selectedDates.length>0?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),g.selectedDates.length>0&&(g.latestSelectedDateObj=g.selectedDates[0]),void 0!==g.config.minTime&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i")),void 0!==g.config.maxTime&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i")),g.minDateHasTime=!!g.config.minDate&&(g.config.minDate.getHours()>0||g.config.minDate.getMinutes()>0||g.config.minDate.getSeconds()>0),g.maxDateHasTime=!!g.config.maxDate&&(g.config.maxDate.getHours()>0||g.config.maxDate.getMinutes()>0||g.config.maxDate.getSeconds()>0),Object.defineProperty(g,"showTimeInput",{get:function(){return g._showTimeInput},set:function(e){g._showTimeInput=e,g.calendarContainer&&l(g.calendarContainer,"showTimeInput",e),g.isOpen&&ae()}})}(),g.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=g.currentMonth),void 0===t&&(t=g.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:g.l10n.daysInMonth[e]}},g.isMobile||function(){var e=window.document.createDocumentFragment();if(g.calendarContainer=s("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,!g.config.noCalendar){if(e.appendChild((g.monthNav=s("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=s("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=s("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,W(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(e){g.__hidePrevMonthArrow!==e&&(l(g.prevMonthNav,"flatpickr-disabled",e),g.__hidePrevMonthArrow=e)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(e){g.__hideNextMonthArrow!==e&&(l(g.nextMonthNav,"flatpickr-disabled",e),g.__hideNextMonthArrow=e)}}),g.currentYearElement=g.yearElements[0],me(),g.monthNav)),g.innerContainer=s("div","flatpickr-innerContainer"),g.config.weekNumbers){var t=function(){g.calendarContainer.classList.add("hasWeeks");var e=s("div","flatpickr-weekwrapper");e.appendChild(s("span","flatpickr-weekday",g.l10n.weekAbbreviation));var t=s("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;g.innerContainer.appendChild(n),g.weekNumbers=r,g.weekWrapper=n}g.rContainer=s("div","flatpickr-rContainer"),g.rContainer.appendChild(Y()),g.daysContainer||(g.daysContainer=s("div","flatpickr-days"),g.daysContainer.tabIndex=-1),B(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),e.appendChild(g.innerContainer)}g.config.enableTime&&e.appendChild(function(){g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar"),g.timeContainer=s("div","flatpickr-time"),g.timeContainer.tabIndex=-1;var e=s("span","flatpickr-time-separator",":"),t=f("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel});g.hourElement=t.getElementsByTagName("input")[0];var n=f("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel});if(g.minuteElement=n.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=o(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?g.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(g.config.defaultHour)),g.minuteElement.value=o(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():g.config.defaultMinute),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.timeContainer.appendChild(t),g.timeContainer.appendChild(e),g.timeContainer.appendChild(n),g.config.time_24hr&&g.timeContainer.classList.add("time24hr"),g.config.enableSeconds){g.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");g.secondElement=r.getElementsByTagName("input")[0],g.secondElement.value=o(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():g.config.defaultSeconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.timeContainer.appendChild(s("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(r)}return g.config.time_24hr||(g.amPM=s("span","flatpickr-am-pm",g.l10n.amPM[a((g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour)>11)]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM)),g.timeContainer}()),l(g.calendarContainer,"rangeMode","range"===g.config.mode),l(g.calendarContainer,"animate",!0===g.config.animate),l(g.calendarContainer,"multiMonth",g.config.showMonths>1),g.calendarContainer.appendChild(e);var i=void 0!==g.config.appendTo&&void 0!==g.config.appendTo.nodeType;if((g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!i&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):void 0!==g.config.appendTo&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)){var u=s("div","flatpickr-wrapper");g.element.parentNode&&g.element.parentNode.insertBefore(u,g.element),u.appendChild(g.element),g.altInput&&u.appendChild(g.altInput),u.appendChild(g.calendarContainer)}g.config.static||g.config.inline||(void 0!==g.config.appendTo?g.config.appendTo:window.document.body).appendChild(g.calendarContainer)}(),function(){if(g.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+e+"]"),(function(t){return M(t,"click",g[e])}))})),g.isMobile)!function(){var e=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=s("input",g.input.className+" flatpickr-mobile"),g.mobileInput.step=g.input.getAttribute("step")||"any",g.mobileInput.tabIndex=1,g.mobileInput.type=e,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",g.selectedDates.length>0&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr)),g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d")),g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d")),g.input.type="hidden",void 0!==g.altInput&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch(e){}M(g.mobileInput,"change",(function(e){g.setDate(e.target.value,!1,g.mobileFormatStr),de("onChange"),de("onClose")}))}();else{var e=i(te,50);g._debouncedChange=i(F,300),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(g.daysContainer,"mouseover",(function(e){"range"===g.config.mode&&ee(e.target)})),M(window.document.body,"keydown",Z),g.config.inline||g.config.static||M(window,"resize",e),void 0!==window.ontouchstart?M(window.document,"touchstart",Q):M(window.document,"mousedown",P(Q)),M(window.document,"focus",Q,{capture:!0}),!0===g.config.clickOpens&&(M(g._input,"focus",g.open),M(g._input,"mousedown",P(g.open))),void 0!==g.daysContainer&&(M(g.monthNav,"mousedown",P(ye)),M(g.monthNav,["keyup","increment"],_),M(g.daysContainer,"mousedown",P(le))),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&(M(g.timeContainer,["increment"],k),M(g.timeContainer,"blur",k,{capture:!0}),M(g.timeContainer,"mousedown",P(j)),M([g.hourElement,g.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==g.secondElement&&M(g.secondElement,"focus",(function(){return g.secondElement&&g.secondElement.select()})),void 0!==g.amPM&&M(g.amPM,"mousedown",P((function(e){k(e),F()}))))}}(),(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&O(g.config.noCalendar?g.latestSelectedDateObj||g.config.minDate:void 0),ve(!1)),x(),g.showTimeInput=g.selectedDates.length>0||g.config.noCalendar;var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!g.isMobile&&r&&ae(),de("onReady")}(),g}function x(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],o=0;o<n.length;o++){var a=n[o];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=E(a,t||{}),r.push(a._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},o=0,a=t;o<a.length;o++){var i=a[o];r(i)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return x(this,e)},HTMLElement.prototype.flatpickr=function(e){return x([this],e)});var C=function(e,t){return"string"==typeof e?x(window.document.querySelectorAll(e),t):e instanceof Node?x([e],t):x(e,t)};return C.defaultConfig={},C.l10ns={en:e({},r),default:e({},r)},C.localize=function(t){C.l10ns.default=e({},C.l10ns.default,t)},C.setDefaults=function(t){C.defaultConfig=e({},C.defaultConfig,t)},C.parseDate=y({}),C.formatDate=v({}),C.compareDates=b,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return x(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=C),C}()},function(e,t,n){var r=n(48),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(13))},function(e,t,n){var r=n(12),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"React",(function(){return o.a})),n.d(t,"ReactDOM",(function(){return i.a})),n.d(t,"mfMapLocation",(function(){return f}));var r=n(0),o=n.n(r),a=n(3),i=n.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l,s=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 e(t,n,r){this.prefix=(t||"")+":",this.level=n||e.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,e.WARN),this.info=this.log.bind(this,e.INFO),this.debug=this.log.bind(this,e.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 void 0===t&&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 l(e,t,n){if(1===n.length&&"object"===u(n[0])){var r=n[0];t.forEach((function(t){e[t]=r[t]}))}else for(var o=0,i=t.length,l=n.length;o<i&&o<l;o++)e[t[o]]=n[o];delete e.runtimeError;var s=new a(e);return s.parent=f,s}function s(n){if(void 0!==n)switch(n.id){case"Expr":case"Tuple":return s(n.expr);case"OpenTuple":return n.expr?c(n.expr):c(n.left,n.right);case"Assign":return n.expr?s(n.expr):(u=n.left,l=s(l=n.right),function(e){return e.set(u.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?s(n.expr):function(t,n,o){n=s(n),o=s(o);function a(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return a.bind(void 0,(function(e,t){return+e+t}));case"Minus":return a.bind(void 0,(function(e,t){return e-t}));case"Mul":return a.bind(void 0,(function(e,t){return e*t}));case"Div":return a.bind(void 0,(function(e,t){return e/t}));case"Mod":return a.bind(void 0,(function(e,t){return e%t}));case"Pow":return a.bind(void 0,(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?s(n.expr):function(t,n){switch(n=s(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=function e(t){if(void 0!==t)switch(t.id){case"Expr":case"Tuple":return e(t.expr);case"OpenTuple":return!0}return!1}(a),a=s(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 s(n.expr);case"Value":return s(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,u,l;return function(){}}function c(e,t){if(void 0===e)return function(){return[]};var n="OpenTuple"===e.id;return e=s(e),void 0===t?function(){return[e.apply(null,arguments)]}:(t=s(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=void 0;var r=function(e){var t,n,r=[],o=0;for(;void 0!==(t=S(e,o));)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],u=n.stack[n.stack.length-1],l=(u?u.id:"(empty)")+":"+(i?i.id:"(eof)");switch(d[l]){case 1:e.debug("shift %s %o",l,h(n.stack)),n=m(n,i),r++;break;case 2:e.debug("reduce %s %o",l,h(n.stack)),n=v(n,i);break;case 0:e.debug("done %s %o",l,h(n.stack)),a=!0;break;default:if(void 0!==i){var s={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=s,e.warn("%s at %d (%s)",s.text,s.pos,l)}else{s={text:"Unexpected EOF",pos:n.pos+1};n.error=s,e.warn("%s (%s)",s.text,l)}a=!0}}if(!n.error&&n.stack.length>1){var c=y(n,1),f=c.pos||0,p="LParen"===c.id;s={pos:f,text:p?"Open paren":"Invalid expression"};n.error=s,e.warn("%s at %d (eof)",s.text,s.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var a,u,c=(a=s(o.root),function(e){try{return a.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return u={},{error:r.error||o.error,args:i(o.vars),eval:function(){return c(l(u,o.vars,arguments))},set scope(e){u=e||{}},get scope(){return u}}};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 u=t[r]+":"+n[a];d[u]=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),void 0!==n.pos&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function v(t,n){switch(y(t,0).id){case"Tuple":return function(e){var t=y(e,0);return g(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return b(t,n);case"Assign":case"Sums":return function(e,t){var n=y(e,1),r=y(e,0);if(void 0!==r&&"Sums"===r.id)return w(e,["Eq"],"Assign");if(void 0!==n&&"Eq"===n.id)return w(e,["Eq"],"Assign");return b(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=y(e,1),n=y(e,0);if(void 0!==n&&"Unary"===n.id){var r=x(e,!1);return r||g(e,1,{id:"Power",expr:n})}if(void 0!==n&&"Power"===n.id&&void 0!==t&&"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 x(t);case"Value":case"RParen":return function(t){var n=y(t,3),r=y(t,2),o=y(t,1),a=y(t,0),i={id:"Parens"};if("RParen"===a.id){if(void 0!==o&&"LParen"===o.id)return void 0!==r&&"Var"===r.id?g(t,3,i={id:"Call",token:r}):g(t,2,i={id:"OpenTuple"});if(void 0===r||"LParen"!==r.id){var u={pos:a.pos,text:"Unmatched paren"};return t.error=u,e.warn("%s at %d",u.text,u.pos),g(t,1)}return void 0!==n&&"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=y(e,0);e=g(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function y(e,t){return void 0===t&&(t=0),e.stack[e.stack.length-(t+1)]}function b(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"OpenTuple"};return"Comma"===o.id?g(e,2,r):void 0!==r&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,g(e,3,a)):void 0!==t&&"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=y(e,2),o=y(e,1),a=y(e,0),i={id:n};return void 0!==o&&-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 E=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function x(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"Unary"};return void 0===r||"Minus"!==r.id&&"Plus"!==r.id||void 0!==n&&-1===E.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 C=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,k=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function S(t,n){var r=t.slice(n);if(0!==r.length){var o=C.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!==C.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 u=0,l=k.length;u<l;u++){var s=o[u+1];if(void 0!==s)return{id:k[u],string:s,pos:n,end:n+s.length,value:D(k[u],s)}}}}var O=Number.parseFloat||parseFloat;function D(e,t){switch(e){case"Number":return O(t);default:return t}}return n}(),l=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 s,c,f=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),s=Math,Object.getOwnPropertyNames(Math).forEach((function(e){c.set(e,s[e])})),c);return n.parse=function(e,t,n){e=e.replace(/\[|\]|-/g,"__"),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=l(t[a],n);var i=this.parser.parse(e);return 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}(),c="";l=jQuery,c=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=l(this).data("settings"),o=null!=t&&null!=t.metform_multistep_settings_title?t.metform_multistep_settings_title:"Step-"+l(this).attr("data-id"),a="",i="";null!=t&&null!=t.metform_multistep_settings_icon&&(a="svg"===t.metform_multistep_settings_icon.library?'<img class="metform-step-svg-icon" src="'+t.metform_multistep_settings_icon.value.url+'" alt="SVG Icon" />':t.metform_multistep_settings_icon.value.length?'<i class="metform-step-icon '+t.metform_multistep_settings_icon.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&l(this).parents(".elementor-section-wrap").css("height",l(this).height())):1===e&&(i="next"),o&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+l(this).attr("data-id")+"' data-value='"+l(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+o+"</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(".metform-steps").on("click",".metform-step-item",(function(){var e=this,r=l(this).parents(".mf-form-wrapper").eq(0),o=r.find(".elementor-top-section.active .mf-input"),a=-100*l(this).index()+"%",i=(r.find(".mf-progress-step-bar").attr("data-total"),[]);o.each((function(){i.push(this.name)})),t.doValidate(i).then((function(t){t&&(r.find(".elementor-top-section.active .metform-btn").attr("type","button"),(l(e).hasClass("prev")||l(e).hasClass("next"))&&(l(e).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),r.find('.elementor-top-section[data-id="'+l(e).data("value")+'"]').addClass("active").find(".metform-btn").attr("type","submit").end().siblings().removeClass("active"),r.find(".elementor-top-section.active").find(".metform-btn.metfrom-next-step").length&&r.find(".elementor-top-section.active").find(".metform-btn").attr("type","button").end().find(".metform-btn.metfrom-next-step, .metform-submit-btn").attr("type","submit"),n.hasClass("mf_slide_direction_vertical")?(r.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+a+")"}),r.find(".elementor-section-wrap").css("height","calc("+r.find('.elementor-top-section[data-id="'+l(e).data("value")+'"]').height()+"px)")):r.find(".elementor-section-wrap").css({transform:"translateX("+a+")"})),r.find(".mf-progress-step-bar span").css("width",(l(e).index()+1)*r.find(".mf-progress-step-bar span").attr("data-portion")+"%"))}))}))};var f=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}))}))}}))},d=e=>void 0===e,p=e=>null===e||d(e),h=e=>Array.isArray(e);const m=e=>"object"==typeof e;var g=e=>!p(e)&&!h(e)&&m(e),v=e=>g(e)&&e.nodeType===Node.ELEMENT_NODE;const y={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit"},b="blur",w="change",E="input",x="max",C="min",k="maxLength",S="minLength",O="pattern",D="required",T="validate",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F=/\\(\\)?/g;var A=e=>!h(e)&&(M.test(e)||!_.test(e)),j=e=>{const t=[];return e.replace(P,(e,n,r,o)=>{t.push(r?o.replace(F,"$1"):n||e)}),t};function N(e,t,n){let r=-1;const o=A(t)?[t]:j(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=g(n)||h(n)?n:isNaN(o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var I=e=>Object.entries(e).reduce((e,[t,n])=>A(t)?Object.assign(Object.assign({},e),{[t]:n}):(N(e,t,n),e),{}),L=(e,t,n)=>{const r=t.split(/[,[\].]+?/).filter(Boolean).reduce((e,t)=>p(e)?e:e[t],e);return d(r)||r===e?e[t]||n:r},R=(e,t)=>{v(e)&&e.removeEventListener&&(e.removeEventListener(E,t),e.removeEventListener(w,t),e.removeEventListener(b,t))},V=e=>!!e&&"radio"===e.type,z=e=>!!e&&"checkbox"===e.type;function B(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&B(e.parentNode)}var U=e=>g(e)&&!Object.keys(e).length;function H(e){return h(e)?e:j(e)}function W(e,t){return 1==t.length?e:function(e,t){const n=A(t)?[t]:H(t),r=t.length;let o=0;for(;o<r;)e=d(e)?o++:e[n[o++]];return o==r?e:void 0}(e,function(e,t,n){let r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t;const a=Array(o);for(;++r<o;)a[r]=e[r+t];return a}(t,0,-1))}function Y(e,t){return t.forEach(t=>{!function(e,t){const n=A(t)?[t]:H(t),r=W(e,n),o=n[n.length-1],a=!(null!=r)||delete r[o];let i=void 0;for(let t=0;t<n.slice(0,-1).length;t++){let r=-1,o=void 0;const a=n.slice(0,-(t+1)),u=a.length-1;for(t>0&&(i=e);++r<a.length;){const t=a[r];o=o?o[t]:e[t],u===r&&(g(o)&&U(o)?i?delete i[t]:delete e[t]:h(o)&&!o.filter(e=>g(e)&&!U(e)).length&&delete i[t]),i=o}}}(e,t)}),e}const $={isValid:!1,value:""};var K=e=>h(e)?e.reduce((e,{ref:{checked:t,value:n}})=>t?{isValid:!0,value:n}:e,$):$,q=e=>!!e&&"file"===e.type,Q=e=>!!e&&"select-multiple"===e.type,G=e=>""===e;const X={value:!1,isValid:!1},J={value:!0,isValid:!0};var Z=e=>{if(h(e)){if(e.length>1){const t=e.filter(({ref:{checked:e}})=>e).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!d(r.value)?d(n)||G(n)?J:{value:n,isValid:!0}:J:X}return X};function ee(e,t){const{name:n,value:r}=t,o=e[n];return q(t)?t.files:V(t)?o?K(o.options).value:"":Q(t)?(a=t.options,[...a].filter(({selected:e})=>e).map(({value:e})=>e)):z(t)?!!o&&Z(o.options).value:r;var a}var te=e=>"string"==typeof e,ne=(e,t)=>{const n={},r=te(t),o=h(t),a=t&&t.nest;for(const i in e)(d(t)||a||r&&i.startsWith(t)||o&&t.find(e=>i.startsWith(e)))&&(n[i]=ee(e,e[i].ref));return n},re=(e,{type:t,types:n,message:r})=>g(e)&&e.type===t&&e.message===r&&((e={},t={})=>Object.entries(e).reduce((e,[n,r])=>!!e&&(t[n]&&t[n]===r),!0))(e.types,n);var oe=e=>e instanceof RegExp,ae=e=>{const t=g(e)&&!oe(e);return{value:t?e.value:e,message:t?e.message:""}},ie=e=>"function"==typeof e,ue=e=>"boolean"==typeof e;function le(e,t,n="validate"){const r=te(e);if(r||ue(e)&&!e){return{type:n,message:r?e:"",ref:t}}}var se=(e,t,n,r,o)=>{if(!t)return{};const a=n[e];return Object.assign(Object.assign({},a),{types:Object.assign(Object.assign({},a&&a.types?a.types:{}),{[r]:o||!0})})},ce=async(e,t,{ref:n,ref:{type:r,value:o,name:a},options:i,required:u,maxLength:l,minLength:s,min:c,max:f,pattern:d,validate:h})=>{const m=e.current,v={},y=V(n),b=z(n),w=y||b,E=G(o),_=se.bind(null,a,t,v),M=(e,r,o,i=k,u=S)=>{const l=e?r:o;if(v[a]=Object.assign({type:e?i:u,message:l,ref:n},_(e?i:u,l)),!t)return v};if(u&&(!y&&!b&&(E||p(o))||ue(o)&&!o||b&&!Z(i).isValid||y&&!K(i).isValid)){const{value:e,message:r}=te(u)?{value:!!u,message:u}:ae(u);if(e&&(v[a]=Object.assign({type:D,message:r,ref:w?m[a].options[0].ref:n},_(D,r)),!t))return v}if(!p(c)||!p(f)){let e,a;const{value:i,message:u}=ae(f),{value:l,message:s}=ae(c);if("number"===r||!r&&!isNaN(o)){const t=n.valueAsNumber||parseFloat(o);p(i)||(e=t>i),p(l)||(a=t<l)}else{const t=n.valueAsDate||new Date(o);te(i)&&(e=t>new Date(i)),te(l)&&(a=t<new Date(l))}if((e||a)&&(M(!!e,u,s,x,C),!t))return v}if(te(o)&&!E&&(l||s)){const{value:e,message:n}=ae(l),{value:r,message:a}=ae(s),i=o.toString().length,u=l&&i>e,c=s&&i<r;if((u||c)&&(M(!!u,n,a),!t))return v}if(d&&!E){const{value:e,message:r}=ae(d);if(oe(e)&&!e.test(o)&&(v[a]=Object.assign({type:O,message:r,ref:n},_(O,r)),!t))return v}if(h){const e=ee(m,n),r=w&&i?i[0].ref:n;if(ie(h)){const n=le(await h(e),r);if(n&&(v[a]=Object.assign(Object.assign({},n),_(T,n.message)),!t))return v}else if(g(h)){const n=Object.entries(h),o=await new Promise(o=>{n.reduce(async(i,[u,l],s)=>{if(!U(await i)&&!t||!ie(l))return o(i);let c;const f=le(await l(e),r,u);return f?(c=Object.assign(Object.assign({},f),_(u,f.message)),t&&(v[a]=c)):c=i,n.length-1===s?o(c):c},{})});if(!U(o)&&(v[a]=Object.assign({ref:r},o),!t))return v}}return v};const fe=(e,t)=>h(e.inner)?e.inner.reduce((e,{path:n,message:r,type:o})=>Object.assign(Object.assign({},e),e[n]&&t?{[n]:se(n,t,e,o,r)}:{[n]:e[n]||Object.assign({message:r,type:o},t?{types:{[o]:r||!0}}:{})}),{}):{[e.path]:{message:e.message,type:e.type}};async function de(e,t,n,r,o){if(r)return r(n,o);try{return{values:await e.validate(n,{abortEarly:!1,context:o}),errors:{}}}catch(e){return{values:{},errors:I(fe(e,t))}}}var pe=(e,t,n)=>d(e[t])?L(e,t,n):e[t];var he=e=>p(e)||!m(e);const me=(e,t)=>{const n=(t,n,r)=>{const o=r?`${e}.${n}`:`${e}[${n}]`;return he(t)?o:me(o,t)};return h(t)?t.map((e,t)=>n(e,t)):Object.entries(t).map(([e,t])=>n(t,e,!0))};var ge=(e,t)=>function e(t){return t.reduce((t,n)=>t.concat(h(n)?e(n):n),[])}(me(e,t)),ve=(e,t,n,r,o)=>{let a;return n.add(t),U(e)?a=o||void 0:d(e[t])?(a=L(I(e),t),h(o)&&h(a)&&a.length!==o.length&&(a=o),d(a)||ge(t,a).forEach(e=>n.add(e))):(a=e[t],n.add(t)),d(a)?g(r)?pe(r,t):r:a},ye=({hasError:e,isBlurEvent:t,isOnSubmit:n,isReValidateOnSubmit:r,isOnBlur:o,isReValidateOnBlur:a,isSubmitted:i})=>n&&r||n&&!i||o&&!t&&!e||a&&!t&&e||r&&i,be=(e,t)=>{const n=I(ne(e));return t?L(n,t,n):n};function we(e,t){let n=!1;if(!h(e)||!h(t)||e.length!==t.length)return!0;for(let r=0;r<e.length&&!n;r++){const o=e[r],a=t[r];if(d(a)||Object.keys(o).length!==Object.keys(a).length){n=!0;break}for(const e in o)if(o[e]!==a[e]){n=!0;break}}return n}const Ee=(e,t)=>e.startsWith(`${t}[`);var xe=(e,t)=>[...e].reduce((e,n)=>!!Ee(t,n)||e,!1);var Ce=e=>({isOnSubmit:!e||e===y.onSubmit,isOnBlur:e===y.onBlur,isOnChange:e===y.onChange});const{useRef:ke,useState:Se,useCallback:Oe,useEffect:De}=r;function Te({mode:e=y.onSubmit,reValidateMode:t=y.onChange,validationSchema:n,validationResolver:r,validationContext:o,defaultValues:a={},submitFocusError:i=!0,validateCriteriaMode:u}={}){const l=ke({}),s="all"===u,c=ke({}),f=ke({}),m=ke({}),x=ke(new Set),C=ke(new Set),k=ke(new Set),S=ke(new Set),O=ke(!0),D=ke({}),T=ke(a),_=ke(!1),M=ke(!1),P=ke(!1),F=ke(!1),j=ke(0),H=ke(!1),W=ke(),$=ke({}),K=ke(o),X=ke(new Set),[,J]=Se(),{isOnBlur:Z,isOnSubmit:oe}=ke(Ce(e)).current,ae="undefined"==typeof window,le=!(!n&&!r),se="undefined"!=typeof document&&!ae&&!d(window.HTMLElement),fe=se&&"Proxy"in window,me=ke({dirty:!fe,dirtyFields:!fe,isSubmitted:oe,submitCount:!fe,touched:!fe,isSubmitting:!fe,isValid:!fe}),{isOnBlur:ge,isOnSubmit:Ee}=ke(Ce(t)).current,Te=Oe(()=>{_.current||J({})},[]),_e=Oe((e,t,n,r)=>{let o=n||function({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o}){const a=U(n),i=U(e),u=L(n,t),l=L(e,t);return!(a&&r.has(t)||l&&l.isManual)&&(!!(i!==a||!i&&!l||a&&o.has(t)&&!r.has(t))||u&&!re(l,u))}({errors:c.current,error:t,name:e,validFields:S.current,fieldsWithValidation:k.current});if(U(t)?((k.current.has(e)||le)&&(S.current.add(e),o=o||L(c.current,e)),c.current=Y(c.current,[e])):(S.current.delete(e),o=o||!L(c.current,e),N(c.current,e,t[e])),o&&!r)return Te(),!0},[Te,le]),Me=Oe((e,t)=>{const n=e.ref,r=e.options,{type:o}=n,a=se&&v(n)&&p(t)?"":t;var i;return V(n)&&r?r.forEach(({ref:e})=>e.checked=e.value===a):q(n)?G(a)||(i=a,"undefined"!=typeof FileList&&i instanceof FileList)?n.files=a:n.value=a:Q(n)?[...n.options].forEach(e=>e.selected=a.includes(e.value)):z(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=a.includes(e.value)):r[0].ref.checked=!!a:n.value=a,!!o},[se]),Pe=e=>{if(!l.current[e]||!me.current.dirty&&!me.current.dirtyFields)return!1;const t=xe(X.current,e),n=C.current.size;let r=D.current[e]!==ee(l.current,l.current[e].ref);if(t){const t=e.substring(0,e.indexOf("["));r=we(be(l.current,t),L(T.current,t))}const o=(t?F.current:C.current.has(e))!==r;return r?C.current.add(e):C.current.delete(e),F.current=t?r:!!C.current.size,me.current.dirty?o:n!==C.current.size},Fe=Oe(e=>{if(Pe(e)||!L(f.current,e)&&me.current.touched)return!!N(f.current,e,!0)},[]),Ae=Oe((e,t,n)=>{const r=h(t);for(const o in t){const a=`${n||e}${r?`[${o}]`:`.${o}`}`;g(t[o])&&Ae(e,t[o],a);const i=l.current[a];i&&(Me(i,t[o]),Fe(a))}},[Me,Fe]),je=Oe((e,t)=>{const n=l.current[e];if(n){Me(n,t);const r=Fe(e);if(ue(r))return r}else he(t)||Ae(e,t)},[Fe,Me,Ae]),Ne=Oe(async(e,t)=>{const n=l.current[e];if(!n)return!1;const r=await ce(l,s,n);return _e(e,r,!1,t),U(r)},[_e,s]),Ie=Oe(async e=>{const{errors:t}=await de(n,s,be(l.current),r,K.current),o=O.current;return O.current=U(t),h(e)?(e.forEach(e=>{const n=L(t,e);n?N(c.current,e,n):Y(c.current,[e])}),Te()):_e(e,L(t,e)?{[e]:L(t,e)}:{},o!==O.current),U(c.current)},[Te,_e,s,r,n]),Le=Oe(async e=>{const t=e||Object.keys(l.current);if(le)return Ie(t);if(h(t)){const e=await Promise.all(t.map(async e=>await Ne(e,!0)));return Te(),e.every(Boolean)}return await Ne(t)},[Ie,Ne,Te,le]),Re=e=>{const t=(e.match(/\w+/)||[])[0];return M.current||x.current.has(e)||x.current.has(t)&&!A(e)&&X.current.has(t)};function Ve(e,t,n){let r=!1;const o=h(e);(o?e:[e]).forEach(e=>{const n=te(e);r=!(!je(n?e:Object.keys(e)[0],n?t:Object.values(e)[0])&&!o)||Re(e)}),(r||o)&&Te(),(n||o&&t)&&Le(o?void 0:e)}W.current=W.current?W.current:async({type:e,target:t})=>{const o=t?t.name:"",a=l.current,i=c.current,u=a[o],d=L(i,o);let p;if(!u)return;const h=e===b,m=ye({hasError:!!d,isBlurEvent:h,isOnSubmit:oe,isReValidateOnSubmit:Ee,isOnBlur:Z,isReValidateOnBlur:ge,isSubmitted:P.current}),g=Pe(o);let v=Re(o)||g;if(h&&!L(f.current,o)&&me.current.touched&&(N(f.current,o,!0),v=!0),m)return v&&Te();if(le){const{errors:e}=await de(n,s,be(a),r,K.current),t=O.current;O.current=U(e),p=L(e,o)?{[o]:L(e,o)}:{},t!==O.current&&(v=!0)}else p=await ce(l,s,u);!_e(o,p)&&v&&Te()};const ze=Oe((e={})=>{const t=U(T.current)?ne(l.current):T.current;de(n,s,I(Object.assign(Object.assign({},t),e)),r,K.current).then(({errors:e})=>{const t=O.current;O.current=U(e),t!==O.current&&Te()})},[Te,s,r]),Be=(e,t)=>{!d(W.current)&&e&&function(e,t,n,r){if(!n)return;const{ref:o,ref:{name:a,type:i},mutationWatcher:u}=n;if(!i)return void delete e[a];const l=e[a];if((V(o)||z(o))&&l){const{options:n}=l;h(n)&&n.length?(n.forEach(({ref:e,mutationWatcher:o},a)=>{(e&&B(e)||r)&&(R(e,t),o&&o.disconnect(),Y(n,[`[${a}]`]))}),n&&!n.filter(Boolean).length&&delete e[a]):delete e[a]}else(B(o)||r)&&(R(o,t),u&&u.disconnect(),delete e[a])}(l.current,W.current,e,t)},Ue=Oe((e,t)=>{if(!e||e&&xe(X.current,e.ref.name)&&!t)return;Be(e,t);const{name:n}=e.ref;c.current=Y(c.current,[n]),f.current=Y(f.current,[n]),D.current=Y(D.current,[n]),[C,k,S,x].forEach(e=>e.current.delete(n)),(me.current.isValid||me.current.touched)&&(Te(),le&&ze())},[Te,le,ze]);const He=({name:e,type:t,types:n,message:r,preventRender:o})=>{const a=l.current[e];re(c.current[e],{type:t,message:r,types:n})||(N(c.current,e,{type:t,types:n,message:r,ref:a?a.ref:{},isManual:!0}),o||Te())};function We(e){U(l.current)||(h(e)?e:[e]).forEach(e=>Ue(l.current[e],!0))}function Ye(e,t={}){if(!e.name)return console.warn("Missing name @",e);const{name:n,type:r,value:o}=e,a=Object.assign({ref:e},t),i=l.current,u=V(e)||z(e);let c,f=i[n],p=!0,m=!1;if(u?f&&h(f.options)&&f.options.find(({ref:e})=>o===e.value):f)return void(i[n]=Object.assign(Object.assign({},f),t));if(r){const o=function(e,t){const n=new MutationObserver(()=>{B(e)&&(n.disconnect(),t())});return n.observe(window.document,{childList:!0,subtree:!0}),n}(e,()=>Ue(a));f=u?Object.assign({options:[...f&&f.options||[],{ref:e,mutationWatcher:o}],ref:{type:r,name:n}},t):Object.assign(Object.assign({},a),{mutationWatcher:o})}else f=a;if(i[n]=f,U(T.current)||(c=pe(T.current,n),p=d(c),m=xe(X.current,n),p||m||Me(f,c)),le&&!m&&me.current.isValid?ze():U(t)||(k.current.add(n),!oe&&me.current.isValid&&ce(l,s,f).then(e=>{const t=O.current;U(e)?S.current.add(n):O.current=!1,t!==O.current&&Te()})),D.current[n]||m&&p||(D.current[n]=p?ee(i,f.ref):c),!r)return;!function({field:e,handleChange:t,isRadioOrCheckbox:n}){const{ref:r}=e;v(r)&&r.addEventListener&&t&&(r.addEventListener(n?w:E,t),r.addEventListener(b,t))}({field:u&&f.options?f.options[f.options.length-1]:f,isRadioOrCheckbox:u,handleChange:W.current})}function $e(e,t){if(!ae)if(te(e))Ye({name:e},t);else{if(!(g(e)&&"name"in e))return t=>t&&Ye(t,e);Ye(e,t)}}const Ke=Oe(e=>async t=>{let o,a;t&&(t.preventDefault(),t.persist());const u=l.current;me.current.isSubmitting&&(H.current=!0,Te());try{if(le){a=ne(u);const{errors:e,values:t}=await de(n,s,I(a),r,K.current);c.current=e,o=e,a=t}else{const{errors:e,values:t}=await Object.values(u).reduce(async(e,t)=>{if(!t)return e;const n=await e,{ref:r,ref:{name:o}}=t;if(!u[o])return Promise.resolve(n);const a=await ce(l,s,t);return a[o]?(N(n.errors,o,a[o]),S.current.delete(o),Promise.resolve(n)):(k.current.has(o)&&S.current.add(o),n.values[o]=ee(u,r),Promise.resolve(n))},Promise.resolve({errors:{},values:{}}));o=e,a=t}U(o)?(c.current={},await e(I(a),t)):(i&&se&&((e,t)=>{for(const n in e)if(L(t,n)){const t=e[n];if(t){if(v(t.ref)&&t.ref.focus){t.ref.focus();break}if(t.options){t.options[0].ref.focus();break}}}})(u,o),c.current=o)}finally{P.current=!0,H.current=!1,j.current=j.current+1,Te()}},[se,Te,le,i,s,r,n]),qe=e=>{const t=ne(l.current),n=U(t)?T.current:t;return e&&e.nest?I(n):n};De(()=>()=>{_.current=!0,l.current&&Object.values(l.current).forEach(e=>Ue(e,!0))},[Ue]),le||(O.current=S.current.size>=k.current.size&&U(c.current));const Qe={dirty:F.current,dirtyFields:C.current,isSubmitted:P.current,submitCount:j.current,touched:f.current,isSubmitting:H.current,isValid:oe?P.current&&U(c.current):O.current};return{watch:function(e,t){const n=d(t)?d(T.current)?{}:T.current:t,r=ne(l.current,e),o=x.current;if(te(e))return ve(r,e,o,n,X.current.has(e)?m.current[e]:void 0);if(h(e))return e.reduce((e,t)=>{let a;return a=U(l.current)&&g(n)?pe(n,t):ve(r,t,o,n),Object.assign(Object.assign({},e),{[t]:a})},{});M.current=!0;const a=!U(r)&&r||t||T.current;return e&&e.nest?I(a):a},control:Object.assign(Object.assign({register:$e,unregister:We,removeFieldEventListener:Be,getValues:qe,setValue:Ve,reRender:Te,triggerValidation:Le},le?{validateSchemaIsValid:ze}:{}),{formState:Qe,mode:{isOnBlur:Z,isOnSubmit:oe},reValidateMode:{isReValidateOnBlur:ge,isReValidateOnSubmit:Ee},errorsRef:c,touchedFieldsRef:f,fieldsRef:l,resetFieldArrayFunctionRef:$,validFieldsRef:S,fieldsWithValidationRef:k,watchFieldArrayRef:m,fieldArrayNamesRef:X,isDirtyRef:F,readFormStateRef:me,defaultValuesRef:T}),handleSubmit:Ke,setValue:Oe(Ve,[Te,je,Le]),triggerValidation:Le,getValues:Oe(qe,[]),reset:Oe(e=>{if(se)for(const e of Object.values(l.current))if(e&&v(e.ref)&&e.ref.closest)try{e.ref.closest("form").reset();break}catch(e){}e&&(T.current=e),Object.values($.current).forEach(e=>ie(e)&&e()),c.current={},l.current={},f.current={},S.current=new Set,k.current=new Set,D.current={},x.current=new Set,C.current=new Set,M.current=!1,P.current=!1,F.current=!1,O.current=!0,j.current=0,Te()},[]),register:Oe($e,[T.current,D.current,m.current]),unregister:Oe(We,[]),clearError:Oe((function(e){d(e)?c.current={}:Y(c.current,h(e)?e:[e]),Te()}),[]),setError:Oe((function(e,t="",n){te(e)?He(Object.assign({name:e},g(t)?{types:t,type:""}:{type:t,message:n})):h(e)&&(e.forEach(e=>He(Object.assign(Object.assign({},e),{preventRender:!0}))),Te())}),[]),errors:c.current,formState:fe?new Proxy(Qe,{get:(e,t)=>t in e?(me.current[t]=!0,e[t]):{}}):Qe}}
83
+ /*! *****************************************************************************
84
+ Copyright (c) Microsoft Corporation. All rights reserved.
85
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
86
+ this file except in compliance with the License. You may obtain a copy of the
87
+ License at http://www.apache.org/licenses/LICENSE-2.0
88
+
89
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
90
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
91
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
92
+ MERCHANTABLITY OR NON-INFRINGEMENT.
93
+
94
+ See the Apache Version 2.0 License for specific language governing permissions
95
+ and limitations under the License.
96
+ ***************************************************************************** */function _e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const Me=Object(r.createContext)(null);function Pe(){const e=Object(r.useContext)(Me);if(!d(e))return e;throw new Error("Missing FormContext")}const{useEffect:Fe,useCallback:Ae,useRef:je,useState:Ne}=r;const Ie=e=>{var{as:t,errors:n,name:o,message:a,children:i}=e,u=_e(e,["as","errors","name","message","children"]);const l=Pe(),s=L(n||l.errors,o);if(!s)return null;const{message:c,types:f}=s,d=Object.assign(Object.assign({},t?u:{}),{children:i?i({message:c||a,messages:f}):c||a});return t?Object(r.isValidElement)(t)?Object(r.cloneElement)(t,d):Object(r.createElement)(t,d):Object(r.createElement)(r.Fragment,Object.assign({},d))};function Le(e,t){if(null==e)return{};var n,r,o=function(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}(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 Re(){return(Re=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 Ve(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)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ze(e,t,n[t])}))}return e}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(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 We(e,t,n){return t&&He(e.prototype,t),n&&He(e,n),e}function Ye(e){return(Ye="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 $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ke(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?$e(e):t}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(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&&Qe(e,t)}function Xe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Je=function(e,t){var n;void 0===t&&(t=Xe);var r,o=[],a=!1;return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Ze=n(20),et=n.n(Ze);var tt=function(){function e(e){this.isSpeedy=void 0===e.speedy||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),void 0!==e.nonce&&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(e){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 nt=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var u=0;for(e=0===i?"":e[0]+" ";u<a;++u)t[u]=n(e,t[u],r).trim();break;default:var l=u=0;for(t=[];u<a;++u)for(var s=0;s<i;++s)t[l++]=n(e[s]+" ",o[u],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",u=2*t+3*n+4*a;if(944===u){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===_||2===_&&o(l,1)?"-webkit-"+l+l:l}if(0===_||2===_&&!o(i,1))return i;switch(u){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"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return d.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(b,"tb");break;case 232:l=i.replace(b,"tb-rl");break;case 220:l=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,u=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<u?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+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===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(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),A(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,u,s,c){for(var f,d=0,p=t;d<F;++d)switch(f=P[d].call(l,e,p,n,r,o,a,i,u,s,c)){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)&&(A=null,e?"function"!=typeof e?_=1:(_=2,A=e):_=0),u}function l(e,n){var u=e;if(33>u.charCodeAt(0)&&(u=u.trim()),u=[u],0<F){var l=i(-1,n,u,u,D,O,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var f=function e(n,u,l,f,d){for(var p,h,m,b,E,x=0,C=0,k=0,S=0,P=0,A=0,N=m=p=0,I=0,L=0,R=0,V=0,z=l.length,B=z-1,U="",H="",W="",Y="";I<z;){if(h=l.charCodeAt(I),I===B&&0!==C+S+k+x&&(0!==C&&(h=47===C?10:47),S=k=x=0,z++,B++),0===C+S+k+x){if(I===B&&(0<L&&(U=U.replace(c,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(I)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,V=++I;I<z;){switch(h=l.charCodeAt(I)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(I+1)){case 42:case 47:e:{for(N=I+1;N<B;++N)switch(l.charCodeAt(N)){case 47:if(42===h&&42===l.charCodeAt(N-1)&&I+2!==N){I=N+1;break e}break;case 10:if(47===h){I=N+1;break e}}I=N}}break;case 91:h++;case 40:h++;case 34:case 39:for(;I++<B&&l.charCodeAt(I)!==h;);}if(0===m)break;I++}switch(m=l.substring(V,I),0===p&&(p=(U=U.replace(s,"").trim()).charCodeAt(0)),p){case 64:switch(0<L&&(U=U.replace(c,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=u;break;default:L=M}if(V=(m=e(u,L,m,h,d+1)).length,0<F&&(E=i(3,m,L=t(M,U,R),u,D,O,V,h,d,f),U=L.join(""),void 0!==E&&0===(V=(m=E.trim()).length)&&(h=0,m="")),0<V)switch(h){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(g,"$1 $2"))+"{"+m+"}",m=1===_||2===_&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===f&&(H+=m,m="")}else m="";break;default:m=e(u,t(u,U,R),m,f,d+1)}W+=m,m=R=L=N=p=0,U="",h=l.charCodeAt(++I);break;case 125:case 59:if(1<(V=(U=(0<L?U.replace(c,""):U).trim()).length))switch(0===N&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(V=(U=U.replace(" ",":")).length),0<F&&void 0!==(E=i(1,U,u,n,D,O,H.length,f,d,f))&&0===(V=(U=E.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){Y+=U+l.charAt(I);break}default:58!==U.charCodeAt(V-1)&&(H+=r(U,p,h,U.charCodeAt(2)))}R=L=N=p=0,U="",h=l.charCodeAt(++I)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==f&&0<U.length&&(L=1,U+="\0"),0<F*j&&i(0,U,u,n,D,O,H.length,f,d,f),O=1,D++;break;case 59:case 125:if(0===C+S+k+x){O++;break}default:switch(O++,b=l.charAt(I),h){case 9:case 32:if(0===S+x+C)switch(P){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===S+C+x&&(L=R=1,b="\f"+b);break;case 108:if(0===S+C+x+T&&0<N)switch(I-N){case 2:112===P&&58===l.charCodeAt(I-3)&&(T=P);case 8:111===A&&(T=A)}break;case 58:0===S+C+x&&(N=I);break;case 44:0===C+k+S+x&&(L=1,b+="\r");break;case 34:case 39:0===C&&(S=S===h?0:0===S?h:S);break;case 91:0===S+C+k&&x++;break;case 93:0===S+C+k&&x--;break;case 41:0===S+C+x&&k--;break;case 40:if(0===S+C+x){if(0===p)switch(2*P+3*A){case 533:break;default:p=1}k++}break;case 64:0===C+k+S+x+N+m&&(m=1);break;case 42:case 47:if(!(0<S+x+k))switch(C){case 0:switch(2*h+3*l.charCodeAt(I+1)){case 235:C=47;break;case 220:V=I,C=42}break;case 42:47===h&&42===P&&V+2!==I&&(33===l.charCodeAt(V+2)&&(H+=l.substring(V,I+1)),b="",C=0)}}0===C&&(U+=b)}A=P,P=h,I++}if(0<(V=H.length)){if(L=u,0<F&&(void 0!==(E=i(2,H,L,n,D,O,V,f,d,f))&&0===(H=E).length))return Y+H+W;if(H=L.join(",")+"{"+H+"}",0!=_*T){switch(2!==_||o(H,2)||(T=0),T){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(v,"::-webkit-input-$1")+H.replace(v,"::-moz-$1")+H.replace(v,":-ms-input-$1")+H}T=0}}return Y+H+W}(M,u,n,0,0);return 0<F&&(void 0!==(l=i(-2,f,u,u,D,O,f.length,0,0,0))&&(f=l)),"",T=0,O=D=1,f}var s=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,x=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,O=1,D=1,T=0,_=1,M=[],P=[],F=0,A=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:F=P.length=0;break;default:if("function"==typeof t)P[F++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};function rt(e){e&&ot.current.insert(e+"}")}var ot={current:null},at=function(e,t,n,r,o,a,i,u,l,s){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return ot.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===u)return t+"/*|*/";break;case 3:switch(u){case 102:case 112:return ot.current.insert(n[0]+t),"";default:return t+(0===s?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(rt)}},it=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new nt(t);var o,a={};o=e.container||document.head;var i,u=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(u,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(at),i=function(e,t,n,o){var a=t.name;ot.current=n,r(e,t.styles),o&&(l.inserted[a]=!0)};var l={key:n,sheet:new tt({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return l};function ut(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var lt=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var st=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)},ct={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 ft=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pt=function(e){return 45===e.charCodeAt(1)},ht=function(e){return null!=e&&"boolean"!=typeof e},mt=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return pt(e)?e:e.replace(ft,"-$&").toLowerCase()})),gt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,(function(e,t,n){return yt={name:t,styles:n,next:yt},t}))}return 1===ct[e]||pt(e)||"number"!=typeof t||0===t?t:t+"px"};function vt(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return yt={name:n.name,styles:n.styles,next:yt},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)yt={name:o.name,styles:o.styles,next:yt},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+=vt(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":ht(i)&&(r+=mt(a)+":"+gt(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var u=vt(e,t,i,!1);switch(a){case"animation":case"animationName":r+=mt(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}else for(var l=0;l<i.length;l++)ht(i[l])&&(r+=mt(a)+":"+gt(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=yt,i=n(e);return yt=a,vt(e,t,i,r)}break;case"string":}if(null==t)return n;var u=t[n];return void 0===u||r?n:u}var yt,bt=/label:\s*([^\s;\n{]+)\s*;/g;var wt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";yt=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=vt(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=vt(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);bt.lastIndex=0;for(var u,l="";null!==(u=bt.exec(o));)l+="-"+u[1];return{name:st(o)+l,styles:o,next:yt}};var Et=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wt(t)},xt=Object(r.createContext)("undefined"!=typeof HTMLElement?it():null),Ct=Object(r.createContext)({}),kt=xt.Provider,St=function(e){return Object(r.forwardRef)((function(t,n){return Object(r.createElement)(xt.Consumer,null,(function(r){return e(t,r,n)}))}))},Ot="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dt=Object.prototype.hasOwnProperty,Tt=function(e,t,n,o){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var i=t[Ot],u=[a],l="";"string"==typeof t.className?l=ut(e.registered,u,t.className):null!=t.className&&(l=t.className+" ");var s=wt(u);lt(e,s,"string"==typeof i);l+=e.key+"-"+s.name;var c={};for(var f in t)Dt.call(t,f)&&"css"!==f&&f!==Ot&&(c[f]=t[f]);return c.ref=o,c.className=l,Object(r.createElement)(i,c)},_t=St((function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(Ct.Consumer,null,(function(r){return Tt(t,e,r,n)})):Tt(t,e,null,n)}));var Mt=function(e,t){var n=arguments;if(null==t||!Dt.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=_t;var i={};for(var u in t)Dt.call(t,u)&&(i[u]=t[u]);i[Ot]=e,a[1]=i;for(var l=2;l<o;l++)a[l]=n[l];return r.createElement.apply(null,a)},Pt=St((function(e,t){var n=e.styles;if("function"==typeof n)return Object(r.createElement)(Ct.Consumer,null,(function(e){var o=wt([n(e)]);return Object(r.createElement)(Ft,{serialized:o,cache:t})}));var o=wt([n]);return Object(r.createElement)(Ft,{serialized:o,cache:t})})),Ft=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}et()(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new tt({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()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&lt(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)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(r.Component),At=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var u in i="",a)a[u]&&u&&(i&&(i+=" "),i+=u);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function jt(e,t,n){var r=[],o=ut(e,r,n);return r.length<2?n:o+t(r)}var Nt=St((function(e,t){return Object(r.createElement)(Ct.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=wt(n,t.registered);return lt(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return jt(t.registered,r,At(n))},theme:n},a=e.children(o);return!0,a}))})),It=n(2),Lt=n.n(It),Rt=function(){};function Vt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function zt(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Vt(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Bt=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ye(e)&&null!==e?[e]:[]};function Ut(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ht(e){return Ut(e)?window.pageYOffset:e.scrollTop}function Wt(e,t){Ut(e)?window.scrollTo(0,t):e.scrollTop=t}function Yt(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function $t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Rt,o=Ht(e),a=t-o,i=10,u=0;function l(){var t=Yt(u+=i,o,a,n);Wt(e,t),u<n?window.requestAnimationFrame(l):r(e)}l()}function Kt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var qt=n(8),Qt=n.n(qt);function Gt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,u=e.theme.spacing,l=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),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Ht(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=m-b,E=g-h,x=w+v,C=c-v-h,k=d-g+v+y,S=v+h-b;switch(o){case"auto":case"bottom":if(E>=p)return{placement:"bottom",maxHeight:t};if(C>=p&&!i)return a&&$t(l,k,160),{placement:"bottom",maxHeight:t};if(!i&&C>=r||i&&E>=r)return a&&$t(l,k,160),{placement:"bottom",maxHeight:i?E-y:C-y};if("auto"===o||i){var O=t,D=i?w:x;return D>=r&&(O=Math.min(D-y-u.controlHeight,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return Wt(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(x>=p&&!i)return a&&$t(l,S,160),{placement:"top",maxHeight:t};if(!i&&x>=r||i&&w>=r){var T=t;return(!i&&x>=r||i&&w>=r)&&(T=i?w-b:x-b),a&&$t(l,S,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var Xt=function(e){return"auto"===e?"bottom":e},Jt=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),ze($e($e(n)),"getPlacement",(function(e){var t=n.props,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,u=t.menuShouldScrollIntoView,l=t.theme,s=n.context.getPortalPlacement;if(e){var c="fixed"===i,f=Gt({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:u&&!c,isFixedPosition:c,theme:l});s&&s(f),n.setState(f)}})),ze($e($e(n)),"getUpdatedProps",(function(){var e=n.props.menuPlacement,t=n.state.placement||Xt(e);return Be({},n.props,{placement:t,maxHeight:n.state.maxHeight})})),n}return Ge(t,e),We(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(r.Component);ze(Jt,"contextTypes",{getPortalPlacement:Lt.a.func});var Zt=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"}},en=Zt,tn=Zt,nn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Mt("div",Re({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};nn.defaultProps={children:"No options"};var rn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Mt("div",Re({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};rn.defaultProps={children:"Loading..."};var on=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"state",{placement:null}),ze($e($e(n)),"getPortalPlacement",(function(e){var t=e.placement;t!==Xt(n.props.menuPlacement)&&n.setState({placement:t})})),n}return Ge(t,e),We(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,u=e.getStyles,l="fixed"===i;if(!t&&!l||!r)return null;var s=this.state.placement||Xt(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),f=l?0:window.pageYOffset,d=c[s]+f,p=Mt("div",{css:u("menuPortal",{offset:d,position:i,rect:c})},n);return t?Object(a.createPortal)(p,t):p}}]),t}(r.Component);ze(on,"childContextTypes",{getPortalPlacement:Lt.a.func});var an=Array.isArray,un=Object.keys,ln=Object.prototype.hasOwnProperty;function sn(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Ye(t)&&"object"==Ye(n)){var r,o,a,i=an(t),u=an(n);if(i&&u){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=u)return!1;var l=t instanceof Date,s=n instanceof Date;if(l!=s)return!1;if(l&&s)return t.getTime()==n.getTime();var c=t instanceof RegExp,f=n instanceof RegExp;if(c!=f)return!1;if(c&&f)return t.toString()==n.toString();var d=un(t);if((o=d.length)!==un(n).length)return!1;for(r=o;0!=r--;)if(!ln.call(n,d[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=d[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}var cn=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return Mt("div",{css:a("valueContainer",this.props),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}}]),t}(r.Component);function fn(){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 fn=function(){return n},n}var dn={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},pn=function(e){var t=e.size,n=Le(e,["size"]);return Mt("svg",Re({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dn},n))},hn=function(e){return Mt(pn,Re({size:20},e),Mt("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"}))},mn=function(e){return Mt(pn,Re({size:20},e),Mt("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"}))},gn=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}}},vn=gn,yn=gn,bn=function(){var e=Et.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_"}}}(fn()),wn=function(e){var t=e.delay,n=e.offset;return Mt("span",{css:Et({animation:"".concat(bn," 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"},"")})},En=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return Mt("div",Re({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),Mt(wn,{delay:0,offset:a}),Mt(wn,{delay:160,offset:!0}),Mt(wn,{delay:320,offset:!a}))};En.defaultProps={size:4};var xn=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Cn=function(e){var t=e.children,n=e.innerProps;return Mt("div",n,t)},kn=Cn,Sn=Cn,On=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return Mt("div",n,t||Mt(hn,{size:14}))}}]),t}(r.Component),Dn=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.components,a=t.cx,i=t.data,u=t.getStyles,l=t.innerProps,s=t.isDisabled,c=t.removeProps,f=t.selectProps,d=o.Container,p=o.Label,h=o.Remove;return Mt(Nt,null,(function(t){var o=t.css,m=t.cx;return Mt(d,{data:i,innerProps:Be({},l,{className:m(o(u("multiValue",e.props)),a({"multi-value":!0,"multi-value--is-disabled":s},r))}),selectProps:f},Mt(p,{data:i,innerProps:{className:m(o(u("multiValueLabel",e.props)),a({"multi-value__label":!0},r))},selectProps:f},n),Mt(h,{data:i,innerProps:Be({className:m(o(u("multiValueRemove",e.props)),a({"multi-value__remove":!0},r))},c),selectProps:f}))}))}}]),t}(r.Component);ze(Dn,"defaultProps",{cropWithEllipsis:!0});var Tn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Mt("div",Re({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||Mt(hn,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,u=e.innerRef,l=e.innerProps,s=e.menuIsOpen;return Mt("div",Re({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":s},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Mt("div",Re({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||Mt(mn,null))},DownChevron:mn,CrossIcon:hn,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,u=e.label,l=e.theme,s=e.selectProps;return Mt("div",{css:o("group",e),className:r({group:!0},n)},Mt(a,Re({},i,{selectProps:s,theme:l,getStyles:o,cx:r}),u),Mt("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,Le(e,["className","cx","getStyles","theme","selectProps"]));return Mt("div",Re({css:r("groupHeading",Be({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 Mt("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 Mt("span",Re({},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,u=e.theme,l=(e.selectProps,Le(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Mt("div",{css:r("input",Be({theme:u},l))},Mt(Qt.a,Re({className:n({input:!0},t),inputRef:o,inputStyle:xn(a),disabled:i},l)))},LoadingIndicator:En,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return Mt("div",Re({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;return Mt("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:on,LoadingMessage:rn,NoOptionsMessage:nn,MultiValue:Dn,MultiValueContainer:kn,MultiValueLabel:Sn,MultiValueRemove:On,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,u=e.isSelected,l=e.innerRef,s=e.innerProps;return Mt("div",Re({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":u},n),ref:l},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Mt("div",Re({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,u=e.isRtl;return Mt("div",Re({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":u},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 Mt("div",Re({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:cn},_n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Mn=function(e){for(var t=0;t<_n.length;t++)e=e.replace(_n[t].letters,_n[t].base);return e},Pn=function(e){return e.replace(/^\s+|\s+$/g,"")},Fn=function(e){return"".concat(e.label," ").concat(e.value)},An={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;"},jn=function(e){return Mt("span",Re({css:An},e))},Nn=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,Le(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Mt("input",Re({ref:t},n,{css:Et({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)"},"")}))}}]),t}(r.Component),In=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(a.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(r.Component),Ln=["boxSizing","height","overflow","paddingRight","position"],Rn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Vn(e){e.preventDefault()}function zn(e){e.stopPropagation()}function Bn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Un(){return"ontouchstart"in window||navigator.maxTouchPoints}var Hn=!(!window.document||!window.document.createElement),Wn=0,Yn=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"originalStyles",{}),ze($e($e(n)),"listenerOptions",{capture:!1,passive:!1}),n}return Ge(t,e),We(t,[{key:"componentDidMount",value:function(){var e=this;if(Hn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&Ln.forEach((function(t){var n=a&&a[t];e.originalStyles[t]=n})),n&&Wn<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,u=document.body?document.body.clientWidth:0,l=window.innerWidth-u+i||0;Object.keys(Rn).forEach((function(e){var t=Rn[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(l,"px"))}o&&Un()&&(o.addEventListener("touchmove",Vn,this.listenerOptions),r&&(r.addEventListener("touchstart",Bn,this.listenerOptions),r.addEventListener("touchmove",zn,this.listenerOptions))),Wn+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Hn){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Wn=Math.max(Wn-1,0),n&&Wn<1&&Ln.forEach((function(t){var n=e.originalStyles[t];a&&(a[t]=n)})),o&&Un()&&(o.removeEventListener("touchmove",Vn,this.listenerOptions),r&&(r.removeEventListener("touchstart",Bn,this.listenerOptions),r.removeEventListener("touchmove",zn,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(r.Component);ze(Yn,"defaultProps",{accountForScrollbars:!0});var $n={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Kn=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"state",{touchScrollTarget:null}),ze($e($e(n)),"getScrollTarget",(function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})})),ze($e($e(n)),"blurSelectInput",(function(){document.activeElement&&document.activeElement.blur()})),n}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?Mt("div",null,Mt("div",{onClick:this.blurSelectInput,css:$n}),Mt(In,{innerRef:this.getScrollTarget},t),r?Mt(Yn,{touchScrollTarget:r}):null):t}}]),t}(r.PureComponent),qn=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"isBottom",!1),ze($e($e(n)),"isTop",!1),ze($e($e(n)),"scrollTarget",void 0),ze($e($e(n)),"touchStart",void 0),ze($e($e(n)),"cancelScroll",(function(e){e.preventDefault(),e.stopPropagation()})),ze($e($e(n)),"handleEventDelta",(function(e,t){var r=n.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,u=r.onTopLeave,l=n.scrollTarget,s=l.scrollTop,c=l.scrollHeight,f=l.clientHeight,d=n.scrollTarget,p=t>0,h=c-f-s,m=!1;h>t&&n.isBottom&&(a&&a(e),n.isBottom=!1),p&&n.isTop&&(u&&u(e),n.isTop=!1),p&&t>h?(o&&!n.isBottom&&o(e),d.scrollTop=c,m=!0,n.isBottom=!0):!p&&-t>s&&(i&&!n.isTop&&i(e),d.scrollTop=0,m=!0,n.isTop=!0),m&&n.cancelScroll(e)})),ze($e($e(n)),"onWheel",(function(e){n.handleEventDelta(e,e.deltaY)})),ze($e($e(n)),"onTouchStart",(function(e){n.touchStart=e.changedTouches[0].clientY})),ze($e($e(n)),"onTouchMove",(function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)})),ze($e($e(n)),"getScrollTarget",(function(e){n.scrollTarget=e})),n}return Ge(t,e),We(t,[{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){"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 o.a.createElement(In,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(r.Component),Qn=function(e){function t(){return Ue(this,t),Ke(this,qe(t).apply(this,arguments))}return Ge(t,e),We(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=Le(e,["isEnabled"]);return t?o.a.createElement(qn,n):this.props.children}}]),t}(r.Component);ze(Qn,"defaultProps",{isEnabled:!0});var Gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled;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, 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"}},Xn=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.")}},Jn=function(e){return!!e.isDisabled},Zn={clearIndicator:yn,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:vn,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:tn,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return ze(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),ze(t,"backgroundColor",i.neutral0),ze(t,"borderRadius",o),ze(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),ze(t,"marginBottom",a.menuGutter),ze(t,"marginTop",a.menuGutter),ze(t,"position","absolute"),ze(t,"width","100%"),ze(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:en,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 er,tr={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}},nr={backspaceRemovesValue:!0,blurInputOnSelect:Kt(),captureMenuScroll:!Kt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Be({ignoreCase:!0,ignoreAccents:!0,stringify:Fn,trim:!0,matchFrom:"any"},er),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,u=n.matchFrom,l=i?Pn(t):t,s=i?Pn(a(e)):a(e);return r&&(l=l.toLowerCase(),s=s.toLowerCase()),o&&(l=Mn(l),s=Mn(s)),"start"===u?s.substr(0,l.length)===l:s.indexOf(l)>-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:Jn,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},rr=1,or=function(e){function t(e){var n;Ue(this,t),ze($e($e(n=Ke(this,qe(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),ze($e($e(n)),"blockOptionHover",!1),ze($e($e(n)),"isComposing",!1),ze($e($e(n)),"clearFocusValueOnUpdate",!1),ze($e($e(n)),"commonProps",void 0),ze($e($e(n)),"components",void 0),ze($e($e(n)),"hasGroups",!1),ze($e($e(n)),"initialTouchX",0),ze($e($e(n)),"initialTouchY",0),ze($e($e(n)),"inputIsHiddenAfterUpdate",void 0),ze($e($e(n)),"instancePrefix",""),ze($e($e(n)),"openAfterFocus",!1),ze($e($e(n)),"scrollToFocusedOptionOnUpdate",!1),ze($e($e(n)),"userIsDragging",void 0),ze($e($e(n)),"controlRef",null),ze($e($e(n)),"getControlRef",(function(e){n.controlRef=e})),ze($e($e(n)),"focusedOptionRef",null),ze($e($e(n)),"getFocusedOptionRef",(function(e){n.focusedOptionRef=e})),ze($e($e(n)),"menuListRef",null),ze($e($e(n)),"getMenuListRef",(function(e){n.menuListRef=e})),ze($e($e(n)),"inputRef",null),ze($e($e(n)),"getInputRef",(function(e){n.inputRef=e})),ze($e($e(n)),"cacheComponents",(function(e){n.components=Be({},Tn,{components:e}.components)})),ze($e($e(n)),"focus",n.focusInput),ze($e($e(n)),"blur",n.blurInput),ze($e($e(n)),"onChange",(function(e,t){var r=n.props;(0,r.onChange)(e,Be({},t,{name:r.name}))})),ze($e($e(n)),"setValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=n.props,a=o.closeMenuOnSelect,i=o.isMulti;n.onInputChange("",{action:"set-value"}),a&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})})),ze($e($e(n)),"selectOption",(function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,a=n.state.selectValue;if(o)if(n.isOptionSelected(e,a)){var i=n.getOptionValue(e);n.setValue(a.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(Ve(a),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,a)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()})),ze($e($e(n)),"removeValue",(function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()})),ze($e($e(n)),"clearValue",(function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})})),ze($e($e(n)),"popValue",(function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})})),ze($e($e(n)),"getOptionLabel",(function(e){return n.props.getOptionLabel(e)})),ze($e($e(n)),"getOptionValue",(function(e){return n.props.getOptionValue(e)})),ze($e($e(n)),"getStyles",(function(e,t){var r=Zn[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r})),ze($e($e(n)),"getElementId",(function(e){return"".concat(n.instancePrefix,"-").concat(e)})),ze($e($e(n)),"getActiveDescendentId",(function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var a=r.focusable.indexOf(o),i=r.render[a];return i&&i.key}})),ze($e($e(n)),"announceAriaLiveSelection",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:Xn(t,r)})})),ze($e($e(n)),"announceAriaLiveContext",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Gn(t,Be({},r,{label:n.props["aria-label"]}))})})),ze($e($e(n)),"onMenuMouseDown",(function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())})),ze($e($e(n)),"onMenuMouseMove",(function(e){n.blockOptionHover=!1})),ze($e($e(n)),"onControlMouseDown",(function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()})),ze($e($e(n)),"onDropdownIndicatorMouseDown",(function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}})),ze($e($e(n)),"onClearIndicatorMouseDown",(function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))})),ze($e($e(n)),"onScroll",(function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ut(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()})),ze($e($e(n)),"onCompositionStart",(function(){n.isComposing=!0})),ze($e($e(n)),"onCompositionEnd",(function(){n.isComposing=!1})),ze($e($e(n)),"onTouchStart",(function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)})),ze($e($e(n)),"onTouchMove",(function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}})),ze($e($e(n)),"onTouchEnd",(function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),ze($e($e(n)),"onControlTouchEnd",(function(e){n.userIsDragging||n.onControlMouseDown(e)})),ze($e($e(n)),"onClearIndicatorTouchEnd",(function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)})),ze($e($e(n)),"onDropdownIndicatorTouchEnd",(function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)})),ze($e($e(n)),"handleInputChange",(function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()})),ze($e($e(n)),"onInputFocus",(function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),ze($e($e(n)),"onInputBlur",(function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),ze($e($e(n)),"onOptionHover",(function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})})),ze($e($e(n)),"shouldHideSelectedOptions",(function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t})),ze($e($e(n)),"onKeyDown",(function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,u=t.isClearable,l=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=n.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)n.removeValue(m);else{if(!o)return;r?n.popValue():u&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!s||!f||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":s?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):u&&a&&n.clearValue();break;case" ":if(i)return;if(!s){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":s?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":s?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!s)return;n.focusOption("pageup");break;case"PageDown":if(!s)return;n.focusOption("pagedown");break;case"Home":if(!s)return;n.focusOption("first");break;case"End":if(!s)return;n.focusOption("last");break;default:return}e.preventDefault()}}));var r=e.value;n.cacheComponents=Je(n.cacheComponents,sn).bind($e($e(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++rr);var o=Bt(r),a=e.menuIsOpen?n.buildMenuOptions(e,o):{render:[],focusable:[]};return n.state.menuOptions=a,n.state.selectValue=o,n}return Ge(t,e),We(t,[{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=Bt(e.value),u=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},l=this.getNextFocusedValue(i),s=this.getNextFocusedOption(u.focusable);this.setState({menuOptions:u,selectValue:i,focusedOption:s,focusedValue:l})}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,u=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!u&&e.isDisabled||s&&l&&!e.menuIsOpen)&&this.focusInput(),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?Wt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&Wt(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.state,n=t.menuOptions,r=t.selectValue,o=t.isFocused,a=this.props.isMulti,i="first"===e?0:n.focusable.length-1;if(!a){var u=n.focusable.indexOf(r[0]);u>-1&&(i=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{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 u=a.indexOf(i);i||(u=-1,this.announceAriaLiveContext({event:"value"}));var l=a.length-1,s=-1;if(a.length){switch(e){case"previous":s=0===u?0:-1===u?l:u-1;break;case"next":u>-1&&u<l&&(s=u+1)}-1===s&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==s,focusedValue:a[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions,a=o.focusable;if(a.length){var i=0,u=a.indexOf(r);r||(u=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?i=u>0?u-1:a.length-1:"down"===e?i=(u+1)%a.length:"pageup"===e?(i=u-t)<0&&(i=0):"pagedown"===e?(i=u+t)>a.length-1&&(i=a.length-1):"last"===e&&(i=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[i],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Jn(a[i])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tr):Be({},tr,this.props.theme):tr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,u=o.isRtl,l=o.options,s=this.state.selectValue,c=this.hasValue();return{cx:zt.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return s},hasValue:c,isMulti:i,isRtl:u,options:l,selectOption:r,setValue:n,selectProps:o,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 void 0===t?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:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,a=e.options,i=function(e,r){var a=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),u=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:u,value:l,data:e},o))){var s=a?void 0:function(){return n.onOptionHover(e)},c=a?void 0:function(){return n.selectOption(e)},f="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:f,onClick:c,onMouseMove:s,onMouseOver:s,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:u,type:"option",value:l}}};return a.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.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(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:a,data:t,options:o})}}else{var u=i(t,"".concat(r));u&&(e.render.push(u),e.focusable.push(t))}return e}),{render:[],focusable:[]})}},{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,u=a.menuIsOpen,l=a.inputValue,s=a.screenReaderStatus,c=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&&u?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:l,screenReaderMessage:s({count:this.countOptions()})});return"".concat(c," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,i=e.tabIndex,u=this.components.Input,l=this.state.inputIsHidden,s=r||this.getElementId("input");if(!n)return o.a.createElement(Nn,{id:s,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rt,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},f=this.commonProps,d=f.cx,p=f.theme,h=f.selectProps;return o.a.createElement(u,Re({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:s,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,theme:p,type:"text",value:a},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,s=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!f)return h?null:o.a.createElement(l,Re({},s,{key:"placeholder",isDisabled:d,isFocused:b}),m);if(p)return v.map((function(t,u){var l=t===y;return o.a.createElement(n,Re({},s,{components:{Container:r,Label:a,Remove:i},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=v[0];return o.a.createElement(u,Re({},s,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,Re({},t,{innerProps:u,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.a.createElement(e,Re({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,Re({},r,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,Re({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,i=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,y=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,E=m.maxMenuHeight,x=m.menuIsOpen,C=m.menuPlacement,k=m.menuPosition,S=m.menuPortalTarget,O=m.menuShouldBlockScroll,D=m.menuShouldScrollIntoView,T=m.noOptionsMessage,_=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!x)return null;var P,F=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(c,Re({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=h.render.map((function(t){if("group"===t.type){t.type;var a=Le(t,["type"]),i="".concat(t.key,"-heading");return o.a.createElement(n,Re({},f,a,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return F(e)})))}if("option"===t.type)return F(t)}));else if(y){var A=b({inputValue:v});if(null===A)return null;P=o.a.createElement(l,f,A)}else{var j=T({inputValue:v});if(null===j)return null;P=o.a.createElement(s,f,j)}var N={minMenuHeight:w,maxMenuHeight:E,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:D},I=o.a.createElement(Jt,Re({},f,N),(function(t){var n=t.ref,r=t.placerProps,u=r.placement,l=r.maxHeight;return o.a.createElement(a,Re({},f,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:u}),o.a.createElement(Qn,{isEnabled:g,onTopArrive:_,onBottomArrive:M},o.a.createElement(Kn,{isEnabled:O},o.a.createElement(i,Re({},f,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),P))))}));return S||"fixed"===k?o.a.createElement(u,Re({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,u=this.state.selectValue;if(i&&!r){if(a){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:l})}var s=u.length>0?u.map((function(t,n){return o.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,s)}var c=u[0]?this.getOptionValue(u[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?o.a.createElement(jn,{"aria-live":"polite"},o.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,i=this.props,u=i.className,l=i.id,s=i.isDisabled,c=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.a.createElement(r,Re({},d,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),o.a.createElement(t,Re({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:c}),o.a.createElement(a,Re({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,Re({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(r.Component);ze(or,"defaultProps",nr);var ar,ir,ur,lr,sr={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},cr=(r.Component,ar=or,ur=ir=function(e){function t(){var e,n;Ue(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return ze($e($e(n=Ke(this,(e=qe(t)).call.apply(e,[this].concat(o))))),"select",void 0),ze($e($e(n)),"state",{inputValue:void 0!==n.props.inputValue?n.props.inputValue:n.props.defaultInputValue,menuIsOpen:void 0!==n.props.menuIsOpen?n.props.menuIsOpen:n.props.defaultMenuIsOpen,value:void 0!==n.props.value?n.props.value:n.props.defaultValue}),ze($e($e(n)),"onChange",(function(e,t){n.callProp("onChange",e,t),n.setState({value:e})})),ze($e($e(n)),"onInputChange",(function(e,t){var r=n.callProp("onInputChange",e,t);n.setState({inputValue:void 0!==r?r:e})})),ze($e($e(n)),"onMenuOpen",(function(){n.callProp("onMenuOpen"),n.setState({menuIsOpen:!0})})),ze($e($e(n)),"onMenuClose",(function(){n.callProp("onMenuClose"),n.setState({menuIsOpen:!1})})),n}return Ge(t,e),We(t,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?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,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,Le(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(ar,Re({},n,{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")}))}}]),t}(r.Component),ze(ir,"defaultProps",sr),ur),fr=n(15),dr=n.n(fr),pr=n(16),hr=n.n(pr),mr=n(1),gr=n.n(mr),vr=n(4),yr=n.n(vr);var br=function(){if(void 0!==lr)return lr;var e=!1,t={get passive(){e=!0}},n=function(){};return window.addEventListener("t",n,t),window.removeEventListener("t",n,t),lr=e,e},wr=function(e){var t=Object(r.useRef)(e);return Object(r.useEffect)((function(){t.current=e})),t},Er=["mousedown","touchstart"],xr=function(e){if("touchstart"===e)return br()?{passive:!0}:void 0};var Cr=function(e,t){var n=wr(t);Object(r.useEffect)((function(){if(t){var r=function(t){e.current&&n.current&&!e.current.contains(t.target)&&n.current(t)};return Er.forEach((function(e){document.addEventListener(e,r,xr(e))})),function(){Er.forEach((function(e){document.removeEventListener(e,r,xr(e))}))}}}),[!t])},kr=n(24);n(23);var Sr=function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e},Or=("undefined"!=typeof window&&void 0!==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;}"}),Dr=function(e){e.placement;var t=yr()(e,["placement"]);return Mt(r.Fragment,null,Mt(Pt,{styles:Tr}),Mt("div",gr()({},t,{"data-arrow":"true",css:Or})))},Tr={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;}}"},_r=function(e){var t=e.header,n=e.body,a=e.children,i=e.placement,u=e.trigger,l=e.styles,s=yr()(e,["header","body","children","placement","trigger","styles"]),c=o.a.Children.only(a),f=Object(r.useRef)(null),d=Object(r.useState)(!1),p=d[0],h=d[1],m=Object(r.useState)(!1),g=m[0],v=m[1],y=Object(r.useState)({popoverId:null,referenceId:null,arrowId:null}),b=y[0],w=y[1],E=b.popoverId,x=b.referenceId,C=b.arrowId;Cr(f,(function(e){e.target.id===x||document.getElementById(x).contains(e.target)||h(!1)})),Object(r.useEffect)((function(){if(!E)return w({popoverId:Sr("popover"),referenceId:Sr("reference"),arrowId:Sr("arrow")});var e=document.getElementById(E),t=document.getElementById(x),n=document.getElementById(C);e&&t&&n&&(new kr.a(t,e,{placement:i,modifiers:{arrow:{element:n}}}),v(p))}),[p]);var k={content:[Mr.content,l.content],header:[Mr.header,l.header],body:[Mr.body,l.body]};return Mt(r.Fragment,null,E?Mt("div",gr()({},s,{id:E,ref:f,css:k.content,style:g?{display:"block"}:{}}),Mt(Dr,{id:C}),t?Mt("div",{css:k.header},t):null,Mt("div",{css:k.body},n)):null,o.a.cloneElement(c,gr()({},c.props,{id:x,onClick:function(){"click"===u&&h(!p)}})))};_r.defaultProps={placement:"right",trigger:"click",styles:{}};var Mr={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;"}},Pr=_r;function Fr(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 Ar={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},jr={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Nr={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",boxSizing:"border-box"},Ir={x:{track:gr()({},Ar,{width:200,height:10}),active:gr()({},jr,{top:0,height:"100%"}),thumb:gr()({},Nr)},y:{track:gr()({},Ar,{width:10,height:200}),active:gr()({},jr,{left:0,width:"100%"}),thumb:gr()({},Nr)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:gr()({},Nr)},disabled:{opacity:.5}},Lr=function(e){var t=e.disabled,n=e.axis,o=e.x,a=e.y,i=e.xmin,u=e.xmax,l=e.ymin,s=e.ymax,c=e.xstep,f=e.ystep,d=e.onChange,p=e.onDragStart,h=e.onDragEnd,m=e.onClick,g=e.styles,v=yr()(e,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","styles"]),y=Object(r.useRef)(null),b=Object(r.useRef)(null),w=Object(r.useRef)({}),E=Object(r.useRef)({});function x(e){var t=e.top,r=e.left;if(d){var o=y.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;r<0&&(r=0),r>a&&(r=a),t<0&&(t=0),t>p&&(t=p),"x"!==n&&"xy"!==n||(h=r/a*(u-i)),"y"!==n&&"xy"!==n||(m=t/p*(s-l));var g=(0!==h?parseInt(h/c,10)*c:0)+i,v=(0!==m?parseInt(m/f,10)*f:0)+l;d({x:g,y:v})}}function C(e){if(!t){e.preventDefault();var n=b.current,r=Fr(e);w.current={x:n.offsetLeft,y:n.offsetTop},E.current={x:r.x,y:r.y},document.addEventListener("mousemove",k),document.addEventListener("mouseup",S),document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",S),document.addEventListener("touchcancel",S),p&&p(e)}}function k(e){t||(e.preventDefault(),x(function(e){var t=Fr(e);return{left:t.x+w.current.x-E.current.x,top:t.y+w.current.y-E.current.y}}(e)))}function S(e){t||(e.preventDefault(),document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",k,{passive:!1}),document.removeEventListener("touchend",S),document.removeEventListener("touchcancel",S),h&&h(e))}var O,D,T=((O=(a-l)/(s-l)*100)>100&&(O=100),O<0&&(O=0),"x"===n&&(O=0),(D=(o-i)/(u-i)*100)>100&&(D=100),D<0&&(D=0),"y"===n&&(D=0),{top:O+="%",left:D+="%"}),_={};"x"===n&&(_.width=T.left),"y"===n&&(_.height=T.top);var M={track:gr()({},Ir[n].track,{},g.track),active:gr()({},Ir[n].active,{},g.active),thumb:gr()({},Ir[n].thumb,{},g.thumb),disabled:gr()({},Ir.disabled,{},g.disabled)};return M.thumb={position:"absolute","&:after":gr()({},M.thumb,{top:"x"===n?(M.track.height-M.thumb.height)/2:-M.thumb.height/2,left:"y"===n?(M.track.width-M.thumb.width)/2:-M.thumb.width/2})},Mt("div",gr()({},v,{ref:y,css:Et([M.track,t&&M.disabled],";label:Slider;"),onClick:function(e){if(!t){var n=Fr(e),r=y.current.getBoundingClientRect();x({left:n.x-r.left,top:n.y-r.top}),m&&m(e)}}}),Mt("div",{css:M.active,style:_}),Mt("div",{ref:b,css:M.thumb,style:T,onTouchStart:C,onMouseDown:C,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}))};Lr.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,styles:{}};var Rr=Lr,Vr=n(21),zr=n.n(Vr),Br=n(5),Ur=n.n(Br),Hr=n(22),Wr=n.n(Hr),Yr="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),$r=function(e){var t=e.step,n=e.min,o=e.max,a=e.value,i=e.onChange,u=e.onKeyDown,l=e.enableMobileNumericKeyboard,s=e.component,c=yr()(e,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=Object(r.useState)(a),d=f[0],p=f[1];Object(r.useEffect)((function(){p(a)}),[a]);var h={value:d,onChange:function(e){var t=function(e){if(Ur()(e))return e;if(Wr()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!zr()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(qr("+",a,o,n,t)):40===e.keyCode&&i&&i(qr("-",a,o,n,t)),u&&u(e)},onWheel:function(e){e.target.blur()}};return Mt(s,l?gr()({},c,h,{css:Kr,type:"number",inputMode:"numeric",pattern:Yr?"[0-9]*":"",step:t,min:n,max:o}):gr()({},c,h,{css:Kr,type:"text"}))};$r.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=yr()(e,["onChange"]);return Mt("input",gr()({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var Kr={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function qr(e,t,n,r,o){if(""===t)return Ur()(r)?r:"";if(t="+"===e?t+o:t-o,Ur()(n)&&t>n)return n;if(Ur()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var Qr=$r;function Gr(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 Xr(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),u=n-o;switch(parseInt(a,10)){case 0:r=[o,i,0];break;case 1:r=[i,o,0];break;case 2:r=[0,o,i];break;case 3:r=[0,i,o];break;case 4:r=[i,0,o];break;case 5:r=[o,0,i]}return{r:Math.round(255*(r[0]+u)),g:Math.round(255*(r[1]+u)),b:Math.round(255*(r[2]+u))}}function Jr(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Zr(e,t,n){return"#"+[Jr(e),Jr(t),Jr(n)].join("")}function eo(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 to(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}function no(e,t,n,r){var o=function(e,t,n,r){return r/=100,{r:parseInt(255*(1-r)+r*e,10),g:parseInt(255*(1-r)+r*t,10),b:parseInt(255*(1-r)+r*n,10)}}(e,t,n,r);return Zr(o.r,o.g,o.b)}var ro={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},oo={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},ao=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,u=t.h,l=t.s,s=t.v;function c(e){n&&n(e)}function f(e,n,r){var o=Xr(e,n,r),a=o.r,u=o.g,l=o.b,s=no(a,u,l,i);c(gr()({},t,{h:e,s:n,v:r,r:a,g:u,b:l,hex:s}))}function d(e,n,r){var o=no(e,n,r,i),a=eo(e,n,r),u=a.h,l=a.s,s=a.v;c(gr()({},t,{r:e,g:n,b:r,h:u,s:l,v:s,hex:o}))}function p(e){var n=no(r,o,a,e);c(gr()({},t,{a:e,hex:n}))}var h=to(r,o,a,i),m="linear-gradient(to right, "+to(r,o,a,0)+", "+to(r,o,a,100)+")",g=function(e,t,n){var r=Xr(e,t,n);return Zr(r.r,r.g,r.b)}(u,100,100);return Mt("div",{css:io.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},Mt("div",{css:io.selector,style:{backgroundColor:g}},Mt("div",{css:io.gradientWhite}),Mt("div",{css:io.gradientDark}),Mt(Rr,{axis:"xy",x:l,xmax:100,y:100-s,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(u,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%"}}})),Mt("div",{css:ro},Mt("div",{css:oo},Mt(Rr,{axis:"x",x:u,xmax:359,onChange:function(e){return f(e.x,l,s)},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"}}}),Mt(Rr,{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)}})),Mt("div",{style:{backgroundColor:h,width:30,height:30}})),Mt("div",{css:io.inputs},Mt("div",{css:io.input},Mt("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return n=e.target.value,void c(gr()({},t,{hex:n}));var n},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=Gr(n),o=r.r,a=r.g,u=r.b;c(gr()({},t,{r:o,g:a,b:u,a:i,hex:n}))}}}),Mt("div",null,"Hex")),Mt("div",{css:io.input},Mt(Qr,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),Mt("div",null,"R")),Mt("div",{css:io.input},Mt(Qr,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),Mt("div",null,"G")),Mt("div",{css:io.input},Mt(Qr,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),Mt("div",null,"B")),Mt("div",{css:io.input},Mt(Qr,{value:i,onChange:function(e){return p(e)}}),Mt("div",null,"A"))))};ao.defaultProps={initialHexColor:"#5e72e4"};var io={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 uo(e){var t=Gr(e),n=t.r,r=t.g,o=t.b,a=eo(n,r,o);return gr()({},a,{r:n,g:r,b:o,a:100,hex:e})}var lo={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;"},so={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},co=function(e){var t=e.initialHexColor,n=e.onChange,o=e.placement,a=yr()(e,["initialHexColor","onChange","placement"]),i=Object(r.useState)(uo(t)),u=i[0],l=i[1];function s(e){n&&(l(e),n(e))}return Object(r.useEffect)((function(){s(uo(t))}),[t]),Mt(Pr,{placement:o,body:Mt(ao,{color:u,onChange:s})},Mt("span",gr()({},a,{css:lo}),Mt("span",{css:so,style:{backgroundColor:u.hex}})))};co.defaultProps={placement:"bottom"};var fo=co,po=n(17),ho=n.n(po),mo=n(18),go=n.n(mo),vo=n(19);function yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function bo(e){return(bo="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 wo(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 Eo(e){return(Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Co(e,t){return(Co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ko(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 So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Do=new(n.n(vo).a)({tolerance:300}),To=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==bo(t)&&"function"!=typeof t?xo(e):t}(this,Eo(t).call(this,e)),Oo(xo(n),"handleFormSubmit",(function(e,t){t.preventDefault();var r=n.state,o=r.formData,a=r.defaultData,i=n.props,u=i.action,l=i.wpNonce,s=i.validation.reset,c=new FormData;for(var f in a)c.append(f,a[f]);for(var d in o)c.append(d,o[d]);fetch(u,{method:"POST",headers:{"X-WP-Nonce":l},body:c}).then((function(e){return e.json()})).then((function(e){n.getValue("mf-captcha-challenge")&&n.refreshCaptcha(),n.getValue("g-recaptcha-response")&&n.handleReCAPTCHA("reset"),e.status?(Do.move(n.mfRefs.mainForm),setTimeout((function(){n.setState({formData:{},form_res:1})}),350),s(),setTimeout((function(){n.setState({form_res:0})}),3500)):n.setValue("mf-captcha-challenge","",!0)}))})),Oo(xo(n),"handleCalculations",(function(e,t){var r=e.target.calc_behavior,o=i.a.findDOMNode(xo(n));(o.length?o.querySelectorAll(".mf-input-calculation"):[]).forEach((function(e){t[e.name]=n.MfMathCalc.parse(e.dataset.equation,t,r)||0}))})),Oo(xo(n),"handleConditionals",(function(e){var t=n.state.formData,r=n.props,o=r.widgets;r.conditionalRefs.forEach((function(e){(e=o[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=t[n.name],n.match=n.mf_conditional_logic_form_value,n.operator=n.mf_conditional_logic_form_comparison_operators,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}))),e.el.style.display=e.isValidated&&"show"===e.action?"block":"none"}))})),Oo(xo(n),"getValue",(function(e){return n.state.formData[e]||""})),Oo(xo(n),"getFileLabel",(function(e,t){var r=n.state.formData[e];return r?r.name:t})),Oo(xo(n),"setDefault",(function(e){var t=e.name,r=e.value,o=n.state.defaultData;o[t]=r,n.setState({defaultData:o})})),Oo(xo(n),"handleChange",(function(e){var t=e.target,r=t.name,o=t.value,a=n.state.formData;a[r]=o,n.handleCalculations(e,a),n.setState({formData:a})})),Oo(xo(n),"handleDateTime",(function(e){var t=e.target,r=t.name,o=t.value;n.handleChange(e),n.setValue(r,o,!0)})),Oo(xo(n),"handleSelect",(function(e,t){var r=t.name,o=e.value;e.target={name:t.name,value:o},n.handleChange(e),n.setValue(r,o,!0)})),Oo(xo(n),"handleCheckbox",(function(e){var t,r=n.state.formData[e.target.name];Array.isArray(r)||(r=[]),t=r.indexOf(e.target.value),e.target.checked&&-1===t?r.push(e.target.value):r.splice(t,1),n.handleChange({target:{name:e.target.name,value:r}})})),Oo(xo(n),"handleSwitch",(function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),n.handleChange(e)})),Oo(xo(n),"handleOptin",(function(e){e.target.checked||(e.target.value=""),n.handleChange(e)})),Oo(xo(n),"handleFileUpload",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.files[0]}})})),Oo(xo(n),"handleMultiStepBtns",(function(e){var t=jQuery(e.target).parents(".elementor-top-section.active"),r=e.target.dataset.direction,o=("next"===r?t.next()[0].dataset:t.prev()[0].dataset).id,a=jQuery(e.target).parents(".metform-form-content").find('.metform-step-item[data-value="'+o+'"]'),i=[];t.find(".mf-input").each((function(){i.push(this.name)})),"next"===r?n.triggerValidation(i).then((function(e){e&&a.trigger("click")})):a.trigger("click")})),Oo(xo(n),"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"}})),Oo(xo(n),"handleSignature",(function(e){e.target={name:e.props.name,value:e.toDataURL()},n.handleChange(e),n.setValue(e.target.name,e.target.value,!0)})),Oo(xo(n),"refreshCaptcha",(function(e){n.setState({captcha_img:n.state.captcha_path+Date.now()})})),Oo(xo(n),"handleReCAPTCHA",(function(e){"reset"===e&&(e="",grecaptcha.reset());var t={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};n.handleChange(t),n.setValue("g-recaptcha-response",e,!0)})),Oo(xo(n),"activateValidation",(function(e,t,r){var o=n.props.validation.register,a=e.type,i=e.required,u=e.message,l=e.minLength,s=e.maxLength,c=e.expression,f={};if(t&&"email"==t.type?f.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:t&&"url"===t.type&&(f.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),(a&&"none"!=a||i)&&(f.required=u),"by_character_length"===a){var d=t&&"number"==t.type?"min":"minLength",p=t&&"number"==t.type?"max":"maxLength";l&&(f[d]={value:l,message:u}),s&&(f[p]={value:s,message:u})}else"by_word_length"===a?f.validate={wordLength:function(e){return n.handleWordValidate(e,l,s,u)}}:"by_expresssion_based"===a&&(f.validate={expression:function(e){return n.handleExpressionValidate(e,c,u)}});return t?o(t,f):f})),Oo(xo(n),"handleWordValidate",(function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r})),Oo(xo(n),"handleExpressionValidate",(function(e,t,n){if(t)return!!new RegExp(t).test(e)||n})),Oo(xo(n),"colorChange",(function(e,t){n.handleChange({target:{name:t,value:e.hex}})})),Oo(xo(n),"colorChangeInput",(function(e){n.handleChange({target:{name:e.target.name,value:e.target.value}})})),Oo(xo(n),"multiSelectChange",(function(e,t){var r=[];null!=e&&e.filter((function(e){r.push(e.value)})),n.handleChange({target:{name:t,value:r}})})),Oo(xo(n),"handleRangeChange",(function(e,t){n.handleChange({target:{name:t,value:e.toFixed(2)}})})),Oo(xo(n),"handleMultipileRangeChange",(function(e,t){n.handleChange({target:{name:t,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})})),Oo(xo(n),"handleOnChangePhoneInput",(function(e,t){n.handleChange({target:{name:t,value:e}})})),Oo(xo(n),"toggleResponseMsg",(function(e){e.removeAttribute("data-show"),e.style.height=e.clientHeight+"px",e.setAttribute("data-show",0)})),n.state={formData:{},defaultData:{form_nonce:e.formNonce},form_res:0,result_not_foud:"",total_result:0},n.MfMathCalc=new s,n.setValue=e.validation.setValue,n.triggerValidation=e.validation.triggerValidation,n.mfRefs={},window.handleReCAPTCHA=n.handleReCAPTCHA;var r=e.templateEl.innerHTML;return n.jsx=new Function("parent","props","state","validation","register","setValue","html",r),e.templateEl.remove(),n}var n,r,a;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&&Co(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){if(this.handleConditionals(),!this.props.validation.formState.isValid){var t=this.mfRefs.mainForm.querySelector(".mf-error-message");t&&Do.move(t.parentElement.parentElement)}}},{key:"componentDidMount",value:function(e){var t=this,n=i.a.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n,r.forEach((function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null==r?n:r;if(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)}})),this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),f(),c(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.triggerValidation}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange)}},{key:"render",value:function(){var e=this.props,t=this.state,n=e.validation,r=n.register,a=n.setValue,i=htm.bind(o.a.createElement);return o.a.createElement(o.a.Fragment,null,this.jsx(this,e,t,n,r,a,i))}}])&&wo(n.prototype,r),a&&wo(n,a),t}(o.a.Component),_o=function(e){var t=yo(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,a=r.action,u=r.wpNonce,l=r.formNonce,s=r.formId,c=yo(e.find(".mf-template"),1)[0];if(c)i.a.render(o.a.createElement((n=To,function(e){var t=So({},Te(),{ErrorMessage:Ie});return o.a.createElement(n,So({validation:t},e))}),{formId:s,templateEl:c,action:a,wpNonce:u,formNonce:l,widgets:{},conditionalRefs:[],Select:cr,InputColor:fo,Flatpickr:ho.a,InputRange:dr.a,ReactPhoneInput:hr.a,SignaturePad:go.a,moveTo:Do}),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",_o)}))):_o(elementorFrontend.elements.$body)})).on("load",(function(){document.querySelectorAll(".mf-form-shortcode").forEach((function(e){_o(jQuery(e))}))}))}]));
public/assets/js/count-views.js DELETED
@@ -1,22 +0,0 @@
1
- jQuery(document).ready(function($) {
2
- 'use strict'
3
- var forms = $('.metform-form-content');
4
- if(forms.length > 0){
5
- forms.each(function(i, v){
6
- var nonce = $(this).attr('data-nonce'),
7
- post_url = rest_api.end_point+'views/',
8
- form_id = $(this).attr('data-form-id');
9
-
10
- $.ajax({
11
- url: post_url+form_id,
12
- type: 'POST',
13
- headers: {
14
- 'X-WP-Nonce': nonce
15
- },
16
- success: function (response) {
17
- //console.log(response);
18
- }
19
- });
20
- });
21
- }
22
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/assets/js/flatpickr.js DELETED
@@ -1,2 +0,0 @@
1
- /* flatpickr v4.6.2,, @license MIT */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).flatpickr=t()}(this,function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],_enable:[],allowInput:!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",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var 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:void 0,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:function(e){var 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",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=function(e){return("0"+e).slice(-2)},o=function(e){return!0===e?1:0};function r(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function s(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){var n=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}var f=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:f,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:f,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:f,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},p={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})"},h={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[h.w(e,t,n)]},F:function(e,t,n){return m(h.n(e,t,n)-1,!1,t)},G:function(e,t,n){return i(h.h(e,t,n))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,n){var a=n||r;return void 0!==i.formatDate?i.formatDate(e,t,a):t.split("").map(function(t,n,o){return h[t]&&"\\"!==o[n-1]?h[t](e,a,i):"\\"!==t?t:""}).join("")}},D=function(e){var t=e.config,i=void 0===t?n:t,o=e.l10n,r=void 0===o?a:o;return function(e,t,a,o){if(0===e||e){var l,c=o||r,d=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=t||(i||n).dateFormat,u=String(e).trim();if("today"===u)l=new Date,a=!0;else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else if(i&&i.parseDate)l=i.parseDate(e,s);else{l=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,m=[],h=0,v=0,D="";h<s.length;h++){var w=s[h],b="\\"===w,C="\\"===s[h-1]||b;if(p[w]&&!C){D+=p[w];var M=new RegExp(D).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:g[w],val:M[++v]})}else b||(D+=".");m.forEach(function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l})}l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;i.errorHandler(new Error("Invalid date provided: "+d))}}};function w(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var b=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},C={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},i=0,o=t;i<o.length;i++){a(o[i])}return e});var M=300;function y(f,g){var h={config:e({},n,E.defaultConfig),l10n:a};function y(e){return e.bind(h)}function x(){var e=h.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==h.calendarContainer&&(h.calendarContainer.style.visibility="hidden",h.calendarContainer.style.display="block"),void 0!==h.daysContainer){var t=(h.days.offsetWidth+1)*e.showMonths;h.daysContainer.style.width=t+"px",h.calendarContainer.style.width=t+(void 0!==h.weekWrapper?h.weekWrapper.offsetWidth:0)+"px",h.calendarContainer.style.removeProperty("visibility"),h.calendarContainer.style.removeProperty("display")}})}function T(e){0===h.selectedDates.length&&ie(),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=e.target;void 0!==h.amPM&&e.target===h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),d=e.delta||(t?38===e.which?1:-1:0),s=c+l*d;if(void 0!==n.value&&2===n.value.length){var u=n===h.hourElement,f=n===h.minuteElement;s<a?(s=r+s+o(!u)+(o(u)&&o(!h.amPM)),f&&j(void 0,-1,h.hourElement)):s>r&&(s=n===h.hourElement?s-r-o(!h.amPM):a,f&&j(void 0,1,h.hourElement)),h.amPM&&u&&(1===l?s+c===23:Math.abs(s-c)>l)&&(h.amPM.textContent=h.l10n.amPM[o(h.amPM.textContent===h.l10n.amPM[0])]),n.value=i(s)}}(e);var t=h._input.value;k(),we(),h._input.value!==t&&h._debouncedChange()}function k(){if(void 0!==h.hourElement&&void 0!==h.minuteElement){var e,t,n=(parseInt(h.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(h.minuteElement.value,10)||0)%60,i=void 0!==h.secondElement?(parseInt(h.secondElement.value,10)||0)%60:0;void 0!==h.amPM&&(e=n,t=h.amPM.textContent,n=e%12+12*o(t===h.l10n.amPM[1]));var r=void 0!==h.config.minTime||h.config.minDate&&h.minDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.minDate,!0);if(void 0!==h.config.maxTime||h.config.maxDate&&h.maxDateHasTime&&h.latestSelectedDateObj&&0===w(h.latestSelectedDateObj,h.config.maxDate,!0)){var l=void 0!==h.config.maxTime?h.config.maxTime:h.config.maxDate;(n=Math.min(n,l.getHours()))===l.getHours()&&(a=Math.min(a,l.getMinutes())),a===l.getMinutes()&&(i=Math.min(i,l.getSeconds()))}if(r){var c=void 0!==h.config.minTime?h.config.minTime:h.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(a=Math.max(a,c.getMinutes())),a===c.getMinutes()&&(i=Math.max(i,c.getSeconds()))}O(n,a,i)}}function I(e){var t=e||h.latestSelectedDateObj;t&&O(t.getHours(),t.getMinutes(),t.getSeconds())}function S(){var e=h.config.defaultHour,t=h.config.defaultMinute,n=h.config.defaultSeconds;if(void 0!==h.config.minDate){var a=h.config.minDate.getHours(),i=h.config.minDate.getMinutes();(e=Math.max(e,a))===a&&(t=Math.max(i,t)),e===a&&t===i&&(n=h.config.minDate.getSeconds())}if(void 0!==h.config.maxDate){var o=h.config.maxDate.getHours(),r=h.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(r,t)),e===o&&t===r&&(n=h.config.maxDate.getSeconds())}O(e,t,n)}function O(e,t,n){void 0!==h.latestSelectedDateObj&&h.latestSelectedDateObj.setHours(e%24,t,n||0,0),h.hourElement&&h.minuteElement&&!h.isMobile&&(h.hourElement.value=i(h.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),h.minuteElement.value=i(t),void 0!==h.amPM&&(h.amPM.textContent=h.l10n.amPM[o(e>=12)]),void 0!==h.secondElement&&(h.secondElement.value=i(n)))}function _(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&Q(t)}function F(e,t,n,a){return t instanceof Array?t.forEach(function(t){return F(e,t,n,a)}):e instanceof Array?e.forEach(function(e){return F(e,t,n,a)}):(e.addEventListener(t,n,a),void h._handlers.push({element:e,event:t,handler:n,options:a}))}function N(e){return function(t){1===t.which&&e(t)}}function Y(){ge("onChange")}function A(e,t){var n=void 0!==e?h.parseDate(e):h.latestSelectedDateObj||(h.config.minDate&&h.config.minDate>h.now?h.config.minDate:h.config.maxDate&&h.config.maxDate<h.now?h.config.maxDate:h.now),a=h.currentYear,i=h.currentMonth;try{void 0!==n&&(h.currentYear=n.getFullYear(),h.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,h.config.errorHandler(e)}t&&h.currentYear!==a&&(ge("onYearChange"),K()),!t||h.currentYear===a&&h.currentMonth===i||ge("onMonthChange"),h.redraw()}function P(e){~e.target.className.indexOf("arrow")&&j(e,e.target.classList.contains("arrowUp")?1:-1)}function j(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=pe("increment");o.delta=t,i&&i.dispatchEvent(o)}function H(e,t,n,a){var i=X(t,!0),o=d("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",h.formatDate(t,h.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,h.now)&&(h.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,he(t)&&(o.classList.add("selected"),h.selectedDateElem=o,"range"===h.config.mode&&(c(o,"startRange",h.selectedDates[0]&&0===w(t,h.selectedDates[0],!0)),c(o,"endRange",h.selectedDates[1]&&0===w(t,h.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===h.config.mode&&function(e){return!("range"!==h.config.mode||h.selectedDates.length<2)&&w(e,h.selectedDates[0])>=0&&w(e,h.selectedDates[1])<=0}(t)&&!he(t)&&o.classList.add("inRange"),h.weekNumbers&&1===h.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&h.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+h.config.getWeek(t)+"</span>"),ge("onDayCreate",o),o}function L(e){e.focus(),"range"===h.config.mode&&ne(e)}function W(e){for(var t=e>0?0:h.config.showMonths-1,n=e>0?h.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=h.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&X(c.dateObj))return c}}function R(e,t){var n=ee(document.activeElement||document.body),a=void 0!==e?e:n?document.activeElement:void 0!==h.selectedDateElem&&ee(h.selectedDateElem)?h.selectedDateElem:void 0!==h.todayDateElem&&ee(h.todayDateElem)?h.todayDateElem:W(t>0?1:-1);return void 0===a?h._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():h.currentMonth,a=t>0?h.config.showMonths:-1,i=t>0?1:-1,o=n-h.currentMonth;o!=a;o+=i)for(var r=h.daysContainer.children[o],l=n-h.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&X(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return L(s)}h.changeMonth(i),R(W(i),0)}(a,t):L(a)}function B(e,t){for(var n=(new Date(e,t,1).getDay()-h.l10n.firstDayOfWeek+7)%7,a=h.utils.getDaysInMonth((t-1+12)%12),i=h.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=h.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(H(l,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(H("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===h.config.showMonths||u%7!=0);f++,u++)o.appendChild(H(c,new Date(e,t+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function J(){if(void 0!==h.daysContainer){s(h.daysContainer),h.weekNumbers&&s(h.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<h.config.showMonths;t++){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),e.appendChild(B(n.getFullYear(),n.getMonth()))}h.daysContainer.appendChild(e),h.days=h.daysContainer.firstChild,"range"===h.config.mode&&1===h.selectedDates.length&&ne()}}function K(){if(!(h.config.showMonths>1||"dropdown"!==h.config.monthSelectorType)){var e=function(e){return!(void 0!==h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&e<h.config.minDate.getMonth())&&!(void 0!==h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()&&e>h.config.maxDate.getMonth())};h.monthsDropdownContainer.tabIndex=-1,h.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(h.currentYear,t).getMonth().toString(),n.textContent=m(t,h.config.shorthandCurrentMonth,h.l10n),n.tabIndex=-1,h.currentMonth===t&&(n.selected=!0),h.monthsDropdownContainer.appendChild(n)}}}function U(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();h.config.showMonths>1||"static"===h.config.monthSelectorType?e=d("span","cur-month"):(h.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),F(h.monthsDropdownContainer,"change",function(e){var t=e.target,n=parseInt(t.value,10);h.changeMonth(n-h.currentMonth),ge("onMonthChange")}),K(),e=h.monthsDropdownContainer);var a=u("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",h.l10n.yearAriaLabel),h.config.minDate&&i.setAttribute("min",h.config.minDate.getFullYear().toString()),h.config.maxDate&&(i.setAttribute("max",h.config.maxDate.getFullYear().toString()),i.disabled=!!h.config.minDate&&h.config.minDate.getFullYear()===h.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function q(){s(h.monthNav),h.monthNav.appendChild(h.prevMonthNav),h.config.showMonths&&(h.yearElements=[],h.monthElements=[]);for(var e=h.config.showMonths;e--;){var t=U();h.yearElements.push(t.yearElement),h.monthElements.push(t.monthElement),h.monthNav.appendChild(t.container)}h.monthNav.appendChild(h.nextMonthNav)}function $(){h.weekdayContainer?s(h.weekdayContainer):h.weekdayContainer=d("div","flatpickr-weekdays");for(var e=h.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");h.weekdayContainer.appendChild(t)}return z(),h.weekdayContainer}function z(){var e=h.l10n.firstDayOfWeek,t=h.l10n.weekdays.shorthand.slice();e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=h.config.showMonths;n--;)h.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-h.currentMonth;n<0&&!0===h._hidePrevMonthArrow||n>0&&!0===h._hideNextMonthArrow||(h.currentMonth+=n,(h.currentMonth<0||h.currentMonth>11)&&(h.currentYear+=h.currentMonth>11?1:-1,h.currentMonth=(h.currentMonth+12)%12,ge("onYearChange"),K()),J(),ge("onMonthChange"),ve())}function V(e){return!(!h.config.appendTo||!h.config.appendTo.contains(e))||h.calendarContainer.contains(e)}function Z(e){if(h.isOpen&&!h.config.inline){var t="function"==typeof(r=e).composedPath?r.composedPath()[0]:r.target,n=V(t),a=t===h.input||t===h.altInput||h.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(h.input)||~e.path.indexOf(h.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!V(e.relatedTarget):!a&&!n&&!V(e.relatedTarget),o=!h.config.ignoredFocusElements.some(function(e){return e.contains(t)});i&&o&&(h.close(),"range"===h.config.mode&&1===h.selectedDates.length&&(h.clear(!1),h.redraw()))}var r}function Q(e){if(!(!e||h.config.minDate&&e<h.config.minDate.getFullYear()||h.config.maxDate&&e>h.config.maxDate.getFullYear())){var t=e,n=h.currentYear!==t;h.currentYear=t||h.currentYear,h.config.maxDate&&h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth=Math.min(h.config.maxDate.getMonth(),h.currentMonth):h.config.minDate&&h.currentYear===h.config.minDate.getFullYear()&&(h.currentMonth=Math.max(h.config.minDate.getMonth(),h.currentMonth)),n&&(h.redraw(),ge("onYearChange"),K())}}function X(e,t){void 0===t&&(t=!0);var n=h.parseDate(e,void 0,t);if(h.config.minDate&&n&&w(n,h.config.minDate,void 0!==t?t:!h.minDateHasTime)<0||h.config.maxDate&&n&&w(n,h.config.maxDate,void 0!==t?t:!h.maxDateHasTime)>0)return!1;if(0===h.config.enable.length&&0===h.config.disable.length)return!0;if(void 0===n)return!1;for(var a=h.config.enable.length>0,i=a?h.config.enable:h.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r&&void 0!==n){var l=h.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function ee(e){return void 0!==h.daysContainer&&(-1===e.className.indexOf("hidden")&&h.daysContainer.contains(e))}function te(e){var t=e.target===h._input,n=h.config.allowInput,a=h.isOpen&&(!n||!t),i=h.config.inline&&t&&!n;if(13===e.keyCode&&t){if(n)return h.setDate(h._input.value,!0,e.target===h.altInput?h.config.altFormat:h.config.dateFormat),e.target.blur();h.open()}else if(V(e.target)||a||i){var o=!!h.timeContainer&&h.timeContainer.contains(e.target);switch(e.keyCode){case 13:o?(e.preventDefault(),T(),de()):se(e);break;case 27:e.preventDefault(),de();break;case 8:case 46:t&&!h.config.allowInput&&(e.preventDefault(),h.clear());break;case 37:case 39:if(o||t)h.hourElement&&h.hourElement.focus();else if(e.preventDefault(),void 0!==h.daysContainer&&(!1===n||document.activeElement&&ee(document.activeElement))){var r=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(r),R(W(1),0)):R(void 0,r)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;h.daysContainer&&void 0!==e.target.$i||e.target===h.input?e.ctrlKey?(e.stopPropagation(),Q(h.currentYear-l),R(W(1),0)):o||R(void 0,7*l):e.target===h.currentYearElement?Q(h.currentYear-l):h.config.enableTime&&(!o&&h.hourElement&&h.hourElement.focus(),T(e),h._debouncedChange());break;case 9:if(o){var c=[h.hourElement,h.minuteElement,h.secondElement,h.amPM].concat(h.pluginElements).filter(function(e){return e}),d=c.indexOf(e.target);if(-1!==d){var s=c[d+(e.shiftKey?-1:1)];e.preventDefault(),(s||h._input).focus()}}else!h.config.noCalendar&&h.daysContainer&&h.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),h._input.focus())}}if(void 0!==h.amPM&&e.target===h.amPM)switch(e.key){case h.l10n.amPM[0].charAt(0):case h.l10n.amPM[0].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[0],k(),we();break;case h.l10n.amPM[1].charAt(0):case h.l10n.amPM[1].charAt(0).toLowerCase():h.amPM.textContent=h.l10n.amPM[1],k(),we()}(t||V(e.target))&&ge("onKeyDown",e)}function ne(e){if(1===h.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():h.days.firstElementChild.dateObj.getTime(),n=h.parseDate(h.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,h.selectedDates[0].getTime()),i=Math.max(t,h.selectedDates[0].getTime()),o=!1,r=0,l=0,c=a;c<i;c+=C.DAY)X(new Date(c),!0)||(o=o||c>a&&c<i,c<n&&(!r||c>r)?r=c:c>n&&(!l||c<l)&&(l=c));for(var d=0;d<h.config.showMonths;d++)for(var s=h.daysContainer.children[d],u=function(a,i){var c=s.children[a],d=c.dateObj.getTime(),u=r>0&&d<r||l>0&&d>l;return u?(c.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){c.classList.remove(e)}),"continue"):o&&!u?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){c.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=h.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&d===n?c.classList.add("startRange"):n>t&&d===n&&c.classList.add("endRange"),d>=r&&(0===l||d<=l)&&b(d,n,t)&&c.classList.add("inRange"))))},f=0,m=s.children.length;f<m;f++)u(f)}}function ae(){!h.isOpen||h.config.static||h.config.inline||le()}function ie(){h.setDate(void 0!==h.config.minDate?new Date(h.config.minDate.getTime()):new Date,!0),S(),we()}function oe(e){return function(t){var n=h.config["_"+e+"Date"]=h.parseDate(t,h.config.dateFormat),a=h.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(h["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),h.selectedDates&&(h.selectedDates=h.selectedDates.filter(function(e){return X(e)}),h.selectedDates.length||"min"!==e||I(n),we()),h.daysContainer&&(ce(),void 0!==n?h.currentYearElement[e]=n.getFullYear().toString():h.currentYearElement.removeAttribute(e),h.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function re(){"object"!=typeof h.config.locale&&void 0===E.l10ns[h.config.locale]&&h.config.errorHandler(new Error("flatpickr: invalid locale "+h.config.locale)),h.l10n=e({},E.l10ns.default,"object"==typeof h.config.locale?h.config.locale:"default"!==h.config.locale?E.l10ns[h.config.locale]:void 0),p.K="("+h.l10n.amPM[0]+"|"+h.l10n.amPM[1]+"|"+h.l10n.amPM[0].toLowerCase()+"|"+h.l10n.amPM[1].toLowerCase()+")",void 0===e({},g,JSON.parse(JSON.stringify(f.dataset||{}))).time_24hr&&void 0===E.defaultConfig.time_24hr&&(h.config.time_24hr=h.l10n.time_24hr),h.formatDate=v(h),h.parseDate=D({config:h.config,l10n:h.l10n})}function le(e){if(void 0!==h.calendarContainer){ge("onPreCalendarPosition");var t=e||h._positionElement,n=Array.prototype.reduce.call(h.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=h.calendarContainer.offsetWidth,i=h.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=t.getBoundingClientRect(),d=window.innerHeight-l.bottom,s="above"===o||"below"!==o&&d<n&&l.top>n,u=window.pageYOffset+l.top+(s?-n-2:t.offsetHeight+2);if(c(h.calendarContainer,"arrowTop",!s),c(h.calendarContainer,"arrowBottom",s),!h.config.inline){var f=window.pageXOffset+l.left-(null!=r&&"center"===r?(a-l.width)/2:0),m=window.document.body.offsetWidth-l.right,g=f+a>window.document.body.offsetWidth,p=m+a>window.document.body.offsetWidth;if(c(h.calendarContainer,"rightMost",g),!h.config.static)if(h.calendarContainer.style.top=u+"px",g)if(p){var v=document.styleSheets[0];if(void 0===v)return;var D=window.document.body.offsetWidth,w=Math.max(0,D/2-a/2),b=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";c(h.calendarContainer,"rightMost",!1),c(h.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,b),h.calendarContainer.style.left=w+"px",h.calendarContainer.style.right="auto"}else h.calendarContainer.style.left="auto",h.calendarContainer.style.right=m+"px";else h.calendarContainer.style.left=f+"px",h.calendarContainer.style.right="auto"}}}function ce(){h.config.noCalendar||h.isMobile||(ve(),J())}function de(){h._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(h.close,0):h.close()}function se(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,a=h.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<h.currentMonth||a.getMonth()>h.currentMonth+h.config.showMonths-1)&&"range"!==h.config.mode;if(h.selectedDateElem=n,"single"===h.config.mode)h.selectedDates=[a];else if("multiple"===h.config.mode){var o=he(a);o?h.selectedDates.splice(parseInt(o),1):h.selectedDates.push(a)}else"range"===h.config.mode&&(2===h.selectedDates.length&&h.clear(!1,!1),h.latestSelectedDateObj=a,h.selectedDates.push(a),0!==w(a,h.selectedDates[0],!0)&&h.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(k(),i){var r=h.currentYear!==a.getFullYear();h.currentYear=a.getFullYear(),h.currentMonth=a.getMonth(),r&&(ge("onYearChange"),K()),ge("onMonthChange")}if(ve(),J(),we(),h.config.enableTime&&setTimeout(function(){return h.showTimeInput=!0},50),i||"range"===h.config.mode||1!==h.config.showMonths?void 0!==h.selectedDateElem&&void 0===h.hourElement&&h.selectedDateElem&&h.selectedDateElem.focus():L(n),void 0!==h.hourElement&&void 0!==h.hourElement&&h.hourElement.focus(),h.config.closeOnSelect){var l="single"===h.config.mode&&!h.config.enableTime,c="range"===h.config.mode&&2===h.selectedDates.length&&!h.config.enableTime;(l||c)&&de()}Y()}}h.parseDate=D({config:h.config,l10n:h.l10n}),h._handlers=[],h.pluginElements=[],h.loadedPlugins=[],h._bind=F,h._setHoursFromDate=I,h._positionCalendar=le,h.changeMonth=G,h.changeYear=Q,h.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);h.input.value="",void 0!==h.altInput&&(h.altInput.value="");void 0!==h.mobileInput&&(h.mobileInput.value="");h.selectedDates=[],h.latestSelectedDateObj=void 0,!0===t&&(h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth());h.showTimeInput=!1,!0===h.config.enableTime&&S();h.redraw(),e&&ge("onChange")},h.close=function(){h.isOpen=!1,h.isMobile||(void 0!==h.calendarContainer&&h.calendarContainer.classList.remove("open"),void 0!==h._input&&h._input.classList.remove("active"));ge("onClose")},h._createElement=d,h.destroy=function(){void 0!==h.config&&ge("onDestroy");for(var e=h._handlers.length;e--;){var t=h._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(h._handlers=[],h.mobileInput)h.mobileInput.parentNode&&h.mobileInput.parentNode.removeChild(h.mobileInput),h.mobileInput=void 0;else if(h.calendarContainer&&h.calendarContainer.parentNode)if(h.config.static&&h.calendarContainer.parentNode){var n=h.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else h.calendarContainer.parentNode.removeChild(h.calendarContainer);h.altInput&&(h.input.type="text",h.altInput.parentNode&&h.altInput.parentNode.removeChild(h.altInput),delete h.altInput);h.input&&(h.input.type=h.input._type,h.input.classList.remove("flatpickr-input"),h.input.removeAttribute("readonly"),h.input.value="");["_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(function(e){try{delete h[e]}catch(e){}})},h.isEnabled=X,h.jumpToDate=A,h.open=function(e,t){void 0===t&&(t=h._positionElement);if(!0===h.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==h.mobileInput&&(h.mobileInput.focus(),h.mobileInput.click()),void ge("onOpen");if(h._input.disabled||h.config.inline)return;var n=h.isOpen;h.isOpen=!0,n||(h.calendarContainer.classList.add("open"),h._input.classList.add("active"),ge("onOpen"),le(t));!0===h.config.enableTime&&!0===h.config.noCalendar&&(0===h.selectedDates.length&&ie(),!1!==h.config.allowInput||void 0!==e&&h.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return h.hourElement.select()},50))},h.redraw=ce,h.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(h.config,e),e)void 0!==ue[a]&&ue[a].forEach(function(e){return e()});else h.config[e]=n,void 0!==ue[e]?ue[e].forEach(function(e){return e()}):t.indexOf(e)>-1&&(h.config[e]=l(n));h.redraw(),we(!1)},h.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=h.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return h.clear(t);fe(e,n),h.showTimeInput=h.selectedDates.length>0,h.latestSelectedDateObj=h.selectedDates[h.selectedDates.length-1],h.redraw(),A(),I(),0===h.selectedDates.length&&h.clear(!1);we(t),t&&ge("onChange")},h.toggle=function(e){if(!0===h.isOpen)return h.close();h.open(e)};var ue={locale:[re,z],showMonths:[q,x,$],minDate:[A],maxDate:[A]};function fe(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return h.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[h.parseDate(e,t)];else if("string"==typeof e)switch(h.config.mode){case"single":case"time":n=[h.parseDate(e,t)];break;case"multiple":n=e.split(h.config.conjunction).map(function(e){return h.parseDate(e,t)});break;case"range":n=e.split(h.l10n.rangeSeparator).map(function(e){return h.parseDate(e,t)})}else h.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));h.selectedDates=n.filter(function(e){return e instanceof Date&&X(e,!1)}),"range"===h.config.mode&&h.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function me(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?h.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:h.parseDate(e.from,void 0),to:h.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ge(e,t){if(void 0!==h.config){var n=h.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](h.selectedDates,h.input.value,h,t);"onChange"===e&&(h.input.dispatchEvent(pe("change")),h.input.dispatchEvent(pe("input")))}}function pe(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function he(e){for(var t=0;t<h.selectedDates.length;t++)if(0===w(h.selectedDates[t],e))return""+t;return!1}function ve(){h.config.noCalendar||h.isMobile||!h.monthNav||(h.yearElements.forEach(function(e,t){var n=new Date(h.currentYear,h.currentMonth,1);n.setMonth(h.currentMonth+t),h.config.showMonths>1||"static"===h.config.monthSelectorType?h.monthElements[t].textContent=m(n.getMonth(),h.config.shorthandCurrentMonth,h.l10n)+" ":h.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),h._hidePrevMonthArrow=void 0!==h.config.minDate&&(h.currentYear===h.config.minDate.getFullYear()?h.currentMonth<=h.config.minDate.getMonth():h.currentYear<h.config.minDate.getFullYear()),h._hideNextMonthArrow=void 0!==h.config.maxDate&&(h.currentYear===h.config.maxDate.getFullYear()?h.currentMonth+1>h.config.maxDate.getMonth():h.currentYear>h.config.maxDate.getFullYear()))}function De(e){return h.selectedDates.map(function(t){return h.formatDate(t,e)}).filter(function(e,t,n){return"range"!==h.config.mode||h.config.enableTime||n.indexOf(e)===t}).join("range"!==h.config.mode?h.config.conjunction:h.l10n.rangeSeparator)}function we(e){void 0===e&&(e=!0),void 0!==h.mobileInput&&h.mobileFormatStr&&(h.mobileInput.value=void 0!==h.latestSelectedDateObj?h.formatDate(h.latestSelectedDateObj,h.mobileFormatStr):""),h.input.value=De(h.config.dateFormat),void 0!==h.altInput&&(h.altInput.value=De(h.config.altFormat)),!1!==e&&ge("onValueUpdate")}function be(e){var t=h.prevMonthNav.contains(e.target),n=h.nextMonthNav.contains(e.target);t||n?G(t?-1:1):h.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?h.changeYear(h.currentYear+1):e.target.classList.contains("arrowDown")&&h.changeYear(h.currentYear-1)}return function(){h.element=h.input=f,h.isOpen=!1,function(){var a=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},g,JSON.parse(JSON.stringify(f.dataset||{}))),o={};h.config.parseDate=i.parseDate,h.config.formatDate=i.formatDate,Object.defineProperty(h.config,"enable",{get:function(){return h.config._enable},set:function(e){h.config._enable=me(e)}}),Object.defineProperty(h.config,"disable",{get:function(){return h.config._disable},set:function(e){h.config._disable=me(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var c=E.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var d=E.defaultConfig.altFormat||n.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):d+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(h.config.altInputClass=h.input.className+" "+h.config.altInputClass),Object.defineProperty(h.config,"minDate",{get:function(){return h.config._minDate},set:oe("min")}),Object.defineProperty(h.config,"maxDate",{get:function(){return h.config._maxDate},set:oe("max")});var s=function(e){return function(t){h.config["min"===e?"_minTime":"_maxTime"]=h.parseDate(t,"H:i")}};Object.defineProperty(h.config,"minTime",{get:function(){return h.config._minTime},set:s("min")}),Object.defineProperty(h.config,"maxTime",{get:function(){return h.config._maxTime},set:s("max")}),"time"===i.mode&&(h.config.noCalendar=!0,h.config.enableTime=!0),Object.assign(h.config,o,i);for(var u=0;u<a.length;u++)h.config[a[u]]=!0===h.config[a[u]]||"true"===h.config[a[u]];t.filter(function(e){return void 0!==h.config[e]}).forEach(function(e){h.config[e]=l(h.config[e]||[]).map(y)}),h.isMobile=!h.config.disableMobile&&!h.config.inline&&"single"===h.config.mode&&!h.config.disable.length&&!h.config.enable.length&&!h.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var u=0;u<h.config.plugins.length;u++){var m=h.config.plugins[u](h)||{};for(var p in m)t.indexOf(p)>-1?h.config[p]=l(m[p]).map(y).concat(h.config[p]):void 0===i[p]&&(h.config[p]=m[p])}ge("onParseConfig")}(),re(),h.input=h.config.wrap?f.querySelector("[data-input]"):f,h.input?(h.input._type=h.input.type,h.input.type="text",h.input.classList.add("flatpickr-input"),h._input=h.input,h.config.altInput&&(h.altInput=d(h.input.nodeName,h.config.altInputClass),h._input=h.altInput,h.altInput.placeholder=h.input.placeholder,h.altInput.disabled=h.input.disabled,h.altInput.required=h.input.required,h.altInput.tabIndex=h.input.tabIndex,h.altInput.type="text",h.input.setAttribute("type","hidden"),!h.config.static&&h.input.parentNode&&h.input.parentNode.insertBefore(h.altInput,h.input.nextSibling)),h.config.allowInput||h._input.setAttribute("readonly","readonly"),h._positionElement=h.config.positionElement||h._input):h.config.errorHandler(new Error("Invalid input element specified")),function(){h.selectedDates=[],h.now=h.parseDate(h.config.now)||new Date;var e=h.config.defaultDate||("INPUT"!==h.input.nodeName&&"TEXTAREA"!==h.input.nodeName||!h.input.placeholder||h.input.value!==h.input.placeholder?h.input.value:null);e&&fe(e,h.config.dateFormat),h._initialDate=h.selectedDates.length>0?h.selectedDates[0]:h.config.minDate&&h.config.minDate.getTime()>h.now.getTime()?h.config.minDate:h.config.maxDate&&h.config.maxDate.getTime()<h.now.getTime()?h.config.maxDate:h.now,h.currentYear=h._initialDate.getFullYear(),h.currentMonth=h._initialDate.getMonth(),h.selectedDates.length>0&&(h.latestSelectedDateObj=h.selectedDates[0]),void 0!==h.config.minTime&&(h.config.minTime=h.parseDate(h.config.minTime,"H:i")),void 0!==h.config.maxTime&&(h.config.maxTime=h.parseDate(h.config.maxTime,"H:i")),h.minDateHasTime=!!h.config.minDate&&(h.config.minDate.getHours()>0||h.config.minDate.getMinutes()>0||h.config.minDate.getSeconds()>0),h.maxDateHasTime=!!h.config.maxDate&&(h.config.maxDate.getHours()>0||h.config.maxDate.getMinutes()>0||h.config.maxDate.getSeconds()>0),Object.defineProperty(h,"showTimeInput",{get:function(){return h._showTimeInput},set:function(e){h._showTimeInput=e,h.calendarContainer&&c(h.calendarContainer,"showTimeInput",e),h.isOpen&&le()}})}(),h.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=h.currentMonth),void 0===t&&(t=h.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:h.l10n.daysInMonth[e]}},h.isMobile||function(){var e=window.document.createDocumentFragment();if(h.calendarContainer=d("div","flatpickr-calendar"),h.calendarContainer.tabIndex=-1,!h.config.noCalendar){if(e.appendChild((h.monthNav=d("div","flatpickr-months"),h.yearElements=[],h.monthElements=[],h.prevMonthNav=d("span","flatpickr-prev-month"),h.prevMonthNav.innerHTML=h.config.prevArrow,h.nextMonthNav=d("span","flatpickr-next-month"),h.nextMonthNav.innerHTML=h.config.nextArrow,q(),Object.defineProperty(h,"_hidePrevMonthArrow",{get:function(){return h.__hidePrevMonthArrow},set:function(e){h.__hidePrevMonthArrow!==e&&(c(h.prevMonthNav,"flatpickr-disabled",e),h.__hidePrevMonthArrow=e)}}),Object.defineProperty(h,"_hideNextMonthArrow",{get:function(){return h.__hideNextMonthArrow},set:function(e){h.__hideNextMonthArrow!==e&&(c(h.nextMonthNav,"flatpickr-disabled",e),h.__hideNextMonthArrow=e)}}),h.currentYearElement=h.yearElements[0],ve(),h.monthNav)),h.innerContainer=d("div","flatpickr-innerContainer"),h.config.weekNumbers){var t=function(){h.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",h.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;h.innerContainer.appendChild(n),h.weekNumbers=a,h.weekWrapper=n}h.rContainer=d("div","flatpickr-rContainer"),h.rContainer.appendChild($()),h.daysContainer||(h.daysContainer=d("div","flatpickr-days"),h.daysContainer.tabIndex=-1),J(),h.rContainer.appendChild(h.daysContainer),h.innerContainer.appendChild(h.rContainer),e.appendChild(h.innerContainer)}h.config.enableTime&&e.appendChild(function(){h.calendarContainer.classList.add("hasTime"),h.config.noCalendar&&h.calendarContainer.classList.add("noCalendar"),h.timeContainer=d("div","flatpickr-time"),h.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),t=u("flatpickr-hour",{"aria-label":h.l10n.hourAriaLabel});h.hourElement=t.getElementsByTagName("input")[0];var n=u("flatpickr-minute",{"aria-label":h.l10n.minuteAriaLabel});if(h.minuteElement=n.getElementsByTagName("input")[0],h.hourElement.tabIndex=h.minuteElement.tabIndex=-1,h.hourElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getHours():h.config.time_24hr?h.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(h.config.defaultHour)),h.minuteElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getMinutes():h.config.defaultMinute),h.hourElement.setAttribute("step",h.config.hourIncrement.toString()),h.minuteElement.setAttribute("step",h.config.minuteIncrement.toString()),h.hourElement.setAttribute("min",h.config.time_24hr?"0":"1"),h.hourElement.setAttribute("max",h.config.time_24hr?"23":"12"),h.minuteElement.setAttribute("min","0"),h.minuteElement.setAttribute("max","59"),h.timeContainer.appendChild(t),h.timeContainer.appendChild(e),h.timeContainer.appendChild(n),h.config.time_24hr&&h.timeContainer.classList.add("time24hr"),h.config.enableSeconds){h.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");h.secondElement=a.getElementsByTagName("input")[0],h.secondElement.value=i(h.latestSelectedDateObj?h.latestSelectedDateObj.getSeconds():h.config.defaultSeconds),h.secondElement.setAttribute("step",h.minuteElement.getAttribute("step")),h.secondElement.setAttribute("min","0"),h.secondElement.setAttribute("max","59"),h.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),h.timeContainer.appendChild(a)}return h.config.time_24hr||(h.amPM=d("span","flatpickr-am-pm",h.l10n.amPM[o((h.latestSelectedDateObj?h.hourElement.value:h.config.defaultHour)>11)]),h.amPM.title=h.l10n.toggleTitle,h.amPM.tabIndex=-1,h.timeContainer.appendChild(h.amPM)),h.timeContainer}()),c(h.calendarContainer,"rangeMode","range"===h.config.mode),c(h.calendarContainer,"animate",!0===h.config.animate),c(h.calendarContainer,"multiMonth",h.config.showMonths>1),h.calendarContainer.appendChild(e);var r=void 0!==h.config.appendTo&&void 0!==h.config.appendTo.nodeType;if((h.config.inline||h.config.static)&&(h.calendarContainer.classList.add(h.config.inline?"inline":"static"),h.config.inline&&(!r&&h.element.parentNode?h.element.parentNode.insertBefore(h.calendarContainer,h._input.nextSibling):void 0!==h.config.appendTo&&h.config.appendTo.appendChild(h.calendarContainer)),h.config.static)){var l=d("div","flatpickr-wrapper");h.element.parentNode&&h.element.parentNode.insertBefore(l,h.element),l.appendChild(h.element),h.altInput&&l.appendChild(h.altInput),l.appendChild(h.calendarContainer)}h.config.static||h.config.inline||(void 0!==h.config.appendTo?h.config.appendTo:window.document.body).appendChild(h.calendarContainer)}(),function(){if(h.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(h.element.querySelectorAll("[data-"+e+"]"),function(t){return F(t,"click",h[e])})}),h.isMobile)!function(){var e=h.config.enableTime?h.config.noCalendar?"time":"datetime-local":"date";h.mobileInput=d("input",h.input.className+" flatpickr-mobile"),h.mobileInput.step=h.input.getAttribute("step")||"any",h.mobileInput.tabIndex=1,h.mobileInput.type=e,h.mobileInput.disabled=h.input.disabled,h.mobileInput.required=h.input.required,h.mobileInput.placeholder=h.input.placeholder,h.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",h.selectedDates.length>0&&(h.mobileInput.defaultValue=h.mobileInput.value=h.formatDate(h.selectedDates[0],h.mobileFormatStr)),h.config.minDate&&(h.mobileInput.min=h.formatDate(h.config.minDate,"Y-m-d")),h.config.maxDate&&(h.mobileInput.max=h.formatDate(h.config.maxDate,"Y-m-d")),h.input.type="hidden",void 0!==h.altInput&&(h.altInput.type="hidden");try{h.input.parentNode&&h.input.parentNode.insertBefore(h.mobileInput,h.input.nextSibling)}catch(e){}F(h.mobileInput,"change",function(e){h.setDate(e.target.value,!1,h.mobileFormatStr),ge("onChange"),ge("onClose")})}();else{var e=r(ae,50);h._debouncedChange=r(Y,M),h.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&F(h.daysContainer,"mouseover",function(e){"range"===h.config.mode&&ne(e.target)}),F(window.document.body,"keydown",te),h.config.inline||h.config.static||F(window,"resize",e),void 0!==window.ontouchstart?F(window.document,"touchstart",Z):F(window.document,"mousedown",N(Z)),F(window.document,"focus",Z,{capture:!0}),!0===h.config.clickOpens&&(F(h._input,"focus",h.open),F(h._input,"mousedown",N(h.open))),void 0!==h.daysContainer&&(F(h.monthNav,"mousedown",N(be)),F(h.monthNav,["keyup","increment"],_),F(h.daysContainer,"mousedown",N(se))),void 0!==h.timeContainer&&void 0!==h.minuteElement&&void 0!==h.hourElement&&(F(h.timeContainer,["increment"],T),F(h.timeContainer,"blur",T,{capture:!0}),F(h.timeContainer,"mousedown",N(P)),F([h.hourElement,h.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==h.secondElement&&F(h.secondElement,"focus",function(){return h.secondElement&&h.secondElement.select()}),void 0!==h.amPM&&F(h.amPM,"mousedown",N(function(e){T(e),Y()})))}}(),(h.selectedDates.length||h.config.noCalendar)&&(h.config.enableTime&&I(h.config.noCalendar?h.latestSelectedDateObj||h.config.minDate:void 0),we(!1)),x(),h.showTimeInput=h.selectedDates.length>0||h.config.noCalendar;var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!h.isMobile&&a&&le(),ge("onReady")}(),h}function x(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=y(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return x(this,e)},HTMLElement.prototype.flatpickr=function(e){return x([this],e)});var E=function(e,t){return"string"==typeof e?x(window.document.querySelectorAll(e),t):e instanceof Node?x([e],t):x(e,t)};return E.defaultConfig={},E.l10ns={en:e({},a),default:e({},a)},E.localize=function(t){E.l10ns.default=e({},E.l10ns.default,t)},E.setDefaults=function(t){E.defaultConfig=e({},E.defaultConfig,t)},E.parseDate=D({}),E.formatDate=v({}),E.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return x(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=E),E});
 
 
public/assets/js/htm.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){var n=function(t,e,s,u){var r;e[0]=0;for(var h=1;h<e.length;h++){var p=e[h++],a=e[h]?(e[0]|=p?1:2,s[e[h++]]):e[++h];3===p?u[0]=a:4===p?u[1]=Object.assign(u[1]||{},a):5===p?(u[1]=u[1]||{})[e[++h]]=a:6===p?u[1][e[++h]]+=a+"":p?(r=t.apply(a,n(t,a,s,["",null])),u.push(r),a[0]?e[0]|=2:(e[h-2]=0,e[h]=r)):u.push(a)}return u},t=new Map,e=function(e){var s=t.get(this);return s||(s=new Map,t.set(this,s)),(s=n(this,s.get(e)||(s.set(e,s=function(n){for(var t,e,s=1,u="",r="",h=[0],p=function(n){1===s&&(n||(u=u.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?h.push(0,n,u):3===s&&(n||u)?(h.push(3,n,u),s=2):2===s&&"..."===u&&n?h.push(4,n,0):2===s&&u&&!n?h.push(5,0,!0,u):s>=5&&((u||!n&&5===s)&&(h.push(s,0,u,e),s=6),n&&(h.push(s,n,0,e),s=6)),u=""},a=0;a<n.length;a++){a&&(1===s&&p(),p(a));for(var o=0;o<n[a].length;o++)t=n[a][o],1===s?"<"===t?(p(),h=[h],s=3):u+=t:4===s?"--"===u&&">"===t?(s=1,u=""):u=t+u[0]:r?t===r?r="":u+=t:'"'===t||"'"===t?r=t:">"===t?(p(),s=1):s&&("="===t?(s=5,e=u,u=""):"/"===t&&(s<5||">"===n[a][o+1])?(p(),3===s&&(h=h[0]),s=h,(h=h[0]).push(2,0,s),s=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(p(),s=2):u+=t),3===s&&"!--"===u&&(s=4,h=h[0])}return p(),h}(e)),s),arguments,[])).length>1?s:s[0]};"undefined"!=typeof module?module.exports=e:self.htm=e}();
public/assets/js/inputs.js DELETED
@@ -1 +0,0 @@
1
- !function(t,e){"use strict";var n={init:function(){var a={"mf-range.default":n.RangeInput,"mf-date.default":n.DateInput,"mf-time.default":n.TimeInput,"mf-select.default":n.SelectInput,"mf-multi-select.default":n.MultiSelectInput,"mf-rating.default":n.Rating,"mf-file-upload.default":n.fileUpload,"metform.default":n.Metform};t.each(a,function(t,n){e.hooks.addAction("frontend/element_ready/"+t,n)})},RangeInput:function(e){var n=e.find(".mf-rs-range"),a=n.attr("min"),i=n.attr("max"),r=n.attr("step"),f=n.attr("range"),l={step:r,min:a,max:i};"true"==f&&(l.range=Boolean(f)),n.asRange(l),n.on("asRange::change",function(e){var n=t(this).asRange("get");Array.isArray(n)&&(n=Number(n[1])-Number(n[0])),t(this).val(n).trigger("change").valid()})},DateInput:function(e){var n=e.find(".mf-date-input"),a=n.attr("data-mfMinDate"),i=n.attr("data-mfMaxDate"),r=n.attr("data-mfRangeDate"),f=n.attr("data-mfDateFormat"),l=n.attr("data-mfEnableTime"),o=n.attr("data-mfDisableDates"),m={appendTo:e.find(".mf-input-wrapper").get(0),onReady:function(e,n,a){a.isMobile&&t(a.mobileInput).attr("step",null)}};"yes"==l&&(m.enableTime=!0,f+=" H:i"),""!=o&&(m.disable=JSON.parse(o)),""!=a&&(m.minDate=a),""!=i&&(m.maxDate=i),"yes"==r&&(m.mode="range"),m.dateFormat=f,n.flatpickr(m)},TimeInput:function(e){var n=e.find(".mf-input-time"),a=n.attr("data-mftime24h"),i={appendTo:e.find(".mf-input-wrapper").get(0),dateFormat:"h:i K",enableTime:!0,noCalendar:!0,onReady:function(e,n,a){a.isMobile&&t(a.mobileInput).attr("step",null)}};"yes"==a&&(i.dateFormat="H:i",i.time_24hr=!0),n.flatpickr(i)},SelectInput:function(t){t.find("select.mf-input-select").select2({dropdownParent:t.find(".mf-input-wrapper")})},MultiSelectInput:function(e){var n=e.find("select.mf-input-multiselect");n.select2({dropdownParent:e.find(".mf-input-wrapper")}),n.on("change",function(){t(this).valid()})},Rating:function(e){var n=e.find(".mf-input-rating li");n.on("mouseover",function(){var e=parseInt(t(this).data("value"),10);t(this).parent().children("li.star-li").each(function(n){n<e?t(this).addClass("hover"):t(this).removeClass("hover")})}).on("mouseout",function(){t(this).parent().children("li.star-li").each(function(e){t(this).removeClass("hover")})}),n.on("click",function(){var e=parseInt(t(this).data("value"),10),n=t(this).parent().children("li.star-li");for(let e=0;e<n.length;e++)t(n[e]).removeClass("selected");for(let a=0;a<e;a++)t(n[a]).addClass("selected");var a=t(this).parents().find("input.mf-input-hidden");a.val(e).trigger("change"),a.valid()})},fileUpload:function(e){e.find(".mf-input-file-upload").on("change",function(){var n=null!=t(this).val().match(/\\([^\\]+)$/)?t(this).val().match(/\\([^\\]+)$/)[1]:"";""!=n&&e.find(".mf-file-name span").html(n)})},Metform:function(t){var e=t.find(".metform-form-content");"undefined"!=typeof metformSubmision&&metformSubmision(e)}};t(window).on("elementor/frontend/init",n.init)}(jQuery,window.elementorFrontend);
 
public/assets/js/jquery-asRange.min.js CHANGED
@@ -6,4 +6,3 @@
6
  * Released under the LGPL-3.0 license
7
  */
8
  !function(t,e){if("function"==typeof define&&define.amd)define(["jquery"],e);else if("undefined"!=typeof exports)e(require("jquery"));else{var i={exports:{}};e(t.jQuery),t.jqueryAsRangeEs=i.exports}}(this,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=t.originalEvent;return e.touches&&e.touches.length&&e.touches[0]&&(e=e.touches[0]),e}function s(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];if("string"==typeof t){var a=t;if(/^_/.test(a))return!1;if(!(/^(get)$/.test(a)||"val"===a&&0===i.length))return this.each(function(){var t=n.default.data(this,v);t&&"function"==typeof t[a]&&t[a].apply(t,i)});var o=this.first().data(v);if(o&&"function"==typeof o[a])return o[a].apply(o,i)}return this.each(function(){(0,n.default)(this).data(v)||(0,n.default)(this).data(v,new d(this,t))})}var n=function(t){return t&&t.__esModule?t:{default:t}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),r={namespace:"asRange",skin:null,max:100,min:0,value:null,step:10,limit:!0,range:!1,direction:"h",keyboard:!0,replaceFirst:!1,tip:!0,scale:!0,format:function(t){return t}},u=function(){function t(i,s,a){e(this,t),this.$element=i,this.uid=s,this.parent=a,this.options=n.default.extend(!0,{},this.parent.options),this.direction=this.options.direction,this.value=null,this.classes={active:this.parent.namespace+"-pointer_active"}}return o(t,[{key:"mousedown",value:function(t){var e=this.parent.direction.axis,s=this.parent.direction.position,a=this.parent.$wrap.offset();this.$element.trigger(this.parent.namespace+"::moveStart",this),this.data={},this.data.start=t[e],this.data.position=t[e]-a[s];var o=this.parent.getValueFromPosition(this.data.position);return this.set(o),n.default.each(this.parent.pointer,function(t,e){e.deactive()}),this.active(),this.mousemove=function(t){var s=i(t),n=this.parent.getValueFromPosition(this.data.position+(s[e]||this.data.start)-this.data.start);return this.set(n),t.preventDefault(),!1},this.mouseup=function(){return(0,n.default)(document).off(".asRange mousemove.asRange touchend.asRange mouseup.asRange touchcancel.asRange"),this.$element.trigger(this.parent.namespace+"::moveEnd",this),!1},(0,n.default)(document).on("touchmove.asRange mousemove.asRange",n.default.proxy(this.mousemove,this)).on("touchend.asRange mouseup.asRange",n.default.proxy(this.mouseup,this)),!1}},{key:"active",value:function(){this.$element.addClass(this.classes.active)}},{key:"deactive",value:function(){this.$element.removeClass(this.classes.active)}},{key:"set",value:function(t){this.value!==t&&(this.parent.step&&(t=this.matchStep(t)),!0===this.options.limit?t=this.matchLimit(t):(t<=this.parent.min&&(t=this.parent.min),t>=this.parent.max&&(t=this.parent.max)),this.value=t,this.updatePosition(),this.$element.focus(),this.$element.trigger(this.parent.namespace+"::move",this))}},{key:"updatePosition",value:function(){var t={};t[this.parent.direction.position]=this.getPercent()+"%",this.$element.css(t)}},{key:"getPercent",value:function(){return(this.value-this.parent.min)/this.parent.interval*100}},{key:"get",value:function(){return this.value}},{key:"matchStep",value:function(t){var e=this.parent.step,i=e.toString().split(".")[1];return t=Math.round(t/e)*e,i&&(t=t.toFixed(i.length)),parseFloat(t)}},{key:"matchLimit",value:function(t){var e=void 0,i=void 0,s=this.parent.pointer;return e=1===this.uid?this.parent.min:s[this.uid-2].value,i=s[this.uid]&&null!==s[this.uid].value?s[this.uid].value:this.parent.max,t<=e&&(t=e),t>=i&&(t=i),t}},{key:"destroy",value:function(){this.$element.off(".asRange"),this.$element.remove()}}]),t}(),l={defaults:{scale:{valuesNumber:3,gap:1,grid:5}},init:function(t){var e=n.default.extend({},this.defaults,t.options.scale).scale;e.values=[],e.values.push(t.min);for(var i=(t.max-t.min)/(e.valuesNumber-1),s=1;s<=e.valuesNumber-2;s++)e.values.push(i*s);e.values.push(t.max);var a={scale:t.namespace+"-scale",lines:t.namespace+"-scale-lines",grid:t.namespace+"-scale-grid",inlineGrid:t.namespace+"-scale-inlineGrid",values:t.namespace+"-scale-values"},o=e.values.length,r=((e.grid-1)*(e.gap+1)+e.gap)*(o-1)+o,u=100/(r-1),l=100/(o-1);this.$scale=(0,n.default)("<div></div>").addClass(a.scale),this.$lines=(0,n.default)("<ul></ul>").addClass(a.lines),this.$values=(0,n.default)("<ul></ul>").addClass(a.values);for(var h=0;h<r;h++){(0===h||h===r||h%((r-1)/(o-1))==0?(0,n.default)('<li class="'+a.grid+'"></li>'):h%e.grid==0?(0,n.default)('<li class="'+a.inlineGrid+'"></li>'):(0,n.default)("<li></li>")).css({left:u*h+"%"}).appendTo(this.$lines)}for(var p=0;p<o;p++)(0,n.default)("<li><span>"+e.values[p]+"</span></li>").css({left:l*p+"%"}).appendTo(this.$values);this.$lines.add(this.$values).appendTo(this.$scale),this.$scale.appendTo(t.$wrap)},update:function(t){this.$scale.remove(),this.init(t)}},h={defaults:{},init:function(t){var e=this;if(this.$arrow=(0,n.default)("<span></span>").appendTo(t.$wrap),this.$arrow.addClass(t.namespace+"-selected"),!1===t.options.range&&t.p1.$element.on(t.namespace+"::move",function(t,i){e.$arrow.css({left:0,width:i.getPercent()+"%"})}),!0===t.options.range){var i=function(){var i=t.p2.getPercent()-t.p1.getPercent(),s=void 0;i>=0?s=t.p1.getPercent():(i=-i,s=t.p2.getPercent()),e.$arrow.css({left:s+"%",width:i+"%"})};t.p1.$element.on(t.namespace+"::move",i),t.p2.$element.on(t.namespace+"::move",i)}}},p={defaults:{active:"always"},init:function(t){var e=this,i=n.default.extend({},this.defaults,t.options.tip);this.opts=i,this.classes={tip:t.namespace+"-tip",show:t.namespace+"-tip-show"},n.default.each(t.pointer,function(i,s){var o=(0,n.default)("<span></span>").appendTo(t.pointer[i].$element);o.addClass(e.classes.tip),"onMove"===e.opts.active&&(o.css({display:"none"}),s.$element.on(t.namespace+"::moveEnd",function(){return e.hide(o),!1}).on(t.namespace+"::moveStart",function(){return e.show(o),!1})),s.$element.on(t.namespace+"::move",function(){var e=void 0;if(e=t.options.range?t.get()[i]:t.get(),"function"==typeof t.options.format)if(t.options.replaceFirst&&"number"!=typeof e){if("string"==typeof t.options.replaceFirst&&(e=t.options.replaceFirst),"object"===a(t.options.replaceFirst))for(var s in t.options.replaceFirst)Object.hasOwnProperty(t.options.replaceFirst,s)&&(e=t.options.replaceFirst[s])}else e=t.options.format(e);return o.text(e),!1})})},show:function(t){t.addClass(this.classes.show),t.css({display:"block"})},hide:function(t){t.removeClass(this.classes.show),t.css({display:"none"})}},c={},d=function(){function t(i,s){var a=this;e(this,t);var o={};if(this.element=i,this.$element=(0,n.default)(i),this.$element.is("input")){var u=this.$element.val();"string"==typeof u&&(o.value=u.split(",")),n.default.each(["min","max","step"],function(t,e){var i=parseFloat(a.$element.attr(e));isNaN(i)||(o[e]=i)}),this.$element.css({display:"none"}),this.$wrap=(0,n.default)("<div></div>"),this.$element.after(this.$wrap)}else this.$wrap=this.$element;if(this.options=n.default.extend({},r,s,this.$element.data(),o),this.namespace=this.options.namespace,this.components=n.default.extend(!0,{},c),this.options.range&&(this.options.replaceFirst=!1),this.value=this.options.value,null===this.value&&(this.value=this.options.min),this.options.range?n.default.isArray(this.value)?1===this.value.length&&(this.value[1]=this.value[0]):this.value=[this.value,this.value]:n.default.isArray(this.value)&&(this.value=this.value[0]),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step,this.interval=this.max-this.min,this.initialized=!1,this.updating=!1,this.disabled=!1,"v"===this.options.direction?this.direction={axis:"pageY",position:"top"}:this.direction={axis:"pageX",position:"left"},this.$wrap.addClass(this.namespace),this.options.skin&&this.$wrap.addClass(this.namespace+"_"+this.options.skin),this.max<this.min||this.step>=this.interval)throw new Error("error options about max min step");this.init()}return o(t,[{key:"init",value:function(){this.$wrap.append('<div class="'+this.namespace+'-bar" />'),this.buildPointers(),this.components.selected.init(this),!1!==this.options.tip&&this.components.tip.init(this),!1!==this.options.scale&&this.components.scale.init(this),this.set(this.value),this.bindEvents(),this._trigger("ready"),this.initialized=!0}},{key:"_trigger",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];var n=[this].concat(i);this.$element.trigger(this.namespace+"::"+t,n);var a="on"+(t=t.replace(/\b\w+\b/g,function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}));"function"==typeof this.options[a]&&this.options[a].apply(this,i)}},{key:"buildPointers",value:function(){this.pointer=[];var t=1;this.options.range&&(t=2);for(var e=1;e<=t;e++){var i=(0,n.default)('<div class="'+this.namespace+"-pointer "+this.namespace+"-pointer-"+e+'"></div>').appendTo(this.$wrap),s=new u(i,e,this);this.pointer.push(s)}this.p1=this.pointer[0],this.options.range&&(this.p2=this.pointer[1])}},{key:"bindEvents",value:function(){var t=this,e=this;this.$wrap.on("touchstart.asRange mousedown.asRange",function(t){if(!0!==e.disabled){if((t=i(t)).which?3===t.which:2===t.button)return!1;var s=e.$wrap.offset(),n=t[e.direction.axis]-s[e.direction.position];return e.getAdjacentPointer(n).mousedown(t),!1}}),this.$element.is("input")&&this.$element.on(this.namespace+"::change",function(){var e=t.get();t.$element.val(e)}),n.default.each(this.pointer,function(i,s){s.$element.on(t.namespace+"::move",function(){return e.value=e.get(),!(!e.initialized||e.updating)&&(e._trigger("change",e.value),!1)})})}},{key:"getValueFromPosition",value:function(t){return t>0?this.min+t/this.getLength()*this.interval:0}},{key:"getAdjacentPointer",value:function(t){var e=this.getValueFromPosition(t);if(this.options.range){var i=this.p1.value,s=this.p2.value,n=Math.abs(i-s);return i<=s?e>i+n/2?this.p2:this.p1:e>s+n/2?this.p1:this.p2}return this.p1}},{key:"getLength",value:function(){return"v"===this.options.direction?this.$wrap.height():this.$wrap.width()}},{key:"update",value:function(t){var e=this;this.updating=!0,n.default.each(["max","min","step","limit","value"],function(i,s){t[s]&&(e[s]=t[s])}),(t.max||t.min)&&this.setInterval(t.min,t.max),t.value||(this.value=t.min),n.default.each(this.components,function(t,i){"function"==typeof i.update&&i.update(e)}),this.set(this.value),this._trigger("update"),this.updating=!1}},{key:"get",value:function(){var t=[];if(n.default.each(this.pointer,function(e,i){t[e]=i.get()}),this.options.range)return t;if(t[0]===this.options.min&&("string"==typeof this.options.replaceFirst&&(t[0]=this.options.replaceFirst),"object"===a(this.options.replaceFirst)))for(var e in this.options.replaceFirst)Object.hasOwnProperty(this.options.replaceFirst,e)&&(t[0]=e);return t[0]}},{key:"set",value:function(t){if(this.options.range){if("number"==typeof t&&(t=[t]),!n.default.isArray(t))return;n.default.each(this.pointer,function(e,i){i.set(t[e])})}else this.p1.set(t);this.value=t}},{key:"val",value:function(t){return t?(this.set(t),this):this.get()}},{key:"setInterval",value:function(t,e){this.min=t,this.max=e,this.interval=e-t}},{key:"enable",value:function(){return this.disabled=!1,this.$wrap.removeClass(this.namespace+"_disabled"),this._trigger("enable"),this}},{key:"disable",value:function(){return this.disabled=!0,this.$wrap.addClass(this.namespace+"_disabled"),this._trigger("disable"),this}},{key:"destroy",value:function(){n.default.each(this.pointer,function(t,e){e.destroy()}),this.$wrap.destroy(),this._trigger("destroy")}}],[{key:"registerComponent",value:function(t,e){c[t]=e}},{key:"setDefaults",value:function(t){n.default.extend(r,n.default.isPlainObject(t)&&t)}}]),t}();d.registerComponent("scale",l),d.registerComponent("selected",h),d.registerComponent("tip",p),function(){var t=(0,n.default)(document);t.on("asRange::ready",function(e,i){var s=void 0,a={keys:{UP:38,DOWN:40,LEFT:37,RIGHT:39,RETURN:13,ESCAPE:27,BACKSPACE:8,SPACE:32},map:{},bound:!1,press:function(t){var e=t.keyCode||t.which;if(e in a.map&&"function"==typeof a.map[e])return a.map[e](t),!1},attach:function(e){var i=void 0,s=void 0;for(i in e)e.hasOwnProperty(i)&&((s=i.toUpperCase())in a.keys?a.map[a.keys[s]]=e[i]:a.map[s]=e[i]);a.bound||(a.bound=!0,t.bind("keydown",a.press))},detach:function(){a.bound=!1,a.map={},t.unbind("keydown",a.press)}};!0===i.options.keyboard&&n.default.each(i.pointer,function(t,e){s=i.options.step?i.options.step:1;var n=function(){var t=e.value;e.set(t-s)},o=function(){var t=e.value;e.set(t+s)};e.$element.attr("tabindex","0").on("focus",function(){return a.attach({left:n,right:o}),!1}).on("blur",function(){return a.detach(),!1})})})}();var f={version:"0.3.4"},v="asRange",m=n.default.fn.asRange;n.default.fn.asRange=s,n.default.asRange=n.default.extend({setDefaults:d.setDefaults,noConflict:function(){return n.default.fn.asRange=m,s}},f)});
9
- //# sourceMappingURL=jquery-asRange.min.js.map
6
  * Released under the LGPL-3.0 license
7
  */
8
  !function(t,e){if("function"==typeof define&&define.amd)define(["jquery"],e);else if("undefined"!=typeof exports)e(require("jquery"));else{var i={exports:{}};e(t.jQuery),t.jqueryAsRangeEs=i.exports}}(this,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=t.originalEvent;return e.touches&&e.touches.length&&e.touches[0]&&(e=e.touches[0]),e}function s(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];if("string"==typeof t){var a=t;if(/^_/.test(a))return!1;if(!(/^(get)$/.test(a)||"val"===a&&0===i.length))return this.each(function(){var t=n.default.data(this,v);t&&"function"==typeof t[a]&&t[a].apply(t,i)});var o=this.first().data(v);if(o&&"function"==typeof o[a])return o[a].apply(o,i)}return this.each(function(){(0,n.default)(this).data(v)||(0,n.default)(this).data(v,new d(this,t))})}var n=function(t){return t&&t.__esModule?t:{default:t}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),r={namespace:"asRange",skin:null,max:100,min:0,value:null,step:10,limit:!0,range:!1,direction:"h",keyboard:!0,replaceFirst:!1,tip:!0,scale:!0,format:function(t){return t}},u=function(){function t(i,s,a){e(this,t),this.$element=i,this.uid=s,this.parent=a,this.options=n.default.extend(!0,{},this.parent.options),this.direction=this.options.direction,this.value=null,this.classes={active:this.parent.namespace+"-pointer_active"}}return o(t,[{key:"mousedown",value:function(t){var e=this.parent.direction.axis,s=this.parent.direction.position,a=this.parent.$wrap.offset();this.$element.trigger(this.parent.namespace+"::moveStart",this),this.data={},this.data.start=t[e],this.data.position=t[e]-a[s];var o=this.parent.getValueFromPosition(this.data.position);return this.set(o),n.default.each(this.parent.pointer,function(t,e){e.deactive()}),this.active(),this.mousemove=function(t){var s=i(t),n=this.parent.getValueFromPosition(this.data.position+(s[e]||this.data.start)-this.data.start);return this.set(n),t.preventDefault(),!1},this.mouseup=function(){return(0,n.default)(document).off(".asRange mousemove.asRange touchend.asRange mouseup.asRange touchcancel.asRange"),this.$element.trigger(this.parent.namespace+"::moveEnd",this),!1},(0,n.default)(document).on("touchmove.asRange mousemove.asRange",n.default.proxy(this.mousemove,this)).on("touchend.asRange mouseup.asRange",n.default.proxy(this.mouseup,this)),!1}},{key:"active",value:function(){this.$element.addClass(this.classes.active)}},{key:"deactive",value:function(){this.$element.removeClass(this.classes.active)}},{key:"set",value:function(t){this.value!==t&&(this.parent.step&&(t=this.matchStep(t)),!0===this.options.limit?t=this.matchLimit(t):(t<=this.parent.min&&(t=this.parent.min),t>=this.parent.max&&(t=this.parent.max)),this.value=t,this.updatePosition(),this.$element.focus(),this.$element.trigger(this.parent.namespace+"::move",this))}},{key:"updatePosition",value:function(){var t={};t[this.parent.direction.position]=this.getPercent()+"%",this.$element.css(t)}},{key:"getPercent",value:function(){return(this.value-this.parent.min)/this.parent.interval*100}},{key:"get",value:function(){return this.value}},{key:"matchStep",value:function(t){var e=this.parent.step,i=e.toString().split(".")[1];return t=Math.round(t/e)*e,i&&(t=t.toFixed(i.length)),parseFloat(t)}},{key:"matchLimit",value:function(t){var e=void 0,i=void 0,s=this.parent.pointer;return e=1===this.uid?this.parent.min:s[this.uid-2].value,i=s[this.uid]&&null!==s[this.uid].value?s[this.uid].value:this.parent.max,t<=e&&(t=e),t>=i&&(t=i),t}},{key:"destroy",value:function(){this.$element.off(".asRange"),this.$element.remove()}}]),t}(),l={defaults:{scale:{valuesNumber:3,gap:1,grid:5}},init:function(t){var e=n.default.extend({},this.defaults,t.options.scale).scale;e.values=[],e.values.push(t.min);for(var i=(t.max-t.min)/(e.valuesNumber-1),s=1;s<=e.valuesNumber-2;s++)e.values.push(i*s);e.values.push(t.max);var a={scale:t.namespace+"-scale",lines:t.namespace+"-scale-lines",grid:t.namespace+"-scale-grid",inlineGrid:t.namespace+"-scale-inlineGrid",values:t.namespace+"-scale-values"},o=e.values.length,r=((e.grid-1)*(e.gap+1)+e.gap)*(o-1)+o,u=100/(r-1),l=100/(o-1);this.$scale=(0,n.default)("<div></div>").addClass(a.scale),this.$lines=(0,n.default)("<ul></ul>").addClass(a.lines),this.$values=(0,n.default)("<ul></ul>").addClass(a.values);for(var h=0;h<r;h++){(0===h||h===r||h%((r-1)/(o-1))==0?(0,n.default)('<li class="'+a.grid+'"></li>'):h%e.grid==0?(0,n.default)('<li class="'+a.inlineGrid+'"></li>'):(0,n.default)("<li></li>")).css({left:u*h+"%"}).appendTo(this.$lines)}for(var p=0;p<o;p++)(0,n.default)("<li><span>"+e.values[p]+"</span></li>").css({left:l*p+"%"}).appendTo(this.$values);this.$lines.add(this.$values).appendTo(this.$scale),this.$scale.appendTo(t.$wrap)},update:function(t){this.$scale.remove(),this.init(t)}},h={defaults:{},init:function(t){var e=this;if(this.$arrow=(0,n.default)("<span></span>").appendTo(t.$wrap),this.$arrow.addClass(t.namespace+"-selected"),!1===t.options.range&&t.p1.$element.on(t.namespace+"::move",function(t,i){e.$arrow.css({left:0,width:i.getPercent()+"%"})}),!0===t.options.range){var i=function(){var i=t.p2.getPercent()-t.p1.getPercent(),s=void 0;i>=0?s=t.p1.getPercent():(i=-i,s=t.p2.getPercent()),e.$arrow.css({left:s+"%",width:i+"%"})};t.p1.$element.on(t.namespace+"::move",i),t.p2.$element.on(t.namespace+"::move",i)}}},p={defaults:{active:"always"},init:function(t){var e=this,i=n.default.extend({},this.defaults,t.options.tip);this.opts=i,this.classes={tip:t.namespace+"-tip",show:t.namespace+"-tip-show"},n.default.each(t.pointer,function(i,s){var o=(0,n.default)("<span></span>").appendTo(t.pointer[i].$element);o.addClass(e.classes.tip),"onMove"===e.opts.active&&(o.css({display:"none"}),s.$element.on(t.namespace+"::moveEnd",function(){return e.hide(o),!1}).on(t.namespace+"::moveStart",function(){return e.show(o),!1})),s.$element.on(t.namespace+"::move",function(){var e=void 0;if(e=t.options.range?t.get()[i]:t.get(),"function"==typeof t.options.format)if(t.options.replaceFirst&&"number"!=typeof e){if("string"==typeof t.options.replaceFirst&&(e=t.options.replaceFirst),"object"===a(t.options.replaceFirst))for(var s in t.options.replaceFirst)Object.hasOwnProperty(t.options.replaceFirst,s)&&(e=t.options.replaceFirst[s])}else e=t.options.format(e);return o.text(e),!1})})},show:function(t){t.addClass(this.classes.show),t.css({display:"block"})},hide:function(t){t.removeClass(this.classes.show),t.css({display:"none"})}},c={},d=function(){function t(i,s){var a=this;e(this,t);var o={};if(this.element=i,this.$element=(0,n.default)(i),this.$element.is("input")){var u=this.$element.val();"string"==typeof u&&(o.value=u.split(",")),n.default.each(["min","max","step"],function(t,e){var i=parseFloat(a.$element.attr(e));isNaN(i)||(o[e]=i)}),this.$element.css({display:"none"}),this.$wrap=(0,n.default)("<div></div>"),this.$element.after(this.$wrap)}else this.$wrap=this.$element;if(this.options=n.default.extend({},r,s,this.$element.data(),o),this.namespace=this.options.namespace,this.components=n.default.extend(!0,{},c),this.options.range&&(this.options.replaceFirst=!1),this.value=this.options.value,null===this.value&&(this.value=this.options.min),this.options.range?n.default.isArray(this.value)?1===this.value.length&&(this.value[1]=this.value[0]):this.value=[this.value,this.value]:n.default.isArray(this.value)&&(this.value=this.value[0]),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step,this.interval=this.max-this.min,this.initialized=!1,this.updating=!1,this.disabled=!1,"v"===this.options.direction?this.direction={axis:"pageY",position:"top"}:this.direction={axis:"pageX",position:"left"},this.$wrap.addClass(this.namespace),this.options.skin&&this.$wrap.addClass(this.namespace+"_"+this.options.skin),this.max<this.min||this.step>=this.interval)throw new Error("error options about max min step");this.init()}return o(t,[{key:"init",value:function(){this.$wrap.append('<div class="'+this.namespace+'-bar" />'),this.buildPointers(),this.components.selected.init(this),!1!==this.options.tip&&this.components.tip.init(this),!1!==this.options.scale&&this.components.scale.init(this),this.set(this.value),this.bindEvents(),this._trigger("ready"),this.initialized=!0}},{key:"_trigger",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];var n=[this].concat(i);this.$element.trigger(this.namespace+"::"+t,n);var a="on"+(t=t.replace(/\b\w+\b/g,function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}));"function"==typeof this.options[a]&&this.options[a].apply(this,i)}},{key:"buildPointers",value:function(){this.pointer=[];var t=1;this.options.range&&(t=2);for(var e=1;e<=t;e++){var i=(0,n.default)('<div class="'+this.namespace+"-pointer "+this.namespace+"-pointer-"+e+'"></div>').appendTo(this.$wrap),s=new u(i,e,this);this.pointer.push(s)}this.p1=this.pointer[0],this.options.range&&(this.p2=this.pointer[1])}},{key:"bindEvents",value:function(){var t=this,e=this;this.$wrap.on("touchstart.asRange mousedown.asRange",function(t){if(!0!==e.disabled){if((t=i(t)).which?3===t.which:2===t.button)return!1;var s=e.$wrap.offset(),n=t[e.direction.axis]-s[e.direction.position];return e.getAdjacentPointer(n).mousedown(t),!1}}),this.$element.is("input")&&this.$element.on(this.namespace+"::change",function(){var e=t.get();t.$element.val(e)}),n.default.each(this.pointer,function(i,s){s.$element.on(t.namespace+"::move",function(){return e.value=e.get(),!(!e.initialized||e.updating)&&(e._trigger("change",e.value),!1)})})}},{key:"getValueFromPosition",value:function(t){return t>0?this.min+t/this.getLength()*this.interval:0}},{key:"getAdjacentPointer",value:function(t){var e=this.getValueFromPosition(t);if(this.options.range){var i=this.p1.value,s=this.p2.value,n=Math.abs(i-s);return i<=s?e>i+n/2?this.p2:this.p1:e>s+n/2?this.p1:this.p2}return this.p1}},{key:"getLength",value:function(){return"v"===this.options.direction?this.$wrap.height():this.$wrap.width()}},{key:"update",value:function(t){var e=this;this.updating=!0,n.default.each(["max","min","step","limit","value"],function(i,s){t[s]&&(e[s]=t[s])}),(t.max||t.min)&&this.setInterval(t.min,t.max),t.value||(this.value=t.min),n.default.each(this.components,function(t,i){"function"==typeof i.update&&i.update(e)}),this.set(this.value),this._trigger("update"),this.updating=!1}},{key:"get",value:function(){var t=[];if(n.default.each(this.pointer,function(e,i){t[e]=i.get()}),this.options.range)return t;if(t[0]===this.options.min&&("string"==typeof this.options.replaceFirst&&(t[0]=this.options.replaceFirst),"object"===a(this.options.replaceFirst)))for(var e in this.options.replaceFirst)Object.hasOwnProperty(this.options.replaceFirst,e)&&(t[0]=e);return t[0]}},{key:"set",value:function(t){if(this.options.range){if("number"==typeof t&&(t=[t]),!n.default.isArray(t))return;n.default.each(this.pointer,function(e,i){i.set(t[e])})}else this.p1.set(t);this.value=t}},{key:"val",value:function(t){return t?(this.set(t),this):this.get()}},{key:"setInterval",value:function(t,e){this.min=t,this.max=e,this.interval=e-t}},{key:"enable",value:function(){return this.disabled=!1,this.$wrap.removeClass(this.namespace+"_disabled"),this._trigger("enable"),this}},{key:"disable",value:function(){return this.disabled=!0,this.$wrap.addClass(this.namespace+"_disabled"),this._trigger("disable"),this}},{key:"destroy",value:function(){n.default.each(this.pointer,function(t,e){e.destroy()}),this.$wrap.destroy(),this._trigger("destroy")}}],[{key:"registerComponent",value:function(t,e){c[t]=e}},{key:"setDefaults",value:function(t){n.default.extend(r,n.default.isPlainObject(t)&&t)}}]),t}();d.registerComponent("scale",l),d.registerComponent("selected",h),d.registerComponent("tip",p),function(){var t=(0,n.default)(document);t.on("asRange::ready",function(e,i){var s=void 0,a={keys:{UP:38,DOWN:40,LEFT:37,RIGHT:39,RETURN:13,ESCAPE:27,BACKSPACE:8,SPACE:32},map:{},bound:!1,press:function(t){var e=t.keyCode||t.which;if(e in a.map&&"function"==typeof a.map[e])return a.map[e](t),!1},attach:function(e){var i=void 0,s=void 0;for(i in e)e.hasOwnProperty(i)&&((s=i.toUpperCase())in a.keys?a.map[a.keys[s]]=e[i]:a.map[s]=e[i]);a.bound||(a.bound=!0,t.bind("keydown",a.press))},detach:function(){a.bound=!1,a.map={},t.unbind("keydown",a.press)}};!0===i.options.keyboard&&n.default.each(i.pointer,function(t,e){s=i.options.step?i.options.step:1;var n=function(){var t=e.value;e.set(t-s)},o=function(){var t=e.value;e.set(t+s)};e.$element.attr("tabindex","0").on("focus",function(){return a.attach({left:n,right:o}),!1}).on("blur",function(){return a.detach(),!1})})})}();var f={version:"0.3.4"},v="asRange",m=n.default.fn.asRange;n.default.fn.asRange=s,n.default.asRange=n.default.extend({setDefaults:d.setDefaults,noConflict:function(){return n.default.fn.asRange=m,s}},f)});
 
public/assets/js/jquery.validate.min.js DELETED
@@ -1,4 +0,0 @@
1
- /*! jQuery Validation Plugin - v1.16.0 - 12/2/2016
2
- * http://jqueryvalidation.org/
3
- * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
4
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return!c.settings.submitHandler||(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(null!=j&&null!=j.form){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr.pseudos||a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){!this.form&&this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]);var c=a.data(this.form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]),!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=b.hasAttribute("contenteditable")?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if("function"==typeof f.normalizer){if(i=f.normalizer.call(b,i),"string"!=typeof i)throw new TypeError("The normalizer should return a string value.");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j instanceof TypeError&&(j.message+=". Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};return a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a});
 
 
 
 
public/assets/js/map-location.js DELETED
@@ -1,27 +0,0 @@
1
- var mapLocationAutocomplete;
2
-
3
- function metformMapAutoComplete() {
4
-
5
- var select = document.querySelectorAll('.mf-input-map-location');
6
-
7
- select.forEach(function(v, i){
8
- mapLocationAutocomplete = new google.maps.places.Autocomplete(
9
- select[i], {types: ['geocode']});
10
- });
11
-
12
-
13
- }
14
-
15
- function mfgeolocate() {
16
- if (navigator.geolocation) {
17
- navigator.geolocation.getCurrentPosition(function(position) {
18
- var geolocation = {
19
- lat: position.coords.latitude,
20
- lng: position.coords.longitude
21
- };
22
- var circle = new google.maps.Circle(
23
- {center: geolocation, radius: position.coords.accuracy});
24
- mapLocationAutocomplete.setBounds(circle.getBounds());
25
- });
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/assets/js/submission.js DELETED
@@ -1 +0,0 @@
1
- var onloadMetFormCallback=function(){jQuery(".recaptcha_site_key").each(function(e){var t=jQuery(this),a=t.parents(".metform-form-content");void 0!==a.data("site-key")&&""!=a.data("site-key")&&(t.attr("id",t.attr("id")+"_"+e),grecaptcha.render("recaptcha_site_key_"+e,{sitekey:a.data("site-key")}))})};function metformSubmision(e){var t;(t=jQuery).validator.addMethod("regx",function(e,t,a){return new RegExp(a).test(e)},t.validator.format("Please match the expression {0}")),t.validator.addMethod("wordLength",function(e,t,a){var i=e.trim().split(/\s+/),n=a.min,s=a.max;return!n&&s&&(n=1),i.filter(()=>i.length>=n&&(!s||i.length<=s)).length},t.validator.format("Please match word length.")),jQuery.validator.addMethod("ratingValidate",function(e,a,i){return!t(a).prop("required")||t(a).parents(".mf-input-wrapper").find(".mf-input-rating li.selected").length},t.validator.format(mf_submission.default_required_message)),t.validator.addClassRules(".mf-input",{required:!0}),t(document).on("validation.mfForm",function(e,a){t(a).validate({ignore:[],rules:{"mf-rating":{ratingValidate:!0}},errorPlacement:function(e,t){t.parents(".mf-input-wrapper").append(e)},highlight:function(e){t(e).parents(".mf-input-wrapper").addClass("mf-field-error")},unhighlight:function(e){t(e).parents(".mf-input-wrapper").removeClass("mf-field-error")}}),t(a).find(".mf-input-do-validate").each(function(){var e=t(this).data("validation"),a=t(this).attr("min"),i=t(this).attr("max"),n={messages:{required:mf_submission.default_required_message,email:mf_submission.default_required_message,url:mf_submission.default_required_message,range:mf_submission.default_required_message,max:mf_submission.default_required_message,min:mf_submission.default_required_message}};void 0!==e&&""!=e&&("none"!==e.validation_type&&(n.required=!0,n.messages.required=e.warning_message),"by_character_length"===e.validation_type?(e.min_length&&(n.minlength=e.min_length,n.messages.minlength=e.warning_message),e.max_length&&(n.maxlength=e.max_length,n.messages.maxlength=e.warning_message),n.messages.email=e.warning_message):"by_word_length"===e.validation_type?(n.wordLength={},n.messages.wordLength=e.warning_message,e.min_length&&(n.wordLength.min=e.min_length),e.max_length&&(n.wordLength.max=e.max_length),n.messages.email=e.warning_message):"by_expresssion_based"===e.validation_type&&(n.messages.regx=e.warning_message,e.expression&&t(this).rules("add",{regx:e.expression}),n.messages.email=e.warning_message)),(a||i)&&(n.range=[a,i]),n.required=!0,t(this).rules("add",n)})}),t(document).on("submit",".metform-form-content",async function(e){e.preventDefault();var a=t(this);if(t(document).trigger("validation.mfForm",t(this)),t(this).valid()&&!t(this).hasClass("mf-form-submitting")){var i=t(this),n="";i.find('.mf-input[type="tel"]').each(function(){var e,a=t(this),i=a.val();e=a.siblings(".iti__flag-container").find(".iti__selected-dial-code").text(),a.val(e+i)}),i.find(".g-recaptcha-response-v3").length&&(n="undefined"!=grecaptcha?await grecaptcha.execute(i.data("site-key"),{action:"mf_recaptcha_v3"}):"",i.find(".g-recaptcha-response-v3").val(n));var s=i.parent().find(".metform-msg"),r=i.attr("action"),o=new FormData(this),d=i.attr("data-nonce");s.length>1&&i.parent().find(".metform-inx").remove(),t.ajax({url:r,type:"POST",dataType:"JSON",data:o,processData:!1,contentType:!1,headers:{"X-WP-Nonce":d},beforeSend:function(){a.addClass("mf-form-submitting")},success:function(e){var n=Number(e.status),r="";if(t.each(e.error,function(e,t){r+=t+"<br>"}),r.replace(/<br>+$/,""),1==n?(s.css("display","block"),s.removeClass("attr-alert-warning"),s.addClass("attr-alert-success"),s.html(e.data.message),setTimeout(function(){s.css("display","none")},8e3),i.trigger("reset"),i.find(".metform-step-item").removeClass("active prev next").first().addClass("active").next().addClass("next"),i.find(".elementor-top-section").first().addClass("active").find(".metform-btn").attr("type","submit").end().siblings().removeClass("active"),i.find(".elementor-section-wrap").css({transform:"translateX(0)"}),i.find(".mf-input-select, .mf-input-multiselect").trigger("change"),i.find(".mf-input-rating > li").removeClass("selected").first().addClass("selected"),i.find(".mf-input-rating").next().val("").trigger("change"),i.find(".mf-input-file-upload").val("").parent().find(".mf-file-name span").html("No file chosen."),i.find(".mf-input-like-dislike").val("").trigger("change"),i.find(".mf-parent-like-dislike a").removeClass("green").removeClass("red"),i.find(".asRange > .asRange-pointer").css("left","0%"),i.find(".asRange > .asRange-selected").css({left:"0%",width:"0%"}),i.find(".mf-refresh-captcha").trigger("click")):(s.css("display","block"),s.removeClass("attr-alert-success"),s.addClass("attr-alert-warning"),s.html(r),setTimeout(function(){s.css("display","none")},8e3)),1==n&&""!=e.data.hide_form&&setTimeout(function(){i.css("display","none")},2e3),"stripe"==e.data.store["mf-payment-method"]){if(res=e.data.payment_data,!res.keys||""==res.keys)return void alert("Please set your Stripe Keys in form settings.");var o=StripeCheckout.configure({key:res.keys,image:res.image_url,locale:"auto",token:function(t){if(t.id){res.stripe_token=t.id;var a={sandbox:res.sandbox};jQuery.ajax({data:a,type:"get",url:e.data.ajax_stripe+"&token="+t.id,headers:{"X-WP-Nonce":d},success:function(e){e.status?(console.log(e.redirect_url),window.location.href=e.redirect_url):alert(e)}})}else alert("Sorry!! Payment token invalid")}});return o.open({name:String(res.name_post),description:" Form No.: "+String(res.description),amount:100*Number(res.amount),currency:res.currency_code}),void window.addEventListener("popstate",function(){o.close()})}1==n&&""!=e.data.redirect_to&&setTimeout(function(){window.location.href=e.data.redirect_to},1500),a.removeClass("mf-form-submitting")}})}})}jQuery(document).ready(function(e){(e("body").hasClass("single-metform-form")||e(".mf-form-shortcode").length)&&void 0!==metformSubmision&&metformSubmision()});
 
public/assets/js/summary.js DELETED
@@ -1,63 +0,0 @@
1
- jQuery(document).ready(function($) {
2
- 'use strict'
3
-
4
- $.fn.extend({
5
- mfSerializeArray: function () {
6
- var brokenSerialization = $.fn.serializeArray.apply(this);
7
- var checkboxValues = $(this).find('input[type=checkbox], input[type=radio]').map(function () {
8
- return { 'name': this.name, 'value': this.checked };
9
- }).get();
10
- var checkboxKeys = $.map(brokenSerialization, function (element) { return element.name; });
11
- var onlyCheckboxes = $.grep(checkboxValues, function (element) {
12
- return $.inArray(element.name, checkboxKeys) == -1;
13
- });
14
-
15
- return $.merge(brokenSerialization, onlyCheckboxes);
16
- }
17
- });
18
-
19
- function metFormData(){
20
- var forms = $('.metform-form-content');
21
- if(forms.length > 0){
22
- forms.each(function(i, v){
23
- var form = $(this),
24
- elSummary = form.find('.mf-input.mf-input-summary.metform-entry-data'),
25
- elTbody = elSummary.find('tbody');
26
-
27
- var rawFormData = form.mfSerializeArray();
28
- rawFormData.shift();
29
-
30
- $.each(rawFormData, function(index, value){
31
- elTbody.append('<tr class="mf-data-label"><td colspan="2"><strong>'+value.name+'</strong></td></tr>');
32
- elTbody.append('<tr class="mf-data-value"><td class="mf-value-space">&nbsp;</td><td class="value-'+value.name+'">'+value.value+'</td></tr>');
33
- });
34
-
35
- form.on('change keyup paste', 'input, select, textarea', delay( function (e){
36
- var rawFormData = form.mfSerializeArray();
37
- rawFormData.shift();
38
-
39
- $.each(rawFormData, function(index, value){
40
- let elCurrent = elTbody.find(".value-"+value.name);
41
- elCurrent.html(value.value);
42
- });
43
-
44
- }, 200));
45
- });
46
- }
47
- }
48
-
49
-
50
- function delay(callback, ms) {
51
- var timer = 0;
52
- return function () {
53
- var context = this, args = arguments;
54
- clearTimeout(timer);
55
- timer = setTimeout(function () {
56
- callback.apply(context, args);
57
- }, ms || 0);
58
- };
59
- }
60
-
61
- metFormData();
62
-
63
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ataurr, wpmet, emrnco, prappo_p, atiqsu, easin55474
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.4
6
- Stable tag: 1.2.3
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -221,6 +221,11 @@ Connect with Gmail, Slack, Mailchimp, and many more.
221
 
222
 
223
  == Changelog ==
 
 
 
 
 
224
  Version v1.2.3
225
  New: .pot file added
226
  New: forms can be now exported & imported using elementor's json files.
@@ -304,8 +309,7 @@ Added widget area to edit save use from same page.
304
 
305
 
306
  == Upgrade Notice ==
307
-
308
-
309
 
310
  == Installation ==
311
 
@@ -324,4 +328,3 @@ eg. This plugin requires an elementor builder.
324
 
325
  Coming soon...
326
  But you can see this video https://www.youtube.com/watch?v=rvawKRgLC14
327
-
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.4
6
+ Stable tag: 1.3.0-beta1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
221
 
222
 
223
  == Changelog ==
224
+ Version 1.3.0-beta1
225
+ New: All form widgets are supported by ReactJS
226
+ Huge optimization
227
+ ""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://help.wpmet.com/""
228
+
229
  Version v1.2.3
230
  New: .pot file added
231
  New: forms can be now exported & imported using elementor's json files.
309
 
310
 
311
  == Upgrade Notice ==
312
+ 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://help.wpmet.com/
 
313
 
314
  == Installation ==
315
 
328
 
329
  Coming soon...
330
  But you can see this video https://www.youtube.com/watch?v=rvawKRgLC14
 
traits/button-controls.php CHANGED
@@ -213,7 +213,6 @@ trait Button_Controls{
213
  array(
214
  'name' => 'mf_btn_bg_color',
215
  'selector' => '{{WRAPPER}} .metform-btn',
216
- 'default' => '#337ab7',
217
  )
218
  );
219
 
@@ -484,4 +483,4 @@ trait Button_Controls{
484
  )
485
  );
486
  }
487
- }
213
  array(
214
  'name' => 'mf_btn_bg_color',
215
  'selector' => '{{WRAPPER}} .metform-btn',
 
216
  )
217
  );
218
 
483
  )
484
  );
485
  }
486
+ }
traits/common-controls.php CHANGED
@@ -77,6 +77,7 @@ trait Common_Controls{
77
  'label' => esc_html__( 'Name : ', 'metform' ),
78
  'type' => Controls_Manager::HIDDEN,
79
  'default' => $this->get_name(),
 
80
  ]
81
  );
82
  }
@@ -90,6 +91,7 @@ trait Common_Controls{
90
  'default' => $this->get_name(),
91
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
92
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word. Name must be different.', 'metform'),
 
93
  ]
94
  );
95
  }
@@ -102,9 +104,9 @@ trait Common_Controls{
102
  'type' => Controls_Manager::TEXT,
103
  'default' => $this->get_title(),
104
  'title' => esc_html__( 'Enter here place holder', 'metform' ),
105
- ]
106
- );
107
- }
108
 
109
  $this->add_control(
110
  'mf_input_help_text',
@@ -201,26 +203,24 @@ trait Common_Controls{
201
  'label' => esc_html__( 'Warning message', 'metform' ),
202
  'type' => Controls_Manager::TEXT,
203
  'placeholder' => esc_html__( 'Warning message', 'metform' ),
204
- 'default' => esc_html__( 'Something went wrong.', 'metform' ),
205
- 'condition' => [
206
- 'mf_input_validation_type!' => 'none',
207
- ],
 
 
 
 
 
 
 
 
 
 
 
 
208
  ]
209
  );
210
-
211
- // $this->add_control(
212
- // 'mf_input_readonly_status',
213
- // [
214
- // 'label' => esc_html__( 'Read Only', 'metform' ),
215
- // 'type' => Controls_Manager::SWITCHER,
216
- // 'readonly' => esc_html__( 'On', 'metform' ),
217
- // '' => esc_html__( 'Off', 'metform' ),
218
- // 'return_value' => 'readonly',
219
- // 'default' => '',
220
- // 'description' => esc_html__('Want to make readonly input field? User will be unable to input here. Just user can see it.', 'metform'),
221
- // ]
222
- // );
223
-
224
  }
225
 
226
  protected function input_general_control(){
@@ -293,11 +293,11 @@ trait Common_Controls{
293
  ],
294
  'selectors' => [
295
  '{{WRAPPER}} .mf-input-label' => 'width: {{SIZE}}{{UNIT}};',
296
- '{{WRAPPER}} .mf-input-wrapper .mf-input' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
297
  '{{WRAPPER}} .mf-input-wrapper > .iti' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
298
  '{{WRAPPER}} .range-slider' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
299
- '{{WRAPPER}} .mf-input-wrapper .flatpickr-calendar, {{WRAPPER}} .mf-input-wrapper .flatpickr-calendar.hasTime.noCalendar' => 'left: {{SIZE}}{{UNIT}} !important',
300
- '{{WRAPPER}} .mf-input-wrapper .select2-container' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px) !important',
301
  ],
302
  'condition' => [
303
  'mf_input_label_display_property' => 'inline-block',
@@ -367,45 +367,53 @@ trait Common_Controls{
367
  $this->add_control(
368
  'mf_input_required_indicator_color',
369
  [
370
- 'label' => esc_html__( 'Required indicator color : ', 'metform' ),
371
  'type' => Controls_Manager::COLOR,
372
  'scheme' => [
373
  'type' => Scheme_Color::get_type(),
374
  'value' => Scheme_Color::COLOR_1,
375
  ],
376
- 'default' => '#FF0000',
377
  'selectors' => [
378
- '{{WRAPPER}} .mf-input-label .mf-input-required-indicator, {{WRAPPER}} .mf-input-wrapper .error,{{WRAPPER}} .mf-field-error .mf-input-calculation-total, {{WRAPPER}} .mf-field-error .mf-input-rating .star .mf-star' => 'color: {{VALUE}}',
379
- '{{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-input, {{WRAPPER}} .mf-input-wrapper.mf-field-error .select2-container .select2-selection--multiple .select2-selection__rendered' => 'border-color: {{VALUE}}',
380
-
381
- '{{WRAPPER}} .mf-input-wrapper.mf-field-error .metform-btn' => 'background-color: {{VALUE}}',
382
-
383
- '{{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-input-switch .mf-input-control-label::before' => 'border: 1px solid {{VALUE}}'
384
  ],
385
- // 'condition' => [
386
- // 'mf_input_required' => 'yes',
387
- // ],
 
 
 
 
 
 
 
 
 
 
 
 
388
  ]
389
  );
390
 
391
  }
392
 
393
  protected function input_controls($param = []){
394
-
395
  $this->add_responsive_control(
396
  'mf_input_padding',
397
  [
398
  'label' => esc_html__( 'Padding', 'metform' ),
399
  'type' => Controls_Manager::DIMENSIONS,
400
- 'size_units' => [ 'px', '%', 'em' ],
401
  'selectors' => [
402
  '{{WRAPPER}} .mf-input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
403
- '{{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
404
- '{{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-input-wrapper .range-slider' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important',
405
  '{{WRAPPER}} .mf-input-calculation-total' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
 
 
406
  ],
407
  ]
408
  );
 
409
  $this->add_responsive_control(
410
  'mf_input_margin',
411
  [
@@ -414,15 +422,13 @@ trait Common_Controls{
414
  'size_units' => [ 'px', '%', 'em' ],
415
  'selectors' => [
416
  '{{WRAPPER}} .mf-input' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
417
- '{{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--open .select2-dropdown--below' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
418
- '{{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-input-wrapper .range-slider' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
419
  '{{WRAPPER}} .mf-input-calculation-total' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
 
420
  ],
421
  ]
422
  );
423
 
424
  if(!in_array('ONLY_BOX_SHADOW', $param)){
425
-
426
  $this->start_controls_tabs( 'mf_input_tabs_style' );
427
 
428
  $this->start_controls_tab(
@@ -447,13 +453,16 @@ trait Common_Controls{
447
  '{{WRAPPER}} .irs--round .irs-handle' => 'border-color: {{VALUE}}',
448
  '{{WRAPPER}} .irs--round .irs-from:before, {{WRAPPER}} .irs--round .irs-to:before, {{WRAPPER}} .irs--round .irs-single:before' => 'border-top-color: {{VALUE}}',
449
 
450
- '{{WRAPPER}} .select2-container--default .select2-selection--single .select2-selection__rendered,{{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-dropdown, {{WRAPPER}} .mf-input-wrapper .select2-container--default ul.select2-results__options .select2-results__option[aria-selected=true], {{WRAPPER}} span.select2-dropdown input, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice, {{WRAPPER}} .select2-container--default .select2-selection--multiple .select2-selection__choice__remove' => 'color: {{VALUE}}',
451
-
452
 
453
- '{{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer:before, {{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer .asRange-tip:before, {{WRAPPER}} .mf-input-wrapper .asRange .asRange-selected' => 'background-color: {{VALUE}}',
454
- '{{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer .asRange-tip' => 'background-color: {{VALUE}}; border-color: {{VALUE}}',
 
 
455
  '{{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-calculation-total' => 'color: {{VALUE}};',
456
  '{{WRAPPER}} .mf-input-file-upload-label svg path' => 'stroke: {{VALUE}}; fill: {{VALUE}};',
 
 
457
  ],
458
  'default' => '#000000',
459
  ]
@@ -466,7 +475,7 @@ trait Common_Controls{
466
  'name' => 'mf_input_background',
467
  'label' => esc_html__( 'Background', 'metform' ),
468
  'types' => [ 'classic', 'gradient' ],
469
- 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option, {{WRAPPER}} span.select2-dropdown, {{WRAPPER}} span.select2-dropdown input, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice, {{WRAPPER}} .select2-container--default .select2-selection--multiple .select2-selection__choice__remove, {{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total',
470
  ]
471
  );
472
  }
@@ -478,7 +487,7 @@ trait Common_Controls{
478
  [
479
  'name' => 'mf_input_border',
480
  'label' => esc_html__( 'Border', 'metform' ),
481
- 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .select2-container--default .select2-results>.select2-results__options, {{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total',
482
  ]
483
  );
484
  }
@@ -505,12 +514,14 @@ trait Common_Controls{
505
  'selectors' => [
506
  '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-dial-code' => 'color: {{VALUE}}',
507
  '{{WRAPPER}} .irs--round .irs-handle:hover' => 'border-color: {{VALUE}}',
 
 
508
 
509
- '{{WRAPPER}} .select2-container--default .select2-selection--single .select2-selection__rendered:hover,{{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:hover, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-dropdown:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default ul.select2-results__options .select2-results__option[aria-selected=true]:hover, {{WRAPPER}} span.select2-dropdown input:hover, {{WRAPPER}} span.select2-dropdown:hover, {{WRAPPER}} span.select2-dropdown input:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:hover .select2-selection__choice__remove,{{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label, {{WRAPPER}} .mf-file-upload-container:hover .mf-image-label, {{WRAPPER}} .mf-input-calculation-total:hover' => 'color: {{VALUE}}',
510
-
511
  '{{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label svg path' => 'stroke:{{VALUE}}; fill: {{VALUE}}',
512
 
513
- '{{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer:hover:before' => 'background-color: {{VALUE}}'
 
 
514
  ],
515
  'default' => '#000000',
516
  ]
@@ -523,19 +534,18 @@ trait Common_Controls{
523
  'name' => 'mf_input_background_hover',
524
  'label' => esc_html__( 'Background', 'metform' ),
525
  'types' => [ 'classic', 'gradient' ],
526
- 'selector' => '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single:hover, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:hover, {{WRAPPER}} span.select2-dropdown:hover, {{WRAPPER}} span.select2-dropdown input:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:hover .select2-selection__choice__remove, {{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:hover',
527
  ]
528
  );
529
  }
530
 
531
  if(!in_array('NO_BORDER', $param)){
532
-
533
  $this->add_group_control(
534
  Group_Control_Border::get_type(),
535
  [
536
  'name' => 'mf_input_border_hover',
537
  'label' => esc_html__( 'Border', 'metform' ),
538
- 'selector' => '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single:hover, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field:hover, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:hover, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered:hover, {{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:hover',
539
  ]
540
  );
541
  }
@@ -563,12 +573,15 @@ trait Common_Controls{
563
  'selectors' => [
564
  '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-dial-code' => 'color: {{VALUE}}',
565
  '{{WRAPPER}} .irs--round .irs-handle:focus' => 'border-color: {{VALUE}}',
 
 
566
 
567
- '{{WRAPPER}} .select2-container--default .select2-selection--single .select2-selection__rendered:focus,{{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:focus, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-dropdown:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default ul.select2-results__options .select2-results__option[aria-selected=true]:focus, {{WRAPPER}} span.select2-dropdown input:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:focus .select2-selection__choice__remove, {{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-file-upload-container:focus .mf-image-label, {{WRAPPER}} .mf-input-calculation-total:focus' => 'color: {{VALUE}};',
568
 
569
  '{{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label svg path' => 'stroke: {{VALUE}}; fill: {{VALUE}};',
570
 
571
- '{{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer:focus:before' => 'background-color: {{VALUE}}'
 
572
  ],
573
  'default' => '#000000',
574
  ]
@@ -582,7 +595,7 @@ trait Common_Controls{
582
  'name' => 'mf_input_background_focus',
583
  'label' => esc_html__( 'Background', 'metform' ),
584
  'types' => [ 'classic', 'gradient' ],
585
- 'selector' => '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single:focus, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:focus, {{WRAPPER}} span.select2-dropdown:focus, {{WRAPPER}} span.select2-dropdown input:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice:focus .select2-selection__choice__remove, {{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:focus',
586
  ]
587
  );
588
 
@@ -595,7 +608,7 @@ trait Common_Controls{
595
  [
596
  'name' => 'mf_input_border_focus',
597
  'label' => esc_html__( 'Border', 'metform' ),
598
- 'selector' => '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single:focus, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field:focus, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option:focus, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered:focus, {{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:focus',
599
  ]
600
  );
601
  }
@@ -605,13 +618,20 @@ trait Common_Controls{
605
 
606
  $this->end_controls_tabs();
607
 
 
 
 
 
 
 
 
608
  $this->add_group_control(
609
  Group_Control_Typography::get_type(),
610
  [
611
  'name' => 'mf_input_typgraphy',
612
  'label' => esc_html__( 'Typography', 'metform' ),
613
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
614
- 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .irs--round .irs-single, {{WRAPPER}} .select2-container--default .select2-selection--single .select2-selection__rendered,{{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-dropdown, {{WRAPPER}} .mf-input-wrapper .select2-container--default ul.select2-results__options .select2-results__option[aria-selected=true], {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .asRange .asRange-pointer .asRange-tip, {{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total',
615
  ]
616
  );
617
 
@@ -640,7 +660,8 @@ trait Common_Controls{
640
  ],
641
  'selectors' => [
642
  '{{WRAPPER}} .mf-input' => 'border-radius: {{SIZE}}{{UNIT}};',
643
- '{{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total' => 'border-radius: {{SIZE}}{{UNIT}};',
 
644
  ],
645
  ]
646
  );
@@ -650,10 +671,9 @@ trait Common_Controls{
650
  [
651
  'name' => 'mf_input_box_shadow',
652
  'label' => esc_html__( 'Box Shadow', 'metform' ),
653
- 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .irs--round .irs-line, {{WRAPPER}} .select2-container, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-dropdown, {{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-input-switch label.mf-input-control-label:before, {{WRAPPER}} .mf-input-wrapper .asRange, {{WRAPPER}} .asRange .asRange-pointer:before, {{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total',
654
  ]
655
  );
656
-
657
  }
658
 
659
  protected function input_place_holder_controls(){
@@ -664,7 +684,7 @@ trait Common_Controls{
664
  'name' => 'mf_input_place_holder_typography',
665
  'label' => esc_html__( 'Typography', 'metform' ),
666
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
667
- 'selector' => '{{WRAPPER}} .text, {{WRAPPER}} .mf-input::placeholder',
668
  ]
669
  );
670
 
@@ -687,6 +707,8 @@ trait Common_Controls{
687
  '{{WRAPPER}} .mf-input::-moz-placeholder' => 'color: {{VALUE}};',
688
  '{{WRAPPER}} .mf-input:-ms-input-placeholder' => 'color: {{VALUE}};',
689
  '{{WRAPPER}} .mf-input:-moz-placeholder' => 'color: {{VALUE}};',
 
 
690
  ],
691
  'default' => '#c9c1c1',
692
  ]
@@ -735,4 +757,4 @@ trait Common_Controls{
735
  }
736
 
737
 
738
- }
77
  'label' => esc_html__( 'Name : ', 'metform' ),
78
  'type' => Controls_Manager::HIDDEN,
79
  'default' => $this->get_name(),
80
+ 'frontend_available' => true,
81
  ]
82
  );
83
  }
91
  'default' => $this->get_name(),
92
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
93
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word. Name must be different.', 'metform'),
94
+ 'frontend_available' => true,
95
  ]
96
  );
97
  }
104
  'type' => Controls_Manager::TEXT,
105
  'default' => $this->get_title(),
106
  'title' => esc_html__( 'Enter here place holder', 'metform' ),
107
+ ]
108
+ );
109
+ }
110
 
111
  $this->add_control(
112
  'mf_input_help_text',
203
  'label' => esc_html__( 'Warning message', 'metform' ),
204
  'type' => Controls_Manager::TEXT,
205
  'placeholder' => esc_html__( 'Warning message', 'metform' ),
206
+ 'default' => esc_html__( 'This field is required.', 'metform' ),
207
+ 'conditions' => [
208
+ 'relation' => 'or',
209
+ 'terms' => [
210
+ [
211
+ 'name' => 'mf_input_required',
212
+ 'operator' => '===',
213
+ 'value' => 'yes',
214
+ ],
215
+ [
216
+ 'name' => 'mf_input_validation_type',
217
+ 'operator' => '!=',
218
+ 'value' => 'none',
219
+ ],
220
+ ],
221
+ ],
222
  ]
223
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  }
225
 
226
  protected function input_general_control(){
293
  ],
294
  'selectors' => [
295
  '{{WRAPPER}} .mf-input-label' => 'width: {{SIZE}}{{UNIT}};',
296
+ '{{WRAPPER}} .mf-input-wrapper .mf-input:not(.mf-left-parent)' => 'display: inline-block; width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
297
  '{{WRAPPER}} .mf-input-wrapper > .iti' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
298
  '{{WRAPPER}} .range-slider' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
299
+ '{{WRAPPER}} .mf-input-wrapper .flatpickr-wrapper' => 'display: inline-block; width: calc(100% - {{SIZE}}{{UNIT}} - 7px);',
300
+ '{{WRAPPER}} .mf-form-wrapper label' => 'margin-right: 4px;',
301
  ],
302
  'condition' => [
303
  'mf_input_label_display_property' => 'inline-block',
367
  $this->add_control(
368
  'mf_input_required_indicator_color',
369
  [
370
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
371
  'type' => Controls_Manager::COLOR,
372
  'scheme' => [
373
  'type' => Scheme_Color::get_type(),
374
  'value' => Scheme_Color::COLOR_1,
375
  ],
376
+ 'default' => '#f00',
377
  'selectors' => [
378
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
379
+ '{{WRAPPER}} .mf-input-wrapper .mf-input[aria-invalid="true"], {{WRAPPER}} .mf-input-wrapper .mf-input.mf-invalid' => 'border-color: {{VALUE}}',
 
 
 
 
380
  ],
381
+ 'conditions' => [
382
+ 'relation' => 'or',
383
+ 'terms' => [
384
+ [
385
+ 'name' => 'mf_input_required',
386
+ 'operator' => '===',
387
+ 'value' => 'yes',
388
+ ],
389
+ [
390
+ 'name' => 'mf_input_validation_type',
391
+ 'operator' => '!=',
392
+ 'value' => 'none',
393
+ ],
394
+ ],
395
+ ],
396
  ]
397
  );
398
 
399
  }
400
 
401
  protected function input_controls($param = []){
 
402
  $this->add_responsive_control(
403
  'mf_input_padding',
404
  [
405
  'label' => esc_html__( 'Padding', 'metform' ),
406
  'type' => Controls_Manager::DIMENSIONS,
407
+ 'size_units' => [ 'px', '%', 'em' ],
408
  'selectors' => [
409
  '{{WRAPPER}} .mf-input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
 
 
410
  '{{WRAPPER}} .mf-input-calculation-total' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
411
+ '{{WRAPPER}} .mf_select__control, {{WRAPPER}} .mf-input-select .mf_select__option, {{WRAPPER}} .mf_multiselect__control .mf_multiselect__value-container, {{WRAPPER}} .mf_multiselect__option, {{WRAPPER}} .mf_multiselect__menu-notice--no-options' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
412
+ '{{WRAPPER}} .mf-input-wrapper .range-slider' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
413
  ],
414
  ]
415
  );
416
+
417
  $this->add_responsive_control(
418
  'mf_input_margin',
419
  [
422
  'size_units' => [ 'px', '%', 'em' ],
423
  'selectors' => [
424
  '{{WRAPPER}} .mf-input' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
 
 
425
  '{{WRAPPER}} .mf-input-calculation-total' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
426
+ '{{WRAPPER}} .mf-input-wrapper .range-slider' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}}',
427
  ],
428
  ]
429
  );
430
 
431
  if(!in_array('ONLY_BOX_SHADOW', $param)){
 
432
  $this->start_controls_tabs( 'mf_input_tabs_style' );
433
 
434
  $this->start_controls_tab(
453
  '{{WRAPPER}} .irs--round .irs-handle' => 'border-color: {{VALUE}}',
454
  '{{WRAPPER}} .irs--round .irs-from:before, {{WRAPPER}} .irs--round .irs-to:before, {{WRAPPER}} .irs--round .irs-single:before' => 'border-top-color: {{VALUE}}',
455
 
456
+ '{{WRAPPER}} .mf_select__single-value' => 'color: {{VALUE}}',
 
457
 
458
+ '{{WRAPPER}} .mf-input-wrapper .input-range__slider' => 'border-color: {{VALUE}}',
459
+ '{{WRAPPER}} .mf-input-wrapper .input-range__track--active, {{WRAPPER}} .mf-input-wrapper .input-range__label-container, {{WRAPPER}} .mf-input-wrapper .input-range__label-container:before' => 'background-color: {{VALUE}}',
460
+
461
+ '{{WRAPPER}} .mf-input-wrapper .asRange .asRange-pointer .asRange-tip' => 'background-color: {{VALUE}}; border-color: {{VALUE}}',
462
  '{{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-calculation-total' => 'color: {{VALUE}};',
463
  '{{WRAPPER}} .mf-input-file-upload-label svg path' => 'stroke: {{VALUE}}; fill: {{VALUE}};',
464
+
465
+ '{{WRAPPER}} .mf-input-select .mf_select__option, {{WRAPPER}} .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value__remove,{{WRAPPER}} .mf_multiselect__menu-notice--no-options' => 'color: {{VALUE}}',
466
  ],
467
  'default' => '#000000',
468
  ]
475
  'name' => 'mf_input_background',
476
  'label' => esc_html__( 'Background', 'metform' ),
477
  'types' => [ 'classic', 'gradient' ],
478
+ 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total, {{WRAPPER}} .mf-input-select .mf_select__option,{{WRAPPER}} .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value__remove,{{WRAPPER}} .mf_multiselect__option,{{WRAPPER}} .mf_multiselect__menu-notice--no-options',
479
  ]
480
  );
481
  }
487
  [
488
  'name' => 'mf_input_border',
489
  'label' => esc_html__( 'Border', 'metform' ),
490
+ 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total, {{WRAPPER}} .mf-input-select > .mf_select__control, {{WRAPPER}} .mf-input-select .mf_select__option, {{WRAPPER}} .mf-input-multiselect .mf_multiselect__control, {{WRAPPER}} .mf_multiselect__option',
491
  ]
492
  );
493
  }
514
  'selectors' => [
515
  '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-dial-code' => 'color: {{VALUE}}',
516
  '{{WRAPPER}} .irs--round .irs-handle:hover' => 'border-color: {{VALUE}}',
517
+
518
+ '{{WRAPPER}} .mf-input:hover .mf_select__single-value' => 'color: {{VALUE}}',
519
 
 
 
520
  '{{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label svg path' => 'stroke:{{VALUE}}; fill: {{VALUE}}',
521
 
522
+ '{{WRAPPER}} .mf-input-wrapper .input-range__slider:hover' => 'border-color: {{VALUE}}',
523
+
524
+ '{{WRAPPER}} .mf_select__menu-list .mf_select__option:hover, {{WRAPPER}} .mf_multiselect__multi-value:hover .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value:hover .mf_multiselect__multi-value__remove,{{WRAPPER}} .mf_multiselect__menu-notice--no-options:hover' => 'color: {{VALUE}}',
525
  ],
526
  'default' => '#000000',
527
  ]
534
  'name' => 'mf_input_background_hover',
535
  'label' => esc_html__( 'Background', 'metform' ),
536
  'types' => [ 'classic', 'gradient' ],
537
+ 'selector' => '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:hover,{{WRAPPER}} .mf_select__menu-list .mf_select__option:hover, {{WRAPPER}} .mf_multiselect__option:hover, {{WRAPPER}} .mf_multiselect__multi-value:hover .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value:hover .mf_multiselect__multi-value__remove, {{WRAPPER}} .mf_multiselect__menu-notice--no-options:hover',
538
  ]
539
  );
540
  }
541
 
542
  if(!in_array('NO_BORDER', $param)){
 
543
  $this->add_group_control(
544
  Group_Control_Border::get_type(),
545
  [
546
  'name' => 'mf_input_border_hover',
547
  'label' => esc_html__( 'Border', 'metform' ),
548
+ 'selector' => '{{WRAPPER}} .mf-input:hover, {{WRAPPER}} .mf-file-upload-container:hover .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:hover .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:hover, {{WRAPPER}} .mf-input-select > .mf_select__control:hover, {{WRAPPER}} .mf-input-select .mf_select__option:hover,{{WRAPPER}} .mf_multiselect__option:hover, {{WRAPPER}} .mf_multiselect__menu-notice--no-options:hover',
549
  ]
550
  );
551
  }
573
  'selectors' => [
574
  '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-dial-code' => 'color: {{VALUE}}',
575
  '{{WRAPPER}} .irs--round .irs-handle:focus' => 'border-color: {{VALUE}}',
576
+
577
+ // '{{WRAPPER}} .mf-input > .mf_select__control--menu-is-open .mf_select__single-value' => 'color: {{VALUE}}',
578
 
579
+ '{{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-file-upload-container:focus .mf-image-label, {{WRAPPER}} .mf-input-calculation-total:focus' => 'color: {{VALUE}};',
580
 
581
  '{{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label svg path' => 'stroke: {{VALUE}}; fill: {{VALUE}};',
582
 
583
+ '{{WRAPPER}} .mf-input-wrapper .input-range__slider:focus' => 'border-color: {{VALUE}}',
584
+ '{{WRAPPER}} .mf-input-calculation-total:focus,{{WRAPPER}} .mf_select__menu-list .mf_select__option:focus, {{WRAPPER}} .mf_multiselect__option:focus, {{WRAPPER}} .mf_multiselect__multi-value:focus .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value:focus .mf_multiselect__multi-value__remove, {{WRAPPER}} .mf_multiselect__menu-notice--no-options:focus' => 'color: {{VALUE}}'
585
  ],
586
  'default' => '#000000',
587
  ]
595
  'name' => 'mf_input_background_focus',
596
  'label' => esc_html__( 'Background', 'metform' ),
597
  'types' => [ 'classic', 'gradient' ],
598
+ 'selector' => '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-input > .mf_select__control--menu-is-open, {{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:focus,{{WRAPPER}} .mf-input-calculation-total:focus,{{WRAPPER}} .mf_select__menu-list .mf_select__option:focus, {{WRAPPER}} .mf_multiselect__option:focus, {{WRAPPER}} .mf_multiselect__multi-value:focus .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value:focus .mf_multiselect__multi-value__remove, {{WRAPPER}} .mf_multiselect__menu-notice--no-options:focus',
599
  ]
600
  );
601
 
608
  [
609
  'name' => 'mf_input_border_focus',
610
  'label' => esc_html__( 'Border', 'metform' ),
611
+ 'selector' => '{{WRAPPER}} .mf-input:focus, {{WRAPPER}} .mf-file-upload-container:focus .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper:focus .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total:focus, {{WRAPPER}} .mf-input-select > .mf_select__control:focus, {{WRAPPER}} .mf-input-select .mf_select__option:focus, {{WRAPPER}} .mf_multiselect__option:focus, {{WRAPPER}} .mf_multiselect__menu-notice--no-options:focus',
612
  ]
613
  );
614
  }
618
 
619
  $this->end_controls_tabs();
620
 
621
+ $this->add_control(
622
+ 'hr',
623
+ [
624
+ 'type' => \Elementor\Controls_Manager::DIVIDER,
625
+ ]
626
+ );
627
+
628
  $this->add_group_control(
629
  Group_Control_Typography::get_type(),
630
  [
631
  'name' => 'mf_input_typgraphy',
632
  'label' => esc_html__( 'Typography', 'metform' ),
633
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
634
+ 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .irs--round .irs-single, {{WRAPPER}} .asRange .asRange-pointer .asRange-tip, {{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total, {{WRAPPER}} .mf-input-wrapper .input-range__label-container',
635
  ]
636
  );
637
 
660
  ],
661
  'selectors' => [
662
  '{{WRAPPER}} .mf-input' => 'border-radius: {{SIZE}}{{UNIT}};',
663
+ '{{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total' => 'border-radius: {{SIZE}}{{UNIT}};',
664
+ '{{WRAPPER}} .mf-input-select > .mf_select__control, {{WRAPPER}} .mf-input-select .mf_select__option, {{WRAPPER}} .mf-input-multiselect .mf_multiselect__control, {{WRAPPER}} .mf_multiselect__option, {{WRAPPER}} .mf_multiselect__multi-value__label, {{WRAPPER}} .mf_multiselect__multi-value__remove, {{WRAPPER}} .mf_multiselect__menu-notice--no-options ' => 'border-radius: {{SIZE}}{{UNIT}};',
665
  ],
666
  ]
667
  );
671
  [
672
  'name' => 'mf_input_box_shadow',
673
  'label' => esc_html__( 'Box Shadow', 'metform' ),
674
+ 'selector' => '{{WRAPPER}} .mf-input, {{WRAPPER}} .irs--round .irs-line, {{WRAPPER}} .mf-input-switch label.mf-input-control-label:before, {{WRAPPER}} .mf-input-wrapper .asRange, {{WRAPPER}} .asRange .asRange-pointer:before, {{WRAPPER}} .mf-file-upload-container .mf-input-file-upload-label, {{WRAPPER}} .mf-input-wrapper .iti--separate-dial-code .iti__selected-flag, {{WRAPPER}} .mf-input-calculation-total, {{WRAPPER}} .mf-input-select > .mf_select__control, {{WRAPPER}} .mf-input-select .mf_select__option, {{WRAPPER}} .mf-input-multiselect .mf_multiselect__control, {{WRAPPER}} .mf_multiselect__option, {{WRAPPER}} .mf-input-wrapper .input-range__track--background',
675
  ]
676
  );
 
677
  }
678
 
679
  protected function input_place_holder_controls(){
684
  'name' => 'mf_input_place_holder_typography',
685
  'label' => esc_html__( 'Typography', 'metform' ),
686
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
687
+ 'selector' => '{{WRAPPER}} .text, {{WRAPPER}} .mf-input::placeholder, {{WRAPPER}} .mf_select__placeholder',
688
  ]
689
  );
690
 
707
  '{{WRAPPER}} .mf-input::-moz-placeholder' => 'color: {{VALUE}};',
708
  '{{WRAPPER}} .mf-input:-ms-input-placeholder' => 'color: {{VALUE}};',
709
  '{{WRAPPER}} .mf-input:-moz-placeholder' => 'color: {{VALUE}};',
710
+
711
+ '{{WRAPPER}} .mf_select__placeholder' => 'color: {{VALUE}};',
712
  ],
713
  'default' => '#c9c1c1',
714
  ]
757
  }
758
 
759
 
760
+ }
utils/util.php CHANGED
@@ -187,6 +187,7 @@ class Util{
187
 
188
  return $content;
189
  }
 
190
  public static function render_elementor_content($content_id){
191
  $elementor_instance = \Elementor\Plugin::instance();
192
  return $elementor_instance->frontend->get_builder_content_for_display( $content_id );
@@ -215,7 +216,6 @@ class Util{
215
  $rest_url = get_rest_url();
216
  $form_unique_name = (is_numeric($form)) ? ($widget_id.'-'.$form) : $widget_id;
217
  $form_id = (is_numeric($form)) ? $form : $widget_id;
218
- //$form_settings = \MetForm\Core\Entries\Action::instance()->get_form_settings($form_id);
219
  $form_settings = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
220
 
221
  $site_key = !empty($form_settings['mf_recaptcha_site_key']) ? $form_settings['mf_recaptcha_site_key'] : '';
@@ -227,30 +227,61 @@ class Util{
227
 
228
  ob_start();
229
  ?>
230
- <div class="mf-form-wrapper">
231
- <div class="metform-msg attr-alert attr-alert-success attr-container metform-inx"></div>
232
- <form id="metform-<?php echo esc_attr($form_unique_name); ?>"
233
- data-nonce="<?php echo wp_create_nonce('wp_rest');?>"
234
- action="<?php echo esc_attr($rest_url."metform/v1/entries/insert/".$form_id); ?>"
235
- method="POST"
236
- data-form-id = "<?php echo esc_attr($form_id); ?>"
237
- class="metform-form-content"
238
- data-site-key="<?php echo esc_attr($site_key); ?>"
239
- enctype="multipart/form-data"
240
- >
241
- <input type="hidden" id="form_nonce-<?php echo esc_attr($form_unique_name); ?>" name="form_nonce" value="<?php echo esc_attr(wp_create_nonce( 'form_nonce' )); ?>" />
242
- <?php
243
- //wp_nonce_field('form_nonce', 'form_nonce');
244
- if(is_numeric($form)){
245
- echo \MetForm\Utils\Util::render_elementor_content($form);
246
- }else{
247
- echo $form;
248
- }
249
- ?>
250
- </form>
251
- </div>
252
- <?php
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  $output = ob_get_contents();
255
  ob_end_clean();
256
 
187
 
188
  return $content;
189
  }
190
+
191
  public static function render_elementor_content($content_id){
192
  $elementor_instance = \Elementor\Plugin::instance();
193
  return $elementor_instance->frontend->get_builder_content_for_display( $content_id );
216
  $rest_url = get_rest_url();
217
  $form_unique_name = (is_numeric($form)) ? ($widget_id.'-'.$form) : $widget_id;
218
  $form_id = (is_numeric($form)) ? $form : $widget_id;
 
219
  $form_settings = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
220
 
221
  $site_key = !empty($form_settings['mf_recaptcha_site_key']) ? $form_settings['mf_recaptcha_site_key'] : '';
227
 
228
  ob_start();
229
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
+ <div
232
+ id="metform-wrap-<?php echo esc_attr( $form_unique_name ); ?>"
233
+ class="mf-form-wrapper"
234
+ data-form-id="<?php echo esc_attr( $form_id ); ?>"
235
+ data-action="<?php echo esc_attr($rest_url. "metform/v1/entries/insert/" .$form_id); ?>"
236
+ data-wp-nonce="<?php echo wp_create_nonce( 'wp_rest' ); ?>"
237
+ data-form-nonce="<?php echo wp_create_nonce( 'form_nonce' ); ?>"
238
+ ></div>
239
+
240
+ <script type="text" class="mf-template">
241
+ return html`
242
+ <form
243
+ className="metform-form-content"
244
+ onSubmit=${ validation.handleSubmit( parent.handleFormSubmit ) }
245
+ >
246
+ <div className="mf-response-msg-wrap" ref=${parent.toggleResponseMsg} data-show=${state.form_res}>
247
+ <div className="mf-response-msg"><?php echo isset($form_settings['success_message']) ? esc_attr( $form_settings['success_message'] ) : ''; ?></div>
248
+ </div>
249
+
250
+ <?php
251
+ $replaceStrings = array(
252
+ 'from' => array(
253
+ 'class=',
254
+ 'for=',
255
+ 'cellspacing=',
256
+ 'cellpadding=',
257
+ 'srcset',
258
+ 'colspan',
259
+ '<script>', // Script Start Tag
260
+ '</script>', // Script End Tag
261
+ ),
262
+ 'to' => array(
263
+ 'className=',
264
+ 'htmlFor=',
265
+ 'cellSpacing=',
266
+ 'cellPadding=',
267
+ 'srcSet',
268
+ 'colSpan',
269
+ '{new Function(`', // Script Start Tag
270
+ '`)()}', // Script End Tag
271
+ ),
272
+ );
273
+
274
+ $form_content = is_numeric( $form ) ? \MetForm\Utils\Util::render_elementor_content( $form ) : $form;
275
+ $form_content = str_replace( $replaceStrings['from'], $replaceStrings['to'], $form_content );
276
+ $form_content = preg_replace( '/<!--(.|\s)*?-->/', '', $form_content ); // Removes HTML Comments
277
+
278
+ echo $form_content;
279
+ ?>
280
+ </form>
281
+ `
282
+ </script>
283
+
284
+ <?php
285
  $output = ob_get_contents();
286
  ob_end_clean();
287
 
widgets/button/button.php CHANGED
@@ -130,10 +130,11 @@ Class MetForm_Input_Button extends Widget_Base{
130
  if(!empty($hidden_inputs)){
131
  foreach($hidden_inputs as $input){
132
  $input = (object) $input;
133
- echo "<input type='hidden' class=".esc_attr($input->mf_hidden_input_class)." name=".esc_attr($input->mf_hidden_input_name)." value=".esc_attr($input->mf_hidden_input_value).">";
 
 
134
  }
135
  }
136
-
137
  ?>
138
  <div class="mf-btn-wraper <?php echo esc_attr($class); ?>" data-mf-form-conditional-logic-requirement="<?php echo esc_attr(isset($settings['mf_conditional_logic_form_and_or_operators']) ? $settings['mf_conditional_logic_form_and_or_operators'] : ''); ?>">
139
  <?php if($icon_align == 'right'): ?>
@@ -141,12 +142,12 @@ Class MetForm_Input_Button extends Widget_Base{
141
  <?php echo esc_html( $btn_text ); ?>
142
  <?php if($settings['mf_btn_icon']['value'] != ''): ?><?php Icons_Manager::render_icon( $settings['mf_btn_icon'], [ 'aria-hidden' => 'true' ] ); ?><?php endif; ?>
143
  </button>
144
- <?php elseif ($icon_align == 'left') : ?>
145
  <button type="submit" class="metform-btn metform-submit-btn <?php echo esc_attr( $btn_class); ?>" <?php echo esc_attr($btn_id); ?>>
146
  <?php if($settings['mf_btn_icon']['value'] != ''): ?><?php Icons_Manager::render_icon( $settings['mf_btn_icon'], [ 'aria-hidden' => 'true' ] ); ?><?php endif; ?>
147
  <?php echo esc_html( $btn_text ); ?>
148
  </button>
149
- <?php else : ?>
150
  <button type="submit" class="metform-btn metform-submit-btn <?php echo esc_attr( $btn_class); ?>" <?php echo esc_attr($btn_id); ?>>
151
  <?php echo esc_html( $btn_text ); ?>
152
  </button>
@@ -155,4 +156,4 @@ Class MetForm_Input_Button extends Widget_Base{
155
  <?php
156
  }
157
 
158
- }
130
  if(!empty($hidden_inputs)){
131
  foreach($hidden_inputs as $input){
132
  $input = (object) $input;
133
+ ?>
134
+ <input type="hidden" name="<?php echo esc_attr( $input->mf_hidden_input_name ); ?>" class="<?php echo esc_attr( $input->mf_hidden_input_class ); ?>" value="<?php echo esc_attr( $input->mf_hidden_input_value ); ?>" ref=${parent.setDefault} />
135
+ <?php
136
  }
137
  }
 
138
  ?>
139
  <div class="mf-btn-wraper <?php echo esc_attr($class); ?>" data-mf-form-conditional-logic-requirement="<?php echo esc_attr(isset($settings['mf_conditional_logic_form_and_or_operators']) ? $settings['mf_conditional_logic_form_and_or_operators'] : ''); ?>">
140
  <?php if($icon_align == 'right'): ?>
142
  <?php echo esc_html( $btn_text ); ?>
143
  <?php if($settings['mf_btn_icon']['value'] != ''): ?><?php Icons_Manager::render_icon( $settings['mf_btn_icon'], [ 'aria-hidden' => 'true' ] ); ?><?php endif; ?>
144
  </button>
145
+ <?php elseif ($icon_align == 'left') : ?>
146
  <button type="submit" class="metform-btn metform-submit-btn <?php echo esc_attr( $btn_class); ?>" <?php echo esc_attr($btn_id); ?>>
147
  <?php if($settings['mf_btn_icon']['value'] != ''): ?><?php Icons_Manager::render_icon( $settings['mf_btn_icon'], [ 'aria-hidden' => 'true' ] ); ?><?php endif; ?>
148
  <?php echo esc_html( $btn_text ); ?>
149
  </button>
150
+ <?php else : ?>
151
  <button type="submit" class="metform-btn metform-submit-btn <?php echo esc_attr( $btn_class); ?>" <?php echo esc_attr($btn_id); ?>>
152
  <?php echo esc_html( $btn_text ); ?>
153
  </button>
156
  <?php
157
  }
158
 
159
+ }
widgets/checkbox/checkbox.php CHANGED
@@ -7,10 +7,11 @@ Class MetForm_Input_Checkbox extends Widget_Base{
7
  use \MetForm\Traits\Common_Controls;
8
  use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
10
-
11
- public function __construct( $data = [], $args = null ) {
12
  parent::__construct( $data, $args );
13
- if(class_exists('\Elementor\Icons_Manager') && method_exists('\Elementor\Icons_Manager', 'enqueue_shim')){
 
14
  \Elementor\Icons_Manager::enqueue_shim();
15
  }
16
  }
@@ -100,6 +101,7 @@ Class MetForm_Input_Checkbox extends Widget_Base{
100
  'default' => $this->get_name(),
101
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
102
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word. Name must be different.', 'metform'),
 
103
  ]
104
  );
105
 
@@ -219,6 +221,15 @@ Class MetForm_Input_Checkbox extends Widget_Base{
219
 
220
  $this->input_setting_controls();
221
 
 
 
 
 
 
 
 
 
 
222
  $this->end_controls_section();
223
 
224
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -298,19 +309,19 @@ Class MetForm_Input_Checkbox extends Widget_Base{
298
  $this->add_control(
299
  'mf_input_required_indicator_color',
300
  [
301
- 'label' => esc_html__( 'Required indicator color : ', 'metform' ),
302
  'type' => Controls_Manager::COLOR,
303
  'scheme' => [
304
  'type' => Scheme_Color::get_type(),
305
  'value' => Scheme_Color::COLOR_1,
306
  ],
307
- 'default' => '#FF0000',
308
  'selectors' => [
309
- '{{WRAPPER}} .mf-input-label .mf-input-required-indicator, {{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-checkbox-option, {{WRAPPER}} .mf-input-wrapper .error' => 'color: {{VALUE}}',
310
  ],
311
- // 'condition' => [
312
- // 'mf_input_required' => 'yes',
313
- // ],
314
  ]
315
  );
316
 
@@ -537,41 +548,66 @@ Class MetForm_Input_Checkbox extends Widget_Base{
537
  protected function render($instance = []){
538
  $settings = $this->get_settings_for_display();
539
  extract($settings);
 
 
540
 
541
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
542
 
543
- echo "<div class='mf-input-wrapper'>";
544
-
545
- if($mf_input_label_status == 'yes'){
546
- ?>
547
- <label class="mf-checkbox-label mf-input-label" for="mf-input-checkbox-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
548
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : ''); ?></span>
549
- </label>
550
- <?php
551
- }
552
  ?>
553
- <div class="mf-checkbox" id="mf-input-checkbox-<?php echo esc_attr($this->get_id()); ?>">
554
- <?php
555
- foreach($mf_input_list as $option){
556
- ?>
557
- <div class="mf-checkbox-option <?php echo esc_attr($option['mf_input_option_status']); ?>">
558
- <label><?php echo \MetForm\Utils\Util::kses(($mf_input_option_text_position == 'before') ? $option['mf_input_option_text']:''); ?>
559
- <input type="checkbox" class="mf-input mf-checkbox-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" name="<?php echo esc_attr($mf_input_name); ?>[]"
560
- value="<?php echo esc_attr($option['mf_input_option_value']); ?>"
561
- <?php echo esc_attr($option['mf_input_option_status']); ?>
562
- >
563
- <span><?php echo \MetForm\Utils\Util::kses(($mf_input_option_text_position == 'after') ? $option['mf_input_option_text']:''); ?></span>
564
- </label>
565
- </div>
566
- <?php
567
- }
568
- ?>
569
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  <?php
571
- if($mf_input_help_text != ''){
572
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
573
- }
574
- echo "</div>";
575
  }
576
 
577
- }
7
  use \MetForm\Traits\Common_Controls;
8
  use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
10
+
11
+ public function __construct( $data = [], $args = null ) {
12
  parent::__construct( $data, $args );
13
+
14
+ if ( class_exists('\Elementor\Icons_Manager') && method_exists('\Elementor\Icons_Manager', 'enqueue_shim') ) {
15
  \Elementor\Icons_Manager::enqueue_shim();
16
  }
17
  }
101
  'default' => $this->get_name(),
102
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
103
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word. Name must be different.', 'metform'),
104
+ 'frontend_available' => true,
105
  ]
106
  );
107
 
221
 
222
  $this->input_setting_controls();
223
 
224
+ $this->add_control(
225
+ 'mf_input_validation_type',
226
+ [
227
+ 'label' => __( 'Validation Type', 'metform' ),
228
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
229
+ 'default' => 'none',
230
+ ]
231
+ );
232
+
233
  $this->end_controls_section();
234
 
235
  if(class_exists('\MetForm_Pro\Base\Package')){
309
  $this->add_control(
310
  'mf_input_required_indicator_color',
311
  [
312
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
313
  'type' => Controls_Manager::COLOR,
314
  'scheme' => [
315
  'type' => Scheme_Color::get_type(),
316
  'value' => Scheme_Color::COLOR_1,
317
  ],
318
+ 'default' => '#f00',
319
  'selectors' => [
320
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
321
  ],
322
+ 'condition' => [
323
+ 'mf_input_required' => 'yes',
324
+ ],
325
  ]
326
  );
327
 
548
  protected function render($instance = []){
549
  $settings = $this->get_settings_for_display();
550
  extract($settings);
551
+
552
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
553
 
554
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
555
 
556
+ $configData = [
557
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
558
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
559
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
560
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
561
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
562
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
563
+ ];
 
564
  ?>
565
+
566
+ <div class="mf-input-wrapper">
567
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
568
+ <label class="mf-input-label" for="mf-input-checkbox-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
569
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
570
+ </label>
571
+ <?php endif; ?>
572
+
573
+ <div class="mf-checkbox" id="mf-input-checkbox-<?php echo esc_attr($this->get_id()); ?>">
574
+ <?php
575
+ foreach($mf_input_list as $indx=>$option){
576
+ ?>
577
+ <div class="mf-checkbox-option <?php echo esc_attr($option['mf_input_option_status']); ?>">
578
+ <label><?php echo esc_html(($mf_input_option_text_position == 'before') ? $option['mf_input_option_text']:''); ?>
579
+ <input type="checkbox"
580
+ class="mf-input mf-checkbox-input <?php echo $class; ?>"
581
+ name="<?php echo esc_attr($mf_input_name); ?>"
582
+ value="<?php echo esc_attr($option['mf_input_option_value']); ?>"
583
+ <?php echo esc_attr($option['mf_input_option_status']); ?>
584
+ <?php if ( !$is_edit_mode ): ?>
585
+ onInput=${ parent.handleCheckbox }
586
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
587
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
588
+ <?php endif; ?>
589
+ />
590
+ <span><?php echo esc_html(($mf_input_option_text_position == 'after') ? $option['mf_input_option_text']:''); ?></span>
591
+ </label>
592
+ </div>
593
+ <?php
594
+ }
595
+ ?>
596
+ </div>
597
+
598
+ <?php if ( !$is_edit_mode ) : ?>
599
+ <${validation.ErrorMessage}
600
+ errors=${validation.errors}
601
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
602
+ as=${html`<span className="mf-error-message"></span>`}
603
+ />
604
+ <?php endif; ?>
605
+
606
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
607
+ </div>
608
+
609
  <?php
610
+
 
 
 
611
  }
612
 
613
+ }
widgets/date/date.php CHANGED
@@ -6,6 +6,11 @@ Class MetForm_Input_Date extends Widget_Base{
6
  use \MetForm\Traits\Common_Controls;
7
  use \MetForm\Traits\Conditional_Controls;
8
  use \MetForm\Widgets\Widget_Notice;
 
 
 
 
 
9
 
10
  public function get_name() {
11
  return 'mf-date';
@@ -51,10 +56,19 @@ Class MetForm_Input_Date extends Widget_Base{
51
 
52
  $this->input_setting_controls();
53
 
 
 
 
 
 
 
 
 
 
54
  $this->add_control(
55
  'mf_input_min_date',
56
  [
57
- 'label' => esc_html__( 'Set minimum date : ', 'metform' ),
58
  'type' => Controls_Manager::DATE_TIME,
59
  'picker_options' => [
60
  'enableTime' => false,
@@ -65,7 +79,7 @@ Class MetForm_Input_Date extends Widget_Base{
65
  $this->add_control(
66
  'mf_input_max_date',
67
  [
68
- 'label' => esc_html__( 'Set maximum date : ', 'metform' ),
69
  'type' => Controls_Manager::DATE_TIME,
70
  'picker_options' => [
71
  'enableTime' => false,
@@ -89,7 +103,7 @@ Class MetForm_Input_Date extends Widget_Base{
89
  $this->add_control(
90
  'mf_input_disable_date_list',
91
  [
92
- 'label' => __( 'Disable date List', 'plugin-domain' ),
93
  'type' => Controls_Manager::REPEATER,
94
  'fields' => $repeater->get_controls(),
95
  'title_field' => '{{{ mf_input_disable_date }}}',
@@ -369,10 +383,29 @@ Class MetForm_Input_Date extends Widget_Base{
369
  $this->insert_pro_message();
370
  }
371
 
 
 
 
 
 
 
 
 
372
  protected function render($instance = []){
373
  $settings = $this->get_settings_for_display();
 
374
  extract($settings);
375
 
 
 
 
 
 
 
 
 
 
 
376
  if(is_array($mf_input_disable_date_list)){
377
  $disable_dates = [];
378
  foreach($mf_input_disable_date_list as $key => $value){
@@ -388,34 +421,66 @@ Class MetForm_Input_Date extends Widget_Base{
388
  (($mf_input_month_select == 'yes') ? 'm' :
389
  (($mf_input_date_select == 'yes') ? 'd' : 'd-m-Y')))))));
390
 
 
 
 
391
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
 
393
- echo "<div class='mf-input-wrapper'>";
394
-
395
- if($mf_input_label_status == 'yes'){
396
- ?>
397
- <label class="mf-input-label" for="mf-input-date-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
398
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '')?></span>
399
- </label>
400
- <?php
401
- }
402
- ?>
403
- <input type="text" class="mf-input mf-date-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>"
404
- name="<?php echo esc_attr($mf_input_name); ?>"
405
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
406
- data-mfMinDate = "<?php echo esc_attr($mf_input_min_date); ?>"
407
- data-mfMaxDate= "<?php echo esc_attr($mf_input_max_date); ?>"
408
- data-mfRangeDate = "<?php echo esc_attr($mf_input_range_date); ?>"
409
- data-mfDateFormat="<?php echo esc_attr($date_format); ?>"
410
- data-mfEnableTime="<?php echo esc_attr($mf_input_date_with_time); ?>"
411
- data-mfDisableDates="<?php echo esc_attr(json_encode(isset($disable_dates) ? $disable_dates : '')); ?>"
412
- <?php //echo esc_attr($mf_input_readonly_status); ?>
413
- >
414
  <?php
415
- if($mf_input_help_text != ''){
416
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
417
- }
418
- echo "</div>";
419
  }
420
 
421
- }
6
  use \MetForm\Traits\Common_Controls;
7
  use \MetForm\Traits\Conditional_Controls;
8
  use \MetForm\Widgets\Widget_Notice;
9
+
10
+ public function __construct( $data = [], $args = null ) {
11
+ parent::__construct( $data, $args );
12
+ $this->add_style_depends('flatpickr');
13
+ }
14
 
15
  public function get_name() {
16
  return 'mf-date';
56
 
57
  $this->input_setting_controls();
58
 
59
+ $this->add_control(
60
+ 'mf_input_validation_type',
61
+ [
62
+ 'label' => __( 'Validation Type', 'metform' ),
63
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
64
+ 'default' => 'none',
65
+ ]
66
+ );
67
+
68
  $this->add_control(
69
  'mf_input_min_date',
70
  [
71
+ 'label' => esc_html__( 'Set minimum date:', 'metform' ),
72
  'type' => Controls_Manager::DATE_TIME,
73
  'picker_options' => [
74
  'enableTime' => false,
79
  $this->add_control(
80
  'mf_input_max_date',
81
  [
82
+ 'label' => esc_html__( 'Set maximum date:', 'metform' ),
83
  'type' => Controls_Manager::DATE_TIME,
84
  'picker_options' => [
85
  'enableTime' => false,
103
  $this->add_control(
104
  'mf_input_disable_date_list',
105
  [
106
+ 'label' => esc_html__( 'Disable date List', 'metform' ),
107
  'type' => Controls_Manager::REPEATER,
108
  'fields' => $repeater->get_controls(),
109
  'title_field' => '{{{ mf_input_disable_date }}}',
383
  $this->insert_pro_message();
384
  }
385
 
386
+ public function format_date($format, $array){
387
+ $response = [];
388
+ foreach($array as $date){
389
+ $response[] = date($format, strtotime($date));
390
+ }
391
+ return $response;
392
+ }
393
+
394
  protected function render($instance = []){
395
  $settings = $this->get_settings_for_display();
396
+ $inputWrapStart = $inputWrapEnd = '';
397
  extract($settings);
398
 
399
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
400
+
401
+ /**
402
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
403
+ */
404
+ if ( $is_edit_mode ):
405
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
406
+ $inputWrapEnd = '`</script>';
407
+ endif;
408
+
409
  if(is_array($mf_input_disable_date_list)){
410
  $disable_dates = [];
411
  foreach($mf_input_disable_date_list as $key => $value){
421
  (($mf_input_month_select == 'yes') ? 'm' :
422
  (($mf_input_date_select == 'yes') ? 'd' : 'd-m-Y')))))));
423
 
424
+ if( esc_attr($mf_input_date_with_time) && !empty($mf_input_date_with_time) ){
425
+ $date_format .= " H:i";
426
+ }
427
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
428
+
429
+ $configData = [
430
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
431
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
432
+ ];
433
+
434
+ $is_date_disabled = isset ( $disable_dates ) ? $this->format_date($date_format, $disable_dates) : [];
435
+ $current_date_mode = $mf_input_range_date && $mf_input_range_date == 'yes' ? 'range' : 'single';
436
+
437
+ if ( 'yes' === $mf_input_date_with_time ) $mf_input_date_with_time = true;
438
+
439
+ $dateConfig = [
440
+ 'minDate' => $mf_input_min_date,
441
+ 'maxDate' => $mf_input_max_date,
442
+ 'dateFormat' => $date_format,
443
+ 'enableTime' => $mf_input_date_with_time,
444
+ 'disable' => $is_date_disabled,
445
+ 'mode' => $current_date_mode,
446
+ 'static' => true
447
+ ];
448
+ ?>
449
+
450
+ <?php echo $inputWrapStart; ?>
451
+
452
+ <div className="mf-input-wrapper">
453
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
454
+ <label className="mf-input-label" htmlFor="mf-input-date-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
455
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
456
+ </label>
457
+ <?php endif; ?>
458
+
459
+ <${props.Flatpickr}
460
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
461
+ className="mf-input mf-date-input mf-left-parent <?php echo esc_attr( $class ); ?>"
462
+ placeholder="<?php echo esc_attr( $mf_input_placeholder ); ?>"
463
+ options=${<?php echo json_encode( $dateConfig ); ?>}
464
+ value=${parent.getValue('<?php echo esc_attr( $mf_input_name ); ?>')}
465
+ onInput=${parent.handleDateTime}
466
+ aria-invalid=${validation.errors['<?php echo esc_attr( $mf_input_name ); ?>'] ? 'true' : 'false'}
467
+ ref=${register({ name: "<?php echo esc_attr($mf_input_name); ?>" }, parent.activateValidation(<?php echo json_encode($configData); ?>))}
468
+ />
469
+
470
+ <?php if ( !$is_edit_mode ) : ?>
471
+ <${validation.ErrorMessage}
472
+ errors=${validation.errors}
473
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
474
+ as=${html`<span className="mf-error-message"></span>`}
475
+ />
476
+ <?php endif; ?>
477
+
478
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
479
+ </div>
480
+
481
+ <?php echo $inputWrapEnd; ?>
482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483
  <?php
 
 
 
 
484
  }
485
 
486
+ }
widgets/email/email.php CHANGED
@@ -120,37 +120,53 @@ Class MetForm_Input_Email extends widget_base{
120
  $settings = $this->get_settings_for_display();
121
  extract($settings);
122
 
123
- $validation = [
124
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
125
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
126
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
127
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
128
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
129
- ];
130
-
131
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
132
 
133
- echo "<div class='mf-input-wrapper'>";
134
-
135
- if($mf_input_label_status == 'yes'){
136
- ?>
137
- <label class="mf-input-label" for="mf-input-email-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
138
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '')?></span>
139
- </label>
140
- <?php
141
- }
142
  ?>
143
- <input type="email" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-email-<?php echo esc_attr($this->get_id()); ?>"
144
- name="<?php echo esc_attr($mf_input_name); ?>"
145
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
146
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
147
- <?php //echo esc_attr($mf_input_readonly_status); ?>
148
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  <?php
150
- if($mf_input_help_text != ''){
151
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
152
- }
153
- echo "</div>";
154
  }
155
 
156
- }
120
  $settings = $this->get_settings_for_display();
121
  extract($settings);
122
 
123
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
124
+
 
 
 
 
 
 
125
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
126
 
127
+ $configData = [
128
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
129
+ 'emailMessage' => esc_html__('Please enter a valid Email address', 'metform'),
130
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
131
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
132
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
133
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
134
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
135
+ ];
136
  ?>
137
+
138
+ <div class="mf-input-wrapper">
139
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
140
+ <label class="mf-input-label" for="mf-input-email-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
141
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
142
+ </label>
143
+ <?php endif; ?>
144
+
145
+ <input
146
+ type="email"
147
+ class="mf-input <?php echo $class; ?>"
148
+ id="mf-input-email-<?php echo esc_attr($this->get_id()); ?>"
149
+ name="<?php echo esc_attr($mf_input_name); ?>"
150
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
151
+ <?php if ( !$is_edit_mode ): ?>
152
+ onInput=${parent.handleChange}
153
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
154
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
155
+ <?php endif; ?>
156
+ />
157
+
158
+ <?php if ( !$is_edit_mode ) : ?>
159
+ <${validation.ErrorMessage}
160
+ errors=${validation.errors}
161
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
162
+ as=${html`<span className="mf-error-message"></span>`}
163
+ />
164
+ <?php endif; ?>
165
+
166
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
167
+ </div>
168
+
169
  <?php
 
 
 
 
170
  }
171
 
172
+ }
widgets/file-upload/file-upload.php CHANGED
@@ -82,6 +82,15 @@ Class MetForm_Input_File_Upload extends Widget_base{
82
  );
83
 
84
  $this->input_setting_controls();
 
 
 
 
 
 
 
 
 
85
 
86
  $this->add_control(
87
  'mf_input_file_size_status',
@@ -389,45 +398,76 @@ Class MetForm_Input_File_Upload extends Widget_base{
389
 
390
  protected function render($instance = []){
391
  $settings = $this->get_settings_for_display();
 
392
  extract($settings);
393
 
 
 
 
 
 
 
 
 
 
 
394
  $accept = (is_array($mf_input_file_types)) ? implode(', ', $mf_input_file_types) : '.jpg, .jpeg, .gif, .ico';
395
 
396
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
397
 
398
- echo "<div class='mf-input-wrapper'>";
 
 
 
 
399
 
400
- if($mf_input_label_status == 'yes'){
401
- ?>
402
- <label class="mf-input-label" for="mf-input-file-upload-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
403
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
404
- </label>
405
- <?php
406
- }
407
- ?>
408
- <div class="mf-file-upload-container">
409
- <input type="file" class="mf-input mf-input-file-upload <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-file-upload-<?php echo esc_attr($this->get_id()); ?>"
410
- name="<?php echo esc_attr($mf_input_name); ?>"
411
- accept="<?php echo esc_attr($accept != null ? $accept : '');?>"
412
- <?php //echo esc_attr($mf_input_readonly_status); ?>
413
- >
414
- <label for="mf-input-file-upload-<?php echo esc_attr($this->get_id()); ?>" class="mf-input-file-upload-label metform-btn">
415
- <?php
416
- echo '<span>'. esc_html__('Choose a file', 'metform') .'</span>';
417
-
418
- Icons_Manager::render_icon( $settings['mf_input_file_upload_icon'], [ 'aria-hidden' => 'true' ] );
419
- ?>
420
- </label>
421
- <div class="mf-file-name">
422
- <span><?php esc_html_e('No file chosen.', 'metform'); ?></span>
 
 
 
 
 
 
 
 
423
  </div>
424
-
 
 
 
 
 
 
 
 
 
425
  </div>
 
 
 
426
  <?php
427
- if($mf_input_help_text != ''){
428
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
429
- }
430
- echo "</div>";
431
  }
432
 
433
- }
82
  );
83
 
84
  $this->input_setting_controls();
85
+
86
+ $this->add_control(
87
+ 'mf_input_validation_type',
88
+ [
89
+ 'label' => __( 'Validation Type', 'metform' ),
90
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
91
+ 'default' => 'none',
92
+ ]
93
+ );
94
 
95
  $this->add_control(
96
  'mf_input_file_size_status',
398
 
399
  protected function render($instance = []){
400
  $settings = $this->get_settings_for_display();
401
+ $inputWrapStart = $inputWrapEnd = '';
402
  extract($settings);
403
 
404
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
405
+
406
+ /**
407
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
408
+ */
409
+ if ( $is_edit_mode ):
410
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
411
+ $inputWrapEnd = '`</script>';
412
+ endif;
413
+
414
  $accept = (is_array($mf_input_file_types)) ? implode(', ', $mf_input_file_types) : '.jpg, .jpeg, .gif, .ico';
415
 
416
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
417
 
418
+ $configData = [
419
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
420
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
421
+ ];
422
+ ?>
423
 
424
+ <?php echo $inputWrapStart; ?>
425
+
426
+ <div className="mf-input-wrapper">
427
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
428
+ <label className="mf-input-label" htmlFor="mf-input-file-upload-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
429
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
430
+ </label>
431
+ <?php endif; ?>
432
+
433
+ <div className="mf-file-upload-container">
434
+ <input
435
+ type="file"
436
+ className="mf-input mf-input-file-upload <?php echo $class; ?>"
437
+ id="mf-input-file-upload-<?php echo esc_attr($this->get_id()); ?>"
438
+ name="<?php echo esc_attr($mf_input_name); ?>"
439
+ accept="<?php echo esc_attr($accept != null ? $accept : '');?>"
440
+ onInput=${ parent.handleFileUpload }
441
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
442
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
443
+ />
444
+ <label htmlFor="mf-input-file-upload-<?php echo esc_attr($this->get_id()); ?>" className="mf-input-file-upload-label metform-btn">
445
+ <?php
446
+ echo '<span>'. esc_html__('Choose a file', 'metform') .'</span>';
447
+
448
+ Icons_Manager::render_icon( $settings['mf_input_file_upload_icon'], [ 'aria-hidden' => 'true' ] );
449
+ ?>
450
+ </label>
451
+ <div className="mf-file-name">
452
+ <span>${parent.getFileLabel( '<?php echo esc_attr($mf_input_name); ?>', '<?php esc_html_e('No file chosen.', 'metform'); ?>' )}</span>
453
+ </div>
454
+
455
  </div>
456
+
457
+ <?php if ( !$is_edit_mode ) : ?>
458
+ <${validation.ErrorMessage}
459
+ errors=${validation.errors}
460
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
461
+ as=${html`<span className="mf-error-message"></span>`}
462
+ />
463
+ <?php endif; ?>
464
+
465
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
466
  </div>
467
+
468
+ <?php echo $inputWrapEnd; ?>
469
+
470
  <?php
 
 
 
 
471
  }
472
 
473
+ }
widgets/form.php CHANGED
@@ -103,4 +103,3 @@ class Widget_Met_Form extends Widget_Base {
103
  echo '</div>';
104
  }
105
  }
106
-
103
  echo '</div>';
104
  }
105
  }
 
widgets/gdpr-consent/gdpr-consent.php CHANGED
@@ -92,6 +92,7 @@ Class MetForm_Input_Gdpr_Consent extends Widget_Base{
92
  'label' => esc_html__( 'Name : ', 'metform' ),
93
  'type' => Controls_Manager::HIDDEN,
94
  'default' => $this->get_name(),
 
95
  ]
96
  );
97
 
@@ -239,15 +240,15 @@ Class MetForm_Input_Gdpr_Consent extends Widget_Base{
239
  $this->add_control(
240
  'mf_input_required_indicator_color',
241
  [
242
- 'label' => esc_html__( 'Required indicator color:', 'metform' ),
243
  'type' => Controls_Manager::COLOR,
244
  'scheme' => [
245
  'type' => Scheme_Color::get_type(),
246
  'value' => Scheme_Color::COLOR_1,
247
  ],
248
- 'default' => '#FF0000',
249
  'selectors' => [
250
- '{{WRAPPER}} .mf-input-label .mf-input-required-indicator,{{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-checkbox-option, {{WRAPPER}} .mf-input-wrapper .error' => 'color: {{VALUE}}',
251
  ],
252
  ]
253
  );
@@ -416,6 +417,21 @@ Class MetForm_Input_Gdpr_Consent extends Widget_Base{
416
  );
417
 
418
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
 
420
  $this->insert_pro_message();
421
  }
@@ -424,33 +440,53 @@ Class MetForm_Input_Gdpr_Consent extends Widget_Base{
424
  $settings = $this->get_settings_for_display();
425
  extract($settings);
426
 
 
 
427
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
428
 
429
- echo "<div class='mf-input-wrapper'>";
430
-
431
- if($mf_input_label_status == 'yes'){
432
- ?>
433
- <label class="mf-checkbox-label mf-input-label" for="mf-input-gdpr-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
434
- <span class="mf-input-required-indicator"><?php esc_html_e( '*', 'metform' ); ?></span>
435
- </label>
436
- <?php
437
- }
438
  ?>
439
- <div class="mf-checkbox" id="mf-input-gdpr-<?php echo esc_attr($this->get_id()); ?>">
440
- <div class="mf-checkbox-option">
441
- <label><?php echo \MetForm\Utils\Util::kses(($mf_gdpr_consent_option_text_position == 'before') ? $mf_gdpr_consent_option_text :''); ?>
442
- <input type="checkbox" class="mf-input mf-checkbox-input mf-input-do-validate <?php echo $class; ?>" name="<?php echo esc_attr($mf_input_name); ?>"
443
- value="1"
444
- >
445
- <span><?php echo \MetForm\Utils\Util::kses(($mf_gdpr_consent_option_text_position == 'after') ? $mf_gdpr_consent_option_text :''); ?></span>
446
- </label>
447
- </div>
448
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  <?php
450
- if($mf_input_help_text != ''){
451
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
452
- }
453
- echo "</div>";
454
  }
455
 
456
- }
92
  'label' => esc_html__( 'Name : ', 'metform' ),
93
  'type' => Controls_Manager::HIDDEN,
94
  'default' => $this->get_name(),
95
+ 'frontend_available' => true
96
  ]
97
  );
98
 
240
  $this->add_control(
241
  'mf_input_required_indicator_color',
242
  [
243
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
244
  'type' => Controls_Manager::COLOR,
245
  'scheme' => [
246
  'type' => Scheme_Color::get_type(),
247
  'value' => Scheme_Color::COLOR_1,
248
  ],
249
+ 'default' => '#f00',
250
  'selectors' => [
251
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
252
  ],
253
  ]
254
  );
417
  );
418
 
419
  $this->end_controls_section();
420
+
421
+ $this->start_controls_section(
422
+ 'help_text_section',
423
+ [
424
+ 'label' => esc_html__( 'Help Text', 'metform' ),
425
+ 'tab' => Controls_Manager::TAB_STYLE,
426
+ 'condition' => [
427
+ 'mf_input_help_text!' => ''
428
+ ]
429
+ ]
430
+ );
431
+
432
+ $this->input_help_text_controls();
433
+
434
+ $this->end_controls_section();
435
 
436
  $this->insert_pro_message();
437
  }
440
  $settings = $this->get_settings_for_display();
441
  extract($settings);
442
 
443
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
444
+
445
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
446
 
447
+ $configData = [
448
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
449
+ 'required' => true,
450
+ ];
 
 
 
 
 
451
  ?>
452
+
453
+ <div class="mf-input-wrapper">
454
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
455
+ <label class="mf-input-label" for="mf-input-gdpr-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
456
+ <span class="mf-input-required-indicator"><?php echo esc_html( '*', 'metform' );?></span>
457
+ </label>
458
+ <?php endif; ?>
459
+
460
+ <div class="mf-checkbox" id="mf-input-gdpr-<?php echo esc_attr($this->get_id()); ?>">
461
+ <div class="mf-checkbox-option">
462
+ <label><?php echo \MetForm\Utils\Util::kses(($mf_gdpr_consent_option_text_position == 'before') ? $mf_gdpr_consent_option_text :''); ?>
463
+ <input
464
+ type="checkbox"
465
+ class="mf-input mf-checkbox-input <?php echo $class; ?>"
466
+ name="<?php echo esc_attr($mf_input_name); ?>"
467
+ <?php if ( !$is_edit_mode ): ?>
468
+ onInput=${ parent.handleOptin }
469
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
470
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
471
+ <?php endif; ?>
472
+ />
473
+ <span><?php echo \MetForm\Utils\Util::kses(($mf_gdpr_consent_option_text_position == 'after') ? $mf_gdpr_consent_option_text :''); ?></span>
474
+ </label>
475
+ </div>
476
+ </div>
477
+
478
+ <?php if ( !$is_edit_mode ): ?>
479
+ <${validation.ErrorMessage}
480
+ errors=${validation.errors}
481
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
482
+ as=${html`<span className="mf-error-message"></span>`}
483
+ />
484
+ <?php endif; ?>
485
+
486
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
487
+ </div>
488
+
489
  <?php
 
 
 
 
490
  }
491
 
492
+ }
widgets/listing-fname/listing-fname.php CHANGED
@@ -119,37 +119,50 @@ Class MetForm_Input_Listing_Fname extends Widget_Base{
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
- $validation = [
123
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
124
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
125
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
126
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
127
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
128
- ];
129
 
130
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
131
-
132
- echo "<div class='mf-input-wrapper'>";
133
-
134
- if($mf_input_label_status == 'yes'){
135
- ?>
136
- <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
137
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
138
- </label>
139
- <?php
140
- }
141
  ?>
142
- <input type="text" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"
143
- name="<?php echo esc_attr($mf_input_name); ?>"
144
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
145
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
146
- <?php //echo esc_attr($mf_input_readonly_status); ?>
147
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  <?php
149
- if($mf_input_help_text != ''){
150
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
151
- }
152
- echo "</div>";
153
  }
154
 
155
- }
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
123
 
124
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
 
 
125
  ?>
126
+
127
+ <div class="mf-input-wrapper">
128
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
129
+ <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
130
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
131
+ </label>
132
+ <?php endif; ?>
133
+
134
+ <input type="text" class="mf-input <?php echo $class; ?>" id="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"
135
+ name="<?php echo esc_attr($mf_input_name); ?>"
136
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
137
+ onInput=${ parent.handleChange }
138
+
139
+ <?php if ( !$is_edit_mode ) :
140
+ $configData = [
141
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
142
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
143
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
144
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
145
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
146
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
147
+ ];
148
+ ?>
149
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
150
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
151
+ <?php endif; ?>
152
+ />
153
+
154
+ <?php if ( !$is_edit_mode ) : ?>
155
+ <${validation.ErrorMessage}
156
+ errors=${validation.errors}
157
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
158
+ as=${html`<span className="mf-error-message"></span>`}
159
+ />
160
+ <?php endif; ?>
161
+
162
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
163
+ </div>
164
+
165
  <?php
 
 
 
 
166
  }
167
 
168
+ }
widgets/listing-lname/listing-lname.php CHANGED
@@ -119,38 +119,51 @@ Class MetForm_Input_Listing_Lname extends Widget_Base{
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
- $validation = [
123
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
124
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
125
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
126
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
127
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
128
- ];
129
-
130
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
131
 
132
- echo "<div class='mf-input-wrapper'>";
133
-
134
- if($mf_input_label_status == 'yes'){
135
- ?>
136
- <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
137
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
138
- </label>
139
- <?php
140
- }
141
  ?>
142
- <input type="text" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"
143
- name="<?php echo esc_attr( $mf_input_name ); ?>"
144
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
145
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
146
- <?php //echo esc_attr($mf_input_readonly_status); ?>
147
-
148
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  <?php
150
- if($mf_input_help_text != ''){
151
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
152
- }
153
- echo "</div>";
154
  }
155
 
156
- }
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
 
 
123
 
124
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
125
  ?>
126
+
127
+ <div class="mf-input-wrapper">
128
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
129
+ <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
130
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
131
+ </label>
132
+ <?php endif; ?>
133
+
134
+ <input type="text" class="mf-input <?php echo $class; ?>" id="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"
135
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
136
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
137
+ onInput=${ parent.handleChange }
138
+
139
+ <?php if ( !$is_edit_mode ) :
140
+ $configData = [
141
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
142
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
143
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
144
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
145
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
146
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
147
+ ];
148
+ ?>
149
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
150
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
151
+ <?php endif; ?>
152
+
153
+ />
154
+
155
+ <?php if ( !$is_edit_mode ) : ?>
156
+ <${validation.ErrorMessage}
157
+ errors=${validation.errors}
158
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
159
+ as=${html`<span className="mf-error-message"></span>`}
160
+ />
161
+ <?php endif; ?>
162
+
163
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
164
+ </div>
165
+
166
  <?php
 
 
 
 
167
  }
168
 
169
+ }
widgets/listing-optin/listing-optin.php CHANGED
@@ -92,6 +92,7 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
92
  'label' => esc_html__( 'Name : ', 'metform' ),
93
  'type' => Controls_Manager::HIDDEN,
94
  'default' => $this->get_name(),
 
95
  ]
96
  );
97
 
@@ -159,6 +160,15 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
159
 
160
  $this->input_setting_controls();
161
 
 
 
 
 
 
 
 
 
 
162
  $this->end_controls_section();
163
 
164
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -250,19 +260,19 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
250
  $this->add_control(
251
  'mf_input_required_indicator_color',
252
  [
253
- 'label' => esc_html__( 'Required indicator color:', 'metform' ),
254
  'type' => Controls_Manager::COLOR,
255
  'scheme' => [
256
  'type' => Scheme_Color::get_type(),
257
  'value' => Scheme_Color::COLOR_1,
258
  ],
259
- 'default' => '#FF0000',
260
  'selectors' => [
261
- '{{WRAPPER}} .mf-input-label .mf-input-required-indicator,{{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-checkbox-option, {{WRAPPER}} .mf-input-wrapper .error' => 'color: {{VALUE}}',
262
  ],
263
- // 'condition' => [
264
- // 'mf_input_required' => 'yes',
265
- // ],
266
  ]
267
  );
268
 
@@ -430,6 +440,21 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
430
  );
431
 
432
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
 
434
  $this->insert_pro_message();
435
  }
@@ -438,33 +463,54 @@ Class MetForm_Input_Listing_Optin extends Widget_Base{
438
  $settings = $this->get_settings_for_display();
439
  extract($settings);
440
 
441
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
442
 
443
- echo "<div class='mf-input-wrapper'>";
444
 
445
- if($mf_input_label_status == 'yes'){
446
- ?>
447
- <label class="mf-checkbox-label mf-input-label" for="mf-input-optin-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
448
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : ''); ?></span>
449
- </label>
450
- <?php
451
- }
452
  ?>
453
- <div class="mf-checkbox" id="mf-input-optin-<?php echo esc_attr($this->get_id()); ?>">
454
- <div class="mf-checkbox-option">
455
- <label><?php echo \MetForm\Utils\Util::kses(($mf_listing_optin_option_text_position == 'before') ? $mf_listing_optin_option_text :''); ?>
456
- <input type="checkbox" class="mf-input mf-checkbox-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" name="<?php echo esc_attr($mf_input_name); ?>"
457
- value="1"
458
- >
459
- <span><?php echo \MetForm\Utils\Util::kses(($mf_listing_optin_option_text_position == 'after') ? $mf_listing_optin_option_text :''); ?></span>
460
- </label>
461
- </div>
462
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  <?php
464
- if($mf_input_help_text != ''){
465
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
466
- }
467
- echo "</div>";
468
  }
469
 
470
- }
92
  'label' => esc_html__( 'Name : ', 'metform' ),
93
  'type' => Controls_Manager::HIDDEN,
94
  'default' => $this->get_name(),
95
+ 'frontend_available' => true
96
  ]
97
  );
98
 
160
 
161
  $this->input_setting_controls();
162
 
163
+ $this->add_control(
164
+ 'mf_input_validation_type',
165
+ [
166
+ 'label' => __( 'Validation Type', 'metform' ),
167
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
168
+ 'default' => 'none',
169
+ ]
170
+ );
171
+
172
  $this->end_controls_section();
173
 
174
  if(class_exists('\MetForm_Pro\Base\Package')){
260
  $this->add_control(
261
  'mf_input_required_indicator_color',
262
  [
263
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
264
  'type' => Controls_Manager::COLOR,
265
  'scheme' => [
266
  'type' => Scheme_Color::get_type(),
267
  'value' => Scheme_Color::COLOR_1,
268
  ],
269
+ 'default' => '#f00',
270
  'selectors' => [
271
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
272
  ],
273
+ 'condition' => [
274
+ 'mf_input_required' => 'yes',
275
+ ],
276
  ]
277
  );
278
 
440
  );
441
 
442
  $this->end_controls_section();
443
+
444
+ $this->start_controls_section(
445
+ 'help_text_section',
446
+ [
447
+ 'label' => esc_html__( 'Help Text', 'metform' ),
448
+ 'tab' => Controls_Manager::TAB_STYLE,
449
+ 'condition' => [
450
+ 'mf_input_help_text!' => ''
451
+ ]
452
+ ]
453
+ );
454
+
455
+ $this->input_help_text_controls();
456
+
457
+ $this->end_controls_section();
458
 
459
  $this->insert_pro_message();
460
  }
463
  $settings = $this->get_settings_for_display();
464
  extract($settings);
465
 
466
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
467
 
468
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
469
 
470
+ $configData = [
471
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
472
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
473
+ ];
 
 
 
474
  ?>
475
+
476
+ <div class="mf-input-wrapper">
477
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
478
+ <label class="mf-input-label" for="mf-input-optin-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
479
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
480
+ </label>
481
+ <?php endif; ?>
482
+
483
+ <div class="mf-checkbox" id="mf-input-optin-<?php echo esc_attr($this->get_id()); ?>">
484
+ <div class="mf-checkbox-option">
485
+ <label><?php echo \MetForm\Utils\Util::kses(($mf_listing_optin_option_text_position == 'before') ? $mf_listing_optin_option_text :''); ?>
486
+ <input
487
+ type="checkbox"
488
+ class="mf-input mf-checkbox-input <?php echo $class; ?>"
489
+ name="<?php echo esc_attr($mf_input_name); ?>"
490
+ value="1"
491
+ <?php if ( !$is_edit_mode ): ?>
492
+ onInput=${ parent.handleOptin }
493
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
494
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
495
+ <?php endif; ?>
496
+ />
497
+ <span><?php echo esc_html(($mf_listing_optin_option_text_position == 'after') ? $mf_listing_optin_option_text :''); ?></span>
498
+ </label>
499
+ </div>
500
+ </div>
501
+
502
+ <?php if ( !$is_edit_mode ): ?>
503
+ <${validation.ErrorMessage}
504
+ errors=${validation.errors}
505
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
506
+ as=${html`<span className="mf-error-message"></span>`}
507
+ />
508
+ <?php endif; ?>
509
+
510
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
511
+ </div>
512
+
513
  <?php
 
 
 
 
514
  }
515
 
516
+ }
widgets/manifest.php CHANGED
@@ -64,7 +64,6 @@ Class Manifest{
64
  require_once plugin_dir_path(__FILE__) . 'range/range.php';
65
  require_once plugin_dir_path(__FILE__) . 'url/url.php';
66
  require_once plugin_dir_path(__FILE__) . 'password/password.php';
67
- require_once plugin_dir_path(__FILE__) . 'response/response.php';
68
  require_once plugin_dir_path(__FILE__) . 'listing-fname/listing-fname.php';
69
  require_once plugin_dir_path(__FILE__) . 'listing-lname/listing-lname.php';
70
  require_once plugin_dir_path(__FILE__) . 'listing-optin/listing-optin.php';
@@ -98,7 +97,6 @@ Class Manifest{
98
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Range() );
99
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Url() );
100
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Password() );
101
- \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Response() );
102
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Fname() );
103
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Lname() );
104
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Optin() );
64
  require_once plugin_dir_path(__FILE__) . 'range/range.php';
65
  require_once plugin_dir_path(__FILE__) . 'url/url.php';
66
  require_once plugin_dir_path(__FILE__) . 'password/password.php';
 
67
  require_once plugin_dir_path(__FILE__) . 'listing-fname/listing-fname.php';
68
  require_once plugin_dir_path(__FILE__) . 'listing-lname/listing-lname.php';
69
  require_once plugin_dir_path(__FILE__) . 'listing-optin/listing-optin.php';
97
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Range() );
98
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Url() );
99
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Password() );
 
100
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Fname() );
101
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Lname() );
102
  \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \Elementor\MetForm_Input_Listing_Optin() );
widgets/multi-select/multi-select.php CHANGED
@@ -43,7 +43,7 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
43
  $input_fields = new Repeater();
44
 
45
  $input_fields->add_control(
46
- 'mf_input_option_text', [
47
  'label' => esc_html__( 'Input Field Text', 'metform' ),
48
  'type' => Controls_Manager::TEXT,
49
  'default' => esc_html__( 'Input Text' , 'metform' ),
@@ -52,7 +52,7 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
52
  ]
53
  );
54
  $input_fields->add_control(
55
- 'mf_input_option_value', [
56
  'label' => esc_html__( 'Input Field Value', 'metform' ),
57
  'type' => Controls_Manager::TEXT,
58
  'default' => esc_html__( 'Input Value' , 'metform' ),
@@ -93,21 +93,21 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
93
  'label' => esc_html__( 'Multi Select List', 'metform' ),
94
  'type' => Controls_Manager::REPEATER,
95
  'fields' => $input_fields->get_controls(),
96
- 'title_field' => '{{{ mf_input_option_text }}}',
97
  'default' => [
98
  [
99
- 'mf_input_option_text' => 'Item 1',
100
- 'mf_input_option_value' => 'value-1',
101
  'mf_input_option_status' => '',
102
  ],
103
  [
104
- 'mf_input_option_text' => 'Item 2',
105
- 'mf_input_option_value' => 'value-2',
106
  'mf_input_option_status' => '',
107
  ],
108
  [
109
- 'mf_input_option_text' => 'Item 3',
110
- 'mf_input_option_value' => 'value-3',
111
  'mf_input_option_status' => '',
112
  ],
113
  ],
@@ -127,6 +127,15 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
127
 
128
  $this->input_setting_controls();
129
 
 
 
 
 
 
 
 
 
 
130
  $this->end_controls_section();
131
 
132
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -179,44 +188,85 @@ Class MetForm_Input_Multi_Select extends Widget_Base{
179
  }
180
 
181
  protected function render($instance = []){
182
- $settings = $this->get_settings_for_display();
 
183
  extract($settings);
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
186
 
187
- echo "<div class='mf-input-wrapper'>";
188
-
189
- if($mf_input_label_status == 'yes'){
190
- ?>
191
- <label class="mf-input-label" for="mf-input-multi-select-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
192
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
193
- </label>
194
- <?php
195
- }
196
- ?>
197
- <select class="mf-input mf-input-multiselect <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-multi-select-<?php echo esc_attr($this->get_id()); ?>"
198
- name="<?php echo esc_attr($mf_input_name); ?>[]"
199
- multiple="multiple"
200
- >
201
- <?php
202
- foreach($mf_input_list as $value){
203
- ?>
204
- <option value="<?php echo esc_attr($value['mf_input_option_value']); ?>"
205
- <?php echo esc_attr($value['mf_input_option_status']); ?>
206
- <?php echo esc_attr($value['mf_input_option_selected']); ?>
207
- >
208
- <?php echo esc_html($value['mf_input_option_text']); ?>
209
- </option>
210
- <?php
211
  }
212
- ?>
213
- </select>
214
 
215
- <?php
216
- if($mf_input_help_text != ''){
217
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
218
- }
219
- echo "</div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  }
221
 
222
- }
43
  $input_fields = new Repeater();
44
 
45
  $input_fields->add_control(
46
+ 'label', [
47
  'label' => esc_html__( 'Input Field Text', 'metform' ),
48
  'type' => Controls_Manager::TEXT,
49
  'default' => esc_html__( 'Input Text' , 'metform' ),
52
  ]
53
  );
54
  $input_fields->add_control(
55
+ 'value', [
56
  'label' => esc_html__( 'Input Field Value', 'metform' ),
57
  'type' => Controls_Manager::TEXT,
58
  'default' => esc_html__( 'Input Value' , 'metform' ),
93
  'label' => esc_html__( 'Multi Select List', 'metform' ),
94
  'type' => Controls_Manager::REPEATER,
95
  'fields' => $input_fields->get_controls(),
96
+ 'title_field' => '{{{ label }}}',
97
  'default' => [
98
  [
99
+ 'label' => 'Item 1',
100
+ 'value' => 'value-1',
101
  'mf_input_option_status' => '',
102
  ],
103
  [
104
+ 'label' => 'Item 2',
105
+ 'value' => 'value-2',
106
  'mf_input_option_status' => '',
107
  ],
108
  [
109
+ 'label' => 'Item 3',
110
+ 'value' => 'value-3',
111
  'mf_input_option_status' => '',
112
  ],
113
  ],
127
 
128
  $this->input_setting_controls();
129
 
130
+ $this->add_control(
131
+ 'mf_input_validation_type',
132
+ [
133
+ 'label' => __( 'Validation Type', 'metform' ),
134
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
135
+ 'default' => 'none',
136
+ ]
137
+ );
138
+
139
  $this->end_controls_section();
140
 
141
  if(class_exists('\MetForm_Pro\Base\Package')){
188
  }
189
 
190
  protected function render($instance = []){
191
+ $settings = $this->get_settings_for_display();
192
+ $inputWrapStart = $inputWrapEnd = '';
193
  extract($settings);
194
+
195
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
196
+
197
+ /**
198
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
199
+ */
200
+ if ( $is_edit_mode ):
201
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
202
+ $inputWrapEnd = '`</script>';
203
+ endif;
204
+
205
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
206
 
207
+ $configData = [
208
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
209
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
210
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
211
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
212
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
213
+ ];
214
 
215
+ $mf_default_input_list = isset($mf_input_list) ? array_values(array_filter($mf_input_list, function($item){
216
+ if(isset($item['mf_input_option_selected']) && !empty($item['mf_input_option_selected'])){
217
+ return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  }
219
+ return false;
220
+ })) : array();
221
 
222
+ ?>
223
+
224
+ <?php echo $inputWrapStart; ?>
225
+
226
+ <div className="mf-input-wrapper">
227
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
228
+ <label className="mf-input-label" htmlFor="mf-input-multi-select-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
229
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
230
+ </label>
231
+ <?php endif; ?>
232
+
233
+ <${props.Select}
234
+ isOptionDisabled=${option => option.mf_input_option_status === 'disabled'}
235
+ className=${"mf-input mf-input-multiselect <?php echo $class; ?> " + ( validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'mf-invalid' : '' )}
236
+ classNamePrefix="mf_multiselect"
237
+ value=${parent.getValue("<?php echo esc_attr($mf_input_name); ?>") ? <?php echo json_encode($mf_input_list); ?>.filter(item => {
238
+ if(parent.state.formData['<?php echo esc_attr($mf_input_name); ?>'] && parent.state.formData['<?php echo esc_attr($mf_input_name); ?>'].indexOf(item.value) != -1 ){
239
+ return item;
240
+ }
241
+ }) : <?php echo json_encode( $mf_default_input_list ); ?>}
242
+ name='<?php echo esc_attr($mf_input_name); ?>'
243
+ options=${<?php echo json_encode($mf_input_list); ?>}
244
+ onChange=${(el) => {
245
+ setValue("<?php echo esc_attr($mf_input_name); ?>", '');
246
+ if(el != null){
247
+ setValue("<?php echo esc_attr($mf_input_name); ?>", el, true);
248
+ }
249
+ parent.multiSelectChange(el, '<?php echo esc_attr($mf_input_name); ?>');
250
+ }}
251
+ isMulti
252
+ />
253
+
254
+ ${register({ name: "<?php echo esc_attr($mf_input_name); ?>" }, parent.activateValidation(<?php echo json_encode($configData); ?>))}
255
+
256
+ <?php if ( !$is_edit_mode ) : ?>
257
+ <${validation.ErrorMessage}
258
+ errors=${validation.errors}
259
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
260
+ as=${html`<span className="mf-error-message"></span>`}
261
+ />
262
+ <?php endif; ?>
263
+
264
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
265
+ </div>
266
+
267
+ <?php echo $inputWrapEnd; ?>
268
+
269
+ <?php
270
  }
271
 
272
+ }
widgets/number/number.php CHANGED
@@ -119,37 +119,52 @@ Class MetForm_Input_Number extends Widget_Base{
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
- $validation = [
123
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
124
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
125
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
126
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
127
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
128
- ];
129
-
130
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
131
 
132
- echo "<div class='mf-input-wrapper'>";
133
-
134
- if($mf_input_label_status == 'yes'){
135
- ?>
136
- <label class="mf-input-label" for="mf-input-number-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
137
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
138
- </label>
139
- <?php
140
- }
141
  ?>
142
- <input type="number" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-mobile-<?php echo esc_attr($this->get_id()); ?>"
143
- name="<?php echo esc_attr($mf_input_name); ?>"
144
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
145
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
146
- <?php //echo esc_attr($mf_input_readonly_status); ?>
147
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  <?php
149
- if($mf_input_help_text != ''){
150
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
151
- }
152
- echo "</div>";
153
  }
154
 
155
- }
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
123
+
 
 
 
 
 
 
124
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
125
 
126
+ $configData = [
127
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
128
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
129
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
130
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
131
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
132
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
133
+ ];
 
134
  ?>
135
+
136
+ <div class="mf-input-wrapper">
137
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
138
+ <label class="mf-input-label" for="mf-input-number-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
139
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
140
+ </label>
141
+ <?php endif; ?>
142
+
143
+ <input
144
+ type="number"
145
+ class="mf-input <?php echo $class; ?>"
146
+ id="mf-input-mobile-<?php echo esc_attr($this->get_id()); ?>"
147
+ name="<?php echo esc_attr($mf_input_name); ?>"
148
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
149
+ <?php if ( !$is_edit_mode ): ?>
150
+ onInput=${parent.handleChange}
151
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
152
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
153
+ <?php endif; ?>
154
+ />
155
+
156
+ <?php if ( !$is_edit_mode ): ?>
157
+ <${validation.ErrorMessage}
158
+ errors=${validation.errors}
159
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
160
+ as=${html`<span className="mf-error-message"></span>`}
161
+ />
162
+ <?php endif; ?>
163
+
164
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
165
+ </div>
166
+
167
  <?php
 
 
 
 
168
  }
169
 
170
+ }
widgets/password/password.php CHANGED
@@ -119,36 +119,50 @@ Class MetForm_Input_Password extends Widget_Base{
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
- $validation = [
123
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
124
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
125
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
126
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
127
- ];
128
-
129
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
130
 
131
- echo "<div class='mf-input-wrapper'>";
132
-
133
- if($mf_input_label_status == 'yes'){
134
- ?>
135
- <label class="mf-input-label" for="mf-input-password-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
136
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
137
- </label>
138
- <?php
139
- }
140
  ?>
141
- <input type="password" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-password-<?php echo esc_attr($this->get_id()); ?>"
142
- name="<?php echo esc_attr($mf_input_name); ?>"
143
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
144
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
145
- <?php //echo esc_attr($mf_input_readonly_status); ?>
146
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  <?php
148
- if($mf_input_help_text != ''){
149
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
150
- }
151
- echo "</div>";
152
  }
153
 
154
- }
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
 
123
 
124
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
125
  ?>
126
+
127
+ <div class="mf-input-wrapper">
128
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
129
+ <label class="mf-input-label" for="mf-input-password-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
130
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
131
+ </label>
132
+ <?php endif; ?>
133
+
134
+ <input type="password" class="mf-input <?php echo $class; ?>" id="mf-input-password-<?php echo esc_attr($this->get_id()); ?>"
135
+ name="<?php echo esc_attr($mf_input_name); ?>"
136
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
137
+ onInput=${ parent.handleChange }
138
+
139
+ <?php if ( !$is_edit_mode ) :
140
+ $configData = [
141
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
142
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
143
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
144
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
145
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
146
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
147
+ ];
148
+ ?>
149
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
150
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
151
+ <?php endif; ?>
152
+ />
153
+
154
+ <?php if ( !$is_edit_mode ) : ?>
155
+ <${validation.ErrorMessage}
156
+ errors=${validation.errors}
157
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
158
+ as=${html`<span className="mf-error-message"></span>`}
159
+ />
160
+ <?php endif; ?>
161
+
162
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
163
+ </div>
164
+
165
  <?php
 
 
 
 
166
  }
167
 
168
+ }
widgets/radio/radio.php CHANGED
@@ -7,10 +7,11 @@ Class MetForm_Input_Radio extends Widget_Base{
7
  use \MetForm\Traits\Common_Controls;
8
  use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
10
-
11
- public function __construct( $data = [], $args = null ) {
12
  parent::__construct( $data, $args );
13
- if(class_exists('\Elementor\Icons_Manager') && method_exists('\Elementor\Icons_Manager', 'enqueue_shim')){
 
14
  \Elementor\Icons_Manager::enqueue_shim();
15
  }
16
  }
@@ -101,6 +102,7 @@ Class MetForm_Input_Radio extends Widget_Base{
101
  'default' => $this->get_name(),
102
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
103
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word.', 'metform'),
 
104
  ]
105
  );
106
 
@@ -220,6 +222,15 @@ Class MetForm_Input_Radio extends Widget_Base{
220
 
221
  $this->input_setting_controls();
222
 
 
 
 
 
 
 
 
 
 
223
  $this->end_controls_section();
224
 
225
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -311,19 +322,19 @@ Class MetForm_Input_Radio extends Widget_Base{
311
  $this->add_control(
312
  'mf_input_required_indicator_color',
313
  [
314
- 'label' => esc_html__( 'Required indicator color:', 'metform' ),
315
  'type' => Controls_Manager::COLOR,
316
  'scheme' => [
317
  'type' => Scheme_Color::get_type(),
318
  'value' => Scheme_Color::COLOR_1,
319
  ],
320
- 'default' => '#FF0000',
321
  'selectors' => [
322
- '{{WRAPPER}} .mf-input-label .mf-input-required-indicator, {{WRAPPER}} .mf-input-wrapper.mf-field-error .mf-radio-option, {{WRAPPER}} .mf-input-wrapper .error' => 'color: {{VALUE}}',
323
  ],
324
- // 'condition' => [
325
- // 'mf_input_required' => 'yes',
326
- // ],
327
  ]
328
  );
329
 
@@ -551,40 +562,64 @@ Class MetForm_Input_Radio extends Widget_Base{
551
  $settings = $this->get_settings_for_display();
552
  extract($settings);
553
 
554
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
555
 
556
- echo "<div class='mf-input-wrapper'>";
557
 
558
- if($mf_input_label_status == 'yes'){
559
- ?>
560
- <label class="mf-radio-label mf-input-label" for="mf-input-radio-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
561
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
562
- </label>
563
- <?php
564
- }
565
  ?>
566
- <div class="mf-radio" id="mf-input-radio-<?php echo esc_attr($this->get_id()); ?>">
567
- <?php
568
- foreach($mf_input_list as $option){
569
- ?>
570
- <div class="mf-radio-option <?php echo esc_attr($option['mf_input_option_status']); ?>">
571
- <label><?php echo esc_html(($mf_input_option_text_position == 'before') ? $option['mf_input_option_text']:''); ?>
572
- <input type="radio" class="mf-input mf-radio-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" name="<?php echo esc_attr($mf_input_name); ?>"
573
- value="<?php echo esc_attr($option['mf_input_option_value']); ?>"
574
- <?php echo esc_attr($option['mf_input_option_status']); ?>
575
- >
576
- <span><?php echo esc_html(($mf_input_option_text_position == 'after') ? $option['mf_input_option_text']:''); ?></span>
577
- </label>
578
- </div>
579
- <?php
580
- }
581
- ?>
582
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
583
  <?php
584
- if($mf_input_help_text != ''){
585
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
586
- }
587
- echo "</div>";
588
  }
589
 
590
- }
7
  use \MetForm\Traits\Common_Controls;
8
  use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
10
+
11
+ public function __construct( $data = [], $args = null ) {
12
  parent::__construct( $data, $args );
13
+
14
+ if ( class_exists('\Elementor\Icons_Manager') && method_exists('\Elementor\Icons_Manager', 'enqueue_shim') ) {
15
  \Elementor\Icons_Manager::enqueue_shim();
16
  }
17
  }
102
  'default' => $this->get_name(),
103
  'title' => esc_html__( 'Enter here name of the input', 'metform' ),
104
  'description' => esc_html__('Name is must required. Enter name without space or any special character. use only underscore/ hyphen (_/-) for multiple word.', 'metform'),
105
+ 'frontend_available' => true
106
  ]
107
  );
108
 
222
 
223
  $this->input_setting_controls();
224
 
225
+ $this->add_control(
226
+ 'mf_input_validation_type',
227
+ [
228
+ 'label' => __( 'Validation Type', 'metform' ),
229
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
230
+ 'default' => 'none',
231
+ ]
232
+ );
233
+
234
  $this->end_controls_section();
235
 
236
  if(class_exists('\MetForm_Pro\Base\Package')){
322
  $this->add_control(
323
  'mf_input_required_indicator_color',
324
  [
325
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
326
  'type' => Controls_Manager::COLOR,
327
  'scheme' => [
328
  'type' => Scheme_Color::get_type(),
329
  'value' => Scheme_Color::COLOR_1,
330
  ],
331
+ 'default' => '#f00',
332
  'selectors' => [
333
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
334
  ],
335
+ 'condition' => [
336
+ 'mf_input_required' => 'yes',
337
+ ],
338
  ]
339
  );
340
 
562
  $settings = $this->get_settings_for_display();
563
  extract($settings);
564
 
565
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
566
 
567
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
568
 
569
+ $configData = [
570
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
571
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
572
+ ];
 
 
 
573
  ?>
574
+
575
+ <div class="mf-input-wrapper">
576
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
577
+ <label class="mf-input-label" for="mf-input-radio-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
578
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
579
+ </label>
580
+ <?php endif; ?>
581
+
582
+ <div class="mf-radio" id="mf-input-radio-<?php echo esc_attr($this->get_id()); ?>">
583
+ <?php
584
+ foreach($mf_input_list as $option) {
585
+ $value = $option['mf_input_option_value'];
586
+ ?>
587
+ <div class="mf-radio-option <?php echo esc_attr($option['mf_input_option_status']); ?>">
588
+ <label><?php echo esc_html(($mf_input_option_text_position == 'before') ? $option['mf_input_option_text']:''); ?>
589
+ <input
590
+ type="radio"
591
+ class="mf-input mf-radio-input <?php echo $class; ?>"
592
+ name="<?php echo esc_attr($mf_input_name); ?>"
593
+ value="<?php echo esc_attr($option['mf_input_option_value']); ?>"
594
+ <?php echo esc_attr($option['mf_input_option_status']); ?>
595
+ <?php if ( !$is_edit_mode ): ?>
596
+ onChange=${parent.handleChange}
597
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
598
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
599
+ checked=${'<?php echo esc_attr( $value ); ?>' === parent.getValue('<?php echo esc_attr( $mf_input_name ); ?>')}
600
+ <?php endif; ?>
601
+ />
602
+ <span><?php echo esc_html(($mf_input_option_text_position == 'after') ? $option['mf_input_option_text']:''); ?></span>
603
+ </label>
604
+ </div>
605
+ <?php
606
+ }
607
+ ?>
608
+ </div>
609
+
610
+ <?php if ( !$is_edit_mode ) : ?>
611
+ <${validation.ErrorMessage}
612
+ errors=${validation.errors}
613
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
614
+ as=${html`<span className="mf-error-message"></span>`}
615
+ />
616
+ <?php endif; ?>
617
+
618
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
619
+ </div>
620
+
621
  <?php
622
+
 
 
 
623
  }
624
 
625
+ }
widgets/range/range.php CHANGED
@@ -52,12 +52,22 @@ Class MetForm_Input_Range extends Widget_Base{
52
 
53
  $this->input_setting_controls();
54
 
 
 
 
 
 
 
 
 
 
55
  $this->add_control(
56
  'mf_input_min_length_range',
57
  [
58
  'label' => esc_html__( 'Min Length', 'metform' ),
59
  'type' => Controls_Manager::NUMBER,
60
  'step' => 1,
 
61
  ]
62
  );
63
  $this->add_control(
@@ -66,31 +76,23 @@ Class MetForm_Input_Range extends Widget_Base{
66
  'label' => esc_html__( 'Max Length', 'metform' ),
67
  'type' => Controls_Manager::NUMBER,
68
  'step' => 1,
69
- ]
70
- );
71
-
72
- $this->add_control(
73
- 'mf_input_range_default_value',
74
- [
75
- 'label' => esc_html__( 'Default Value', 'metform' ),
76
- 'type' => Controls_Manager::TEXT,
77
- 'description' => esc_html__('For range use comma ,')
78
  ]
79
  );
80
 
81
  $this->add_control(
82
  'mf_input_steps_control',
83
  [
84
- 'label' => esc_html__( 'steps', 'metform' ),
85
  'type' => Controls_Manager::NUMBER,
86
  'default' => 1,
87
  ]
88
  );
89
 
90
  $this->add_control(
91
- 'mf_input_range_control',
92
  [
93
- 'label' => __( 'Input as range : ', 'metform' ),
94
  'type' => Controls_Manager::SWITCHER,
95
  'true' => __( 'Yes', 'metform' ),
96
  'false' => __( 'No', 'metform' ),
@@ -98,6 +100,26 @@ Class MetForm_Input_Range extends Widget_Base{
98
  'default' => 'false',
99
  ]
100
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  $this->end_controls_section();
103
 
@@ -123,7 +145,7 @@ Class MetForm_Input_Range extends Widget_Base{
123
  $this->start_controls_section(
124
  'input_section',
125
  [
126
- 'label' => esc_html__( 'Input', 'metform' ),
127
  'tab' => Controls_Manager::TAB_STYLE,
128
  ]
129
  );
@@ -150,7 +172,7 @@ Class MetForm_Input_Range extends Widget_Base{
150
  'size' => 36 ,
151
  ],
152
  'selectors' => [
153
- '{{WRAPPER}} .asRange .asRange-pointer .asRange-tip' => 'width: {{SIZE}}{{UNIT}};',
154
  ]
155
  ]
156
  );
@@ -165,7 +187,7 @@ Class MetForm_Input_Range extends Widget_Base{
165
  'size' => 20,
166
  ],
167
  'selectors' => [
168
- '{{WRAPPER}} .asRange .asRange-pointer .asRange-tip' => 'height: {{SIZE}}{{UNIT}}; line-height: {{SIZE}}{{UNIT}}',
169
  ]
170
  ]
171
  );
@@ -178,7 +200,7 @@ Class MetForm_Input_Range extends Widget_Base{
178
  'type' => Controls_Manager::DIMENSIONS,
179
  'size_units' => [ 'px', '%', 'em' ],
180
  'selectors' => [
181
- '{{WRAPPER}} .asRange .asRange-pointer .asRange-tip' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
182
  ],
183
  ]
184
  );
@@ -206,69 +228,109 @@ Class MetForm_Input_Range extends Widget_Base{
206
 
207
  protected function render($instance = []){
208
  $settings = $this->get_settings_for_display();
209
- extract($settings);
 
210
 
211
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
212
-
213
- echo "<div class='mf-input-wrapper'>";
 
 
 
 
 
 
214
 
215
- if($mf_input_label_status == 'yes'){
216
- ?>
217
- <label class="mf-input-label" for="mf-input-range-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
218
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
219
- </label>
220
- <?php
221
- }
222
  ?>
223
-
224
- <div class="range-slider">
225
 
226
- <?php
227
- $default_value = '';
228
- if(!empty($mf_input_range_default_value)){
229
- if(is_numeric($mf_input_range_default_value)){
230
- $default_value = $mf_input_range_default_value;
231
- } elseif (is_string($mf_input_range_default_value)) {
232
-
233
- $split_text = explode(',', $mf_input_range_default_value);
234
 
 
235
 
236
- if(is_numeric(trim($split_text[0])) && is_numeric(trim($split_text[1]))){
237
- $default_value = trim($split_text[0]) . ',' . trim($split_text[1]);
 
 
 
 
 
 
 
 
 
238
  }
239
-
240
  }
241
- }
242
 
243
-
244
- // if(($default_value == $mf_input_min_length_range) && ($default_value == $mf_input_max_length_range)){
245
- // $default_value = $mf_input_min_length_range + 1;
246
- // } elseif ($default_value >= $mf_input_max_length_range) {
247
- // $default_value = $mf_input_max_length_range;
248
- // } elseif ($default_value <= $mf_input_min_length_range) {
249
- // $default_value = $mf_input_min_length_range - 1;
250
- // }
251
- ?>
252
 
253
- <input class="mf-input mf-rs-range <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-range-<?php echo esc_attr($this->get_id()); ?>"
254
- name="<?php echo esc_attr($mf_input_name); ?>"
255
- <?php //echo esc_attr(($mf_input_required === 'yes') ? 'required' : '')?>
256
- <?php //echo esc_attr($mf_input_readonly_status); ?>
257
- value="<?php echo esc_attr($default_value); ?>"
258
- min="<?php echo esc_attr(($mf_input_min_length_range != '') ? $mf_input_min_length_range : 1); ?>"
259
- max="<?php echo esc_attr(($mf_input_max_length_range != '') ? $mf_input_max_length_range : 100); ?>"
260
- step="<?php echo esc_attr($mf_input_steps_control);?>"
261
- range="<?php echo $mf_input_range_control;?>"
262
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
 
 
264
  </div>
265
 
 
266
 
267
  <?php
268
- if($mf_input_help_text != ''){
269
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
270
- }
271
- echo "</div>";
272
  }
273
 
274
- }
52
 
53
  $this->input_setting_controls();
54
 
55
+ $this->add_control(
56
+ 'mf_input_validation_type',
57
+ [
58
+ 'label' => __( 'Validation Type', 'metform' ),
59
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
60
+ 'default' => 'none',
61
+ ]
62
+ );
63
+
64
  $this->add_control(
65
  'mf_input_min_length_range',
66
  [
67
  'label' => esc_html__( 'Min Length', 'metform' ),
68
  'type' => Controls_Manager::NUMBER,
69
  'step' => 1,
70
+ 'default' => 0,
71
  ]
72
  );
73
  $this->add_control(
76
  'label' => esc_html__( 'Max Length', 'metform' ),
77
  'type' => Controls_Manager::NUMBER,
78
  'step' => 1,
79
+ 'default' => 100,
 
 
 
 
 
 
 
 
80
  ]
81
  );
82
 
83
  $this->add_control(
84
  'mf_input_steps_control',
85
  [
86
+ 'label' => esc_html__( 'Steps', 'metform' ),
87
  'type' => Controls_Manager::NUMBER,
88
  'default' => 1,
89
  ]
90
  );
91
 
92
  $this->add_control(
93
+ 'mf_input_range_control',
94
  [
95
+ 'label' => __( 'Dual range input:', 'metform' ),
96
  'type' => Controls_Manager::SWITCHER,
97
  'true' => __( 'Yes', 'metform' ),
98
  'false' => __( 'No', 'metform' ),
100
  'default' => 'false',
101
  ]
102
  );
103
+
104
+ $this->add_control(
105
+ 'mf_input_range_important_note',
106
+ [
107
+ 'type' => Controls_Manager::RAW_HTML,
108
+ 'raw' => __( '<strong>Important Note : </strong> For taking dual range input, You have to enter dual default value in the field Value (Exactly bottom of this notice field. ). Example: Min:10, Max:20', 'metform' ),
109
+ 'content_classes' => 'elementor-panel-alert elementor-panel-alert-warning',
110
+ 'condition' => [
111
+ 'mf_input_range_control' => 'true'
112
+ ]
113
+ ]
114
+ );
115
+
116
+ $this->add_control(
117
+ 'mf_input_range_default_value',
118
+ [
119
+ 'label' => esc_html__( 'Value', 'metform' ),
120
+ 'type' => Controls_Manager::TEXT,
121
+ ]
122
+ );
123
 
124
  $this->end_controls_section();
125
 
145
  $this->start_controls_section(
146
  'input_section',
147
  [
148
+ 'label' => esc_html__( 'Range', 'metform' ),
149
  'tab' => Controls_Manager::TAB_STYLE,
150
  ]
151
  );
172
  'size' => 36 ,
173
  ],
174
  'selectors' => [
175
+ '{{WRAPPER}} .mf-input-wrapper .input-range__label-container' => 'width: {{SIZE}}{{UNIT}};',
176
  ]
177
  ]
178
  );
187
  'size' => 20,
188
  ],
189
  'selectors' => [
190
+ '{{WRAPPER}} .mf-input-wrapper .input-range__label-container' => 'height: {{SIZE}}{{UNIT}}; line-height: {{SIZE}}{{UNIT}}',
191
  ]
192
  ]
193
  );
200
  'type' => Controls_Manager::DIMENSIONS,
201
  'size_units' => [ 'px', '%', 'em' ],
202
  'selectors' => [
203
+ '{{WRAPPER}} .mf-input-wrapper .input-range__label-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
204
  ],
205
  ]
206
  );
228
 
229
  protected function render($instance = []){
230
  $settings = $this->get_settings_for_display();
231
+ $inputWrapStart = $inputWrapEnd = '';
232
+ extract($settings);
233
 
234
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
235
+
236
+ /**
237
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
238
+ */
239
+ if ( $is_edit_mode ):
240
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
241
+ $inputWrapEnd = '`</script>';
242
+ endif;
243
 
244
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
245
  ?>
246
+
247
+ <?php echo $inputWrapStart; ?>
248
 
249
+ <div className="mf-input-wrapper">
250
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
251
+ <label className="mf-input-label" htmlFor="mf-input-range-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
252
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
253
+ </label>
254
+ <?php endif; ?>
 
 
255
 
256
+ <div className="range-slider">
257
 
258
+
259
+ <?php
260
+ $default_value = '';
261
+ if(!empty($mf_input_range_default_value)){
262
+ if(is_numeric($mf_input_range_default_value)){
263
+ $default_value = $mf_input_range_default_value;
264
+ } elseif (is_string($mf_input_range_default_value)) {
265
+ $split_text = explode(',', $mf_input_range_default_value);
266
+ if(is_numeric(trim($split_text[0])) && is_numeric(trim($split_text[1]))){
267
+ $default_value = trim($split_text[0]) . ',' . trim($split_text[1]);
268
+ }
269
  }
 
270
  }
 
271
 
272
+ $minAttr = $mf_input_min_length_range === '' ? '' : 'min="'. esc_attr( $mf_input_min_length_range ) .'"';
273
+ $multipile_value = explode(",",$default_value);
 
 
 
 
 
 
 
274
 
275
+ if ($mf_input_range_control == 'true') {
276
+ ?>
277
+ <${props.InputRange}
278
+ maxValue=${<?php echo esc_attr(($mf_input_max_length_range != '') ? $mf_input_max_length_range : 100); ?>}
279
+ minValue=${<?php echo esc_attr(($mf_input_min_length_range != '') ? $mf_input_min_length_range : 0); ?>}
280
+ step=${<?php echo esc_attr($mf_input_steps_control);?>}
281
+ onChange=${(el) => {
282
+ parent.handleMultipileRangeChange(el, '<?php echo esc_attr($mf_input_name); ?>')
283
+ }}
284
+ value=${
285
+ parent.state.formData['<?php echo esc_attr($mf_input_name); ?>'] ? {min: parent.state.formData['<?php echo esc_attr($mf_input_name); ?>']['0'], max: parent.state.formData['<?php echo esc_attr($mf_input_name); ?>']['1']} : {min:
286
+ <?php if(esc_attr($default_value)) { ?>
287
+ <?php echo $multipile_value[1] ? $mf_input_min_length_range <= $multipile_value[0] ? $multipile_value[0] : $mf_input_min_length_range : $multipile_value[0] ?>
288
+ <?php } else { echo esc_attr(($mf_input_min_length_range != '') ? $mf_input_min_length_range : 0); } ?>, max:
289
+ <?php if(esc_attr($default_value)) { ?>
290
+ <?php echo $multipile_value[1] ? $mf_input_max_length_range <= $multipile_value[1] ? $mf_input_max_length_range : $multipile_value[1] : 100 ?>
291
+ <?php } else { echo esc_attr(($mf_input_max_length_range != '') ? $mf_input_max_length_range : 100); } ?>
292
+ }
293
+ }
294
+ name="<?php echo esc_attr($mf_input_name); ?>"
295
+ />
296
+ <?php } else { ?>
297
+ <${props.InputRange}
298
+ maxValue=${<?php echo esc_attr(($mf_input_max_length_range != '') ? $mf_input_max_length_range : 100); ?>}
299
+ minValue=${<?php echo esc_attr(($mf_input_min_length_range != '') ? $mf_input_min_length_range : 0); ?>}
300
+ step=${<?php echo esc_attr($mf_input_steps_control);?>}
301
+ onChange=${(el) => {
302
+ parent.handleRangeChange(el, '<?php echo esc_attr($mf_input_name); ?>')
303
+ }}
304
+ value=${<?php
305
+ if(esc_attr($default_value)) { ?>
306
+ Number(parent.state.formData['<?php echo esc_attr($mf_input_name); ?>']) || <?php if ($mf_input_min_length_range <= $multipile_value[0]) {
307
+ echo $multipile_value[0] >= $mf_input_max_length_range ? $mf_input_max_length_range : $multipile_value[0];
308
+ } else {
309
+ echo $mf_input_min_length_range;
310
+ } ?>
311
+ <?php } else { ?>
312
+ Number(parent.state.formData['<?php echo esc_attr($mf_input_name); ?>']) || <?php echo $mf_input_min_length_range; ?>
313
+ <?php }
314
+ ?>}
315
+ name="<?php echo esc_attr($mf_input_name); ?>"
316
+ />
317
+ <?php } ?>
318
+ </div>
319
+
320
+ <?php if ( !$is_edit_mode ) : ?>
321
+ <${validation.ErrorMessage}
322
+ errors=${validation.errors}
323
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
324
+ as=${html`<span className="mf-error-message"></span>`}
325
+ />
326
+ <?php endif; ?>
327
 
328
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
329
  </div>
330
 
331
+ <?php echo $inputWrapEnd; ?>
332
 
333
  <?php
 
 
 
 
334
  }
335
 
336
+ }
widgets/rating/rating.php CHANGED
@@ -51,6 +51,15 @@ Class MetForm_Input_Rating extends Widget_Base{
51
  );
52
 
53
  $this->input_setting_controls();
 
 
 
 
 
 
 
 
 
54
 
55
  $this->add_control(
56
  'mf_input_rating_number',
@@ -60,7 +69,7 @@ Class MetForm_Input_Rating extends Widget_Base{
60
  'min' => 2,
61
  'max' => 10,
62
  'step' => 1,
63
- 'default' => 3,
64
  ]
65
  );
66
 
@@ -100,10 +109,7 @@ Class MetForm_Input_Rating extends Widget_Base{
100
  'type' => Controls_Manager::DIMENSIONS,
101
  'size_units' => [ 'px', '%', 'em' ],
102
  'selectors' => [
103
- '{{WRAPPER}} .mf-input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
104
- '{{WRAPPER}} .mf-input-rating' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
105
- '{{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--default .select2-search--dropdown .select2-search__field, {{WRAPPER}} .mf-input-wrapper ul.select2-results__options .select2-results__option' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
106
- '{{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-input-wrapper .range-slider' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important',
107
  ],
108
  ]
109
  );
@@ -115,14 +121,18 @@ Class MetForm_Input_Rating extends Widget_Base{
115
  'type' => Controls_Manager::DIMENSIONS,
116
  'size_units' => [ 'px', '%', 'em' ],
117
  'selectors' => [
118
- '{{WRAPPER}} .mf-input' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
119
- '{{WRAPPER}} .mf-input-rating' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
120
- '{{WRAPPER}} .mf-input-wrapper .select2-container--default .select2-selection--single, {{WRAPPER}} .select2-container--open .select2-dropdown--below' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
121
- '{{WRAPPER}} .mf-input-wrapper .select2-container .select2-selection--multiple .select2-selection__rendered, {{WRAPPER}} .mf-input-wrapper .range-slider' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
122
  ],
123
  ]
124
  );
125
 
 
 
 
 
 
 
 
126
  $this->start_controls_tabs( 'mf_input_tabs_style' );
127
 
128
  $this->start_controls_tab(
@@ -142,9 +152,9 @@ Class MetForm_Input_Rating extends Widget_Base{
142
  'value' => Scheme_Color::COLOR_1,
143
  ],
144
  'selectors' => [
145
- '{{WRAPPER}} .mf-input-rating .star .mf-star' => 'color: {{VALUE}}',
146
  ],
147
- 'default' => '#CCCCCC',
148
  ]
149
  );
150
 
@@ -153,51 +163,16 @@ Class MetForm_Input_Rating extends Widget_Base{
153
  [
154
  'name' => 'mf_input_border',
155
  'label' => esc_html__( 'Border', 'metform' ),
156
- 'selector' => '{{WRAPPER}} .mf-input-rating .star',
157
  ]
158
  );
159
 
160
- $this->end_controls_tab();
161
-
162
- $this->start_controls_tab(
163
- 'mf_input_tabhover',
164
- [
165
- 'label' =>esc_html__( 'Hover', 'metform' ),
166
- ]
167
- );
168
-
169
- $this->add_control(
170
- 'mf_input_color_hover',
171
- [
172
- 'label' => esc_html__( 'Input Color', 'metform' ),
173
- 'type' => Controls_Manager::COLOR,
174
- 'scheme' => [
175
- 'type' => Scheme_Color::get_type(),
176
- 'value' => Scheme_Color::COLOR_1,
177
- ],
178
- 'selectors' => [
179
- '{{WRAPPER}} .mf-input-rating .star.hover i.mf-star' => 'color: {{VALUE}}',
180
- ],
181
- 'default' => '#ffdb72',
182
- ]
183
- );
184
-
185
- $this->add_group_control(
186
- Group_Control_Border::get_type(),
187
- [
188
- 'name' => 'mf_input_border_hover',
189
- 'label' => esc_html__( 'Border', 'metform' ),
190
- 'selector' => '{{WRAPPER}} .mf-input-rating .star.hover',
191
- ]
192
- );
193
-
194
-
195
  $this->end_controls_tab();
196
 
197
  $this->start_controls_tab(
198
  'mf_input_tabfocus',
199
  [
200
- 'label' =>esc_html__( 'Focus', 'metform' ),
201
  ]
202
  );
203
 
@@ -211,7 +186,7 @@ Class MetForm_Input_Rating extends Widget_Base{
211
  'value' => Scheme_Color::COLOR_1,
212
  ],
213
  'selectors' => [
214
- '{{WRAPPER}} .mf-input-rating .star.selected i.mf-star' => 'color: {{VALUE}}',
215
  ],
216
  'default' => '#ffdb72',
217
  ]
@@ -222,7 +197,7 @@ Class MetForm_Input_Rating extends Widget_Base{
222
  [
223
  'name' => 'mf_input_border_focus',
224
  'label' => esc_html__( 'Border', 'metform' ),
225
- 'selector' => '{{WRAPPER}} .mf-input-rating .star.selected',
226
  ]
227
  );
228
 
@@ -230,16 +205,6 @@ Class MetForm_Input_Rating extends Widget_Base{
230
  $this->end_controls_tab();
231
 
232
  $this->end_controls_tabs();
233
-
234
- $this->add_group_control(
235
- Group_Control_Typography::get_type(),
236
- [
237
- 'name' => 'mf_input_typgraphy',
238
- 'label' => esc_html__( 'Typography', 'metform' ),
239
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
240
- 'selector' => '{{WRAPPER}} ..mf-input-rating .star',
241
- ]
242
- );
243
 
244
  $this->add_responsive_control(
245
  'mf_input_border_radius',
@@ -263,20 +228,38 @@ Class MetForm_Input_Rating extends Widget_Base{
263
  'size' => 0,
264
  ],
265
  'selectors' => [
266
- '{{WRAPPER}} .mf-input-rating' => 'border-radius: {{SIZE}}{{UNIT}};',
267
  ],
268
  'condition' => [
269
  'mf_input_border_border!' => '',
270
  ],
271
  ]
272
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
 
274
  $this->add_group_control(
275
  Group_Control_Box_Shadow::get_type(),
276
  [
277
  'name' => 'mf_input_box_shadow',
278
  'label' => esc_html__( 'Box Shadow', 'metform' ),
279
- 'selector' => '{{WRAPPER}} .mf-input-rating',
280
  ]
281
  );
282
 
@@ -303,36 +286,62 @@ Class MetForm_Input_Rating extends Widget_Base{
303
  protected function render($instance = []){
304
  $settings = $this->get_settings_for_display();
305
  extract($settings);
 
 
306
 
307
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
308
 
309
- echo "<div class='mf-input-wrapper'>";
 
 
 
310
 
311
- if($mf_input_label_status == 'yes'){
312
- ?>
313
- <label class="mf-input-label" for="mf-input-rating"><?php echo esc_html($mf_input_label); ?>
314
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
315
- </label>
316
- <?php
317
- }
318
  ?>
319
- <ul class=" mf-input-rating">
320
- <?php for($i = 1; $i <= $mf_input_rating_number; $i++ ):?>
321
- <li class="star-li star <?php if($i == 1){echo 'selected';}?>" data-value="<?php echo esc_attr($i);?>">
322
- <i class="mf-star dashicons-before dashicons-star-filled"></i>
323
- </li>
324
- <?php endfor;?>
325
- </ul>
326
-
327
- <input type="hidden" class="mf-input mf-input-hidden <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-<?php echo esc_attr($this->get_id()); ?>"
328
- name="<?php echo esc_attr($mf_input_name); ?>" value="1"
329
- />
330
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  <?php
332
- if($mf_input_help_text != ''){
333
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
334
- }
335
- echo "</div>";
336
  }
337
-
338
- }
51
  );
52
 
53
  $this->input_setting_controls();
54
+
55
+ $this->add_control(
56
+ 'mf_input_validation_type',
57
+ [
58
+ 'label' => __( 'Validation Type', 'metform' ),
59
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
60
+ 'default' => 'none',
61
+ ]
62
+ );
63
 
64
  $this->add_control(
65
  'mf_input_rating_number',
69
  'min' => 2,
70
  'max' => 10,
71
  'step' => 1,
72
+ 'default' => 5,
73
  ]
74
  );
75
 
109
  'type' => Controls_Manager::DIMENSIONS,
110
  'size_units' => [ 'px', '%', 'em' ],
111
  'selectors' => [
112
+ '{{WRAPPER}} .mf-ratings > label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important',
 
 
 
113
  ],
114
  ]
115
  );
121
  'type' => Controls_Manager::DIMENSIONS,
122
  'size_units' => [ 'px', '%', 'em' ],
123
  'selectors' => [
124
+ '{{WRAPPER}} .mf-ratings > label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
 
 
 
125
  ],
126
  ]
127
  );
128
 
129
+ $this->add_control(
130
+ 'hr_1',
131
+ [
132
+ 'type' => Controls_Manager::DIVIDER,
133
+ ]
134
+ );
135
+
136
  $this->start_controls_tabs( 'mf_input_tabs_style' );
137
 
138
  $this->start_controls_tab(
152
  'value' => Scheme_Color::COLOR_1,
153
  ],
154
  'selectors' => [
155
+ '{{WRAPPER}} .mf-ratings:not(.is-selected), {{WRAPPER}} .mf-ratings.is-selected:not(:hover) > input:checked + label ~ label, {{WRAPPER}} .mf-ratings.is-selected > label:hover ~ label, {{WRAPPER}} .mf-ratings:not(.is-selected) > label:hover ~ label' => 'color: {{VALUE}}',
156
  ],
157
+ 'default' => '#ccc',
158
  ]
159
  );
160
 
163
  [
164
  'name' => 'mf_input_border',
165
  'label' => esc_html__( 'Border', 'metform' ),
166
+ 'selector' => '{{WRAPPER}} .mf-ratings:not(.is-selected) > label, {{WRAPPER}} .mf-ratings.is-selected:not(:hover) > input:checked + label ~ label, {{WRAPPER}} .mf-ratings.is-selected > label:hover ~ label, {{WRAPPER}} .mf-ratings:not(.is-selected) > label:hover ~ label',
167
  ]
168
  );
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  $this->end_controls_tab();
171
 
172
  $this->start_controls_tab(
173
  'mf_input_tabfocus',
174
  [
175
+ 'label' =>esc_html__( 'Active', 'metform' ),
176
  ]
177
  );
178
 
186
  'value' => Scheme_Color::COLOR_1,
187
  ],
188
  'selectors' => [
189
+ '{{WRAPPER}} .mf-ratings.is-selected > label, {{WRAPPER}} .mf-ratings:not(.is-selected):hover > label' => 'color: {{VALUE}}',
190
  ],
191
  'default' => '#ffdb72',
192
  ]
197
  [
198
  'name' => 'mf_input_border_focus',
199
  'label' => esc_html__( 'Border', 'metform' ),
200
+ 'selector' => '{{WRAPPER}} .mf-ratings.is-selected > label, {{WRAPPER}} .mf-ratings:not(.is-selected):hover > label',
201
  ]
202
  );
203
 
205
  $this->end_controls_tab();
206
 
207
  $this->end_controls_tabs();
 
 
 
 
 
 
 
 
 
 
208
 
209
  $this->add_responsive_control(
210
  'mf_input_border_radius',
228
  'size' => 0,
229
  ],
230
  'selectors' => [
231
+ '{{WRAPPER}} .mf-ratings > label' => 'border-radius: {{SIZE}}{{UNIT}};',
232
  ],
233
  'condition' => [
234
  'mf_input_border_border!' => '',
235
  ],
236
  ]
237
+ );
238
+
239
+ $this->add_control(
240
+ 'hr_2',
241
+ [
242
+ 'type' => Controls_Manager::DIVIDER,
243
+ ]
244
+ );
245
+
246
+ $this->add_group_control(
247
+ Group_Control_Typography::get_type(),
248
+ [
249
+ 'name' => 'mf_input_typgraphy',
250
+ 'label' => esc_html__( 'Typography', 'metform' ),
251
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
252
+ 'selector' => '{{WRAPPER}} .mf-ratings > label:before',
253
+ 'exclude' => [ 'font_family', 'font_weight', 'text_transform', 'text_decoration' ],
254
+ ]
255
+ );
256
 
257
  $this->add_group_control(
258
  Group_Control_Box_Shadow::get_type(),
259
  [
260
  'name' => 'mf_input_box_shadow',
261
  'label' => esc_html__( 'Box Shadow', 'metform' ),
262
+ 'selector' => '{{WRAPPER}} .mf-ratings',
263
  ]
264
  );
265
 
286
  protected function render($instance = []){
287
  $settings = $this->get_settings_for_display();
288
  extract($settings);
289
+
290
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
291
 
292
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
293
 
294
+ $configData = [
295
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
296
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
297
+ ];
298
 
299
+ $isSelected = !$is_edit_mode ? '${ parent.getValue("'. $mf_input_name .'") ? "is-selected" : "" }' : '';
 
 
 
 
 
 
300
  ?>
301
+
302
+ <div class="mf-input-wrapper">
303
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
304
+ <label class="mf-input-label" for="mf-input-rating-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
305
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
306
+ </label>
307
+ <?php endif; ?>
308
+
309
+ <div class="mf-ratings <?php echo $isSelected; ?>">
310
+ <?php
311
+ for( $i = 1; $i <= $mf_input_rating_number; $i++ ):
312
+ // $defaultChecked = 1 === $i ? ($is_edit_mode ? 'checked' : 'defaultChecked') : '';
313
+ $input_id = 'mf-rating-' . $this->get_id() .'-'. $i;
314
+ ?>
315
+ <input
316
+ type="radio"
317
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
318
+ value="<?php echo esc_attr( $i ); ?>"
319
+ id="<?php echo esc_attr( $input_id ); ?>"
320
+ <?php if ( !$is_edit_mode ): ?>
321
+ onChange=${parent.handleChange}
322
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
323
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
324
+ checked=${'<?php echo esc_attr( $i ); ?>' === parent.getValue('<?php echo esc_attr( $mf_input_name ); ?>')}
325
+ <?php endif; ?>
326
+ />
327
+ <label for="<?php echo esc_attr( $input_id ); ?>"
328
+ class="fa fa-star"></label>
329
+ <?php
330
+ endfor;
331
+ ?>
332
+ </div>
333
+
334
+ <?php if ( !$is_edit_mode ) : ?>
335
+ <${validation.ErrorMessage}
336
+ errors=${validation.errors}
337
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
338
+ as=${html`<span className="mf-error-message"></span>`}
339
+ />
340
+ <?php endif; ?>
341
+
342
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
343
+ </div>
344
+
345
  <?php
 
 
 
 
346
  }
347
+ }
 
widgets/recaptcha/recaptcha.php CHANGED
@@ -4,11 +4,6 @@ defined( 'ABSPATH' ) || exit;
4
 
5
  Class MetForm_Input_Recaptcha extends Widget_Base{
6
  use \MetForm\Widgets\Widget_Notice;
7
-
8
- // public function __construct( $data = [], $args = null ) {
9
- // parent::__construct( $data, $args );
10
- // $this->add_script_depends('recaptcha-v2');
11
- // }
12
 
13
  public function get_name() {
14
  return 'mf-recaptcha';
@@ -56,7 +51,31 @@ Class MetForm_Input_Recaptcha extends Widget_Base{
56
  'type' => Controls_Manager::TEXT,
57
  ]
58
  );
 
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  $this->end_controls_section();
61
 
62
  $this->insert_pro_message();
@@ -66,35 +85,70 @@ Class MetForm_Input_Recaptcha extends Widget_Base{
66
  $settings = $this->get_settings_for_display();
67
  extract($settings);
68
 
 
 
 
 
 
 
 
69
  $recaptcha_setting = \MetForm\Core\Admin\Base::instance()->get_settings_option();
 
 
70
 
71
  $mf_recaptcha_type = ((isset($recaptcha_setting['mf_recaptcha_version']) && ($recaptcha_setting['mf_recaptcha_version'] != '')) ? $recaptcha_setting['mf_recaptcha_version'] : 'recaptcha-v2');
 
 
 
 
 
72
 
73
- echo "<div class='mf-input-wrapper'>";
 
 
 
 
 
 
 
 
 
74
 
75
- if($mf_recaptcha_type == 'recaptcha-v2') {
76
- ?>
77
- <div id="recaptcha_site_key" class="recaptcha_site_key <?php echo esc_attr($mf_recaptcha_class_name); ?>"></div>
78
- <?php
79
- if(('metform-form' == get_post_type() || 'page' == get_post_type()) && \Elementor\Plugin::$instance->editor->is_edit_mode()){
80
- echo "<div class='attr-alert attr-alert-warning'>".esc_html__('reCAPTCHA V2 will be shown on preview.', 'metform')."</div>";
81
- }
82
- wp_enqueue_script('recaptcha-v2');
83
- }
84
 
85
- if($mf_recaptcha_type == 'recaptcha-v3'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  ?>
87
- <div id="recaptcha_site_key_v3" class="recaptcha_site_key_v3 <?php echo esc_attr($mf_recaptcha_class_name); ?>">
88
- <input type="hidden" class="g-recaptcha-response-v3" name="g-recaptcha-response-v3">
89
- </div>
90
- <?php
91
- if(('metform-form' == get_post_type() || 'page' == get_post_type()) && \Elementor\Plugin::$instance->editor->is_edit_mode()){
92
- echo "<div class='attr-alert attr-alert-warning'>".esc_html__('reCAPTCHA V3 will be shown on preview.', 'metform')."</div>";
93
- }
94
- wp_enqueue_script('recaptcha-v3');
95
- }
96
- echo '</div>';
97
 
 
98
  }
99
 
100
- }
4
 
5
  Class MetForm_Input_Recaptcha extends Widget_Base{
6
  use \MetForm\Widgets\Widget_Notice;
 
 
 
 
 
7
 
8
  public function get_name() {
9
  return 'mf-recaptcha';
51
  'type' => Controls_Manager::TEXT,
52
  ]
53
  );
54
+ $this->end_controls_section();
55
 
56
+ $this->start_controls_section(
57
+ 'style_section',
58
+ [
59
+ 'label' => esc_html__( 'Label', 'metform' ),
60
+ 'tab' => Controls_Manager::TAB_STYLE,
61
+ ]
62
+ );
63
+ $this->add_control(
64
+ 'mf_input_required_indicator_color',
65
+ [
66
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
67
+ 'type' => Controls_Manager::COLOR,
68
+ 'scheme' => [
69
+ 'type' => Scheme_Color::get_type(),
70
+ 'value' => Scheme_Color::COLOR_1,
71
+ ],
72
+ 'default' => '#f00',
73
+ 'selectors' => [
74
+ '{{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
75
+ '.g-recaptcha[aria-invalid="true"] > div:before, .g-recaptcha[aria-invalid="true"] > div:after, .g-recaptcha[aria-invalid="true"] > div > div:before, .g-recaptcha[aria-invalid="true"] > div > div:after' => 'border-color: {{VALUE}}',
76
+ ],
77
+ ]
78
+ );
79
  $this->end_controls_section();
80
 
81
  $this->insert_pro_message();
85
  $settings = $this->get_settings_for_display();
86
  extract($settings);
87
 
88
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
89
+
90
+ $configData = [
91
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : __("reCAPTCHA is required.", 'metform') : __("reCAPTCHA is required.", 'metform'),
92
+ 'required' => true,
93
+ ];
94
+
95
  $recaptcha_setting = \MetForm\Core\Admin\Base::instance()->get_settings_option();
96
+ $recaptcha_key_v2 = $recaptcha_setting['mf_recaptcha_site_key'];
97
+ $recaptcha_key_v3 = $recaptcha_setting['mf_recaptcha_site_key_v3'];
98
 
99
  $mf_recaptcha_type = ((isset($recaptcha_setting['mf_recaptcha_version']) && ($recaptcha_setting['mf_recaptcha_version'] != '')) ? $recaptcha_setting['mf_recaptcha_version'] : 'recaptcha-v2');
100
+ ?>
101
+ <div class="mf-input-wrapper">
102
+ <?php
103
+ if($mf_recaptcha_type == 'recaptcha-v2') {
104
+ ?>
105
 
106
+ <div
107
+ class="g-recaptcha <?php echo esc_attr( $mf_recaptcha_class_name ); ?>"
108
+ data-sitekey="<?php echo esc_attr( $recaptcha_key_v2 ); ?>"
109
+ <?php if ( !$is_edit_mode ): ?>
110
+ data-callback="handleReCAPTCHA"
111
+ data-expired-callback="handleReCAPTCHA"
112
+ data-error-callback="handleReCAPTCHA"
113
+ aria-invalid=${validation.errors['g-recaptcha-response'] ? 'true' : 'false'}
114
+ <?php endif; ?>
115
+ ></div>
116
 
117
+ <?php if ( !$is_edit_mode ): ?>
118
+ <input type="hidden"
119
+ name="g-recaptcha-response"
120
+ value=${parent.getValue('g-recaptcha-response')}
121
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
122
+ />
 
 
 
123
 
124
+ <${validation.ErrorMessage} errors=${validation.errors} name="g-recaptcha-response" as=${html`<span className="mf-error-message"></span>`} />
125
+ <?php else: ?>
126
+ <div class="attr-alert attr-alert-warning" style="display: none; margin-bottom: 0;">
127
+ <?php esc_html_e('reCAPTCHA will be shown on preview.', 'metform'); ?>
128
+ </div>
129
+ <?php endif; ?>
130
+
131
+ <?php
132
+ wp_enqueue_script('recaptcha-v2');
133
+ }
134
+
135
+ if($mf_recaptcha_type == 'recaptcha-v3'){
136
+ ?>
137
+
138
+ <div id="recaptcha_site_key_v3" class="recaptcha_site_key_v3 <?php echo esc_attr($mf_recaptcha_class_name); ?>">
139
+ <input type="hidden" class="g-recaptcha-response-v3" name="g-recaptcha-response-v3" />
140
+ </div>
141
+
142
+ <?php
143
+ if(('metform-form' == get_post_type() || 'page' == get_post_type()) && \Elementor\Plugin::$instance->editor->is_edit_mode()){
144
+ echo "<div class='attr-alert attr-alert-warning' style='margin-bottom: 0;'>".esc_html__('reCAPTCHA will be shown on preview.', 'metform')."</div>";
145
+ }
146
+ wp_enqueue_script('recaptcha-v3');
147
+ }
148
  ?>
149
+ </div>
 
 
 
 
 
 
 
 
 
150
 
151
+ <?php
152
  }
153
 
154
+ }
widgets/response/response.php DELETED
@@ -1,98 +0,0 @@
1
- <?php
2
- namespace Elementor;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class MetForm_Input_Response extends Widget_Base{
6
- use \MetForm\Widgets\Widget_Notice;
7
-
8
- public function get_name() {
9
- return 'mf-response';
10
- }
11
-
12
- public function get_title() {
13
- return esc_html__( 'Response Message', 'metform' );
14
- }
15
-
16
- public function show_in_panel() {
17
- return 'metform-form' == get_post_type();
18
- }
19
-
20
- public function get_categories() {
21
- return [ 'metform' ];
22
- }
23
-
24
- public function get_keywords() {
25
- return ['metform', 'input', 'response', 'success', 'submission', 'message'];
26
- }
27
-
28
- protected function _register_controls() {
29
-
30
- $this->start_controls_section(
31
- 'content_section',
32
- [
33
- 'label' => esc_html__( 'Content', 'metform' ),
34
- 'tab' => Controls_Manager::TAB_CONTENT,
35
- ]
36
- );
37
-
38
- $this->add_control(
39
- 'mf_response_class_name',
40
- [
41
- 'label' => esc_html__( 'Add Extra Class Name : ', 'plugin-domain' ),
42
- 'type' => Controls_Manager::TEXT,
43
- ]
44
- );
45
-
46
- $this->end_controls_section();
47
-
48
- $this->start_controls_section(
49
- 'style_section',
50
- [
51
- 'label' => esc_html__( 'Style', 'metform' ),
52
- 'tab' => Controls_Manager::TAB_STYLE,
53
- ]
54
- );
55
-
56
- $this->add_control(
57
- 'mf_response_padding',
58
- [
59
- 'label' => esc_html__( 'Padding', 'metform' ),
60
- 'type' => Controls_Manager::DIMENSIONS,
61
- 'size_units' => [ 'px', '%', 'em' ],
62
- 'selectors' => [
63
- '{{WRAPPER}} .metform-msg' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
64
- ],
65
- ]
66
- );
67
-
68
- $this->add_group_control(
69
- Group_Control_Typography::get_type(),
70
- [
71
- 'name' => 'mf_response_typography',
72
- 'label' => esc_html__( 'Typography', 'metform' ),
73
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
74
- 'selector' => '{{WRAPPER}} .metform-msg',
75
- ]
76
- );
77
-
78
- $this->end_controls_section();
79
-
80
- $this->insert_pro_message();
81
- }
82
-
83
- protected function render($instance = []){
84
- $settings = $this->get_settings_for_display();
85
- extract($settings);
86
-
87
- ?>
88
- <div class="attr-row">
89
- <div class="metform-msg attr-alert attr-alert-success <?php echo esc_attr($mf_response_class_name); ?>"><?php
90
- if('metform-form' == get_post_type()){
91
- echo esc_html__('A message will show here, after submission.', 'metform');
92
- }
93
- ?></div>
94
- </div>
95
- <?php
96
- }
97
-
98
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
widgets/select/select.php CHANGED
@@ -36,9 +36,9 @@ Class MetForm_Input_Select extends Widget_Base{
36
  'label' => esc_html__( 'Content', 'metform' ),
37
  'tab' => Controls_Manager::TAB_CONTENT,
38
  ]
39
- );
40
 
41
- $this->input_content_controls(['NO_PLACEHOLDER']);
42
 
43
  $input_fields = new Repeater();
44
 
@@ -127,6 +127,15 @@ Class MetForm_Input_Select extends Widget_Base{
127
 
128
  $this->input_setting_controls();
129
 
 
 
 
 
 
 
 
 
 
130
  $this->end_controls_section();
131
 
132
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -151,14 +160,24 @@ Class MetForm_Input_Select extends Widget_Base{
151
  $this->start_controls_section(
152
  'input_section',
153
  [
154
- 'label' => esc_html__( 'Input', 'metform' ),
155
  'tab' => Controls_Manager::TAB_STYLE,
156
  ]
157
  );
 
 
158
 
159
- $this->input_controls();
 
 
 
 
 
 
 
 
160
 
161
- $this->end_controls_section();
162
 
163
  $this->start_controls_section(
164
  'help_text_section',
@@ -179,42 +198,88 @@ Class MetForm_Input_Select extends Widget_Base{
179
  }
180
 
181
  protected function render($instance = []){
182
- $settings = $this->get_settings_for_display();
 
183
  extract($settings);
184
 
185
- $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
186
 
187
- echo "<div class='mf-input-wrapper'>";
188
-
189
- if($mf_input_label_status == 'yes'){
190
- ?>
191
- <label class="mf-input-label" for="mf-input-select-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
192
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
193
- </label>
194
- <?php
195
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  ?>
197
- <select class="mf-input mf-input-select <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-select-<?php echo esc_attr($this->get_id()); ?>"
198
- name="<?php echo esc_attr($mf_input_name); ?>"
199
- >
200
- <?php
201
- foreach($mf_input_list as $value){
202
- ?>
203
- <option value="<?php echo esc_attr($value['mf_input_option_value']); ?>"
204
- <?php echo esc_attr($value['mf_input_option_status']); ?>
205
- <?php echo esc_attr($value['mf_input_option_selected']); ?>
206
- >
207
- <?php echo esc_html($value['mf_input_option_text']); ?>
208
- </option>
209
- <?php
210
- }
211
- ?>
212
- </select>
213
- <?php
214
- if($mf_input_help_text != ''){
215
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
216
- }
217
- echo "</div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  }
219
-
220
- }
36
  'label' => esc_html__( 'Content', 'metform' ),
37
  'tab' => Controls_Manager::TAB_CONTENT,
38
  ]
39
+ );
40
 
41
+ $this->input_content_controls();
42
 
43
  $input_fields = new Repeater();
44
 
127
 
128
  $this->input_setting_controls();
129
 
130
+ $this->add_control(
131
+ 'mf_input_validation_type',
132
+ [
133
+ 'label' => __( 'Validation Type', 'metform' ),
134
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
135
+ 'default' => 'none',
136
+ ]
137
+ );
138
+
139
  $this->end_controls_section();
140
 
141
  if(class_exists('\MetForm_Pro\Base\Package')){
160
  $this->start_controls_section(
161
  'input_section',
162
  [
163
+ 'label' => esc_html__( 'Select', 'metform' ),
164
  'tab' => Controls_Manager::TAB_STYLE,
165
  ]
166
  );
167
+ $this->input_controls();
168
+ $this->end_controls_section();
169
 
170
+ $this->start_controls_section(
171
+ 'placeholder_section',
172
+ [
173
+ 'label' => esc_html__( 'Place Holder', 'metform' ),
174
+ 'tab' => Controls_Manager::TAB_STYLE,
175
+ ]
176
+ );
177
+
178
+ $this->input_place_holder_controls();
179
 
180
+ $this->end_controls_section();
181
 
182
  $this->start_controls_section(
183
  'help_text_section',
198
  }
199
 
200
  protected function render($instance = []){
201
+ $settings = $this->get_settings_for_display();
202
+ $inputWrapStart = $inputWrapEnd = '';
203
  extract($settings);
204
 
205
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
206
 
207
+ /**
208
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
209
+ */
210
+ if ( $is_edit_mode ):
211
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
212
+ $inputWrapEnd = '`</script>';
213
+ endif;
214
+
215
+ $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
216
+
217
+ $configData = [
218
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
219
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
220
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
221
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
222
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
223
+ ];
224
+
225
+ $mf_default_input_list = array();
226
+
227
+ foreach ($mf_input_list as $key => $value):
228
+ $mf_input_list[$key]['label'] = $value['mf_input_option_text'];
229
+ $mf_input_list[$key]['value'] = $value['mf_input_option_value'];
230
+
231
+
232
+ if ( $value['mf_input_option_selected'] ) $mf_default_input_list = $mf_input_list[$key];
233
+ endforeach;
234
+
235
+ $mf_default_input_list = count($mf_default_input_list) == 0 ? $mf_input_list[0] : $mf_default_input_list;
236
  ?>
237
+
238
+ <?php echo $inputWrapStart; ?>
239
+
240
+ <div className="mf-input-wrapper">
241
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
242
+ <label className="mf-input-label" htmlFor="mf-input-select-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
243
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
244
+ </label>
245
+ <?php endif; ?>
246
+
247
+ <${props.Select}
248
+ className=${"mf-input mf-input-select <?php echo $class; ?> " + ( validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'mf-invalid' : '' )}
249
+ classNamePrefix="mf_select"
250
+ name="<?php echo esc_attr($mf_input_name); ?>"
251
+ placeholder="<?php echo esc_attr( $mf_input_placeholder ); ?>"
252
+ isSearchable=${false}
253
+ options=${<?php echo json_encode($mf_input_list); ?>}
254
+ value=${parent.getValue("<?php echo esc_attr($mf_input_name); ?>") ? <?php echo json_encode($mf_input_list); ?>.filter(item => item.value === parent.getValue("<?php echo esc_attr($mf_input_name); ?>"))[0] : <?php echo json_encode( $mf_default_input_list ); ?>}
255
+ onChange=${parent.handleSelect}
256
+ ref=${() => {
257
+ register({ name: "<?php echo esc_attr($mf_input_name); ?>" }, parent.activateValidation(<?php echo json_encode($configData); ?>));
258
+ if ( parent.getValue("<?php echo esc_attr($mf_input_name); ?>") === '' && '<?php echo esc_attr( $mf_default_input_list["value"] ); ?>' ) {
259
+ parent.handleChange({
260
+ target: {
261
+ name: '<?php echo esc_attr($mf_input_name); ?>',
262
+ value: '<?php echo esc_attr( $mf_default_input_list["value"] ); ?>'
263
+ }
264
+ });
265
+ parent.setValue( '<?php echo esc_attr($mf_input_name); ?>', '<?php echo esc_attr( $mf_default_input_list["value"] ); ?>', true );
266
+ }
267
+ }}
268
+ />
269
+
270
+ <?php if ( !$is_edit_mode ) : ?>
271
+ <${validation.ErrorMessage}
272
+ errors=${validation.errors}
273
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
274
+ as=${html`<span className="mf-error-message"></span>`}
275
+ />
276
+ <?php endif; ?>
277
+
278
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
279
+ </div>
280
+
281
+ <?php echo $inputWrapEnd; ?>
282
+
283
+ <?php
284
  }
285
+ }
 
widgets/simple-captcha/simple-captcha.php CHANGED
@@ -5,6 +5,14 @@ defined( 'ABSPATH' ) || exit;
5
  Class MetForm_Input_Simple_Captcha extends Widget_Base{
6
  use \MetForm\Widgets\Widget_Notice;
7
  use \MetForm\Traits\Common_Controls;
 
 
 
 
 
 
 
 
8
 
9
  public function get_name() {
10
  return 'mf-simple-captcha';
@@ -140,10 +148,6 @@ Class MetForm_Input_Simple_Captcha extends Widget_Base{
140
  'selectors' => [
141
  '{{WRAPPER}} .mf-input-label' => 'width: {{SIZE}}{{UNIT}};',
142
  '{{WRAPPER}} .mf-input-wrapper div:not(.mf-captcha-input-wrapper) .mf-input' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
143
- '{{WRAPPER}} .mf-input-wrapper > .iti' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
144
- '{{WRAPPER}} .range-slider' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
145
- '{{WRAPPER}} .mf-input-wrapper .flatpickr-calendar, {{WRAPPER}} .mf-input-wrapper .flatpickr-calendar.hasTime.noCalendar' => 'left: {{SIZE}}{{UNIT}} !important',
146
- '{{WRAPPER}} .mf-input-wrapper .select2-container' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px) !important',
147
  '{{WRAPPER}} .mf-input-wrapper .mf-captcha-input-wrapper' => 'max-width: calc(100% - {{SIZE}}{{UNIT}} - 7px); display: inline-block; vertical-align: middle;',
148
  ],
149
  'condition' => [
@@ -211,6 +215,23 @@ Class MetForm_Input_Simple_Captcha extends Widget_Base{
211
  ]
212
  );
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  $this->end_controls_section();
215
 
216
  $this->start_controls_section(
@@ -254,6 +275,7 @@ Class MetForm_Input_Simple_Captcha extends Widget_Base{
254
  'type' => \Elementor\Scheme_Color::get_type(),
255
  'value' => \Elementor\Scheme_Color::COLOR_1,
256
  ],
 
257
  'selectors' => [
258
  '{{WRAPPER}} .mf-refresh-captcha' => 'color: {{VALUE}}',
259
  ],
@@ -261,6 +283,21 @@ Class MetForm_Input_Simple_Captcha extends Widget_Base{
261
  );
262
 
263
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
265
  $this->start_controls_section(
266
  'placeholder_section',
@@ -277,45 +314,75 @@ Class MetForm_Input_Simple_Captcha extends Widget_Base{
277
  $this->insert_pro_message();
278
  }
279
 
280
- public function render_script($path){
281
- ?>
282
- <script>
283
- var path = "<?php echo $path; ?>";
284
- var refreshButton = document.querySelectorAll(".mf-refresh-captcha");
285
- if(refreshButton.length > 0){
286
- refreshButton.forEach(function(v, i){
287
- v.onclick = function() {
288
- this.previousSibling.src = path+'/generate-captcha.php?' + Date.now();
289
- }
290
- });
291
- }
292
- </script>
293
- <?php
294
- }
295
-
296
  protected function render($instance = []){
297
- $settings = $this->get_settings_for_display();
 
298
  extract($settings);
299
 
300
- echo "<div class='mf-input-wrapper'>";
301
 
302
- if($mf_input_label_status == 'yes'){
303
- ?>
304
- <label class="mf-input-label" for="mf-input-captcha-<?php echo esc_attr($this->get_id()); ?>">
305
- <?php echo esc_html($mf_input_label); ?>
306
- </label>
307
- <?php
308
- }
 
 
 
 
 
 
 
 
309
  ?>
310
- <div class="mf-captcha-input-wrapper <?php echo esc_attr('mf-captcha-'.$mf_input_input_captcha_display); ?>">
311
- <img src="<?php echo plugin_dir_url( __FILE__ ); ?>generate-captcha.php" alt="CAPTCHA" height="50px" class="mf-input mf-captcha-image"><i class="fas fa-redo mf-refresh-captcha"></i>
312
- <input type="text" name="mf-captcha-challenge" class="mf-input mf-captcha-input" id="mf-input-captcha-<?php echo esc_attr($this->get_id()); ?>" placeholder="<?php esc_html_e('Entry captcha from the picture', 'metform')?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  </div>
314
-
315
- <?php
316
- echo '</div>';
317
 
318
- $this->render_script(plugin_dir_url( __FILE__ ));
319
  }
320
-
321
- }
5
  Class MetForm_Input_Simple_Captcha extends Widget_Base{
6
  use \MetForm\Widgets\Widget_Notice;
7
  use \MetForm\Traits\Common_Controls;
8
+
9
+ public function __construct( $data = [], $args = null ) {
10
+ parent::__construct( $data, $args );
11
+
12
+ if ( class_exists('\Elementor\Icons_Manager') && method_exists('\Elementor\Icons_Manager', 'enqueue_shim') ) {
13
+ \Elementor\Icons_Manager::enqueue_shim();
14
+ }
15
+ }
16
 
17
  public function get_name() {
18
  return 'mf-simple-captcha';
148
  'selectors' => [
149
  '{{WRAPPER}} .mf-input-label' => 'width: {{SIZE}}{{UNIT}};',
150
  '{{WRAPPER}} .mf-input-wrapper div:not(.mf-captcha-input-wrapper) .mf-input' => 'width: calc(100% - {{SIZE}}{{UNIT}} - 7px)',
 
 
 
 
151
  '{{WRAPPER}} .mf-input-wrapper .mf-captcha-input-wrapper' => 'max-width: calc(100% - {{SIZE}}{{UNIT}} - 7px); display: inline-block; vertical-align: middle;',
152
  ],
153
  'condition' => [
215
  ]
216
  );
217
 
218
+ $this->add_control(
219
+ 'mf_input_required_indicator_color',
220
+ [
221
+ 'label' => esc_html__( 'Required Indicator Color:', 'metform' ),
222
+ 'type' => Controls_Manager::COLOR,
223
+ 'scheme' => [
224
+ 'type' => Scheme_Color::get_type(),
225
+ 'value' => Scheme_Color::COLOR_1,
226
+ ],
227
+ 'default' => '#f00',
228
+ 'selectors' => [
229
+ '{{WRAPPER}} .mf-input-required-indicator, {{WRAPPER}} .mf-error-message' => 'color: {{VALUE}}',
230
+ '{{WRAPPER}} .mf-input-wrapper .mf-input[aria-invalid="true"]' => 'border-color: {{VALUE}}',
231
+ ],
232
+ ]
233
+ );
234
+
235
  $this->end_controls_section();
236
 
237
  $this->start_controls_section(
275
  'type' => \Elementor\Scheme_Color::get_type(),
276
  'value' => \Elementor\Scheme_Color::COLOR_1,
277
  ],
278
+ 'default' => '#000',
279
  'selectors' => [
280
  '{{WRAPPER}} .mf-refresh-captcha' => 'color: {{VALUE}}',
281
  ],
283
  );
284
 
285
  $this->end_controls_section();
286
+
287
+ $this->start_controls_section(
288
+ 'help_text_section',
289
+ [
290
+ 'label' => esc_html__( 'Help Text', 'metform' ),
291
+ 'tab' => Controls_Manager::TAB_STYLE,
292
+ 'condition' => [
293
+ 'mf_input_help_text!' => ''
294
+ ]
295
+ ]
296
+ );
297
+
298
+ $this->input_help_text_controls();
299
+
300
+ $this->end_controls_section();
301
 
302
  $this->start_controls_section(
303
  'placeholder_section',
314
  $this->insert_pro_message();
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  protected function render($instance = []){
318
+ $settings = $this->get_settings_for_display();
319
+ $inputWrapStart = $inputWrapEnd = '';
320
  extract($settings);
321
 
322
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
323
 
324
+ /**
325
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
326
+ */
327
+ if ( $is_edit_mode ):
328
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
329
+ $inputWrapEnd = '`</script>';
330
+ endif;
331
+
332
+ $configData = [
333
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : __("Captcha didn't matched.", 'metform') : __("Captcha didn't matched.", 'metform'),
334
+ 'required' => true,
335
+ ];
336
+
337
+ $path = plugin_dir_url( __FILE__ ) . 'generate-captcha.php?';
338
+ $img_src = !$is_edit_mode ? '${ parent.state.captcha_img || "'. esc_attr( $path ) .'" }' : '"'. esc_attr( $path ) .'"';
339
  ?>
340
+
341
+ <div class="mf-input-wrapper">
342
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
343
+ <label class="mf-input-label" for="mf-input-captcha-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
344
+ <span class="mf-input-required-indicator"><?php echo esc_html( '*', 'metform' );?></span>
345
+ </label>
346
+ <?php endif; ?>
347
+
348
+ <div class="mf-captcha-input-wrapper <?php echo esc_attr('mf-captcha-'.$mf_input_input_captcha_display); ?>">
349
+ <img
350
+ src=<?php echo $img_src; ?>
351
+ alt="CAPTCHA" height="50px"
352
+ class="mf-input mf-captcha-image"
353
+ />
354
+
355
+ <i class="mf-refresh-captcha"
356
+ <?php if ( !$is_edit_mode ): ?>
357
+ data-path=${ parent.state.captcha_path = '<?php echo esc_attr( $path ); ?>' }
358
+ onClick=${ parent.refreshCaptcha }
359
+ <?php endif; ?>
360
+ ></i>
361
+
362
+ <input type="text"
363
+ name="mf-captcha-challenge"
364
+ class="mf-input mf-captcha-input"
365
+ id="mf-input-captcha-<?php echo esc_attr($this->get_id()); ?>"
366
+ placeholder="<?php esc_html_e('Entry captcha from the picture', 'metform')?>"
367
+ <?php if ( !$is_edit_mode ): ?>
368
+ onInput=${ parent.handleChange }
369
+ aria-invalid=${validation.errors['mf-captcha-challenge'] ? 'true' : 'false'}
370
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
371
+ <?php endif; ?>
372
+ />
373
+ </div>
374
+
375
+ <?php if ( !$is_edit_mode ): ?>
376
+ <${validation.ErrorMessage} errors=${validation.errors} name="mf-captcha-challenge" as=${html`<span className="mf-error-message"></span>`} />
377
+ <?php endif; ?>
378
+
379
+ <?php
380
+ if ( $mf_input_help_text != '' ):
381
+ echo '<span class="mf-input-help">'.esc_html( $mf_input_help_text ).'</span>';
382
+ endif;
383
+ ?>
384
  </div>
 
 
 
385
 
386
+ <?php
387
  }
388
+ }
 
widgets/summary/summary.php CHANGED
@@ -5,13 +5,8 @@ defined( 'ABSPATH' ) || exit;
5
  Class MetForm_Input_Summary extends Widget_Base{
6
 
7
  use \MetForm\Traits\Common_Controls;
8
- use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
10
-
11
- public function __construct( $data = [], $args = null ) {
12
- parent::__construct( $data, $args );
13
- $this->add_script_depends('metform-summary');
14
- }
15
 
16
  public function get_name() {
17
  return 'mf-summary';
@@ -57,6 +52,15 @@ Class MetForm_Input_Summary extends Widget_Base{
57
 
58
  $this->input_setting_controls();
59
 
 
 
 
 
 
 
 
 
 
60
  $this->end_controls_section();
61
 
62
  $this->start_controls_section(
@@ -108,33 +112,39 @@ Class MetForm_Input_Summary extends Widget_Base{
108
  $settings = $this->get_settings_for_display();
109
  extract($settings);
110
 
 
 
111
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
- echo "<div class='mf-input-wrapper'>";
114
-
115
- if($mf_input_label_status == 'yes'){
116
- ?>
117
- <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
118
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
119
- </label>
120
- <?php
121
- }
122
- if(('metform-form' == get_post_type() || 'page' == get_post_type()) && \Elementor\Plugin::$instance->editor->is_edit_mode()){
123
- echo "<div class='attr-alert attr-alert-warning'>".esc_html__('Summary will be shown on preview.', 'metform')."</div>";
124
- }
125
- ?>
126
- <div class="mf-input mf-input-summary metform-entry-data container">
127
- <table class='mf-entry-data' cellpadding="5" cellspacing="0">
128
- <tbody>
129
-
130
- </tbody>
131
- </table>
132
- </div>
133
  <?php
134
- if($mf_input_help_text != ''){
135
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
136
- }
137
- echo "</div>";
138
  }
139
-
140
- }
5
  Class MetForm_Input_Summary extends Widget_Base{
6
 
7
  use \MetForm\Traits\Common_Controls;
8
+ use \MetForm\Traits\Conditional_Controls;
9
  use \MetForm\Widgets\Widget_Notice;
 
 
 
 
 
10
 
11
  public function get_name() {
12
  return 'mf-summary';
52
 
53
  $this->input_setting_controls();
54
 
55
+ $this->add_control(
56
+ 'mf_input_validation_type',
57
+ [
58
+ 'label' => __( 'Validation Type', 'metform' ),
59
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
60
+ 'default' => 'none',
61
+ ]
62
+ );
63
+
64
  $this->end_controls_section();
65
 
66
  $this->start_controls_section(
112
  $settings = $this->get_settings_for_display();
113
  extract($settings);
114
 
115
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
116
+
117
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
118
+ ?>
119
+
120
+ <div class="mf-input-wrapper">
121
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
122
+ <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
123
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
124
+ </label>
125
+ <?php endif; ?>
126
+
127
+ <?php if ( !$is_edit_mode ): ?>
128
+ <div class="mf-input mf-input-summary metform-entry-data container">
129
+ <ul class="mf-entry-data">
130
+ ${Object.keys( parent.state.formData ).map((name, key) => {
131
+ let value = parent.getValue( name );
132
+ if ( Array.isArray( value ) ) value = value.join(', ');
133
+ if ( typeof value === 'object' && value.name ) value = value.name;
134
+
135
+ return value ? html`<li key=${key}><strong>${name}</strong><span>${value}</span></li>` : '';
136
+ })}
137
+ </ul>
138
+ </div>
139
+ <?php else: ?>
140
+ <div class="attr-alert attr-alert-warning" style="margin-bottom: 0;">
141
+ <?php esc_html_e( 'Summary will be shown on preview.', 'metform' ); ?>
142
+ </div>
143
+ <?php endif; ?>
144
+
145
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
146
+ </div>
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  <?php
 
 
 
 
149
  }
150
+ }
 
widgets/switch/switch.php CHANGED
@@ -70,7 +70,14 @@ Class MetForm_Input_Switch extends Widget_Base{
70
 
71
  $this->input_setting_controls();
72
 
73
-
 
 
 
 
 
 
 
74
 
75
  $this->end_controls_section();
76
 
@@ -276,27 +283,50 @@ Class MetForm_Input_Switch extends Widget_Base{
276
  $settings = $this->get_settings_for_display();
277
  extract($settings);
278
 
 
 
279
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
280
-
281
- echo "<div class='mf-input-wrapper'>";
282
 
283
- if($mf_input_label_status == 'yes'){
284
- ?>
285
- <label class="mf-input-label" for="mf-input-switch-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
286
- <span class="mf-input-required-indicator"><?php echo esc_attr(($mf_input_required === 'yes') ? '*' : '');?></span>
287
- </label>
288
- <?php
289
- }
290
  ?>
291
- <span class="mf-input-switch-control mf-input-switch">
292
- <input type="checkbox" name="<?php echo esc_attr($mf_input_name); ?>" value="1" class="mf-input mf-input-control mf-input-switch-box <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-switch-<?php echo esc_attr($this->get_id()); ?>">
293
- <label data-enable="<?php echo isset($mf_swtich_enable_text) ? esc_attr($mf_swtich_enable_text) : ''; ?>" data-disable="<?php echo isset($mf_swtich_disable_text) ? esc_attr($mf_swtich_disable_text) : '' ?>" class="mf-input-control-label" for="mf-input-switch-<?php echo esc_attr($this->get_id()); ?>"></label>
294
- </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  <?php
296
- if($mf_input_help_text != ''){
297
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
298
- }
299
- echo "</div>";
300
  }
301
 
302
- }
70
 
71
  $this->input_setting_controls();
72
 
73
+ $this->add_control(
74
+ 'mf_input_validation_type',
75
+ [
76
+ 'label' => __( 'Validation Type', 'metform' ),
77
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
78
+ 'default' => 'none',
79
+ ]
80
+ );
81
 
82
  $this->end_controls_section();
83
 
283
  $settings = $this->get_settings_for_display();
284
  extract($settings);
285
 
286
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
287
+
288
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
289
 
290
+ $configData = [
291
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
292
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
293
+ ];
 
 
 
294
  ?>
295
+
296
+ <div class="mf-input-wrapper">
297
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
298
+ <label class="mf-input-label" for="mf-input-switch-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
299
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
300
+ </label>
301
+ <?php endif; ?>
302
+
303
+ <span class="mf-input-switch-control mf-input-switch">
304
+ <input type="checkbox"
305
+ name="<?php echo esc_attr($mf_input_name); ?>"
306
+ value="<?php echo isset($mf_swtich_disable_text) ? esc_attr($mf_swtich_disable_text) : '' ?>"
307
+ class="mf-input mf-input-control mf-input-switch-box <?php echo $class; ?>" id="mf-input-switch-<?php echo esc_attr($this->get_id()); ?>"
308
+ <?php if ( !$is_edit_mode ): ?>
309
+ onInput=${ parent.handleSwitch }
310
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
311
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
312
+ <?php endif; ?>
313
+ />
314
+ <label data-enable="<?php echo isset($mf_swtich_enable_text) ? esc_attr($mf_swtich_enable_text) : ''; ?>" data-disable="<?php echo isset($mf_swtich_disable_text) ? esc_attr($mf_swtich_disable_text) : '' ?>" class="mf-input-control-label" for="mf-input-switch-<?php echo esc_attr($this->get_id()); ?>"></label>
315
+ </span>
316
+
317
+ <?php if ( !$is_edit_mode ) : ?>
318
+ <${validation.ErrorMessage}
319
+ errors=${validation.errors}
320
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
321
+ as=${html`<span className="mf-error-message"></span>`}
322
+ />
323
+ <?php endif; ?>
324
+
325
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
326
+ </div>
327
+
328
  <?php
329
+
 
 
 
330
  }
331
 
332
+ }
widgets/telephone/telephone.php CHANGED
@@ -119,37 +119,52 @@ Class MetForm_Input_Telephone extends Widget_Base{
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
- $validation = [
123
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
124
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
125
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
126
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
127
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
128
- ];
129
 
130
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
131
 
132
- echo "<div class='mf-input-wrapper'>";
133
-
134
- if($mf_input_label_status == 'yes'){
135
- ?>
136
- <label class="mf-input-label" for="mf-input-telephone-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
137
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
138
- </label>
139
- <?php
140
- }
141
  ?>
142
- <input type="tel" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-telephone-<?php echo esc_attr($this->get_id()); ?>"
143
- name="<?php echo esc_attr($mf_input_name); ?>"
144
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
145
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
146
- <?php //echo esc_attr($mf_input_readonly_status); ?>
147
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  <?php
149
- if($mf_input_help_text != ''){
150
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
151
- }
152
- echo "</div>";
153
  }
154
 
155
- }
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
123
 
124
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
125
 
126
+ $configData = [
127
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
128
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
129
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
130
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
131
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
132
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
133
+ ];
 
134
  ?>
135
+
136
+ <div class="mf-input-wrapper">
137
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
138
+ <label class="mf-input-label" for="mf-input-telephone-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
139
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
140
+ </label>
141
+ <?php endif; ?>
142
+
143
+ <input
144
+ type="tel"
145
+ class="mf-input <?php echo $class; ?>"
146
+ id="mf-input-telephone-<?php echo esc_attr($this->get_id()); ?>"
147
+ name="<?php echo esc_attr($mf_input_name); ?>"
148
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
149
+ <?php if ( !$is_edit_mode ): ?>
150
+ onInput=${parent.handleChange}
151
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
152
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
153
+ <?php endif; ?>
154
+ />
155
+
156
+ <?php if ( !$is_edit_mode ) : ?>
157
+ <${validation.ErrorMessage}
158
+ errors=${validation.errors}
159
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
160
+ as=${html`<span className="mf-error-message"></span>`}
161
+ />
162
+ <?php endif; ?>
163
+
164
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
165
+ </div>
166
+
167
  <?php
 
 
 
 
168
  }
169
 
170
+ }
widgets/text/text.php CHANGED
@@ -110,47 +110,65 @@ Class MetForm_Input_Text extends Widget_Base{
110
 
111
  $this->input_help_text_controls();
112
 
113
- $this->end_controls_section();
114
 
115
  $this->insert_pro_message();
116
-
117
  }
118
 
119
  protected function render($instance = []){
120
  $settings = $this->get_settings_for_display();
121
  extract($settings);
122
 
123
- $validation = [
124
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
125
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
126
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
127
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
128
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
129
- ];
130
 
131
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
- echo "<div class='mf-input-wrapper'>";
134
-
135
- if($mf_input_label_status == 'yes'){
136
- ?>
137
- <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
138
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
139
- </label>
140
  <?php
141
- }
142
- ?>
143
- <input type="text" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-text-<?php echo esc_attr($this->get_id()); ?>"
144
- name="<?php echo esc_attr($mf_input_name); ?>"
145
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
146
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
147
- <?php //echo esc_attr($mf_input_readonly_status); ?>
148
- >
149
  <?php
150
- if($mf_input_help_text != ''){
151
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
152
- }
153
- echo "</div>";
154
  }
155
 
156
- }
110
 
111
  $this->input_help_text_controls();
112
 
113
+ $this->end_controls_section();
114
 
115
  $this->insert_pro_message();
 
116
  }
117
 
118
  protected function render($instance = []){
119
  $settings = $this->get_settings_for_display();
120
  extract($settings);
121
 
122
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
123
 
124
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
125
+
126
+ $configData = [
127
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
128
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
129
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
130
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
131
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
132
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
133
+ ];
134
+ ?>
135
+
136
+ <div class="mf-input-wrapper">
137
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
138
+ <label class="mf-input-label" for="mf-input-text-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
139
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
140
+ </label>
141
+ <?php endif; ?>
142
+
143
+ <input
144
+ type="text"
145
+ class="mf-input <?php echo $class; ?>"
146
+ id="mf-input-text-<?php echo esc_attr( $this->get_id() ); ?>"
147
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
148
+ placeholder="<?php echo esc_html( $mf_input_placeholder ); ?>"
149
+ <?php if ( !$is_edit_mode ): ?>
150
+ onInput=${parent.handleChange}
151
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
152
+ ref=${el => parent.activateValidation(<?php echo json_encode($configData); ?>, el)}
153
+ <?php endif; ?>
154
+ />
155
+
156
+ <?php if ( !$is_edit_mode ) : ?>
157
+ <${validation.ErrorMessage}
158
+ errors=${validation.errors}
159
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
160
+ as=${html`<span className="mf-error-message"></span>`}
161
+ />
162
+ <?php endif; ?>
163
 
 
 
 
 
 
 
 
164
  <?php
165
+ if ( $mf_input_help_text != '' ):
166
+ echo '<span class="mf-input-help">'.esc_html( $mf_input_help_text ).'</span>';
167
+ endif;
168
+ ?>
169
+ </div>
170
+
 
 
171
  <?php
 
 
 
 
172
  }
173
 
174
+ }
widgets/textarea/textarea.php CHANGED
@@ -85,7 +85,7 @@ Class MetForm_Input_Textarea extends Widget_Base{
85
  $this->add_control(
86
  'mf_textarea_field_height',
87
  [
88
- 'label' => esc_html__( 'Height', 'plugin-domain' ),
89
  'type' => Controls_Manager::SLIDER,
90
  'size_units' => [ 'px' ],
91
  'range' => [
@@ -142,39 +142,51 @@ Class MetForm_Input_Textarea extends Widget_Base{
142
  protected function render($instance = []){
143
  $settings = $this->get_settings_for_display();
144
  extract($settings);
145
-
146
- $validation = [
147
- 'min_length' => isset($mf_input_min_length) ? $mf_input_min_length : '',
148
- 'max_length' => isset($mf_input_max_length) ? $mf_input_max_length : '',
149
- 'validation_type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
150
- 'expression' => isset($mf_input_validation_expression) ? $mf_input_validation_expression : '',
151
- 'warning_message' => isset($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : '',
152
- ];
153
 
154
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
155
 
156
- echo "<div class='mf-input-wrapper'>";
157
-
158
- if($mf_input_label_status == 'yes'){
159
- ?>
160
- <label class="mf-input-label" for="mf-input-text-area-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
161
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
162
- </label>
163
- <?php
164
- }
165
  ?>
166
- <textarea class="mf-input mf-textarea <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-text-area-<?php echo esc_attr($this->get_id()); ?>"
167
- name="<?php echo esc_attr($mf_input_name); ?>"
168
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
169
- data-validation = "<?php echo esc_attr(json_encode($validation)); ?>"
170
- <?php //echo esc_attr($mf_input_readonly_status); ?>
171
- cols="30" rows="10"
172
- ></textarea>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  <?php
174
- if($mf_input_help_text != ''){
175
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
176
- }
177
- echo "</div>";
178
  }
179
 
180
- }
85
  $this->add_control(
86
  'mf_textarea_field_height',
87
  [
88
+ 'label' => esc_html__( 'Height', 'metform' ),
89
  'type' => Controls_Manager::SLIDER,
90
  'size_units' => [ 'px' ],
91
  'range' => [
142
  protected function render($instance = []){
143
  $settings = $this->get_settings_for_display();
144
  extract($settings);
145
+
146
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
 
 
 
 
 
 
147
 
148
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
149
 
150
+ $configData = [
151
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
152
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
153
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
154
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
155
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
156
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
157
+ ];
 
158
  ?>
159
+
160
+ <div class="mf-input-wrapper">
161
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
162
+ <label class="mf-input-label" for="mf-input-text-area-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
163
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
164
+ </label>
165
+ <?php endif; ?>
166
+
167
+ <textarea class="mf-input mf-textarea <?php echo $class; ?>" id="mf-input-text-area-<?php echo esc_attr($this->get_id()); ?>"
168
+ name="<?php echo esc_attr($mf_input_name); ?>"
169
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
170
+ cols="30" rows="10"
171
+ <?php if ( !$is_edit_mode ): ?>
172
+ onInput=${ parent.handleChange }
173
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
174
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
175
+ <?php endif; ?>
176
+ ></textarea>
177
+
178
+ <?php if ( !$is_edit_mode ) : ?>
179
+ <${validation.ErrorMessage}
180
+ errors=${validation.errors}
181
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
182
+ as=${html`<span className="mf-error-message"></span>`}
183
+ />
184
+ <?php endif; ?>
185
+
186
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
187
+ </div>
188
+
189
  <?php
 
 
 
 
190
  }
191
 
192
+ }
widgets/time/time.php CHANGED
@@ -6,6 +6,11 @@ Class MetForm_Input_Time extends Widget_Base{
6
  use \MetForm\Traits\Common_Controls;
7
  use \MetForm\Traits\Conditional_Controls;
8
  use \MetForm\Widgets\Widget_Notice;
 
 
 
 
 
9
 
10
  public function get_name() {
11
  return 'mf-time';
@@ -51,6 +56,15 @@ Class MetForm_Input_Time extends Widget_Base{
51
 
52
  $this->input_setting_controls();
53
 
 
 
 
 
 
 
 
 
 
54
  $this->add_control(
55
  'mf_input_time_24h',
56
  [
@@ -128,31 +142,74 @@ Class MetForm_Input_Time extends Widget_Base{
128
 
129
  protected function render($instance = []){
130
  $settings = $this->get_settings_for_display();
 
131
  extract($settings);
132
 
 
 
 
 
 
 
 
 
 
 
133
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
134
-
135
- echo "<div class='mf-input-wrapper'>";
136
 
137
- if($mf_input_label_status == 'yes'){
138
- ?>
139
- <label class="mf-input-label" for="mf-input-time-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
140
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
141
- </label>
142
- <?php
 
 
 
 
 
 
 
 
 
 
143
  }
144
- ?>
145
- <input type="time" class="mf-input mf-input-time <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-time-<?php echo esc_attr($this->get_id()); ?>"
146
- name="<?php echo esc_attr($mf_input_name); ?>"
147
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
148
- <?php echo esc_attr(($mf_input_time_24h === 'yes') ? 'data-mftime24h=yes' : '')?>
149
- <?php //echo esc_attr($mf_input_readonly_status); ?>
150
- >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  <?php
152
- if($mf_input_help_text != ''){
153
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
154
- }
155
- echo "</div>";
156
  }
157
 
158
- }
6
  use \MetForm\Traits\Common_Controls;
7
  use \MetForm\Traits\Conditional_Controls;
8
  use \MetForm\Widgets\Widget_Notice;
9
+
10
+ public function __construct( $data = [], $args = null ) {
11
+ parent::__construct( $data, $args );
12
+ $this->add_style_depends('flatpickr');
13
+ }
14
 
15
  public function get_name() {
16
  return 'mf-time';
56
 
57
  $this->input_setting_controls();
58
 
59
+ $this->add_control(
60
+ 'mf_input_validation_type',
61
+ [
62
+ 'label' => __( 'Validation Type', 'metform' ),
63
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
64
+ 'default' => 'none',
65
+ ]
66
+ );
67
+
68
  $this->add_control(
69
  'mf_input_time_24h',
70
  [
142
 
143
  protected function render($instance = []){
144
  $settings = $this->get_settings_for_display();
145
+ $inputWrapStart = $inputWrapEnd = '';
146
  extract($settings);
147
 
148
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
149
+
150
+ /**
151
+ * Loads the below markup on 'Editor' view, only when 'metform-form' post type
152
+ */
153
+ if ( $is_edit_mode ):
154
+ $inputWrapStart = '<div class="mf-form-wrapper"></div><script type="text" class="mf-template">return html`';
155
+ $inputWrapEnd = '`</script>';
156
+ endif;
157
+
158
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
 
 
159
 
160
+ $configData = [
161
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
162
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
163
+ ];
164
+
165
+ $timeConfig = [
166
+ 'enableTime' => true,
167
+ 'dateFormat' => 'h:i K',
168
+ 'noCalendar' => true,
169
+ 'time_24hr' => false,
170
+ 'static' => true
171
+ ];
172
+
173
+ if(isset($mf_input_time_24h) && $mf_input_time_24h === 'yes'){
174
+ $timeConfig['time_24hr'] = true;
175
+ $timeConfig['dateFormat'] = 'h:i';
176
  }
177
+ ?>
178
+
179
+ <?php echo $inputWrapStart; ?>
180
+
181
+ <div className="mf-input-wrapper">
182
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
183
+ <label className="mf-input-label" htmlFor="mf-input-time-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
184
+ <span className="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
185
+ </label>
186
+ <?php endif; ?>
187
+
188
+ <${props.Flatpickr}
189
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
190
+ className="mf-input mf-date-input mf-left-parent <?php echo esc_attr( $class ); ?>"
191
+ placeholder="<?php echo esc_attr( $mf_input_placeholder ); ?>"
192
+ options=${<?php echo json_encode( $timeConfig ); ?>}
193
+ value=${parent.getValue('<?php echo esc_attr( $mf_input_name ); ?>')}
194
+ onInput=${parent.handleDateTime}
195
+ aria-invalid=${validation.errors['<?php echo esc_attr( $mf_input_name ); ?>'] ? 'true' : 'false'}
196
+ ref=${register({ name: "<?php echo esc_attr($mf_input_name); ?>" }, parent.activateValidation(<?php echo json_encode($configData); ?>))}
197
+ />
198
+
199
+ <?php if ( !$is_edit_mode ) : ?>
200
+ <${validation.ErrorMessage}
201
+ errors=${validation.errors}
202
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
203
+ as=${html`<span className="mf-error-message"></span>`}
204
+ />
205
+ <?php endif; ?>
206
+
207
+ <?php echo '' != $mf_input_help_text ? '<span className="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
208
+ </div>
209
+
210
+ <?php echo $inputWrapEnd; ?>
211
+
212
  <?php
 
 
 
 
213
  }
214
 
215
+ }
widgets/url/url.php CHANGED
@@ -53,6 +53,15 @@ Class MetForm_Input_Url extends Widget_Base{
53
 
54
  $this->input_setting_controls();
55
 
 
 
 
 
 
 
 
 
 
56
  $this->end_controls_section();
57
 
58
  if(class_exists('\MetForm_Pro\Base\Package')){
@@ -119,31 +128,51 @@ Class MetForm_Input_Url extends Widget_Base{
119
  protected function render($instance = []){
120
  $settings = $this->get_settings_for_display();
121
  extract($settings);
 
 
122
 
123
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
124
 
125
- echo "<div class='mf-input-wrapper'>";
126
-
127
- if($mf_input_label_status == 'yes'){
128
- ?>
129
- <label class="mf-input-label" for="mf-input-url-<?php echo esc_attr($this->get_id()); ?>"><?php echo esc_html($mf_input_label); ?>
130
- <span class="mf-input-required-indicator"><?php echo esc_html(($mf_input_required === 'yes') ? '*' : '');?></span>
131
- </label>
132
- <?php
133
- }
134
  ?>
135
- <input type="url" class="mf-input <?php echo ((isset($mf_input_validation_type) && $mf_input_validation_type !='none') || isset($mf_input_required) && $mf_input_required === 'yes') ? 'mf-input-do-validate' : ''; ?> <?php echo $class; ?>" id="mf-input-url-<?php echo esc_attr($this->get_id()); ?>"
136
- name="<?php echo esc_attr($mf_input_name); ?>"
137
- placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
138
- <?php //echo esc_attr($mf_input_readonly_status); ?>
139
- >
140
- <?php
141
- if($mf_input_help_text != ''){
142
- echo "<span class='mf-input-help'>".esc_html($mf_input_help_text)."</span>";
143
- }
144
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  </div>
146
- <?php
 
147
  }
148
 
149
- }
53
 
54
  $this->input_setting_controls();
55
 
56
+ $this->add_control(
57
+ 'mf_input_validation_type',
58
+ [
59
+ 'label' => __( 'Validation Type', 'metform' ),
60
+ 'type' => \Elementor\Controls_Manager::HIDDEN,
61
+ 'default' => 'none',
62
+ ]
63
+ );
64
+
65
  $this->end_controls_section();
66
 
67
  if(class_exists('\MetForm_Pro\Base\Package')){
128
  protected function render($instance = []){
129
  $settings = $this->get_settings_for_display();
130
  extract($settings);
131
+
132
+ $is_edit_mode = 'metform-form' === get_post_type() && \Elementor\Plugin::$instance->editor->is_edit_mode();
133
 
134
  $class = (isset($settings['mf_conditional_logic_form_list']) ? 'mf-conditional-input' : '');
135
 
136
+ $configData = [
137
+ 'message' => $errorMessage = isset($mf_input_validation_warning_message) ? !empty($mf_input_validation_warning_message) ? $mf_input_validation_warning_message : esc_html__('This field is required.', 'metform') : esc_html__('This field is required.', 'metform'),
138
+ 'urlMessage' => esc_html__('Please enter a valid URL', 'metform'),
139
+ 'minLength' => isset($mf_input_min_length) ? $mf_input_min_length : 1,
140
+ 'maxLength' => isset($mf_input_max_length) ? $mf_input_max_length : '',
141
+ 'type' => isset($mf_input_validation_type) ? $mf_input_validation_type : '',
142
+ 'required' => isset($mf_input_required) && $mf_input_required == 'yes' ? true : false,
143
+ 'expression' => isset($mf_input_validation_expression) && !empty(trim($mf_input_validation_expression)) ? trim($mf_input_validation_expression) : 'null'
144
+ ];
145
  ?>
146
+
147
+ <div class="mf-input-wrapper">
148
+ <?php if ( 'yes' == $mf_input_label_status ): ?>
149
+ <label class="mf-input-label" for="mf-input-url-<?php echo esc_attr( $this->get_id() ); ?>"><?php echo esc_html($mf_input_label); ?>
150
+ <span class="mf-input-required-indicator"><?php echo esc_html( ($mf_input_required === 'yes') ? '*' : '' );?></span>
151
+ </label>
152
+ <?php endif; ?>
153
+
154
+ <input type="url" class="mf-input <?php echo $class; ?>" id="mf-input-url-<?php echo esc_attr($this->get_id()); ?>"
155
+ name="<?php echo esc_attr($mf_input_name); ?>"
156
+ placeholder="<?php echo esc_html($mf_input_placeholder); ?>"
157
+ <?php if ( !$is_edit_mode ): ?>
158
+ onInput=${ parent.handleChange }
159
+ aria-invalid=${validation.errors['<?php echo esc_attr($mf_input_name); ?>'] ? 'true' : 'false'}
160
+ ref=${ el => parent.activateValidation(<?php echo json_encode($configData); ?>, el) }
161
+ <?php endif; ?>
162
+ />
163
+
164
+ <?php if ( !$is_edit_mode ) : ?>
165
+ <${validation.ErrorMessage}
166
+ errors=${validation.errors}
167
+ name="<?php echo esc_attr( $mf_input_name ); ?>"
168
+ as=${html`<span className="mf-error-message"></span>`}
169
+ />
170
+ <?php endif; ?>
171
+
172
+ <?php echo '' != $mf_input_help_text ? '<span class="mf-input-help">'. esc_html( $mf_input_help_text ) .'</span>' : ''; ?>
173
  </div>
174
+
175
+ <?php
176
  }
177
 
178
+ }