Ajax Search Lite - Version 4.8.2

Version Description

  • Reworked Google Analytics integration - supporting Events tracking and both Universal and Gtag integration methods
Download this release

Release Info

Developer wpdreams
Plugin Icon 128x128 Ajax Search Lite
Version 4.8.2
Comparing to
See all releases

Code changes from version 4.8 to 4.8.2

Files changed (40) hide show
  1. ajax-search-lite.php +3 -3
  2. backend/analytics.php +303 -32
  3. backend/compatibility.php +3 -3
  4. backend/settings/admin-ajax.php +0 -12
  5. backend/settings/assets/analytics.js +31 -0
  6. backend/settings/assets/icons/icon-desktop-white.png +0 -0
  7. backend/settings/assets/icons/icon-desktop.png +0 -0
  8. backend/settings/assets/icons/icon-phone-white.png +0 -0
  9. backend/settings/assets/icons/icon-phone.png +0 -0
  10. backend/settings/assets/icons/icon-tablet-white.png +0 -0
  11. backend/settings/assets/icons/icon-tablet.png +0 -0
  12. backend/settings/assets/style.css +98 -36
  13. backend/settings/class/textsmall.class.php +33 -2
  14. backend/settings/class/type.class.php +9 -4
  15. backend/settings/default_options.php +80 -5
  16. backend/tabs/instance/image_options.php +7 -0
  17. backend/tabs/instance/layout/box_layout.php +22 -3
  18. backend/tabs/instance/layout/results_layout.php +40 -0
  19. css/style-curvy-black.css +1 -1
  20. css/style-curvy-blue.css +1 -1
  21. css/style-curvy-red.css +1 -1
  22. css/style-underline.css +1 -1
  23. css/style.basic.css +5 -1
  24. includes/classes/actions/class-asl-stylesheets.php +63 -0
  25. includes/classes/core/class-asl-init.php +84 -4
  26. includes/classes/core/class-asl-instances.php +7 -3
  27. includes/classes/search/search_content.class.php +3 -2
  28. includes/functions/functions.php +63 -23
  29. includes/views/asl.shortcode.php +2 -2
  30. includes/views/no-results.php +1 -1
  31. includes/views/result.php +1 -4
  32. js/min-scoped/jquery.ajaxsearchlite.min.js +2 -2
  33. js/min/jquery.ajaxsearchlite.min.js +2 -2
  34. js/nomin-scoped/asl_wrapper.js +22 -2
  35. js/nomin-scoped/jquery.ajaxsearchlite.js +208 -147
  36. js/nomin-scoped/jquery.mCustomScrollbar.js +0 -9
  37. js/nomin-scoped/simplebar.js +5309 -0
  38. js/nomin/asl_wrapper.js +22 -2
  39. js/nomin/jquery.ajaxsearchlite.js +208 -147
  40. js/nomin/jquery.mCustomScrollbar.js +0 -6
ajax-search-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
- Version: 4.8
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
@@ -25,8 +25,8 @@ define(
25
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
26
  );
27
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
28
- define('ASL_CURRENT_VERSION', 4737);
29
- define('ASL_CURR_VER_STRING', "4.8");
30
  define('ASL_DEBUG', 0);
31
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
32
 
3
  Plugin Name: Ajax Search Lite
4
  Plugin URI: http://wp-dreams.com
5
  Description: The lite version of the most powerful ajax powered search engine for WordPress.
6
+ Version: 4.8.2
7
  Author: Ernest Marcinko
8
  Author URI: http://wp-dreams.com
9
  Text Domain: ajax-search-lite
25
  str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
26
  );
27
  define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
28
+ define('ASL_CURRENT_VERSION', 4739);
29
+ define('ASL_CURR_VER_STRING', "4.8.2");
30
  define('ASL_DEBUG', 0);
31
  define('ASL_DEMO', get_option('wd_asl_demo', 0) );
32
 
backend/analytics.php CHANGED
@@ -1,52 +1,319 @@
1
- <?php $ana_options = wd_asl()->o['asl_analytics']; ?>
 
 
2
 
3
- <div id="wpdreams" class='wpdreams wrap<?php echo isset($_COOKIE['asl-accessibility']) ? ' wd-accessible' : ''; ?>'>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <div class="wpdreams-box" style="float:left;">
5
  <?php ob_start(); ?>
6
  <div class="item">
7
- <?php $o = new wpdreamsYesNo("analytics", __("Enable search Google Analytics integration?", "ajax-search-lite"),
8
- wpdreams_setval_or_getoption($ana_options, 'analytics', 'asl_analytics_def')
 
 
 
 
 
 
 
9
  ); ?>
 
 
 
 
 
10
  </div>
11
- <div class="item">
12
- <?php $o = new wpdreamsText("analytics_string", __("Google analytics pageview string", "ajax-search-lite"),
13
- wpdreams_setval_or_getoption($ana_options, "analytics_string", 'asl_analytics_def')
14
- ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <p class='infoMsg'>
16
- <?php _e("This is how the pageview will look like on the google analytics website. Use the {asl_term} variable to add the search term to the pageview.", "ajax-search-lite"); ?>
17
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  </div>
19
  <div class="item">
20
- <input type='submit' class='submit' value='Save options'/>
 
 
 
21
  </div>
22
  <?php $_r = ob_get_clean(); ?>
23
 
24
- <?php
25
- $updated = false;
26
- if (isset($_POST) && isset($_POST['asl_analytics']) && (wpdreamsType::getErrorNum()==0)) {
27
- print "saving!";
28
- $values = array(
29
- "analytics" => $_POST['analytics'],
30
- "analytics_string" => $_POST['analytics_string']
31
- );
32
- update_option('asl_analytics', $values);
33
- $updated = true;
34
- }
35
- ?>
36
  <div class='wpdreams-slider'>
37
  <form name='asl_analytics1' method='post'>
38
- <?php if($updated): ?><div class='successMsg'>Analytics options successfuly updated!</div><?php endif; ?>
39
  <fieldset>
40
- <legend><?php _e("Analytics options", "ajax-search-lite"); ?></legend>
41
  <?php print $_r; ?>
42
  <input type='hidden' name='asl_analytics' value='1' />
43
- </fieldset>
44
- <fieldset>
45
- <legend><?php _e("Result", "ajax-search-lite"); ?></legend>
46
- <p class='infoMsg'>
47
- <?php _e("After some time you should be able to see the hits on your analytics board.", "ajax-search-lite"); ?>
48
- </p>
49
- <img src="http://i.imgur.com/s7BXiPV.png">
50
  </fieldset>
51
  </form>
52
  </div>
@@ -55,4 +322,8 @@
55
  <a class="wd-accessible-switch" href="#"><?php echo isset($_COOKIE['asl-accessibility']) ? 'DISABLE ACCESSIBILITY' : 'ENABLE ACCESSIBILITY'; ?></a>
56
  </div>
57
  <div class="clear"></div>
58
- </div>
 
 
 
 
1
+ <?php
2
+ /* Prevent direct access */
3
+ defined('ABSPATH') or die("You can't access this file directly.");
4
 
5
+ $action_msg = '';
6
+ if (
7
+ isset($_POST, $_POST['asl_analytics'], $_POST['reset'], $_POST['asl_analytics_nonce']) &&
8
+ isset($_POST['asl_analytics_nonce'])
9
+ ) {
10
+ if ( wp_verify_nonce( $_POST['asl_analytics_nonce'], 'asl_analytics_nonce' ) ) {
11
+ asl_reset_option('asl_analytics', false);
12
+ $action_msg = "<div class='infoMsg'><strong>" . __('Analytics settings were reset to defaults!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
13
+ } else {
14
+ $action_msg = "<div class='errorMsg'><strong>". __('<strong>ERROR Resetting:</strong> Invalid NONCE, please try again!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
15
+ }
16
+ $_POST = array();
17
+ }
18
+
19
+ if (isset($_POST, $_POST['asl_analytics'], $_POST['submit'], $_POST['asl_analytics_nonce']) && (wpdreamsType::getErrorNum()==0)) {
20
+ if ( wp_verify_nonce( $_POST['asl_analytics_nonce'], 'asl_analytics_nonce' ) ) {
21
+ $values = array(
22
+ "analytics" => $_POST['analytics'],
23
+ "analytics_tracking_id" => $_POST['analytics_tracking_id'],
24
+ "analytics_string" => $_POST['analytics_string'],
25
+ // Gtag on input focus
26
+ 'gtag_focus' => $_POST['gtag_focus'],
27
+ 'gtag_focus_action' => $_POST['gtag_focus_action'],
28
+ 'gtag_focus_ec' => $_POST['gtag_focus_ec'],
29
+ 'gtag_focus_el' => $_POST['gtag_focus_el'],
30
+ 'gtag_focus_value' => $_POST['gtag_focus_value'],
31
+ // Gtag on search start
32
+ 'gtag_search_start' => $_POST['gtag_search_start'],
33
+ 'gtag_search_start_action' => $_POST['gtag_search_start_action'],
34
+ 'gtag_search_start_ec' => $_POST['gtag_search_start_ec'],
35
+ 'gtag_search_start_el' => $_POST['gtag_search_start_el'],
36
+ 'gtag_search_start_value' => $_POST['gtag_search_start_value'],
37
+ // Gtag on search end
38
+ 'gtag_search_end' => $_POST['gtag_search_end'],
39
+ 'gtag_search_end_action' => $_POST['gtag_search_end_action'],
40
+ 'gtag_search_end_ec' => $_POST['gtag_search_end_ec'],
41
+ 'gtag_search_end_el' => $_POST['gtag_search_end_el'],
42
+ 'gtag_search_end_value' => $_POST['gtag_search_end_value'],
43
+ // Gtag on magnifier
44
+ 'gtag_magnifier' => $_POST['gtag_magnifier'],
45
+ 'gtag_magnifier_action' => $_POST['gtag_magnifier_action'],
46
+ 'gtag_magnifier_ec' => $_POST['gtag_magnifier_ec'],
47
+ 'gtag_magnifier_el' => $_POST['gtag_magnifier_el'],
48
+ 'gtag_magnifier_value' => $_POST['gtag_magnifier_value'],
49
+ // Gtag on return
50
+ 'gtag_return' => $_POST['gtag_return'],
51
+ 'gtag_return_action' => $_POST['gtag_return_action'],
52
+ 'gtag_return_ec' => $_POST['gtag_return_ec'],
53
+ 'gtag_return_el' => $_POST['gtag_return_el'],
54
+ 'gtag_return_value' => $_POST['gtag_return_value'],
55
+ // Gtag on facet change
56
+ 'gtag_facet_change' => $_POST['gtag_facet_change'],
57
+ 'gtag_facet_change_action' => $_POST['gtag_facet_change_action'],
58
+ 'gtag_facet_change_ec' => $_POST['gtag_facet_change_ec'],
59
+ 'gtag_facet_change_el' => $_POST['gtag_facet_change_el'],
60
+ 'gtag_facet_change_value' => $_POST['gtag_facet_change_value'],
61
+ // Gtag on result click
62
+ 'gtag_result_click' => $_POST['gtag_result_click'],
63
+ 'gtag_result_click_action' => $_POST['gtag_result_click_action'],
64
+ 'gtag_result_click_ec' => $_POST['gtag_result_click_ec'],
65
+ 'gtag_result_click_el' => $_POST['gtag_result_click_el'],
66
+ 'gtag_result_click_value' => $_POST['gtag_result_click_value']
67
+ );
68
+ update_option('asl_analytics', $values);
69
+ asl_parse_options();
70
+ $action_msg = "<div class='infoMsg'><strong>" . __('Analytics settings saved!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
71
+ } else {
72
+ $action_msg = "<div class='errorMsg'><strong>". __('<strong>ERROR Saving:</strong> Invalid NONCE, please try again!', 'ajax-search-lite') . '</strong> (' . date("Y-m-d H:i:s") . ")</div>";
73
+ $_POST = array();
74
+ }
75
+ }
76
+
77
+ $ana_options = wd_asl()->o['asl_analytics'];
78
+ ?>
79
+
80
+ <div id="wpdreams" class='wpdreams wrap<?php echo isset($_COOKIE['asl-accessibility']) ? ' wd-accessible' : ''; ?> asl-be-analytics'>
81
  <div class="wpdreams-box" style="float:left;">
82
  <?php ob_start(); ?>
83
  <div class="item">
84
+ <?php $o = new wpdreamsCustomSelect("analytics", "Google analytics integration method",
85
+ array(
86
+ 'selects' => array(
87
+ array("option" => esc_attr__('Disabled', 'ajax-search-lite'), "value" => "0"),
88
+ array("option" => esc_attr__('Event Tracking', 'ajax-search-lite'), "value" => "event"),
89
+ array("option" => esc_attr__('Tracking as pageview (legacy)', 'ajax-search-lite'), "value" => "pageview")
90
+ ),
91
+ 'value' => $ana_options["analytics"]
92
+ )
93
  ); ?>
94
+ <p class="descMsg">
95
+ <?php echo sprintf( __('To understand how this works, please read the <a href="%s">Analytics Integration Documentation</a>', 'ajax-search-lite'),
96
+ 'https://documentation.ajaxsearchpro.com/analytics-integration'
97
+ ); ?>
98
+ </p>
99
  </div>
100
+ <div class="asl_al_both hiddend">
101
+ <div class="item">
102
+ <?php $o = new wpdreamsText("analytics_tracking_id", __('Google analytics Tracking ID (ex.: UA-XXXXXX-X)', 'ajax-search-lite'), $ana_options["analytics_tracking_id"]); ?>
103
+ <p class='infoMsg'>
104
+ <?php echo __(sprintf(
105
+ 'Please read this <a href="%s">google analytics documentation</a> to get your <a href="%s">tracking ID</a>.',
106
+ 'https://support.google.com/analytics/answer/7372977',
107
+ 'https://i.imgur.com/KiyBIPy.png'
108
+ ), 'ajax-search-lite'); ?>
109
+ </p>
110
+ </div>
111
+ </div>
112
+ <div class="asl_al_pageview hiddend">
113
+ <div class="item">
114
+ <?php $o = new wpdreamsText("analytics_string", __('Google analytics pageview string', 'ajax-search-lite'), $ana_options["analytics_string"]); ?>
115
+ <p class='infoMsg'>
116
+ <?php echo __('This is how the pageview will look like on the google analytics website. Use the {asl_term} variable to add the search term to the pageview.', 'ajax-search-lite'); ?>
117
+ </p>
118
+ </div>
119
  <p class='infoMsg'>
120
+ <?php echo __('After some time you should be able to see the hits on your analytics board.', 'ajax-search-lite'); ?>
121
  </p>
122
+ <img src="http://i.imgur.com/s7BXiPV.png">
123
+ </div>
124
+ <div class="asl_al_event hiddend">
125
+ <fieldset>
126
+ <legend><?php echo __('Search input focus event tracking', 'ajax-search-lite'); ?></legend>
127
+ <div class="item asl_gtag_switch">
128
+ <?php
129
+ $o = new wpdreamsYesNo("gtag_focus", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_focus"]);
130
+ ?>
131
+ <p class='descMsg'>
132
+ <?php echo __('Triggers, whenever the user clicks on the search input field.', 'ajax-search-lite'); ?>
133
+ </p>
134
+ </div>
135
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
136
+ <div class='descMsg item-flex-grow item-flex-100'>
137
+ <?php echo sprintf(
138
+ __('Usable variables: %s', 'ajax-search-lite'),
139
+ '{phrase}'
140
+ ); ?>
141
+ </div>
142
+ <?php
143
+ $o = new wpdreamsText("gtag_focus_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_focus_action"]);
144
+ $o = new wpdreamsText("gtag_focus_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_focus_ec"]);
145
+ $o = new wpdreamsText("gtag_focus_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_focus_el"]);
146
+ $o = new wpdreamsText("gtag_focus_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_focus_value"]);
147
+ ?>
148
+ </div>
149
+ </fieldset>
150
+ <fieldset>
151
+ <legend><?php echo __('Live search start event tracking', 'ajax-search-lite'); ?></legend>
152
+ <div class="item asl_gtag_switch">
153
+ <?php
154
+ $o = new wpdreamsYesNo("gtag_search_start", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_search_start"]);
155
+ ?>
156
+ <p class='descMsg'>
157
+ <?php echo __('Triggers, whenever the live search starts.', 'ajax-search-lite'); ?>
158
+ </p>
159
+ </div>
160
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
161
+ <div class='descMsg item-flex-grow item-flex-100'>
162
+ <?php echo sprintf(
163
+ __('Usable variables: %s', 'ajax-search-lite'),
164
+ '{phrase}'
165
+ ); ?>
166
+ </div>
167
+ <?php
168
+ $o = new wpdreamsText("gtag_search_start_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_search_start_action"]);
169
+ $o = new wpdreamsText("gtag_search_start_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_search_start_ec"]);
170
+ $o = new wpdreamsText("gtag_search_start_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_search_start_el"]);
171
+ $o = new wpdreamsText("gtag_search_start_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_search_start_value"]);
172
+ ?>
173
+ </div>
174
+ </fieldset>
175
+ <fieldset>
176
+ <legend><?php echo __('Live search end event tracking', 'ajax-search-lite'); ?></legend>
177
+ <div class="item asl_gtag_switch">
178
+ <?php
179
+ $o = new wpdreamsYesNo("gtag_search_end", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_search_end"]);
180
+ ?>
181
+ <p class='descMsg'>
182
+ <?php echo __('Triggers, whenever the live search ends.', 'ajax-search-lite'); ?>
183
+ </p>
184
+ </div>
185
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
186
+ <div class='descMsg item-flex-grow item-flex-100'>
187
+ <?php echo sprintf(
188
+ __('Usable variables: %s', 'ajax-search-lite'),
189
+ '{phrase}'
190
+ ); ?>
191
+ </div>
192
+ <?php
193
+ $o = new wpdreamsText("gtag_search_end_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_search_end_action"]);
194
+ $o = new wpdreamsText("gtag_search_end_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_search_end_ec"]);
195
+ $o = new wpdreamsText("gtag_search_end_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_search_end_el"]);
196
+ $o = new wpdreamsText("gtag_search_end_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_search_end_value"]);
197
+ ?>
198
+ </div>
199
+ </fieldset>
200
+ <fieldset>
201
+ <legend><?php echo __('Magnifier click event tracking', 'ajax-search-lite'); ?></legend>
202
+ <div class="item asl_gtag_switch">
203
+ <?php
204
+ $o = new wpdreamsYesNo("gtag_magnifier", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_magnifier"]);
205
+ ?>
206
+ <p class='descMsg'>
207
+ <?php echo __('Triggers, whenever the user clicks the magnifier icon', 'ajax-search-lite'); ?>
208
+ </p>
209
+ </div>
210
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
211
+ <div class='descMsg item-flex-grow item-flex-100'>
212
+ <?php echo sprintf(
213
+ __('Usable variables: %s', 'ajax-search-lite'),
214
+ '{phrase}'
215
+ ); ?>
216
+ </div>
217
+ <?php
218
+ $o = new wpdreamsText("gtag_magnifier_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_magnifier_action"]);
219
+ $o = new wpdreamsText("gtag_magnifier_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_magnifier_ec"]);
220
+ $o = new wpdreamsText("gtag_magnifier_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_magnifier_el"]);
221
+ $o = new wpdreamsText("gtag_magnifier_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_magnifier_value"]);
222
+ ?>
223
+ </div>
224
+ </fieldset>
225
+ <fieldset>
226
+ <legend><?php echo __('Return key event tracking', 'ajax-search-lite'); ?></legend>
227
+ <div class="item asl_gtag_switch">
228
+ <?php
229
+ $o = new wpdreamsYesNo("gtag_return", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_return"]);
230
+ ?>
231
+ <p class='descMsg'>
232
+ <?php echo __('Triggers, whenever the user hits the enter button in the search input field', 'ajax-search-lite'); ?>
233
+ </p>
234
+ </div>
235
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
236
+ <div class='descMsg item-flex-grow item-flex-100'>
237
+ <?php echo sprintf(
238
+ __('Usable variables: %s', 'ajax-search-lite'),
239
+ '{phrase}'
240
+ ); ?>
241
+ </div>
242
+ <?php
243
+ $o = new wpdreamsText("gtag_return_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_return_action"]);
244
+ $o = new wpdreamsText("gtag_return_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_return_ec"]);
245
+ $o = new wpdreamsText("gtag_return_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_return_el"]);
246
+ $o = new wpdreamsText("gtag_return_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_return_value"]);
247
+ ?>
248
+ </div>
249
+ </fieldset>
250
+ <fieldset>
251
+ <legend><?php echo __('Facet change event tracking', 'ajax-search-lite'); ?></legend>
252
+ <div class="item asl_gtag_switch">
253
+ <?php
254
+ $o = new wpdreamsYesNo("gtag_facet_change", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_facet_change"]);
255
+ ?>
256
+ <p class='descMsg'>
257
+ <?php echo __('Triggers, whenever the user changes any option on the front-end settings', 'ajax-search-lite'); ?>
258
+ </p>
259
+ </div>
260
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
261
+ <div class='descMsg item-flex-grow item-flex-100'>
262
+ <?php echo sprintf(
263
+ __('Usable variables: %s', 'ajax-search-lite'),
264
+ '{option_label}, {option_value}, {phrase}'
265
+ ); ?>
266
+ </div>
267
+ <?php
268
+ $o = new wpdreamsText("gtag_facet_change_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_facet_change_action"]);
269
+ $o = new wpdreamsText("gtag_facet_change_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_facet_change_ec"]);
270
+ $o = new wpdreamsText("gtag_facet_change_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_facet_change_el"]);
271
+ $o = new wpdreamsText("gtag_facet_change_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_facet_change_value"]);
272
+ ?>
273
+ </div>
274
+ </fieldset>
275
+ <fieldset>
276
+ <legend><?php echo __('Results click event tracking', 'ajax-search-lite'); ?></legend>
277
+ <div class="item asl_gtag_switch">
278
+ <?php
279
+ $o = new wpdreamsYesNo("gtag_result_click", __('Enabled', 'ajax-search-lite'), $ana_options["gtag_result_click"]);
280
+ ?>
281
+ <p class='descMsg'>
282
+ <?php echo __('Triggers, whenever the user changes any option on the front-end settings', 'ajax-search-lite'); ?>
283
+ </p>
284
+ </div>
285
+ <div class="item item-flex item-flex-nogrow item-flex-wrap item-flex-two-column asl_gtag_inputs">
286
+ <div class='descMsg item-flex-grow item-flex-100'>
287
+ <?php echo sprintf(
288
+ __('Usable variables: %s', 'ajax-search-lite'),
289
+ '{result_title}, {result_url}, {phrase}'
290
+ ); ?>
291
+ </div>
292
+ <?php
293
+ $o = new wpdreamsText("gtag_result_click_action", __('Event action', 'ajax-search-lite'), $ana_options["gtag_result_click_action"]);
294
+ $o = new wpdreamsText("gtag_result_click_ec", __('Event category', 'ajax-search-lite'), $ana_options["gtag_result_click_ec"]);
295
+ $o = new wpdreamsText("gtag_result_click_el", __('Event label', 'ajax-search-lite'), $ana_options["gtag_result_click_el"]);
296
+ $o = new wpdreamsText("gtag_result_click_value", __('Event value', 'ajax-search-lite'), $ana_options["gtag_result_click_value"]);
297
+ ?>
298
+ </div>
299
+ </fieldset>
300
  </div>
301
  <div class="item">
302
+ <input name="reset"
303
+ class="asl_submit asl_submit_transparent asl_submit_reset"
304
+ type="submit" value="<?php echo esc_attr__('Restore defaults', 'ajax-search-lite'); ?>">
305
+ <input type='submit' name="submit" class='submit' value='<?php echo esc_attr__('Save options', 'ajax-search-lite'); ?>'/>
306
  </div>
307
  <?php $_r = ob_get_clean(); ?>
308
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  <div class='wpdreams-slider'>
310
  <form name='asl_analytics1' method='post'>
311
+ <?php echo $action_msg; ?>
312
  <fieldset>
313
+ <legend><?php echo __('Analytics options', 'ajax-search-lite'); ?></legend>
314
  <?php print $_r; ?>
315
  <input type='hidden' name='asl_analytics' value='1' />
316
+ <input type="hidden" name="asl_analytics_nonce" id="asl_analytics_nonce" value="<?php echo wp_create_nonce( "asl_analytics_nonce" ); ?>">
 
 
 
 
 
 
317
  </fieldset>
318
  </form>
319
  </div>
322
  <a class="wd-accessible-switch" href="#"><?php echo isset($_COOKIE['asl-accessibility']) ? 'DISABLE ACCESSIBILITY' : 'ENABLE ACCESSIBILITY'; ?></a>
323
  </div>
324
  <div class="clear"></div>
325
+ </div>
326
+ <?php
327
+ wp_enqueue_script('asl-backend-analytics', plugin_dir_url(__FILE__) . 'settings/assets/analytics.js', array(
328
+ 'jquery', 'wpdreams-tabs'
329
+ ), ASL_CURR_VER_STRING, true);
backend/compatibility.php CHANGED
@@ -84,12 +84,12 @@ if (ASL_DEMO) $_POST = null;
84
  </div>
85
  <div class="item">
86
  <?php
87
- $o = new wpdreamsCustomSelect("load_mcustom_js", "Load the scrollbar script?", array(
88
  'selects'=>array(
89
  array('option'=>'Yes', 'value'=>'yes'),
90
  array('option'=>'No', 'value'=>'no')
91
  ),
92
- 'value'=>$com_options['load_mcustom_js']
93
  )
94
  );
95
  $params[$o->getName()] = $o->getData();
@@ -162,7 +162,7 @@ if (ASL_DEMO) $_POST = null;
162
  // CSS and JS
163
  "js_source" => $_POST['js_source'],
164
  "js_init" => $_POST['js_init'],
165
- "load_mcustom_js" => $_POST['load_mcustom_js'],
166
  "detect_ajax" => $_POST['detect_ajax'],
167
  "js_retain_popstate" => $_POST['js_retain_popstate'],
168
  'js_fix_duplicates' => $_POST['js_fix_duplicates'],
84
  </div>
85
  <div class="item">
86
  <?php
87
+ $o = new wpdreamsCustomSelect("load_scroll_js", "Load the scrollbar script?", array(
88
  'selects'=>array(
89
  array('option'=>'Yes', 'value'=>'yes'),
90
  array('option'=>'No', 'value'=>'no')
91
  ),
92
+ 'value'=>$com_options['load_scroll_js']
93
  )
94
  );
95
  $params[$o->getName()] = $o->getData();
162
  // CSS and JS
163
  "js_source" => $_POST['js_source'],
164
  "js_init" => $_POST['js_init'],
165
+ "load_scroll_js" => $_POST['load_scroll_js'],
166
  "detect_ajax" => $_POST['detect_ajax'],
167
  "js_retain_popstate" => $_POST['js_retain_popstate'],
168
  'js_fix_duplicates' => $_POST['js_fix_duplicates'],
backend/settings/admin-ajax.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- /* Ajax functions here */
3
-
4
- /*
5
- add_action('wp_ajax_functionname', 'functionname');
6
- function functionname() {
7
- print_r("something");
8
- die();
9
- }
10
- */
11
-
12
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
backend/settings/assets/analytics.js ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(function($){
2
+ $('select[name=analytics]').on('change', function(){
3
+ var v = $(this).val();
4
+ if ( v == '0' ) {
5
+ $('.asl_al_pageview').addClass('hiddend');
6
+ $('.asl_al_event').addClass('hiddend');
7
+ $('.asl_al_both').addClass('hiddend');
8
+ } else if ( v == 'pageview' ) {
9
+ $('.asl_al_pageview').removeClass('hiddend');
10
+ $('.asl_al_event').addClass('hiddend');
11
+ $('.asl_al_both').removeClass('hiddend');
12
+ } else if ( v == 'event' ) {
13
+ $('.asl_al_pageview').addClass('hiddend');
14
+ $('.asl_al_event').removeClass('hiddend');
15
+ $('.asl_al_both').removeClass('hiddend');
16
+ }
17
+ }).trigger('change');
18
+ $('.asl_gtag_switch input[isparam]').on('change', function(){
19
+ if ( $(this).val() == 1 ) {
20
+ $(this).closest('fieldset').find('.asl_gtag_inputs').removeClass('disabled');
21
+ } else {
22
+ $(this).closest('fieldset').find('.asl_gtag_inputs').addClass('disabled');
23
+ }
24
+ }).trigger('change');
25
+ $('.asl_submit_reset').on('click', function(){
26
+ if(confirm('Do you really want to reset the options to defaults?')) {
27
+ return true;
28
+ }
29
+ return false;
30
+ });
31
+ });
backend/settings/assets/icons/icon-desktop-white.png ADDED
Binary file
backend/settings/assets/icons/icon-desktop.png ADDED
Binary file
backend/settings/assets/icons/icon-phone-white.png ADDED
Binary file
backend/settings/assets/icons/icon-phone.png ADDED
Binary file
backend/settings/assets/icons/icon-tablet-white.png ADDED
Binary file
backend/settings/assets/icons/icon-tablet.png ADDED
Binary file
backend/settings/assets/style.css CHANGED
@@ -243,18 +243,23 @@ Generic classes
243
  #wpdreams input,
244
  #wpdreams textarea,
245
  #wpdreams select {
246
- border: 1px solid #E5E5E5;
247
- box-shadow: none;
248
- height: auto;
249
- margin: 0 5px;
250
- outline: 0 none;
251
- padding: 3px;
252
- width: 200px;
 
 
 
253
  }
254
 
255
- #wpdreams select {
256
- width: auto;
257
- max-width: 200px;
 
 
258
  }
259
 
260
  #wpdreams input[type=checkbox],
@@ -263,6 +268,23 @@ Generic classes
263
  height: 16px;
264
  }
265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  #wpdreams .wpdreamsTextSmall input,
267
  #wpdreams input.threedigit {
268
  width: 45px;
@@ -554,28 +576,43 @@ Generic classes
554
  }
555
 
556
 
 
557
  #wpdreams input[type=submit],
558
- #wpdreams input[type=button].submit {
559
- margin: 7px 5px 0;
560
- line-height: 12px;
561
- padding: 8px 14px;
562
- box-shadow: 0px 1px 0px 0px #92391D, 0px 1px 0px 0px #C24822 inset;
563
- background: linear-gradient(to bottom, #D03F1B 5%, #BC3615 100%);
564
- border: 0;
565
- border-radius: 2px;
566
- text-shadow: 1px 1px 0px #9B4C3D;
567
- font-size: 13px;
568
- color: #FFF;
569
- position: relative;
570
- cursor: pointer;
571
- width: auto;
572
- }
573
-
 
 
 
 
 
 
 
 
 
 
 
 
 
574
  #wpdreams input[type=submit]:active,
575
- #wpdreams input[type=button].submit:active {
576
- box-shadow: 0px 1px 0px 0px #92391D, 0px 1px 0px 0px #C24822 inset;
577
- background: #92391D;
578
- outline-width: 0;
 
579
  }
580
 
581
  #wpdreams input[type=submit]:focus,
@@ -694,18 +731,35 @@ Generic classes
694
  .item-flex-nogrow,
695
  #wpdreams .item.item-flex,
696
  #wpdreams .item.item-flex-nogrow {
697
- display: flex;
698
- flex-direction: row;
699
- flex-grow: 0;
700
- flex-shrink: 0;
 
 
 
 
 
701
  }
702
 
703
  #wpdreams .item.item-flex-nogrow > div {
704
- flex-grow: 0;
705
  }
706
 
707
  #wpdreams .item.item-flex-nogrow > div:first-child {
708
- flex-grow: 1;
 
 
 
 
 
 
 
 
 
 
 
 
709
  }
710
 
711
 
@@ -2194,6 +2248,14 @@ form #asp_indextable_options #asp_it_disable {
2194
  height: 100%;
2195
  }
2196
 
 
 
 
 
 
 
 
 
2197
  /************************************************\
2198
  Disabler
2199
  \************************************************/
243
  #wpdreams input,
244
  #wpdreams textarea,
245
  #wpdreams select {
246
+ border: 1px solid #E5E5E5;
247
+ box-shadow: none;
248
+ height: auto;
249
+ margin: 0 5px;
250
+ outline: 0 none;
251
+ padding: 3px;
252
+ width: 200px;
253
+ line-height: initial;
254
+ border-radius: unset;
255
+ min-height: auto;
256
  }
257
 
258
+ #wpdreams select:not([multiple]) {
259
+ width: auto;
260
+ max-width: 200px;
261
+ -webkit-appearance: menulist;
262
+ padding: 2px;
263
  }
264
 
265
  #wpdreams input[type=checkbox],
268
  height: 16px;
269
  }
270
 
271
+ #wpdreams .wpdreamsTextSmall .wpd-txt-small-icon {
272
+ width: 24px;
273
+ height: 24px;
274
+ display: inline-block;
275
+ vertical-align: top;
276
+ }
277
+
278
+ #wpdreams .wpdreamsTextSmall .wpd-txt-small-icon.wpd-txt-small-icon-desktop {
279
+ background: url(icons/icon-desktop.png) no-repeat center;
280
+ }
281
+ #wpdreams .wpdreamsTextSmall .wpd-txt-small-icon.wpd-txt-small-icon-tablet {
282
+ background: url(icons/icon-tablet.png) no-repeat 3px 0;
283
+ }
284
+ #wpdreams .wpdreamsTextSmall .wpd-txt-small-icon.wpd-txt-small-icon-phone {
285
+ background: url(icons/icon-phone.png) no-repeat 5px 0;
286
+ }
287
+
288
  #wpdreams .wpdreamsTextSmall input,
289
  #wpdreams input.threedigit {
290
  width: 45px;
576
  }
577
 
578
 
579
+ input[type=button].wd_button,
580
  #wpdreams input[type=submit],
581
+ #wpdreams input[type=button].submit,
582
+ #wpdreams input[type=button].asl_submit {
583
+ margin: 7px 5px 0;
584
+ line-height: 12px;
585
+ padding: 8px 14px;
586
+ box-shadow: 0px 1px 0px 0px #92391D, 0px 1px 0px 0px #C24822 inset;
587
+ background: linear-gradient(to bottom, #D03F1B 5%, #BC3615 100%);
588
+ border: 0;
589
+ border-radius: 2px;
590
+ text-shadow: 1px 1px 0px #9B4C3D;
591
+ font-size: 13px;
592
+ color: #FFF;
593
+ position: relative;
594
+ cursor: pointer;
595
+ width: auto;
596
+ }
597
+
598
+ #wpdreams input[type=button].asl_submit.asl_submit_transparent,
599
+ #wpdreams input[type=submit].asl_submit.asl_submit_transparent {
600
+ color: #555;
601
+ border: 1px solid #ccc;
602
+ background: #f7f7f7;
603
+ -webkit-box-shadow: 0 1px 0 #ccc;
604
+ box-shadow: 0 1px 0 #eaeaea;
605
+ border-radius: 2px;
606
+ text-shadow: none;
607
+ }
608
+
609
+ input[type=button].wd_button:active,
610
  #wpdreams input[type=submit]:active,
611
+ #wpdreams input[type=button].submit:active,
612
+ #wpdreams input[type=button].asl_submit:not(.asl_submit_transparent):active {
613
+ box-shadow: 0px 1px 0px 0px #92391D, 0px 1px 0px 0px #C24822 inset;
614
+ background: #92391D;
615
+ outline-width: 0;
616
  }
617
 
618
  #wpdreams input[type=submit]:focus,
731
  .item-flex-nogrow,
732
  #wpdreams .item.item-flex,
733
  #wpdreams .item.item-flex-nogrow {
734
+ display: flex;
735
+ flex-direction: row;
736
+ flex-grow: 0;
737
+ flex-shrink: 0;
738
+ }
739
+
740
+ #wpdreams .item-flex-two-column > *,
741
+ .item-flex-two-column * {
742
+ flex-basis: 50%;
743
  }
744
 
745
  #wpdreams .item.item-flex-nogrow > div {
746
+ flex-grow: 0;
747
  }
748
 
749
  #wpdreams .item.item-flex-nogrow > div:first-child {
750
+ flex-grow: 1;
751
+ }
752
+
753
+ #wpdreams .item.item-flex-wrap {
754
+ flex-wrap: wrap;
755
+ }
756
+
757
+ #wpdreams .item .item-flex-100 {
758
+ min-width: 100%;
759
+ flex-wrap: wrap;
760
+ flex-basis: auto;
761
+ flex-grow: 1 !important;
762
+ box-sizing: border-box;
763
  }
764
 
765
 
2248
  height: 100%;
2249
  }
2250
 
2251
+ /************************************************\
2252
+ Analytics page Specifics
2253
+ \************************************************/
2254
+ #wpdreams.asl-be-analytics .asl_al_event .wpdreamsText:nth-child(3),
2255
+ #wpdreams.asl-be-analytics .asl_al_event .wpdreamsText:nth-child(4) {
2256
+ margin: 12px 0 0 0;
2257
+ }
2258
+
2259
  /************************************************\
2260
  Disabler
2261
  \************************************************/
backend/settings/class/textsmall.class.php CHANGED
@@ -12,15 +12,46 @@ if (!class_exists("wpdreamsTextSmall")) {
12
  * @copyright Copyright (c) 2014, Ernest Marcinko
13
  */
14
  class wpdreamsTextSmall extends wpdreamsType {
15
- public function getType() {
 
 
 
 
 
 
16
  parent::getType();
 
17
  echo "<div class='wpdreamsTextSmall'>";
18
  if ($this->label != "")
19
  echo "<label for='wpdreamstextsmall_" . self::$_instancenumber . "'>" . $this->label . "</label>";
20
- echo "<input isparam=1 class='small' type='text' id='wpdreamstextsmall_" . self::$_instancenumber . "' name='" . $this->name . "' value=\"" . stripslashes(esc_html($this->data)) . "\" />";
 
 
 
 
 
 
 
 
 
 
21
  echo "
22
  <div class='triggerer'></div>
23
  </div>";
24
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
  }
12
  * @copyright Copyright (c) 2014, Ernest Marcinko
13
  */
14
  class wpdreamsTextSmall extends wpdreamsType {
15
+
16
+ private $icon = 'none';
17
+ private $suffix = '';
18
+ private $inputClasses = '';
19
+ private $iconMsg;
20
+
21
+ function getType() {
22
  parent::getType();
23
+ $this->processData();
24
  echo "<div class='wpdreamsTextSmall'>";
25
  if ($this->label != "")
26
  echo "<label for='wpdreamstextsmall_" . self::$_instancenumber . "'>" . $this->label . "</label>";
27
+
28
+ if ( $this->icon != 'none' ) {
29
+ ?>
30
+ <span
31
+ title="<?php echo isset($this->iconMsg[$this->icon]) ? $this->iconMsg[$this->icon] : ''; ?>"
32
+ class="wpd-txt-small-icon wpd-txt-small-icon-<?php echo $this->icon ?>">
33
+ </span>
34
+ <?php
35
+ }
36
+ echo "<input isparam=1 class='small ".$this->inputClasses."' type='text' id='wpdreamstextsmall_" . self::$_instancenumber . "' name='" . $this->name . "' value=\"" . stripslashes(esc_html($this->value)) . "\" />";
37
+ echo $this->suffix;
38
  echo "
39
  <div class='triggerer'></div>
40
  </div>";
41
  }
42
+
43
+ public function processData() {
44
+ $this->iconMsg = array(
45
+ 'phone' => __('Phone devices, on 0px to 640px widths', 'ajax-search-lite'),
46
+ 'tablet' => __('Tablet devices, on 641px to 1024px widths', 'ajax-search-lite'),
47
+ 'desktop' => __('Desktop devices, 1025px width and higher', 'ajax-search-lite')
48
+ );
49
+
50
+ if ( is_array($this->data) ) {
51
+ $this->icon = isset($this->data['icon']) ? $this->data['icon'] : $this->icon;
52
+ $this->suffix = isset($this->data['suffix']) ? $this->data['suffix'] : $this->suffix;
53
+ $this->inputClasses = isset($this->data['inputClasses']) ? $this->data['inputClasses'] : $this->inputClasses;
54
+ }
55
+ }
56
  }
57
  }
backend/settings/class/type.class.php CHANGED
@@ -16,7 +16,10 @@ if (!class_exists("wpdreamsType")) {
16
  protected static $_instancenumber = 0;
17
  protected static $_errors = 0;
18
  protected static $_globalerrormsg = "Only integer values are accepted!";
19
- protected $data;
 
 
 
20
 
21
  function __construct($name, $label, $data, $constraints = null, $errormsg = "") {
22
  $this->name = $name;
@@ -25,6 +28,7 @@ if (!class_exists("wpdreamsType")) {
25
  $this->errormsg = $errormsg;
26
  $this->defaultData = $data; // Preserving constructor default data after posting
27
  $this->data = $data;
 
28
  $this->isError = false;
29
  self::$_instancenumber++;
30
  $this->getType();
@@ -122,18 +126,19 @@ if (!class_exists("wpdreamsType")) {
122
  * Called in the constructor by default.
123
  *
124
  * Checks for errors when a new value was posted.
125
- *
126
  */
127
  protected function getType() {
128
- if (isset($_POST[$this->name])) {
129
  if (!$this->checkData() || $this->getError()) {
130
  /*errormessage*/
131
  echo "<div class='errorMsg'>" . (($this->errormsg != "") ? $this->errormsg : self::$_globalerrormsg) . "</div>";
132
  } else {
133
  if (is_array($this->data) && isset($this->data['value'])) {
134
  $this->data['value'] = $_POST[$this->name];
 
135
  } else {
136
  $this->data = $_POST[$this->name];
 
137
  }
138
  }
139
  }
@@ -161,7 +166,7 @@ if (!class_exists("wpdreamsType")) {
161
  *
162
  * @return int
163
  */
164
- static function getErrorNum() {
165
  return self::$_errors;
166
  }
167
  }
16
  protected static $_instancenumber = 0;
17
  protected static $_errors = 0;
18
  protected static $_globalerrormsg = "Only integer values are accepted!";
19
+
20
+ protected $name, $label, $constraints, $errormsg, $defaultData, $newData, $isError;
21
+ protected $value; // Contains only the value
22
+ protected $data; // Contains everything passed (arguments and value), array or string
23
 
24
  function __construct($name, $label, $data, $constraints = null, $errormsg = "") {
25
  $this->name = $name;
28
  $this->errormsg = $errormsg;
29
  $this->defaultData = $data; // Preserving constructor default data after posting
30
  $this->data = $data;
31
+ $this->value = is_array($this->data) && isset($this->data['value']) ? $this->data['value'] : $this->data;
32
  $this->isError = false;
33
  self::$_instancenumber++;
34
  $this->getType();
126
  * Called in the constructor by default.
127
  *
128
  * Checks for errors when a new value was posted.
 
129
  */
130
  protected function getType() {
131
+ if ( isset($_POST[$this->name]) ) {
132
  if (!$this->checkData() || $this->getError()) {
133
  /*errormessage*/
134
  echo "<div class='errorMsg'>" . (($this->errormsg != "") ? $this->errormsg : self::$_globalerrormsg) . "</div>";
135
  } else {
136
  if (is_array($this->data) && isset($this->data['value'])) {
137
  $this->data['value'] = $_POST[$this->name];
138
+ $this->value = $this->data['value'];
139
  } else {
140
  $this->data = $_POST[$this->name];
141
+ $this->value = $this->data;
142
  }
143
  }
144
  }
166
  *
167
  * @return int
168
  */
169
+ public static function getErrorNum() {
170
  return self::$_errors;
171
  }
172
  }
backend/settings/default_options.php CHANGED
@@ -10,11 +10,56 @@ function asl_do_init_options() {
10
  /* Default caching options */
11
  $options = array();
12
 
 
13
  $options['asl_analytics_def'] = array(
14
- 'analytics' => 0,
15
- 'analytics_string' => "?ajax_search={asl_term}"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  );
17
 
 
18
  $options['asl_performance_def'] = array(
19
  'use_custom_ajax_handler' => 0,
20
  'image_cropping' => 0,
@@ -26,7 +71,7 @@ function asl_do_init_options() {
26
  // CSS JS
27
  'js_source' => "min",
28
  'js_init' => "dynamic",
29
- 'load_mcustom_js' => 'yes',
30
  'js_fix_duplicates' => 1,
31
  "detect_ajax" => 0,
32
  "js_retain_popstate" => 0,
@@ -86,6 +131,7 @@ function asl_do_init_options() {
86
  'image_bg_color' => "#FFFFFF",
87
  'image_width' => 70,
88
  'image_height' => 70,
 
89
 
90
  'image_crop_location' => 'c',
91
  'image_crop_location_selects' => array(
@@ -160,6 +206,8 @@ function asl_do_init_options() {
160
  /* Layout Options */
161
  // Box layout
162
  'box_width' => "100%",
 
 
163
  'box_margin' => "||0px||0px||0px||0px||",
164
  'box_font' => 'Open Sans',
165
  'override_bg' => 0,
@@ -185,6 +233,12 @@ function asl_do_init_options() {
185
  'resultsmargintop' => '12px',
186
 
187
  'v_res_max_height' => 'none',
 
 
 
 
 
 
188
  'defaultsearchtext' => 'Search here..',
189
  'showmoreresults' => 0,
190
  'showmoreresultstext' => 'More results...',
@@ -254,8 +308,8 @@ function asl_parse_options() {
254
  }
255
 
256
  /**
257
- * This is the same as wd_asp()->instances->decode_params()
258
- * Needed, because the wd_asp()->instances is not set at this point yet.
259
  * Decodes the base encoded params after getting them from the DB
260
  *
261
  * @param $params
@@ -276,5 +330,26 @@ function asl_decode_params( $params ) {
276
  return $params;
277
  }
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  asl_do_init_options();
280
  asl_parse_options();
10
  /* Default caching options */
11
  $options = array();
12
 
13
+ /* Analytics options */
14
  $options['asl_analytics_def'] = array(
15
+ 'analytics' => 0, // 0, ga, gtag
16
+ 'analytics_tracking_id' => "",
17
+ 'analytics_string' => "?ajax_search={asl_term}",
18
+ // Gtag on input focus
19
+ 'gtag_focus' => 1,
20
+ 'gtag_focus_action' => 'focus',
21
+ 'gtag_focus_ec' => 'ASL',
22
+ 'gtag_focus_el' => 'Input focus',
23
+ 'gtag_focus_value' => '1',
24
+ // Gtag on search start
25
+ 'gtag_search_start' => 0,
26
+ 'gtag_search_start_action' => 'search_start',
27
+ 'gtag_search_start_ec' => 'ASL',
28
+ 'gtag_search_start_el' => 'Phrase: {phrase}',
29
+ 'gtag_search_start_value' => '1',
30
+ // Gtag on search end
31
+ 'gtag_search_end' => 1,
32
+ 'gtag_search_end_action' => 'search_end',
33
+ 'gtag_search_end_ec' => 'ASL',
34
+ 'gtag_search_end_el' => '{phrase} | {results_count}',
35
+ 'gtag_search_end_value' => '1',
36
+ // Gtag on magnifier
37
+ 'gtag_magnifier' => 1,
38
+ 'gtag_magnifier_action' => 'magnifier',
39
+ 'gtag_magnifier_ec' => 'ASL',
40
+ 'gtag_magnifier_el' => 'Magnifier clicked',
41
+ 'gtag_magnifier_value' => '1',
42
+ // Gtag on return
43
+ 'gtag_return' => 1,
44
+ 'gtag_return_action' => 'return',
45
+ 'gtag_return_ec' => 'ASL',
46
+ 'gtag_return_el' => 'Return button pressed',
47
+ 'gtag_return_value' => '1',
48
+ // Gtag on facet change
49
+ 'gtag_facet_change' => 0,
50
+ 'gtag_facet_change_action' => 'facet_change',
51
+ 'gtag_facet_change_ec' => 'ASL',
52
+ 'gtag_facet_change_el' => '{option_label} | {option_value}',
53
+ 'gtag_facet_change_value' => '1',
54
+ // Gtag on result click
55
+ 'gtag_result_click' => 1,
56
+ 'gtag_result_click_action' => 'result_click',
57
+ 'gtag_result_click_ec' => 'ASL',
58
+ 'gtag_result_click_el' => '{result_title} | {result_url}',
59
+ 'gtag_result_click_value' => '1',
60
  );
61
 
62
+
63
  $options['asl_performance_def'] = array(
64
  'use_custom_ajax_handler' => 0,
65
  'image_cropping' => 0,
71
  // CSS JS
72
  'js_source' => "min",
73
  'js_init' => "dynamic",
74
+ 'load_scroll_js' => 'yes',
75
  'js_fix_duplicates' => 1,
76
  "detect_ajax" => 0,
77
  "js_retain_popstate" => 0,
131
  'image_bg_color' => "#FFFFFF",
132
  'image_width' => 70,
133
  'image_height' => 70,
134
+ 'image_parser_image_number' => 1,
135
 
136
  'image_crop_location' => 'c',
137
  'image_crop_location_selects' => array(
206
  /* Layout Options */
207
  // Box layout
208
  'box_width' => "100%",
209
+ 'box_width_tablet' => '100%',
210
+ 'box_width_phone' => '100%',
211
  'box_margin' => "||0px||0px||0px||0px||",
212
  'box_font' => 'Open Sans',
213
  'override_bg' => 0,
233
  'resultsmargintop' => '12px',
234
 
235
  'v_res_max_height' => 'none',
236
+
237
+ 'v_res_column_count' => 1,
238
+ 'v_res_column_min_width' => '200px',
239
+ 'v_res_column_min_width_tablet' => '200px',
240
+ 'v_res_column_min_width_phone' => '200px',
241
+
242
  'defaultsearchtext' => 'Search here..',
243
  'showmoreresults' => 0,
244
  'showmoreresultstext' => 'More results...',
308
  }
309
 
310
  /**
311
+ * This is the same as wd_asl()->instances->decode_params()
312
+ * Needed, because the wd_asl()->instances is not set at this point yet.
313
  * Decodes the base encoded params after getting them from the DB
314
  *
315
  * @param $params
330
  return $params;
331
  }
332
 
333
+ function asl_reset_option($key, $global = false) {
334
+ if ( isset(wd_asl()->o[$key], wd_asl()->o[$key . '_def']) ) {
335
+ wd_asl()->o[$key] = wd_asl()->o[$key . '_def'];
336
+ asl_save_option($key, $global);
337
+ }
338
+ }
339
+
340
+ /*
341
+ * Updates the option value from the wd_asl()->o[key] array to the database
342
+ */
343
+ function asl_save_option($key, $global = false) {
344
+ if ( !isset(wd_asl()->o[$key]) )
345
+ return false;
346
+
347
+ if ( $global ) {
348
+ return update_site_option($key, wd_asl()->o[$key]);
349
+ } else {
350
+ return update_option($key, wd_asl()->o[$key]);
351
+ }
352
+ }
353
+
354
  asl_do_init_options();
355
  asl_parse_options();
backend/tabs/instance/image_options.php CHANGED
@@ -123,6 +123,13 @@
123
  $params[$o->getName()] = $o->getData();
124
  ?>
125
  </div>
 
 
 
 
 
 
 
126
  </fieldset>
127
  <div class="item">
128
  <input type="hidden" name='asl_submit' value=1 />
123
  $params[$o->getName()] = $o->getData();
124
  ?>
125
  </div>
126
+ <div class="item">
127
+ <?php
128
+ $o = new wpdreamsTextSmall('image_parser_image_number', 'Image number the parser should get from the fields',
129
+ $sd['image_parser_image_number']);
130
+ $params[$o->getName()] = $o->getData();
131
+ ?>
132
+ </div>
133
  </fieldset>
134
  <div class="item">
135
  <input type="hidden" name='asl_submit' value=1 />
backend/tabs/instance/layout/box_layout.php CHANGED
@@ -26,11 +26,30 @@ $themes = array(
26
  $params[$o->getName()] = $o->getData();
27
  ?>
28
  </div>
29
- <div class="item"><?php
30
- $o = new wpdreamsTextSmall("box_width", __("Search Box width", "ajax-search-lite"), $sd['box_width']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  $params[$o->getName()] = $o->getData();
32
  ?>
33
- <p class="descMsg"><?php echo __("Include the unit as well, example: 10px or 1em or 90%", "ajax-search-lite"); ?></p>
 
 
 
 
 
34
  </div>
35
  <div class="item">
36
  <?php
26
  $params[$o->getName()] = $o->getData();
27
  ?>
28
  </div>
29
+ <div class="item item-flex-nogrow item-flex-wrap wpd-isotopic-width">
30
+ <?php
31
+ $o = new wpdreamsTextSmall("box_width", __('Search box width', 'ajax-search-pro'), array(
32
+ 'icon' => 'desktop',
33
+ 'value' => $sd['box_width']
34
+ ));
35
+ $params[$o->getName()] = $o->getData();
36
+ $o = new wpdreamsTextSmall("box_width_tablet", '', array(
37
+ 'icon' => 'tablet',
38
+ 'value' => $sd['box_width_tablet']
39
+ ));
40
+ $params[$o->getName()] = $o->getData();
41
+ $o = new wpdreamsTextSmall("box_width_phone", '', array(
42
+ 'icon' => 'phone',
43
+ 'value' => $sd['box_width_phone']
44
+ ));
45
  $params[$o->getName()] = $o->getData();
46
  ?>
47
+ <div class="descMsg item-flex-grow item-flex-100">
48
+ <?php echo sprintf(
49
+ __('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-lite'),
50
+ 'https://www.w3schools.com/cssref/css_units.asp', '10px', '50%', 'auto', '100%'
51
+ ); ?>
52
+ </div>
53
  </div>
54
  <div class="item">
55
  <?php
backend/tabs/instance/layout/results_layout.php CHANGED
@@ -1,3 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="item">
2
  <?php
3
  $o = new wpdreamsYesNo("description_context", __("Display the description context?", "ajax-search-lite"),
1
+ <div class="item item-flex-nogrow item-flex-wrap">
2
+ <?php
3
+ $o = new wpdreamsCustomSelect("v_res_column_count", __('Number of result columns', 'ajax-search-lite'), array(
4
+ 'selects'=>array(
5
+ array('option' => '1', 'value' => 1),
6
+ array('option' => '2', 'value' => 2),
7
+ array('option' => '3', 'value' => 3),
8
+ array('option' => '4', 'value' => 4),
9
+ array('option' => '5', 'value' => 5),
10
+ array('option' => '6', 'value' => 6),
11
+ array('option' => '7', 'value' => 7),
12
+ array('option' => '8', 'value' => 8)
13
+ ),
14
+ 'value'=>$sd['v_res_column_count']
15
+ ));
16
+ $params[$o->getName()] = $o->getData();
17
+
18
+ $o = new wpdreamsTextSmall("v_res_column_min_width", __('Column minimum width (px)', 'ajax-search-lite'), array(
19
+ 'icon' => 'desktop',
20
+ 'value' => $sd['v_res_column_min_width']
21
+ ));
22
+ $params[$o->getName()] = $o->getData();
23
+ $o = new wpdreamsTextSmall("v_res_column_min_width_tablet", '', array(
24
+ 'icon' => 'tablet',
25
+ 'value' => $sd['v_res_column_min_width_tablet']
26
+ ));
27
+ $params[$o->getName()] = $o->getData();
28
+ $o = new wpdreamsTextSmall("v_res_column_min_width_phone", '', array(
29
+ 'icon' => 'phone',
30
+ 'value' => $sd['v_res_column_min_width_phone']
31
+ ));
32
+ $params[$o->getName()] = $o->getData();
33
+ ?>
34
+ <div class="descMsg item-flex-grow item-flex-100">
35
+ <?php echo ' '. sprintf(
36
+ __('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-lite'),
37
+ 'https://www.w3schools.com/cssref/css_units.asp', '200px', '30vw', '30%', '200px'
38
+ ); ?>
39
+ </div>
40
+ </div>
41
  <div class="item">
42
  <?php
43
  $o = new wpdreamsYesNo("description_context", __("Display the description context?", "ajax-search-lite"),
css/style-curvy-black.css CHANGED
@@ -1 +1 @@
1
- div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #1e1e1e;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#363636;}div.asl_w .probox div.asl_simple-circle{border:4px solid #000;}div.asl_w .probox .prosettings .innericon svg{fill:#363636;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_r.vertical .results .asl_spacer{background:none repeat scroll 0 0 #d8d8d8;display:block;height:1px;width:100%;margin:0;padding:0;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #1e1e1e;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
1
+ div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #1e1e1e;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#363636;}div.asl_w .probox div.asl_simple-circle{border:4px solid #000;}div.asl_w .probox .prosettings .innericon svg{fill:#363636;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #1e1e1e;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
css/style-curvy-blue.css CHANGED
@@ -1 +1 @@
1
- div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #4a89bf;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);line-height:normal !important;}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#4a89bf;}div.asl_w .probox div.asl_simple-circle{border:4px solid #4a89bf;}div.asl_w .probox .prosettings .innericon svg{fill:#4a89bf;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_r.vertical .results .asl_spacer{background:none repeat scroll 0 0 #d8d8d8;display:block;height:1px;width:100%;margin:0;padding:0;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #4a89bf;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
1
+ div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #4a89bf;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);line-height:normal !important;}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#4a89bf;}div.asl_w .probox div.asl_simple-circle{border:4px solid #4a89bf;}div.asl_w .probox .prosettings .innericon svg{fill:#4a89bf;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #4a89bf;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
css/style-curvy-red.css CHANGED
@@ -1 +1 @@
1
- div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #de6464;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#de6464;}div.asl_w .probox div.asl_simple-circle{border:4px solid #de6464;}div.asl_w .probox .prosettings .innericon svg{fill:#de6464;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_r.vertical .results .asl_spacer{background:none repeat scroll 0 0 #d8d8d8;display:block;height:1px;width:100%;margin:0;padding:0;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #de6464;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
1
+ div.asl_w{width:100%;height:auto;border-radius:5px;background-color:transparent;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:none;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;padding:8px;height:28px;background-color:#fff;border:2px solid #de6464;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;border-radius:30px;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#de6464;}div.asl_w .probox div.asl_simple-circle{border:4px solid #de6464;}div.asl_w .probox .prosettings .innericon svg{fill:#de6464;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_s.searchsettings{background:#fff;box-shadow:1px 1px 0 1px #de6464;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
css/style-underline.css CHANGED
@@ -1 +1 @@
1
- div.asl_w{width:100%;height:auto;border-radius:5px;background-color:#fff;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 1px 0 0 #e4e4e4;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;height:28px;background-color:#fff;border:0 none #fff;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#363636;}div.asl_w .probox div.asl_simple-circle{border:4px solid #000;}div.asl_w .probox .prosettings .innericon svg{fill:#363636;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_dragger:active .mCSBap_dragger_bar,div.asl_r .mCSBap_scrollTools .mCSBap_dragger.mCSBap_dragger_onDrag .mCSBap_dragger_bar{background:rgba(255,255,255,1);}div.asl_r.horizontal .mCSBap_scrollTools .mCSBap_dragger:active .mCSBap_dragger_bar,div.asl_r.horizontal .mCSBap_scrollTools .mCSBap_dragger.mCSBap_dragger_onDrag .mCSBap_dragger_bar{background:#fafafa;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_r.vertical .results .asl_spacer{background:none repeat scroll 0 0 #d8d8d8;display:block;height:1px;width:100%;margin:0;padding:0;}div.asl_s.searchsettings{background:#fff;box-shadow:0 0 0 1px #b5b5b5 inset;;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
1
+ div.asl_w{width:100%;height:auto;border-radius:5px;background-color:#fff;overflow:hidden;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 1px 0 0 #e4e4e4;}#ajaxsearchlite1 .probox,div.asl_w .probox{margin:0;height:28px;background-color:#fff;border:0 none #fff;border-radius:0 0 0 0;box-shadow:0 0 0 0 #b5b5b5 inset;}#ajaxsearchlite1 .probox .proinput,div.asl_w .probox .proinput{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);}#ajaxsearchlite1 .probox .proinput input,div.asl_w .probox .proinput input{font-weight:normal;font-family:Open Sans;color:#000 !important;font-size:12px;line-height:normal !important;text-shadow:0 0 0 rgba(255,255,255,0);border:0;box-shadow:none;}div.asl_w.asl_msie .probox .proinput input{line-height:24px !important;}div.asl_w .probox .proinput input::-webkit-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input::-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-ms-input-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input:-moz-placeholder{font-weight:normal;font-family:Open Sans;color:rgba(0,0,0,.6) !important;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proinput input.autocomplete{font-weight:normal;font-family:Open Sans;color:#000;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_w .probox .proloading,div.asl_w .probox .proclose,div.asl_w .probox .promagnifier,div.asl_w .probox .prosettings{width:28px;height:28px;}div.asl_w .probox .promagnifier .innericon svg{fill:#363636;}div.asl_w .probox div.asl_simple-circle{border:4px solid #000;}div.asl_w .probox .prosettings .innericon svg{fill:#363636;}div.asl_w .probox .promagnifier{width:28px;height:28px;background-image:-o-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:-1px 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;background-position:center center;background-repeat:no-repeat;cursor:pointer;}div.asl_w .probox div.prosettings{width:28px;height:28px;background-image:-o-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-ms-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:-webkit-linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-image:linear-gradient(175deg,rgba(255,255,255,0),rgba(255,255,255,0));background-position:center center;background-repeat:no-repeat;float:right;border:0 solid #fff;border-radius:0 0 0 0;box-shadow:0 1px 0 0 rgba(255,255,255,.64) inset;cursor:pointer;background-size:100% 100%;order:7;-webkit-order:7;}div.asl_r{position:absolute;z-index:1100;}div.asl_r.vertical{padding:4px;background:#fff;border-radius:3px;border:0 solid #b5b5b5;border-radius:0 0 0 0;box-shadow:0 0 3px -1px rgba(0,0,0,.3);visibility:hidden;display:none;}div.asl_r .results .nores .keyword{padding:0 6px;cursor:pointer;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);font-weight:bold;}div.asl_r .results .item{height:auto;background:#fff;}div.asl_r.vertical .results .item:after{background:#ccc;}div.asl_r .results .item.hovered{background:#f4f4f4;}div.asl_r .results .item .asl_image{width:70px;height:70px;}div.asl_r .results .item .asl_content h3,div.asl_r .results .item .asl_content h3 a{margin:0;padding:0;line-height:inherit;font-weight:normal;font-family:Open Sans;color:#1468a9;font-size:14px;line-height:22px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .asl_content h3 a:hover{font-weight:normal;font-family:Open Sans;color:#2e6bbc;font-size:14px;line-height:20px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item div.etc{padding:0;line-height:10px;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_author{padding:0;font-weight:bold;font-family:Open Sans;color:#a1a1a1;font-size:12px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item .etc .asl_date{margin:0 0 0 10px;padding:0;font-weight:normal;font-family:Open Sans;color:#adadad;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .results .item p.desc{margin:2px 0;padding:0;font-weight:normal;font-family:Open Sans;color:#4a4a4a;font-size:13px;line-height:13px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_r .mCSBap_scrollTools .mCSBap_dragger:active .mCSBap_dragger_bar,div.asl_r .mCSBap_scrollTools .mCSBap_dragger.mCSBap_dragger_onDrag .mCSBap_dragger_bar{background:rgba(255,255,255,1);}div.asl_r.horizontal .mCSBap_scrollTools .mCSBap_dragger:active .mCSBap_dragger_bar,div.asl_r.horizontal .mCSBap_scrollTools .mCSBap_dragger.mCSBap_dragger_onDrag .mCSBap_dragger_bar{background:#fafafa;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonDown{border-color:#3e3e3e transparent transparent transparent;}div.asl_r .mCSBap_scrollTools .mCSBap_buttonUp{border-color:transparent transparent #3e3e3e transparent;}div.asl_r span.highlighted{font-weight:bold;color:#d9312b;background-color:#eee;color:rgba(217,49,43,1);background-color:rgba(238,238,238,1);}div.asl_r p.showmore a{border:1px solid #eaeaea;}div.asl_s.searchsettings{background:#fff;box-shadow:0 0 0 1px #b5b5b5 inset;;}div.asl_s.searchsettings .asl_option_label{font-weight:bold;font-family:Open Sans;color:#2b2b2b;font-size:12px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}div.asl_s.searchsettings .asl_option_inner label{background-image:linear-gradient(180deg,#222,#36373a);background-image:-webkit-linear-gradient(180deg,#222,#36373a);background-image:-moz-linear-gradient(180deg,#222,#36373a);background-image:-o-linear-gradient(180deg,#222,#36373a);background-image:-ms-linear-gradient(180deg,#222,#36373a);;}div.asl_s.searchsettings fieldset .categoryfilter{max-height:200px;overflow:auto;}div.asl_s.searchsettings fieldset legend{padding:5px 0 0 10px;margin:0;font-weight:normal;font-family:Open Sans;color:#474747;font-size:13px;line-height:15px;text-shadow:0 0 0 rgba(255,255,255,0);}
css/style.basic.css CHANGED
@@ -1 +1,5 @@
1
- @keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);}}@-webkit-keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}}@keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}@-webkit-keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}.hiddend{display:none !important;}div.asl_w.asl_an_fadeInDrop,div.asl_w.asl_an_fadeOutDrop{-webkit-animation-duration:100ms;animation-duration:100ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;}div.asl_w.asl_an_fadeInDrop{animation-name:aslAnFadeInDrop;-webkit-animation-name:aslAnFadeInDrop;}div.asl_w.asl_an_fadeOutDrop{animation-name:aslAnFadeOutDrop;-webkit-animation-name:aslAnFadeOutDrop;}div.asl_w.asl_main_container{transition:width 130ms linear;-webkit-transition:width 130ms linear;}div.asl_w,div.asl_w *,div.asl_r,div.asl_r *,div.asl_s,div.asl_s *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;-o-box-sizing:content-box;box-sizing:content-box;padding:0;margin:0;border:0;border-radius:0;text-transform:none;text-shadow:none;box-shadow:none;text-decoration:none;text-align:left;letter-spacing:normal;}div.asl_r,div.asl_r *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}div.asl_m .proinput input::-ms-clear{display:none !important;width:0 !important;height:0 !important;}div.asl_m .proinput input::-ms-reveal{display:none !important;width:0 !important;height:0 !important;}div.asl_m input[type="search"]{-webkit-appearance:textfield !important;}div.asl_m input[type="search"]::-webkit-search-decoration,div.asl_m input[type="search"]::-webkit-search-cancel-button,div.asl_m input[type="search"]::-webkit-search-results-button,div.asl_m input[type="search"]::-webkit-search-results-decoration{display:none;}.clear{clear:both;}.hiddend{display:none;}div.asl_m textarea:focus,div.asl_m input:focus{outline:none;}div.asl_m{width:100%;height:auto;border-radius:0;background:rgba(255,255,255,0);overflow:hidden;position:relative;z-index:200;}div.asl_m .probox{width:auto;border-radius:5px;background:#fff;overflow:hidden;border:1px solid #fff;box-shadow:1px 0 3px #ccc inset;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;}div.asl_m .probox .proinput{width:auto;height:100%;margin:0 0 0 10px;padding:0 5px;float:left;box-shadow:none;position:relative;flex:1 1 auto;-webkit-flex:1 1 auto;order:5;-webkit-order:5;}div.asl_m .probox .proinput input:before,div.asl_m .probox .proinput input:after,div.asl_m .probox .proinput form:before,div.asl_m .probox .proinput form:after{display:none;}div.asl_m .probox .proinput input{height:28px;border:0;background:transparent;width:100%;box-shadow:none;margin:-1px;padding:0;left:0;line-height:normal !important;display:block;}div.asl_m .probox .proinput input::-webkit-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input::-moz-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-ms-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-moz-placeholder{opacity:.85;}div.asl_m .proinput input.orig{padding:0 !important;margin:0 !important;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;z-index:10;position:relative;}div.asl_m .proinput input.autocomplete{padding:0 !important;margin:0;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;opacity:.2;}div.asl_m .probox .proinput input.autocomplete{border:0;background:transparent;width:100%;box-shadow:none;margin:0;margin-top:-28px !important;padding:0;left:0;position:relative;z-index:9;}div.asl_m .probox .proinput.iepaddingfix{padding-top:0;}div.asl_m .probox .proinput .loading{width:32px;background:#000;height:100%;box-shadow:none;}div.asl_m .probox .proloading,div.asl_m .probox .proclose,div.asl_m .probox .promagnifier,div.asl_m .probox .prosettings{width:20px;height:20px;background:none;background-size:20px 20px;float:right;box-shadow:none;margin:0;padding:0;text-align:center;flex:0 0 auto;-webkit-flex:0 0 auto;z-index:100;}div.asl_m .probox .promagnifier{order:10;-webkit-order:10;}div.asl_m .probox .prosettings{order:1;-webkit-order:1;}div.asl_m .probox .proloading,div.asl_m .probox .proclose{background-position:center center;display:none;background-size:auto;background-repeat:no-repeat;background-color:transparent;order:6;-webkit-order:6;}div.asl_m .probox .proclose{position:relative;cursor:pointer;}div.asl_m .probox .promagnifier .innericon,div.asl_m .probox .prosettings .innericon,div.asl_m .probox .proclose .innericon{background-size:20px 20px;background-position:center center;background-repeat:no-repeat;background-color:transparent;width:100%;height:100%;text-align:center;overflow:hidden;}div.asl_m .probox .promagnifier .innericon svg,div.asl_m .probox .prosettings .innericon svg,div.asl_m .probox .proloading svg{height:100%;width:22px;vertical-align:baseline;display:inline-block;}div.asl_m .probox .proloading{padding:2px;box-sizing:border-box;}div.asl_m .probox div.asl_loader,div.asl_m .probox div.asl_loader *{box-sizing:border-box !important;margin:0;padding:0;box-shadow:none;}div.asl_m .probox div.asl_loader{box-sizing:border-box;display:flex;flex:0 1 auto;flex-direction:column;flex-grow:0;flex-shrink:0;flex-basis:28px;max-width:100%;max-height:100%;width:100%;height:100%;align-items:center;justify-content:center;}div.asl_m .probox div.asl_loader-inner{width:100%;margin:0 auto;text-align:center;height:100%;}@-webkit-keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}div.asl_m .probox div.asl_simple-circle{margin:0;height:100%;width:100%;animation:rotate-simple .8s infinite linear;-webkit-animation:rotate-simple .8s infinite linear;border:4px solid #fff;border-right-color:transparent !important;border-radius:50%;box-sizing:border-box;}div.asl_m .probox .proclose svg{background:#333;border-radius:50%;position:absolute;top:50%;width:20px;height:20px;margin-top:-10px;left:50%;margin-left:-10px;fill:#fefefe;padding:4px;box-sizing:border-box;box-shadow:0 0 0 2px rgba(255,255,255,.9);}div.asl_r *{text-decoration:none;text-shadow:none;}div.asl_r .results .asl_nores{overflow:hidden;width:auto;height:100%;line-height:initial;text-align:center;margin:0;background:#fff;padding:10px 3px;color:#222;}div.asl_r.horizontal{padding:2px 0 10px;}div.asl_r.horizontal .results .nores{background:transparent;}div.asl_r .results{overflow:hidden;width:auto;height:0;margin:0;padding:0;}div.asl_r.horizontal .results{height:auto;width:auto;}div.asl_r .results .item{overflow:hidden;width:auto;margin:0;padding:3px;position:relative;background:#f4f4f4;border-left:1px solid rgba(255,255,255,.6);border-right:1px solid rgba(255,255,255,.4);animation-delay:0s;animation-duration:1s;animation-fill-mode:both;animation-timing-function:ease;backface-visibility:hidden;-webkit-animation-delay:0s;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;-webkit-animation-timing-function:ease;-webkit-backface-visibility:hidden;}div.asl_r.vertical .results .item:first-child{border-radius:3px 3px 0 0;}div.asl_r.vertical .results .item:last-child{border-radius:0 0 3px 3px;margin-bottom:0;}div.asl_r.vertical .results .asl_spacer{background:none repeat scroll 0 0 #ccc;display:block;height:2px;width:100%;margin:0;padding:0;}div.asl_r.vertical .results .item:last-child:after{height:0;margin:0;width:0;}div.asl_r .results .item .asl_image{overflow:hidden;background:transparent;margin:2px 8px 0 0;padding:0;float:left;background-position:center;background-size:cover;}div.asl_r .results .item .asl_image img{width:100%;height:100%;}div.asl_r .results .item .asl_content{overflow:hidden;height:auto;background:transparent;margin:0;padding:3px 3px 5px 3px;}div.asl_r .results .item .asl_content h3{margin:0;padding:0;display:inline;line-height:inherit;}div.asl_r .results .item .asl_content .asl_desc{margin-top:4px;font-size:12px;line-height:18px;}div.asl_r .results .item div.etc{margin-top:4px;}div.asl_r .results a span.overlap{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;}div.asl_r p.showmore{text-align:center;padding:0;margin:0;font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);background-color:#fff;margin-top:3px;cursor:pointer;}div.asl_r p.showmore a{font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);display:block;text-align:center;cursor:pointer;}.results .asl_nores .asl_keyword{padding:0 6px;cursor:pointer;font-weight:bold;font-family:Open Sans;}div.asl_r .resdrg{height:auto;}div.asl_w .group:first-of-type{margin:0 0 -3px;}div.asl_s.searchsettings{width:200px;height:auto;position:absolute;display:none;z-index:1101;border-radius:0 0 3px 3px;visibility:hidden;padding:0;}div.asl_s.searchsettings form{display:flex;flex-wrap:wrap;margin:0 0 12px 0 !important;padding:0 !important;}div.asl_s.searchsettings .asl_option_inner{margin:2px 10px 0 10px;*padding-bottom:10px;}div.asl_s.searchsettings.ie78 .asl_option_inner{margin-bottom:0 !important;padding-bottom:0 !important;}div.asl_s.searchsettings .asl_option_label{font-size:14px;line-height:20px !important;margin:0;width:150px;text-shadow:none;padding:0;min-height:20px;border:none;background:transparent;float:none;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]{display:none !important;}div.asl_s.searchsettings.ie78 .asl_option_inner input[type=checkbox]{display:block;}div.asl_s.searchsettings.ie78 .asl_option_label{float:right !important;}div.asl_s.searchsettings .asl_option{display:flex;flex-direction:row;-webkit-flex-direction:row;align-items:flex-start;margin:0 0 10px 0;cursor:pointer;}div.asl_s.searchsettings .asl_option.asl-o-last,div.asl_s.searchsettings .asl_option:last-child{margin-bottom:0;}div.asl_s.searchsettings .asl_option_inner{width:17px;height:17px;position:relative;flex-grow:0;-webkit-flex-grow:0;flex-shrink:0;-webkit-flex-shrink:0;}div.asl_s.searchsettings .asl_option_inner label{cursor:pointer;position:absolute;width:17px;height:17px;top:0;padding:0;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);overflow:hidden;font-size:0 !important;color:rgba(0,0,0,0);}div.asl_s.searchsettings.ie78 .asl_option_inner label{display:none;}div.asl_s.searchsettings .asl_option_inner label:after{opacity:0;font-family:'aslsicons2';content:"";font-weight:normal !important;background:transparent;border:none !important;box-sizing:content-box;color:#fff;height:100%;width:100%;padding:0 !important;margin:1px 0 0 0 !important;line-height:17px;text-align:center;text-decoration:none;text-shadow:none;display:block;font-size:11px !important;position:absolute;top:0;left:0;z-index:1;}div.asl_s.searchsettings.ie78 .asl_option_inner label:after{display:none;}div.asl_s.searchsettings .asl_option_inner label:hover::after{opacity:.3;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]:checked+label:after{opacity:1;}div.asl_s.searchsettings fieldset{position:relative;float:left;}div.asl_s.searchsettings fieldset{background:transparent;font-size:.9em;margin:12px 0 0 !important;padding:0;width:192px;}div.asl_s.searchsettings fieldset .asl_option_label{width:130px;display:block;}div.asl_s.searchsettings form fieldset legend{padding:5px 0 8px 10px;}div.asl_w .mCustomScrollBox .mCSBap_scrollTools{width:16px;height:100%;top:0;right:0;}div.asl_w .mCSBap_scrollTools .mCSBap_draggerContainer{height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:2px 0;}div.asl_w .mCSBap_scrollTools .mCSBap_buttonUp,div.asl_w .mCSBap_scrollTools .mCSBap_buttonDown{position:relative;margin:-8px 0 0 3px;background-position:0 0;background:transparent;border-color:transparent transparent #fff transparent;border-style:solid;border-width:0 5px 6px 5px;width:0;height:0;padding:10px 0 0 0;background:0;opacity:.4;display:block;overflow:hidden;cursor:pointer;}div.asl_w .mCSBap_scrollTools .mCSBap_buttonDown{margin:-16px 0 0 3px;border-width:6px 5px 0 5px;border-color:#fff transparent transparent transparent;position:relative;top:100%;}div.asl_w .mCustScr{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom;}div.asl_w .mCustScr.mCS_no_scrollbar,.mCustScr.mCS_touch_action{-ms-touch-action:auto;touch-action:auto;}div.asl_w .mCustomScrollBox{position:relative;overflow:hidden;height:100%;max-width:100%;outline:none;direction:ltr;}div.asl_w .mCSBap_container{overflow:hidden;width:auto;height:auto;}div.asl_w .mCSBap_inside>.mCSBap_container{margin-right:20px;}div.asl_w .mCSBap_container.mCS_no_scrollbar_y.mCS_y_hidden{margin-right:0;}div.asl_w .mCS-dir-rtl>.mCSBap_inside>.mCSBap_container{margin-right:0;margin-left:30px;}div.asl_w .mCS-dir-rtl>.mCSBap_inside>.mCSBap_container.mCS_no_scrollbar_y.mCS_y_hidden{margin-left:0;}div.asl_w .mCSBap_scrollTools{position:absolute;width:16px;height:auto;left:auto;top:0;right:0;bottom:0;}div.asl_w .mCSBap_outside+.mCSBap_scrollTools{right:-26px;}div.asl_w .mCS-dir-rtl>.mCSBap_inside>.mCSBap_scrollTools,div.asl_w .mCS-dir-rtl>.mCSBap_outside+.mCSBap_scrollTools{right:auto;left:0;}div.asl_w .mCS-dir-rtl>.mCSBap_outside+.mCSBap_scrollTools{left:-26px;}div.asl_w .mCSBap_scrollTools .mCSBap_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto;}div.asl_w .mCSBap_scrollTools a+.mCSBap_draggerContainer{margin:20px 0;}div.asl_w .mCSBap_scrollTools .mCSBap_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px;}div.asl_w .mCSBap_scrollTools .mCSBap_dragger{cursor:pointer;width:100%;height:30px;z-index:1;}div.asl_w .mCSBap_scrollTools .mCSBap_dragger .mCSBap_dragger_bar{width:6px;box-shadow:0 0 2px 0 rgba(0,0,0,.5);height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center;}div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_dragger.mCSBap_dragger_onDrag_expanded .mCSBap_dragger_bar,div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_draggerContainer:hover .mCSBap_dragger .mCSBap_dragger_bar{width:12px;}div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_dragger.mCSBap_dragger_onDrag_expanded+.mCSBap_draggerRail,div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_draggerContainer:hover .mCSBap_draggerRail{width:8px;}div.asl_w .mCSBap_container_wrapper{position:absolute;height:auto;width:auto;overflow:hidden;top:0;left:0;right:0;bottom:0;margin-right:30px;margin-bottom:30px;}div.asl_w .mCSBap_container_wrapper>.mCSBap_container{padding-right:30px;padding-bottom:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}div.asl_w .mCSBap_vertical_horizontal>.mCSBap_scrollTools.mCSBap_scrollTools_vertical{bottom:20px;}div.asl_w .mCSBap_vertical_horizontal>.mCSBap_scrollTools.mCSBap_scrollTools_horizontal{right:20px;}div.asl_w .mCSBap_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden+.mCSBap_scrollTools.mCSBap_scrollTools_vertical{bottom:0;}div.asl_w .mCSBap_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden+.mCSBap_scrollTools~.mCSBap_scrollTools.mCSBap_scrollTools_horizontal,div.asl_w .mCS-dir-rtl>.mCustomScrollBox.mCSBap_vertical_horizontal.mCSBap_inside>.mCSBap_scrollTools.mCSBap_scrollTools_horizontal{right:0;}div.asl_w .mCS-dir-rtl>.mCustomScrollBox.mCSBap_vertical_horizontal.mCSBap_inside>.mCSBap_scrollTools.mCSBap_scrollTools_horizontal{left:20px;}div.asl_w .mCS-dir-rtl>.mCustomScrollBox.mCSBap_vertical_horizontal.mCSBap_inside>.mCSBap_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden+.mCSBap_scrollTools~.mCSBap_scrollTools.mCSBap_scrollTools_horizontal{left:0;}div.asl_w .mCS-dir-rtl>.mCSBap_inside>.mCSBap_container_wrapper{margin-right:0;margin-left:30px;}div.asl_w .mCSBap_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden>.mCSBap_container{padding-right:0;}div.asl_w .mCSBap_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden>.mCSBap_container{padding-bottom:0;}div.asl_w .mCustomScrollBox.mCSBap_vertical_horizontal.mCSBap_inside>.mCSBap_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden{margin-right:0;margin-left:0;}div.asl_w .mCustomScrollBox.mCSBap_vertical_horizontal.mCSBap_inside>.mCSBap_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden{margin-bottom:0;}div.asl_w .mCSBap_scrollTools,div.asl_w .mCSBap_scrollTools .mCSBap_dragger .mCSBap_dragger_bar,div.asl_w .mCSBap_scrollTools .mCSBap_buttonUp,div.asl_w .mCSBap_scrollTools .mCSBap_buttonDown{-webkit-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;transition:opacity .2s ease-in-out,background-color .2s ease-in-out;}div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_dragger_bar,div.asl_w .mCSBap_scrollTools_vertical.mCSBap_scrollTools_onDrag_expand .mCSBap_draggerRail,div.asl_w .mCSBap_scrollTools_horizontal.mCSBap_scrollTools_onDrag_expand .mCSBap_dragger_bar,div.asl_w .mCSBap_scrollTools_horizontal.mCSBap_scrollTools_onDrag_expand .mCSBap_draggerRail{-webkit-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;}div.asl_w .mCSBap_scrollTools{opacity:.75;}div.asl_w .mCS-autoHide>.mCustomScrollBox>.mCSBap_scrollTools,div.asl_w .mCS-autoHide>.mCustomScrollBox~.mCSBap_scrollTools{opacity:0;}div.asl_w .mCustScr>.mCustomScrollBox>.mCSBap_scrollTools.mCSBap_scrollTools_onDrag,div.asl_w .mCustScr>.mCustomScrollBox~.mCSBap_scrollTools.mCSBap_scrollTools_onDrag,div.asl_w .mCustomScrollBox:hover>.mCSBap_scrollTools,div.asl_w .mCustomScrollBox:hover~.mCSBap_scrollTools,div.asl_w .mCS-autoHide:hover>.mCustomScrollBox>.mCSBap_scrollTools,div.asl_w .mCS-autoHide:hover>.mCustomScrollBox~.mCSBap_scrollTools{opacity:1;}div.asl_w .mCSBap_scrollTools .mCSBap_draggerRail{background-color:#000;background-color:rgba(0,0,0,.4);}div.asl_w .mCSBap_scrollTools .mCSBap_dragger .mCSBap_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,1);}div.asl_w .mCSBap_scrollTools .mCSBap_dragger:hover .mCSBap_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,1);}div.asl_w .mCSBap_scrollTools .mCSBap_dragger:active .mCSBap_dragger_bar,div.asl_w .mCSBap_scrollTools .mCSBap_dragger.mCSBap_dragger_onDrag .mCSBap_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,1);}div.asl_w .mCSBap_scrollTools .mCSBap_buttonUp{background-position:0 0;}div.asl_w .mCSBap_scrollTools .mCSBap_buttonUp:hover,div.asl_w .mCSBap_scrollTools .mCSBap_buttonDown:hover{opacity:.75;}div.asl_w .mCSBap_scrollTools .mCSBap_buttonUp:active,div.asl_w .mCSBap_scrollTools .mCSBap_buttonDown:active{opacity:.9;}#asl_hidden_data{display:none !important;}.rtl .asl_content,.rtl .asl_nores,.rtl .asl_content *,.rtl .asl_nores *,.rtl .searchsettings form{text-align:right !important;direction:rtl !important;}.rtl .asl_nores>*{display:inline-block;}.rtl div.asl_r .results .item .asl_image{float:right;margin:2px 0 0 8px;}div.asl_s.searchsettings form fieldset legend{padding:5px 10px 8px 0;}.rtl .searchsettings .asl_option{flex-direction:row-reverse !important;-webkit-flex-direction:row-reverse !important;}.rtl .asl_option{direction:ltr;}.rtl .asl_label,.rtl .asl_option div.asl_option_label{text-align:right !important;}.rtl .asl_label{max-width:1000px !important;width:100%;direction:rtl !important;}.rtl .asl_label input[type=radio]{margin:0 0 0 6px !important;}.rtl .asl_option_cat_level-0 div.asl_option_label{font-weight:bold !important;}.rtl fieldset .asl_option_cat_level-1{margin-right:12px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-2{margin-right:24px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-3{margin-right:36px !important;margin-left:0;}.rtl .searchsettings legend{text-align:right !important;display:block;width:100%;}.rtl .searchsettings input[type=text],.rtl .searchsettings select{direction:rtl !important;text-align:right !important;}.rtl div.asl_w.asl_s.searchsettings form,.rtl div.asl_w.asl_sb.searchsettings form{flex-direction:row-reverse !important;}.rtl div.horizontal.asl_r div.item{float:right !important;}.rtl p.asl-try{direction:rtl;text-align:right;margin-right:10px;width:auto !important;}
 
 
 
 
1
+ @keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);}}@-webkit-keyframes aslAnFadeInDrop{0%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}100%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}}@keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}@-webkit-keyframes aslAnFadeOutDrop{0%{opacity:1;transform:translate(0,0);-webkit-transform:translate(0,0);}100%{opacity:0;transform:translate(0,-50px);-webkit-transform:translate(0,-50px);}}.hiddend{display:none !important;}div.asl_w.asl_an_fadeInDrop,div.asl_w.asl_an_fadeOutDrop{-webkit-animation-duration:100ms;animation-duration:100ms;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;}div.asl_w.asl_an_fadeInDrop{animation-name:aslAnFadeInDrop;-webkit-animation-name:aslAnFadeInDrop;}div.asl_w.asl_an_fadeOutDrop{animation-name:aslAnFadeOutDrop;-webkit-animation-name:aslAnFadeOutDrop;}div.asl_w.asl_main_container{transition:width 130ms linear;-webkit-transition:width 130ms linear;}div.asl_w,div.asl_w *,div.asl_r,div.asl_r *,div.asl_s,div.asl_s *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;-o-box-sizing:content-box;box-sizing:content-box;padding:0;margin:0;border:0;border-radius:0;text-transform:none;text-shadow:none;box-shadow:none;text-decoration:none;text-align:left;letter-spacing:normal;}div.asl_r,div.asl_r *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}div.asl_m .proinput input::-ms-clear{display:none !important;width:0 !important;height:0 !important;}div.asl_m .proinput input::-ms-reveal{display:none !important;width:0 !important;height:0 !important;}div.asl_m input[type="search"]{-webkit-appearance:textfield !important;}div.asl_m input[type="search"]::-webkit-search-decoration,div.asl_m input[type="search"]::-webkit-search-cancel-button,div.asl_m input[type="search"]::-webkit-search-results-button,div.asl_m input[type="search"]::-webkit-search-results-decoration{display:none;}.clear{clear:both;}.hiddend{display:none;}div.asl_m textarea:focus,div.asl_m input:focus{outline:none;}div.asl_m{width:100%;height:auto;border-radius:0;background:rgba(255,255,255,0);overflow:hidden;position:relative;z-index:200;}div.asl_m .probox{width:auto;border-radius:5px;background:#fff;overflow:hidden;border:1px solid #fff;box-shadow:1px 0 3px #ccc inset;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;}div.asl_m .probox .proinput{width:auto;height:100%;margin:0 0 0 10px;padding:0 5px;float:left;box-shadow:none;position:relative;flex:1 1 auto;-webkit-flex:1 1 auto;order:5;-webkit-order:5;}div.asl_m .probox .proinput input:before,div.asl_m .probox .proinput input:after,div.asl_m .probox .proinput form:before,div.asl_m .probox .proinput form:after{display:none;}div.asl_m .probox .proinput input{height:28px;border:0;background:transparent;width:100%;box-shadow:none;margin:-1px;padding:0;left:0;line-height:normal !important;display:block;}div.asl_m .probox .proinput input::-webkit-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input::-moz-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-ms-input-placeholder{opacity:.85;}div.asl_m .probox .proinput input:-moz-placeholder{opacity:.85;}div.asl_m .proinput input.orig{padding:0 !important;margin:0 !important;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;z-index:10;position:relative;}div.asl_m .proinput input.autocomplete{padding:0 !important;margin:0;background:transparent !important;border:none !important;background-color:transparent !important;box-shadow:none !important;opacity:.2;}div.asl_m .probox .proinput input.autocomplete{border:0;background:transparent;width:100%;box-shadow:none;margin:0;margin-top:-28px !important;padding:0;left:0;position:relative;z-index:9;}div.asl_m .probox .proinput.iepaddingfix{padding-top:0;}div.asl_m .probox .proinput .loading{width:32px;background:#000;height:100%;box-shadow:none;}div.asl_m .probox .proloading,div.asl_m .probox .proclose,div.asl_m .probox .promagnifier,div.asl_m .probox .prosettings{width:20px;height:20px;background:none;background-size:20px 20px;float:right;box-shadow:none;margin:0;padding:0;text-align:center;flex:0 0 auto;-webkit-flex:0 0 auto;z-index:100;}div.asl_m .probox .promagnifier{order:10;-webkit-order:10;}div.asl_m .probox .prosettings{order:1;-webkit-order:1;}div.asl_m .probox .proloading,div.asl_m .probox .proclose{background-position:center center;display:none;background-size:auto;background-repeat:no-repeat;background-color:transparent;order:6;-webkit-order:6;}div.asl_m .probox .proclose{position:relative;cursor:pointer;}div.asl_m .probox .promagnifier .innericon,div.asl_m .probox .prosettings .innericon,div.asl_m .probox .proclose .innericon{background-size:20px 20px;background-position:center center;background-repeat:no-repeat;background-color:transparent;width:100%;height:100%;text-align:center;overflow:hidden;}div.asl_m .probox .promagnifier .innericon svg,div.asl_m .probox .prosettings .innericon svg,div.asl_m .probox .proloading svg{height:100%;width:22px;vertical-align:baseline;display:inline-block;}div.asl_m .probox .proloading{padding:2px;box-sizing:border-box;}div.asl_m .probox div.asl_loader,div.asl_m .probox div.asl_loader *{box-sizing:border-box !important;margin:0;padding:0;box-shadow:none;}div.asl_m .probox div.asl_loader{box-sizing:border-box;display:flex;flex:0 1 auto;flex-direction:column;flex-grow:0;flex-shrink:0;flex-basis:28px;max-width:100%;max-height:100%;width:100%;height:100%;align-items:center;justify-content:center;}div.asl_m .probox div.asl_loader-inner{width:100%;margin:0 auto;text-align:center;height:100%;}@-webkit-keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes rotate-simple{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg);}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}}div.asl_m .probox div.asl_simple-circle{margin:0;height:100%;width:100%;animation:rotate-simple .8s infinite linear;-webkit-animation:rotate-simple .8s infinite linear;border:4px solid #fff;border-right-color:transparent !important;border-radius:50%;box-sizing:border-box;}div.asl_m .probox .proclose svg{background:#333;border-radius:50%;position:absolute;top:50%;width:20px;height:20px;margin-top:-10px;left:50%;margin-left:-10px;fill:#fefefe;padding:4px;box-sizing:border-box;box-shadow:0 0 0 2px rgba(255,255,255,.9);}div.asl_r *{text-decoration:none;text-shadow:none;}div.asl_r .results .asl_nores{overflow:hidden;width:auto;height:100%;line-height:initial;text-align:center;margin:0;background:#fff;padding:10px 3px;color:#222;}div.asl_r.horizontal{padding:2px 0 10px;}div.asl_r.horizontal .results .nores{background:transparent;}div.asl_r .results{overflow:hidden;width:auto;height:0;margin:0;padding:0;}div.asl_r.horizontal .results{height:auto;width:auto;}div.asl_r .results .item{overflow:hidden;width:auto;margin:0;padding:3px;position:relative;background:#f4f4f4;border-left:1px solid rgba(255,255,255,.6);border-right:1px solid rgba(255,255,255,.4);animation-delay:0s;animation-duration:1s;animation-fill-mode:both;animation-timing-function:ease;backface-visibility:hidden;-webkit-animation-delay:0s;-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;-webkit-animation-timing-function:ease;-webkit-backface-visibility:hidden;}div.asl_r.vertical .results .item:first-child{border-radius:3px 3px 0 0;}div.asl_r.vertical .results .item:last-child{border-radius:0 0 3px 3px;margin-bottom:0;}div.asl_r.vertical .results .item:last-child:after{height:0;margin:0;width:0;}div.asl_r .results .item .asl_image{overflow:hidden;background:transparent;margin:2px 8px 0 0;padding:0;float:left;background-position:center;background-size:cover;}div.asl_r .results .item .asl_image img{width:100%;height:100%;}div.asl_r .results .item .asl_content{overflow:hidden;height:auto;background:transparent;margin:0;padding:3px 3px 5px 3px;}div.asl_r .results .item .asl_content h3{margin:0;padding:0;display:inline;line-height:inherit;}div.asl_r .results .item .asl_content .asl_desc{margin-top:4px;font-size:12px;line-height:18px;}div.asl_r .results .item div.etc{margin-top:4px;}div.asl_r .results a span.overlap{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;}div.asl_r p.showmore{text-align:center;padding:0;margin:0;font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);background-color:#fff;margin-top:3px;cursor:pointer;}div.asl_r p.showmore a{font-weight:normal;font-family:Open Sans;color:#055e94;font-size:12px;line-height:30px;text-shadow:0 0 0 rgba(255,255,255,0);display:block;text-align:center;cursor:pointer;}.results .asl_nores .asl_keyword{padding:0 6px;cursor:pointer;font-weight:bold;font-family:Open Sans;}div.asl_r .resdrg{height:auto;}div.asl_w .group:first-of-type{margin:0 0 -3px;}div.asl_s.searchsettings{width:200px;height:auto;position:absolute;display:none;z-index:1101;border-radius:0 0 3px 3px;visibility:hidden;padding:0;}div.asl_s.searchsettings form{display:flex;flex-wrap:wrap;margin:0 0 12px 0 !important;padding:0 !important;}div.asl_s.searchsettings .asl_option_inner{margin:2px 10px 0 10px;*padding-bottom:10px;}div.asl_s.searchsettings.ie78 .asl_option_inner{margin-bottom:0 !important;padding-bottom:0 !important;}div.asl_s.searchsettings .asl_option_label{font-size:14px;line-height:20px !important;margin:0;width:150px;text-shadow:none;padding:0;min-height:20px;border:none;background:transparent;float:none;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]{display:none !important;}div.asl_s.searchsettings.ie78 .asl_option_inner input[type=checkbox]{display:block;}div.asl_s.searchsettings.ie78 .asl_option_label{float:right !important;}div.asl_s.searchsettings .asl_option{display:flex;flex-direction:row;-webkit-flex-direction:row;align-items:flex-start;margin:0 0 10px 0;cursor:pointer;}div.asl_s.searchsettings .asl_option.asl-o-last,div.asl_s.searchsettings .asl_option:last-child{margin-bottom:0;}div.asl_s.searchsettings .asl_option_inner{width:17px;height:17px;position:relative;flex-grow:0;-webkit-flex-grow:0;flex-shrink:0;-webkit-flex-shrink:0;}div.asl_s.searchsettings .asl_option_inner label{cursor:pointer;position:absolute;width:17px;height:17px;top:0;padding:0;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,.2);overflow:hidden;font-size:0 !important;color:rgba(0,0,0,0);}div.asl_s.searchsettings.ie78 .asl_option_inner label{display:none;}div.asl_s.searchsettings .asl_option_inner label:after{opacity:0;font-family:'aslsicons2';content:"";font-weight:normal !important;background:transparent;border:none !important;box-sizing:content-box;color:#fff;height:100%;width:100%;padding:0 !important;margin:1px 0 0 0 !important;line-height:17px;text-align:center;text-decoration:none;text-shadow:none;display:block;font-size:11px !important;position:absolute;top:0;left:0;z-index:1;}div.asl_s.searchsettings.ie78 .asl_option_inner label:after{display:none;}div.asl_s.searchsettings .asl_option_inner label:hover::after{opacity:.3;}div.asl_s.searchsettings .asl_option_inner input[type=checkbox]:checked+label:after{opacity:1;}div.asl_s.searchsettings fieldset{position:relative;float:left;}div.asl_s.searchsettings fieldset{background:transparent;font-size:.9em;margin:12px 0 0 !important;padding:0;width:192px;}div.asl_s.searchsettings fieldset .asl_option_label{width:130px;display:block;}div.asl_s.searchsettings form fieldset legend{padding:5px 0 8px 10px;}/*
2
+ ------------------------------------------------------------------------------------------------------------------------
3
+ 10. SCROLLBAR
4
+ ------------------------------------------------------------------------------------------------------------------------
5
+ /*[simplebar]*/[data-asl_simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;}.asl_simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit;}.asl_simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto !important;height:auto !important;z-index:0;}.asl_simplebar-offset{direction:inherit !important;box-sizing:inherit !important;resize:none !important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch;}.asl_simplebar-content-wrapper{direction:inherit;box-sizing:border-box !important;position:relative;display:block;height:100%;width:auto;visibility:visible;max-width:100%;max-height:100%;scrollbar-width:none;}.asl_simplebar-content-wrapper::-webkit-scrollbar,.asl_simplebar-hide-scrollbar::-webkit-scrollbar{display:none;}.asl_simplebar-content:before,.asl_simplebar-content:after{content:' ';display:table;}.asl_simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none;}.asl_simplebar-height-auto-observer-wrapper{box-sizing:inherit !important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0;}.asl_simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1;}.asl_simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden;}[data-asl_simplebar].asl_simplebar-dragging .asl_simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none;}[data-asl_simplebar].asl_simplebar-dragging .asl_simplebar-track{pointer-events:all;}.asl_simplebar-scrollbar{position:absolute;right:2px;width:7px;min-height:10px;}.asl_simplebar-scrollbar:before{position:absolute;content:'';background:rgba(0,0,0,.5);border-radius:7px;left:0;right:0;opacity:0;transition:opacity .2s linear;}.asl_simplebar-scrollbar.asl_simplebar-visible:before{opacity:1;transition:opacity 0s linear;}.asl_simplebar-track.asl_simplebar-vertical{top:0;width:11px;margin-top:4px !important;margin-bottom:4px !important;}.asl_simplebar-track.asl_simplebar-vertical .asl_simplebar-scrollbar:before{top:2px;bottom:2px;}.asl_simplebar-track.asl_simplebar-horizontal{left:0;height:11px;margin-left:12px !important;margin-right:12px !important;}.asl_simplebar-track.asl_simplebar-horizontal .asl_simplebar-scrollbar:before{height:100%;left:2px;right:2px;}.asl_simplebar-track.asl_simplebar-horizontal .asl_simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto;}[data-asl_simplebar-direction='rtl'] .asl_simplebar-track.asl_simplebar-vertical{right:auto;left:0;}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;}.asl_simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;}/*[simplebar]*/#asl_hidden_data{display:none !important;}.rtl .asl_content,.rtl .asl_nores,.rtl .asl_content *,.rtl .asl_nores *,.rtl .searchsettings form{text-align:right !important;direction:rtl !important;}.rtl .asl_nores>*{display:inline-block;}.rtl div.asl_r .results .item .asl_image{float:right;margin:2px 0 0 8px;}div.asl_s.searchsettings form fieldset legend{padding:5px 10px 8px 0;}.rtl .searchsettings .asl_option{flex-direction:row-reverse !important;-webkit-flex-direction:row-reverse !important;}.rtl .asl_option{direction:ltr;}.rtl .asl_label,.rtl .asl_option div.asl_option_label{text-align:right !important;}.rtl .asl_label{max-width:1000px !important;width:100%;direction:rtl !important;}.rtl .asl_label input[type=radio]{margin:0 0 0 6px !important;}.rtl .asl_option_cat_level-0 div.asl_option_label{font-weight:bold !important;}.rtl fieldset .asl_option_cat_level-1{margin-right:12px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-2{margin-right:24px !important;margin-left:0;}.rtl fieldset .asl_option_cat_level-3{margin-right:36px !important;margin-left:0;}.rtl .searchsettings legend{text-align:right !important;display:block;width:100%;}.rtl .searchsettings input[type=text],.rtl .searchsettings select{direction:rtl !important;text-align:right !important;}.rtl div.asl_w.asl_s.searchsettings form,.rtl div.asl_w.asl_sb.searchsettings form{flex-direction:row-reverse !important;}.rtl div.horizontal.asl_r div.item{float:right !important;}.rtl p.asl-try{direction:rtl;text-align:right;margin-right:10px;width:auto !important;}
includes/classes/actions/class-asl-stylesheets.php CHANGED
@@ -126,6 +126,69 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
126
  div.asl_m.asl_w .probox {border: none !important;}
127
  ";
128
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  if ( $asl_options['custom_css'] != '' && base64_decode($asl_options['custom_css'], true) == true ) {
130
  self::$inline_css .= ' ' . stripcslashes( base64_decode($asl_options['custom_css']) );
131
  }
126
  div.asl_m.asl_w .probox {border: none !important;}
127
  ";
128
  }
129
+ if ( intval($asl_options['v_res_column_count']) > 1 ) {
130
+ // Columns specific
131
+ self::$inline_css .= "
132
+ div.asl_r.asl_w.vertical .resdrg {
133
+ display: flex;
134
+ flex-wrap: wrap;
135
+ }
136
+ div.asl_r.asl_w.vertical .results .item {
137
+ min-width: ". $asl_options['v_res_column_min_width'] . ";
138
+ width: " . floor( 100 / intval($asl_options['v_res_column_count']) - 1 ) . "%;
139
+ flex-grow: 1;
140
+ box-sizing: border-box;
141
+ border-radius: 0;
142
+ }
143
+ @media only screen and (min-width: 641px) and (max-width: 1024px) {
144
+ div.asl_r.asl_w.vertical .results .item {
145
+ min-width: ". $asl_options['v_res_column_min_width_tablet'] . ";
146
+ }
147
+ }
148
+ @media only screen and (max-width: 640px) {
149
+ div.asl_r.asl_w.vertical .results .item {
150
+ min-width: ". $asl_options['v_res_column_min_width_phone'] . ";
151
+ }
152
+ }
153
+ ";
154
+ } else {
155
+ // Spacer, if there are no columns
156
+ self::$inline_css .= "
157
+ div.asl_r.asl_w.vertical .results .item::after {
158
+ display: block;
159
+ position: absolute;
160
+ bottom: 0;
161
+ content: '';
162
+ height: 1px;
163
+ width: 100%;
164
+ background: #D8D8D8;
165
+ }
166
+ div.asl_r.asl_w.vertical .results .item.asp_last_item::after {
167
+ display: none;
168
+ }
169
+ ";
170
+ }
171
+
172
+ if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
173
+ self::$inline_css .= "
174
+ @media only screen and (min-width: 641px) and (max-width: 1024px) {
175
+ div.asl_w.asl_m {
176
+ width: ".$asl_options['box_width_tablet']." !important;
177
+ }
178
+ }
179
+ ";
180
+ }
181
+
182
+ if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
183
+ self::$inline_css .= "
184
+ @media only screen and (max-width: 640px) {
185
+ div.asl_w.asl_m {
186
+ width: ".$asl_options['box_width_phone']." !important;
187
+ }
188
+ }
189
+ ";
190
+ }
191
+
192
  if ( $asl_options['custom_css'] != '' && base64_decode($asl_options['custom_css'], true) == true ) {
193
  self::$inline_css .= ' ' . stripcslashes( base64_decode($asl_options['custom_css']) );
194
  }
includes/classes/core/class-asl-init.php CHANGED
@@ -56,13 +56,29 @@ class WD_ASL_Init {
56
  * Fix known backwards incompatibilities
57
  */
58
  public function backwards_compatibility_fixes() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  /*
60
  * - Get instances
61
  * - Check options
62
  * - Transition to new options based on old ones
63
  * - Save instances
64
  */
65
-
66
  foreach (wd_asl()->instances->get() as $si) {
67
  $sd = $si['data'];
68
 
@@ -125,6 +141,13 @@ class WD_ASL_Init {
125
  unset($sd['searchinposts']);
126
  }
127
 
 
 
 
 
 
 
 
128
  // At the end, update
129
  wd_asl()->instances->update(0, $sd);
130
  }
@@ -164,12 +187,13 @@ class WD_ASL_Init {
164
  wp_dequeue_script( 'otw-admin-variables');
165
 
166
  $performance_options = wd_asl()->o['asl_performance'];
 
167
 
168
  $prereq = 'jquery';
169
  $js_source = $com_opt['js_source'];
170
 
171
  $load_in_footer = w_isset_def($performance_options['load_in_footer'], 1) == 1 ? true : false;
172
- $load_mcustom = w_isset_def($com_opt['load_mcustom_js'], "yes") == "yes";
173
 
174
  if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
175
  if ($js_source == "nomin-scoped") {
@@ -182,7 +206,7 @@ class WD_ASL_Init {
182
  wp_register_script('wpdreams-highlight', ASL_URL . 'js/' . $js_source . '/jquery.highlight.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
183
  wp_enqueue_script('wpdreams-highlight');
184
  if ($load_mcustom) {
185
- wp_register_script('wpdreams-scroll', ASL_URL . 'js/' . $js_source . '/jquery.mCustomScrollbar.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
186
  wp_enqueue_script('wpdreams-scroll');
187
  }
188
  wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . 'js/' . $js_source . '/jquery.ajaxsearchlite.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
@@ -220,7 +244,63 @@ class WD_ASL_Init {
220
  'scrollbar' => $load_mcustom,
221
  'js_retain_popstate' => $com_opt['js_retain_popstate'],
222
  'version' => ASL_CURRENT_VERSION,
223
- 'fix_duplicates' => $com_opt['js_fix_duplicates']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  ));
225
 
226
  }
56
  * Fix known backwards incompatibilities
57
  */
58
  public function backwards_compatibility_fixes() {
59
+
60
+ // 4.8.1
61
+ $comp = wd_asl()->o['asl_compatibility'];
62
+ if ( isset($comp['load_mcustom_js']) ) {
63
+ wd_asl()->o['asl_compatibility']['load_scroll_js'] = $comp['load_mcustom_js'];
64
+ unset( wd_asl()->o['asl_compatibility']['load_mcustom_js']);
65
+ asl_save_option('asl_compatibility');
66
+ }
67
+
68
+ // 4.18.2
69
+ $ana = wd_asl()->o['asl_analytics'];
70
+ // Analytics Options fixes 4.8.2
71
+ if ( isset($ana['analytics']) && $ana['analytics'] == 1 ) {
72
+ wd_asl()->o['asl_analytics']['analytics'] = 'pageview';
73
+ asl_save_option('asl_analytics');
74
+ }
75
+
76
  /*
77
  * - Get instances
78
  * - Check options
79
  * - Transition to new options based on old ones
80
  * - Save instances
81
  */
 
82
  foreach (wd_asl()->instances->get() as $si) {
83
  $sd = $si['data'];
84
 
141
  unset($sd['searchinposts']);
142
  }
143
 
144
+ // ------------------------- 4.18.1 -----------------------------
145
+ // For non-existence checks use the raw_data array
146
+ if ( !isset($si['raw_data']['box_width_tablet']) ) {
147
+ $sd['box_width_tablet'] = $sd['box_width'];
148
+ $sd['box_width_phone'] = $sd['box_width'];
149
+ }
150
+
151
  // At the end, update
152
  wd_asl()->instances->update(0, $sd);
153
  }
187
  wp_dequeue_script( 'otw-admin-variables');
188
 
189
  $performance_options = wd_asl()->o['asl_performance'];
190
+ $analytics = wd_asl()->o['asl_analytics'];
191
 
192
  $prereq = 'jquery';
193
  $js_source = $com_opt['js_source'];
194
 
195
  $load_in_footer = w_isset_def($performance_options['load_in_footer'], 1) == 1 ? true : false;
196
+ $load_mcustom = w_isset_def($com_opt['load_scroll_js'], "yes") == "yes";
197
 
198
  if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
199
  if ($js_source == "nomin-scoped") {
206
  wp_register_script('wpdreams-highlight', ASL_URL . 'js/' . $js_source . '/jquery.highlight.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
207
  wp_enqueue_script('wpdreams-highlight');
208
  if ($load_mcustom) {
209
+ wp_register_script('wpdreams-scroll', ASL_URL . 'js/' . $js_source . '/simplebar.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
210
  wp_enqueue_script('wpdreams-scroll');
211
  }
212
  wp_register_script('wpdreams-ajaxsearchlite', ASL_URL . 'js/' . $js_source . '/jquery.ajaxsearchlite.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
244
  'scrollbar' => $load_mcustom,
245
  'js_retain_popstate' => $com_opt['js_retain_popstate'],
246
  'version' => ASL_CURRENT_VERSION,
247
+ 'fix_duplicates' => $com_opt['js_fix_duplicates'],
248
+ 'analytics' => array(
249
+ 'method' => $analytics['analytics'],
250
+ 'tracking_id' => $analytics['analytics_tracking_id'],
251
+ 'string' => $analytics['analytics_string'],
252
+ 'event' => array(
253
+ 'focus' => array(
254
+ 'active' => $analytics['gtag_focus'],
255
+ 'action' => $analytics['gtag_focus_action'],
256
+ "category" => $analytics['gtag_focus_ec'],
257
+ "label" => $analytics['gtag_focus_el'],
258
+ "value" => $analytics['gtag_focus_value']
259
+ ),
260
+ 'search_start' => array(
261
+ 'active' => $analytics['gtag_search_start'],
262
+ 'action' => $analytics['gtag_search_start_action'],
263
+ "category" => $analytics['gtag_search_start_ec'],
264
+ "label" => $analytics['gtag_search_start_el'],
265
+ "value" => $analytics['gtag_search_start_value']
266
+ ),
267
+ 'search_end' => array(
268
+ 'active' => $analytics['gtag_search_end'],
269
+ 'action' => $analytics['gtag_search_end_action'],
270
+ "category" => $analytics['gtag_search_end_ec'],
271
+ "label" => $analytics['gtag_search_end_el'],
272
+ "value" => $analytics['gtag_search_end_value']
273
+ ),
274
+ 'magnifier' => array(
275
+ 'active' => $analytics['gtag_magnifier'],
276
+ 'action' => $analytics['gtag_magnifier_action'],
277
+ "category" => $analytics['gtag_magnifier_ec'],
278
+ "label" => $analytics['gtag_magnifier_el'],
279
+ "value" => $analytics['gtag_magnifier_value']
280
+ ),
281
+ 'return' => array(
282
+ 'active' => $analytics['gtag_return'],
283
+ 'action' => $analytics['gtag_return_action'],
284
+ "category" => $analytics['gtag_return_ec'],
285
+ "label" => $analytics['gtag_return_el'],
286
+ "value" => $analytics['gtag_return_value']
287
+ ),
288
+ 'facet_change' => array(
289
+ 'active' => $analytics['gtag_facet_change'],
290
+ 'action' => $analytics['gtag_facet_change_action'],
291
+ "category" => $analytics['gtag_facet_change_ec'],
292
+ "label" => $analytics['gtag_facet_change_el'],
293
+ "value" => $analytics['gtag_facet_change_value']
294
+ ),
295
+ 'result_click' => array(
296
+ 'active' => $analytics['gtag_result_click'],
297
+ 'action' => $analytics['gtag_result_click_action'],
298
+ "category" => $analytics['gtag_result_click_ec'],
299
+ "label" => $analytics['gtag_result_click_el'],
300
+ "value" => $analytics['gtag_result_click_value']
301
+ )
302
+ )
303
+ )
304
  ));
305
 
306
  }
includes/classes/core/class-asl-instances.php CHANGED
@@ -154,13 +154,17 @@ class WD_ASL_Instances {
154
  );
155
 
156
  $this->instances[$k]['id'] = $k;
157
- if ( is_array($instance) )
 
 
158
  $this->instances[$k]['data'] = array_merge(
159
  wd_asl()->options['asl_defaults'],
160
- $this->decode_params($instance)
161
  );
162
- else
 
163
  $this->instances[$k]['data'] = wd_asl()->options['asl_defaults'];
 
164
  }
165
  }
166
 
154
  );
155
 
156
  $this->instances[$k]['id'] = $k;
157
+
158
+ if ( is_array($instance) ) {
159
+ $this->instances[$k]['raw_data'] = $this->decode_params($instance);
160
  $this->instances[$k]['data'] = array_merge(
161
  wd_asl()->options['asl_defaults'],
162
+ $this->instances[$k]['raw_data']
163
  );
164
+ } else {
165
+ $this->instances[$k]['raw_data'] = wd_asl()->options['asl_defaults'];
166
  $this->instances[$k]['data'] = wd_asl()->options['asl_defaults'];
167
+ }
168
  }
169
  }
170
 
includes/classes/search/search_content.class.php CHANGED
@@ -1146,6 +1146,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1146
  * @return string image URL
1147
  */
1148
  protected function getBFIimage( $post ) {
 
1149
 
1150
  if ( ! isset( $post->image ) || $post->image == null ) {
1151
 
@@ -1169,7 +1170,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1169
  case "content":
1170
  $content = apply_filters('the_content', get_post_field('post_content', $post->id));
1171
 
1172
- $im = wpdreams_get_image_from_content( $content, 0 );
1173
  if ( is_multisite() ) {
1174
  $im = str_replace( home_url(), network_home_url(), $im );
1175
  }
@@ -1177,7 +1178,7 @@ if ( ! class_exists( 'wpdreams_searchContent' ) ) {
1177
  case "excerpt":
1178
  $excerpt = get_post_field('post_excerpt', $post->id);
1179
 
1180
- $im = wpdreams_get_image_from_content( $excerpt, 0 );
1181
  if ( is_multisite() ) {
1182
  $im = str_replace( home_url(), network_home_url(), $im );
1183
  }
1146
  * @return string image URL
1147
  */
1148
  protected function getBFIimage( $post ) {
1149
+ $image_num = $this->searchData['image_parser_image_number'];
1150
 
1151
  if ( ! isset( $post->image ) || $post->image == null ) {
1152
 
1170
  case "content":
1171
  $content = apply_filters('the_content', get_post_field('post_content', $post->id));
1172
 
1173
+ $im = asl_get_image_from_content( $content, $image_num );
1174
  if ( is_multisite() ) {
1175
  $im = str_replace( home_url(), network_home_url(), $im );
1176
  }
1178
  case "excerpt":
1179
  $excerpt = get_post_field('post_excerpt', $post->id);
1180
 
1181
+ $im = asl_get_image_from_content( $excerpt, $image_num );
1182
  if ( is_multisite() ) {
1183
  $im = str_replace( home_url(), network_home_url(), $im );
1184
  }
includes/functions/functions.php CHANGED
@@ -560,20 +560,31 @@ if (!function_exists("wpdreams_ismobile")) {
560
  return $is_mobile;
561
  }
562
  }
563
- if (!function_exists("current_page_url")) {
564
- function current_page_url() {
565
- $pageURL = 'http';
566
- if( isset($_SERVER["HTTPS"]) ) {
567
- if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
568
- }
569
- $pageURL .= "://";
570
- if ($_SERVER["SERVER_PORT"] != "80") {
571
- $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
572
- } else {
573
- $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
574
- }
575
- return $pageURL;
576
- }
 
 
 
 
 
 
 
 
 
 
 
577
  }
578
  if (!function_exists("wpdreams_hex2rgb")) {
579
  function wpdreams_hex2rgb($color)
@@ -662,19 +673,38 @@ if (!function_exists("setval_or_getoption")) {
662
  }
663
  }
664
 
665
- if (!function_exists("wpdreams_get_image_from_content")) {
666
  /**
667
  * Gets an image from the HTML content
668
  *
669
  * @param $content
670
  * @param int $number
 
671
  * @return bool|string
672
  */
673
- function wpdreams_get_image_from_content($content, $number = 0) {
674
  if ($content == "" || !class_exists('domDocument'))
675
  return false;
676
 
677
- $dom = new domDocument;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
678
  if ( function_exists('mb_convert_encoding') )
679
  @$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));
680
  else
@@ -682,11 +712,21 @@ if (!function_exists("wpdreams_get_image_from_content")) {
682
  $dom->preserveWhiteSpace = false;
683
  @$images = $dom->getElementsByTagName('img');
684
  if ($images->length > 0) {
685
- if ($images->length > $number) {
686
- $im = $images->item($number)->getAttribute('src');
687
- } else {
688
- $im = $images->item(0)->getAttribute('src');
689
- }
 
 
 
 
 
 
 
 
 
 
690
  return $im;
691
  } else {
692
  return false;
@@ -735,7 +775,7 @@ if (!function_exists("wpdreams_on_backend_post_editor")) {
735
  * @return bool
736
  */
737
  function wpdreams_on_backend_post_editor() {
738
- $current_url = current_page_url();
739
  return (strpos($current_url, 'post-new.php')!==false ||
740
  strpos($current_url, 'post.php')!==false);
741
  }
560
  return $is_mobile;
561
  }
562
  }
563
+ if (!function_exists("wd_current_page_url")) {
564
+ /**
565
+ * Returns the current page url
566
+ *
567
+ * @return string
568
+ */
569
+ function wd_current_page_url() {
570
+ $pageURL = 'http';
571
+
572
+ $port = !empty($_SERVER["SERVER_PORT"]) ? $_SERVER["SERVER_PORT"] : 80;
573
+
574
+ $server_name = !empty($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : "";
575
+ $server_name = empty($server_name) && !empty($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $server_name;
576
+
577
+ if( isset($_SERVER["HTTPS"]) ) {
578
+ if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
579
+ }
580
+ $pageURL .= "://";
581
+ if ($port != "80") {
582
+ $pageURL .= $server_name.":".$port.$_SERVER["REQUEST_URI"];
583
+ } else {
584
+ $pageURL .= $server_name.$_SERVER["REQUEST_URI"];
585
+ }
586
+ return $pageURL;
587
+ }
588
  }
589
  if (!function_exists("wpdreams_hex2rgb")) {
590
  function wpdreams_hex2rgb($color)
673
  }
674
  }
675
 
676
+ if (!function_exists("asl_get_image_from_content")) {
677
  /**
678
  * Gets an image from the HTML content
679
  *
680
  * @param $content
681
  * @param int $number
682
+ * @param array|string $exclude
683
  * @return bool|string
684
  */
685
+ function asl_get_image_from_content($content, $number = 0, $exclude = array()) {
686
  if ($content == "" || !class_exists('domDocument'))
687
  return false;
688
 
689
+ // The arguments expects 1 as the first image, while it is the 0th
690
+ $number = intval($number) - 1;
691
+ $number = $number < 0 ? 0 : $number;
692
+
693
+ if ( !is_array($exclude) ) {
694
+ $exclude = strval($exclude);
695
+ $exclude = explode(',', $exclude);
696
+ }
697
+ foreach ( $exclude as $k => &$v ) {
698
+ $v = trim($v);
699
+ if ( $v == '' ) {
700
+ unset($exclude[$k]);
701
+ }
702
+ }
703
+
704
+ $attributes = array('src', 'data-src-fg');
705
+ $im = false;
706
+
707
+ $dom = new domDocument();
708
  if ( function_exists('mb_convert_encoding') )
709
  @$dom->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'));
710
  else
712
  $dom->preserveWhiteSpace = false;
713
  @$images = $dom->getElementsByTagName('img');
714
  if ($images->length > 0) {
715
+ $get = $images->length > $number ? $number : 0;
716
+ for ($i=$get;$i<$images->length;$i++) {
717
+ foreach ( $attributes as $att ) {
718
+ $im = $images->item($i)->getAttribute($att);
719
+ if ( !empty($im) )
720
+ break;
721
+ }
722
+ foreach ( $exclude as $ex ) {
723
+ if ( strpos($im, $ex) !== false ) {
724
+ $im = '';
725
+ continue 2;
726
+ }
727
+ }
728
+ break;
729
+ }
730
  return $im;
731
  } else {
732
  return false;
775
  * @return bool
776
  */
777
  function wpdreams_on_backend_post_editor() {
778
+ $current_url = wd_current_page_url();
779
  return (strpos($current_url, 'post-new.php')!==false ||
780
  strpos($current_url, 'post.php')!==false);
781
  }
includes/views/asl.shortcode.php CHANGED
@@ -117,7 +117,7 @@ if ( function_exists('qtranxf_getLanguage') ) {
117
  <fieldset class="asl_sett_scroll">
118
  <legend style="display: none;">Generic selectors</legend>
119
  <div class="asl_option_inner hiddend">
120
- <input type='hidden' name='qtranslate_lang' id='qtranslate_lang'
121
  value='<?php echo $qtr_lg; ?>'/>
122
  </div>
123
 
@@ -394,7 +394,7 @@ if ( function_exists('qtranxf_getLanguage') ) {
394
  "iiblurOverlay": <?php echo w_isset_def($style['i_overlay_blur'], 1); ?>,
395
  "iihideContent": <?php echo w_isset_def($style['i_hide_content'], 1); ?>,
396
  "iianimation": "<?php echo w_isset_def($style['i_animation'], 1); ?>",
397
- "analytics": <?php echo w_isset_def($ana_options['analytics'], 0); ?>,
398
  "analyticsString": "<?php echo w_isset_def($ana_options['analytics_string'], ""); ?>",
399
  "redirectonclick": <?php echo $style['redirect_click_to'] != 'ajax_search' && $style['redirect_click_to'] != 'nothing' ? 1 : 0; ?>,
400
  "redirectClickTo": "<?php echo $style['redirect_click_to']; ?>",
117
  <fieldset class="asl_sett_scroll">
118
  <legend style="display: none;">Generic selectors</legend>
119
  <div class="asl_option_inner hiddend">
120
+ <input type='hidden' name='qtranslate_lang' id='qtranslate_lang<?php echo $id; ?>'
121
  value='<?php echo $qtr_lg; ?>'/>
122
  </div>
123
 
394
  "iiblurOverlay": <?php echo w_isset_def($style['i_overlay_blur'], 1); ?>,
395
  "iihideContent": <?php echo w_isset_def($style['i_hide_content'], 1); ?>,
396
  "iianimation": "<?php echo w_isset_def($style['i_animation'], 1); ?>",
397
+ "analytics": "<?php echo w_isset_def($ana_options['analytics'], 0); ?>",
398
  "analyticsString": "<?php echo w_isset_def($ana_options['analytics_string'], ""); ?>",
399
  "redirectonclick": <?php echo $style['redirect_click_to'] != 'ajax_search' && $style['redirect_click_to'] != 'nothing' ? 1 : 0; ?>,
400
  "redirectClickTo": "<?php echo $style['redirect_click_to']; ?>",
includes/views/no-results.php CHANGED
@@ -22,6 +22,6 @@ defined('ABSPATH') or die("You can't access this file directly.");
22
  ?>
23
  <div class="asl_nores">
24
 
25
- <span class="asl_nores_header"><?php echo asl_icl_t('No results text', $s_options['noresultstext']); ?></span>
26
 
27
  </div>
22
  ?>
23
  <div class="asl_nores">
24
 
25
+ <span class="asl_nores_header"><?php echo asl_icl_t('Results: No results text', $s_options['noresultstext']); ?></span>
26
 
27
  </div>
includes/views/result.php CHANGED
@@ -17,8 +17,6 @@ defined('ABSPATH') or die("You can't access this file directly.");
17
  * Object() $r - holding the result details
18
  * Array[] $s_options - holding the search options
19
  *
20
- * I DO NOT RECOMMEND PUTTING ANYTHING BEFORE OR AFTER THE
21
- * <div class='item'>..</div><div class="asl_spacer"></div> structure
22
  *
23
  * You can leave empty lines for better visibility, they are cleared before output.
24
  *
@@ -87,5 +85,4 @@ defined('ABSPATH') or die("You can't access this file directly.");
87
 
88
  <?php do_action('asl_res_vertical_end_item'); ?>
89
 
90
- </div>
91
- <div class="asl_spacer"></div>
17
  * Object() $r - holding the result details
18
  * Array[] $s_options - holding the search options
19
  *
 
 
20
  *
21
  * You can leave empty lines for better visibility, they are cleared before output.
22
  *
85
 
86
  <?php do_action('asl_res_vertical_end_item'); ?>
87
 
88
+ </div>
 
js/min-scoped/jquery.ajaxsearchlite.min.js CHANGED
@@ -1,4 +1,4 @@
1
  /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
- !function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){var c=[],l=c.slice,ki=c.concat,ni=c.push,di=c.indexOf,ct={},hf=ct.toString,nt=ct.hasOwnProperty,r={},gi="1.11.1",i=function(n,t){return new i.fn.init(n,t)},cf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,lf=/^-ms-/,af=/-([\da-z])/gi,vf=function(n,t){return t.toUpperCase()};i.fn=i.prototype={jquery:gi,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ni,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(gi+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!nt.call(n,"constructor")&&!nt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return nt.call(n,t);for(t in n);return void 0===t||nt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ct[hf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lf,"ms-").replace(af,vf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ti(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(cf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ti(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ni.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(di)return di.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ti(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ki.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});function ti(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}var tt=function(n){var it,u,t,ht,oi,et,wt,si,ct,y,rt,p,e,l,a,o,g,lt,ot,f="sizzle"+-new Date,s=n.document,v=0,ki=0,hi=ni(),ci=ni(),li=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",ai=1<<31,di={}.hasOwnProperty,w=[],gi=w.pop,nr=w.push,b=w.push,vi=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=ft.replace("w","w#"),pi="\\["+i+"*("+ft+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yi+"))|)"+i+"*\\]",dt=":("+ft+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",at=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),tr=new RegExp("^"+i+"*,"+i+"*"),ir=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),rr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),ur=new RegExp(dt),fr=new RegExp("^"+yi+"$"),vt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=vi.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){nr.apply(n,vi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}function r(n,t,i,r){var w,h,c,v,k,y,d,l,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(w=sr.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&ot(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=et(n),(d=t.getAttribute("id"))?l=d.replace(hr,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",k=y.length;k--;)y[k]=l+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,i,r)}function ni(){var i=[];function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||ai)-(~n.sourceIndex||ai);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}u=r.support={};oi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var v,r=n?n.ownerDocument||n:s,h=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!oi(r),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&a)return t.getElementsByClassName(n)},g=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowclip=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowclip^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(lt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=lt.call(n,"div");lt.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=st.test(l.compareDocumentPosition),ot=v||st.test(l.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===s&&ot(s,n)?-1:t===r||t.ownerDocument===s&&ot(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===r?-1:t===r?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===s?-1:e[u]===s?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(rr,"='$1']"),!(!u.matchesSelector||!a||g&&g.test(t)||o&&o.test(t)))try{var i=lt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),ot(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!a):void 0;return void 0!==r?r:u.attributes||!a?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(bt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};ht=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ht(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=ht(r);return i};t=r.selectors={cacheLength:50,createPseudo:h,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[3]||n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&ur.test(t)&&(i=et(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(at,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return r(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||ht(t)).indexOf(n)>-1}}),lang:h(function(n){return fr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=cr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=lr(it);function bi(){}bi.prototype=t.filters=t.pseudos;t.setFilters=new bi;et=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=tr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=ir.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),u=u.slice(e.length));for(o in t.filter)(f=vt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):ci(n,h).slice(0)};function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ct)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function vr(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,a="0",g=o&&[],p=[],nt=ct,tt=o||f&&t.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ct=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=a,u&&a!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(a--)g[a]||p[a]||(p[a]=gi.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(v=it,ct=nt),g};return u?h(o):o}return wt=r.compile=function(n,t){var r,u=[],e=[],i=li[n+" "];if(!i){for(t||(t=et(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=li(n,vr(e,u));i.selector=n}return i},si=r.select=function(n,i,r,f){var s,e,o,l,v,c="function"==typeof n&&n,h=!f&&et(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[l=o.type])break;if((v=t.find[l])&&(f=v(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(r,f),r;break}}}return(c||wt(n,h))(f,i,!a,r,gt.test(n)&&ii(i.parentNode)||i),r},u.sortStable=f.split("").sort(bt).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=tt;i.expr=tt.selectors;i.expr[":"]=i.expr.pseudos;i.unique=tt.uniqueSort;i.text=tt.getText;i.isXMLDoc=tt.isXML;i.contains=tt.contains;var nr=i.expr.match.needsContext,tr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,yf=/^.[^:#\[\.,]*$/;function ii(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(yf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ii(this,n||[],!1))},not:function(n){return this.pushStack(ii(this,n||[],!0))},is:function(n){return!!ii(this,"string"==typeof n&&nr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,pf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,wf=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:pf.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),tr.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};wf.prototype=i.fn;ft=i(u);var bf=/^(?:parents|prev(?:Until|All))/,kf={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=nr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});function ir(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ir(n,"nextSibling")},prev:function(n){return ir(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(kf[n]||(f=i.unique(f)),bf.test(n)&&(f=f.reverse())),this.pushStack(f)}});var h=/\S+/g,rr={};function df(n){var t=rr[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}i.Callbacks=function(n){n="string"==typeof n?rr[n]||df(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});var lt;i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(lt.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}}});function ur(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(ur(),i.ready())}i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}ur();i.ready()}}()}return lt.promise(t)};var s="undefined";for(var gf in i(r))break;r.ownLast="0"!==gf;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};var ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/([A-Z])/g;function fr(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(te,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ne.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ri(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function er(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function or(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ri(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ri(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ri(n)},data:function(n,t,i){return er(n,t,i)},removeData:function(n,t){return or(n,t)},_data:function(n,t,i){return er(n,t,i,!0)},_removeData:function(n,t){return or(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),fr(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?fr(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},w=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},ui=/^(?:checkbox|radio)$/i;!function(){var t=u.createElement("input"),n=u.createElement("div"),i=u.createDocumentFragment();if(n.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var fi=/^(?:input|select|textarea)$/i,ie=/^key/,re=/^(?:mouse|pointer|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;function vt(){return!0}function it(){return!1}function cr(){try{return u.activeElement}catch(n){}}i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,o,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==s&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=hr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,o.setup&&o.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),o.add&&(o.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=hr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=nt.call(t,"type")?t.type:t,v=nt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!sr.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,sr.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=re.test(r)?this.mouseHooks:ie.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===s&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:it):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return fi.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;fi.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!fi.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=it;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});function lr(n){var i=ar.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}var ar="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ue=/ jQuery\d+="(?:null|\d+)"/g,vr=new RegExp("<(?:"+ar+")[\\s/>]","i"),ei=/^\s+/,yr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,pr=/<([\w:]+)/,wr=/<tbody/i,fe=/<|&#?\w+;/,ee=/<(?:script|style|link)/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/^$|\/(?:java|ecma)script/i,se=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,o={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},ce=lr(u),oi=ce.appendChild(u.createElement("div"));o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;function f(n,t){var e,u,o=0,r=typeof n.getElementsByTagName!==s?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==s?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function le(n){ui.test(n.type)&&(n.defaultChecked=n.checked)}function kr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function dr(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function gr(n){var t=se.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function si(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function nu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ae(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(dr(t).text=n.text,gr(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&ui.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vr.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(oi.innerHTML=n.outerHTML,oi.removeChild(s=oi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&ae(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)nu(c,e[o]);else nu(n,s);return e=f(s,"script"),e.length>0&&si(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,s,b,h,p,w,a,k=n.length,v=lr(t),l=[],y=0;k>y;y++)if(s=n[y],s||0===s)if("object"===i.type(s))i.merge(l,s.nodeType?[s]:s);else if(fe.test(s)){for(h=h||v.appendChild(t.createElement("div")),p=(pr.exec(s)||["",""])[1].toLowerCase(),a=o[p]||o._default,h.innerHTML=a[1]+s.replace(yr,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&ei.test(s)&&l.push(t.createTextNode(ei.exec(s)[0])),!r.tbody)for(s="table"!==p||wr.test(s)?"<table>"!==a[1]||wr.test(s)?0:h:h.firstChild,c=s&&s.childNodes.length;c--;)i.nodeName(w=s.childNodes[c],"tbody")&&!w.childNodes.length&&s.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(s));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),le),y=0;s=l[y++];)if((!e||-1===i.inArray(s,e))&&(b=i.contains(s.ownerDocument,s),h=f(v.appendChild(s),"script"),b&&si(h),u))for(c=0;s=h[c++];)br.test(s.type||"")&&u.push(s);return h=null,v},cleanData:function(n,t){for(var u,e,f,o,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],o=f&&l[f])){if(o.events)for(e in o.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==s?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&si(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(ue,""):void 0;if(!("string"!=typeof n||ee.test(n)||!r.htmlSerialize&&vr.test(n)||!r.leadingWhitespace&&ei.test(n)||o[(pr.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(yr,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ki.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&oe.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),dr),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,gr),e=0;c>e;e++)u=o[e],br.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(he,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ni.apply(f,u.get());return this.pushStack(f)}});var ot,tu={};function iu(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function yt(n){var r=u,t=tu[n];return t||(t=iu(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=iu(n,r),ot.detach()),tu[n]=t),t}!function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ru=/^margin/,pt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),b,k,ve=/^(top|right|bottom|left)$/;n.getComputedStyle?(b=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},k=function(n,t,r){var e,o,s,u,f=n.style;return r=r||b(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),pt.test(u)&&ru.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(b=function(n){return n.currentStyle},k=function(n,t,i){var o,f,e,r,u=n.style;return i=i||b(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!ve.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});function uu(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var f,t,l,o,s,e,h;if(f=u.createElement("div"),f.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",l=f.getElementsByTagName("a")[0],t=l&&l.style){t.cssText="float:left;opacity:.5";r.opacity="0.5"===t.opacity;r.cssFloat=!!t.cssFloat;f.style.backgroundClip="content-box";f.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===f.style.backgroundClip;r.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==e&&c(),e},boxSizingReliable:function(){return null==s&&c(),s},pixelPosition:function(){return null==o&&c(),o},reliableMarginRight:function(){return null==h&&c(),h}});function c(){var i,r,f,t;r=u.getElementsByTagName("body")[0];r&&r.style&&(i=u.createElement("div"),f=u.createElement("div"),f.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(f).appendChild(i),i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,h=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(i,null)||{}).top,s="4px"===(n.getComputedStyle(i,null)||{width:"4px"}).width,t=i.appendChild(u.createElement("div")),t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",h=!parseFloat((n.getComputedStyle(t,null)||{}).marginRight)),i.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t=i.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===t[0].offsetHeight,e&&(t[0].style.display="",t[1].style.display="none",e=0===t[0].offsetHeight),r.removeChild(f))}}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var hi=/alpha\([^)]*\)/i,ye=/opacity\s*=\s*([^)]*)/,pe=/^(none|table(?!-c[ea]).+)/,we=new RegExp("^("+at+")(.*)$","i"),be=new RegExp("^([+-])=("+at+")","i"),ke={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"];function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=we.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=b(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=k(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+cu(n,t,u||(s?"border":"content"),o,e)+"px"}i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=k(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ou(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:c[t];if(h=typeof u,"string"===h&&(o=be.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=u&&u===u&&("number"!==h||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=ou(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=k(n,t,u)),"normal"===f&&t in fu&&(f=fu[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ke,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,u,f){var e=f&&b(n);return hu(n,u,f?cu(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ye.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(hi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=hi.test(f)?f.replace(hi,e):f+" "+e)}});i.cssHooks.marginRight=uu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},k,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=b(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var r,t=e.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,wt,de=/^(?:toggle|show|hide)$/,au=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),ge=/queueHooks$/,bt=[no],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=au.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&au.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};function vu(){return setTimeout(function(){rt=void 0}),rt=i.now()}function kt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yu(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function no(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],de.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function to(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function pu(n,t,r){var h,e,o=0,l=bt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||vu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||vu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(to(s,u.opts.specialEasing);l>o;o++)if(h=bt[o].call(u,n,s,u.opts))return h;return i.map(s,yu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}i.Animation=i.extend(pu,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?bt.unshift(n):bt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=pu(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&ge.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n,t,f,i,e;t=u.createElement("div");t.setAttribute("className","t");t.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();var io=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(io,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,wu,v=i.expr.attrHandle,ci=/^(?:checked|selected)$/i,d=r.getSetAttribute,dt=r.input;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===s?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?wu:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?dt&&d||!ci.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(d?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});wu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):dt&&d||!ci.test(r)?n.setAttribute(!d&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=dt&&d||!ci.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});dt&&d||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});d||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});var ro=/^(?:input|select|textarea|button|object)$/i,uo=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ro.test(n.nodeName)||uo.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");var li=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===s||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(li," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var ai=i.now(),vi=/\?/,fo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(fo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var g,y,eo=/#.*$/,bu=/([?&])_=[^&]*/,oo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,so=/^(?:GET|HEAD)$/,ho=/^\/\//,ku=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,du={},yi={},gu="*/".concat("*");try{y=location.href}catch(ns){y=u.createElement("a");y.href="";y=y.href}g=ku.exec(y.toLowerCase())||[];function nf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function tf(n,t,r,u){var f={},o=n===yi;function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function co(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function lo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(g[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:nf(du),ajaxTransport:nf(yi),ajax:function(n,t){"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=oo.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),w(0,t),this}};if(nt.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(eo,"").replace(ho,g[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=ku.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===g[1]&&s[2]===g[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(g[3]||("http:"===g[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),tf(du,r,t,u),2===e)return u;l=r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!so.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(vi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=bu.test(f)?f.replace(bu,"$1_="+ai++):f+(vi.test(f)?"&":"?")+"_="+ai++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+gu+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=tf(yi,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");function w(n,t,s,h){var v,it,g,y,w,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=co(r,u,s)),y=lo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,g=y.error,v=!g)):(g=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?nt.resolveWith(o,[it,c,u]):nt.rejectWith(o,[u,c,g]),u.statusCode(p),p=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:g]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ao=/%20/g,vo=/\[\]$/,rf=/\r?\n/g,yo=/^(?:submit|button|image|reset|file)$/i,po=/^(?:input|select|textarea|keygen)/i;function wi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||vo.test(n)?u(n,i):wi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)wi(n+"["+f+"]",t[f],r,u)}i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)wi(r,n[r],t,f);return u.join("&").replace(ao,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&po.test(this.nodeName)&&!yo.test(n)&&(this.checked||!ui.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(rf,"\r\n")}}):{name:t.name,value:r.replace(rf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&uf()||bo()}:uf;var wo=0,gt={},ht=i.ajaxSettings.xhr();n.ActiveXObject&&i(n).on("unload",function(){for(var n in gt)gt[n](void 0,!0)});r.cors=!!ht&&"withCredentials"in ht;ht=r.ajax=!!ht;ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++wo;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete gt[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}});function uf(){try{return new n.XMLHttpRequest}catch(t){}}function bo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ff=[],bi=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ff.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(bi.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&bi.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(bi,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,ff.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")});i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=tr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))};var ef=i.fn.load;i.fn.load=function(n,t,r){if("string"!=typeof n&&ef)return ef.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this};i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length};var of=n.document.documentElement;function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}};i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==s&&(u=r.getBoundingClientRect()),f=sf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||of;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||of})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return w(this,function(n,u,f){var e=sf(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}});i.each(["top","left"],function(n,t){i.cssHooks[t]=uu(r.pixelPosition,function(n,r){if(r)return(r=k(n,t),pt.test(r)?i(n).position()[t]+"px":r)})});i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return w(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"function"==typeof define&&define.amd&&define("asljQuery",[],function(){return i});var ko=n.jQuery,go=n.$;return i.noConflict=function(t){return n.$===i&&(n.$=go),t&&n.jQuery===i&&(n.asljQuery=ko),i},typeof t===s&&(n.asljQuery=n.$=i),i}),function(n,t,i){(function(t){typeof define=="function"&&!1&&define.amd&&define.amd.jQuery?define(["jquery"],t):typeof module!="undefined"&&!1&&module.exports?t(require("jquery")):t(n)})(function(n){var u="left",f="right",e="up",o="down",y="in",p="out",w="none",tt="auto",b="swipe",k="pinch",d="tap",it="doubletap",rt="longtap",g="horizontal",nt="vertical",a="all",ft=10,ut="start",s="move",t="end",r="cancel",l="ontouchstart"in i,v=i.navigator.msPointerEnabled&&!i.navigator.pointerEnabled&&!l,h=(i.navigator.pointerEnabled||i.navigator.msPointerEnabled)&&!l,c="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(c);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(this,arguments);else if(!i&&(typeof t=="object"||!t))return et.apply(this,arguments);return r};n.fn.swipe.version="1.6.15";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:ut,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:r};n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:y,OUT:p};n.fn.swipe.pageScroll={NONE:w,HORIZONTAL:g,VERTICAL:nt,AUTO:tt};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:a};function et(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=w),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(c);i||(i=new ot(this,t),r.data(c,i))})}function ot(i,et){var et=n.extend({},et),si=l||h||!et.fallbackToMouseEvents,hi=si?h?v?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ki=si?h?v?"MSPointerMove":"pointermove":"touchmove":"mousemove",di=si?h?v?"MSPointerUp":"pointerup":"touchend":"mouseup",ri=si?h?"mouseleave":null:"mouseleave",ci=h?v?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,gt=0,ni=0,pt=1,bt=0,kt=0,li=null,ot=n(i),st="start",ct=0,ht={},gi=0,ai=0,vi=0,nr=0,ti=0,fi=null,ei=null;try{ot.bind(hi,tr);ot.bind(ci,ui)}catch(ff){n.error("events not supported "+hi+","+ci+" on jQuery.swipe")}this.enable=function(){return ot.bind(hi,tr),ot.bind(ci,ui),ot};this.disable=function(){return lr(),ot};this.destroy=function(){lr();ot.data(c,null);ot=null};this.option=function(t,i){if(typeof t=="object")et=n.extend(et,t);else if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return et;return null};function tr(t){if(!pu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var i=t.originalEvent?t.originalEvent:t,f,u=i.touches,e=u?u[0]:i;return(st=ut,u?ct=u.length:et.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,gt=0,ni=0,pt=1,bt=0,li=ku(),dr(),wi(0,e),!u||ct===et.fingers||et.fingers===a||oi()?(gi=ii(),ct==2&&(wi(1,u[1]),gt=ni=cr(ht[0].start,ht[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=wt(i,st))):f=!1,f===!1)?(st=r,wt(i,st),f):(et.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[i.target]);et.hold&&(f=et.hold.call(ot,i,i.target))},this),et.longTapThreshold)),pi(!0),null)}}function ir(n){var f=n.originalEvent?n.originalEvent:n;if(st!==t&&st!==r&&!yi()){var o,i=f.touches,h=i?i[0]:f,u=gr(h);if(ai=ii(),i&&(ct=i.length),et.hold&&clearTimeout(ei),st=s,ct==2&&(gt==0?(wi(1,i[1]),gt=ni=cr(ht[0].start,ht[1].start)):(gr(i[1]),ni=cr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),pt=du(gt,ni),bt=Math.abs(gt-ni)),ct===et.fingers||et.fingers===a||!i||oi()){if(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),o=wt(f,st),!et.triggerOnTouchEnd||et.triggerOnTouchLeave){var e=!0;if(et.triggerOnTouchLeave){var c=rf(this);e=uf(u.end,c)}!et.triggerOnTouchEnd&&e?st=fr(s):et.triggerOnTouchLeave&&!e&&(st=fr(t));(st==r||st==t)&&wt(f,st)}}else st=r,wt(f,st);o===!1&&(st=r,wt(f,st))}}function rr(n){var i=n.originalEvent?n.originalEvent:n,u=i.touches;if(u){if(u.length&&!yi())return yu(i),!0;if(u.length&&yi())return!0}return yi()&&(ct=nr),ai=ii(),lt=tu(),or()||!er()?(st=r,wt(i,st)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&st===s?(et.preventDefaultEvents!==!1&&n.preventDefault(),st=t,wt(i,st)):!et.triggerOnTouchEnd&&br()?(st=t,dt(i,st,d)):st===s&&(st=r,wt(i,st)),pi(!1),null}function ui(){ct=0;ai=0;gi=0;gt=0;ni=0;pt=1;dr();pi(!1)}function ur(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(st=fr(t),wt(i,st))}function lr(){ot.unbind(hi,tr);ot.unbind(ci,ui);ot.unbind(ki,ir);ot.unbind(di,rr);ri&&ot.unbind(ri,ur);pi(!1)}function fr(n){var i=n,f=ar(),u=er(),e=or();return!f||e?i=r:u&&n==s&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?i=t:!u&&n==t&&et.triggerOnTouchLeave&&(i=r),i}function wt(n,i){var u,f=n.touches;return(eu()||sr())&&(u=dt(n,i,b)),(fu()||oi())&&u!==!1&&(u=dt(n,i,k)),au()&&u!==!1?u=dt(n,i,it):vu()&&u!==!1?u=dt(n,i,rt):lu()&&u!==!1&&(u=dt(n,i,d)),i===r&&(sr()&&(u=dt(n,i,b)),oi()&&(u=dt(n,i,k)),ui(n)),i===t&&(f?f.length||ui(n):ui(n)),u}function dt(i,s,h){var c;if(h==b){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),et.swipeStatus&&(c=et.swipeStatus.call(ot,i,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&yr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),et.swipe&&(c=et.swipe.call(ot,i,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case u:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);et.swipeLeft&&(c=et.swipeLeft.call(ot,i,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);et.swipeRight&&(c=et.swipeRight.call(ot,i,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);et.swipeUp&&(c=et.swipeUp.call(ot,i,vt,at,lt,ct,ht,yt));break;case o:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);et.swipeDown&&(c=et.swipeDown.call(ot,i,vt,at,lt,ct,ht,yt))}}}if(h==k){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,pt,ht]),et.pinchStatus&&(c=et.pinchStatus.call(ot,i,s,kt||null,bt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&vr())switch(kt){case y:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchIn&&(c=et.pinchIn.call(ot,i,kt||null,bt||0,lt||0,ct,pt,ht));break;case p:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchOut&&(c=et.pinchOut.call(ot,i,kt||null,bt||0,lt||0,ct,pt,ht))}}return h==d?(s===r||s===t)&&(clearTimeout(fi),clearTimeout(ei),hr()&&!su()?(ti=ii(),fi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[i.target]);et.tap&&(c=et.tap.call(ot,i,i.target))},this),et.doubleTapThreshold)):(ti=null,ot.trigger("tap",[i.target]),et.tap&&(c=et.tap.call(ot,i,i.target)))):h==it?(s===r||s===t)&&(clearTimeout(fi),clearTimeout(ei),ti=null,ot.trigger("doubletap",[i.target]),et.doubleTap&&(c=et.doubleTap.call(ot,i,i.target))):h==rt&&(s===r||s===t)&&(clearTimeout(fi),ti=null,ot.trigger("longtap",[i.target]),et.longTap&&(c=et.longTap.call(ot,i,i.target))),c}function er(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function or(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=nu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?bt>=et.pinchThreshold:!0}function ar(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===w)n.preventDefault();else{var i=et.allowPageScroll===tt;switch(t){case u:(et.swipeLeft&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case f:(et.swipeRight&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case e:(et.swipeUp&&i||!i&&et.allowPageScroll!=nt)&&n.preventDefault();break;case o:(et.swipeDown&&i||!i&&et.allowPageScroll!=nt)&&n.preventDefault()}}}function vr(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function oi(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function fu(){return!!(vr()&&oi())}function yr(){var n=ar(),t=er(),i=pr(),r=wr(),u=or();return!u&&r&&i&&t&&n}function sr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function eu(){return!!(yr()&&sr())}function pr(){return ct===et.fingers||et.fingers===a||!l}function wr(){return ht[0].end.x!==0}function br(){return!!et.tap}function hr(){return!!et.doubleTap}function ou(){return!!et.longTap}function kr(){if(ti==null)return!1;var n=ii();return hr()&&n-ti<=et.doubleTapThreshold}function su(){return kr()}function hu(){return(ct===1||!l)&&(isNaN(at)||at<et.threshold)}function cu(){return lt>et.longTapThreshold&&at<ft}function lu(){return!!(hu()&&br())}function au(){return!!(kr()&&hr())}function vu(){return!!(cu()&&ou())}function yu(n){vi=ii();nr=n.touches.length+1}function dr(){vi=0;nr=0}function yi(){var n=!1;if(vi){var t=ii()-vi;t<=et.fingerReleaseThreshold&&(n=!0)}return n}function pu(){return!!(ot.data(c+"_intouch")===!0)}function pi(n){ot&&(n===!0?(ot.bind(ki,ir),ot.bind(di,rr),ri&&ot.bind(ri,ur)):(ot.unbind(ki,ir,!1),ot.unbind(di,rr,!1),ri&&ot.unbind(ri,ur,!1)),ot.data(c+"_intouch",n===!0))}function wi(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=n.identifier!==undefined?n.identifier:0,t=wu(i);return t===null&&(t=wi(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){t=Math.max(t,nu(n));li[n].distance=t}function nu(n){return li[n]?li[n].distance:undefined}function ku(){var n={};return n[u]=bi(u),n[f]=bi(f),n[e]=bi(e),n[o]=bi(o),n}function bi(n){return{direction:n,distance:0}}function tu(){return ai-gi}function cr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return pt<1?p:y}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function iu(n,t){var i=tf(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function ii(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}}})}(asljQuery,asljQuery,window),function(n){n.extend({highlight:function(t,i,r,u){if(t.nodeType===3){var f=t.data.match(i);if(f){var s=document.createElement(r||"span");if(s.className=u||"highlight",/\.|,|\s/.test(f[0].charAt(0)))var h=f.index+1;else var h=f.index;var e=t.splitText(h);e.splitText(f[1].length);var c=e.cloneNode(!0);return s.appendChild(c),e.parentNode.replaceChild(s,e),1}}else if(t.nodeType===1&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&!(t.tagName===r.toUpperCase()&&t.className===u))for(var o=0;o<t.childNodes.length;o++)o+=n.highlight(t.childNodes[o],i,r,u);return 0}});n.fn.unhighlight=function(t){var i={className:"highlight",element:"span"};return n.extend(i,t),this.find(i.element+"."+i.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()};n.fn.highlight=function(t,i){var r={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(n.extend(r,i),t.constructor===String&&(t=[t]),t=n.grep(t,function(n){return n!=""}),t=n.map(t,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),t.length==0)return this;var f=r.caseSensitive?"":"i",u="("+t.join("|")+")";r.wordsOnly&&(u="(?:,|^|\\s)"+u+"(?:,|$|\\s)");var e=new RegExp(u,f);return this.each(function(){n.highlight(this,e,r.element,r.className)})}}(asljQuery,asljQuery,window),function(n,t,i){!function(t){"function"==typeof define&&!1&&define.amd?define(["jquery"],t):"object"==typeof exports&&!1?module.exports=t:t(n)}(function(n){function f(r){var f=r||i.event,w=l.call(arguments,1),a=0,h=0,s=0,v=0,b=0,k=0;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(s=-1*f.detail),"wheelDelta"in f&&(s=f.wheelDelta),"wheelDeltaY"in f&&(s=f.wheelDeltaY),"wheelDeltaX"in f&&(h=-1*f.wheelDeltaX),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(h=-1*s,s=0),a=0===s?h:s,"deltaY"in f&&(s=-1*f.deltaY,a=s),"deltaX"in f&&(h=f.deltaX,0===s&&(a=-1*h)),0!==s||0!==h){if(1===f.deltaMode){var y=n.data(this,"mousewheel-line-height");a*=y;s*=y;h*=y}else if(2===f.deltaMode){var p=n.data(this,"mousewheel-page-height");a*=p;s*=p;h*=p}if(v=Math.max(Math.abs(s),Math.abs(h)),(!t||t>v)&&(t=v,o(f,v)&&(t/=40)),o(f,v)&&(a/=40,h/=40,s/=40),a=Math[a>=1?"floor":"ceil"](a/t),h=Math[h>=1?"floor":"ceil"](h/t),s=Math[s>=1?"floor":"ceil"](s/t),u.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();b=r.clientX-d.left;k=r.clientY-d.top}return r.deltaX=h,r.deltaY=s,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,a,h,s),e&&clearTimeout(e),e=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}}function c(){t=null}function o(n,t){return u.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var e,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(n.event.fixHooks)for(var h=s.length;h;)n.event.fixHooks[s[--h]]=n.event.mouseHooks;var u=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],f,!1);else this.onmousewheel=f;n.data(this,"mousewheel-line-height",u.getLineHeight(this));n.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],f,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(t){"function"==typeof define&&!1&&define.amd?define(["jquery"],t):"object"==typeof exports&&!1?module.exports=t:t(n)}(function(n){function f(r){var f=r||i.event,w=l.call(arguments,1),a=0,h=0,s=0,v=0,b=0,k=0;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(s=-1*f.detail),"wheelDelta"in f&&(s=f.wheelDelta),"wheelDeltaY"in f&&(s=f.wheelDeltaY),"wheelDeltaX"in f&&(h=-1*f.wheelDeltaX),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(h=-1*s,s=0),a=0===s?h:s,"deltaY"in f&&(s=-1*f.deltaY,a=s),"deltaX"in f&&(h=f.deltaX,0===s&&(a=-1*h)),0!==s||0!==h){if(1===f.deltaMode){var y=n.data(this,"mousewheel-line-height");a*=y;s*=y;h*=y}else if(2===f.deltaMode){var p=n.data(this,"mousewheel-page-height");a*=p;s*=p;h*=p}if(v=Math.max(Math.abs(s),Math.abs(h)),(!t||t>v)&&(t=v,o(f,v)&&(t/=40)),o(f,v)&&(a/=40,h/=40,s/=40),a=Math[a>=1?"floor":"ceil"](a/t),h=Math[h>=1?"floor":"ceil"](h/t),s=Math[s>=1?"floor":"ceil"](s/t),u.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();b=r.clientX-d.left;k=r.clientY-d.top}return r.deltaX=h,r.deltaY=s,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,a,h,s),e&&clearTimeout(e),e=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}}function c(){t=null}function o(n,t){return u.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var e,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(n.event.fixHooks)for(var h=s.length;h;)n.event.fixHooks[s[--h]]=n.event.mouseHooks;var u=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],f,!1);else this.onmousewheel=f;n.data(this,"mousewheel-line-height",u.getLineHeight(this));n.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],f,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});typeof n.fn.mCustScr=="undefined"?!function(t){"function"==typeof define&&!1&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&!1&&module.exports?module.exports=t:t(n,i,document)}(function(n){!function(t){var i="function"==typeof define&&!1&&define.amd,r="undefined"!=typeof module&&!1&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//"+"cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"+"%3E%3C/script%3E")));t()}(function(){var c,l="mCustScr",t="mCSap",rt=".mCustScr",st={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},wt=0,k={},w=i.attachEvent&&!i.addEventListener?1:0,o=!1,r=["mCSBap_dragger_onDrag","mCSBap_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSBap_draggerContainer","mCSBap_buttonUp","mCSBap_buttonDown","mCSBap_buttonLeft","mCSBap_buttonRight"],h={init:function(i){var i=n.extend(!0,{},st,i),e=y.call(this);if(i.live){var u=i.liveSelector||this.selector||rt,f=n(u);if("off"===i.live)return void d(u);k[u]=setTimeout(function(){f.mCustScr(i);"once"===i.live&&f.length&&d(u)},500)}else d(u);return i.setWidth=i.set_width?i.set_width:i.setWidth,i.setHeight=i.set_height?i.set_height:i.setHeight,i.axis=i.horizontalScroll?"x":bt(i.axis),i.scrollInertia=i.scrollInertia>0&&i.scrollInertia<17?17:i.scrollInertia,"object"!=typeof i.mouseWheel&&1==i.mouseWheel&&(i.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),i.mouseWheel.scrollAmount=i.mouseWheelPixels?i.mouseWheelPixels:i.mouseWheel.scrollAmount,i.mouseWheel.normalizeDelta=i.advanced.normalizeMouseWheelDelta?i.advanced.normalizeMouseWheelDelta:i.mouseWheel.normalizeDelta,i.scrollButtons.scrollType=kt(i.scrollButtons.scrollType),ht(i),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++wt,opt:i,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),s=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);s&&(f.scrollbarPosition=s);c&&(f.theme=c,ht(f));dt.call(this);e&&f.callbacks.onCreate&&"function"==typeof f.callbacks.onCreate&&f.callbacks.onCreate.call(this);n("#mCSBap_"+e.idx+"_container img:not(."+r[2]+")").addClass(r[2]);h.update.call(null,u)}})},update:function(i,u){var e=i||y.call(this);return n(e).each(function(){var o=n(this);if(o.data(t)){var e=o.data(t),i=e.opt,h=n("#mCSBap_"+e.idx+"_container"),a=n("#mCSBap_"+e.idx),c=[n("#mCSBap_"+e.idx+"_dragger_vertical"),n("#mCSBap_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&s(o);u&&e&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this);o.hasClass(r[3])&&o.removeClass(r[3]);o.hasClass(r[4])&&o.removeClass(r[4]);a.css("max-height","none");a.height()!==o.height()&&a.css("max-height",o.height());gt.call(this);"y"===i.axis||i.advanced.autoExpandHorizontalScroll||h.css("width",ct(h));e.overflowed=ri.call(this);lt.call(this);i.autoDraggerLength&&ti.call(this);ii.call(this);ui.call(this);var l=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];"x"!==i.axis&&(e.overflowed[0]?c[0].height()>c[0].parent().height()?p.call(this):(f(o,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(p.call(this),"y"===i.axis?nt.call(this):"yx"===i.axis&&e.overflowed[1]&&f(o,l[1].toString(),{dir:"x",dur:0,overwrite:"none"})));"y"!==i.axis&&(e.overflowed[1]?c[1].width()>c[1].parent().width()?p.call(this):(f(o,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(p.call(this),"x"===i.axis?nt.call(this):"yx"===i.axis&&e.overflowed[0]&&f(o,l[0].toString(),{dir:"y",dur:0,overwrite:"none"})));u&&e&&(2===u&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===u&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this));ot.call(this)}})},scrollTo:function(i,r){if("undefined"!=typeof i&&null!=i){var u=y.call(this);return n(u).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(!0,{},c,r),e=et.call(this,i),l=u.scrollInertia>0&&u.scrollInertia<17?17:u.scrollInertia;e[0]=vt.call(this,e[0],"y");e[1]=vt.call(this,e[1],"x");u.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);u.dur=bi()?0:l;setTimeout(function(){null!==e[0]&&"undefined"!=typeof e[0]&&"x"!==h.axis&&o.overflowed[0]&&(u.dir="y",u.overwrite="all",f(s,e[0].toString(),u));null!==e[1]&&"undefined"!=typeof e[1]&&"y"!==h.axis&&o.overflowed[1]&&(u.dir="x",u.overwrite="none",f(s,e[1].toString(),u))},u.timeout)}})}},stop:function(){var i=y.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&s(i)})},disable:function(i){var u=y.call(this);return n(u).each(function(){var u=n(this);u.data(t)&&(u.data(t),ot.call(this,"remove"),nt.call(this),i&&p.call(this),lt.call(this,!0),u.addClass(r[3]))})},destroy:function(){var i=y.call(this);return n(i).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSBap_"+u.idx),o=n("#mCSBap_"+u.idx+"_container"),h=n(".mCSBap_"+u.idx+"_scrollbar");e.live&&d(e.liveSelector||n(i).selector);ot.call(this,"remove");nt.call(this);p.call(this);f.removeData(t);v(this,"mcs");h.remove();o.find("img."+r[2]).removeClass(r[2]);s.replaceWith(o.contents());f.removeClass(l+" _"+t+"_"+u.idx+" "+r[6]+" "+r[7]+" "+r[5]+" "+r[3]).addClass(r[4])}})}},y=function(){return"object"!=typeof n(this)||n(this).length<1?rt:this},ht=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},d=function(n){k[n]&&(clearTimeout(k[n]),v(k,n))},bt=function(n){return"yx"===n||"xy"===n||"auto"===n?"yx":"x"===n||"horizontal"===n?"x":"y"},kt=function(n){return"stepped"===n||"pixels"===n||"step"===n||"click"===n?"stepped":"stepless"},dt=function(){var f=n(this),u=f.data(t),i=u.opt,h=i.autoExpandScrollbar?" "+r[1]+"_expand":"",e=["<div id='mCSBap_"+u.idx+"_scrollbar_vertical' class='mCSBap_scrollTools mCSBap_"+u.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_vertical"+h+"'><div class='"+r[12]+"'><div id='mCSBap_"+u.idx+"_dragger_vertical' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /><\/div><div class='mCSBap_draggerRail' /><\/div><\/div>","<div id='mCSBap_"+u.idx+"_scrollbar_horizontal' class='mCSBap_scrollTools mCSBap_"+u.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_horizontal"+h+"'><div class='"+r[12]+"'><div id='mCSBap_"+u.idx+"_dragger_horizontal' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /><\/div><div class='mCSBap_draggerRail' /><\/div><\/div>"],v="yx"===i.axis?"mCSBap_vertical_horizontal":"x"===i.axis?"mCSBap_horizontal":"mCSBap_vertical",c="yx"===i.axis?e[0]+e[1]:"x"===i.axis?e[1]:e[0],y="yx"===i.axis?"<div id='mCSBap_"+u.idx+"_container_wrapper' class='mCSBap_container_wrapper' />":"",p=i.autoHideScrollbar?" "+r[6]:"",w="x"!==i.axis&&"rtl"===u.langDir?" "+r[7]:"";i.setWidth&&f.css("width",i.setWidth);i.setHeight&&f.css("height",i.setHeight);i.setLeft="y"!==i.axis&&"rtl"===u.langDir?"989999px":i.setLeft;f.addClass(l+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSBap_"+u.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+v+"'><div id='mCSBap_"+u.idx+"_container' class='mCSBap_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+u.langDir+"' /><\/div>");var a=n("#mCSBap_"+u.idx),s=n("#mCSBap_"+u.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||s.css("width",ct(s));"outside"===i.scrollbarPosition?("static"===f.css("position")&&f.css("position","relative"),f.css("overflow","visible"),a.addClass("mCSBap_outside").after(c)):(a.addClass("mCSBap_inside").append(c),s.wrap(y));ni.call(this);var o=[n("#mCSBap_"+u.idx+"_dragger_vertical"),n("#mCSBap_"+u.idx+"_dragger_horizontal")];o[0].css("min-height",o[0].height());o[1].css("min-width",o[1].width())},ct=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},gt=function(){var e=n(this),u=e.data(t),r=u.opt,i=n("#mCSBap_"+u.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var f=Math.ceil(i[0].scrollWidth);3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&f>i.parent().width()?i.css({width:f,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSBap_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},ni=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSBap_"+o.idx+"_scrollbar:first"),f=it(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",i=["<a href='#' class='"+r[13]+"' "+f+" />","<a href='#' class='"+r[14]+"' "+f+" />","<a href='#' class='"+r[15]+"' "+f+" />","<a href='#' class='"+r[16]+"' "+f+" />"],e=["x"===u.axis?i[2]:i[0],"x"===u.axis?i[3]:i[1],i[2],i[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSBap_scrollTools").prepend(e[2]).append(e[3])},ti=function(){var s=n(this),u=s.data(t),f=n("#mCSBap_"+u.idx),e=n("#mCSBap_"+u.idx+"_container"),r=[n("#mCSBap_"+u.idx+"_dragger_vertical"),n("#mCSBap_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=w&&i[1]<i[0]?i[0]:i[1],c=w&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSBap_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ii=function(){var s=n(this),i=s.data(t),u=n("#mCSBap_"+i.idx),f=n("#mCSBap_"+i.idx+"_container"),r=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},g=function(n,t,i){var f=i?r[0]+"_expanded":"",u=n.closest(".mCSBap_scrollTools");"active"===t?(n.toggleClass(r[0]+" "+f),u.toggleClass(r[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||("hide"===t?(n.removeClass(r[0]),u.removeClass(r[1])):(n.addClass(r[0]),u.addClass(r[1])))},ri=function(){var h=n(this),r=h.data(t),e=n("#mCSBap_"+r.idx),i=n("#mCSBap_"+r.idx+"_container"),u=null==r.overflowed?i.height():i.outerHeight(!1),f=null==r.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},p=function(){var r=n(this),i=r.data(t),u=i.opt,c=n("#mCSBap_"+i.idx),e=n("#mCSBap_"+i.idx+"_container"),h=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")];if(s(r),("x"!==u.axis&&!i.overflowed[0]||"y"===u.axis&&i.overflowed[0])&&(h[0].add(e).css("top",0),f(r,"_resetY")),"y"!==u.axis&&!i.overflowed[1]||"x"===u.axis&&i.overflowed[1]){var o=dx=0;"rtl"===i.langDir&&(o=c.width()-e.outerWidth(!1),dx=Math.abs(o/i.scrollRatio.x));e.css("left",o);h[1].css("left",dx);f(r,"_resetX")}},ui=function(){function u(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),si.call(f[0])):u()},100)}var f=n(this),r=f.data(t),i=r.opt;if(!r.bindEvents){if(fi.call(this),i.contentTouchScroll&&ei.call(this),oi.call(this),i.mouseWheel.enable){var e;u()}ci.call(this);ai.call(this);i.advanced.autoScrollOnFocus&&li.call(this);i.scrollButtons.enable&&vi.call(this);i.keyboard.enable&&yi.call(this);r.bindEvents=!0}},nt=function(){var f=n(this),i=f.data(t),u=i.opt,o=t+"_"+i.idx,s=".mCSBap_"+i.idx+"_scrollbar",e=n("#mCSBap_"+i.idx+",#mCSBap_"+i.idx+"_container,#mCSBap_"+i.idx+"_container_wrapper,"+s+" ."+r[12]+",#mCSBap_"+i.idx+"_dragger_vertical,#mCSBap_"+i.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSBap_"+i.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));i.bindEvents&&(n(document).add(n(!a()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),v(f[0],"_focusTimeout"),clearTimeout(i.sequential.step),v(i.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),v(h[0],"onCompleteTimeout"),i.bindEvents=!1)},lt=function(i){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSBap_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSBap_"+u.idx+"_container"),e=[n("#mCSBap_"+u.idx+"_scrollbar_vertical"),n("#mCSBap_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSBap_dragger"),e[1].find(".mCSBap_dragger")];"x"!==o.axis&&(u.overflowed[0]&&!i?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(r[8]+" "+r[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[0].css("display","none"),f.removeClass(r[10])):(e[0].css("display","none"),f.addClass(r[10])),f.addClass(r[8])));"y"!==o.axis&&(u.overflowed[1]&&!i?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(r[9]+" "+r[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[1].css("display","none"),f.removeClass(r[11])):(e[1].css("display","none"),f.addClass(r[11])),f.addClass(r[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(r[5]):h.addClass(r[5])},u=function(t){var e=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[n(frameElement).offset().top,n(frameElement).offset().left]:null,r=a()&&t.target.ownerDocument!==top.document&&null!==frameElement?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0];switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+r[0],t.originalEvent.pageX-i[1]+r[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var u=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[u.screenY,u.screenX,f>1]:[u.pageY,u.pageX,f>1];default:return i?[t.pageY-i[0]+r[0],t.pageX-i[1]+r[1],!1]:[t.pageY,t.pageX,!1]}},fi=function(){function k(n,t,r,u){if(p[0].idleTimer=h.scrollInertia<233?250:0,i.attr("id")===y[1])var o="x",s=(i[0].offsetLeft-t+u)*e.scrollRatio.x;else var o="y",s=(i[0].offsetTop-n+r)*e.scrollRatio.y;f(v,s.toString(),{dir:o,drag:!0})}var i,c,l,v=n(this),e=v.data(t),h=e.opt,r=t+"_"+e.idx,y=["mCSBap_"+e.idx+"_dragger_vertical","mCSBap_"+e.idx+"_dragger_horizontal"],p=n("#mCSBap_"+e.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),d=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!a()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!a()||top.document);b.bind("contextmenu."+r,function(n){n.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),pt(t)){o=!0;w&&(document.onselectstart=function(){return!1});at.call(p,!1);s(v);i=n(this);var r=i.offset(),f=u(t)[0]-r.top,e=u(t)[1]-r.left,a=i.height()+r.top,y=i.width()+r.left;a>f&&f>0&&y>e&&e>0&&(c=f,l=e);g(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+r,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),r=u(n)[0]-t.top,f=u(n)[1]-t.left;k(c,l,r,f)});n(document).add(nt).bind("mousemove."+r+" pointermove."+r+" MSPointerMove."+r,function(n){if(i){var t=i.offset(),r=u(n)[0]-t.top,f=u(n)[1]-t.left;if(c===r&&l===f)return;k(c,l,r,f)}}).add(d).bind("mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){i&&(g(i,"active",h.autoExpandScrollbar),i=null);o=!1;w&&(document.onselectstart=null);at.call(p,!0)})},ei=function(){function at(n){if(!tt(n)||o||u(n)[2])return void(c=0);c=1;it=0;rt=0;st=1;g.removeClass("mCS_touch_action");var t=w.offset();k=u(n)[0]-t.top;d=u(n)[1]-t.left;v=[u(n)[0],u(n)[1]]}function vt(n){if(tt(n)&&!o&&!u(n)[2]&&(r.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),(!rt||it)&&st)){gt=b();var s=ut.offset(),t=u(n)[0]-s.top,f=u(n)[1]-s.left,h="mcsLinearOut";if(et.push(t),ot.push(f),v[2]=Math.abs(u(n)[0]-v[0]),v[3]=Math.abs(u(n)[1]-v[1]),i.overflowed[0])var c=ft[0].parent().height()-ft[0].height(),l=k-t>0&&t-k>-(c*i.scrollRatio.y)&&(2*v[3]<v[2]||"yx"===r.axis);if(i.overflowed[1])var a=ft[1].parent().width()-ft[1].width(),y=d-f>0&&f-d>-(a*i.scrollRatio.x)&&(2*v[2]<v[3]||"yx"===r.axis);l||y?(ii||n.preventDefault(),it=1):(rt=1,g.addClass("mCS_touch_action"));ii&&n.preventDefault();e="yx"===r.axis?[k-t,d-f]:"x"===r.axis?[null,d-f]:[k-t,null];w[0].idleTimer=250;i.overflowed[0]&&nt(e[0],ni,h,"y","all",!0);i.overflowed[1]&&nt(e[1],ni,h,"x",lt,!0)}}function yt(n){if(!tt(n)||o||u(n)[2])return void(c=0);c=1;n.stopImmediatePropagation();s(g);dt=b();var t=ut.offset();bt=u(n)[0]-t.top;kt=u(n)[1]-t.left;et=[];ot=[]}function pt(n){if(tt(n)&&!o&&!u(n)[2]){st=0;n.stopImmediatePropagation();it=0;rt=0;ht=b();var c=ut.offset(),l=u(n)[0]-c.top,a=u(n)[1]-c.left;if(!(ht-gt>30)){h=1e3/(ht-dt);var v="mcsEaseOut",s=2.5>h,p=s?[et[et.length-2],ot[ot.length-2]]:[0,0];y=s?[l-p[0],a-p[1]]:[l-bt,a-kt];var t=[Math.abs(y[0]),Math.abs(y[1])];h=s?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[h,h];var f=[Math.abs(w[0].offsetTop)-y[0]*wt(t[0]/h[0],h[0]),Math.abs(w[0].offsetLeft)-y[1]*wt(t[1]/h[1],h[1])];e="yx"===r.axis?[f[0],f[1]]:"x"===r.axis?[null,f[1]]:[f[0],null];ct=[4*t[0]+r.scrollInertia,4*t[1]+r.scrollInertia];var k=parseInt(r.contentTouchScroll)||0;e[0]=t[0]>k?e[0]:0;e[1]=t[1]>k?e[1]:0;i.overflowed[0]&&nt(e[0],ct[0],v,"y",lt,!1);i.overflowed[1]&&nt(e[1],ct[1],v,"x",lt,!1)}}}function wt(n,t){var i=[1.5*t,2*t,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function nt(n,t,i,r,u,e){n&&f(g,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:u,drag:e})}var st,k,d,bt,kt,dt,gt,ht,y,h,e,ct,it,rt,g=n(this),i=g.data(t),r=i.opt,l=t+"_"+i.idx,ut=n("#mCSBap_"+i.idx),w=n("#mCSBap_"+i.idx+"_container"),ft=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")],et=[],ot=[],ni=0,lt="yx"===r.axis?"none":"all",v=[],ti=w.find("iframe"),p=["touchstart."+l+" pointerdown."+l+" MSPointerDown."+l,"touchmove."+l+" pointermove."+l+" MSPointerMove."+l,"touchend."+l+" pointerup."+l+" MSPointerUp."+l],ii=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;w.bind(p[0],function(n){at(n)}).bind(p[1],function(n){vt(n)});ut.bind(p[0],function(n){yt(n)}).bind(p[2],function(n){pt(n)});ti.length&&ti.each(function(){n(this).bind("load",function(){a(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){at(n);yt(n)}).bind(p[1],function(n){vt(n)}).bind(p[2],function(n){pt(n)})})})},oi=function(){function p(){return i.getSelection?i.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function r(n,t,i){a.type=i&&f?"stepped":"stepless";a.scrollAmount=10;ft(v,n,t,"mcsLinearOut",i?60:null)}var f,v=n(this),e=v.data(t),y=e.opt,a=e.sequential,h=t+"_"+e.idx,s=n("#mCSBap_"+e.idx+"_container"),l=s.parent();s.bind("mousedown."+h,function(){c||f||(f=1,o=!0)}).add(document).bind("mousemove."+h,function(n){if(!c&&f&&p()){var o=s.offset(),t=u(n)[0]-o.top+s[0].offsetTop,i=u(n)[1]-o.left+s[0].offsetLeft;t>0&&t<l.height()&&i>0&&i<l.width()?a.step&&r("off",null,"stepped"):("x"!==y.axis&&e.overflowed[0]&&(0>t?r("on",38):t>l.height()&&r("on",40)),"y"!==y.axis&&e.overflowed[1]&&(0>i?r("on",37):i>l.width()&&r("on",39)))}}).bind("mouseup."+h+" dragend."+h,function(){c||(f&&(f=0,r("off",null)),o=!1)})},si=function(){function h(t,h){if(s(o),!hi(o,t.target)){var v="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):w&&t.deltaFactor<100?100:t.deltaFactor||100,y=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var a="x",l=[Math.round(v*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.width()?.9*e.width():l[0],k=Math.abs(n("#mCSBap_"+r.idx+"_container")[0].offsetLeft),b=u[1][0].offsetLeft,d=u[1].parent().width()-u[1].width(),c="y"===i.mouseWheel.axis?t.deltaY||h:t.deltaX;else var a="y",l=[Math.round(v*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],p="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.height()?.9*e.height():l[0],k=Math.abs(n("#mCSBap_"+r.idx+"_container")[0].offsetTop),b=u[0][0].offsetTop,d=u[0].parent().height()-u[0].height(),c=t.deltaY||h;("y"!==a||r.overflowed[0])&&("x"!==a||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=0>c?-1:1),(c>0&&0!==b||0>c&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(p=t.deltaFactor,y=17),f(o,(k-c*p).toString(),{dir:a,dur:y}))}}if(n(this).data(t)){var o=n(this),r=o.data(t),i=r.opt,c=t+"_"+r.idx,e=n("#mCSBap_"+r.idx),u=[n("#mCSBap_"+r.idx+"_dragger_vertical"),n("#mCSBap_"+r.idx+"_dragger_horizontal")],l=n("#mCSBap_"+r.idx+"_container").find("iframe");l.length&&l.each(function(){n(this).bind("load",function(){a(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+c,function(n,t){h(n,t)})})});e.bind("mousewheel."+c,function(n,t){h(n,t)})}},ut={},a=function(t){var r=!1,i=!1,u=null;if(void 0===t?i="#empty":void 0!==n(t).attr("id")&&(i=n(t).attr("id")),i!==!1&&void 0!==ut[i])return ut[i];if(t){try{var f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=null!==u}else{try{var f=top.document;u=f.body.innerHTML}catch(e){}r=null!==u}return i!==!1&&(ut[i]=r),r},at=function(n){var t=this.find("iframe");if(t.length){var i=n?"auto":"none";t.css("pointer-events",i)}},hi=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},ci=function(){var e,h=n(this),u=h.data(t),i=t+"_"+u.idx,c=n("#mCSBap_"+u.idx+"_container"),l=c.parent(),a=n(".mCSBap_"+u.idx+"_scrollbar ."+r[12]);a.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(t){o=!0;n(t.target).hasClass("mCSBap_dragger")||(e=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){o=!1}).bind("click."+i,function(t){if(e&&(e=0,n(t.target).hasClass(r[12])||n(t.target).hasClass("mCSBap_draggerRail"))){s(h);var i=n(this),o=i.find(".mCSBap_dragger");if(i.parent(".mCSBap_scrollTools_horizontal").length>0){if(!u.overflowed[1])return;var v="x",a=t.pageX>o.offset().left?-1:1,y=Math.abs(c[0].offsetLeft)-a*.9*l.width()}else{if(!u.overflowed[0])return;var v="y",a=t.pageY>o.offset().top?-1:1,y=Math.abs(c[0].offsetTop)-a*.9*l.height()}f(h,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},li=function(){var i=n(this),o=i.data(t),u=o.opt,c=t+"_"+o.idx,r=n("#mCSBap_"+o.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,o=0;t.is(u.advanced.autoScrollOnFocus)&&(s(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(o+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[e(t)[0],e(t)[1]],s=[r[0].offsetTop,r[0].offsetLeft],c=[s[0]+n[0]>=0&&s[0]+n[0]<h.height()-t.outerHeight(!1),s[1]+n[1]>=0&&s[0]+n[1]<h.width()-t.outerWidth(!1)],l="yx"!==u.axis||c[0]||c[1]?"all":"none";"x"===u.axis||c[0]||f(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:o});"y"===u.axis||c[1]||f(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:o})},i[0]._focusTimer))})},ai=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSBap_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){0===r.scrollTop()&&0===r.scrollLeft()||n(".mCSBap_"+i.idx+"_scrollbar").css("visibility","hidden")})},vi=function(){var f=n(this),r=f.data(t),e=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSBap_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function i(n,t){u.scrollAmount=e.scrollButtons.scrollAmount;ft(f,n,t)}if(t.preventDefault(),pt(t)){var s=n(this).attr("class");switch(u.type=e.scrollButtons.scrollType,t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===u.type)return;o=!0;r.tweenRunning=!1;i("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===u.type)return;o=!1;u.dir&&i("off",s);break;case"click":if("stepped"!==u.type||r.tweenRunning)return;i("on",s)}}})},yi=function(){function l(t){function l(n,t){o.type=r.keyboard.scrollType;o.scrollAmount=r.keyboard.scrollAmount;"stepped"===o.type&&i.tweenRunning||ft(e,n,t)}switch(t.type){case"blur":i.tweenRunning&&o.dir&&l("off",null);break;case"keydown":case"keyup":var c=t.keyCode?t.keyCode:t.which,a="on";if("x"!==r.axis&&(38===c||40===c)||"y"!==r.axis&&(37===c||39===c)){if((38===c||40===c)&&!i.overflowed[0]||(37===c||39===c)&&!i.overflowed[1])return;"keyup"===t.type&&(a="off");n(document.activeElement).is(v)||(t.preventDefault(),t.stopImmediatePropagation(),l(a,c))}else if(33===c||34===c){if((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){s(e);var y=34===c?-1:1;if("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0])var p="x",w=Math.abs(u[0].offsetLeft)-y*.9*h.width();else var p="y",w=Math.abs(u[0].offsetTop)-y*.9*h.height();f(e,w.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===c||36===c)&&!n(document.activeElement).is(v)&&((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0])var p="x",w=35===c?Math.abs(h.width()-u.outerWidth(!1)):0;else var p="y",w=35===c?Math.abs(h.height()-u.outerHeight(!1)):0;f(e,w.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var e=n(this),i=e.data(t),r=i.opt,o=i.sequential,c=t+"_"+i.idx,w=n("#mCSBap_"+i.idx),u=n("#mCSBap_"+i.idx+"_container"),h=u.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']",y=u.find("iframe"),p=["blur."+c+" keydown."+c+" keyup."+c];y.length&&y.each(function(){n(this).bind("load",function(){a(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){l(n)})})});w.attr("tabindex","0").bind(p[0],function(n){l(n)})},ft=function(i,u,e,o,h){function y(n){l.snapAmount&&(c.scrollAmount=l.snapAmount instanceof Array?"x"===c.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var r="stepped"!==c.type,u=h?h:n?r?k/1.5:d:1e3/60,e=n?r?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],s=[a.scrollRatio.y>10?10:a.scrollRatio.y,a.scrollRatio.x>10?10:a.scrollRatio.x],w="x"===c.dir[0]?t[1]+c.dir[1]*s[1]*e:t[0]+c.dir[1]*s[0]*e,b="x"===c.dir[0]?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),v="auto"!==c.scrollAmount?b:w,g=o?o:n?r?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=!!n;return n&&17>u&&(v="x"===c.dir[0]?t[1]:t[0]),f(i,v.toString(),{dir:c.dir[0],scrollEasing:g,dur:u,onComplete:nt}),n?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){y()},u)))}function b(){clearTimeout(c.step);v(c,"step");s(i)}var a=i.data(t),l=a.opt,c=a.sequential,p=n("#mCSBap_"+a.idx+"_container"),w="stepped"===c.type,k=l.scrollInertia<26?26:l.scrollInertia,d=l.scrollInertia<1?17:l.scrollInertia;switch(u){case"on":if(c.dir=[e===r[16]||e===r[15]||39===e||37===e?"x":"y",e===r[13]||e===r[15]||38===e||37===e?-1:1],s(i),it(e)&&"stepped"===c.type)return;y(w);break;case"off":b();(w||a.tweenRunning&&c.dir)&&y(!0)}},et=function(i){var u=n(this).data(t).opt,r=[];return"function"==typeof i&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:"x"===u.axis?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||"x"===u.axis?null:i,r[1]=i.x?i.x:i.y||"y"===u.axis?null:i),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},vt=function(i,r){if(null!=i&&"undefined"!=typeof i){var s=n(this),c=s.data(t),v=c.opt,u=n("#mCSBap_"+c.idx+"_container"),o=u.parent(),y=typeof i;r||(r="x"===v.axis?"x":"y");var p="x"===r?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),l="x"===r?u[0].offsetLeft:u[0].offsetTop,w="x"===r?"left":"top";switch(y){case"function":return i();case"object":var f=i.jquery?i:n(i);return f.length?"x"===r?e(f)[1]:e(f)[0]:void 0;case"string":case"number":if(it(i))return Math.abs(i);if(-1!==i.indexOf("%"))return Math.abs(p*parseInt(i)/100);if(-1!==i.indexOf("-="))return Math.abs(l-parseInt(i.split("-=")[1]));if(-1!==i.indexOf("+=")){var a=l+parseInt(i.split("+=")[1]);return a>=0?0:Math.abs(a)}if(-1!==i.indexOf("px")&&it(i.split("px")[0]))return Math.abs(i.split("px")[0]);if("top"===i||"left"===i)return 0;if("bottom"===i)return Math.abs(o.height()-u.outerHeight(!1));if("right"===i)return Math.abs(o.width()-u.outerWidth(!1));if("first"===i||"last"===i){var f=u.find(":"+i);return"x"===r?e(f)[1]:e(f)[0]}return n(i).length?"x"===r?e(n(i))[1]:e(n(i))[0]:(u.css(w,i),void h.update.call(null,s[0]))}}},ot=function(i){function c(){return clearTimeout(e[0].autoUpdate),0===o.parents("html").length?void(o=null):void(e[0].autoUpdate=setTimeout(function(){return f.advanced.updateOnSelectorChange&&(u.poll.change.n=a(),u.poll.change.n!==u.poll.change.o)?(u.poll.change.o=u.poll.change.n,void s(3)):f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)?(u.poll.size.o=u.poll.size.n,void s(1)):!f.advanced.updateOnImageLoad||"auto"===f.advanced.updateOnImageLoad&&"y"===f.axis||(u.poll.img.n=e.find("img").length,u.poll.img.n===u.poll.img.o)?void((f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()):(u.poll.img.o=u.poll.img.n,void e.find("img").each(function(){l(this)}))},f.advanced.autoUpdateTimeout))}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(r[2]);s(2)}if(n(t).hasClass(r[2]))return void s();var i=new Image;i.onload=u(i,f);i.src=t.src}function a(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function s(n){clearTimeout(e[0].autoUpdate);h.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSBap_"+u.idx+"_container");return i?(clearTimeout(e[0].autoUpdate),void v(e[0],"autoUpdate")):void c()},pi=function(n,t,i){return Math.round(n/t)*t-i},s=function(i){var r=i.data(t),u=n("#mCSBap_"+r.idx+"_container,#mCSBap_"+r.idx+"_container_wrapper,#mCSBap_"+r.idx+"_dragger_vertical,#mCSBap_"+r.idx+"_dragger_horizontal");u.each(function(){wi.call(this)})},f=function(i,r,u){function h(n){return f&&e.callbacks[n]&&"function"==typeof e.callbacks[n]}function it(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||-y>=w]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,rt={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(rt,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSBap_"+f.idx),o=n("#mCSBap_"+f.idx+"_container"),b=o.parent(),d=e.callbacks.onTotalScrollOffset?et.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?et.call(i,e.callbacks.onTotalScrollBackOffset):[0,0];if(f.trigger=u.trigger,0===b.scrollTop()&&0===b.scrollLeft()||(n(".mCSBap_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),"_resetY"!==r||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),"_resetX"!==r||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),"_resetY"!==r&&"_resetX"!==r){if(!f.contentReset.y&&i[0].mcs||!f.overflowed[0]||(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null),!f.contentReset.x&&i[0].mcs||!f.overflowed[1]||(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null),e.snapAmount){var ut=e.snapAmount instanceof Array?"x"===u.dir?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount;r=pi(r,ut,e.snapOffset)}switch(u.dir){case"x":var c=n("#mCSBap_"+f.idx+"_dragger_horizontal"),tt="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,0===r?0:r/f.scrollRatio.x],v=d[1],y=nt[1],ft=v>0?v/f.scrollRatio.x:0,ot=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSBap_"+f.idx+"_dragger_vertical"),tt="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,0===r?0:r/f.scrollRatio.y],v=d[0],y=nt[0],ft=v>0?v/f.scrollRatio.y:0,ot=y>0?y/f.scrollRatio.y:0}s[1]<0||0===s[0]&&0===s[1]?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0];i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0]));clearTimeout(o[0].onCompleteTimeout);yt(c[0],tt,Math.round(s[1]),k[1],u.scrollEasing);!f.tweenRunning&&(0===w&&s[0]>=0||w===l[0]&&s[0]<=l[0])||yt(o[0],tt,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,g(c),f.cbOffsets=it())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){"yx"===e.axis&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-ft&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=ot&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;g(c,"hide")},n)}}})}},yt=function(n,t,r,u,f,e,o){function v(){s.stop||(h||g.call(),h=b()-it,y(),h>=s.time&&(s.time=h>s.time?h+c-(h-s.time):h+c-1,s.time<h+1&&(s.time=h+1)),s.time<u?s.id=l(v):tt.call())}function y(){u>0?(s.currVal=d(s.time,a,rt,u,f),p[t]=Math.round(s.currVal)+"px"):p[t]=r+"px";nt.call()}function w(){c=1e3/60;s.time=h+c;l=i.requestAnimationFrame?i.requestAnimationFrame:function(n){return y(),setTimeout(n,.01)};s.id=l(v)}function k(){null!=s.id&&(i.requestAnimationFrame?i.cancelAnimationFrame(s.id):clearTimeout(s.id),s.id=null)}function d(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return n/=r/2,1>n?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return n/=r/2,1>n?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return n/=r/2,1>n?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}n._mTween||(n._mTween={top:{},left:{}});var c,l,o=o||{},g=o.onStart||function(){},nt=o.onUpdate||function(){},tt=o.onComplete||function(){},it=b(),h=0,a=n.offsetTop,p=n.style,s=n._mTween[t];"left"===t&&(a=n.offsetLeft);var rt=r-a;s.stop=0;"none"!==e&&k();w()},b=function(){return i.performance&&i.performance.now?i.performance.now():i.performance&&i.performance.webkitNow?i.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},wi=function(){var n=this;n._mTween||(n._mTween={top:{},left:{}});for(var u=["top","left"],r=0;r<u.length;r++){var t=u[r];n._mTween[t].id&&(i.requestAnimationFrame?i.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)}},v=function(n,t){try{delete n[t]}catch(i){n[t]=null}},pt=function(n){return!(n.which&&1!==n.which)},tt=function(n){var t=n.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},it=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},e=function(n){var t=n.parents(".mCSBap_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},bi=function(){function t(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[l]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):h.init.apply(this,arguments)};n[l]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):h.init.apply(this,arguments)};n[l].defaults=st;i[l]=!0;n(i).bind("load",function(){n(rt)[l]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var f,r,i=n(t),u=i.parents(".mCSBap_container");if(u.length)return f=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+e(i)[0]>=0&&r[0]+e(i)[0]<f.height()-i.outerHeight(!1)&&r[1]+e(i)[1]>=0&&r[1]+e(i)[1]<f.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var f,u,o,s,h=n(t),c=h.parents(".mCSBap_container"),l="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return f=[h.outerHeight(!1),h.outerWidth(!1)],o=[c[0].offsetTop+e(h)[0],c[0].offsetLeft+e(h)[1]],u=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s=[f[0]<u[0]?l[0]:l[1],f[1]<u[1]?l[0]:l[1]],o[0]-u[0]*s[0][0]<0&&o[0]+f[0]-u[0]*s[0][1]>=0&&o[1]-u[1]*s[1][0]<0&&o[1]+f[1]-u[1]*s[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}):console.log("ASP: scrollbar detected, skipping loading")}(asljQuery,asljQuery,window),function(n,t,i){
3
  /*! Ajax Search Lite 4.6 js */
4
- (function(t){var r,a=!0,c={init:function(n,i){var r=this;this.elem=i;this.$elem=t(i);r.searching=!1;r.o=t.extend({blocking:!1},n);r.n={};r.n.container=t(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=t(".probox",r.n.container);r.n.proinput=t(".proinput",r.n.container);r.n.text=t(".proinput input.orig",r.n.container);r.n.textAutocomplete=t(".proinput input.autocomplete",r.n.container);r.n.loading=t(".proinput .loading",r.n.container);r.n.proloading=t(".proloading",r.n.container);r.n.proclose=t(".proclose",r.n.container);r.n.promagnifier=t(".promagnifier",r.n.container);r.n.prosettings=t(".prosettings",r.n.container);r.n.searchsettings=t("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=t("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=t("#asl_hidden_data");r.n.aslItemOverlay=t(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=t(".showmore",r.n.resultsDiv);r.n.items=t(".item",r.n.resultsDiv);r.n.results=t(".results",r.n.resultsDiv);r.n.resdrg=t(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.firstClick=!0;r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof t.fn.mCustScr!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=t("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var n=t(this).parent();!n.hasClass("isotopic");)n=n.parent();var i=t(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),t("fieldset",r.n.searchsettings).each(function(){t(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),r.createVerticalScroll(),y()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var n=this;a&&r==null&&(r=localStorage.getItem("asl-"+f.encode(location.href)),r!=null&&(r=JSON.parse(r),r.settings=f.decode(r.settings)));r!=null&&typeof r.id!="undefined"&&r.id==n.o.id&&(r.phrase!=""&&(n.triggerPrevState=!0,n.n.text.val(r.phrase)),h(t("form",n.n.searchsettings))!=r.settings&&(n.triggerPrevState=!0,h(t("form",n.n.searchsettings),r.settings)));localStorage.removeItem("asl-"+f.encode(location.href));n.n.resultsDiv.on("click",".results .item",function(){var i=n.n.text.val();if(i!=""||n.settingsChanged){var r={id:n.o.id,phrase:i,settings:f.encode(h(t("form",n.n.searchsettings)))};localStorage.setItem("asl-"+f.encode(location.href),JSON.stringify(r))}})},duplicateCheck:function(){var i=this,n={};t("div[id*=ajaxsearchlite]").each(function(){n.hasOwnProperty(this.id)?t(this).remove():n[this.id]="true"})},analytics:function(n){var t=this,r=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:null;i.location.origin||(i.location.origin=i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:""));var u=t.o.homeurl.replace(i.location.origin,"");if(r!=null&&t.o.analytics&&t.o.analyticsString!=""){var f=t.o.analyticsString.replace("{asl_term}",n).replace("{asp_term}",n);r("send","pageview",{page:u+f,title:"Ajax Search"})}},createVerticalScroll:function(){var n=this;n.is_scroll&&(n.scroll=n.n.results.mCustScr({contentTouchScroll:!0,scrollButtons:{enable:!0},callbacks:{onScroll:function(){if(!u()){var s=parseInt(t(".mCSBap_container",n.n.results).position().top),h=t(".mCSBap_container .resdrg").children(),f=0,o=3e3,r=4e3,c=1e4,e=1e4,i=null;h.each(function(){r=Math.abs(Math.abs(s)-f);r<o&&(c=r,e=f,i=t(this));f+=t(this).outerHeight(!0);o=r});i.hasClass("group")&&(e=e+(i.outerHeight(!0)-i.outerHeight(!1)));n.scroll.mCustScr("scrollTo",i,{scrollInertia:200,callbacks:!1})}}}}),t("a.mCSBap_buttonUp").text("Scroll up the results"),t("a.mCSBap_buttonDown").text("Scroll down the results"))},initEvents:function(){var r=this;if(u()&&s())r.n.text.on("touchstart",function(){r.savedScrollTop=t(i).scrollTop();r.savedContainerTop=r.n.container.offset().top});r.n.text.click(function(){t(this).focus()});r.n.text.on("focus input",function(){r.searching||(t(this).val()!=""?r.n.proclose.css("display","block"):r.n.proclose.css({display:"none"}))});t(r.n.text.parent()).submit(function(t){if(t.preventDefault(),u())if(r.o.redirect_on_enter){var i=n.Event("keyup");i.keyCode=i.which=13;r.n.text.trigger(i)}else r.o.redirectEnterTo=="ajax_search"&&(r.search(),document.activeElement.blur());else r.o.redirectEnterTo=="ajax_search"&&r.search()});r.n.text.click(function(){r.firstClick&&(t(this).val(""),r.firstClick=!1)});r.n.resultsDiv.css({opacity:0});t(document).bind("click touchend",function(){(r.hideSettings(),r.opened!=!1&&r.o.closeOnDocClick==1)&&r.hideResults()});r.n.proclose.on("click touchend",function(){r.n.text.val("");r.n.textAutocomplete.val("");r.hideResults();r.n.text.focus()});t(r.elem).bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.resultsDiv.bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.searchsettings.bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.prosettings.on("click",function(){r.n.prosettings.data("opened")==0?r.showSettings():r.hideSettings()});var o=r.n.container.parents().filter(function(){return t(this).css("position")=="fixed"});if((o.length>0||r.n.container.css("position")=="fixed")&&(r.n.resultsDiv.css("position")=="absolute"&&r.n.resultsDiv.css("position","fixed"),r.n.resultsDiv.css("z-index",99999999999),r.o.blocking||r.n.searchsettings.css("position","fixed")),u())t(i).on("orientationchange",function(){r.orientationChange();setTimeout(function(){r.orientationChange()},800)});else{var f;t(i).on("resize",function(){clearTimeout(f);f=setTimeout(function(){r.resize()},100)})}var e;t(i).on("scroll",function(){clearTimeout(e);e=setTimeout(function(){r.scrolling(!1)},400)});s()&&u()&&v()&&parseInt(r.n.text.css("font-size"))<16&&(r.n.text.data("fontSize",r.n.text.css("font-size")).css("font-size","16px"),r.n.textAutocomplete.css("font-size","16px"),t("<style>#ajaxsearchlite"+r.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));r.initNavigationEvent();r.initMagnifierEvent();r.initAutocompleteEvent();r.initFacetEvents()},initAutop:function(){var n=this;if(r!=null&&n.triggerPrevState)return n.search(),r=null,!1},initEtc:function(){var n=this,i=null;t("div.asl_option",n.n.searchsettings).on("mouseup touchend",function(r){if(r.preventDefault(),r.stopImmediatePropagation(),n.dragging)return!1;t('input[type="checkbox"]',this).prop("checked",!t('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){t('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});t("div.asl_option label",n.n.searchsettings).click(function(n){n.preventDefault()})},initNavigationEvent:function(){var n=this;t(n.n.resultsDiv).on("mouseenter",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered");t(this).addClass("hovered")});t(n.n.resultsDiv).on("mouseleave",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered")});t(document).keydown(function(r){if(i.event)var u=i.event.keyCode,f=i.event.type;else if(r)var u=r.which,f=r.type;t(".item",n.n.resultsDiv).length>0&&n.n.resultsDiv.css("display")!="none"&&(u==40&&(r.stopPropagation(),r.preventDefault(),n.n.text.blur(),n.post!=null&&n.post.abort(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).first().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").next().next(".item").addClass("hovered"),n.is_scroll&&n.scroll.mCustScr("scrollTo",".resdrg .item.hovered",{scrollInertia:200,callbacks:!1})),u==38&&(r.stopPropagation(),r.preventDefault(),n.n.text.blur(),n.post!=null&&n.post.abort(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).last().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").prev().prev(".item").addClass("hovered"),n.is_scroll&&n.scroll.mCustScr("scrollTo",".resdrg .item.hovered",{scrollInertia:200,callbacks:!1})),u==13&&t(".item.hovered",n.n.resultsDiv).length>0&&(r.stopPropagation(),r.preventDefault(),t(".item.hovered a.asl_res_url",n.n.resultsDiv).get(0).click()))})},initMagnifierEvent:function(){var n=this,r,f,u=!1;n.n.text.on("keyup",function(e){if(i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):e&&(n.keycode=e.which,n.ktype=e.type),n.keycode==13){if(clearTimeout(f),f=setTimeout(function(){u=!1},300),u)return!1;u=!0}var o=t(this).hasClass("orig");if(n.n.text.val().length>=n.o.charcount&&o&&n.ktype=="keyup"&&n.keycode==13){if(n.o.redirect_on_enter==1)n.o.redirectEnterTo!="first_result"?n.doRedirectToResults(n.ktype):n.search();else{if(n.o.redirectEnterTo=="nothing")return!1;t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&n.resultsOpened||n.search()}clearTimeout(r)}});n.n.promagnifier.add(n.n.text).bind("click input",function(u){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):u&&(n.keycode=u.which,n.ktype=u.type);var f=t(this).hasClass("orig");if(n.n.text.val().length<n.o.charcount){n.n.proloading.css("display","none");n.hideResults();n.post!=null&&n.post.abort();clearTimeout(r);return}if(n.n.text.val().length>=n.o.charcount&&!f&&n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo!="first_result"){n.doRedirectToResults(n.ktype);clearTimeout(r);return}if((!(n.keycode>=37)||!(n.keycode<=40))&&(!(n.keycode>=112)||!(n.keycode<=123))){if(f&&n.ktype=="click"||n.keycode==32){t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&(n.n.proclose.css("display","block"),n.resultsOpened||n.showResults());return}t(this).hasClass("orig")&&n.ktype=="click"||(n.o.trigger_on_click!=0||n.ktype!="click")&&(n.o.triggerontype!=0||n.ktype!="input")&&(!f||n.ktype!="input"||n.o.redirectEnterTo!="nothing")&&(f||n.ktype!="click"||n.o.redirectClickTo!="nothing")&&(n.post!=null&&n.post.abort(),clearTimeout(r),n.hideLoader(),r=setTimeout(function(){if(t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()!=n.lastSuccesfulSearch)n.search();else{if(n.n.proclose.css("display","block"),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;n.resultsOpened||n.showResults()}},250))}})},initFacetEvents:function(){var n=this,i=null;if(n.o.trigger_on_facet_change==1){t("input[type!=checkbox], select",n.n.searchsettings).on("change slidechange",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),clearTimeout(i),i=setTimeout(function(){n.search()},50))});t("input[type=checkbox]",n.n.searchsettings).on("asl_chbx_change",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),clearTimeout(i),i=setTimeout(function(){n.search()},50))})}},isRedirectToFirstResult:function(){var n=this;return t(".asl_res_url",n.n.resultsDiv).length>0&&(n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo=="first_result"||n.o.redirect_on_enter==1&&(n.ktype=="input"||n.ktype=="keyup")&&n.keycode==13&&n.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var n=this,i;return i=n.ktype=="click"?n.o.redirectClickLoc:n.o.redirectEnterLoc,i=="same"?location.href=t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href"):l(t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href")),n.hideLoader(),n.hideResults(),!1},doRedirectToResults:function(n){var i=this,s=i.ktype=="click"?i.o.redirectClickTo:i.o.redirectEnterTo,r=n=="click"?i.o.redirectClickLoc:i.o.redirectEnterLoc;if(s=="results_page")var u="?s="+e(i.n.text.val());else if(s=="woo_results_page")var u="?post_type=product&s="+e(i.n.text.val());else var u=i.o.redirect_url.replace("{phrase}",e(i.n.text.val()));if(i.o.overridewpdefault)if(i.o.override_method=="post")o(i.o.homeurl+u,"post",{asl_active:1,p_asl_data:t("form",i.n.searchsettings).serialize()},r);else{var h=i.o.homeurl+u+"&asl_active=1&p_asid="+i.o.id+"&p_asl_data="+f.encode(t("form",i.n.searchsettings).serialize());r=="same"?location.href=h:l(h)}else o(i.o.homeurl+u,"post",{np_asl_data:t("form",i.n.searchsettings).serialize()},r);i.n.proloading.css("display","none");i.hideLoader();i.hideResults();i.post!=null&&i.post.abort()},destroy:function(){return this.each(function(){var n=t.extend({},this,c);t(i).unbind(n)})},searchfor:function(n){t(".proinput input",this).val(n).trigger("keyup")},initAutocompleteEvent:function(){var n=this;n.o.autocomplete.enabled!=1||u()||n.n.text.keyup(function(r){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):r&&(n.keycode=r.which,n.ktype=r.type);var u=39;t("body").hasClass("rtl")&&(u=37);n.keycode==u&&n.n.textAutocomplete.val()!=""?(r.preventDefault(),n.n.text.val(n.n.textAutocomplete.val()),n.post!=null&&n.post.abort(),n.search()):(n.postAuto!=null&&n.postAuto.abort(),n.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var n=this,i=n.n.text.val();if(n.n.text.val()==""){n.n.textAutocomplete.val("");return}var r=n.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(n.n.textAutocomplete.val(""),t.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:n.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=t("<textarea />").html(response).text(),response=response.substr(i.length),n.n.textAutocomplete.val(i+response))}}))},search:function(){var n=this;if((!n.searching||!0)&&!(n.n.text.val().length<n.o.charcount)){n.searching=!0;n.n.proloading.css({display:"block"});n.n.proclose.css({display:"none"});var i={action:"ajaxsearchlite_search",aslp:n.n.text.val(),asid:n.o.id,options:t("form",n.n.searchsettings).serialize()};if(JSON.stringify(i)===JSON.stringify(n.lastSearchData))return(n.resultsOpened||n.showResults(),n.hideLoader(),n.isRedirectToFirstResult())?(n.doRedirectToFirstResult(),!1):!1;n.post=t.post(ASL.ajaxurl,i,function(r){if(r=r.replace(/^\s*[\r\n]/gm,""),r=r.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1],n.n.resdrg.html(""),n.n.resdrg.html(r),t(".asl_keyword",n.n.resdrg).bind("click",function(){n.n.text.val(t(this).html());t("input.orig",n.n.container).val(t(this).html()).keydown();t("form",n.n.container).trigger("submit","ajax");n.search()}),n.n.items=t(".item",n.n.resultsDiv),n.analytics(n.n.text.val()),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;if(n.hideLoader(),n.showResults(),n.scrollToResults(),n.lastSuccesfulSearch=t("form",n.n.searchsettings).serialize()+n.n.text.val().trim(),n.lastSearchData=i,n.n.items.length==0)n.n.showmore!=null&&n.n.showmore.css("display","none");else if(n.n.showmore!=null){n.n.showmore.css("display","block");t("a",n.n.showmore).off();t("a",n.n.showmore).on("click",function(){var r=n.o.redirectClickTo,i="?s="+e(n.n.text.val());i=r=="results_page"?"?s="+e(n.n.text.val()):r=="woo_results_page"?"?post_type=product&s="+e(n.n.text.val()):n.o.redirect_url.replace("{phrase}",e(n.n.text.val()));n.o.overridewpdefault?n.o.override_method=="post"?o(n.o.homeurl+i,"post",{asl_active:1,p_asl_data:t("form",n.n.searchsettings).serialize()}):location.href=n.o.homeurl+i+"&asl_active=1&p_asid="+n.o.id+"&p_asl_data="+f.encode(t("form",n.n.searchsettings).serialize()):o(n.o.homeurl+i,"post",{np_asl_data:t("form",n.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(n.n.resdrg.html(""),n.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),n.n.items=t(".item",n.n.resultsDiv),n.hideLoader(),n.showResults(),n.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});u()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var n=$this.n.probox.offset().top-20;else var n=$this.n.resultsDiv.offset().top-20;t("#wpadminbar").length>0&&(n-=t("#wpadminbar").height());n=n<0?0:n;t("body, html").animate({scrollTop:n},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var n=this;if(n.showResultsBox(),n.n.items.length>0){var f=n.n.items.length<n.o.itemscount?n.n.items.length:n.o.itemscount,o=t(".group",n.n.resultsDiv);if(n.n.items.length<=n.o.itemscount)n.n.results.css({height:"auto"});else{n.n.results.css({height:30});n.is_scroll&&n.scroll.mCustScr("update");n.resize();var r=0,u=0;n.n.items.each(function(){u+=t(this).outerHeight(!0);r++});r=r<1?1:r;u=u/r*f;n.n.results.css({height:u})}if(i.sscroll=n.scroll,n.is_scroll&&(n.scroll.mCustScr("disable",!0),n.scroll.mCustScr("update")),n.resize(),n.is_scroll&&n.scroll.mCustScr("scrollTo",0),n.o.highlight==1){var e=n.o.highlightwholewords==1?!0:!1;t("div.item",n.n.resultsDiv).highlight(n.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:e})}}if(n.resize(),n.n.items.length==0){var u=t(".nores",n.n.results).outerHeight(!0)>n.o.resultitemheight?n.o.resultitemheight:t(".nores",n.n.results).outerHeight(!0);n.is_scroll?(n.n.results.css({height:11110}),n.scroll.mCustScr("update"),n.n.results.css({height:"auto"})):n.n.results.css({height:"auto"})}n.is_scroll||n.n.results.css({overflowY:"auto"});n.addAnimation();n.fixResultsPosition(!0);n.searching=!1},hideVerticalResults:function(){var n=this;n.disableMobileScroll=!1;n.n.resultsDiv.animate({opacity:0,height:0},{duration:120,complete:function(){t(this).css({visibility:"hidden",display:"none"})}})},addAnimation:function(){var i=this,n=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){t(u).addClass(i.animation)},n);n=n+60;r++})},removeAnimation:function(){var n=this;n.n.items.each(function(){var i=this;t(i).removeClass(n.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var n=this;n.n.searchsettings.css(n.settAnim.showCSS);n.n.searchsettings.removeClass(n.settAnim.hideClass).addClass(n.settAnim.showClass);n.settScroll==null&&n.is_scroll&&(n.settScroll=t(".asl_sett_scroll",n.n.searchsettings).mCustScr({contentTouchScroll:!0}));n.n.prosettings.data("opened",1);n.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var n=this;t(".searchsettings",n.n.container).length>0&&(t("body>#ajaxsearchlitesettings"+n.o.rid).remove(),t("body>#ajaxsearchliteres"+n.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(n){n=typeof n=="undefined"?!1:n;var i=this,f=i.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var e=0;if(t("body").css("position")!="static"&&(e=t("body").offset().top),n==!0||i.n.resultsDiv.css("visibility")=="visible"){var o=0,h=0,r=i.n.container.offset();if(f=="fixed"&&(e=0,o=t(document).scrollTop(),h=t(document).scrollLeft(),u()&&s()&&i.n.text.is(":focus")&&(o=i.savedScrollTop,r.top=i.savedContainerTop)),typeof r!="undefined"){var c=i.n.container.outerWidth()<240?240:i.n.container.outerWidth();i.n.resultsDiv.outerWidth(c);i.n.resultsDiv.css({top:r.top+i.n.container.outerHeight(!0)+10-e-o,left:r.left-h})}}}},fixSettingsPosition:function(n){n=typeof n=="undefined"?!1:n;var r=this,h=0;if(t("body").css("position")!="static"&&(h=t("body").offset().top),(n==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var e=r.n.prosettings;else var e=r.n.promagnifier;var f=e.offset(),o=0,c=0;r.n.searchsettings.css("position")=="fixed"&&(o=t(i).scrollTop(),c=t(i).scrollLeft(),u()&&s()&&r.n.text.is(":focus")&&(f.top=r.savedContainerTop,o=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:f.top+e.height()-2-h-o,left:f.left-c}):r.n.searchsettings.css({display:"block",top:f.top+e.height()-2-h-o,left:f.left+e.width()-r.n.searchsettings.width()-c})}},fixSettingsWidth:function(){}};function v(){return!("ontouchstart"in i)?0:1}function u(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function h(n,i){var r=n.find(":input").get();return arguments.length===1?(i={},t.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||t(this).hasClass("asp_datepicker_field")||t(this).hasClass("asp_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(t(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),t.each(r,function(){if(this.name&&i[this.name]){var n=i[this.name],r=t(this);if(Object.prototype.toString.call(n)!=="[object Array]"&&(n=[n]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<n.length;u++)if(n[u]==e){f=!0;break}r.attr("checked",f)}else r.val(n[0])}}),n)}function e(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function o(n,i,r,u){"use strict";var f;f=t("<form />",{action:n,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&t.each(r,function(n,i){t("<input />",{type:"hidden",name:n,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").submit()}function l(n){t('<a href="'+n+'" target="_blank">').get(0).click()}function s(){return typeof i.navigator!="undefined"&&typeof i.navigator.userAgent!="undefined"?i.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function y(){var n=i.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});t.plugin=function(n,i){t.fn[n]=function(r){return this.each(function(){t.data(this,n)||t.data(this,n,Object.create(i).init(r,this))})}};t.plugin("ajaxsearchlite",c);var f={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,i,h,c,s,r,u=0;for(n=f._utf8_encode(n);u<n.length;)o=n.charCodeAt(u++),t=n.charCodeAt(u++),i=n.charCodeAt(u++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,r=i&63,isNaN(t)?s=r=64:isNaN(i)&&(r=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return e},decode:function(n){var t="",o,s,h,c,u,r,e,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),u=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),e=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|u>>4,s=(u&15)<<4|r>>2,h=(r&3)<<6|e,t=t+String.fromCharCode(o),r!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return f._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}})(n)}(asljQuery,asljQuery,window),function(n,t,i){i.ASL=i.ASL||{};i.ASL.getScope=function(){return typeof n!="undefined"?n:typeof i[ASL.js_scope]!="undefined"?i[ASL.js_scope]:eval(ASL.js_scope)};i.ASL.initialized=!1;i.ASL.initialize=function(n){var i=this;if(typeof i.getScope=="undefined")return!1;var t=i.getScope(),r=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0)t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))});else{typeof n!="undefined"&&(r="div[id*=asl_init_id_"+n+"]");function u(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function f(n){var t="",s,h,c,l,e,r,o,i=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=f.indexOf(n.charAt(i++)),e=f.indexOf(n.charAt(i++)),r=f.indexOf(n.charAt(i++)),o=f.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return u(t)}t(r).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=f(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})}i.initialized=!0};i.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})};i.ASL.ready=function(){var n=this,t=n.getScope(),r=null;t(document).ready(function(){n.initialize();setTimeout(function(){n.fixClones()},2500)});t(i).on("load",function(){n.initialized||(n.initialize(),setTimeout(function(){n.fixClones()},2500),console.log("ASL initialized via window.load"))});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&t("body").bind("DOMSubtreeModified",function(){clearTimeout(r);r=setTimeout(function(){n.initialize()},500)});var u;t(i).on("resize",function(){clearTimeout(u);u=setTimeout(function(){n.fixClones()},2e3)})};i._ASL=ASL;i._ASL.ready()}(asljQuery,asljQuery,window);
1
  /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
2
+ !function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){var c=[],l=c.slice,ki=c.concat,ni=c.push,di=c.indexOf,ct={},hf=ct.toString,nt=ct.hasOwnProperty,r={},gi="1.11.1",i=function(n,t){return new i.fn.init(n,t)},cf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,lf=/^-ms-/,af=/-([\da-z])/gi,vf=function(n,t){return t.toUpperCase()};i.fn=i.prototype={jquery:gi,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ni,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(gi+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!i.isArray(n)&&n-parseFloat(n)>=0},isEmptyObject:function(n){for(var t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!nt.call(n,"constructor")&&!nt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return nt.call(n,t);for(t in n);return void 0===t||nt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ct[hf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lf,"ms-").replace(af,vf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ti(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(cf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ti(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ni.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(di)return di.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ti(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ki.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});function ti(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}var tt=function(n){var it,u,t,ht,oi,et,wt,si,ct,y,rt,p,e,l,a,o,g,lt,ot,f="sizzle"+-new Date,s=n.document,v=0,ki=0,hi=ni(),ci=ni(),li=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",ai=1<<31,di={}.hasOwnProperty,w=[],gi=w.pop,nr=w.push,b=w.push,vi=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",yi=ft.replace("w","w#"),pi="\\["+i+"*("+ft+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+yi+"))|)"+i+"*\\]",dt=":("+ft+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pi+")*)|.*)\\)|)",at=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),tr=new RegExp("^"+i+"*,"+i+"*"),ir=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),rr=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),ur=new RegExp(dt),fr=new RegExp("^"+yi+"$"),vt={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+pi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,st=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=vi.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){nr.apply(n,vi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}function r(n,t,i,r){var w,h,c,v,k,y,d,l,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(a&&!r){if(w=sr.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&ot(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&u.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(u.qsa&&(!o||!o.test(n))){if(l=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=et(n),(d=t.getAttribute("id"))?l=d.replace(hr,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",k=y.length;k--;)y[k]=l+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,i,r)}function ni(){var i=[];function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||ai)-(~n.sourceIndex||ai);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}u=r.support={};oi=r.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=r.setDocument=function(n){var v,r=n?n.ownerDocument||n:s,h=r.defaultView;return r!==e&&9===r.nodeType&&r.documentElement?(e=r,l=r.documentElement,a=!oi(r),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),u.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),u.getElementsByTagName=c(function(n){return n.appendChild(r.createComment("")),!n.getElementsByTagName("*").length}),u.getElementsByClassName=st.test(r.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),u.getById=c(function(n){return l.appendChild(n).id=f,!r.getElementsByName||!r.getElementsByName(f).length}),u.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&a){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=u.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=u.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&a)return t.getElementsByClassName(n)},g=[],o=[],(u.qsa=st.test(r.querySelectorAll))&&(c(function(n){n.innerHTML="<select msallowclip=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowclip^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=r.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(u.matchesSelector=st.test(lt=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(n){u.disconnectedMatch=lt.call(n,"div");lt.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),v=st.test(l.compareDocumentPosition),ot=v||st.test(l.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!u.sortDetached&&t.compareDocumentPosition(n)===i?n===r||n.ownerDocument===s&&ot(s,n)?-1:t===r||t.ownerDocument===s&&ot(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,u=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===r?-1:t===r?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return wi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===s?-1:e[u]===s?1:0},r):e};r.matches=function(n,t){return r(n,null,null,t)};r.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(rr,"='$1']"),!(!u.matchesSelector||!a||g&&g.test(t)||o&&o.test(t)))try{var i=lt.call(n,t);if(i||u.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return r(t,e,null,[n]).length>0};r.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),ot(n,t)};r.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],r=f&&di.call(t.attrHandle,i.toLowerCase())?f(n,i,!a):void 0;return void 0!==r?r:u.attributes||!a?n.getAttribute(i):(r=n.getAttributeNode(i))&&r.specified?r.value:null};r.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};r.uniqueSort=function(n){var r,f=[],t=0,i=0;if(rt=!u.detectDuplicates,y=!u.sortStable&&n.slice(0),n.sort(bt),rt){while(r=n[i++])r===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};ht=r.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ht(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=ht(r);return i};t=r.selectors={cacheLength:50,createPseudo:h,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[3]||n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||r.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&r.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&ur.test(t)&&(i=et(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(u){var f=r.attr(u,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,u=t.pseudos[n]||t.setFilters[n.toLowerCase()]||r.error("unsupported pseudo: "+n);return u[f]?u(i):u.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var r,f=u(n,i),e=f.length;e--;)r=nt.call(n,f[e]),n[r]=!(t[r]=f[e])}):function(n){return u(n,0,e)}):u}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(at,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return r(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||ht(t)).indexOf(n)>-1}}),lang:h(function(n){return fr.test(n||"")||r.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=a?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===l},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=cr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=lr(it);function bi(){}bi.prototype=t.filters=t.pseudos;t.setFilters=new bi;et=r.tokenize=function(n,i){var e,f,s,o,u,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(u=n,h=[],c=t.preFilter;u;){(!e||(f=tr.exec(u)))&&(f&&(u=u.slice(f[0].length)||u),h.push(s=[]));e=!1;(f=ir.exec(u))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),u=u.slice(e.length));for(o in t.filter)(f=vt[o].exec(u))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),u=u.slice(e.length));if(!e)break}return i?u.length:u?r.error(n):ci(n,h).slice(0)};function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[v,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===v&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var u=0,f=t.length;f>u;u++)r(n,t[u],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ct)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function vr(n,i){var u=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,a="0",g=o&&[],p=[],nt=ct,tt=o||f&&t.find.TAG("*",l),it=v+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ct=s!==e&&s);a!==rt&&null!=(y=tt[a]);a++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(v=it)}u&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=a,u&&a!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(a--)g[a]||p[a]||(p[a]=gi.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&r.uniqueSort(c)}return l&&(v=it,ct=nt),g};return u?h(o):o}return wt=r.compile=function(n,t){var r,u=[],e=[],i=li[n+" "];if(!i){for(t||(t=et(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=li(n,vr(e,u));i.selector=n}return i},si=r.select=function(n,i,r,f){var s,e,o,l,v,c="function"==typeof n&&n,h=!f&&et(n=c.selector||n);if(r=r||[],1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&u.getById&&9===i.nodeType&&a&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return r;c&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[l=o.type])break;if((v=t.find[l])&&(f=v(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(r,f),r;break}}}return(c||wt(n,h))(f,i,!a,r,gt.test(n)&&ii(i.parentNode)||i),r},u.sortStable=f.split("").sort(bt).join("")===f,u.detectDuplicates=!!rt,p(),u.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),u.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),r}(n);i.find=tt;i.expr=tt.selectors;i.expr[":"]=i.expr.pseudos;i.unique=tt.uniqueSort;i.text=tt.getText;i.isXMLDoc=tt.isXML;i.contains=tt.contains;var nr=i.expr.match.needsContext,tr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,yf=/^.[^:#\[\.,]*$/;function ii(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(yf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ii(this,n||[],!1))},not:function(n){return this.pushStack(ii(this,n||[],!0))},is:function(n){return!!ii(this,"string"==typeof n&&nr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,pf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,wf=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:pf.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),tr.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};wf.prototype=i.fn;ft=i(u);var bf=/^(?:parents|prev(?:Until|All))/,kf={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=nr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});function ir(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ir(n,"nextSibling")},prev:function(n){return ir(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(kf[n]||(f=i.unique(f)),bf.test(n)&&(f=f.reverse())),this.pushStack(f)}});var h=/\S+/g,rr={};function df(n){var t=rr[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}i.Callbacks=function(n){n="string"==typeof n?rr[n]||df(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});var lt;i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(lt.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}}});function ur(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(ur(),i.ready())}i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}ur();i.ready()}}()}return lt.promise(t)};var s="undefined";for(var gf in i(r))break;r.ownLast="0"!==gf;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};var ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/([A-Z])/g;function fr(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(te,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ne.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ri(n){for(var t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function er(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function or(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ri(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ri(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ri(n)},data:function(n,t,i){return er(n,t,i)},removeData:function(n,t){return or(n,t)},_data:function(n,t,i){return er(n,t,i,!0)},_removeData:function(n,t){return or(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),fr(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?fr(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},w=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},ui=/^(?:checkbox|radio)$/i;!function(){var t=u.createElement("input"),n=u.createElement("div"),i=u.createDocumentFragment();if(n.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var fi=/^(?:input|select|textarea)$/i,ie=/^key/,re=/^(?:mouse|pointer|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;function vt(){return!0}function it(){return!1}function cr(){try{return u.activeElement}catch(n){}}i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,o,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==s&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=hr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,o.setup&&o.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),o.add&&(o.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=hr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=nt.call(t,"type")?t.type:t,v=nt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!sr.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,sr.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=re.test(r)?this.mouseHooks:ie.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===s&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:it):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return fi.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;fi.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!fi.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=it;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});function lr(n){var i=ar.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}var ar="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ue=/ jQuery\d+="(?:null|\d+)"/g,vr=new RegExp("<(?:"+ar+")[\\s/>]","i"),ei=/^\s+/,yr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,pr=/<([\w:]+)/,wr=/<tbody/i,fe=/<|&#?\w+;/,ee=/<(?:script|style|link)/i,oe=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/^$|\/(?:java|ecma)script/i,se=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,o={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},ce=lr(u),oi=ce.appendChild(u.createElement("div"));o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;function f(n,t){var e,u,o=0,r=typeof n.getElementsByTagName!==s?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==s?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function le(n){ui.test(n.type)&&(n.defaultChecked=n.checked)}function kr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function dr(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function gr(n){var t=se.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function si(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function nu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ae(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(dr(t).text=n.text,gr(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&ui.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vr.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(oi.innerHTML=n.outerHTML,oi.removeChild(s=oi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&ae(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)nu(c,e[o]);else nu(n,s);return e=f(s,"script"),e.length>0&&si(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,s,b,h,p,w,a,k=n.length,v=lr(t),l=[],y=0;k>y;y++)if(s=n[y],s||0===s)if("object"===i.type(s))i.merge(l,s.nodeType?[s]:s);else if(fe.test(s)){for(h=h||v.appendChild(t.createElement("div")),p=(pr.exec(s)||["",""])[1].toLowerCase(),a=o[p]||o._default,h.innerHTML=a[1]+s.replace(yr,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&ei.test(s)&&l.push(t.createTextNode(ei.exec(s)[0])),!r.tbody)for(s="table"!==p||wr.test(s)?"<table>"!==a[1]||wr.test(s)?0:h:h.firstChild,c=s&&s.childNodes.length;c--;)i.nodeName(w=s.childNodes[c],"tbody")&&!w.childNodes.length&&s.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(s));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),le),y=0;s=l[y++];)if((!e||-1===i.inArray(s,e))&&(b=i.contains(s.ownerDocument,s),h=f(v.appendChild(s),"script"),b&&si(h),u))for(c=0;s=h[c++];)br.test(s.type||"")&&u.push(s);return h=null,v},cleanData:function(n,t){for(var u,e,f,o,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],o=f&&l[f])){if(o.events)for(e in o.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==s?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=kr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&si(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(ue,""):void 0;if(!("string"!=typeof n||ee.test(n)||!r.htmlSerialize&&vr.test(n)||!r.leadingWhitespace&&ei.test(n)||o[(pr.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(yr,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ki.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&oe.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),dr),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,gr),e=0;c>e;e++)u=o[e],br.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(he,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ni.apply(f,u.get());return this.pushStack(f)}});var ot,tu={};function iu(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function yt(n){var r=u,t=tu[n];return t||(t=iu(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=iu(n,r),ot.detach()),tu[n]=t),t}!function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),typeof t.style.zoom!==s&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ru=/^margin/,pt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),b,k,ve=/^(top|right|bottom|left)$/;n.getComputedStyle?(b=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},k=function(n,t,r){var e,o,s,u,f=n.style;return r=r||b(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),pt.test(u)&&ru.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(b=function(n){return n.currentStyle},k=function(n,t,i){var o,f,e,r,u=n.style;return i=i||b(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!ve.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});function uu(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var f,t,l,o,s,e,h;if(f=u.createElement("div"),f.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",l=f.getElementsByTagName("a")[0],t=l&&l.style){t.cssText="float:left;opacity:.5";r.opacity="0.5"===t.opacity;r.cssFloat=!!t.cssFloat;f.style.backgroundClip="content-box";f.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===f.style.backgroundClip;r.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==e&&c(),e},boxSizingReliable:function(){return null==s&&c(),s},pixelPosition:function(){return null==o&&c(),o},reliableMarginRight:function(){return null==h&&c(),h}});function c(){var i,r,f,t;r=u.getElementsByTagName("body")[0];r&&r.style&&(i=u.createElement("div"),f=u.createElement("div"),f.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(f).appendChild(i),i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,h=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(i,null)||{}).top,s="4px"===(n.getComputedStyle(i,null)||{width:"4px"}).width,t=i.appendChild(u.createElement("div")),t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",h=!parseFloat((n.getComputedStyle(t,null)||{}).marginRight)),i.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t=i.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===t[0].offsetHeight,e&&(t[0].style.display="",t[1].style.display="none",e=0===t[0].offsetHeight),r.removeChild(f))}}}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var hi=/alpha\([^)]*\)/i,ye=/opacity\s*=\s*([^)]*)/,pe=/^(none|table(?!-c[ea]).+)/,we=new RegExp("^("+at+")(.*)$","i"),be=new RegExp("^([+-])=("+at+")","i"),ke={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"];function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=we.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=b(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=k(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+cu(n,t,u||(s?"border":"content"),o,e)+"px"}i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=k(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,h,e,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ou(c,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:c[t];if(h=typeof u,"string"===h&&(o=be.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),h="number"),null!=u&&u===u&&("number"!==h||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=ou(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=k(n,t,u)),"normal"===f&&t in fu&&(f=fu[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&0===n.offsetWidth?i.swap(n,ke,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,u,f){var e=f&&b(n);return hu(n,u,f?cu(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ye.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(hi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=hi.test(f)?f.replace(hi,e):f+" "+e)}});i.cssHooks.marginRight=uu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},k,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=b(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var r,t=e.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,wt,de=/^(?:toggle|show|hide)$/,au=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),ge=/queueHooks$/,bt=[no],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=au.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&au.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};function vu(){return setTimeout(function(){rt=void 0}),rt=i.now()}function kt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yu(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function no(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],de.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function to(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function pu(n,t,r){var h,e,o=0,l=bt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||vu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||vu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(to(s,u.opts.specialEasing);l>o;o++)if(h=bt[o].call(u,n,s,u.opts))return h;return i.map(s,yu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}i.Animation=i.extend(pu,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?bt.unshift(n):bt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=pu(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&ge.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var n,t,f,i,e;t=u.createElement("div");t.setAttribute("className","t");t.innerHTML=" <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();var io=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(io,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n))}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,wu,v=i.expr.attrHandle,ci=/^(?:checked|selected)$/i,d=r.getSetAttribute,dt=r.input;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===s?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?wu:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?dt&&d||!ci.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(d?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});wu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):dt&&d||!ci.test(r)?n.setAttribute(!d&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=dt&&d||!ci.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});dt&&d||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});d||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});var ro=/^(?:input|select|textarea|button|object)$/i,uo=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ro.test(n.nodeName)||uo.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");var li=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(li," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===s||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(li," ").indexOf(i)>=0)return!0;return!1}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var ai=i.now(),vi=/\?/,fo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(fo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var g,y,eo=/#.*$/,bu=/([?&])_=[^&]*/,oo=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,so=/^(?:GET|HEAD)$/,ho=/^\/\//,ku=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,du={},yi={},gu="*/".concat("*");try{y=location.href}catch(ns){y=u.createElement("a");y.href="";y=y.href}g=ku.exec(y.toLowerCase())||[];function nf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function tf(n,t,r,u){var f={},o=n===yi;function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function co(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function lo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(g[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":gu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:nf(du),ajaxTransport:nf(yi),ajax:function(n,t){"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=oo.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),w(0,t),this}};if(nt.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(eo,"").replace(ho,g[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=ku.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===g[1]&&s[2]===g[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(g[3]||("http:"===g[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),tf(du,r,t,u),2===e)return u;l=r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!so.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(vi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=bu.test(f)?f.replace(bu,"$1_="+ai++):f+(vi.test(f)?"&":"?")+"_="+ai++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+gu+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=tf(yi,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");function w(n,t,s,h){var v,it,g,y,w,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=co(r,u,s)),y=lo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,g=y.error,v=!g)):(g=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?nt.resolveWith(o,[it,c,u]):nt.rejectWith(o,[u,c,g]),u.statusCode(p),p=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:g]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var ao=/%20/g,vo=/\[\]$/,rf=/\r?\n/g,yo=/^(?:submit|button|image|reset|file)$/i,po=/^(?:input|select|textarea|keygen)/i;function wi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||vo.test(n)?u(n,i):wi(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)wi(n+"["+f+"]",t[f],r,u)}i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)wi(r,n[r],t,f);return u.join("&").replace(ao,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&po.test(this.nodeName)&&!yo.test(n)&&(this.checked||!ui.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(rf,"\r\n")}}):{name:t.name,value:r.replace(rf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&uf()||bo()}:uf;var wo=0,gt={},ht=i.ajaxSettings.xhr();n.ActiveXObject&&i(n).on("unload",function(){for(var n in gt)gt[n](void 0,!0)});r.cors=!!ht&&"withCredentials"in ht;ht=r.ajax=!!ht;ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++wo;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete gt[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}});function uf(){try{return new n.XMLHttpRequest}catch(t){}}function bo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var ff=[],bi=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ff.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(bi.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&bi.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(bi,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,ff.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")});i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=tr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))};var ef=i.fn.load;i.fn.load=function(n,t,r){if("string"!=typeof n&&ef)return ef.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this};i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length};var of=n.document.documentElement;function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}};i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==s&&(u=r.getBoundingClientRect()),f=sf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||of;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||of})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return w(this,function(n,u,f){var e=sf(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}});i.each(["top","left"],function(n,t){i.cssHooks[t]=uu(r.pixelPosition,function(n,r){if(r)return(r=k(n,t),pt.test(r)?i(n).position()[t]+"px":r)})});i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return w(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"function"==typeof define&&define.amd&&define("asljQuery",[],function(){return i});var ko=n.jQuery,go=n.$;return i.noConflict=function(t){return n.$===i&&(n.$=go),t&&n.jQuery===i&&(n.asljQuery=ko),i},typeof t===s&&(n.asljQuery=n.$=i),i}),function(n,t,i){(function(t){typeof define=="function"&&!1&&define.amd&&define.amd.jQuery?define(["jquery"],t):typeof module!="undefined"&&!1&&module.exports?t(require("jquery")):t(n)})(function(n){var u="left",f="right",e="up",o="down",y="in",p="out",w="none",tt="auto",b="swipe",k="pinch",d="tap",it="doubletap",rt="longtap",g="horizontal",nt="vertical",a="all",ft=10,ut="start",s="move",t="end",r="cancel",l="ontouchstart"in i,v=i.navigator.msPointerEnabled&&!i.navigator.pointerEnabled&&!l,h=(i.navigator.pointerEnabled||i.navigator.msPointerEnabled)&&!l,c="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(c);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(this,arguments);else if(!i&&(typeof t=="object"||!t))return et.apply(this,arguments);return r};n.fn.swipe.version="1.6.15";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:ut,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:r};n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:y,OUT:p};n.fn.swipe.pageScroll={NONE:w,HORIZONTAL:g,VERTICAL:nt,AUTO:tt};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:a};function et(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=w),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(c);i||(i=new ot(this,t),r.data(c,i))})}function ot(i,et){var et=n.extend({},et),si=l||h||!et.fallbackToMouseEvents,hi=si?h?v?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ki=si?h?v?"MSPointerMove":"pointermove":"touchmove":"mousemove",di=si?h?v?"MSPointerUp":"pointerup":"touchend":"mouseup",ri=si?h?"mouseleave":null:"mouseleave",ci=h?v?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,gt=0,ni=0,pt=1,bt=0,kt=0,li=null,ot=n(i),st="start",ct=0,ht={},gi=0,ai=0,vi=0,nr=0,ti=0,fi=null,ei=null;try{ot.bind(hi,tr);ot.bind(ci,ui)}catch(ff){n.error("events not supported "+hi+","+ci+" on jQuery.swipe")}this.enable=function(){return ot.bind(hi,tr),ot.bind(ci,ui),ot};this.disable=function(){return lr(),ot};this.destroy=function(){lr();ot.data(c,null);ot=null};this.option=function(t,i){if(typeof t=="object")et=n.extend(et,t);else if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return et;return null};function tr(t){if(!pu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var i=t.originalEvent?t.originalEvent:t,f,u=i.touches,e=u?u[0]:i;return(st=ut,u?ct=u.length:et.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,gt=0,ni=0,pt=1,bt=0,li=ku(),dr(),wi(0,e),!u||ct===et.fingers||et.fingers===a||oi()?(gi=ii(),ct==2&&(wi(1,u[1]),gt=ni=cr(ht[0].start,ht[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=wt(i,st))):f=!1,f===!1)?(st=r,wt(i,st),f):(et.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[i.target]);et.hold&&(f=et.hold.call(ot,i,i.target))},this),et.longTapThreshold)),pi(!0),null)}}function ir(n){var f=n.originalEvent?n.originalEvent:n;if(st!==t&&st!==r&&!yi()){var o,i=f.touches,h=i?i[0]:f,u=gr(h);if(ai=ii(),i&&(ct=i.length),et.hold&&clearTimeout(ei),st=s,ct==2&&(gt==0?(wi(1,i[1]),gt=ni=cr(ht[0].start,ht[1].start)):(gr(i[1]),ni=cr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),pt=du(gt,ni),bt=Math.abs(gt-ni)),ct===et.fingers||et.fingers===a||!i||oi()){if(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),o=wt(f,st),!et.triggerOnTouchEnd||et.triggerOnTouchLeave){var e=!0;if(et.triggerOnTouchLeave){var c=rf(this);e=uf(u.end,c)}!et.triggerOnTouchEnd&&e?st=fr(s):et.triggerOnTouchLeave&&!e&&(st=fr(t));(st==r||st==t)&&wt(f,st)}}else st=r,wt(f,st);o===!1&&(st=r,wt(f,st))}}function rr(n){var i=n.originalEvent?n.originalEvent:n,u=i.touches;if(u){if(u.length&&!yi())return yu(i),!0;if(u.length&&yi())return!0}return yi()&&(ct=nr),ai=ii(),lt=tu(),or()||!er()?(st=r,wt(i,st)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&st===s?(et.preventDefaultEvents!==!1&&n.preventDefault(),st=t,wt(i,st)):!et.triggerOnTouchEnd&&br()?(st=t,dt(i,st,d)):st===s&&(st=r,wt(i,st)),pi(!1),null}function ui(){ct=0;ai=0;gi=0;gt=0;ni=0;pt=1;dr();pi(!1)}function ur(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(st=fr(t),wt(i,st))}function lr(){ot.unbind(hi,tr);ot.unbind(ci,ui);ot.unbind(ki,ir);ot.unbind(di,rr);ri&&ot.unbind(ri,ur);pi(!1)}function fr(n){var i=n,f=ar(),u=er(),e=or();return!f||e?i=r:u&&n==s&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?i=t:!u&&n==t&&et.triggerOnTouchLeave&&(i=r),i}function wt(n,i){var u,f=n.touches;return(eu()||sr())&&(u=dt(n,i,b)),(fu()||oi())&&u!==!1&&(u=dt(n,i,k)),au()&&u!==!1?u=dt(n,i,it):vu()&&u!==!1?u=dt(n,i,rt):lu()&&u!==!1&&(u=dt(n,i,d)),i===r&&(sr()&&(u=dt(n,i,b)),oi()&&(u=dt(n,i,k)),ui(n)),i===t&&(f?f.length||ui(n):ui(n)),u}function dt(i,s,h){var c;if(h==b){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),et.swipeStatus&&(c=et.swipeStatus.call(ot,i,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&yr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),et.swipe&&(c=et.swipe.call(ot,i,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case u:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);et.swipeLeft&&(c=et.swipeLeft.call(ot,i,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);et.swipeRight&&(c=et.swipeRight.call(ot,i,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);et.swipeUp&&(c=et.swipeUp.call(ot,i,vt,at,lt,ct,ht,yt));break;case o:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);et.swipeDown&&(c=et.swipeDown.call(ot,i,vt,at,lt,ct,ht,yt))}}}if(h==k){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,pt,ht]),et.pinchStatus&&(c=et.pinchStatus.call(ot,i,s,kt||null,bt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&vr())switch(kt){case y:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchIn&&(c=et.pinchIn.call(ot,i,kt||null,bt||0,lt||0,ct,pt,ht));break;case p:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchOut&&(c=et.pinchOut.call(ot,i,kt||null,bt||0,lt||0,ct,pt,ht))}}return h==d?(s===r||s===t)&&(clearTimeout(fi),clearTimeout(ei),hr()&&!su()?(ti=ii(),fi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[i.target]);et.tap&&(c=et.tap.call(ot,i,i.target))},this),et.doubleTapThreshold)):(ti=null,ot.trigger("tap",[i.target]),et.tap&&(c=et.tap.call(ot,i,i.target)))):h==it?(s===r||s===t)&&(clearTimeout(fi),clearTimeout(ei),ti=null,ot.trigger("doubletap",[i.target]),et.doubleTap&&(c=et.doubleTap.call(ot,i,i.target))):h==rt&&(s===r||s===t)&&(clearTimeout(fi),ti=null,ot.trigger("longtap",[i.target]),et.longTap&&(c=et.longTap.call(ot,i,i.target))),c}function er(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function or(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=nu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?bt>=et.pinchThreshold:!0}function ar(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===w)n.preventDefault();else{var i=et.allowPageScroll===tt;switch(t){case u:(et.swipeLeft&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case f:(et.swipeRight&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case e:(et.swipeUp&&i||!i&&et.allowPageScroll!=nt)&&n.preventDefault();break;case o:(et.swipeDown&&i||!i&&et.allowPageScroll!=nt)&&n.preventDefault()}}}function vr(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function oi(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function fu(){return!!(vr()&&oi())}function yr(){var n=ar(),t=er(),i=pr(),r=wr(),u=or();return!u&&r&&i&&t&&n}function sr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function eu(){return!!(yr()&&sr())}function pr(){return ct===et.fingers||et.fingers===a||!l}function wr(){return ht[0].end.x!==0}function br(){return!!et.tap}function hr(){return!!et.doubleTap}function ou(){return!!et.longTap}function kr(){if(ti==null)return!1;var n=ii();return hr()&&n-ti<=et.doubleTapThreshold}function su(){return kr()}function hu(){return(ct===1||!l)&&(isNaN(at)||at<et.threshold)}function cu(){return lt>et.longTapThreshold&&at<ft}function lu(){return!!(hu()&&br())}function au(){return!!(kr()&&hr())}function vu(){return!!(cu()&&ou())}function yu(n){vi=ii();nr=n.touches.length+1}function dr(){vi=0;nr=0}function yi(){var n=!1;if(vi){var t=ii()-vi;t<=et.fingerReleaseThreshold&&(n=!0)}return n}function pu(){return!!(ot.data(c+"_intouch")===!0)}function pi(n){ot&&(n===!0?(ot.bind(ki,ir),ot.bind(di,rr),ri&&ot.bind(ri,ur)):(ot.unbind(ki,ir,!1),ot.unbind(di,rr,!1),ri&&ot.unbind(ri,ur,!1)),ot.data(c+"_intouch",n===!0))}function wi(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=n.identifier!==undefined?n.identifier:0,t=wu(i);return t===null&&(t=wi(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){t=Math.max(t,nu(n));li[n].distance=t}function nu(n){return li[n]?li[n].distance:undefined}function ku(){var n={};return n[u]=bi(u),n[f]=bi(f),n[e]=bi(e),n[o]=bi(o),n}function bi(n){return{direction:n,distance:0}}function tu(){return ai-gi}function cr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return pt<1?p:y}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function iu(n,t){var i=tf(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function ii(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}}})}(asljQuery,asljQuery,window),function(n){n.extend({highlight:function(t,i,r,u){if(t.nodeType===3){var f=t.data.match(i);if(f){var s=document.createElement(r||"span");if(s.className=u||"highlight",/\.|,|\s/.test(f[0].charAt(0)))var h=f.index+1;else var h=f.index;var e=t.splitText(h);e.splitText(f[1].length);var c=e.cloneNode(!0);return s.appendChild(c),e.parentNode.replaceChild(s,e),1}}else if(t.nodeType===1&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&!(t.tagName===r.toUpperCase()&&t.className===u))for(var o=0;o<t.childNodes.length;o++)o+=n.highlight(t.childNodes[o],i,r,u);return 0}});n.fn.unhighlight=function(t){var i={className:"highlight",element:"span"};return n.extend(i,t),this.find(i.element+"."+i.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()};n.fn.highlight=function(t,i){var r={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(n.extend(r,i),t.constructor===String&&(t=[t]),t=n.grep(t,function(n){return n!=""}),t=n.map(t,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),t.length==0)return this;var f=r.caseSensitive?"":"i",u="("+t.join("|")+")";r.wordsOnly&&(u="(?:,|^|\\s)"+u+"(?:,|$|\\s)");var e=new RegExp(u,f);return this.each(function(){n.highlight(this,e,r.element,r.className)})}}(asljQuery,asljQuery,window),function(n,t,i){(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.asl_SimpleBar=t())})(this,function(){"use strict";var e=typeof globalThis!="undefined"?globalThis:typeof i!="undefined"?i:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function et(n,t){return t={exports:{}},n(t,t.exports),t.exports}var pt="object",wt=function(n){return n&&n.Math==Math&&n},t=wt(typeof globalThis==pt&&globalThis)||wt(typeof i==pt&&i)||wt(typeof self==pt&&self)||wt(typeof e==pt&&e)||Function("return this")(),f=function(n){try{return!!n()}catch(t){return!0}},v=!f(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),ff={}.propertyIsEnumerable,ef=Object.getOwnPropertyDescriptor,gs=ef&&!ff.call({1:2},1),nh=gs?function(n){var t=ef(this,n);return!!t&&t.enumerable}:ff,of={f:nh},or=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}},th={}.toString,k=function(n){return th.call(n).slice(8,-1)},ih="".split,bt=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return k(n)=="String"?ih.call(n,""):Object(n)}:Object,kt=function(n){if(n==undefined)throw TypeError("Can't call method on "+n);return n},dt=function(n){return bt(kt(n))},n=function(n){return typeof n=="object"?n!==null:typeof n=="function"},sf=function(t,i){if(!n(t))return t;var r,u;if(i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t))||typeof(r=t.valueOf)=="function"&&!n(u=r.call(t))||!i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t)))return u;throw TypeError("Can't convert object to primitive value");},rh={}.hasOwnProperty,u=function(n,t){return rh.call(n,t)},sr=t.document,uh=n(sr)&&n(sr.createElement),hf=function(n){return uh?sr.createElement(n):{}},cf=!v&&!f(function(){return Object.defineProperty(hf("div"),"a",{get:function(){return 7}}).a!=7}),lf=Object.getOwnPropertyDescriptor,fh=v?lf:function(n,t){if(n=dt(n),t=sf(t,!0),cf)try{return lf(n,t)}catch(i){}if(u(n,t))return or(!of.f.call(n,t),n[t])},af={f:fh},h=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t},vf=Object.defineProperty,eh=v?vf:function(n,t,i){if(h(n),t=sf(t,!0),h(i),cf)try{return vf(n,t,i)}catch(r){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n},d={f:eh},s=v?function(n,t,i){return d.f(n,t,or(1,i))}:function(n,t,i){return n[t]=i,n},hr=function(n,i){try{s(t,n,i)}catch(r){t[n]=i}return i},gt=et(function(n){var i="__core-js_shared__",r=t[i]||hr(i,{});(n.exports=function(n,t){return r[n]||(r[n]=t!==undefined?t:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ni=gt("native-function-to-string",Function.toString),yf=t.WeakMap,pf=typeof yf=="function"&&/native code/.test(ni.call(yf)),oh=0,sh=Math.random(),cr=function(n){return"Symbol("+String(n===undefined?"":n)+")_"+(++oh+sh).toString(36)},wf=gt("keys"),lr=function(n){return wf[n]||(wf[n]=cr(n))},ti={},hh=t.WeakMap,ii,ot,ri,ch=function(n){return ri(n)?ot(n):ii(n,{})},lh=function(t){return function(i){var r;if(!n(i)||(r=ot(i)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(pf){var g=new hh,ah=g.get,vh=g.has,yh=g.set;ii=function(n,t){return yh.call(g,n,t),t};ot=function(n){return ah.call(g,n)||{}};ri=function(n){return vh.call(g,n)}}else{var st=lr("state");ti[st]=!0;ii=function(n,t){return s(n,st,t),t};ot=function(n){return u(n,st)?n[st]:{}};ri=function(n){return u(n,st)}}var c={set:ii,get:ot,has:ri,enforce:ch,getterFor:lh},ht=et(function(n){var i=c.get,r=c.enforce,f=String(ni).split("toString");gt("inspectSource",function(n){return ni.call(n)});(n.exports=function(n,i,e,o){var c=o?!!o.unsafe:!1,h=o?!!o.enumerable:!1,l=o?!!o.noTargetGet:!1;if(typeof e=="function"&&(typeof i!="string"||u(e,"name")||s(e,"name",i),r(e).source=f.join(typeof i=="string"?i:"")),n===t){h?n[i]=e:hr(i,e);return}c?!l&&n[i]&&(h=!0):delete n[i];h?n[i]=e:s(n,i,e)})(Function.prototype,"toString",function(){return typeof this=="function"&&i(this).source||ni.call(this)})}),ar=t,bf=function(n){return typeof n=="function"?n:undefined},kf=function(n,i){return arguments.length<2?bf(ar[n])||bf(t[n]):ar[n]&&ar[n][i]||t[n]&&t[n][i]},ph=Math.ceil,wh=Math.floor,vr=function(n){return isNaN(n=+n)?0:(n>0?wh:ph)(n)},bh=Math.min,ui=function(n){return n>0?bh(vr(n),9007199254740991):0},kh=Math.max,dh=Math.min,gh=function(n,t){var i=vr(n);return i<0?kh(i+t,0):dh(i,t)},df=function(n){return function(t,i,r){var f=dt(t),e=ui(f.length),u=gh(r,e),o;if(n&&i!=i){while(e>u)if(o=f[u++],o!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},nc={includes:df(!0),indexOf:df(!1)},tc=nc.indexOf,gf=function(n,t){var f=dt(n),e=0,r=[];for(var i in f)!u(ti,i)&&u(f,i)&&r.push(i);while(t.length>e)u(f,i=t[e++])&&(~tc(r,i)||r.push(i));return r},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ic=fi.concat("length","prototype"),rc=Object.getOwnPropertyNames||function(n){return gf(n,ic)},uc={f:rc},fc=Object.getOwnPropertySymbols,ne={f:fc},ec=kf("Reflect","ownKeys")||function(n){var t=uc.f(h(n)),i=ne.f;return i?t.concat(i(n)):t},oc=function(n,t){for(var f=ec(t),e=d.f,o=af.f,i=0;i<f.length;i++){var r=f[i];u(n,r)||e(n,r,o(t,r))}},sc=/#|\.prototype\./,ct=function(n,t){var i=cc[hc(n)];return i==ac?!0:i==lc?!1:typeof t=="function"?f(t):!!t},hc=ct.normalize=function(n){return String(n).replace(sc,".").toLowerCase()},cc=ct.data={},lc=ct.NATIVE="N",ac=ct.POLYFILL="P",yr=ct,vc=af.f,a=function(n,i){var o=n.target,c=n.global,l=n.stat,a,f,r,u,e,h;if(f=c?t:l?t[o]||hr(o,{}):(t[o]||{}).prototype,f)for(r in i){if(e=i[r],n.noTargetGet?(h=vc(f,r),u=h&&h.value):u=f[r],a=yr(c?r:o+(l?".":"#")+r,n.forced),!a&&u!==undefined){if(typeof e==typeof u)continue;oc(e,u)}(n.sham||u&&u.sham)&&s(e,"sham",!0);ht(f,r,e,n)}},te=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n},ie=function(n,t,i){if(te(n),t===undefined)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},ei=function(n){return Object(kt(n))},re=Array.isArray||function(n){return k(n)=="Array"},ue=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),fe=t.Symbol,ee=gt("wks"),o=function(n){return ee[n]||(ee[n]=ue&&fe[n]||(ue?fe:cr)("Symbol."+n))},yc=o("species"),pc=function(t,i){var r;return re(t)&&(r=t.constructor,typeof r=="function"&&(r===Array||re(r.prototype))?r=undefined:n(r)&&(r=r[yc],r===null&&(r=undefined))),new(r===undefined?Array:r)(i===0?0:i)},wc=[].push,y=function(n){var i=n==1,u=n==2,f=n==3,t=n==4,r=n==6,e=n==5||r;return function(o,s,h,c){for(var w=ei(o),v=bt(w),d=ie(s,h,3),b=ui(v.length),l=0,k=c||pc,y=i?k(o,b):u?k(o,0):undefined,a,p;b>l;l++)if((e||l in v)&&(a=v[l],p=d(a,l,w),n))if(i)y[l]=p;else if(p)switch(n){case 3:return!0;case 5:return a;case 6:return l;case 2:wc.call(y,a)}else if(t)return!1;return r?-1:f||t?t:y}},oi={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)},oe=function(n,t){var i=[][n];return!i||!f(function(){i.call(null,t||function(){throw 1;},1)})},bc=oi.forEach,lt=oe("forEach")?function(n){return bc(this,n,arguments.length>1?arguments[1]:undefined)}:[].forEach;a({target:"Array",proto:!0,forced:[].forEach!=lt},{forEach:lt});var pr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var kc in pr){var se=t[kc],si=se&&se.prototype;if(si&&si.forEach!==lt)try{s(si,"forEach",lt)}catch(kb){si.forEach=lt}}var dc=!!(typeof i!="undefined"&&i.document&&i.document.createElement),wr=dc,gc=o("species"),nl=function(n){return!f(function(){var t=[],i=t.constructor={};return i[gc]=function(){return{foo:1}},t[n](Boolean).foo!==1})},tl=oi.filter;a({target:"Array",proto:!0,forced:!nl("filter")},{filter:function(n){return tl(this,n,arguments.length>1?arguments[1]:undefined)}});var hi=Object.keys||function(n){return gf(n,fi)},il=v?Object.defineProperties:function(n,t){h(n);for(var i=hi(t),f=i.length,r=0,u;f>r;)d.f(n,u=i[r++],t[u]);return n},rl=kf("document","documentElement"),he=lr("IE_PROTO"),br="prototype",kr=function(){},ci=function(){var t=hf("iframe"),r=fi.length,u="<",i="script",f=">",e="java"+i+":",n;for(t.style.display="none",rl.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(u+i+f+"document.F=Object"+u+"/"+i+f),n.close(),ci=n.F;r--;)delete ci[br][fi[r]];return ci()},ce=Object.create||function(n,t){var i;return n!==null?(kr[br]=h(n),i=new kr,kr[br]=null,i[he]=n):i=ci(),t===undefined?i:il(i,t)};ti[he]=!0;var dr=o("unscopables"),gr=Array.prototype;gr[dr]==undefined&&s(gr,dr,ce(null));var nu=function(n){gr[dr][n]=!0},nt={},ul=!f(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),le=lr("IE_PROTO"),fl=Object.prototype,li=ul?Object.getPrototypeOf:function(n){return(n=ei(n),u(n,le))?n[le]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?fl:null},ae=o("iterator"),ve=!1,el=function(){return this},tt,tu,iu;[].keys&&(iu=[].keys(),"next"in iu?(tu=li(li(iu)),tu!==Object.prototype&&(tt=tu)):ve=!0);tt==undefined&&(tt={});u(tt,ae)||s(tt,ae,el);var ru={IteratorPrototype:tt,BUGGY_SAFARI_ITERATORS:ve},ol=d.f,ye=o("toStringTag"),uu=function(n,t,i){n&&!u(n=i?n:n.prototype,ye)&&ol(n,ye,{configurable:!0,value:t})},sl=ru.IteratorPrototype,hl=function(){return this},cl=function(n,t,i){var r=t+" Iterator";return n.prototype=ce(sl,{next:or(1,i)}),uu(n,r,!1),nt[r]=hl,n},ll=function(t){if(!n(t)&&t!==null)throw TypeError("Can't set "+String(t)+" as a prototype");return t},ai=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,i={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;n.call(i,[]);t=i instanceof Array}catch(r){}return function(i,r){return h(i),ll(r),t?n.call(i,r):i.__proto__=r,i}}():undefined),fu=ru.IteratorPrototype,vi=ru.BUGGY_SAFARI_ITERATORS,at=o("iterator"),pe="keys",yi="values",we="entries",al=function(){return this},be=function(n,t,i,r,u,f,e){cl(i,t,r);var y=function(n){if(n===u&&h)return h;if(!vi&&n in o)return o[n];switch(n){case pe:return function(){return new i(this,n)};case yi:return function(){return new i(this,n)};case we:return function(){return new i(this,n)}}return function(){return new i(this)}},k=t+" Iterator",w=!1,o=n.prototype,l=o[at]||o["@@iterator"]||u&&o[u],h=!vi&&l||y(u),b=t=="Array"?o.entries||l:l,c,v,p;if(b&&(c=li(b.call(new n)),fu!==Object.prototype&&c.next&&(li(c)!==fu&&(ai?ai(c,fu):typeof c[at]!="function"&&s(c,at,al)),uu(c,k,!0))),u==yi&&l&&l.name!==yi&&(w=!0,h=function(){return l.call(this)}),o[at]!==h&&s(o,at,h),nt[t]=h,u)if(v={values:y(yi),keys:f?h:y(pe),entries:y(we)},e)for(p in v)!vi&&!w&&p in o||ht(o,p,v[p]);else a({target:t,proto:!0,forced:vi||w},v);return v},ke="Array Iterator",vl=c.set,yl=c.getterFor(ke),vt=be(Array,"Array",function(n,t){vl(this,{type:ke,target:dt(n),index:0,kind:t})},function(){var t=yl(this),i=t.target,r=t.kind,n=t.index++;return!i||n>=i.length?(t.target=undefined,{value:undefined,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:i[n],done:!1}:{value:[n,i[n]],done:!1}},"values");nt.Arguments=nt.Array;nu("keys");nu("values");nu("entries");var pi=Object.assign,de=!pi||f(function(){var n={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return n[i]=7,r.split("").forEach(function(n){t[n]=n}),pi({},n)[i]!=7||hi(pi({},t)).join("")!=r})?function(n){for(var r=ei(n),s=arguments.length,u=1,f=ne.f,h=of.f;s>u;)for(var t=bt(arguments[u++]),e=f?hi(t).concat(f(t)):hi(t),c=e.length,o=0,i;c>o;)i=e[o++],(!v||h.call(t,i))&&(r[i]=t[i]);return r}:pi;a({target:"Object",stat:!0,forced:Object.assign!==de},{assign:de});var pl=o("toStringTag"),wl=k(function(){return arguments}())=="Arguments",bl=function(n,t){try{return n[t]}catch(i){}},ge=function(n){var t,i,r;return n===undefined?"Undefined":n===null?"Null":typeof(i=bl(t=Object(n),pl))=="string"?i:wl?k(t):(r=k(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},kl=o("toStringTag"),eu={};eu[kl]="z";var no=String(eu)!=="[object z]"?function(){return"[object "+ge(this)+"]"}:eu.toString,to=Object.prototype;no!==to.toString&&ht(to,"toString",no,{unsafe:!0});var ou="\t\n\x0b\f\r                 \u2028\u2029",wi="["+ou+"]",dl=RegExp("^"+wi+wi+"*"),gl=RegExp(wi+wi+"*$"),su=function(n){return function(t){var i=String(kt(t));return n&1&&(i=i.replace(dl,"")),n&2&&(i=i.replace(gl,"")),i}},na={start:su(1),end:su(2),trim:su(3)},ta=na.trim,bi=t.parseInt,ia=/^[+-]?0[Xx]/,ra=bi(ou+"08")!==8||bi(ou+"0x16")!==22,io=ra?function(n,t){var i=ta(String(n));return bi(i,t>>>0||(ia.test(i)?16:10))}:bi;a({global:!0,forced:parseInt!=io},{parseInt:io});var ro=function(n){return function(t,i){var u=String(kt(t)),r=vr(i),o=u.length,f,e;return r<0||r>=o?n?"":undefined:(f=u.charCodeAt(r),f<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):(f-55296<<10)+(e-56320)+65536)}},uo={codeAt:ro(!1),charAt:ro(!0)},ua=uo.charAt,fo="String Iterator",fa=c.set,ea=c.getterFor(fo);be(String,"String",function(n){fa(this,{type:fo,string:String(n),index:0})},function(){var n=ea(this),i=n.string,r=n.index,t;return r>=i.length?{value:undefined,done:!0}:(t=ua(i,r),n.index+=t.length,{value:t,done:!1})});var hu=function(n,t,i){for(var r in t)ht(n,r,t[r],i);return n},oa=!f(function(){return Object.isExtensible(Object.preventExtensions({}))}),p=et(function(t){var e=d.f,i=cr("meta"),o=0,r=Object.isExtensible||function(){return!0},f=function(n){e(n,i,{value:{objectID:"O"+ ++o,weakData:{}}})},s=function(t,e){if(!n(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!u(t,i)){if(!r(t))return"F";if(!e)return"E";f(t)}return t[i].objectID},h=function(n,t){if(!u(n,i)){if(!r(n))return!0;if(!t)return!1;f(n)}return n[i].weakData},c=function(n){return oa&&l.REQUIRED&&r(n)&&!u(n,i)&&f(n),n},l=t.exports={REQUIRED:!1,fastKey:s,getWeakData:h,onFreeze:c};ti[i]=!0}),rk=p.REQUIRED,uk=p.fastKey,fk=p.getWeakData,ek=p.onFreeze,sa=o("iterator"),ha=Array.prototype,ca=function(n){return n!==undefined&&(nt.Array===n||ha[sa]===n)},la=o("iterator"),aa=function(n){if(n!=undefined)return n[la]||n["@@iterator"]||nt[ge(n)]},va=function(n,t,i,r){try{return r?t(h(i)[0],i[1]):t(i)}catch(f){var u=n["return"];u!==undefined&&h(u.call(n));throw f;}},eo=et(function(n){var t=function(n,t){this.stopped=n;this.result=t},i=n.exports=function(n,i,r,u,f){var a=ie(i,r,u?2:1),s,c,o,v,e,l;if(f)s=n;else{if(c=aa(n),typeof c!="function")throw TypeError("Target is not iterable");if(ca(c)){for(o=0,v=ui(n.length);v>o;o++)if(e=u?a(h(l=n[o])[0],l[1]):a(n[o]),e&&e instanceof t)return e;return new t(!1)}s=c.call(n)}while(!(l=s.next()).done)if(e=va(s,a,l.value,u),e&&e instanceof t)return e;return new t(!1)};i.stop=function(n){return new t(!0,n)}}),oo=function(n,t,i){if(!(n instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return n},so=o("iterator"),ho=!1;try{var ya=0,co={next:function(){return{done:!!ya++}},"return":function(){ho=!0}};co[so]=function(){return this};Array.from(co,function(){throw 2;})}catch(kb){}var pa=function(n,t){if(!t&&!ho)return!1;var i=!1;try{var r={};r[so]=function(){return{next:function(){return{done:i=!0}}}};n(r)}catch(u){}return i},wa=function(t,i,r){var u,f;return ai&&typeof(u=i.constructor)=="function"&&u!==r&&n(f=u.prototype)&&f!==r.prototype&&ai(t,f),t},ba=function(i,r,u,e,o){var h=t[i],c=h&&h.prototype,s=h,l=e?"set":"add",w={},v=function(t){var i=c[t];ht(c,t,t=="add"?function(n){return i.call(this,n===0?0:n),this}:t=="delete"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:t=="get"?function(t){return o&&!n(t)?undefined:i.call(this,t===0?0:t)}:t=="has"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:function(n,t){return i.call(this,n===0?0:n,t),this})};if(yr(i,typeof h!="function"||!(o||c.forEach&&!f(function(){(new h).entries().next()}))))s=u.getConstructor(r,i,e,l),p.REQUIRED=!0;else if(yr(i,!0)){var y=new s,k=y[l](o?{}:-0,1)!=y,d=f(function(){y.has(1)}),g=pa(function(n){new h(n)}),b=!o&&f(function(){for(var t=new h,n=5;n--;)t[l](n,n);return!t.has(-0)});g||(s=r(function(n,t){oo(n,s,i);var r=wa(new h,n,s);return t!=undefined&&eo(t,r[l],r,e),r}),s.prototype=c,c.constructor=s);(d||b)&&(v("delete"),v("has"),e&&v("get"));(b||k)&&v(l);o&&c.clear&&delete c.clear}return w[i]=s,a({global:!0,forced:s!=h},w),uu(s,i),o||u.setStrong(s,i,e),s},ki=p.getWeakData,ka=c.set,da=c.getterFor,ga=oi.find,nv=oi.findIndex,tv=0,di=function(n){return n.frozen||(n.frozen=new lo)},lo=function(){this.entries=[]},cu=function(n,t){return ga(n.entries,function(n){return n[0]===t})};lo.prototype={get:function(n){var t=cu(this,n);if(t)return t[1]},has:function(n){return!!cu(this,n)},set:function(n,t){var i=cu(this,n);i?i[1]=t:this.entries.push([n,t])},"delete":function(n){var t=nv(this.entries,function(t){return t[0]===n});return~t&&this.entries.splice(t,1),!!~t}};var ao={getConstructor:function(t,i,r,f){var e=t(function(n,t){oo(n,e,i);ka(n,{type:i,id:tv++,frozen:undefined});t!=undefined&&eo(t,n[f],n,r)}),o=da(i),s=function(n,t,i){var r=o(n),u=ki(h(t),!0);return u===!0?di(r).set(t,i):u[r.id]=i,n};return hu(e.prototype,{"delete":function(t){var r=o(this);if(!n(t))return!1;var i=ki(t);return i===!0?di(r)["delete"](t):i&&u(i,r.id)&&delete i[r.id]},has:function(t){var r=o(this);if(!n(t))return!1;var i=ki(t);return i===!0?di(r).has(t):i&&u(i,r.id)}}),hu(e.prototype,r?{get:function(t){var r=o(this);if(n(t)){var i=ki(t);return i===!0?di(r).get(t):i?i[r.id]:undefined}},set:function(n,t){return s(this,n,t)}}:{add:function(n){return s(this,n,!0)}}),e}},ok=et(function(i){var f=c.enforce,v=!t.ActiveXObject&&"ActiveXObject"in t,e=Object.isExtensible,r,s=function(n){return function(){return n(this,arguments.length?arguments[0]:undefined)}},y=i.exports=ba("WeakMap",s,ao,!0,!0);if(pf&&v){r=ao.getConstructor(s,"WeakMap",!0);p.REQUIRED=!0;var u=y.prototype,h=u["delete"],o=u.has,l=u.get,a=u.set;hu(u,{"delete":function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),h.call(this,t)||i.frozen["delete"](t)}return h.call(this,t)},has:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)||i.frozen.has(t)}return o.call(this,t)},get:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)?l.call(this,t):i.frozen.get(t)}return l.call(this,t)},set:function(t,i){if(n(t)&&!e(t)){var u=f(this);u.frozen||(u.frozen=new r);o.call(this,t)?a.call(this,t,i):u.frozen.set(t,i)}else a.call(this,t,i);return this}})}}),lu=o("iterator"),vo=o("toStringTag"),au=vt.values;for(var vu in pr){var yo=t[vu],l=yo&&yo.prototype;if(l){if(l[lu]!==au)try{s(l,lu,au)}catch(kb){l[lu]=au}if(l[vo]||s(l,vo,vu),pr[vu])for(var it in vt)if(l[it]!==vt[it])try{s(l,it,vt[it])}catch(kb){l[it]=vt[it]}}}var po="Expected a function",wo=0/0,iv="[object Symbol]",rv=/^\s+|\s+$/g,uv=/^[-+]0x[0-9a-f]+$/i,fv=/^0b[01]+$/i,ev=/^0o[0-7]+$/i,ov=parseInt,sv=typeof e=="object"&&e&&e.Object===Object&&e,hv=typeof self=="object"&&self&&self.Object===Object&&self,cv=sv||hv||Function("return this")(),lv=Object.prototype,av=lv.toString,vv=Math.max,yv=Math.min,yu=function(){return cv.Date.now()};function pv(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(po);t=bo(t)||0;gi(i)&&(p=!!i.leading,h="maxWait"in i,c=h?vv(bo(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?yv(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=yu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(yu())}function y(){var n=yu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function wv(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new TypeError(po);return gi(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),pv(n,t,{leading:r,maxWait:t,trailing:u})}function gi(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function bv(n){return!!n&&typeof n=="object"}function kv(n){return typeof n=="symbol"||bv(n)&&av.call(n)==iv}function bo(n){if(typeof n=="number")return n;if(kv(n))return wo;if(gi(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=gi(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(rv,"");var i=fv.test(n);return i||ev.test(n)?ov(n.slice(2),i?2:8):uv.test(n)?wo:+n}var ko=wv,dv="Expected a function",go=0/0,gv="[object Symbol]",ny=/^\s+|\s+$/g,ty=/^[-+]0x[0-9a-f]+$/i,iy=/^0b[01]+$/i,ry=/^0o[0-7]+$/i,uy=parseInt,fy=typeof e=="object"&&e&&e.Object===Object&&e,ey=typeof self=="object"&&self&&self.Object===Object&&self,oy=fy||ey||Function("return this")(),sy=Object.prototype,hy=sy.toString,cy=Math.max,ly=Math.min,pu=function(){return oy.Date.now()};function ay(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(dv);t=ns(t)||0;wu(i)&&(p=!!i.leading,h="maxWait"in i,c=h?cy(ns(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?ly(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=pu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(pu())}function y(){var n=pu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function wu(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function vy(n){return!!n&&typeof n=="object"}function yy(n){return typeof n=="symbol"||vy(n)&&hy.call(n)==gv}function ns(n){if(typeof n=="number")return n;if(yy(n))return go;if(wu(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=wu(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(ny,"");var i=iy.test(n);return i||ry.test(n)?uy(n.slice(2),i?2:8):ty.test(n)?go:+n}var ts=ay,py="Expected a function",is="__lodash_hash_undefined__",wy="[object Function]",by="[object GeneratorFunction]",ky=/^\[object .+?Constructor\]$/,dy=typeof e=="object"&&e&&e.Object===Object&&e,gy=typeof self=="object"&&self&&self.Object===Object&&self,rs=dy||gy||Function("return this")();function np(n,t){return n==null?undefined:n[t]}function tp(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}var ip=Array.prototype,rp=Function.prototype,us=Object.prototype,bu=rs["__core-js_shared__"],fs=function(){var n=/[^.]+$/.exec(bu&&bu.keys&&bu.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),es=rp.toString,ku=us.hasOwnProperty,up=us.toString,fp=RegExp("^"+es.call(ku).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ep=ip.splice,op=os(rs,"Map"),yt=os(Object,"create");function w(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function sp(){this.__data__=yt?yt(null):{}}function hp(n){return this.has(n)&&delete this.__data__[n]}function cp(n){var t=this.__data__;if(yt){var i=t[n];return i===is?undefined:i}return ku.call(t,n)?t[n]:undefined}function lp(n){var t=this.__data__;return yt?t[n]!==undefined:ku.call(t,n)}function ap(n,t){var i=this.__data__;return i[n]=yt&&t===undefined?is:t,this}w.prototype.clear=sp;w.prototype["delete"]=hp;w.prototype.get=cp;w.prototype.has=lp;w.prototype.set=ap;function rt(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function vp(){this.__data__=[]}function yp(n){var t=this.__data__,i=nr(t,n);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():ep.call(t,i,1),!0}function pp(n){var t=this.__data__,i=nr(t,n);return i<0?undefined:t[i][1]}function wp(n){return nr(this.__data__,n)>-1}function bp(n,t){var i=this.__data__,r=nr(i,n);return r<0?i.push([n,t]):i[r][1]=t,this}rt.prototype.clear=vp;rt.prototype["delete"]=yp;rt.prototype.get=pp;rt.prototype.has=wp;rt.prototype.set=bp;function b(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function kp(){this.__data__={hash:new w,map:new(op||rt),string:new w}}function dp(n){return tr(this,n)["delete"](n)}function gp(n){return tr(this,n).get(n)}function nw(n){return tr(this,n).has(n)}function tw(n,t){return tr(this,n).set(n,t),this}b.prototype.clear=kp;b.prototype["delete"]=dp;b.prototype.get=gp;b.prototype.has=nw;b.prototype.set=tw;function nr(n,t){for(var i=n.length;i--;)if(ew(n[i][0],t))return i;return-1}function iw(n){if(!ss(n)||uw(n))return!1;var t=ow(n)||tp(n)?fp:ky;return t.test(fw(n))}function tr(n,t){var i=n.__data__;return rw(t)?i[typeof t=="string"?"string":"hash"]:i.map}function os(n,t){var i=np(n,t);return iw(i)?i:undefined}function rw(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function uw(n){return!!fs&&fs in n}function fw(n){if(n!=null){try{return es.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function du(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(py);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache;if(f.has(u))return f.get(u);var e=n.apply(this,r);return i.cache=f.set(u,e),e};return i.cache=new(du.Cache||b),i}du.Cache=b;function ew(n,t){return n===t||n!==n&&t!==t}function ow(n){var t=ss(n)?up.call(n):"";return t==wy||t==by}function ss(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var sw=du,hs=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t?(i=r,!0):!1}),i}return typeof Map!="undefined"?Map:function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){t===void 0&&(t=null);for(var i=0,r=this.__entries__;i<r.length;i++){var u=r[i];n.call(t,u[1],u[0])}},t}()}(),gu=typeof i!="undefined"&&typeof document!="undefined"&&i.document===document,ir=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof i!="undefined"&&i.Math===Math?i:Function("return this")()}(),hw=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ir):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),cw=2;function lw(n,t){var i=!1,r=!1,u=0;function e(){i&&(i=!1,n());r&&f()}function o(){hw(e)}function f(){var n=Date.now();if(i){if(n-u<cw)return;r=!0}else i=!0,r=!1,setTimeout(o,t);u=n}return f}var aw=20,vw=["top","right","bottom","left","width","height","size","weight"],yw=typeof MutationObserver!="undefined",pw=function(){function n(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=lw(this.refresh.bind(this),aw)}return n.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()},n.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},n.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0},n.prototype.connect_=function(){gu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),i.addEventListener("resize",this.refresh),yw?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){gu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),i.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(n){var t=n.propertyName,i=t===void 0?"":t,r=vw.some(function(n){return!!~i.indexOf(n)});r&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),cs=function(n,t){for(var i=0,r=Object.keys(t);i<r.length;i++){var u=r[i];Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0})}return n},ut=function(n){var t=n&&n.ownerDocument&&n.ownerDocument.defaultView;return t||ir},ls=ur(0,0,0,0);function rr(n){return parseFloat(n)||0}function as(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return i.reduce(function(t,i){var r=n["border-"+i+"-width"];return t+rr(r)},0)}function ww(n){for(var i={},t=0,r=["top","right","bottom","left"];t<r.length;t++){var u=r[t],f=n["padding-"+u];i[u]=rr(f)}return i}function bw(n){var t=n.getBBox();return ur(0,0,t.width,t.height)}function kw(n){var f=n.clientWidth,e=n.clientHeight;if(!f&&!e)return ls;var t=ut(n).getComputedStyle(n),i=ww(t),o=i.left+i.right,s=i.top+i.bottom,r=rr(t.width),u=rr(t.height);if(t.boxSizing==="border-box"&&(Math.round(r+o)!==f&&(r-=as(t,"left","right")+o),Math.round(u+s)!==e&&(u-=as(t,"top","bottom")+s)),!gw(n)){var h=Math.round(r+o)-f,c=Math.round(u+s)-e;Math.abs(h)!==1&&(r-=h);Math.abs(c)!==1&&(u-=c)}return ur(i.left,i.top,r,u)}var dw=function(){return typeof SVGGraphicsElement!="undefined"?function(n){return n instanceof ut(n).SVGGraphicsElement}:function(n){return n instanceof ut(n).SVGElement&&typeof n.getBBox=="function"}}();function gw(n){return n===ut(n).document.documentElement}function nb(n){return gu?dw(n)?bw(n):kw(n):ls}function tb(n){var t=n.x,i=n.y,r=n.width,u=n.height,e=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,f=Object.create(e.prototype);return cs(f,{x:t,y:i,width:r,height:u,top:i,right:t+r,bottom:u+i,left:t}),f}function ur(n,t,i,r){return{x:n,y:t,width:i,height:r}}var ib=function(){function n(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=ur(0,0,0,0);this.target=n}return n.prototype.isActive=function(){var n=nb(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},n}(),rb=function(){function n(n,t){var i=tb(t);cs(this,{target:n,contentRect:i})}return n}(),ub=function(){function n(n,t,i){if(this.activeObservations_=[],this.observations_=new hs,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n;this.controller_=t;this.callbackCtx_=i}return n.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof ut(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new ib(n)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof ut(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new rb(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),vs=typeof WeakMap!="undefined"?new WeakMap:new hs,ys=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=pw.getInstance(),r=new ub(t,i,this);vs.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){ys.prototype[n]=function(){var t;return(t=vs.get(this))[n].apply(t,arguments)}});var fb=function(){return typeof ir.ResizeObserver!="undefined"?ir.ResizeObserver:ys}(),ft=null,ps=null;wr&&i.addEventListener("resize",function(){ps!==i.devicePixelRatio&&(ps=i.devicePixelRatio,ft=null)});function ws(){if(ft===null){if(typeof document=="undefined")return ft=0;var t=document.body,n=document.createElement("div");n.classList.add("asl_simplebar-hide-scrollbar");t.appendChild(n);var i=n.getBoundingClientRect().right;t.removeChild(n);ft=i}return ft}var r=function(){function t(n,r){var u=this;(this.onScroll=function(){u.scrollXTicking||(i.requestAnimationFrame(u.scrollX),u.scrollXTicking=!0);u.scrollYTicking||(i.requestAnimationFrame(u.scrollY),u.scrollYTicking=!0)},this.scrollX=function(){u.axis.x.isOverflowing&&(u.showScrollbar("x"),u.positionScrollbar("x"));u.scrollXTicking=!1},this.scrollY=function(){u.axis.y.isOverflowing&&(u.showScrollbar("y"),u.positionScrollbar("y"));u.scrollYTicking=!1},this.onMouseEnter=function(){u.showScrollbar("x");u.showScrollbar("y")},this.onMouseMove=function(n){if(u.mouseX=n.clientX,u.mouseY=n.clientY,u.axis.x.isOverflowing||u.axis.x.forceVisible)u.onMouseMoveForAxis("x");if(u.axis.y.isOverflowing||u.axis.y.forceVisible)u.onMouseMoveForAxis("y")},this.onMouseLeave=function(){if(u.onMouseMove.cancel(),u.axis.x.isOverflowing||u.axis.x.forceVisible)u.onMouseLeaveForAxis("x");if(u.axis.y.isOverflowing||u.axis.y.forceVisible)u.onMouseLeaveForAxis("y");u.mouseX=-1;u.mouseY=-1},this.onWindowResize=function(){u.scrollbarWidth=u.getScrollbarWidth();u.hideNativeScrollbar()},this.hideScrollbars=function(){u.axis.x.track.rect=u.axis.x.track.el.getBoundingClientRect();u.axis.y.track.rect=u.axis.y.track.el.getBoundingClientRect();u.isWithinBounds(u.axis.y.track.rect)||(u.axis.y.scrollbar.el.classList.remove(u.classNames.visible),u.axis.y.isVisible=!1);u.isWithinBounds(u.axis.x.track.rect)||(u.axis.x.scrollbar.el.classList.remove(u.classNames.visible),u.axis.x.isVisible=!1)},this.onPointerEvent=function(n){var t,i;if(u.axis.x.track.rect=u.axis.x.track.el.getBoundingClientRect(),u.axis.y.track.rect=u.axis.y.track.el.getBoundingClientRect(),(u.axis.x.isOverflowing||u.axis.x.forceVisible)&&(t=u.isWithinBounds(u.axis.x.track.rect)),(u.axis.y.isOverflowing||u.axis.y.forceVisible)&&(i=u.isWithinBounds(u.axis.y.track.rect)),(t||i)&&(n.preventDefault(),n.stopPropagation(),n.type==="mousedown")){if(t)if(u.axis.x.scrollbar.rect=u.axis.x.scrollbar.el.getBoundingClientRect(),u.isWithinBounds(u.axis.x.scrollbar.rect))u.onDragStart(n,"x");else u.onTrackClick(n,"x");if(i)if(u.axis.y.scrollbar.rect=u.axis.y.scrollbar.el.getBoundingClientRect(),u.isWithinBounds(u.axis.y.scrollbar.rect))u.onDragStart(n,"y");else u.onTrackClick(n,"y")}},this.drag=function(n){var r,f=u.axis[u.draggedAxis].track,e=f.rect[u.axis[u.draggedAxis].sizeAttr],o=u.axis[u.draggedAxis].scrollbar,s=u.contentWrapperEl[u.axis[u.draggedAxis].scrollSizeAttr],h=parseInt(u.elStyles[u.axis[u.draggedAxis].sizeAttr],10);n.preventDefault();n.stopPropagation();r=u.draggedAxis==="y"?n.pageY:n.pageX;var c=r-f.rect[u.axis[u.draggedAxis].offsetAttr]-u.axis[u.draggedAxis].dragOffset,l=c/(e-o.size),i=l*(s-h);u.draggedAxis==="x"&&(i=u.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i-(e+o.size):i,i=u.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-i:i);u.contentWrapperEl[u.axis[u.draggedAxis].scrollOffsetAttr]=i},this.onEndDrag=function(n){n.preventDefault();n.stopPropagation();u.el.classList.remove(u.classNames.dragging);document.removeEventListener("mousemove",u.drag,!0);document.removeEventListener("mouseup",u.onEndDrag,!0);u.removePreventClickId=i.setTimeout(function(){document.removeEventListener("click",u.preventClick,!0);document.removeEventListener("dblclick",u.preventClick,!0);u.removePreventClickId=null})},this.preventClick=function(n){n.preventDefault();n.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},r),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el))||(this.recalculate=ko(this.recalculate.bind(this),64),this.onMouseMove=ko(this.onMouseMove.bind(this),64),this.hideScrollbars=ts(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ts(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=sw(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"><\/div><\/div>';var n=r.firstElementChild;document.body.appendChild(n);var u=n.firstElementChild;n.scrollLeft=0;var f=t.getOffset(n),i=t.getOffset(u);n.scrollLeft=999;var e=t.getOffset(u);return{isRtlScrollingInverted:f.left!==i.left&&i.left-e.left!=0,isRtlScrollbarInverted:f.left!==i.left}};t.getOffset=function(n){var t=n.getBoundingClientRect();return{top:t.top+(i.pageYOffset||document.documentElement.scrollTop),left:t.left+(i.pageXOffset||document.documentElement.scrollLeft)}};var n=t.prototype;return n.init=function(){t.instances.set(this.el,this);wr&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track);t.classList.add(this.classNames.scrollbar);n.appendChild(t);this.axis.x.track.el=n.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=n.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asl_simplebar","init")},n.initListeners=function(){var n=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);i.addEventListener("resize",this.onWindowResize);var t=!1;this.resizeObserver=new fb(function(){t&&n.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);i.requestAnimationFrame(function(){t=!0});this.mutationObserver=new MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){this.elStyles=i.getComputedStyle(this.el);this.isRtl=this.elStyles.direction==="rtl";var f=this.heightAutoObserverEl.offsetHeight<=1,e=this.heightAutoObserverEl.offsetWidth<=1,t=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,h=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var n=this.contentEl.scrollHeight,r=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=f?"auto":"100%";this.placeholderEl.style.width=e?t+"px":"auto";this.placeholderEl.style.height=n+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r>t;this.axis.y.isOverflowing=n>u;this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing=h==="hidden"?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0;this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0;this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,l=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&r>o-l;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>u-c;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},n.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],t,u=i/r;return t=Math.max(~~(u*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},n.positionScrollbar=function(n){if(n===void 0&&(n="y"),this.axis[n].isOverflowing){var e=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];r=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-r:r;var s=r/(e-o),i=~~((f-u.size)*s);i=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i+(f-u.size):i;u.el.style.transform=n==="x"?"translate3d("+i+"px, 0, 0)":"translate3d(0, "+i+"px, 0)"}},n.toggleTrackVisibility=function(n){n===void 0&&(n="y");var t=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden");i.style.display=this.axis[n].isOverflowing?"block":"none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect();this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[n].scrollbar.rect);t?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.el.classList.remove(this.classNames.hover);this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(n){n===void 0&&(n="y");var t=this.axis[n].scrollbar.el;this.axis[n].isVisible||(t.classList.add(this.classNames.visible),this.axis[n].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(n,t){t===void 0&&(t="y");var r=this.axis[t].scrollbar,u=t==="y"?n.pageY:n.pageX;this.axis[t].dragOffset=u-r.rect[this.axis[t].offsetAttr];this.draggedAxis=t;this.el.classList.add(this.classNames.dragging);document.addEventListener("mousemove",this.drag,!0);document.addEventListener("mouseup",this.onEndDrag,!0);this.removePreventClickId===null?(document.addEventListener("click",this.preventClick,!0),document.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(n,t){var u=this;t===void 0&&(t="y");this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var l=this.axis[t].scrollbar,e=l.rect[this.axis[t].offsetAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),r=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],a=t==="y"?this.mouseY-e:this.mouseX-e,s=a<0?-1:1,h=s===-1?r-o:r+o,c=40,f=function f(){if(s===-1){if(r>h){var n;r-=c;u.contentWrapperEl.scrollTo((n={},n[u.axis[t].offsetAttr]=r,n));i.requestAnimationFrame(f)}}else if(r<h){var e;r+=c;u.contentWrapperEl.scrollTo((e={},e[u.axis[t].offsetAttr]=r,e));i.requestAnimationFrame(f)}};f()},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style?0:ws()}catch(n){return ws()}},n.removeListeners=function(){var n=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.removeEventListener("scroll",this.onScroll);i.removeEventListener("resize",this.onWindowResize);this.mutationObserver.disconnect();this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners();t.instances.delete(this.el)},n.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},n.findChild=function(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(n){return i.call(n,t)})[0]},t}();r.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{contentEl:"asl_simplebar-content",contentWrapper:"asl_simplebar-content-wrapper",offset:"asl_simplebar-offset",mask:"asl_simplebar-mask",wrapper:"asl_simplebar-wrapper",placeholder:"asl_simplebar-placeholder",scrollbar:"asl_simplebar-scrollbar",track:"asl_simplebar-track",heightAutoObserverWrapperEl:"asl_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asl_simplebar-height-auto-observer",visible:"asl_simplebar-visible",horizontal:"asl_simplebar-horizontal",vertical:"asl_simplebar-vertical",hover:"asl_simplebar-hover",dragging:"asl_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};r.instances=new WeakMap;var bs=function(n){return function(t,i,r,u){te(i);var o=ei(t),e=bt(o),s=ui(o.length),f=n?s-1:0,h=n?-1:1;if(r<2)while(!0){if(f in e){u=e[f];f+=h;break}if(f+=h,n?f<0:s<=f)throw TypeError("Reduce of empty array with no initial value");}for(;n?f>=0:s>f;f+=h)f in e&&(u=i(u,e[f],f,o));return u}},eb={left:bs(!1),right:bs(!0)},ob=eb.left;a({target:"Array",proto:!0,forced:oe("reduce")},{reduce:function(n){return ob(this,n,arguments.length,arguments.length>1?arguments[1]:undefined)}});var sb=d.f,nf=Function.prototype,hb=nf.toString,cb=/^\s*function ([^ (]*)/,ks="name";!v||ks in nf||sb(nf,ks,{configurable:!0,get:function(){try{return hb.call(this).match(cb)[1]}catch(n){return""}}});var lb=function(){var t=h(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n},fr=RegExp.prototype.exec,ab=String.prototype.replace,ds=fr,tf=function(){var n=/a/,t=/b*/g;return fr.call(n,"a"),fr.call(t,"a"),n.lastIndex!==0||t.lastIndex!==0}(),rf=/()??/.exec("")[1]!==undefined,vb=tf||rf;vb&&(ds=function(n){var i=this,u,f,t,r;return rf&&(f=new RegExp("^"+i.source+"$(?!\\s)",lb.call(i))),tf&&(u=i.lastIndex),t=fr.call(i,n),tf&&t&&(i.lastIndex=i.global?t.index+t[0].length:u),rf&&t&&t.length>1&&ab.call(t[0],f,function(){for(r=1;r<arguments.length-2;r++)arguments[r]===undefined&&(t[r]=undefined)}),t});var uf=ds;a({target:"RegExp",proto:!0,forced:/./.exec!==uf},{exec:uf});var ck=o("species"),lk=!f(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"".replace(n,"$<a>")!=="7"}),ak=!f(function(){var n=/(?:)/,i=n.exec;n.exec=function(){return i.apply(this,arguments)};var t="ab".split(n);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),yb=uo.charAt,vk=function(n,t,i){return t+(i?yb(n,t).length:1)},yk=function(n,t){var i=n.exec;if(typeof i=="function"){var r=i.call(n,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(k(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return uf.call(n,t)},pk=Math.max,wk=Math.min,bk=Math.floor,kk=function(n){return n===undefined?n:String(n)},er=function(n){return Array.prototype.reduce.call(n,function(n,t){var r=t.name.match(/data-asl_simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,function(n,t){return t.toUpperCase()});switch(t.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case undefined:n[i]=!0;break;default:n[i]=t.value}}return n},{})};return r.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);i.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'),function(n){r.instances.has(n)||new r(n,er(n.attributes))})},r.removeObserver=function(){this.globalObserver.disconnect()},r.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);typeof MutationObserver!="undefined"&&(this.globalObserver=new MutationObserver(r.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)?(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),i.addEventListener("load",this.initDOMLoadedElements)):i.setTimeout(this.initDOMLoadedElements)},r.handleMutations=function(n){n.forEach(function(n){Array.prototype.forEach.call(n.addedNodes,function(n){n.nodeType===1&&(n.hasAttribute("data-asl_simplebar")?r.instances.has(n)||new r(n,er(n.attributes)):Array.prototype.forEach.call(n.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'),function(n){r.instances.has(n)||new r(n,er(n.attributes))}))});Array.prototype.forEach.call(n.removedNodes,function(n){n.nodeType===1&&(n.hasAttribute('[data-asl_simplebar="init"]')?r.instances.has(n)&&r.instances.get(n).unMount():Array.prototype.forEach.call(n.querySelectorAll('[data-asl_simplebar="init"]'),function(n){r.instances.has(n)&&r.instances.get(n).unMount()}))})})},r.getOptions=er,wr&&r.initHtmlApi(),r})}(asljQuery,asljQuery,window),function(n,t,i){
3
  /*! Ajax Search Lite 4.6 js */
4
+ (function(t){var r,a=!0,c={init:function(n,i){var r=this;this.elem=i;this.$elem=t(i);r.searching=!1;r.o=t.extend({blocking:!1},n);r.n={};r.n.container=t(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=t(".probox",r.n.container);r.n.proinput=t(".proinput",r.n.container);r.n.text=t(".proinput input.orig",r.n.container);r.n.textAutocomplete=t(".proinput input.autocomplete",r.n.container);r.n.loading=t(".proinput .loading",r.n.container);r.n.proloading=t(".proloading",r.n.container);r.n.proclose=t(".proclose",r.n.container);r.n.promagnifier=t(".promagnifier",r.n.container);r.n.prosettings=t(".prosettings",r.n.container);r.n.searchsettings=t("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=t("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=t("#asl_hidden_data");r.n.aslItemOverlay=t(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=t(".showmore",r.n.resultsDiv);r.n.items=t(".item",r.n.resultsDiv);r.n.results=t(".results",r.n.resultsDiv);r.n.resdrg=t(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.firstClick=!0;r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof asl_SimpleBar!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=t("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var n=t(this).parent();!n.hasClass("isotopic");)n=n.parent();var i=t(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),t("fieldset",r.n.searchsettings).each(function(){t(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),y()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var n=this;a&&r==null&&(r=localStorage.getItem("asl-"+u.encode(location.href)),r!=null&&(r=JSON.parse(r),r.settings=u.decode(r.settings)));r!=null&&typeof r.id!="undefined"&&r.id==n.o.id&&(r.phrase!=""&&(n.triggerPrevState=!0,n.n.text.val(r.phrase)),h(t("form",n.n.searchsettings))!=r.settings&&(n.triggerPrevState=!0,h(t("form",n.n.searchsettings),r.settings)));localStorage.removeItem("asl-"+u.encode(location.href));n.n.resultsDiv.on("click",".results .item",function(){var i=n.n.text.val();if(i!=""||n.settingsChanged){var r={id:n.o.id,phrase:i,settings:u.encode(h(t("form",n.n.searchsettings)))};localStorage.setItem("asl-"+u.encode(location.href),JSON.stringify(r))}})},duplicateCheck:function(){var i=this,n={};t("div[id*=ajaxsearchlite]").each(function(){n.hasOwnProperty(this.id)?t(this).remove():n[this.id]="true"})},gaPageview:function(n){var u=this,t=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="pageview")return!1;if(ASL.analytics.string!=""){var r=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1,f=typeof gtag=="function"?gtag:!1;i.location.origin||(i.location.origin=i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:""));var e=u.o.homeurl.replace(i.location.origin,"");f!==!1?t!==!1&&f("config",t,{page_path:e+ASL.analytics.string.replace("{asl_term}",n)}):r!==!1&&(t!==!1&&r("create",t,"auto"),r("send","pageview",{page:e+ASL.analytics.string.replace("{asl_term}",n),title:"Ajax Search"}))}},gaEvent:function(n,i){var u=this,f=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="event")return!1;var e=typeof gtag=="function"?gtag:!1,o=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1;if(e===!1&&o===!1)return!1;if(typeof ASL.analytics.event[n]!="undefined"&&ASL.analytics.event[n].active==1&&typeof"gtag"!="undefined"){var s={search_id:u.o.id,search_name:u.o.name,phrase:u.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},r={event_category:ASL.analytics.event[n].category,event_label:ASL.analytics.event[n].label,value:ASL.analytics.event[n].value};i=t.extend(s,i);t.each(i,function(n,i){i=String(i).replace(/[\s\n\r]+/g," ").trim();t.each(r,function(t,u){var f=new RegExp("{"+n+"}","gmi");r[t]=u.replace(f,i)})});e===!1?(f!==!1&&o("create",f,"auto"),o("send","event",r.event_category,ASL.analytics.event[n].action,r.event_label,r.value)):(f!==!1&&(r.send_to=f),e("event",ASL.analytics.event[n].action,r))}},gaGetTrackingID:function(){var r=this,n=!1;if(typeof ASL.analytics=="undefined")return n;if(typeof ASL.analytics.tracking_id!="undefined"&&ASL.analytics.tracking_id!="")return ASL.analytics.tracking_id;var i=typeof gtag=="function"?gtag:!1;if(i!==!1&&typeof ga!="undefined"&&typeof ga.getAll!="undefined"){var t=!1;return ga.getAll().forEach(function(n){t=n.get("trackingId")}),t}return n},createVerticalScroll:function(){var n=this;n.is_scroll&&typeof n.scroll.recalculate=="undefined"&&(n.scroll=new asl_SimpleBar(n.n.results.get(0),{direction:t("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}))},initEvents:function(){var r=this;if(f()&&s())r.n.text.on("touchstart",function(){r.savedScrollTop=t(i).scrollTop();r.savedContainerTop=r.n.container.offset().top});r.n.text.click(function(){t(this).focus();r.gaEvent("focus")});r.n.text.on("focus input",function(){r.searching||(t(this).val()!=""?r.n.proclose.css("display","block"):r.n.proclose.css({display:"none"}))});t(r.n.text.parent()).submit(function(t){if(t.preventDefault(),f())if(r.o.redirect_on_enter){var i=n.Event("keyup");i.keyCode=i.which=13;r.n.text.trigger(i)}else r.o.redirectEnterTo=="ajax_search"&&(r.search(),document.activeElement.blur());else r.o.redirectEnterTo=="ajax_search"&&r.search()});r.n.text.click(function(){r.firstClick&&(t(this).val(""),r.firstClick=!1)});r.n.resultsDiv.css({opacity:0});t(document).bind("click touchend",function(){(r.hideSettings(),r.opened!=!1&&r.o.closeOnDocClick==1)&&r.hideResults()});r.n.proclose.on("click touchend",function(){r.n.text.val("");r.n.textAutocomplete.val("");r.hideResults();r.n.text.focus()});t(r.elem).bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.resultsDiv.bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.searchsettings.bind("click touchend",function(n){n.stopImmediatePropagation()});r.n.prosettings.on("click",function(){r.n.prosettings.data("opened")==0?r.showSettings():r.hideSettings()});var o=r.n.container.parents().filter(function(){return t(this).css("position")=="fixed"});if((o.length>0||r.n.container.css("position")=="fixed")&&(r.n.resultsDiv.css("position")=="absolute"&&r.n.resultsDiv.css("position","fixed"),r.n.resultsDiv.css("z-index",99999999999),r.o.blocking||r.n.searchsettings.css("position","fixed")),f())t(i).on("orientationchange",function(){r.orientationChange();setTimeout(function(){r.orientationChange()},800)});else{var u;t(i).on("resize",function(){clearTimeout(u);u=setTimeout(function(){r.resize()},100)})}var e;t(i).on("scroll",function(){clearTimeout(e);e=setTimeout(function(){r.scrolling(!1)},400)});s()&&f()&&v()&&parseInt(r.n.text.css("font-size"))<16&&(r.n.text.data("fontSize",r.n.text.css("font-size")).css("font-size","16px"),r.n.textAutocomplete.css("font-size","16px"),t("<style>#ajaxsearchlite"+r.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));r.initNavigationEvent();r.initMagnifierEvent();r.initAutocompleteEvent();r.initFacetEvents()},initAutop:function(){var n=this;if(r!=null&&n.triggerPrevState)return n.search(),r=null,!1},initEtc:function(){var n=this,i=null;t("div.asl_option",n.n.searchsettings).on("mouseup touchend",function(r){if(r.preventDefault(),r.stopImmediatePropagation(),n.dragging)return!1;t('input[type="checkbox"]',this).prop("checked",!t('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){t('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});t("div.asl_option label",n.n.searchsettings).click(function(n){n.preventDefault()});n.n.resultsDiv.on("click",".results .item",function(){n.gaEvent("result_click",{result_title:t(this).find("a.asl_res_url").text(),result_url:t(this).find("a.asl_res_url").attr("href")})})},initNavigationEvent:function(){var n=this;t(n.n.resultsDiv).on("mouseenter",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered");t(this).addClass("hovered")});t(n.n.resultsDiv).on("mouseleave",".item",function(){t(".item",n.n.resultsDiv).removeClass("hovered")});t(document).keydown(function(r){if(i.event)var u=i.event.keyCode,o=i.event.type;else if(r)var u=r.which,o=r.type;if(t(".item",n.n.resultsDiv).length>0&&n.n.resultsDiv.css("display")!="none"){if(u==40||u==38){u==40&&(n.n.text.blur(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).first().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));u==38&&(n.n.text.blur(),t(".item.hovered",n.n.resultsDiv).length==0?t(".item",n.n.resultsDiv).last().addClass("hovered"):t(".item.hovered",n.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));r.stopPropagation();r.preventDefault();var f=n.is_scroll?t(n.scroll.getScrollElement()):n.n.results,e=n.n.resultsDiv.find(".resdrg .item.hovered");e.length==0&&(e=n.n.resultsDiv.children().first());f.animate({scrollTop:e.offset().top-f.offset().top+f.scrollTop()},{duration:120})}u==13&&t(".item.hovered",n.n.resultsDiv).length>0&&(r.stopPropagation(),r.preventDefault(),t(".item.hovered a.asl_res_url",n.n.resultsDiv).get(0).click())}})},initMagnifierEvent:function(){var n=this,r,f,u=!1;n.n.text.on("keyup",function(e){if(i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):e&&(n.keycode=e.which,n.ktype=e.type),n.keycode==13){if(clearTimeout(f),f=setTimeout(function(){u=!1},300),u)return!1;u=!0}var o=t(this).hasClass("orig");if(n.n.text.val().length>=n.o.charcount&&o&&n.ktype=="keyup"&&n.keycode==13){if(n.gaEvent("return"),n.o.redirect_on_enter==1)n.o.redirectEnterTo!="first_result"?n.doRedirectToResults(n.ktype):n.search();else{if(n.o.redirectEnterTo=="nothing")return!1;t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&n.resultsOpened||n.search()}clearTimeout(r)}});n.n.promagnifier.add(n.n.text).bind("click input",function(u){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):u&&(n.keycode=u.which,n.ktype=u.type);var f=t(this).hasClass("orig");if(n.n.text.val().length<n.o.charcount){n.n.proloading.css("display","none");n.hideResults();n.post!=null&&n.post.abort();clearTimeout(r);return}if(n.n.text.val().length>=n.o.charcount&&!f&&n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo!="first_result"){n.doRedirectToResults(n.ktype);clearTimeout(r);return}if((!(n.keycode>=37)||!(n.keycode<=40))&&(!(n.keycode>=112)||!(n.keycode<=123))){if(f&&n.ktype=="click"||n.keycode==32){t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()==n.lastSuccesfulSearch&&(n.n.proclose.css("display","block"),n.resultsOpened||n.showResults());return}t(this).hasClass("orig")&&n.ktype=="click"||(f||n.ktype!="click"||n.gaEvent("magnifier"),n.o.trigger_on_click!=0||n.ktype!="click")&&(n.o.triggerontype!=0||n.ktype!="input")&&(!f||n.ktype!="input"||n.o.redirectEnterTo!="nothing")&&(f||n.ktype!="click"||n.o.redirectClickTo!="nothing")&&(n.post!=null&&n.post.abort(),clearTimeout(r),n.hideLoader(),r=setTimeout(function(){if(t("form",n.n.searchsettings).serialize()+n.n.text.val().trim()!=n.lastSuccesfulSearch)n.search();else{if(n.n.proclose.css("display","block"),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;n.resultsOpened||n.showResults()}},250))}})},initFacetEvents:function(){var n=this,i=null;if(n.o.trigger_on_facet_change==1){t("input[type!=checkbox], select",n.n.searchsettings).on("change slidechange",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),clearTimeout(i),i=setTimeout(function(){n.search()},50))});t("input[type=checkbox]",n.n.searchsettings).on("asl_chbx_change",function(){n.n.text.val().length<n.o.charcount||(n.post!=null&&n.post.abort(),n.gaEvent("facet_change",{option_label:t(this).closest("fieldset").find("legend").text(),option_value:t(this).closest(".asl_option").find(".asl_option_label").text()+(t(this).prop("checked")?"(checked)":"(unchecked)")}),clearTimeout(i),i=setTimeout(function(){n.search()},50))})}},isRedirectToFirstResult:function(){var n=this;return t(".asl_res_url",n.n.resultsDiv).length>0&&(n.o.redirectonclick==1&&n.ktype=="click"&&n.o.redirectClickTo=="first_result"||n.o.redirect_on_enter==1&&(n.ktype=="input"||n.ktype=="keyup")&&n.keycode==13&&n.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var n=this,i;return i=n.ktype=="click"?n.o.redirectClickLoc:n.o.redirectEnterLoc,i=="same"?location.href=t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href"):l(t(t(".asl_res_url",n.n.resultsDiv).get(0)).attr("href")),n.hideLoader(),n.hideResults(),!1},doRedirectToResults:function(n){var i=this,s=i.ktype=="click"?i.o.redirectClickTo:i.o.redirectEnterTo,r=n=="click"?i.o.redirectClickLoc:i.o.redirectEnterLoc;if(s=="results_page")var f="?s="+e(i.n.text.val());else if(s=="woo_results_page")var f="?post_type=product&s="+e(i.n.text.val());else var f=i.o.redirect_url.replace("{phrase}",e(i.n.text.val()));if(i.o.overridewpdefault)if(i.o.override_method=="post")o(i.o.homeurl+f,"post",{asl_active:1,p_asl_data:t("form",i.n.searchsettings).serialize()},r);else{var h=i.o.homeurl+f+"&asl_active=1&p_asid="+i.o.id+"&p_asl_data="+u.encode(t("form",i.n.searchsettings).serialize());r=="same"?location.href=h:l(h)}else o(i.o.homeurl+f,"post",{np_asl_data:t("form",i.n.searchsettings).serialize()},r);i.n.proloading.css("display","none");i.hideLoader();i.hideResults();i.post!=null&&i.post.abort()},destroy:function(){return this.each(function(){var n=t.extend({},this,c);t(i).unbind(n)})},searchfor:function(n){t(".proinput input",this).val(n).trigger("keyup")},initAutocompleteEvent:function(){var n=this;n.o.autocomplete.enabled!=1||f()||n.n.text.keyup(function(r){i.event?(n.keycode=i.event.keyCode,n.ktype=i.event.type):r&&(n.keycode=r.which,n.ktype=r.type);var u=39;t("body").hasClass("rtl")&&(u=37);n.keycode==u&&n.n.textAutocomplete.val()!=""?(r.preventDefault(),n.n.text.val(n.n.textAutocomplete.val()),n.post!=null&&n.post.abort(),n.search()):(n.postAuto!=null&&n.postAuto.abort(),n.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var n=this,i=n.n.text.val();if(n.n.text.val()==""){n.n.textAutocomplete.val("");return}var r=n.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(n.n.textAutocomplete.val(""),t.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:n.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=t("<textarea />").html(response).text(),response=response.substr(i.length),n.n.textAutocomplete.val(i+response))}}))},search:function(){var n=this;if((!n.searching||!0)&&!(n.n.text.val().length<n.o.charcount)){n.searching=!0;n.n.proloading.css({display:"block"});n.n.proclose.css({display:"none"});var i={action:"ajaxsearchlite_search",aslp:n.n.text.val(),asid:n.o.id,options:t("form",n.n.searchsettings).serialize()};if(JSON.stringify(i)===JSON.stringify(n.lastSearchData))return(n.resultsOpened||n.showResults(),n.hideLoader(),n.isRedirectToFirstResult())?(n.doRedirectToFirstResult(),!1):!1;n.gaEvent("search_start");n.post=t.post(ASL.ajaxurl,i,function(r){if(r=r.replace(/^\s*[\r\n]/gm,""),r=r.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1],n.n.resdrg.html(""),n.n.resdrg.html(r),t(".asl_keyword",n.n.resdrg).bind("click",function(){n.n.text.val(t(this).html());t("input.orig",n.n.container).val(t(this).html()).keydown();t("form",n.n.container).trigger("submit","ajax");n.search()}),n.n.items=t(".item",n.n.resultsDiv),n.gaEvent("search_end",{results_count:n.n.items.length}),n.gaPageview(n.n.text.val()),n.isRedirectToFirstResult())return n.doRedirectToFirstResult(),!1;if(n.hideLoader(),n.showResults(),n.scrollToResults(),n.lastSuccesfulSearch=t("form",n.n.searchsettings).serialize()+n.n.text.val().trim(),n.lastSearchData=i,n.n.items.length==0)n.n.showmore!=null&&n.n.showmore.css("display","none");else if(n.n.showmore!=null){n.n.showmore.css("display","block");t("a",n.n.showmore).off();t("a",n.n.showmore).on("click",function(){var r=n.o.redirectClickTo,i="?s="+e(n.n.text.val());i=r=="results_page"?"?s="+e(n.n.text.val()):r=="woo_results_page"?"?post_type=product&s="+e(n.n.text.val()):n.o.redirect_url.replace("{phrase}",e(n.n.text.val()));n.o.overridewpdefault?n.o.override_method=="post"?o(n.o.homeurl+i,"post",{asl_active:1,p_asl_data:t("form",n.n.searchsettings).serialize()}):location.href=n.o.homeurl+i+"&asl_active=1&p_asid="+n.o.id+"&p_asl_data="+u.encode(t("form",n.n.searchsettings).serialize()):o(n.o.homeurl+i,"post",{np_asl_data:t("form",n.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(n.n.resdrg.html(""),n.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),n.n.items=t(".item",n.n.resultsDiv),n.hideLoader(),n.showResults(),n.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;n.createVerticalScroll();switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.is_scroll&&typeof n.scroll.recalculate!="undefined"&&setTimeout(function(){n.scroll.recalculate()},500);n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});f()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var n=$this.n.probox.offset().top-20;else var n=$this.n.resultsDiv.offset().top-20;t("#wpadminbar").length>0&&(n-=t("#wpadminbar").height());n=n<0?0:n;t("body, html").animate({scrollTop:n},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var n=this;if(n.showResultsBox(),n.n.items.length>0){var e=n.n.items.length<n.o.itemscount?n.n.items.length:n.o.itemscount,h=t(".group",n.n.resultsDiv);if(n.n.items.length<=n.o.itemscount)n.n.results.css({height:"auto"});else{n.n.results.css({height:30});n.resize();var i=0,r=0,u=0,f=0;n.n.items.each(function(){r+=t(this).outerHeight(!0);t(this).outerHeight(!0)>f&&(f=t(this).outerHeight(!0));i++});u=f*e;u>r&&(u=r);i=i<1?1:i;r=r/i*e;n.n.results.css({height:u})}if(n.resize(),n.n.items.last().addClass("asp_last_item"),n.o.highlight==1){var o=n.o.highlightwholewords==1?!0:!1;t("div.item",n.n.resultsDiv).highlight(n.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:o})}}n.resize();n.n.items.length==0&&n.n.results.css({height:"auto"});n.n.results.css({overflowY:"auto"});var s=n.is_scroll?t(n.scroll.getScrollElement()):n.n.results;s.scrollTop(0);n.addAnimation();n.fixResultsPosition(!0);n.searching=!1},addAnimation:function(){var i=this,n=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){t(u).addClass(i.animation)},n);n=n+60;r++})},removeAnimation:function(){var n=this;n.n.items.each(function(){var i=this;t(i).removeClass(n.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var n=this;n.n.searchsettings.css(n.settAnim.showCSS);n.n.searchsettings.removeClass(n.settAnim.hideClass).addClass(n.settAnim.showClass);n.settScroll==null&&n.is_scroll&&(n.settScroll=[],t(".asl_sett_scroll",n.n.searchsettings).each(function(i){var r=this;setTimeout(function(){n.settScroll[i]=new asl_SimpleBar(t(r).get(0),{direction:t("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));n.n.prosettings.data("opened",1);n.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var n=this;t(".searchsettings",n.n.container).length>0&&(t("body>#ajaxsearchlitesettings"+n.o.rid).remove(),t("body>#ajaxsearchliteres"+n.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(n){n=typeof n=="undefined"?!1:n;var i=this,u=i.n.resultsDiv.css("position");if(u=="fixed"||u=="absolute"){var e=0;if(t("body").css("position")!="static"&&(e=t("body").offset().top),n==!0||i.n.resultsDiv.css("visibility")=="visible"){var o=0,h=0,r=i.n.container.offset();if(u=="fixed"&&(e=0,o=t(document).scrollTop(),h=t(document).scrollLeft(),f()&&s()&&i.n.text.is(":focus")&&(o=i.savedScrollTop,r.top=i.savedContainerTop)),typeof r!="undefined"){var c=i.n.container.outerWidth()<240?240:i.n.container.outerWidth();i.n.resultsDiv.outerWidth(c);i.n.resultsDiv.css({top:r.top+i.n.container.outerHeight(!0)+10-e-o,left:r.left-h})}}}},fixSettingsPosition:function(n){n=typeof n=="undefined"?!1:n;var r=this,h=0;if(t("body").css("position")!="static"&&(h=t("body").offset().top),(n==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var e=r.n.prosettings;else var e=r.n.promagnifier;var u=e.offset(),o=0,c=0;r.n.searchsettings.css("position")=="fixed"&&(o=t(i).scrollTop(),c=t(i).scrollLeft(),f()&&s()&&r.n.text.is(":focus")&&(u.top=r.savedContainerTop,o=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:u.top+e.height()-2-h-o,left:u.left-c}):r.n.searchsettings.css({display:"block",top:u.top+e.height()-2-h-o,left:u.left+e.width()-r.n.searchsettings.width()-c})}},fixSettingsWidth:function(){}};function v(){return!("ontouchstart"in i)?0:1}function f(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function h(n,i){var r=n.find(":input").get();return arguments.length===1?(i={},t.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||t(this).hasClass("asp_datepicker_field")||t(this).hasClass("asp_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(t(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),t.each(r,function(){if(this.name&&i[this.name]){var n=i[this.name],r=t(this);if(Object.prototype.toString.call(n)!=="[object Array]"&&(n=[n]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<n.length;u++)if(n[u]==e){f=!0;break}r.attr("checked",f)}else r.val(n[0])}}),n)}function e(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function o(n,i,r,u){"use strict";var f;f=t("<form />",{action:n,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&t.each(r,function(n,i){t("<input />",{type:"hidden",name:n,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").submit()}function l(n){t('<a href="'+n+'" target="_blank">').get(0).click()}function s(){return typeof i.navigator!="undefined"&&typeof i.navigator.userAgent!="undefined"?i.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function y(){var n=i.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});t.plugin=function(n,i){t.fn[n]=function(r){return this.each(function(){t.data(this,n)||t.data(this,n,Object.create(i).init(r,this))})}};t.plugin("ajaxsearchlite",c);var u={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,i,h,c,s,r,f=0;for(n=u._utf8_encode(n);f<n.length;)o=n.charCodeAt(f++),t=n.charCodeAt(f++),i=n.charCodeAt(f++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,r=i&63,isNaN(t)?s=r=64:isNaN(i)&&(r=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(r);return e},decode:function(n){var t="",o,s,h,c,f,r,e,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),r=this._keyStr.indexOf(n.charAt(i++)),e=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|f>>4,s=(f&15)<<4|r>>2,h=(r&3)<<6|e,t=t+String.fromCharCode(o),r!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return u._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}})(n)}(asljQuery,asljQuery,window),function(n,t,i){i.ASL=i.ASL||{};i.ASL.getScope=function(){if(typeof n!="undefined")if(typeof n.fn.ajaxsearchlite=="undefined")for(var t=n,r=n,u=0;u<10;u++)if(typeof t.fn.ajaxsearchlite=="undefined")t=n.noConflict(!0);else return t.fn.jquery!=r.fn.jquery&&(i.jQuery=i.$=r),t;else return n;return typeof i[ASL.js_scope]!="undefined"?i[ASL.js_scope]:eval(ASL.js_scope)};i.ASL.initialized=!1;i.ASL.initialize=function(n){var i=this;if(typeof i.getScope=="undefined")return!1;var t=i.getScope(),r=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0)t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))});else{typeof n!="undefined"&&(r="div[id*=asl_init_id_"+n+"]");function u(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function f(n){var t="",s,h,c,l,e,r,o,i=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=f.indexOf(n.charAt(i++)),e=f.indexOf(n.charAt(i++)),r=f.indexOf(n.charAt(i++)),o=f.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return u(t)}t(r).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=f(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})}i.initialized=!0};i.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})};i.ASL.ready=function(){var n=this,t=n.getScope(),r=null;t(document).ready(function(){n.initialize();setTimeout(function(){n.fixClones()},2500)});t(i).on("load",function(){n.initialized||(n.initialize(),setTimeout(function(){n.fixClones()},2500),console.log("ASL initialized via window.load"))});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&t("body").bind("DOMSubtreeModified",function(){clearTimeout(r);r=setTimeout(function(){n.initialize()},500)});var u;t(i).on("resize",function(){clearTimeout(u);u=setTimeout(function(){n.fixClones()},2e3)})};i._ASL=ASL;i._ASL.ready()}(asljQuery,asljQuery,window);
js/min/jquery.ajaxsearchlite.min.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(n){typeof define=="function"&&!1&&define.amd&&define.amd.jQuery?define(["jquery"],n):typeof module!="undefined"&&!1&&module.exports?n(require("jquery")):n(jQuery)})(function(n){var r="left",u="right",f="up",e="down",v="in",y="out",p="none",nt="auto",w="swipe",b="pinch",k="tap",tt="doubletap",it="longtap",d="horizontal",g="vertical",l="all",ut=10,rt="start",o="move",t="end",i="cancel",c="ontouchstart"in window,a=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!c,s=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!c,h="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(this,arguments);else if(!i&&(typeof t=="object"||!t))return ft.apply(this,arguments);return r};n.fn.swipe.version="1.6.15";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:o,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:v,OUT:y};n.fn.swipe.pageScroll={NONE:p,HORIZONTAL:d,VERTICAL:g,AUTO:nt};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:l};function ft(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=p),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new et(this,t),r.data(h,i))})}function et(ft,et){var et=n.extend({},et),si=c||s||!et.fallbackToMouseEvents,hi=si?s?a?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ki=si?s?a?"MSPointerMove":"pointermove":"touchmove":"mousemove",di=si?s?a?"MSPointerUp":"pointerup":"touchend":"mouseup",ri=si?s?"mouseleave":null:"mouseleave",ci=s?a?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,gt=0,ni=0,pt=1,bt=0,kt=0,li=null,ot=n(ft),st="start",ct=0,ht={},gi=0,ai=0,vi=0,nr=0,ti=0,fi=null,ei=null;try{ot.bind(hi,tr);ot.bind(ci,ui)}catch(ff){n.error("events not supported "+hi+","+ci+" on jQuery.swipe")}this.enable=function(){return ot.bind(hi,tr),ot.bind(ci,ui),ot};this.disable=function(){return lr(),ot};this.destroy=function(){lr();ot.data(h,null);ot=null};this.option=function(t,i){if(typeof t=="object")et=n.extend(et,t);else if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return et;return null};function tr(t){if(!pu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var r=t.originalEvent?t.originalEvent:t,f,u=r.touches,e=u?u[0]:r;return(st=rt,u?ct=u.length:et.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,gt=0,ni=0,pt=1,bt=0,li=ku(),dr(),wi(0,e),!u||ct===et.fingers||et.fingers===l||oi()?(gi=ii(),ct==2&&(wi(1,u[1]),gt=ni=cr(ht[0].start,ht[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=wt(r,st))):f=!1,f===!1)?(st=i,wt(r,st),f):(et.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);et.hold&&(f=et.hold.call(ot,r,r.target))},this),et.longTapThreshold)),pi(!0),null)}}function ir(n){var f=n.originalEvent?n.originalEvent:n;if(st!==t&&st!==i&&!yi()){var s,r=f.touches,h=r?r[0]:f,u=gr(h);if(ai=ii(),r&&(ct=r.length),et.hold&&clearTimeout(ei),st=o,ct==2&&(gt==0?(wi(1,r[1]),gt=ni=cr(ht[0].start,ht[1].start)):(gr(r[1]),ni=cr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),pt=du(gt,ni),bt=Math.abs(gt-ni)),ct===et.fingers||et.fingers===l||!r||oi()){if(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),s=wt(f,st),!et.triggerOnTouchEnd||et.triggerOnTouchLeave){var e=!0;if(et.triggerOnTouchLeave){var c=rf(this);e=uf(u.end,c)}!et.triggerOnTouchEnd&&e?st=fr(o):et.triggerOnTouchLeave&&!e&&(st=fr(t));(st==i||st==t)&&wt(f,st)}}else st=i,wt(f,st);s===!1&&(st=i,wt(f,st))}}function rr(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;if(u){if(u.length&&!yi())return yu(r),!0;if(u.length&&yi())return!0}return yi()&&(ct=nr),ai=ii(),lt=tu(),or()||!er()?(st=i,wt(r,st)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&st===o?(et.preventDefaultEvents!==!1&&n.preventDefault(),st=t,wt(r,st)):!et.triggerOnTouchEnd&&br()?(st=t,dt(r,st,k)):st===o&&(st=i,wt(r,st)),pi(!1),null}function ui(){ct=0;ai=0;gi=0;gt=0;ni=0;pt=1;dr();pi(!1)}function ur(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(st=fr(t),wt(i,st))}function lr(){ot.unbind(hi,tr);ot.unbind(ci,ui);ot.unbind(ki,ir);ot.unbind(di,rr);ri&&ot.unbind(ri,ur);pi(!1)}function fr(n){var r=n,f=ar(),u=er(),e=or();return!f||e?r=i:u&&n==o&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?r=t:!u&&n==t&&et.triggerOnTouchLeave&&(r=i),r}function wt(n,r){var u,f=n.touches;return(eu()||sr())&&(u=dt(n,r,w)),(fu()||oi())&&u!==!1&&(u=dt(n,r,b)),au()&&u!==!1?u=dt(n,r,tt):vu()&&u!==!1?u=dt(n,r,it):lu()&&u!==!1&&(u=dt(n,r,k)),r===i&&(sr()&&(u=dt(n,r,w)),oi()&&(u=dt(n,r,b)),ui(n)),r===t&&(f?f.length||ui(n):ui(n)),u}function dt(o,s,h){var c;if(h==w){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),et.swipeStatus&&(c=et.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&yr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),et.swipe&&(c=et.swipe.call(ot,o,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);et.swipeLeft&&(c=et.swipeLeft.call(ot,o,vt,at,lt,ct,ht,yt));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);et.swipeRight&&(c=et.swipeRight.call(ot,o,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);et.swipeUp&&(c=et.swipeUp.call(ot,o,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);et.swipeDown&&(c=et.swipeDown.call(ot,o,vt,at,lt,ct,ht,yt))}}}if(h==b){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,pt,ht]),et.pinchStatus&&(c=et.pinchStatus.call(ot,o,s,kt||null,bt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&vr())switch(kt){case v:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchIn&&(c=et.pinchIn.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht));break;case y:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchOut&&(c=et.pinchOut.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht))}}return h==k?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),hr()&&!su()?(ti=ii(),fi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[o.target]);et.tap&&(c=et.tap.call(ot,o,o.target))},this),et.doubleTapThreshold)):(ti=null,ot.trigger("tap",[o.target]),et.tap&&(c=et.tap.call(ot,o,o.target)))):h==tt?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),ti=null,ot.trigger("doubletap",[o.target]),et.doubleTap&&(c=et.doubleTap.call(ot,o,o.target))):h==it&&(s===i||s===t)&&(clearTimeout(fi),ti=null,ot.trigger("longtap",[o.target]),et.longTap&&(c=et.longTap.call(ot,o,o.target))),c}function er(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function or(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=nu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?bt>=et.pinchThreshold:!0}function ar(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===p)n.preventDefault();else{var i=et.allowPageScroll===nt;switch(t){case r:(et.swipeLeft&&i||!i&&et.allowPageScroll!=d)&&n.preventDefault();break;case u:(et.swipeRight&&i||!i&&et.allowPageScroll!=d)&&n.preventDefault();break;case f:(et.swipeUp&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case e:(et.swipeDown&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault()}}}function vr(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function oi(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function fu(){return!!(vr()&&oi())}function yr(){var n=ar(),t=er(),i=pr(),r=wr(),u=or();return!u&&r&&i&&t&&n}function sr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function eu(){return!!(yr()&&sr())}function pr(){return ct===et.fingers||et.fingers===l||!c}function wr(){return ht[0].end.x!==0}function br(){return!!et.tap}function hr(){return!!et.doubleTap}function ou(){return!!et.longTap}function kr(){if(ti==null)return!1;var n=ii();return hr()&&n-ti<=et.doubleTapThreshold}function su(){return kr()}function hu(){return(ct===1||!c)&&(isNaN(at)||at<et.threshold)}function cu(){return lt>et.longTapThreshold&&at<ut}function lu(){return!!(hu()&&br())}function au(){return!!(kr()&&hr())}function vu(){return!!(cu()&&ou())}function yu(n){vi=ii();nr=n.touches.length+1}function dr(){vi=0;nr=0}function yi(){var n=!1;if(vi){var t=ii()-vi;t<=et.fingerReleaseThreshold&&(n=!0)}return n}function pu(){return!!(ot.data(h+"_intouch")===!0)}function pi(n){ot&&(n===!0?(ot.bind(ki,ir),ot.bind(di,rr),ri&&ot.bind(ri,ur)):(ot.unbind(ki,ir,!1),ot.unbind(di,rr,!1),ri&&ot.unbind(ri,ur,!1)),ot.data(h+"_intouch",n===!0))}function wi(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=n.identifier!==undefined?n.identifier:0,t=wu(i);return t===null&&(t=wi(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){t=Math.max(t,nu(n));li[n].distance=t}function nu(n){return li[n]?li[n].distance:undefined}function ku(){var n={};return n[r]=bi(r),n[u]=bi(u),n[f]=bi(f),n[e]=bi(e),n}function bi(n){return{direction:n,distance:0}}function tu(){return ai-gi}function cr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return pt<1?y:v}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function iu(n,t){var i=tf(n,t);return i<=45&&i>=0?r:i<=360&&i>=315?r:i>=135&&i<=225?u:i>45&&i<135?e:f}function ii(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}}});jQuery.extend({highlight:function(n,t,i,r){if(n.nodeType===3){var u=n.data.match(t);if(u){var o=document.createElement(i||"span");if(o.className=r||"highlight",/\.|,|\s/.test(u[0].charAt(0)))var s=u.index+1;else var s=u.index;var f=n.splitText(s);f.splitText(u[1].length);var h=f.cloneNode(!0);return o.appendChild(h),f.parentNode.replaceChild(o,f),1}}else if(n.nodeType===1&&n.childNodes&&!/(script|style)/i.test(n.tagName)&&!(n.tagName===i.toUpperCase()&&n.className===r))for(var e=0;e<n.childNodes.length;e++)e+=jQuery.highlight(n.childNodes[e],t,i,r);return 0}});jQuery.fn.unhighlight=function(n){var t={className:"highlight",element:"span"};return jQuery.extend(t,n),this.find(t.element+"."+t.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()};jQuery.fn.highlight=function(n,t){var i={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(i,t),n.constructor===String&&(n=[n]),n=jQuery.grep(n,function(n){return n!=""}),n=jQuery.map(n,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),n.length==0)return this;var u=i.caseSensitive?"":"i",r="("+n.join("|")+")";i.wordsOnly&&(r="(?:,|^|\\s)"+r+"(?:,|$|\\s)");var f=new RegExp(r,u);return this.each(function(){jQuery.highlight(this,f,i.element,i.className)})};!function(n){"function"==typeof define&&!1&&define.amd?define(["jquery"],n):"object"==typeof exports&&!1?module.exports=n:n(jQuery)}(function(n){function u(i){var u=i||window.event,p=c.call(arguments,1),l=0,s=0,o=0,a=0,w=0,b=0;if(i=n.event.fix(u),i.type="mousewheel","detail"in u&&(o=-1*u.detail),"wheelDelta"in u&&(o=u.wheelDelta),"wheelDeltaY"in u&&(o=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*o,o=0),l=0===o?s:o,"deltaY"in u&&(o=-1*u.deltaY,l=o),"deltaX"in u&&(s=u.deltaX,0===o&&(l=-1*s)),0!==o||0!==s){if(1===u.deltaMode){var v=n.data(this,"mousewheel-line-height");l*=v;o*=v;s*=v}else if(2===u.deltaMode){var y=n.data(this,"mousewheel-page-height");l*=y;o*=y;s*=y}if(a=Math.max(Math.abs(o),Math.abs(s)),(!t||t>a)&&(t=a,e(u,a)&&(t/=40)),e(u,a)&&(l/=40,s/=40,o/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),o=Math[o>=1?"floor":"ceil"](o/t),r.settings.normalizeOffset&&this.getBoundingClientRect){var k=this.getBoundingClientRect();w=i.clientX-k.left;b=i.clientY-k.top}return i.deltaX=s,i.deltaY=o,i.deltaFactor=t,i.offsetX=w,i.offsetY=b,i.deltaMode=0,p.unshift(i,l,s,o),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,p)}}function h(){t=null}function e(n,t){return r.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice;if(n.event.fixHooks)for(var s=o.length;s;)n.event.fixHooks[o[--s]]=n.event.mouseHooks;var r=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",r.getLineHeight(this));n.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(n){"function"==typeof define&&!1&&define.amd?define(["jquery"],n):"object"==typeof exports&&!1?module.exports=n:n(jQuery)}(function(n){function u(i){var u=i||window.event,p=c.call(arguments,1),l=0,s=0,o=0,a=0,w=0,b=0;if(i=n.event.fix(u),i.type="mousewheel","detail"in u&&(o=-1*u.detail),"wheelDelta"in u&&(o=u.wheelDelta),"wheelDeltaY"in u&&(o=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*o,o=0),l=0===o?s:o,"deltaY"in u&&(o=-1*u.deltaY,l=o),"deltaX"in u&&(s=u.deltaX,0===o&&(l=-1*s)),0!==o||0!==s){if(1===u.deltaMode){var v=n.data(this,"mousewheel-line-height");l*=v;o*=v;s*=v}else if(2===u.deltaMode){var y=n.data(this,"mousewheel-page-height");l*=y;o*=y;s*=y}if(a=Math.max(Math.abs(o),Math.abs(s)),(!t||t>a)&&(t=a,e(u,a)&&(t/=40)),e(u,a)&&(l/=40,s/=40,o/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),o=Math[o>=1?"floor":"ceil"](o/t),r.settings.normalizeOffset&&this.getBoundingClientRect){var k=this.getBoundingClientRect();w=i.clientX-k.left;b=i.clientY-k.top}return i.deltaX=s,i.deltaY=o,i.deltaFactor=t,i.offsetX=w,i.offsetY=b,i.deltaMode=0,p.unshift(i,l,s,o),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,p)}}function h(){t=null}function e(n,t){return r.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice;if(n.event.fixHooks)for(var s=o.length;s;)n.event.fixHooks[o[--s]]=n.event.mouseHooks;var r=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",r.getLineHeight(this));n.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});typeof jQuery.fn.mCustScr=="undefined"?!function(n){"function"==typeof define&&!1&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&!1&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){!function(t){var i="function"==typeof define&&!1&&define.amd,r="undefined"!=typeof module&&!1&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//"+"cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"+"%3E%3C/script%3E")));t()}(function(){var h,c="mCustScr",t="mCSap",it=".mCustScr",ot={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},pt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,e=!1,i=["mCSBap_dragger_onDrag","mCSBap_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSBap_draggerContainer","mCSBap_buttonUp","mCSBap_buttonDown","mCSBap_buttonLeft","mCSBap_buttonRight"],s={init:function(r){var r=n.extend(!0,{},ot,r),e=v.call(this);if(r.live){var u=r.liveSelector||this.selector||it,f=n(u);if("off"===r.live)return void k(u);b[u]=setTimeout(function(){f.mCustScr(r);"once"===r.live&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":wt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,"object"!=typeof r.mouseWheel&&1==r.mouseWheel&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=bt(r.scrollButtons.scrollType),st(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++pt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,st(f));kt.call(this);e&&f.callbacks.onCreate&&"function"==typeof f.callbacks.onCreate&&f.callbacks.onCreate.call(this);n("#mCSBap_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this);if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSBap_"+e.idx+"_container"),a=n("#mCSBap_"+e.idx),c=[n("#mCSBap_"+e.idx+"_dragger_vertical"),n("#mCSBap_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&"function"==typeof r.callbacks.onBeforeUpdate&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());dt.call(this);"y"===r.axis||r.advanced.autoExpandHorizontalScroll||h.css("width",ht(h));e.overflowed=ii.call(this);ct.call(this);r.autoDraggerLength&&ni.call(this);ti.call(this);ri.call(this);var l=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];"x"!==r.axis&&(e.overflowed[0]?c[0].height()>c[0].parent().height()?y.call(this):(u(s,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),"y"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[1]&&u(s,l[1].toString(),{dir:"x",dur:0,overwrite:"none"})));"y"!==r.axis&&(e.overflowed[1]?c[1].width()>c[1].parent().width()?y.call(this):(u(s,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),"x"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[0]&&u(s,l[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(2===f&&r.callbacks.onImageLoad&&"function"==typeof r.callbacks.onImageLoad?r.callbacks.onImageLoad.call(this):3===f&&r.callbacks.onSelectorChange&&"function"==typeof r.callbacks.onSelectorChange?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&"function"==typeof r.callbacks.onUpdate&&r.callbacks.onUpdate.call(this));et.call(this)}})},scrollTo:function(i,r){if("undefined"!=typeof i&&null!=i){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ft.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=at.call(this,e[0],"y");e[1]=at.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=wi()?0:l;setTimeout(function(){null!==e[0]&&"undefined"!=typeof e[0]&&"x"!==h.axis&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));null!==e[1]&&"undefined"!=typeof e[1]&&"y"!==h.axis&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this);u.data(t)&&(u.data(t),et.call(this,"remove"),g.call(this),r&&y.call(this),ct.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSBap_"+u.idx),o=n("#mCSBap_"+u.idx+"_container"),h=n(".mCSBap_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);et.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");h.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(c+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return"object"!=typeof n(this)||n(this).length<1?it:this},st=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},wt=function(n){return"yx"===n||"xy"===n||"auto"===n?"yx":"x"===n||"horizontal"===n?"x":"y"},bt=function(n){return"stepped"===n||"pixels"===n||"step"===n||"click"===n?"stepped":"stepless"},kt=function(){var f=n(this),u=f.data(t),r=u.opt,h=r.autoExpandScrollbar?" "+i[1]+"_expand":"",e=["<div id='mCSBap_"+u.idx+"_scrollbar_vertical' class='mCSBap_scrollTools mCSBap_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSBap_scrollTools_vertical"+h+"'><div class='"+i[12]+"'><div id='mCSBap_"+u.idx+"_dragger_vertical' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /><\/div><div class='mCSBap_draggerRail' /><\/div><\/div>","<div id='mCSBap_"+u.idx+"_scrollbar_horizontal' class='mCSBap_scrollTools mCSBap_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSBap_scrollTools_horizontal"+h+"'><div class='"+i[12]+"'><div id='mCSBap_"+u.idx+"_dragger_horizontal' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /><\/div><div class='mCSBap_draggerRail' /><\/div><\/div>"],v="yx"===r.axis?"mCSBap_vertical_horizontal":"x"===r.axis?"mCSBap_horizontal":"mCSBap_vertical",l="yx"===r.axis?e[0]+e[1]:"x"===r.axis?e[1]:e[0],y="yx"===r.axis?"<div id='mCSBap_"+u.idx+"_container_wrapper' class='mCSBap_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w="x"!==r.axis&&"rtl"===u.langDir?" "+i[7]:"";r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft="y"!==r.axis&&"rtl"===u.langDir?"989999px":r.setLeft;f.addClass(c+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSBap_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSBap_"+u.idx+"_container' class='mCSBap_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+u.langDir+"' /><\/div>");var a=n("#mCSBap_"+u.idx),s=n("#mCSBap_"+u.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||s.css("width",ht(s));"outside"===r.scrollbarPosition?("static"===f.css("position")&&f.css("position","relative"),f.css("overflow","visible"),a.addClass("mCSBap_outside").after(l)):(a.addClass("mCSBap_inside").append(l),s.wrap(y));gt.call(this);var o=[n("#mCSBap_"+u.idx+"_dragger_vertical"),n("#mCSBap_"+u.idx+"_dragger_horizontal")];o[0].css("min-height",o[0].height());o[1].css("min-width",o[1].width())},ht=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},dt=function(){var e=n(this),u=e.data(t),r=u.opt,i=n("#mCSBap_"+u.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var f=Math.ceil(i[0].scrollWidth);3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&f>i.parent().width()?i.css({width:f,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSBap_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},gt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSBap_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' "+f+" />","<a href='#' class='"+i[14]+"' "+f+" />","<a href='#' class='"+i[15]+"' "+f+" />","<a href='#' class='"+i[16]+"' "+f+" />"],e=["x"===u.axis?r[2]:r[0],"x"===u.axis?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSBap_scrollTools").prepend(e[2]).append(e[3])},ni=function(){var s=n(this),u=s.data(t),f=n("#mCSBap_"+u.idx),e=n("#mCSBap_"+u.idx+"_container"),r=[n("#mCSBap_"+u.idx+"_dragger_vertical"),n("#mCSBap_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSBap_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ti=function(){var s=n(this),i=s.data(t),u=n("#mCSBap_"+i.idx),f=n("#mCSBap_"+i.idx+"_container"),r=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSBap_scrollTools");"active"===t?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||("hide"===t?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ii=function(){var h=n(this),r=h.data(t),e=n("#mCSBap_"+r.idx),i=n("#mCSBap_"+r.idx+"_container"),u=null==r.overflowed?i.height():i.outerHeight(!1),f=null==r.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSBap_"+i.idx),e=n("#mCSBap_"+i.idx+"_container"),h=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")];if(o(r),("x"!==f.axis&&!i.overflowed[0]||"y"===f.axis&&i.overflowed[0])&&(h[0].add(e).css("top",0),u(r,"_resetY")),"y"!==f.axis&&!i.overflowed[1]||"x"===f.axis&&i.overflowed[1]){var s=dx=0;"rtl"===i.langDir&&(s=c.width()-e.outerWidth(!1),dx=Math.abs(s/i.scrollRatio.x));e.css("left",s);h[1].css("left",dx);u(r,"_resetX")}},ri=function(){function u(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),oi.call(f[0])):u()},100)}var f=n(this),r=f.data(t),i=r.opt;if(!r.bindEvents){if(ui.call(this),i.contentTouchScroll&&fi.call(this),ei.call(this),i.mouseWheel.enable){var e;u()}hi.call(this);li.call(this);i.advanced.autoScrollOnFocus&&ci.call(this);i.scrollButtons.enable&&ai.call(this);i.keyboard.enable&&vi.call(this);r.bindEvents=!0}},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSBap_"+r.idx+"_scrollbar",e=n("#mCSBap_"+r.idx+",#mCSBap_"+r.idx+"_container,#mCSBap_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSBap_"+r.idx+"_dragger_vertical,#mCSBap_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSBap_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ct=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSBap_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSBap_"+u.idx+"_container"),e=[n("#mCSBap_"+u.idx+"_scrollbar_vertical"),n("#mCSBap_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSBap_dragger"),e[1].find(".mCSBap_dragger")];"x"!==o.axis&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));"y"!==o.axis&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[n(frameElement).offset().top,n(frameElement).offset().left]:null,r=l()&&t.target.ownerDocument!==top.document&&null!==frameElement?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0];switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+r[0],t.originalEvent.pageX-i[1]+r[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var u=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[u.screenY,u.screenX,f>1]:[u.pageY,u.pageX,f>1];default:return i?[t.pageY-i[0]+r[0],t.pageX-i[1]+r[1],!1]:[t.pageY,t.pageX,!1]}},ui=function(){function k(n,t,r,f){if(w[0].idleTimer=h.scrollInertia<233?250:0,i.attr("id")===y[1])var e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x;else var e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y;u(v,o.toString(),{dir:e,drag:!0})}var i,c,a,v=n(this),s=v.data(t),h=s.opt,f=t+"_"+s.idx,y=["mCSBap_"+s.idx+"_dragger_vertical","mCSBap_"+s.idx+"_dragger_horizontal"],w=n("#mCSBap_"+s.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),g=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);b.bind("contextmenu."+f,function(n){n.preventDefault()}).bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),yt(t)){e=!0;p&&(document.onselectstart=function(){return!1});lt.call(w,!1);o(v);i=n(this);var u=i.offset(),f=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;l>f&&f>0&&y>s&&s>0&&(c=f,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+f,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;k(c,a,u,f)});n(document).add(nt).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;k(c,a,u,f)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);e=!1;p&&(document.onselectstart=null);lt.call(w,!0)})},fi=function(){function at(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;it=0;rt=0;st=1;g.removeClass("mCS_touch_action");var t=b.offset();k=r(n)[0]-t.top;d=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function vt(n){if(nt(n)&&!e&&!r(n)[2]&&(f.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),(!rt||it)&&st)){gt=w();var o=ut.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";if(et.push(t),ot.push(u),v[2]=Math.abs(r(n)[0]-v[0]),v[3]=Math.abs(r(n)[1]-v[1]),i.overflowed[0])var c=ft[0].parent().height()-ft[0].height(),l=k-t>0&&t-k>-(c*i.scrollRatio.y)&&(2*v[3]<v[2]||"yx"===f.axis);if(i.overflowed[1])var a=ft[1].parent().width()-ft[1].width(),y=d-u>0&&u-d>-(a*i.scrollRatio.x)&&(2*v[2]<v[3]||"yx"===f.axis);l||y?(ii||n.preventDefault(),it=1):(rt=1,g.addClass("mCS_touch_action"));ii&&n.preventDefault();s="yx"===f.axis?[k-t,d-u]:"x"===f.axis?[null,d-u]:[k-t,null];b[0].idleTimer=250;i.overflowed[0]&&tt(s[0],ni,h,"y","all",!0);i.overflowed[1]&&tt(s[1],ni,h,"x",lt,!0)}}function yt(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;n.stopImmediatePropagation();o(g);dt=w();var t=ut.offset();bt=r(n)[0]-t.top;kt=r(n)[1]-t.left;et=[];ot=[]}function pt(n){if(nt(n)&&!e&&!r(n)[2]){st=0;n.stopImmediatePropagation();it=0;rt=0;ht=w();var h=ut.offset(),l=r(n)[0]-h.top,a=r(n)[1]-h.left;if(!(ht-gt>30)){c=1e3/(ht-dt);var v="mcsEaseOut",o=2.5>c,p=o?[et[et.length-2],ot[ot.length-2]]:[0,0];y=o?[l-p[0],a-p[1]]:[l-bt,a-kt];var t=[Math.abs(y[0]),Math.abs(y[1])];c=o?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[c,c];var u=[Math.abs(b[0].offsetTop)-y[0]*wt(t[0]/c[0],c[0]),Math.abs(b[0].offsetLeft)-y[1]*wt(t[1]/c[1],c[1])];s="yx"===f.axis?[u[0],u[1]]:"x"===f.axis?[null,u[1]]:[u[0],null];ct=[4*t[0]+f.scrollInertia,4*t[1]+f.scrollInertia];var k=parseInt(f.contentTouchScroll)||0;s[0]=t[0]>k?s[0]:0;s[1]=t[1]>k?s[1]:0;i.overflowed[0]&&tt(s[0],ct[0],v,"y",lt,!1);i.overflowed[1]&&tt(s[1],ct[1],v,"x",lt,!1)}}}function wt(n,t){var i=[1.5*t,2*t,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function tt(n,t,i,r,f,e){n&&u(g,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var st,k,d,bt,kt,dt,gt,ht,y,c,s,ct,it,rt,g=n(this),i=g.data(t),f=i.opt,a=t+"_"+i.idx,ut=n("#mCSBap_"+i.idx),b=n("#mCSBap_"+i.idx+"_container"),ft=[n("#mCSBap_"+i.idx+"_dragger_vertical"),n("#mCSBap_"+i.idx+"_dragger_horizontal")],et=[],ot=[],ni=0,lt="yx"===f.axis?"none":"all",v=[],ti=b.find("iframe"),p=["touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,"touchmove."+a+" pointermove."+a+" MSPointerMove."+a,"touchend."+a+" pointerup."+a+" MSPointerUp."+a],ii=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;b.bind(p[0],function(n){at(n)}).bind(p[1],function(n){vt(n)});ut.bind(p[0],function(n){yt(n)}).bind(p[2],function(n){pt(n)});ti.length&&ti.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){at(n);yt(n)}).bind(p[1],function(n){vt(n)}).bind(p[2],function(n){pt(n)})})})},ei=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function i(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;ut(a,n,t,"mcsLinearOut",i?60:null)}var u,a=n(this),f=a.data(t),v=f.opt,l=f.sequential,s=t+"_"+f.idx,o=n("#mCSBap_"+f.idx+"_container"),c=o.parent();o.bind("mousedown."+s,function(){h||u||(u=1,e=!0)}).add(document).bind("mousemove."+s,function(n){if(!h&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,e=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<c.height()&&e>0&&e<c.width()?l.step&&i("off",null,"stepped"):("x"!==v.axis&&f.overflowed[0]&&(0>t?i("on",38):t>c.height()&&i("on",40)),"y"!==v.axis&&f.overflowed[1]&&(0>e?i("on",37):e>c.width()&&i("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){h||(u&&(u=0,i("off",null)),e=!1)})},oi=function(){function h(t,h){if(o(s),!si(s,t.target)){var v="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,y=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var a="x",l=[Math.round(v*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.width()?.9*e.width():l[0],k=Math.abs(n("#mCSBap_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c="y"===i.mouseWheel.axis?t.deltaY||h:t.deltaX;else var a="y",l=[Math.round(v*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.height()?.9*e.height():l[0],k=Math.abs(n("#mCSBap_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;("y"!==a||r.overflowed[0])&&("x"!==a||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=0>c?-1:1),(c>0&&0!==b||0>c&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,y=17),u(s,(k-c*w).toString(),{dir:a,dur:y}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,c=t+"_"+r.idx,e=n("#mCSBap_"+r.idx),f=[n("#mCSBap_"+r.idx+"_dragger_vertical"),n("#mCSBap_"+r.idx+"_dragger_horizontal")],a=n("#mCSBap_"+r.idx+"_container").find("iframe");a.length&&a.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+c,function(n,t){h(n,t)})})});e.bind("mousewheel."+c,function(n,t){h(n,t)})}},rt={},l=function(t){var r=!1,i=!1,u=null;if(void 0===t?i="#empty":void 0!==n(t).attr("id")&&(i=n(t).attr("id")),i!==!1&&void 0!==rt[i])return rt[i];if(t){try{var f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=null!==u}else{try{var f=top.document;u=f.body.innerHTML}catch(e){}r=null!==u}return i!==!1&&(rt[i]=r),r},lt=function(n){var t=this.find("iframe");if(t.length){var i=n?"auto":"none";t.css("pointer-events",i)}},si=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},hi=function(){var s,h=n(this),f=h.data(t),r=t+"_"+f.idx,c=n("#mCSBap_"+f.idx+"_container"),l=c.parent(),a=n(".mCSBap_"+f.idx+"_scrollbar ."+i[12]);a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){e=!0;n(t.target).hasClass("mCSBap_dragger")||(s=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){e=!1}).bind("click."+r,function(t){if(s&&(s=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSBap_draggerRail"))){o(h);var r=n(this),e=r.find(".mCSBap_dragger");if(r.parent(".mCSBap_scrollTools_horizontal").length>0){if(!f.overflowed[1])return;var v="x",a=t.pageX>e.offset().left?-1:1,y=Math.abs(c[0].offsetLeft)-a*.9*l.width()}else{if(!f.overflowed[0])return;var v="y",a=t.pageY>e.offset().top?-1:1,y=Math.abs(c[0].offsetTop)-a*.9*l.height()}u(h,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},ci=function(){var i=n(this),s=i.data(t),e=s.opt,c=t+"_"+s.idx,r=n("#mCSBap_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(e.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[f(t)[0],f(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l="yx"!==e.axis||c[0]||c[1]?"all":"none";"x"===e.axis||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});"y"===e.axis||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},li=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSBap_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){0===r.scrollTop()&&0===r.scrollLeft()||n(".mCSBap_"+i.idx+"_scrollbar").css("visibility","hidden")})},ai=function(){var f=n(this),r=f.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSBap_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function i(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;ut(f,n,t)}if(t.preventDefault(),yt(t)){var s=n(this).attr("class");switch(u.type=o.scrollButtons.scrollType,t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===u.type)return;e=!0;r.tweenRunning=!1;i("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===u.type)return;e=!1;u.dir&&i("off",s);break;case"click":if("stepped"!==u.type||r.tweenRunning)return;i("on",s)}}})},vi=function(){function a(t){function l(n,t){s.type=r.keyboard.scrollType;s.scrollAmount=r.keyboard.scrollAmount;"stepped"===s.type&&i.tweenRunning||ut(e,n,t)}switch(t.type){case"blur":i.tweenRunning&&s.dir&&l("off",null);break;case"keydown":case"keyup":var c=t.keyCode?t.keyCode:t.which,a="on";if("x"!==r.axis&&(38===c||40===c)||"y"!==r.axis&&(37===c||39===c)){if((38===c||40===c)&&!i.overflowed[0]||(37===c||39===c)&&!i.overflowed[1])return;"keyup"===t.type&&(a="off");n(document.activeElement).is(v)||(t.preventDefault(),t.stopImmediatePropagation(),l(a,c))}else if(33===c||34===c){if((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){o(e);var y=34===c?-1:1;if("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0])var p="x",w=Math.abs(f[0].offsetLeft)-y*.9*h.width();else var p="y",w=Math.abs(f[0].offsetTop)-y*.9*h.height();u(e,w.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===c||36===c)&&!n(document.activeElement).is(v)&&((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0])var p="x",w=35===c?Math.abs(h.width()-f.outerWidth(!1)):0;else var p="y",w=35===c?Math.abs(h.height()-f.outerHeight(!1)):0;u(e,w.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSBap_"+i.idx),f=n("#mCSBap_"+i.idx+"_container"),h=f.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']",y=f.find("iframe"),p=["blur."+c+" keydown."+c+" keyup."+c];y.length&&y.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){a(n)})})});w.attr("tabindex","0").bind(p[0],function(n){a(n)})},ut=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=l.snapAmount instanceof Array?"x"===c.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i="stepped"!==c.type,f=h?h:n?i?k/1.5:d:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w="x"===c.dir[0]?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,b="x"===c.dir[0]?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a="auto"!==c.scrollAmount?b:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=!!n;return n&&17>f&&(a="x"===c.dir[0]?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){y()},f)))}function b(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSBap_"+v.idx+"_container"),w="stepped"===c.type,k=l.scrollInertia<26?26:l.scrollInertia,d=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||39===e||37===e?"x":"y",e===i[13]||e===i[15]||38===e||37===e?-1:1],o(r),tt(e)&&"stepped"===c.type)return;y(w);break;case"off":b();(w||v.tweenRunning&&c.dir)&&y(!0)}},ft=function(i){var u=n(this).data(t).opt,r=[];return"function"==typeof i&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:"x"===u.axis?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||"x"===u.axis?null:i,r[1]=i.x?i.x:i.y||"y"===u.axis?null:i),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},at=function(i,r){if(null!=i&&"undefined"!=typeof i){var h=n(this),c=h.data(t),v=c.opt,u=n("#mCSBap_"+c.idx+"_container"),o=u.parent(),y=typeof i;r||(r="x"===v.axis?"x":"y");var p="x"===r?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),l="x"===r?u[0].offsetLeft:u[0].offsetTop,w="x"===r?"left":"top";switch(y){case"function":return i();case"object":var e=i.jquery?i:n(i);return e.length?"x"===r?f(e)[1]:f(e)[0]:void 0;case"string":case"number":if(tt(i))return Math.abs(i);if(-1!==i.indexOf("%"))return Math.abs(p*parseInt(i)/100);if(-1!==i.indexOf("-="))return Math.abs(l-parseInt(i.split("-=")[1]));if(-1!==i.indexOf("+=")){var a=l+parseInt(i.split("+=")[1]);return a>=0?0:Math.abs(a)}if(-1!==i.indexOf("px")&&tt(i.split("px")[0]))return Math.abs(i.split("px")[0]);if("top"===i||"left"===i)return 0;if("bottom"===i)return Math.abs(o.height()-u.outerHeight(!1));if("right"===i)return Math.abs(o.width()-u.outerWidth(!1));if("first"===i||"last"===i){var e=u.find(":"+i);return"x"===r?f(e)[1]:f(e)[0]}return n(i).length?"x"===r?f(n(i))[1]:f(n(i))[0]:(u.css(w,i),void s.update.call(null,h[0]))}}},et=function(r){function c(){return clearTimeout(e[0].autoUpdate),0===o.parents("html").length?void(o=null):void(e[0].autoUpdate=setTimeout(function(){return f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)?(u.poll.change.o=u.poll.change.n,void h(3)):f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)?(u.poll.size.o=u.poll.size.n,void h(1)):!f.advanced.updateOnImageLoad||"auto"===f.advanced.updateOnImageLoad&&"y"===f.axis||(u.poll.img.n=e.find("img").length,u.poll.img.n===u.poll.img.o)?void((f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()):(u.poll.img.o=u.poll.img.n,void e.find("img").each(function(){l(this)}))},f.advanced.autoUpdateTimeout))}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2]))return void h();var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSBap_"+u.idx+"_container");return r?(clearTimeout(e[0].autoUpdate),void a(e[0],"autoUpdate")):void c()},yi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSBap_"+r.idx+"_container,#mCSBap_"+r.idx+"_container_wrapper,#mCSBap_"+r.idx+"_dragger_vertical,#mCSBap_"+r.idx+"_dragger_horizontal");u.each(function(){pi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&"function"==typeof e.callbacks[n]}function it(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||-y>=w]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,rt={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(rt,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSBap_"+f.idx),o=n("#mCSBap_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ft.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ft.call(i,e.callbacks.onTotalScrollBackOffset):[0,0];if(f.trigger=u.trigger,0===b.scrollTop()&&0===b.scrollLeft()||(n(".mCSBap_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),"_resetY"!==r||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),"_resetX"!==r||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),"_resetY"!==r&&"_resetX"!==r){if(!f.contentReset.y&&i[0].mcs||!f.overflowed[0]||(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null),!f.contentReset.x&&i[0].mcs||!f.overflowed[1]||(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null),e.snapAmount){var ut=e.snapAmount instanceof Array?"x"===u.dir?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount;r=yi(r,ut,e.snapOffset)}switch(u.dir){case"x":var c=n("#mCSBap_"+f.idx+"_dragger_horizontal"),tt="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,0===r?0:r/f.scrollRatio.x],v=g[1],y=nt[1],et=v>0?v/f.scrollRatio.x:0,ot=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSBap_"+f.idx+"_dragger_vertical"),tt="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,0===r?0:r/f.scrollRatio.y],v=g[0],y=nt[0],et=v>0?v/f.scrollRatio.y:0,ot=y>0?y/f.scrollRatio.y:0}s[1]<0||0===s[0]&&0===s[1]?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0];i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0]));clearTimeout(o[0].onCompleteTimeout);vt(c[0],tt,Math.round(s[1]),k[1],u.scrollEasing);!f.tweenRunning&&(0===w&&s[0]>=0||w===l[0]&&s[0]<=l[0])||vt(o[0],tt,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=it())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){"yx"===e.axis&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-et&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=ot&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},vt=function(n,t,i,r,u,f,e){function a(){o.stop||(s||d.call(),s=w()-tt,v(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=c(a):nt.call())}function v(){r>0?(o.currVal=k(o.time,l,it,r,u),y[t]=Math.round(o.currVal)+"px"):y[t]=i+"px";g.call()}function p(){h=1e3/60;o.time=s+h;c=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return v(),setTimeout(n,.01)};o.id=c(a)}function b(){null!=o.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function k(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return n/=r/2,1>n?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return n/=r/2,1>n?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return n/=r/2,1>n?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}n._mTween||(n._mTween={top:{},left:{}});var h,c,e=e||{},d=e.onStart||function(){},g=e.onUpdate||function(){},nt=e.onComplete||function(){},tt=w(),s=0,l=n.offsetTop,y=n.style,o=n._mTween[t];"left"===t&&(l=n.offsetLeft);var it=i-l;o.stop=0;"none"!==f&&b();p()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},pi=function(){var n=this;n._mTween||(n._mTween={top:{},left:{}});for(var r=["top","left"],i=0;i<r.length;i++){var t=r[i];n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)}},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},yt=function(n){return!(n.which&&1!==n.which)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},f=function(n){var t=n.parents(".mCSBap_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},wi=function(){function t(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c].defaults=ot;window[c]=!0;n(window).bind("load",function(){n(it)[c]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var e,r,i=n(t),u=i.parents(".mCSBap_container");if(u.length)return e=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+f(i)[0]>=0&&r[0]+f(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+f(i)[1]>=0&&r[1]+f(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var e,u,o,s,h=n(t),c=h.parents(".mCSBap_container"),l="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return e=[h.outerHeight(!1),h.outerWidth(!1)],o=[c[0].offsetTop+f(h)[0],c[0].offsetLeft+f(h)[1]],u=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s=[e[0]<u[0]?l[0]:l[1],e[1]<u[1]?l[0]:l[1]],o[0]-u[0]*s[0][0]<0&&o[0]+e[0]-u[0]*s[0][1]>=0&&o[1]-u[1]*s[1][0]<0&&o[1]+e[1]-u[1]*s[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}):console.log("ASP: scrollbar detected, skipping loading");
2
  /*! Ajax Search Lite 4.6 js */
3
- (function(n){var t,c=!0,s={init:function(t,i){var r=this;this.elem=i;this.$elem=n(i);r.searching=!1;r.o=n.extend({blocking:!1},t);r.n={};r.n.container=n(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=n(".probox",r.n.container);r.n.proinput=n(".proinput",r.n.container);r.n.text=n(".proinput input.orig",r.n.container);r.n.textAutocomplete=n(".proinput input.autocomplete",r.n.container);r.n.loading=n(".proinput .loading",r.n.container);r.n.proloading=n(".proloading",r.n.container);r.n.proclose=n(".proclose",r.n.container);r.n.promagnifier=n(".promagnifier",r.n.container);r.n.prosettings=n(".prosettings",r.n.container);r.n.searchsettings=n("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=n("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=n("#asl_hidden_data");r.n.aslItemOverlay=n(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=n(".showmore",r.n.resultsDiv);r.n.items=n(".item",r.n.resultsDiv);r.n.results=n(".results",r.n.resultsDiv);r.n.resdrg=n(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.firstClick=!0;r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof n.fn.mCustScr!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=n("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var t=n(this).parent();!t.hasClass("isotopic");)t=t.parent();var i=n(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),n("fieldset",r.n.searchsettings).each(function(){n(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),r.createVerticalScroll(),a()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var i=this;c&&t==null&&(t=localStorage.getItem("asl-"+r.encode(location.href)),t!=null&&(t=JSON.parse(t),t.settings=r.decode(t.settings)));t!=null&&typeof t.id!="undefined"&&t.id==i.o.id&&(t.phrase!=""&&(i.triggerPrevState=!0,i.n.text.val(t.phrase)),o(n("form",i.n.searchsettings))!=t.settings&&(i.triggerPrevState=!0,o(n("form",i.n.searchsettings),t.settings)));localStorage.removeItem("asl-"+r.encode(location.href));i.n.resultsDiv.on("click",".results .item",function(){var t=i.n.text.val();if(t!=""||i.settingsChanged){var u={id:i.o.id,phrase:t,settings:r.encode(o(n("form",i.n.searchsettings)))};localStorage.setItem("asl-"+r.encode(location.href),JSON.stringify(u))}})},duplicateCheck:function(){var i=this,t={};n("div[id*=ajaxsearchlite]").each(function(){t.hasOwnProperty(this.id)?n(this).remove():t[this.id]="true"})},analytics:function(n){var t=this,i=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:null;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var r=t.o.homeurl.replace(window.location.origin,"");if(i!=null&&t.o.analytics&&t.o.analyticsString!=""){var u=t.o.analyticsString.replace("{asl_term}",n).replace("{asp_term}",n);i("send","pageview",{page:r+u,title:"Ajax Search"})}},createVerticalScroll:function(){var t=this;t.is_scroll&&(t.scroll=t.n.results.mCustScr({contentTouchScroll:!0,scrollButtons:{enable:!0},callbacks:{onScroll:function(){if(!i()){var s=parseInt(n(".mCSBap_container",t.n.results).position().top),h=n(".mCSBap_container .resdrg").children(),f=0,o=3e3,u=4e3,c=1e4,e=1e4,r=null;h.each(function(){u=Math.abs(Math.abs(s)-f);u<o&&(c=u,e=f,r=n(this));f+=n(this).outerHeight(!0);o=u});r.hasClass("group")&&(e=e+(r.outerHeight(!0)-r.outerHeight(!1)));t.scroll.mCustScr("scrollTo",r,{scrollInertia:200,callbacks:!1})}}}}),n("a.mCSBap_buttonUp").text("Scroll up the results"),n("a.mCSBap_buttonDown").text("Scroll down the results"))},initEvents:function(){var t=this;if(i()&&e())t.n.text.on("touchstart",function(){t.savedScrollTop=n(window).scrollTop();t.savedContainerTop=t.n.container.offset().top});t.n.text.click(function(){n(this).focus()});t.n.text.on("focus input",function(){t.searching||(n(this).val()!=""?t.n.proclose.css("display","block"):t.n.proclose.css({display:"none"}))});n(t.n.text.parent()).submit(function(n){if(n.preventDefault(),i())if(t.o.redirect_on_enter){var r=jQuery.Event("keyup");r.keyCode=r.which=13;t.n.text.trigger(r)}else t.o.redirectEnterTo=="ajax_search"&&(t.search(),document.activeElement.blur());else t.o.redirectEnterTo=="ajax_search"&&t.search()});t.n.text.click(function(){t.firstClick&&(n(this).val(""),t.firstClick=!1)});t.n.resultsDiv.css({opacity:0});n(document).bind("click touchend",function(){(t.hideSettings(),t.opened!=!1&&t.o.closeOnDocClick==1)&&t.hideResults()});t.n.proclose.on("click touchend",function(){t.n.text.val("");t.n.textAutocomplete.val("");t.hideResults();t.n.text.focus()});n(t.elem).bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.resultsDiv.bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.searchsettings.bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.prosettings.on("click",function(){t.n.prosettings.data("opened")==0?t.showSettings():t.hideSettings()});var f=t.n.container.parents().filter(function(){return n(this).css("position")=="fixed"});if((f.length>0||t.n.container.css("position")=="fixed")&&(t.n.resultsDiv.css("position")=="absolute"&&t.n.resultsDiv.css("position","fixed"),t.n.resultsDiv.css("z-index",99999999999),t.o.blocking||t.n.searchsettings.css("position","fixed")),i())n(window).on("orientationchange",function(){t.orientationChange();setTimeout(function(){t.orientationChange()},800)});else{var r;n(window).on("resize",function(){clearTimeout(r);r=setTimeout(function(){t.resize()},100)})}var u;n(window).on("scroll",function(){clearTimeout(u);u=setTimeout(function(){t.scrolling(!1)},400)});e()&&i()&&l()&&parseInt(t.n.text.css("font-size"))<16&&(t.n.text.data("fontSize",t.n.text.css("font-size")).css("font-size","16px"),t.n.textAutocomplete.css("font-size","16px"),n("<style>#ajaxsearchlite"+t.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));t.initNavigationEvent();t.initMagnifierEvent();t.initAutocompleteEvent();t.initFacetEvents()},initAutop:function(){var n=this;if(t!=null&&n.triggerPrevState)return n.search(),t=null,!1},initEtc:function(){var t=this,i=null;n("div.asl_option",t.n.searchsettings).on("mouseup touchend",function(r){if(r.preventDefault(),r.stopImmediatePropagation(),t.dragging)return!1;n('input[type="checkbox"]',this).prop("checked",!n('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){n('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});n("div.asl_option label",t.n.searchsettings).click(function(n){n.preventDefault()})},initNavigationEvent:function(){var t=this;n(t.n.resultsDiv).on("mouseenter",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered");n(this).addClass("hovered")});n(t.n.resultsDiv).on("mouseleave",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered")});n(document).keydown(function(i){if(window.event)var r=window.event.keyCode,u=window.event.type;else if(i)var r=i.which,u=i.type;n(".item",t.n.resultsDiv).length>0&&t.n.resultsDiv.css("display")!="none"&&(r==40&&(i.stopPropagation(),i.preventDefault(),t.n.text.blur(),t.post!=null&&t.post.abort(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).first().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").next().next(".item").addClass("hovered"),t.is_scroll&&t.scroll.mCustScr("scrollTo",".resdrg .item.hovered",{scrollInertia:200,callbacks:!1})),r==38&&(i.stopPropagation(),i.preventDefault(),t.n.text.blur(),t.post!=null&&t.post.abort(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).last().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").prev().prev(".item").addClass("hovered"),t.is_scroll&&t.scroll.mCustScr("scrollTo",".resdrg .item.hovered",{scrollInertia:200,callbacks:!1})),r==13&&n(".item.hovered",t.n.resultsDiv).length>0&&(i.stopPropagation(),i.preventDefault(),n(".item.hovered a.asl_res_url",t.n.resultsDiv).get(0).click()))})},initMagnifierEvent:function(){var t=this,i,u,r=!1;t.n.text.on("keyup",function(f){if(window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):f&&(t.keycode=f.which,t.ktype=f.type),t.keycode==13){if(clearTimeout(u),u=setTimeout(function(){r=!1},300),r)return!1;r=!0}var e=n(this).hasClass("orig");if(t.n.text.val().length>=t.o.charcount&&e&&t.ktype=="keyup"&&t.keycode==13){if(t.o.redirect_on_enter==1)t.o.redirectEnterTo!="first_result"?t.doRedirectToResults(t.ktype):t.search();else{if(t.o.redirectEnterTo=="nothing")return!1;n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&t.resultsOpened||t.search()}clearTimeout(i)}});t.n.promagnifier.add(t.n.text).bind("click input",function(r){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):r&&(t.keycode=r.which,t.ktype=r.type);var u=n(this).hasClass("orig");if(t.n.text.val().length<t.o.charcount){t.n.proloading.css("display","none");t.hideResults();t.post!=null&&t.post.abort();clearTimeout(i);return}if(t.n.text.val().length>=t.o.charcount&&!u&&t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo!="first_result"){t.doRedirectToResults(t.ktype);clearTimeout(i);return}if((!(t.keycode>=37)||!(t.keycode<=40))&&(!(t.keycode>=112)||!(t.keycode<=123))){if(u&&t.ktype=="click"||t.keycode==32){n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&(t.n.proclose.css("display","block"),t.resultsOpened||t.showResults());return}n(this).hasClass("orig")&&t.ktype=="click"||(t.o.trigger_on_click!=0||t.ktype!="click")&&(t.o.triggerontype!=0||t.ktype!="input")&&(!u||t.ktype!="input"||t.o.redirectEnterTo!="nothing")&&(u||t.ktype!="click"||t.o.redirectClickTo!="nothing")&&(t.post!=null&&t.post.abort(),clearTimeout(i),t.hideLoader(),i=setTimeout(function(){if(n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()!=t.lastSuccesfulSearch)t.search();else{if(t.n.proclose.css("display","block"),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;t.resultsOpened||t.showResults()}},250))}})},initFacetEvents:function(){var t=this,i=null;if(t.o.trigger_on_facet_change==1){n("input[type!=checkbox], select",t.n.searchsettings).on("change slidechange",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),clearTimeout(i),i=setTimeout(function(){t.search()},50))});n("input[type=checkbox]",t.n.searchsettings).on("asl_chbx_change",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),clearTimeout(i),i=setTimeout(function(){t.search()},50))})}},isRedirectToFirstResult:function(){var t=this;return n(".asl_res_url",t.n.resultsDiv).length>0&&(t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo=="first_result"||t.o.redirect_on_enter==1&&(t.ktype=="input"||t.ktype=="keyup")&&t.keycode==13&&t.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var t=this,i;return i=t.ktype=="click"?t.o.redirectClickLoc:t.o.redirectEnterLoc,i=="same"?location.href=n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href"):h(n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href")),t.hideLoader(),t.hideResults(),!1},doRedirectToResults:function(t){var i=this,s=i.ktype=="click"?i.o.redirectClickTo:i.o.redirectEnterTo,e=t=="click"?i.o.redirectClickLoc:i.o.redirectEnterLoc;if(s=="results_page")var o="?s="+u(i.n.text.val());else if(s=="woo_results_page")var o="?post_type=product&s="+u(i.n.text.val());else var o=i.o.redirect_url.replace("{phrase}",u(i.n.text.val()));if(i.o.overridewpdefault)if(i.o.override_method=="post")f(i.o.homeurl+o,"post",{asl_active:1,p_asl_data:n("form",i.n.searchsettings).serialize()},e);else{var c=i.o.homeurl+o+"&asl_active=1&p_asid="+i.o.id+"&p_asl_data="+r.encode(n("form",i.n.searchsettings).serialize());e=="same"?location.href=c:h(c)}else f(i.o.homeurl+o,"post",{np_asl_data:n("form",i.n.searchsettings).serialize()},e);i.n.proloading.css("display","none");i.hideLoader();i.hideResults();i.post!=null&&i.post.abort()},destroy:function(){return this.each(function(){var t=n.extend({},this,s);n(window).unbind(t)})},searchfor:function(t){n(".proinput input",this).val(t).trigger("keyup")},initAutocompleteEvent:function(){var t=this;t.o.autocomplete.enabled!=1||i()||t.n.text.keyup(function(i){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):i&&(t.keycode=i.which,t.ktype=i.type);var r=39;n("body").hasClass("rtl")&&(r=37);t.keycode==r&&t.n.textAutocomplete.val()!=""?(i.preventDefault(),t.n.text.val(t.n.textAutocomplete.val()),t.post!=null&&t.post.abort(),t.search()):(t.postAuto!=null&&t.postAuto.abort(),t.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var t=this,i=t.n.text.val();if(t.n.text.val()==""){t.n.textAutocomplete.val("");return}var r=t.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(t.n.textAutocomplete.val(""),n.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:t.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=n("<textarea />").html(response).text(),response=response.substr(i.length),t.n.textAutocomplete.val(i+response))}}))},search:function(){var t=this;if((!t.searching||!0)&&!(t.n.text.val().length<t.o.charcount)){t.searching=!0;t.n.proloading.css({display:"block"});t.n.proclose.css({display:"none"});var i={action:"ajaxsearchlite_search",aslp:t.n.text.val(),asid:t.o.id,options:n("form",t.n.searchsettings).serialize()};if(JSON.stringify(i)===JSON.stringify(t.lastSearchData))return(t.resultsOpened||t.showResults(),t.hideLoader(),t.isRedirectToFirstResult())?(t.doRedirectToFirstResult(),!1):!1;t.post=n.post(ASL.ajaxurl,i,function(e){if(e=e.replace(/^\s*[\r\n]/gm,""),e=e.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1],t.n.resdrg.html(""),t.n.resdrg.html(e),n(".asl_keyword",t.n.resdrg).bind("click",function(){t.n.text.val(n(this).html());n("input.orig",t.n.container).val(n(this).html()).keydown();n("form",t.n.container).trigger("submit","ajax");t.search()}),t.n.items=n(".item",t.n.resultsDiv),t.analytics(t.n.text.val()),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;if(t.hideLoader(),t.showResults(),t.scrollToResults(),t.lastSuccesfulSearch=n("form",t.n.searchsettings).serialize()+t.n.text.val().trim(),t.lastSearchData=i,t.n.items.length==0)t.n.showmore!=null&&t.n.showmore.css("display","none");else if(t.n.showmore!=null){t.n.showmore.css("display","block");n("a",t.n.showmore).off();n("a",t.n.showmore).on("click",function(){var e=t.o.redirectClickTo,i="?s="+u(t.n.text.val());i=e=="results_page"?"?s="+u(t.n.text.val()):e=="woo_results_page"?"?post_type=product&s="+u(t.n.text.val()):t.o.redirect_url.replace("{phrase}",u(t.n.text.val()));t.o.overridewpdefault?t.o.override_method=="post"?f(t.o.homeurl+i,"post",{asl_active:1,p_asl_data:n("form",t.n.searchsettings).serialize()}):location.href=t.o.homeurl+i+"&asl_active=1&p_asid="+t.o.id+"&p_asl_data="+r.encode(n("form",t.n.searchsettings).serialize()):f(t.o.homeurl+i,"post",{np_asl_data:n("form",t.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(t.n.resdrg.html(""),t.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),t.n.items=n(".item",t.n.resultsDiv),t.hideLoader(),t.showResults(),t.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});i()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var t=$this.n.probox.offset().top-20;else var t=$this.n.resultsDiv.offset().top-20;n("#wpadminbar").length>0&&(t-=n("#wpadminbar").height());t=t<0?0:t;n("body, html").animate({scrollTop:t},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var t=this;if(t.showResultsBox(),t.n.items.length>0){var u=t.n.items.length<t.o.itemscount?t.n.items.length:t.o.itemscount,e=n(".group",t.n.resultsDiv);if(t.n.items.length<=t.o.itemscount)t.n.results.css({height:"auto"});else{t.n.results.css({height:30});t.is_scroll&&t.scroll.mCustScr("update");t.resize();var i=0,r=0;t.n.items.each(function(){r+=n(this).outerHeight(!0);i++});i=i<1?1:i;r=r/i*u;t.n.results.css({height:r})}if(window.sscroll=t.scroll,t.is_scroll&&(t.scroll.mCustScr("disable",!0),t.scroll.mCustScr("update")),t.resize(),t.is_scroll&&t.scroll.mCustScr("scrollTo",0),t.o.highlight==1){var f=t.o.highlightwholewords==1?!0:!1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:f})}}if(t.resize(),t.n.items.length==0){var r=n(".nores",t.n.results).outerHeight(!0)>t.o.resultitemheight?t.o.resultitemheight:n(".nores",t.n.results).outerHeight(!0);t.is_scroll?(t.n.results.css({height:11110}),t.scroll.mCustScr("update"),t.n.results.css({height:"auto"})):t.n.results.css({height:"auto"})}t.is_scroll||t.n.results.css({overflowY:"auto"});t.addAnimation();t.fixResultsPosition(!0);t.searching=!1},hideVerticalResults:function(){var t=this;t.disableMobileScroll=!1;t.n.resultsDiv.animate({opacity:0,height:0},{duration:120,complete:function(){n(this).css({visibility:"hidden",display:"none"})}})},addAnimation:function(){var i=this,t=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){n(u).addClass(i.animation)},t);t=t+60;r++})},removeAnimation:function(){var t=this;t.n.items.each(function(){var i=this;n(i).removeClass(t.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var t=this;t.n.searchsettings.css(t.settAnim.showCSS);t.n.searchsettings.removeClass(t.settAnim.hideClass).addClass(t.settAnim.showClass);t.settScroll==null&&t.is_scroll&&(t.settScroll=n(".asl_sett_scroll",t.n.searchsettings).mCustScr({contentTouchScroll:!0}));t.n.prosettings.data("opened",1);t.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var t=this;n(".searchsettings",t.n.container).length>0&&(n("body>#ajaxsearchlitesettings"+t.o.rid).remove(),n("body>#ajaxsearchliteres"+t.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(t){t=typeof t=="undefined"?!1:t;var r=this,f=r.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var o=0;if(n("body").css("position")!="static"&&(o=n("body").offset().top),t==!0||r.n.resultsDiv.css("visibility")=="visible"){var s=0,h=0,u=r.n.container.offset();if(f=="fixed"&&(o=0,s=n(document).scrollTop(),h=n(document).scrollLeft(),i()&&e()&&r.n.text.is(":focus")&&(s=r.savedScrollTop,u.top=r.savedContainerTop)),typeof u!="undefined"){var c=r.n.container.outerWidth()<240?240:r.n.container.outerWidth();r.n.resultsDiv.outerWidth(c);r.n.resultsDiv.css({top:u.top+r.n.container.outerHeight(!0)+10-o-s,left:u.left-h})}}}},fixSettingsPosition:function(t){t=typeof t=="undefined"?!1:t;var r=this,s=0;if(n("body").css("position")!="static"&&(s=n("body").offset().top),(t==!0||r.n.prosettings.data("opened")!=0)&&r.o.blocking!=!0){if(r.fixSettingsWidth(),r.n.prosettings.css("display")!="none")var f=r.n.prosettings;else var f=r.n.promagnifier;var u=f.offset(),o=0,h=0;r.n.searchsettings.css("position")=="fixed"&&(o=n(window).scrollTop(),h=n(window).scrollLeft(),i()&&e()&&r.n.text.is(":focus")&&(u.top=r.savedContainerTop,o=r.savedScrollTop));r.o.settingsimagepos=="left"?r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left-h}):r.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left+f.width()-r.n.searchsettings.width()-h})}},fixSettingsWidth:function(){}};function l(){return!("ontouchstart"in window)?0:1}function i(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function o(t,i){var r=t.find(":input").get();return arguments.length===1?(i={},n.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||n(this).hasClass("asp_datepicker_field")||n(this).hasClass("asp_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(n(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),n.each(r,function(){if(this.name&&i[this.name]){var t=i[this.name],r=n(this);if(Object.prototype.toString.call(t)!=="[object Array]"&&(t=[t]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<t.length;u++)if(t[u]==e){f=!0;break}r.attr("checked",f)}else r.val(t[0])}}),t)}function u(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function f(t,i,r,u){"use strict";var f;f=n("<form />",{action:t,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&n.each(r,function(t,i){n("<input />",{type:"hidden",name:t,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").submit()}function h(t){n('<a href="'+t+'" target="_blank">').get(0).click()}function e(){return typeof navigator!="undefined"&&typeof window.navigator.userAgent!="undefined"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function a(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});n.plugin=function(t,i){n.fn[t]=function(r){return this.each(function(){n.data(this,t)||n.data(this,t,Object.create(i).init(r,this))})}};n.plugin("ajaxsearchlite",s);var r={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,i,h,c,s,u,f=0;for(n=r._utf8_encode(n);f<n.length;)o=n.charCodeAt(f++),t=n.charCodeAt(f++),i=n.charCodeAt(f++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|i>>6,u=i&63,isNaN(t)?s=u=64:isNaN(i)&&(u=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(u);return e},decode:function(n){var t="",o,s,h,c,f,u,e,i=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)c=this._keyStr.indexOf(n.charAt(i++)),f=this._keyStr.indexOf(n.charAt(i++)),u=this._keyStr.indexOf(n.charAt(i++)),e=this._keyStr.indexOf(n.charAt(i++)),o=c<<2|f>>4,s=(f&15)<<4|u>>2,h=(u&3)<<6|e,t=t+String.fromCharCode(o),u!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return r._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}})(jQuery);window.ASL=window.ASL||{};window.ASL.getScope=function(){return typeof jQuery!="undefined"?jQuery:typeof window[ASL.js_scope]!="undefined"?window[ASL.js_scope]:eval(ASL.js_scope)};window.ASL.initialized=!1;window.ASL.initialize=function(n){var i=this;if(typeof i.getScope=="undefined")return!1;var t=i.getScope(),r=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0)t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))});else{typeof n!="undefined"&&(r="div[id*=asl_init_id_"+n+"]");function u(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function f(n){var t="",s,h,c,l,e,r,o,i=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=f.indexOf(n.charAt(i++)),e=f.indexOf(n.charAt(i++)),r=f.indexOf(n.charAt(i++)),o=f.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return u(t)}t(r).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=f(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})}i.initialized=!0};window.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})};window.ASL.ready=function(){var n=this,t=n.getScope(),i=null;t(document).ready(function(){n.initialize();setTimeout(function(){n.fixClones()},2500)});t(window).on("load",function(){n.initialized||(n.initialize(),setTimeout(function(){n.fixClones()},2500),console.log("ASL initialized via window.load"))});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&t("body").bind("DOMSubtreeModified",function(){clearTimeout(i);i=setTimeout(function(){n.initialize()},500)});var r;t(window).on("resize",function(){clearTimeout(r);r=setTimeout(function(){n.fixClones()},2e3)})};window._ASL=ASL;window._ASL.ready();
1
+ (function(n){typeof define=="function"&&!1&&define.amd&&define.amd.jQuery?define(["jquery"],n):typeof module!="undefined"&&!1&&module.exports?n(require("jquery")):n(jQuery)})(function(n){var r="left",u="right",f="up",e="down",v="in",y="out",p="none",nt="auto",w="swipe",b="pinch",k="tap",tt="doubletap",it="longtap",d="horizontal",g="vertical",l="all",ut=10,rt="start",o="move",t="end",i="cancel",c="ontouchstart"in window,a=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!c,s=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!c,h="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(this,arguments);else if(!i&&(typeof t=="object"||!t))return ft.apply(this,arguments);return r};n.fn.swipe.version="1.6.15";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:o,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:v,OUT:y};n.fn.swipe.pageScroll={NONE:p,HORIZONTAL:d,VERTICAL:g,AUTO:nt};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:l};function ft(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=p),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new et(this,t),r.data(h,i))})}function et(ft,et){var et=n.extend({},et),si=c||s||!et.fallbackToMouseEvents,hi=si?s?a?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ki=si?s?a?"MSPointerMove":"pointermove":"touchmove":"mousemove",di=si?s?a?"MSPointerUp":"pointerup":"touchend":"mouseup",ri=si?s?"mouseleave":null:"mouseleave",ci=s?a?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,gt=0,ni=0,pt=1,bt=0,kt=0,li=null,ot=n(ft),st="start",ct=0,ht={},gi=0,ai=0,vi=0,nr=0,ti=0,fi=null,ei=null;try{ot.bind(hi,tr);ot.bind(ci,ui)}catch(ff){n.error("events not supported "+hi+","+ci+" on jQuery.swipe")}this.enable=function(){return ot.bind(hi,tr),ot.bind(ci,ui),ot};this.disable=function(){return lr(),ot};this.destroy=function(){lr();ot.data(h,null);ot=null};this.option=function(t,i){if(typeof t=="object")et=n.extend(et,t);else if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return et;return null};function tr(t){if(!pu()&&!(n(t.target).closest(et.excludedElements,ot).length>0)){var r=t.originalEvent?t.originalEvent:t,f,u=r.touches,e=u?u[0]:r;return(st=rt,u?ct=u.length:et.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,gt=0,ni=0,pt=1,bt=0,li=ku(),dr(),wi(0,e),!u||ct===et.fingers||et.fingers===l||oi()?(gi=ii(),ct==2&&(wi(1,u[1]),gt=ni=cr(ht[0].start,ht[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=wt(r,st))):f=!1,f===!1)?(st=i,wt(r,st),f):(et.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);et.hold&&(f=et.hold.call(ot,r,r.target))},this),et.longTapThreshold)),pi(!0),null)}}function ir(n){var f=n.originalEvent?n.originalEvent:n;if(st!==t&&st!==i&&!yi()){var s,r=f.touches,h=r?r[0]:f,u=gr(h);if(ai=ii(),r&&(ct=r.length),et.hold&&clearTimeout(ei),st=o,ct==2&&(gt==0?(wi(1,r[1]),gt=ni=cr(ht[0].start,ht[1].start)):(gr(r[1]),ni=cr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),pt=du(gt,ni),bt=Math.abs(gt-ni)),ct===et.fingers||et.fingers===l||!r||oi()){if(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),s=wt(f,st),!et.triggerOnTouchEnd||et.triggerOnTouchLeave){var e=!0;if(et.triggerOnTouchLeave){var c=rf(this);e=uf(u.end,c)}!et.triggerOnTouchEnd&&e?st=fr(o):et.triggerOnTouchLeave&&!e&&(st=fr(t));(st==i||st==t)&&wt(f,st)}}else st=i,wt(f,st);s===!1&&(st=i,wt(f,st))}}function rr(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;if(u){if(u.length&&!yi())return yu(r),!0;if(u.length&&yi())return!0}return yi()&&(ct=nr),ai=ii(),lt=tu(),or()||!er()?(st=i,wt(r,st)):et.triggerOnTouchEnd||et.triggerOnTouchEnd==!1&&st===o?(et.preventDefaultEvents!==!1&&n.preventDefault(),st=t,wt(r,st)):!et.triggerOnTouchEnd&&br()?(st=t,dt(r,st,k)):st===o&&(st=i,wt(r,st)),pi(!1),null}function ui(){ct=0;ai=0;gi=0;gt=0;ni=0;pt=1;dr();pi(!1)}function ur(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(st=fr(t),wt(i,st))}function lr(){ot.unbind(hi,tr);ot.unbind(ci,ui);ot.unbind(ki,ir);ot.unbind(di,rr);ri&&ot.unbind(ri,ur);pi(!1)}function fr(n){var r=n,f=ar(),u=er(),e=or();return!f||e?r=i:u&&n==o&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?r=t:!u&&n==t&&et.triggerOnTouchLeave&&(r=i),r}function wt(n,r){var u,f=n.touches;return(eu()||sr())&&(u=dt(n,r,w)),(fu()||oi())&&u!==!1&&(u=dt(n,r,b)),au()&&u!==!1?u=dt(n,r,tt):vu()&&u!==!1?u=dt(n,r,it):lu()&&u!==!1&&(u=dt(n,r,k)),r===i&&(sr()&&(u=dt(n,r,w)),oi()&&(u=dt(n,r,b)),ui(n)),r===t&&(f?f.length||ui(n):ui(n)),u}function dt(o,s,h){var c;if(h==w){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),et.swipeStatus&&(c=et.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&yr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),et.swipe&&(c=et.swipe.call(ot,o,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);et.swipeLeft&&(c=et.swipeLeft.call(ot,o,vt,at,lt,ct,ht,yt));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);et.swipeRight&&(c=et.swipeRight.call(ot,o,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);et.swipeUp&&(c=et.swipeUp.call(ot,o,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);et.swipeDown&&(c=et.swipeDown.call(ot,o,vt,at,lt,ct,ht,yt))}}}if(h==b){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,pt,ht]),et.pinchStatus&&(c=et.pinchStatus.call(ot,o,s,kt||null,bt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&vr())switch(kt){case v:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchIn&&(c=et.pinchIn.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht));break;case y:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchOut&&(c=et.pinchOut.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht))}}return h==k?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),hr()&&!su()?(ti=ii(),fi=setTimeout(n.proxy(function(){ti=null;ot.trigger("tap",[o.target]);et.tap&&(c=et.tap.call(ot,o,o.target))},this),et.doubleTapThreshold)):(ti=null,ot.trigger("tap",[o.target]),et.tap&&(c=et.tap.call(ot,o,o.target)))):h==tt?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),ti=null,ot.trigger("doubletap",[o.target]),et.doubleTap&&(c=et.doubleTap.call(ot,o,o.target))):h==it&&(s===i||s===t)&&(clearTimeout(fi),ti=null,ot.trigger("longtap",[o.target]),et.longTap&&(c=et.longTap.call(ot,o,o.target))),c}function er(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function or(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=nu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?bt>=et.pinchThreshold:!0}function ar(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===p)n.preventDefault();else{var i=et.allowPageScroll===nt;switch(t){case r:(et.swipeLeft&&i||!i&&et.allowPageScroll!=d)&&n.preventDefault();break;case u:(et.swipeRight&&i||!i&&et.allowPageScroll!=d)&&n.preventDefault();break;case f:(et.swipeUp&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault();break;case e:(et.swipeDown&&i||!i&&et.allowPageScroll!=g)&&n.preventDefault()}}}function vr(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function oi(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function fu(){return!!(vr()&&oi())}function yr(){var n=ar(),t=er(),i=pr(),r=wr(),u=or();return!u&&r&&i&&t&&n}function sr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function eu(){return!!(yr()&&sr())}function pr(){return ct===et.fingers||et.fingers===l||!c}function wr(){return ht[0].end.x!==0}function br(){return!!et.tap}function hr(){return!!et.doubleTap}function ou(){return!!et.longTap}function kr(){if(ti==null)return!1;var n=ii();return hr()&&n-ti<=et.doubleTapThreshold}function su(){return kr()}function hu(){return(ct===1||!c)&&(isNaN(at)||at<et.threshold)}function cu(){return lt>et.longTapThreshold&&at<ut}function lu(){return!!(hu()&&br())}function au(){return!!(kr()&&hr())}function vu(){return!!(cu()&&ou())}function yu(n){vi=ii();nr=n.touches.length+1}function dr(){vi=0;nr=0}function yi(){var n=!1;if(vi){var t=ii()-vi;t<=et.fingerReleaseThreshold&&(n=!0)}return n}function pu(){return!!(ot.data(h+"_intouch")===!0)}function pi(n){ot&&(n===!0?(ot.bind(ki,ir),ot.bind(di,rr),ri&&ot.bind(ri,ur)):(ot.unbind(ki,ir,!1),ot.unbind(di,rr,!1),ri&&ot.unbind(ri,ur,!1)),ot.data(h+"_intouch",n===!0))}function wi(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=n.identifier!==undefined?n.identifier:0,t=wu(i);return t===null&&(t=wi(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){t=Math.max(t,nu(n));li[n].distance=t}function nu(n){return li[n]?li[n].distance:undefined}function ku(){var n={};return n[r]=bi(r),n[u]=bi(u),n[f]=bi(f),n[e]=bi(e),n}function bi(n){return{direction:n,distance:0}}function tu(){return ai-gi}function cr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return pt<1?y:v}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function iu(n,t){var i=tf(n,t);return i<=45&&i>=0?r:i<=360&&i>=315?r:i>=135&&i<=225?u:i>45&&i<135?e:f}function ii(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}}});jQuery.extend({highlight:function(n,t,i,r){if(n.nodeType===3){var u=n.data.match(t);if(u){var o=document.createElement(i||"span");if(o.className=r||"highlight",/\.|,|\s/.test(u[0].charAt(0)))var s=u.index+1;else var s=u.index;var f=n.splitText(s);f.splitText(u[1].length);var h=f.cloneNode(!0);return o.appendChild(h),f.parentNode.replaceChild(o,f),1}}else if(n.nodeType===1&&n.childNodes&&!/(script|style)/i.test(n.tagName)&&!(n.tagName===i.toUpperCase()&&n.className===r))for(var e=0;e<n.childNodes.length;e++)e+=jQuery.highlight(n.childNodes[e],t,i,r);return 0}});jQuery.fn.unhighlight=function(n){var t={className:"highlight",element:"span"};return jQuery.extend(t,n),this.find(t.element+"."+t.className).each(function(){var n=this.parentNode;n.replaceChild(this.firstChild,this);n.normalize()}).end()};jQuery.fn.highlight=function(n,t){var i={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(i,t),n.constructor===String&&(n=[n]),n=jQuery.grep(n,function(n){return n!=""}),n=jQuery.map(n,function(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),n.length==0)return this;var u=i.caseSensitive?"":"i",r="("+n.join("|")+")";i.wordsOnly&&(r="(?:,|^|\\s)"+r+"(?:,|$|\\s)");var f=new RegExp(r,u);return this.each(function(){jQuery.highlight(this,f,i.element,i.className)})},function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.asl_SimpleBar=t())}(this,function(){"use strict";var f=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ft(n,t){return t={exports:{}},n(t,t.exports),t.exports}var yt="object",pt=function(n){return n&&n.Math==Math&&n},t=pt(typeof globalThis==yt&&globalThis)||pt(typeof window==yt&&window)||pt(typeof self==yt&&self)||pt(typeof f==yt&&f)||Function("return this")(),u=function(n){try{return!!n()}catch(t){return!0}},a=!u(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),uf={}.propertyIsEnumerable,ff=Object.getOwnPropertyDescriptor,ds=ff&&!uf.call({1:2},1),gs=ds?function(n){var t=ff(this,n);return!!t&&t.enumerable}:uf,ef={f:gs},er=function(n,t){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:t}},nh={}.toString,b=function(n){return nh.call(n).slice(8,-1)},th="".split,wt=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(n){return b(n)=="String"?th.call(n,""):Object(n)}:Object,bt=function(n){if(n==undefined)throw TypeError("Can't call method on "+n);return n},kt=function(n){return wt(bt(n))},n=function(n){return typeof n=="object"?n!==null:typeof n=="function"},of=function(t,i){if(!n(t))return t;var r,u;if(i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t))||typeof(r=t.valueOf)=="function"&&!n(u=r.call(t))||!i&&typeof(r=t.toString)=="function"&&!n(u=r.call(t)))return u;throw TypeError("Can't convert object to primitive value");},ih={}.hasOwnProperty,r=function(n,t){return ih.call(n,t)},or=t.document,rh=n(or)&&n(or.createElement),sf=function(n){return rh?or.createElement(n):{}},hf=!a&&!u(function(){return Object.defineProperty(sf("div"),"a",{get:function(){return 7}}).a!=7}),cf=Object.getOwnPropertyDescriptor,uh=a?cf:function(n,t){if(n=kt(n),t=of(t,!0),hf)try{return cf(n,t)}catch(i){}if(r(n,t))return er(!ef.f.call(n,t),n[t])},lf={f:uh},s=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t},af=Object.defineProperty,fh=a?af:function(n,t,i){if(s(n),t=of(t,!0),s(i),hf)try{return af(n,t,i)}catch(r){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(n[t]=i.value),n},k={f:fh},o=a?function(n,t,i){return k.f(n,t,er(1,i))}:function(n,t,i){return n[t]=i,n},sr=function(n,i){try{o(t,n,i)}catch(r){t[n]=i}return i},dt=ft(function(n){var i="__core-js_shared__",r=t[i]||sr(i,{});(n.exports=function(n,t){return r[n]||(r[n]=t!==undefined?t:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),gt=dt("native-function-to-string",Function.toString),vf=t.WeakMap,yf=typeof vf=="function"&&/native code/.test(gt.call(vf)),eh=0,oh=Math.random(),hr=function(n){return"Symbol("+String(n===undefined?"":n)+")_"+(++eh+oh).toString(36)},pf=dt("keys"),cr=function(n){return pf[n]||(pf[n]=hr(n))},ni={},sh=t.WeakMap,ti,et,ii,hh=function(n){return ii(n)?et(n):ti(n,{})},ch=function(t){return function(i){var r;if(!n(i)||(r=et(i)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(yf){var d=new sh,lh=d.get,ah=d.has,vh=d.set;ti=function(n,t){return vh.call(d,n,t),t};et=function(n){return lh.call(d,n)||{}};ii=function(n){return ah.call(d,n)}}else{var ot=cr("state");ni[ot]=!0;ti=function(n,t){return o(n,ot,t),t};et=function(n){return r(n,ot)?n[ot]:{}};ii=function(n){return r(n,ot)}}var h={set:ti,get:et,has:ii,enforce:hh,getterFor:ch},st=ft(function(n){var i=h.get,u=h.enforce,f=String(gt).split("toString");dt("inspectSource",function(n){return gt.call(n)});(n.exports=function(n,i,e,s){var c=s?!!s.unsafe:!1,h=s?!!s.enumerable:!1,l=s?!!s.noTargetGet:!1;if(typeof e=="function"&&(typeof i!="string"||r(e,"name")||o(e,"name",i),u(e).source=f.join(typeof i=="string"?i:"")),n===t){h?n[i]=e:sr(i,e);return}c?!l&&n[i]&&(h=!0):delete n[i];h?n[i]=e:o(n,i,e)})(Function.prototype,"toString",function(){return typeof this=="function"&&i(this).source||gt.call(this)})}),lr=t,wf=function(n){return typeof n=="function"?n:undefined},bf=function(n,i){return arguments.length<2?wf(lr[n])||wf(t[n]):lr[n]&&lr[n][i]||t[n]&&t[n][i]},yh=Math.ceil,ph=Math.floor,ar=function(n){return isNaN(n=+n)?0:(n>0?ph:yh)(n)},wh=Math.min,ri=function(n){return n>0?wh(ar(n),9007199254740991):0},bh=Math.max,kh=Math.min,dh=function(n,t){var i=ar(n);return i<0?bh(i+t,0):kh(i,t)},kf=function(n){return function(t,i,r){var f=kt(t),e=ri(f.length),u=dh(r,e),o;if(n&&i!=i){while(e>u)if(o=f[u++],o!=o)return!0}else for(;e>u;u++)if((n||u in f)&&f[u]===i)return n||u||0;return!n&&-1}},gh={includes:kf(!0),indexOf:kf(!1)},nc=gh.indexOf,df=function(n,t){var f=kt(n),e=0,u=[];for(var i in f)!r(ni,i)&&r(f,i)&&u.push(i);while(t.length>e)r(f,i=t[e++])&&(~nc(u,i)||u.push(i));return u},ui=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tc=ui.concat("length","prototype"),ic=Object.getOwnPropertyNames||function(n){return df(n,tc)},rc={f:ic},uc=Object.getOwnPropertySymbols,gf={f:uc},fc=bf("Reflect","ownKeys")||function(n){var t=rc.f(s(n)),i=gf.f;return i?t.concat(i(n)):t},ec=function(n,t){for(var f=fc(t),e=k.f,o=lf.f,i=0;i<f.length;i++){var u=f[i];r(n,u)||e(n,u,o(t,u))}},oc=/#|\.prototype\./,ht=function(n,t){var i=hc[sc(n)];return i==lc?!0:i==cc?!1:typeof t=="function"?u(t):!!t},sc=ht.normalize=function(n){return String(n).replace(oc,".").toLowerCase()},hc=ht.data={},cc=ht.NATIVE="N",lc=ht.POLYFILL="P",vr=ht,ac=lf.f,l=function(n,i){var s=n.target,c=n.global,l=n.stat,a,f,r,u,e,h;if(f=c?t:l?t[s]||sr(s,{}):(t[s]||{}).prototype,f)for(r in i){if(e=i[r],n.noTargetGet?(h=ac(f,r),u=h&&h.value):u=f[r],a=vr(c?r:s+(l?".":"#")+r,n.forced),!a&&u!==undefined){if(typeof e==typeof u)continue;ec(e,u)}(n.sham||u&&u.sham)&&o(e,"sham",!0);st(f,r,e,n)}},ne=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n},te=function(n,t,i){if(ne(n),t===undefined)return n;switch(i){case 0:return function(){return n.call(t)};case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}},fi=function(n){return Object(bt(n))},ie=Array.isArray||function(n){return b(n)=="Array"},re=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())}),ue=t.Symbol,fe=dt("wks"),e=function(n){return fe[n]||(fe[n]=re&&ue[n]||(re?ue:hr)("Symbol."+n))},vc=e("species"),yc=function(t,i){var r;return ie(t)&&(r=t.constructor,typeof r=="function"&&(r===Array||ie(r.prototype))?r=undefined:n(r)&&(r=r[vc],r===null&&(r=undefined))),new(r===undefined?Array:r)(i===0?0:i)},pc=[].push,v=function(n){var i=n==1,u=n==2,f=n==3,t=n==4,r=n==6,e=n==5||r;return function(o,s,h,c){for(var w=fi(o),v=wt(w),d=te(s,h,3),b=ri(v.length),l=0,k=c||yc,y=i?k(o,b):u?k(o,0):undefined,a,p;b>l;l++)if((e||l in v)&&(a=v[l],p=d(a,l,w),n))if(i)y[l]=p;else if(p)switch(n){case 3:return!0;case 5:return a;case 6:return l;case 2:pc.call(y,a)}else if(t)return!1;return r?-1:f||t?t:y}},ei={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)},ee=function(n,t){var i=[][n];return!i||!u(function(){i.call(null,t||function(){throw 1;},1)})},wc=ei.forEach,ct=ee("forEach")?function(n){return wc(this,n,arguments.length>1?arguments[1]:undefined)}:[].forEach;l({target:"Array",proto:!0,forced:[].forEach!=ct},{forEach:ct});var yr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var bc in yr){var oe=t[bc],oi=oe&&oe.prototype;if(oi&&oi.forEach!==ct)try{o(oi,"forEach",ct)}catch(bb){oi.forEach=ct}}var kc=!!(typeof window!="undefined"&&window.document&&window.document.createElement),pr=kc,dc=e("species"),gc=function(n){return!u(function(){var t=[],i=t.constructor={};return i[dc]=function(){return{foo:1}},t[n](Boolean).foo!==1})},nl=ei.filter;l({target:"Array",proto:!0,forced:!gc("filter")},{filter:function(n){return nl(this,n,arguments.length>1?arguments[1]:undefined)}});var si=Object.keys||function(n){return df(n,ui)},tl=a?Object.defineProperties:function(n,t){s(n);for(var i=si(t),f=i.length,r=0,u;f>r;)k.f(n,u=i[r++],t[u]);return n},il=bf("document","documentElement"),se=cr("IE_PROTO"),wr="prototype",br=function(){},hi=function(){var t=sf("iframe"),r=ui.length,u="<",i="script",f=">",e="java"+i+":",n;for(t.style.display="none",il.appendChild(t),t.src=String(e),n=t.contentWindow.document,n.open(),n.write(u+i+f+"document.F=Object"+u+"/"+i+f),n.close(),hi=n.F;r--;)delete hi[wr][ui[r]];return hi()},he=Object.create||function(n,t){var i;return n!==null?(br[wr]=s(n),i=new br,br[wr]=null,i[se]=n):i=hi(),t===undefined?i:tl(i,t)};ni[se]=!0;var kr=e("unscopables"),dr=Array.prototype;dr[kr]==undefined&&o(dr,kr,he(null));var gr=function(n){dr[kr][n]=!0},g={},rl=!u(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype}),ce=cr("IE_PROTO"),ul=Object.prototype,ci=rl?Object.getPrototypeOf:function(n){return(n=fi(n),r(n,ce))?n[ce]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?ul:null},le=e("iterator"),ae=!1,fl=function(){return this},nt,nu,tu;[].keys&&(tu=[].keys(),"next"in tu?(nu=ci(ci(tu)),nu!==Object.prototype&&(nt=nu)):ae=!0);nt==undefined&&(nt={});r(nt,le)||o(nt,le,fl);var iu={IteratorPrototype:nt,BUGGY_SAFARI_ITERATORS:ae},el=k.f,ve=e("toStringTag"),ru=function(n,t,i){n&&!r(n=i?n:n.prototype,ve)&&el(n,ve,{configurable:!0,value:t})},ol=iu.IteratorPrototype,sl=function(){return this},hl=function(n,t,i){var r=t+" Iterator";return n.prototype=he(ol,{next:er(1,i)}),ru(n,r,!1),g[r]=sl,n},cl=function(t){if(!n(t)&&t!==null)throw TypeError("Can't set "+String(t)+" as a prototype");return t},li=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,i={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;n.call(i,[]);t=i instanceof Array}catch(r){}return function(i,r){return s(i),cl(r),t?n.call(i,r):i.__proto__=r,i}}():undefined),uu=iu.IteratorPrototype,ai=iu.BUGGY_SAFARI_ITERATORS,lt=e("iterator"),ye="keys",vi="values",pe="entries",ll=function(){return this},we=function(n,t,i,r,u,f,e){hl(i,t,r);var y=function(n){if(n===u&&h)return h;if(!ai&&n in s)return s[n];switch(n){case ye:return function(){return new i(this,n)};case vi:return function(){return new i(this,n)};case pe:return function(){return new i(this,n)}}return function(){return new i(this)}},k=t+" Iterator",w=!1,s=n.prototype,a=s[lt]||s["@@iterator"]||u&&s[u],h=!ai&&a||y(u),b=t=="Array"?s.entries||a:a,c,v,p;if(b&&(c=ci(b.call(new n)),uu!==Object.prototype&&c.next&&(ci(c)!==uu&&(li?li(c,uu):typeof c[lt]!="function"&&o(c,lt,ll)),ru(c,k,!0))),u==vi&&a&&a.name!==vi&&(w=!0,h=function(){return a.call(this)}),s[lt]!==h&&o(s,lt,h),g[t]=h,u)if(v={values:y(vi),keys:f?h:y(ye),entries:y(pe)},e)for(p in v)!ai&&!w&&p in s||st(s,p,v[p]);else l({target:t,proto:!0,forced:ai||w},v);return v},be="Array Iterator",al=h.set,vl=h.getterFor(be),at=we(Array,"Array",function(n,t){al(this,{type:be,target:kt(n),index:0,kind:t})},function(){var t=vl(this),i=t.target,r=t.kind,n=t.index++;return!i||n>=i.length?(t.target=undefined,{value:undefined,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:i[n],done:!1}:{value:[n,i[n]],done:!1}},"values");g.Arguments=g.Array;gr("keys");gr("values");gr("entries");var yi=Object.assign,ke=!yi||u(function(){var n={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return n[i]=7,r.split("").forEach(function(n){t[n]=n}),yi({},n)[i]!=7||si(yi({},t)).join("")!=r})?function(n){for(var r=fi(n),s=arguments.length,u=1,f=gf.f,h=ef.f;s>u;)for(var t=wt(arguments[u++]),e=f?si(t).concat(f(t)):si(t),c=e.length,o=0,i;c>o;)i=e[o++],(!a||h.call(t,i))&&(r[i]=t[i]);return r}:yi;l({target:"Object",stat:!0,forced:Object.assign!==ke},{assign:ke});var yl=e("toStringTag"),pl=b(function(){return arguments}())=="Arguments",wl=function(n,t){try{return n[t]}catch(i){}},de=function(n){var t,i,r;return n===undefined?"Undefined":n===null?"Null":typeof(i=wl(t=Object(n),yl))=="string"?i:pl?b(t):(r=b(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},bl=e("toStringTag"),fu={};fu[bl]="z";var ge=String(fu)!=="[object z]"?function(){return"[object "+de(this)+"]"}:fu.toString,no=Object.prototype;ge!==no.toString&&st(no,"toString",ge,{unsafe:!0});var eu="\t\n\x0b\f\r                 \u2028\u2029",pi="["+eu+"]",kl=RegExp("^"+pi+pi+"*"),dl=RegExp(pi+pi+"*$"),ou=function(n){return function(t){var i=String(bt(t));return n&1&&(i=i.replace(kl,"")),n&2&&(i=i.replace(dl,"")),i}},gl={start:ou(1),end:ou(2),trim:ou(3)},na=gl.trim,wi=t.parseInt,ta=/^[+-]?0[Xx]/,ia=wi(eu+"08")!==8||wi(eu+"0x16")!==22,to=ia?function(n,t){var i=na(String(n));return wi(i,t>>>0||(ta.test(i)?16:10))}:wi;l({global:!0,forced:parseInt!=to},{parseInt:to});var io=function(n){return function(t,i){var u=String(bt(t)),r=ar(i),o=u.length,f,e;return r<0||r>=o?n?"":undefined:(f=u.charCodeAt(r),f<55296||f>56319||r+1===o||(e=u.charCodeAt(r+1))<56320||e>57343?n?u.charAt(r):f:n?u.slice(r,r+2):(f-55296<<10)+(e-56320)+65536)}},ro={codeAt:io(!1),charAt:io(!0)},ra=ro.charAt,uo="String Iterator",ua=h.set,fa=h.getterFor(uo);we(String,"String",function(n){ua(this,{type:uo,string:String(n),index:0})},function(){var n=fa(this),i=n.string,r=n.index,t;return r>=i.length?{value:undefined,done:!0}:(t=ra(i,r),n.index+=t.length,{value:t,done:!1})});var su=function(n,t,i){for(var r in t)st(n,r,t[r],i);return n},ea=!u(function(){return Object.isExtensible(Object.preventExtensions({}))}),y=ft(function(t){var e=k.f,i=hr("meta"),o=0,u=Object.isExtensible||function(){return!0},f=function(n){e(n,i,{value:{objectID:"O"+ ++o,weakData:{}}})},s=function(t,e){if(!n(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!r(t,i)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[i].objectID},h=function(n,t){if(!r(n,i)){if(!u(n))return!0;if(!t)return!1;f(n)}return n[i].weakData},c=function(n){return ea&&l.REQUIRED&&u(n)&&!r(n,i)&&f(n),n},l=t.exports={REQUIRED:!1,fastKey:s,getWeakData:h,onFreeze:c};ni[i]=!0}),ik=y.REQUIRED,rk=y.fastKey,uk=y.getWeakData,fk=y.onFreeze,oa=e("iterator"),sa=Array.prototype,ha=function(n){return n!==undefined&&(g.Array===n||sa[oa]===n)},ca=e("iterator"),la=function(n){if(n!=undefined)return n[ca]||n["@@iterator"]||g[de(n)]},aa=function(n,t,i,r){try{return r?t(s(i)[0],i[1]):t(i)}catch(f){var u=n["return"];u!==undefined&&s(u.call(n));throw f;}},fo=ft(function(n){var t=function(n,t){this.stopped=n;this.result=t},i=n.exports=function(n,i,r,u,f){var a=te(i,r,u?2:1),h,c,o,v,e,l;if(f)h=n;else{if(c=la(n),typeof c!="function")throw TypeError("Target is not iterable");if(ha(c)){for(o=0,v=ri(n.length);v>o;o++)if(e=u?a(s(l=n[o])[0],l[1]):a(n[o]),e&&e instanceof t)return e;return new t(!1)}h=c.call(n)}while(!(l=h.next()).done)if(e=aa(h,a,l.value,u),e&&e instanceof t)return e;return new t(!1)};i.stop=function(n){return new t(!0,n)}}),eo=function(n,t,i){if(!(n instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return n},oo=e("iterator"),so=!1;try{var va=0,ho={next:function(){return{done:!!va++}},"return":function(){so=!0}};ho[oo]=function(){return this};Array.from(ho,function(){throw 2;})}catch(bb){}var ya=function(n,t){if(!t&&!so)return!1;var i=!1;try{var r={};r[oo]=function(){return{next:function(){return{done:i=!0}}}};n(r)}catch(u){}return i},pa=function(t,i,r){var u,f;return li&&typeof(u=i.constructor)=="function"&&u!==r&&n(f=u.prototype)&&f!==r.prototype&&li(t,f),t},wa=function(i,r,f,e,o){var h=t[i],c=h&&h.prototype,s=h,a=e?"set":"add",w={},v=function(t){var i=c[t];st(c,t,t=="add"?function(n){return i.call(this,n===0?0:n),this}:t=="delete"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:t=="get"?function(t){return o&&!n(t)?undefined:i.call(this,t===0?0:t)}:t=="has"?function(t){return o&&!n(t)?!1:i.call(this,t===0?0:t)}:function(n,t){return i.call(this,n===0?0:n,t),this})};if(vr(i,typeof h!="function"||!(o||c.forEach&&!u(function(){(new h).entries().next()}))))s=f.getConstructor(r,i,e,a),y.REQUIRED=!0;else if(vr(i,!0)){var p=new s,k=p[a](o?{}:-0,1)!=p,d=u(function(){p.has(1)}),g=ya(function(n){new h(n)}),b=!o&&u(function(){for(var t=new h,n=5;n--;)t[a](n,n);return!t.has(-0)});g||(s=r(function(n,t){eo(n,s,i);var r=pa(new h,n,s);return t!=undefined&&fo(t,r[a],r,e),r}),s.prototype=c,c.constructor=s);(d||b)&&(v("delete"),v("has"),e&&v("get"));(b||k)&&v(a);o&&c.clear&&delete c.clear}return w[i]=s,l({global:!0,forced:s!=h},w),ru(s,i),o||f.setStrong(s,i,e),s},bi=y.getWeakData,ba=h.set,ka=h.getterFor,da=ei.find,ga=ei.findIndex,nv=0,ki=function(n){return n.frozen||(n.frozen=new co)},co=function(){this.entries=[]},hu=function(n,t){return da(n.entries,function(n){return n[0]===t})};co.prototype={get:function(n){var t=hu(this,n);if(t)return t[1]},has:function(n){return!!hu(this,n)},set:function(n,t){var i=hu(this,n);i?i[1]=t:this.entries.push([n,t])},"delete":function(n){var t=ga(this.entries,function(t){return t[0]===n});return~t&&this.entries.splice(t,1),!!~t}};var lo={getConstructor:function(t,i,u,f){var e=t(function(n,t){eo(n,e,i);ba(n,{type:i,id:nv++,frozen:undefined});t!=undefined&&fo(t,n[f],n,u)}),o=ka(i),h=function(n,t,i){var r=o(n),u=bi(s(t),!0);return u===!0?ki(r).set(t,i):u[r.id]=i,n};return su(e.prototype,{"delete":function(t){var u=o(this);if(!n(t))return!1;var i=bi(t);return i===!0?ki(u)["delete"](t):i&&r(i,u.id)&&delete i[u.id]},has:function(t){var u=o(this);if(!n(t))return!1;var i=bi(t);return i===!0?ki(u).has(t):i&&r(i,u.id)}}),su(e.prototype,u?{get:function(t){var r=o(this);if(n(t)){var i=bi(t);return i===!0?ki(r).get(t):i?i[r.id]:undefined}},set:function(n,t){return h(this,n,t)}}:{add:function(n){return h(this,n,!0)}}),e}},ek=ft(function(i){var f=h.enforce,v=!t.ActiveXObject&&"ActiveXObject"in t,e=Object.isExtensible,r,s=function(n){return function(){return n(this,arguments.length?arguments[0]:undefined)}},p=i.exports=wa("WeakMap",s,lo,!0,!0);if(yf&&v){r=lo.getConstructor(s,"WeakMap",!0);y.REQUIRED=!0;var u=p.prototype,c=u["delete"],o=u.has,l=u.get,a=u.set;su(u,{"delete":function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),c.call(this,t)||i.frozen["delete"](t)}return c.call(this,t)},has:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)||i.frozen.has(t)}return o.call(this,t)},get:function(t){if(n(t)&&!e(t)){var i=f(this);return i.frozen||(i.frozen=new r),o.call(this,t)?l.call(this,t):i.frozen.get(t)}return l.call(this,t)},set:function(t,i){if(n(t)&&!e(t)){var u=f(this);u.frozen||(u.frozen=new r);o.call(this,t)?a.call(this,t,i):u.frozen.set(t,i)}else a.call(this,t,i);return this}})}}),cu=e("iterator"),ao=e("toStringTag"),lu=at.values;for(var au in yr){var vo=t[au],c=vo&&vo.prototype;if(c){if(c[cu]!==lu)try{o(c,cu,lu)}catch(bb){c[cu]=lu}if(c[ao]||o(c,ao,au),yr[au])for(var tt in at)if(c[tt]!==at[tt])try{o(c,tt,at[tt])}catch(bb){c[tt]=at[tt]}}}var yo="Expected a function",po=0/0,tv="[object Symbol]",iv=/^\s+|\s+$/g,rv=/^[-+]0x[0-9a-f]+$/i,uv=/^0b[01]+$/i,fv=/^0o[0-7]+$/i,ev=parseInt,ov=typeof f=="object"&&f&&f.Object===Object&&f,sv=typeof self=="object"&&self&&self.Object===Object&&self,hv=ov||sv||Function("return this")(),cv=Object.prototype,lv=cv.toString,av=Math.max,vv=Math.min,vu=function(){return hv.Date.now()};function yv(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(yo);t=wo(t)||0;di(i)&&(p=!!i.leading,h="maxWait"in i,c=h?av(wo(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?vv(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=vu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(vu())}function y(){var n=vu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function pv(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new TypeError(yo);return di(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),yv(n,t,{leading:r,maxWait:t,trailing:u})}function di(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function wv(n){return!!n&&typeof n=="object"}function bv(n){return typeof n=="symbol"||wv(n)&&lv.call(n)==tv}function wo(n){if(typeof n=="number")return n;if(bv(n))return po;if(di(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=di(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(iv,"");var i=uv.test(n);return i||fv.test(n)?ev(n.slice(2),i?2:8):rv.test(n)?po:+n}var bo=pv,kv="Expected a function",ko=0/0,dv="[object Symbol]",gv=/^\s+|\s+$/g,ny=/^[-+]0x[0-9a-f]+$/i,ty=/^0b[01]+$/i,iy=/^0o[0-7]+$/i,ry=parseInt,uy=typeof f=="object"&&f&&f.Object===Object&&f,fy=typeof self=="object"&&self&&self.Object===Object&&self,ey=uy||fy||Function("return this")(),oy=Object.prototype,sy=oy.toString,hy=Math.max,cy=Math.min,yu=function(){return ey.Date.now()};function ly(n,t,i){var f,o,c,e,r,u,s=0,p=!1,h=!1,a=!0;if(typeof n!="function")throw new TypeError(kv);t=go(t)||0;pu(i)&&(p=!!i.leading,h="maxWait"in i,c=h?hy(go(i.maxWait)||0,t):c,a="trailing"in i?!!i.trailing:a);function v(t){var i=f,r=o;return f=o=undefined,s=t,e=n.apply(r,i)}function k(n){return s=n,r=setTimeout(l,t),p?v(n):e}function d(n){var r=n-u,f=n-s,i=t-r;return h?cy(i,c-f):i}function w(n){var i=n-u,r=n-s;return u===undefined||i>=t||i<0||h&&r>=c}function l(){var n=yu();if(w(n))return b(n);r=setTimeout(l,d(n))}function b(n){return(r=undefined,a&&f)?v(n):(f=o=undefined,e)}function g(){r!==undefined&&clearTimeout(r);s=0;f=u=o=r=undefined}function nt(){return r===undefined?e:b(yu())}function y(){var n=yu(),i=w(n);if(f=arguments,o=this,u=n,i){if(r===undefined)return k(u);if(h)return r=setTimeout(l,t),v(u)}return r===undefined&&(r=setTimeout(l,t)),e}return y.cancel=g,y.flush=nt,y}function pu(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function ay(n){return!!n&&typeof n=="object"}function vy(n){return typeof n=="symbol"||ay(n)&&sy.call(n)==dv}function go(n){if(typeof n=="number")return n;if(vy(n))return ko;if(pu(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=pu(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=n.replace(gv,"");var i=ty.test(n);return i||iy.test(n)?ry(n.slice(2),i?2:8):ny.test(n)?ko:+n}var ns=ly,yy="Expected a function",ts="__lodash_hash_undefined__",py="[object Function]",wy="[object GeneratorFunction]",by=/^\[object .+?Constructor\]$/,ky=typeof f=="object"&&f&&f.Object===Object&&f,dy=typeof self=="object"&&self&&self.Object===Object&&self,is=ky||dy||Function("return this")();function gy(n,t){return n==null?undefined:n[t]}function np(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}var tp=Array.prototype,ip=Function.prototype,rs=Object.prototype,wu=is["__core-js_shared__"],us=function(){var n=/[^.]+$/.exec(wu&&wu.keys&&wu.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),fs=ip.toString,bu=rs.hasOwnProperty,rp=rs.toString,up=RegExp("^"+fs.call(bu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fp=tp.splice,ep=es(is,"Map"),vt=es(Object,"create");function p(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function op(){this.__data__=vt?vt(null):{}}function sp(n){return this.has(n)&&delete this.__data__[n]}function hp(n){var t=this.__data__;if(vt){var i=t[n];return i===ts?undefined:i}return bu.call(t,n)?t[n]:undefined}function cp(n){var t=this.__data__;return vt?t[n]!==undefined:bu.call(t,n)}function lp(n,t){var i=this.__data__;return i[n]=vt&&t===undefined?ts:t,this}p.prototype.clear=op;p.prototype["delete"]=sp;p.prototype.get=hp;p.prototype.has=cp;p.prototype.set=lp;function it(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function ap(){this.__data__=[]}function vp(n){var t=this.__data__,i=gi(t,n);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():fp.call(t,i,1),!0}function yp(n){var t=this.__data__,i=gi(t,n);return i<0?undefined:t[i][1]}function pp(n){return gi(this.__data__,n)>-1}function wp(n,t){var i=this.__data__,r=gi(i,n);return r<0?i.push([n,t]):i[r][1]=t,this}it.prototype.clear=ap;it.prototype["delete"]=vp;it.prototype.get=yp;it.prototype.has=pp;it.prototype.set=wp;function w(n){var t=-1,r=n?n.length:0;for(this.clear();++t<r;){var i=n[t];this.set(i[0],i[1])}}function bp(){this.__data__={hash:new p,map:new(ep||it),string:new p}}function kp(n){return nr(this,n)["delete"](n)}function dp(n){return nr(this,n).get(n)}function gp(n){return nr(this,n).has(n)}function nw(n,t){return nr(this,n).set(n,t),this}w.prototype.clear=bp;w.prototype["delete"]=kp;w.prototype.get=dp;w.prototype.has=gp;w.prototype.set=nw;function gi(n,t){for(var i=n.length;i--;)if(fw(n[i][0],t))return i;return-1}function tw(n){if(!os(n)||rw(n))return!1;var t=ew(n)||np(n)?up:by;return t.test(uw(n))}function nr(n,t){var i=n.__data__;return iw(t)?i[typeof t=="string"?"string":"hash"]:i.map}function es(n,t){var i=gy(n,t);return tw(i)?i:undefined}function iw(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function rw(n){return!!us&&us in n}function uw(n){if(n!=null){try{return fs.call(n)}catch(t){}try{return n+""}catch(t){}}return""}function ku(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new TypeError(yy);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache;if(f.has(u))return f.get(u);var e=n.apply(this,r);return i.cache=f.set(u,e),e};return i.cache=new(ku.Cache||w),i}ku.Cache=w;function fw(n,t){return n===t||n!==n&&t!==t}function ew(n){var t=os(n)?rp.call(n):"";return t==py||t==wy}function os(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}var ow=ku,ss=function(){function n(n,t){var i=-1;return n.some(function(n,r){return n[0]===t?(i=r,!0):!1}),i}return typeof Map!="undefined"?Map:function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=n(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,i){var r=n(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=n(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~n(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,t){t===void 0&&(t=null);for(var i=0,r=this.__entries__;i<r.length;i++){var u=r[i];n.call(t,u[1],u[0])}},t}()}(),du=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,tr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),sw=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tr):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}}(),hw=2;function cw(n,t){var i=!1,r=!1,u=0;function e(){i&&(i=!1,n());r&&f()}function o(){sw(e)}function f(){var n=Date.now();if(i){if(n-u<hw)return;r=!0}else i=!0,r=!1,setTimeout(o,t);u=n}return f}var lw=20,aw=["top","right","bottom","left","width","height","size","weight"],vw=typeof MutationObserver!="undefined",yw=function(){function n(){this.connected_=!1;this.mutationEventsAdded_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=cw(this.refresh.bind(this),lw)}return n.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n);this.connected_||this.connect_()},n.prototype.removeObserver=function(n){var t=this.observers_,i=t.indexOf(n);~i&&t.splice(i,1);!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},n.prototype.updateObservers_=function(){var n=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return n.forEach(function(n){return n.broadcastActive()}),n.length>0},n.prototype.connect_=function(){du&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vw?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){du&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(n){var t=n.propertyName,i=t===void 0?"":t,r=aw.some(function(n){return!!~i.indexOf(n)});r&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),hs=function(n,t){for(var i=0,r=Object.keys(t);i<r.length;i++){var u=r[i];Object.defineProperty(n,u,{value:t[u],enumerable:!1,writable:!1,configurable:!0})}return n},rt=function(n){var t=n&&n.ownerDocument&&n.ownerDocument.defaultView;return t||tr},cs=rr(0,0,0,0);function ir(n){return parseFloat(n)||0}function ls(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return i.reduce(function(t,i){var r=n["border-"+i+"-width"];return t+ir(r)},0)}function pw(n){for(var i={},t=0,r=["top","right","bottom","left"];t<r.length;t++){var u=r[t],f=n["padding-"+u];i[u]=ir(f)}return i}function ww(n){var t=n.getBBox();return rr(0,0,t.width,t.height)}function bw(n){var f=n.clientWidth,e=n.clientHeight;if(!f&&!e)return cs;var t=rt(n).getComputedStyle(n),i=pw(t),o=i.left+i.right,s=i.top+i.bottom,r=ir(t.width),u=ir(t.height);if(t.boxSizing==="border-box"&&(Math.round(r+o)!==f&&(r-=ls(t,"left","right")+o),Math.round(u+s)!==e&&(u-=ls(t,"top","bottom")+s)),!dw(n)){var h=Math.round(r+o)-f,c=Math.round(u+s)-e;Math.abs(h)!==1&&(r-=h);Math.abs(c)!==1&&(u-=c)}return rr(i.left,i.top,r,u)}var kw=function(){return typeof SVGGraphicsElement!="undefined"?function(n){return n instanceof rt(n).SVGGraphicsElement}:function(n){return n instanceof rt(n).SVGElement&&typeof n.getBBox=="function"}}();function dw(n){return n===rt(n).document.documentElement}function gw(n){return du?kw(n)?ww(n):bw(n):cs}function nb(n){var t=n.x,i=n.y,r=n.width,u=n.height,e=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,f=Object.create(e.prototype);return hs(f,{x:t,y:i,width:r,height:u,top:i,right:t+r,bottom:u+i,left:t}),f}function rr(n,t,i,r){return{x:n,y:t,width:i,height:r}}var tb=function(){function n(n){this.broadcastWidth=0;this.broadcastHeight=0;this.contentRect_=rr(0,0,0,0);this.target=n}return n.prototype.isActive=function(){var n=gw(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},n}(),ib=function(){function n(n,t){var i=nb(t);hs(this,{target:n,contentRect:i})}return n}(),rb=function(){function n(n,t,i){if(this.activeObservations_=[],this.observations_=new ss,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n;this.controller_=t;this.callbackCtx_=i}return n.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof rt(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new tb(n)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(n instanceof rt(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)&&(t.delete(n),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive();this.observations_.clear();this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var n=this;this.clearActive();this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new ib(n.target,n.broadcastRect())});this.callback_.call(n,t,n);this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),as=typeof WeakMap!="undefined"?new WeakMap:new ss,vs=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=yw.getInstance(),r=new rb(t,i,this);as.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){vs.prototype[n]=function(){var t;return(t=as.get(this))[n].apply(t,arguments)}});var ub=function(){return typeof tr.ResizeObserver!="undefined"?tr.ResizeObserver:vs}(),ut=null,ys=null;pr&&window.addEventListener("resize",function(){ys!==window.devicePixelRatio&&(ys=window.devicePixelRatio,ut=null)});function ps(){if(ut===null){if(typeof document=="undefined")return ut=0;var t=document.body,n=document.createElement("div");n.classList.add("asl_simplebar-hide-scrollbar");t.appendChild(n);var i=n.getBoundingClientRect().right;t.removeChild(n);ut=i}return ut}var i=function(){function t(n,i){var r=this;(this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0);r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x"));r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y"));r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x");r.showScrollbar("y")},this.onMouseMove=function(n){if(r.mouseX=n.clientX,r.mouseY=n.clientY,r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseMoveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){if(r.onMouseMove.cancel(),r.axis.x.isOverflowing||r.axis.x.forceVisible)r.onMouseLeaveForAxis("x");if(r.axis.y.isOverflowing||r.axis.y.forceVisible)r.onMouseLeaveForAxis("y");r.mouseX=-1;r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth();r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect();r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect();r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1);r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(n){var t,i;if(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(t||i)&&(n.preventDefault(),n.stopPropagation(),n.type==="mousedown")){if(t)if(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect))r.onDragStart(n,"x");else r.onTrackClick(n,"x");if(i)if(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect))r.onDragStart(n,"y");else r.onTrackClick(n,"y")}},this.drag=function(n){var u,f=r.axis[r.draggedAxis].track,e=f.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,s=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],h=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);n.preventDefault();n.stopPropagation();u=r.draggedAxis==="y"?n.pageY:n.pageX;var c=u-f.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset,l=c/(e-o.size),i=l*(s-h);r.draggedAxis==="x"&&(i=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i-(e+o.size):i,i=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-i:i);r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=i},this.onEndDrag=function(n){n.preventDefault();n.stopPropagation();r.el.classList.remove(r.classNames.dragging);document.removeEventListener("mousemove",r.drag,!0);document.removeEventListener("mouseup",r.onEndDrag,!0);r.removePreventClickId=window.setTimeout(function(){document.removeEventListener("click",r.preventClick,!0);document.removeEventListener("dblclick",r.preventClick,!0);r.removePreventClickId=null})},this.preventClick=function(n){n.preventDefault();n.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},i),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el))||(this.recalculate=bo(this.recalculate.bind(this),64),this.onMouseMove=bo(this.onMouseMove.bind(this),64),this.hideScrollbars=ns(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ns(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=ow(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"><\/div><\/div>';var n=r.firstElementChild;document.body.appendChild(n);var u=n.firstElementChild;n.scrollLeft=0;var f=t.getOffset(n),i=t.getOffset(u);n.scrollLeft=999;var e=t.getOffset(u);return{isRtlScrollingInverted:f.left!==i.left&&i.left-e.left!=0,isRtlScrollbarInverted:f.left!==i.left}};t.getOffset=function(n){var t=n.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft)}};var n=t.prototype;return n.init=function(){t.instances.set(this.el,this);pr&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},n.initDOM=function(){var i=this;if(Array.prototype.filter.call(this.el.children,function(n){return n.classList.contains(i.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl);this.offsetEl.appendChild(this.contentWrapperEl);this.maskEl.appendChild(this.offsetEl);this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);this.wrapperEl.appendChild(this.maskEl);this.wrapperEl.appendChild(this.placeholderEl);this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),t=document.createElement("div");n.classList.add(this.classNames.track);t.classList.add(this.classNames.scrollbar);n.appendChild(t);this.axis.x.track.el=n.cloneNode(!0);this.axis.x.track.el.classList.add(this.classNames.horizontal);this.axis.y.track.el=n.cloneNode(!0);this.axis.y.track.el.classList.add(this.classNames.vertical);this.el.appendChild(this.axis.x.track.el);this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar);this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar);this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible));this.el.setAttribute("data-asl_simplebar","init")},n.initListeners=function(){var n=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.addEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.addEventListener("mousemove",this.onMouseMove);this.el.addEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.addEventListener("scroll",this.onScroll);window.addEventListener("resize",this.onWindowResize);var t=!1;this.resizeObserver=new ub(function(){t&&n.recalculate()});this.resizeObserver.observe(this.el);this.resizeObserver.observe(this.contentEl);window.requestAnimationFrame(function(){t=!0});this.mutationObserver=new MutationObserver(this.recalculate);this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},n.recalculate=function(){this.elStyles=window.getComputedStyle(this.el);this.isRtl=this.elStyles.direction==="rtl";var u=this.heightAutoObserverEl.offsetHeight<=1,f=this.heightAutoObserverEl.offsetWidth<=1,t=this.contentEl.offsetWidth,e=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft;this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var n=this.contentEl.scrollHeight,i=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=u?"auto":"100%";this.placeholderEl.style.width=f?t+"px":"auto";this.placeholderEl.style.height=n+"px";var r=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=i>t;this.axis.y.isOverflowing=n>r;this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing;this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing;this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0;this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0;this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,c=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&i>e-c;this.axis.y.isOverflowing=this.axis.y.isOverflowing&&n>r-h;this.axis.x.scrollbar.size=this.getScrollbarSize("x");this.axis.y.scrollbar.size=this.getScrollbarSize("y");this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px";this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px";this.positionScrollbar("x");this.positionScrollbar("y");this.toggleTrackVisibility("x");this.toggleTrackVisibility("y")},n.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],t,u=i/r;return t=Math.max(~~(u*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},n.positionScrollbar=function(n){if(n===void 0&&(n="y"),this.axis[n].isOverflowing){var e=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=this.axis[n].track.el[this.axis[n].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.axis[n].scrollbar,r=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];r=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-r:r;var s=r/(e-o),i=~~((f-u.size)*s);i=n==="x"&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?i+(f-u.size):i;u.el.style.transform=n==="x"?"translate3d("+i+"px, 0, 0)":"translate3d(0, "+i+"px, 0)"}},n.toggleTrackVisibility=function(n){n===void 0&&(n="y");var t=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden");i.style.display=this.axis[n].isOverflowing?"block":"none"},n.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0;this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},n.onMouseMoveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect();this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var t=this.isWithinBounds(this.axis[n].scrollbar.rect);t?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover);this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},n.onMouseLeaveForAxis=function(n){n===void 0&&(n="y");this.axis[n].track.el.classList.remove(this.classNames.hover);this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},n.showScrollbar=function(n){n===void 0&&(n="y");var t=this.axis[n].scrollbar.el;this.axis[n].isVisible||(t.classList.add(this.classNames.visible),this.axis[n].isVisible=!0);this.options.autoHide&&this.hideScrollbars()},n.onDragStart=function(n,t){t===void 0&&(t="y");var i=this.axis[t].scrollbar,r=t==="y"?n.pageY:n.pageX;this.axis[t].dragOffset=r-i.rect[this.axis[t].offsetAttr];this.draggedAxis=t;this.el.classList.add(this.classNames.dragging);document.addEventListener("mousemove",this.drag,!0);document.addEventListener("mouseup",this.onEndDrag,!0);this.removePreventClickId===null?(document.addEventListener("click",this.preventClick,!0),document.addEventListener("dblclick",this.preventClick,!0)):(window.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},n.onTrackClick=function(n,t){var r=this;t===void 0&&(t="y");this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var c=this.axis[t].scrollbar,f=c.rect[this.axis[t].offsetAttr],e=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=t==="y"?this.mouseY-f:this.mouseX-f,o=l<0?-1:1,s=o===-1?i-e:i+e,h=40,u=function u(){if(o===-1){if(i>s){var n;i-=h;r.contentWrapperEl.scrollTo((n={},n[r.axis[t].offsetAttr]=i,n));window.requestAnimationFrame(u)}}else if(i<s){var f;i+=h;r.contentWrapperEl.scrollTo((f={},f[r.axis[t].offsetAttr]=i,f));window.requestAnimationFrame(u)}};u()},n.getContentElement=function(){return this.contentEl},n.getScrollElement=function(){return this.contentWrapperEl},n.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style?0:ps()}catch(n){return ps()}},n.removeListeners=function(){var n=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter);["mousedown","click","dblclick"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,!0)});["touchstart","touchend","touchmove"].forEach(function(t){n.el.removeEventListener(t,n.onPointerEvent,{capture:!0,passive:!0})});this.el.removeEventListener("mousemove",this.onMouseMove);this.el.removeEventListener("mouseleave",this.onMouseLeave);this.contentWrapperEl.removeEventListener("scroll",this.onScroll);window.removeEventListener("resize",this.onWindowResize);this.mutationObserver.disconnect();this.resizeObserver.disconnect();this.recalculate.cancel();this.onMouseMove.cancel();this.hideScrollbars.cancel();this.onWindowResize.cancel()},n.unMount=function(){this.removeListeners();t.instances.delete(this.el)},n.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},n.findChild=function(n,t){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(n){return i.call(n,t)})[0]},t}();i.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{contentEl:"asl_simplebar-content",contentWrapper:"asl_simplebar-content-wrapper",offset:"asl_simplebar-offset",mask:"asl_simplebar-mask",wrapper:"asl_simplebar-wrapper",placeholder:"asl_simplebar-placeholder",scrollbar:"asl_simplebar-scrollbar",track:"asl_simplebar-track",heightAutoObserverWrapperEl:"asl_simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"asl_simplebar-height-auto-observer",visible:"asl_simplebar-visible",horizontal:"asl_simplebar-horizontal",vertical:"asl_simplebar-vertical",hover:"asl_simplebar-hover",dragging:"asl_simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};i.instances=new WeakMap;var ws=function(n){return function(t,i,r,u){ne(i);var o=fi(t),e=wt(o),s=ri(o.length),f=n?s-1:0,h=n?-1:1;if(r<2)while(!0){if(f in e){u=e[f];f+=h;break}if(f+=h,n?f<0:s<=f)throw TypeError("Reduce of empty array with no initial value");}for(;n?f>=0:s>f;f+=h)f in e&&(u=i(u,e[f],f,o));return u}},fb={left:ws(!1),right:ws(!0)},eb=fb.left;l({target:"Array",proto:!0,forced:ee("reduce")},{reduce:function(n){return eb(this,n,arguments.length,arguments.length>1?arguments[1]:undefined)}});var ob=k.f,gu=Function.prototype,sb=gu.toString,hb=/^\s*function ([^ (]*)/,bs="name";!a||bs in gu||ob(gu,bs,{configurable:!0,get:function(){try{return sb.call(this).match(hb)[1]}catch(n){return""}}});var cb=function(){var t=s(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n},ur=RegExp.prototype.exec,lb=String.prototype.replace,ks=ur,nf=function(){var n=/a/,t=/b*/g;return ur.call(n,"a"),ur.call(t,"a"),n.lastIndex!==0||t.lastIndex!==0}(),tf=/()??/.exec("")[1]!==undefined,ab=nf||tf;ab&&(ks=function(n){var i=this,u,f,t,r;return tf&&(f=new RegExp("^"+i.source+"$(?!\\s)",cb.call(i))),nf&&(u=i.lastIndex),t=ur.call(i,n),nf&&t&&(i.lastIndex=i.global?t.index+t[0].length:u),tf&&t&&t.length>1&&lb.call(t[0],f,function(){for(r=1;r<arguments.length-2;r++)arguments[r]===undefined&&(t[r]=undefined)}),t});var rf=ks;l({target:"RegExp",proto:!0,forced:/./.exec!==rf},{exec:rf});var hk=e("species"),ck=!u(function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"".replace(n,"$<a>")!=="7"}),lk=!u(function(){var n=/(?:)/,i=n.exec;n.exec=function(){return i.apply(this,arguments)};var t="ab".split(n);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),vb=ro.charAt,ak=function(n,t,i){return t+(i?vb(n,t).length:1)},vk=function(n,t){var i=n.exec;if(typeof i=="function"){var r=i.call(n,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(b(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return rf.call(n,t)},yk=Math.max,pk=Math.min,wk=Math.floor,bk=function(n){return n===undefined?n:String(n)},fr=function(n){return Array.prototype.reduce.call(n,function(n,t){var r=t.name.match(/data-asl_simplebar-(.+)/);if(r){var i=r[1].replace(/\W+(.)/g,function(n,t){return t.toUpperCase()});switch(t.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case undefined:n[i]=!0;break;default:n[i]=t.value}}return n},{})};return i.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements);window.removeEventListener("load",this.initDOMLoadedElements);Array.prototype.forEach.call(document.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'),function(n){i.instances.has(n)||new i(n,fr(n.attributes))})},i.removeObserver=function(){this.globalObserver.disconnect()},i.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this);typeof MutationObserver!="undefined"&&(this.globalObserver=new MutationObserver(i.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0}));document.readyState!=="complete"&&(document.readyState==="loading"||document.documentElement.doScroll)?(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements)):window.setTimeout(this.initDOMLoadedElements)},i.handleMutations=function(n){n.forEach(function(n){Array.prototype.forEach.call(n.addedNodes,function(n){n.nodeType===1&&(n.hasAttribute("data-asl_simplebar")?i.instances.has(n)||new i(n,fr(n.attributes)):Array.prototype.forEach.call(n.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'),function(n){i.instances.has(n)||new i(n,fr(n.attributes))}))});Array.prototype.forEach.call(n.removedNodes,function(n){n.nodeType===1&&(n.hasAttribute('[data-asl_simplebar="init"]')?i.instances.has(n)&&i.instances.get(n).unMount():Array.prototype.forEach.call(n.querySelectorAll('[data-asl_simplebar="init"]'),function(n){i.instances.has(n)&&i.instances.get(n).unMount()}))})})},i.getOptions=fr,pr&&i.initHtmlApi(),i});
2
  /*! Ajax Search Lite 4.6 js */
3
+ (function(n){var t,c=!0,s={init:function(t,i){var r=this;this.elem=i;this.$elem=n(i);r.searching=!1;r.o=n.extend({blocking:!1},t);r.n={};r.n.container=n(this.elem);r.o.rid=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.o.id=r.n.container.attr("id").match(/^ajaxsearchlite(.*)/)[1];r.n.probox=n(".probox",r.n.container);r.n.proinput=n(".proinput",r.n.container);r.n.text=n(".proinput input.orig",r.n.container);r.n.textAutocomplete=n(".proinput input.autocomplete",r.n.container);r.n.loading=n(".proinput .loading",r.n.container);r.n.proloading=n(".proloading",r.n.container);r.n.proclose=n(".proclose",r.n.container);r.n.promagnifier=n(".promagnifier",r.n.container);r.n.prosettings=n(".prosettings",r.n.container);r.n.searchsettings=n("#ajaxsearchlitesettings"+r.o.rid);r.n.resultsDiv=n("#ajaxsearchliteres"+r.o.rid);r.n.hiddenContainer=n("#asl_hidden_data");r.n.aslItemOverlay=n(".asl_item_overlay",r.n.hiddenContainer);r.resizeTimeout=null;r.n.showmore=n(".showmore",r.n.resultsDiv);r.n.items=n(".item",r.n.resultsDiv);r.n.results=n(".results",r.n.resultsDiv);r.n.resdrg=n(".resdrg",r.n.resultsDiv);r.il={columns:3,itemsPerPage:6};r.firstClick=!0;r.post=null;r.postAuto=null;r.cleanUp();r.n.textAutocomplete.val("");r.o.resultitemheight=parseInt(r.o.resultitemheight);r.scroll={};r.savedScrollTop=0;r.savedContainerTop=0;r.is_scroll=typeof asl_SimpleBar!="undefined";typeof ASL.scrollbar!="undefined"&&ASL.scrollbar==0&&(r.is_scroll=!1);r.settScroll=null;r.n.resultsAppend=n("#wpdreams_asl_results_"+r.o.id);r.currentPage=1;r.isotopic=null;r.lastSuccesfulSearch="";r.lastSearchData={};r.triggerPrevState=!1;r.animation="bounceIn";switch(r.o.resultstype){case"vertical":r.animation=r.o.vresultanimation;break;default:r.animation=r.o.hresultanimation}return r.filterFns={number:function(){for(var t=n(this).parent();!t.hasClass("isotopic");)t=t.parent();var i=n(this).attr("data-itemnum"),u=r.currentPage,f=r.il.itemsPerPage;return parseInt(i,10)<f*u&&parseInt(i,10)>=f*(u-1)}},r.disableMobileScroll=!1,r.n.searchsettings.detach().appendTo("body"),r.o.resultsposition=="hover"?r.n.resultsDiv.detach().appendTo("body"):r.n.resultsAppend.length>0&&r.n.resultsDiv.detach().appendTo(r.n.resultsAppend),typeof ASL.resHTML=="undefined"&&(ASL.resHTML=r.n.resultsDiv.html()),typeof ASL.setHTML=="undefined"&&(ASL.setHTML=r.n.searchsettings.html()),n("fieldset",r.n.searchsettings).each(function(){n(".asl_option:not(.hiddend)",this).last().addClass("asl-o-last")}),ASL.js_retain_popstate==1&&r.initPrevState(),a()&&r.n.container.addClass("asl_msie"),r.initSettingsAnimations(),r.initResultsAnimations(),r.initEvents(),r.initAutop(),r.initEtc(),this},initPrevState:function(){var r=this;c&&t==null&&(t=localStorage.getItem("asl-"+i.encode(location.href)),t!=null&&(t=JSON.parse(t),t.settings=i.decode(t.settings)));t!=null&&typeof t.id!="undefined"&&t.id==r.o.id&&(t.phrase!=""&&(r.triggerPrevState=!0,r.n.text.val(t.phrase)),o(n("form",r.n.searchsettings))!=t.settings&&(r.triggerPrevState=!0,o(n("form",r.n.searchsettings),t.settings)));localStorage.removeItem("asl-"+i.encode(location.href));r.n.resultsDiv.on("click",".results .item",function(){var t=r.n.text.val();if(t!=""||r.settingsChanged){var u={id:r.o.id,phrase:t,settings:i.encode(o(n("form",r.n.searchsettings)))};localStorage.setItem("asl-"+i.encode(location.href),JSON.stringify(u))}})},duplicateCheck:function(){var i=this,t={};n("div[id*=ajaxsearchlite]").each(function(){t.hasOwnProperty(this.id)?n(this).remove():t[this.id]="true"})},gaPageview:function(n){var r=this,t=r.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="pageview")return!1;if(ASL.analytics.string!=""){var i=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1,u=typeof gtag=="function"?gtag:!1;window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var f=r.o.homeurl.replace(window.location.origin,"");u!==!1?t!==!1&&u("config",t,{page_path:f+ASL.analytics.string.replace("{asl_term}",n)}):i!==!1&&(t!==!1&&i("create",t,"auto"),i("send","pageview",{page:f+ASL.analytics.string.replace("{asl_term}",n),title:"Ajax Search"}))}},gaEvent:function(t,i){var u=this,f=u.gaGetTrackingID();if(typeof ASL.analytics=="undefined"||ASL.analytics.method!="event")return!1;var e=typeof gtag=="function"?gtag:!1,o=typeof __gaTracker=="function"?__gaTracker:typeof ga=="function"?ga:!1;if(e===!1&&o===!1)return!1;if(typeof ASL.analytics.event[t]!="undefined"&&ASL.analytics.event[t].active==1&&typeof"gtag"!="undefined"){var s={search_id:u.o.id,search_name:u.o.name,phrase:u.n.text.val(),option_name:"",option_value:"",result_title:"",result_url:"",results_count:""},r={event_category:ASL.analytics.event[t].category,event_label:ASL.analytics.event[t].label,value:ASL.analytics.event[t].value};i=n.extend(s,i);n.each(i,function(t,i){i=String(i).replace(/[\s\n\r]+/g," ").trim();n.each(r,function(n,u){var f=new RegExp("{"+t+"}","gmi");r[n]=u.replace(f,i)})});e===!1?(f!==!1&&o("create",f,"auto"),o("send","event",r.event_category,ASL.analytics.event[t].action,r.event_label,r.value)):(f!==!1&&(r.send_to=f),e("event",ASL.analytics.event[t].action,r))}},gaGetTrackingID:function(){var r=this,n=!1;if(typeof ASL.analytics=="undefined")return n;if(typeof ASL.analytics.tracking_id!="undefined"&&ASL.analytics.tracking_id!="")return ASL.analytics.tracking_id;var i=typeof gtag=="function"?gtag:!1;if(i!==!1&&typeof ga!="undefined"&&typeof ga.getAll!="undefined"){var t=!1;return ga.getAll().forEach(function(n){t=n.get("trackingId")}),t}return n},createVerticalScroll:function(){var t=this;t.is_scroll&&typeof t.scroll.recalculate=="undefined"&&(t.scroll=new asl_SimpleBar(t.n.results.get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0}))},initEvents:function(){var t=this;if(r()&&e())t.n.text.on("touchstart",function(){t.savedScrollTop=n(window).scrollTop();t.savedContainerTop=t.n.container.offset().top});t.n.text.click(function(){n(this).focus();t.gaEvent("focus")});t.n.text.on("focus input",function(){t.searching||(n(this).val()!=""?t.n.proclose.css("display","block"):t.n.proclose.css({display:"none"}))});n(t.n.text.parent()).submit(function(n){if(n.preventDefault(),r())if(t.o.redirect_on_enter){var i=jQuery.Event("keyup");i.keyCode=i.which=13;t.n.text.trigger(i)}else t.o.redirectEnterTo=="ajax_search"&&(t.search(),document.activeElement.blur());else t.o.redirectEnterTo=="ajax_search"&&t.search()});t.n.text.click(function(){t.firstClick&&(n(this).val(""),t.firstClick=!1)});t.n.resultsDiv.css({opacity:0});n(document).bind("click touchend",function(){(t.hideSettings(),t.opened!=!1&&t.o.closeOnDocClick==1)&&t.hideResults()});t.n.proclose.on("click touchend",function(){t.n.text.val("");t.n.textAutocomplete.val("");t.hideResults();t.n.text.focus()});n(t.elem).bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.resultsDiv.bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.searchsettings.bind("click touchend",function(n){n.stopImmediatePropagation()});t.n.prosettings.on("click",function(){t.n.prosettings.data("opened")==0?t.showSettings():t.hideSettings()});var f=t.n.container.parents().filter(function(){return n(this).css("position")=="fixed"});if((f.length>0||t.n.container.css("position")=="fixed")&&(t.n.resultsDiv.css("position")=="absolute"&&t.n.resultsDiv.css("position","fixed"),t.n.resultsDiv.css("z-index",99999999999),t.o.blocking||t.n.searchsettings.css("position","fixed")),r())n(window).on("orientationchange",function(){t.orientationChange();setTimeout(function(){t.orientationChange()},800)});else{var i;n(window).on("resize",function(){clearTimeout(i);i=setTimeout(function(){t.resize()},100)})}var u;n(window).on("scroll",function(){clearTimeout(u);u=setTimeout(function(){t.scrolling(!1)},400)});e()&&r()&&l()&&parseInt(t.n.text.css("font-size"))<16&&(t.n.text.data("fontSize",t.n.text.css("font-size")).css("font-size","16px"),t.n.textAutocomplete.css("font-size","16px"),n("<style>#ajaxsearchlite"+t.o.rid+" input.orig::-webkit-input-placeholder{font-size: 16px !important;}<\/style>").appendTo("head"));t.initNavigationEvent();t.initMagnifierEvent();t.initAutocompleteEvent();t.initFacetEvents()},initAutop:function(){var n=this;if(t!=null&&n.triggerPrevState)return n.search(),t=null,!1},initEtc:function(){var t=this,i=null;n("div.asl_option",t.n.searchsettings).on("mouseup touchend",function(r){if(r.preventDefault(),r.stopImmediatePropagation(),t.dragging)return!1;n('input[type="checkbox"]',this).prop("checked",!n('input[type="checkbox"]',this).prop("checked"));clearTimeout(i);var u=this;i=setTimeout(function(){n('input[type="checkbox"]',u).trigger("asl_chbx_change")},50)});n("div.asl_option label",t.n.searchsettings).click(function(n){n.preventDefault()});t.n.resultsDiv.on("click",".results .item",function(){t.gaEvent("result_click",{result_title:n(this).find("a.asl_res_url").text(),result_url:n(this).find("a.asl_res_url").attr("href")})})},initNavigationEvent:function(){var t=this;n(t.n.resultsDiv).on("mouseenter",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered");n(this).addClass("hovered")});n(t.n.resultsDiv).on("mouseleave",".item",function(){n(".item",t.n.resultsDiv).removeClass("hovered")});n(document).keydown(function(i){if(window.event)var r=window.event.keyCode,e=window.event.type;else if(i)var r=i.which,e=i.type;if(n(".item",t.n.resultsDiv).length>0&&t.n.resultsDiv.css("display")!="none"){if(r==40||r==38){r==40&&(t.n.text.blur(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).first().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").next(".item").addClass("hovered"));r==38&&(t.n.text.blur(),n(".item.hovered",t.n.resultsDiv).length==0?n(".item",t.n.resultsDiv).last().addClass("hovered"):n(".item.hovered",t.n.resultsDiv).removeClass("hovered").prev(".item").addClass("hovered"));i.stopPropagation();i.preventDefault();var u=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results,f=t.n.resultsDiv.find(".resdrg .item.hovered");f.length==0&&(f=t.n.resultsDiv.children().first());u.animate({scrollTop:f.offset().top-u.offset().top+u.scrollTop()},{duration:120})}r==13&&n(".item.hovered",t.n.resultsDiv).length>0&&(i.stopPropagation(),i.preventDefault(),n(".item.hovered a.asl_res_url",t.n.resultsDiv).get(0).click())}})},initMagnifierEvent:function(){var t=this,i,u,r=!1;t.n.text.on("keyup",function(f){if(window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):f&&(t.keycode=f.which,t.ktype=f.type),t.keycode==13){if(clearTimeout(u),u=setTimeout(function(){r=!1},300),r)return!1;r=!0}var e=n(this).hasClass("orig");if(t.n.text.val().length>=t.o.charcount&&e&&t.ktype=="keyup"&&t.keycode==13){if(t.gaEvent("return"),t.o.redirect_on_enter==1)t.o.redirectEnterTo!="first_result"?t.doRedirectToResults(t.ktype):t.search();else{if(t.o.redirectEnterTo=="nothing")return!1;n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&t.resultsOpened||t.search()}clearTimeout(i)}});t.n.promagnifier.add(t.n.text).bind("click input",function(r){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):r&&(t.keycode=r.which,t.ktype=r.type);var u=n(this).hasClass("orig");if(t.n.text.val().length<t.o.charcount){t.n.proloading.css("display","none");t.hideResults();t.post!=null&&t.post.abort();clearTimeout(i);return}if(t.n.text.val().length>=t.o.charcount&&!u&&t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo!="first_result"){t.doRedirectToResults(t.ktype);clearTimeout(i);return}if((!(t.keycode>=37)||!(t.keycode<=40))&&(!(t.keycode>=112)||!(t.keycode<=123))){if(u&&t.ktype=="click"||t.keycode==32){n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()==t.lastSuccesfulSearch&&(t.n.proclose.css("display","block"),t.resultsOpened||t.showResults());return}n(this).hasClass("orig")&&t.ktype=="click"||(u||t.ktype!="click"||t.gaEvent("magnifier"),t.o.trigger_on_click!=0||t.ktype!="click")&&(t.o.triggerontype!=0||t.ktype!="input")&&(!u||t.ktype!="input"||t.o.redirectEnterTo!="nothing")&&(u||t.ktype!="click"||t.o.redirectClickTo!="nothing")&&(t.post!=null&&t.post.abort(),clearTimeout(i),t.hideLoader(),i=setTimeout(function(){if(n("form",t.n.searchsettings).serialize()+t.n.text.val().trim()!=t.lastSuccesfulSearch)t.search();else{if(t.n.proclose.css("display","block"),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;t.resultsOpened||t.showResults()}},250))}})},initFacetEvents:function(){var t=this,i=null;if(t.o.trigger_on_facet_change==1){n("input[type!=checkbox], select",t.n.searchsettings).on("change slidechange",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),clearTimeout(i),i=setTimeout(function(){t.search()},50))});n("input[type=checkbox]",t.n.searchsettings).on("asl_chbx_change",function(){t.n.text.val().length<t.o.charcount||(t.post!=null&&t.post.abort(),t.gaEvent("facet_change",{option_label:n(this).closest("fieldset").find("legend").text(),option_value:n(this).closest(".asl_option").find(".asl_option_label").text()+(n(this).prop("checked")?"(checked)":"(unchecked)")}),clearTimeout(i),i=setTimeout(function(){t.search()},50))})}},isRedirectToFirstResult:function(){var t=this;return n(".asl_res_url",t.n.resultsDiv).length>0&&(t.o.redirectonclick==1&&t.ktype=="click"&&t.o.redirectClickTo=="first_result"||t.o.redirect_on_enter==1&&(t.ktype=="input"||t.ktype=="keyup")&&t.keycode==13&&t.o.redirectEnterTo=="first_result")?!0:!1},doRedirectToFirstResult:function(){var t=this,i;return i=t.ktype=="click"?t.o.redirectClickLoc:t.o.redirectEnterLoc,i=="same"?location.href=n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href"):h(n(n(".asl_res_url",t.n.resultsDiv).get(0)).attr("href")),t.hideLoader(),t.hideResults(),!1},doRedirectToResults:function(t){var r=this,s=r.ktype=="click"?r.o.redirectClickTo:r.o.redirectEnterTo,e=t=="click"?r.o.redirectClickLoc:r.o.redirectEnterLoc;if(s=="results_page")var o="?s="+u(r.n.text.val());else if(s=="woo_results_page")var o="?post_type=product&s="+u(r.n.text.val());else var o=r.o.redirect_url.replace("{phrase}",u(r.n.text.val()));if(r.o.overridewpdefault)if(r.o.override_method=="post")f(r.o.homeurl+o,"post",{asl_active:1,p_asl_data:n("form",r.n.searchsettings).serialize()},e);else{var c=r.o.homeurl+o+"&asl_active=1&p_asid="+r.o.id+"&p_asl_data="+i.encode(n("form",r.n.searchsettings).serialize());e=="same"?location.href=c:h(c)}else f(r.o.homeurl+o,"post",{np_asl_data:n("form",r.n.searchsettings).serialize()},e);r.n.proloading.css("display","none");r.hideLoader();r.hideResults();r.post!=null&&r.post.abort()},destroy:function(){return this.each(function(){var t=n.extend({},this,s);n(window).unbind(t)})},searchfor:function(t){n(".proinput input",this).val(t).trigger("keyup")},initAutocompleteEvent:function(){var t=this;t.o.autocomplete.enabled!=1||r()||t.n.text.keyup(function(i){window.event?(t.keycode=window.event.keyCode,t.ktype=window.event.type):i&&(t.keycode=i.which,t.ktype=i.type);var r=39;n("body").hasClass("rtl")&&(r=37);t.keycode==r&&t.n.textAutocomplete.val()!=""?(i.preventDefault(),t.n.text.val(t.n.textAutocomplete.val()),t.post!=null&&t.post.abort(),t.search()):(t.postAuto!=null&&t.postAuto.abort(),t.autocompleteGoogleOnly())})},autocompleteGoogleOnly:function(){var t=this,i=t.n.text.val();if(t.n.text.val()==""){t.n.textAutocomplete.val("");return}var r=t.n.textAutocomplete.val();(r==""||r.indexOf(i)!=0)&&(t.n.textAutocomplete.val(""),n.ajax({url:"https://clients1.google.com/complete/search",dataType:"jsonp",data:{q:i,hl:t.o.autocomplete.lang,nolabels:"t",client:"hp",ds:""},success:function(r){r[1].length>0&&(response=r[1][0][0].replace(/(<([^>]+)>)/ig,""),response=n("<textarea />").html(response).text(),response=response.substr(i.length),t.n.textAutocomplete.val(i+response))}}))},search:function(){var t=this;if((!t.searching||!0)&&!(t.n.text.val().length<t.o.charcount)){t.searching=!0;t.n.proloading.css({display:"block"});t.n.proclose.css({display:"none"});var r={action:"ajaxsearchlite_search",aslp:t.n.text.val(),asid:t.o.id,options:n("form",t.n.searchsettings).serialize()};if(JSON.stringify(r)===JSON.stringify(t.lastSearchData))return(t.resultsOpened||t.showResults(),t.hideLoader(),t.isRedirectToFirstResult())?(t.doRedirectToFirstResult(),!1):!1;t.gaEvent("search_start");t.post=n.post(ASL.ajaxurl,r,function(e){if(e=e.replace(/^\s*[\r\n]/gm,""),e=e.match(/!!ASLSTART!!(.*[\s\S]*)!!ASLEND!!/)[1],t.n.resdrg.html(""),t.n.resdrg.html(e),n(".asl_keyword",t.n.resdrg).bind("click",function(){t.n.text.val(n(this).html());n("input.orig",t.n.container).val(n(this).html()).keydown();n("form",t.n.container).trigger("submit","ajax");t.search()}),t.n.items=n(".item",t.n.resultsDiv),t.gaEvent("search_end",{results_count:t.n.items.length}),t.gaPageview(t.n.text.val()),t.isRedirectToFirstResult())return t.doRedirectToFirstResult(),!1;if(t.hideLoader(),t.showResults(),t.scrollToResults(),t.lastSuccesfulSearch=n("form",t.n.searchsettings).serialize()+t.n.text.val().trim(),t.lastSearchData=r,t.n.items.length==0)t.n.showmore!=null&&t.n.showmore.css("display","none");else if(t.n.showmore!=null){t.n.showmore.css("display","block");n("a",t.n.showmore).off();n("a",t.n.showmore).on("click",function(){var e=t.o.redirectClickTo,r="?s="+u(t.n.text.val());r=e=="results_page"?"?s="+u(t.n.text.val()):e=="woo_results_page"?"?post_type=product&s="+u(t.n.text.val()):t.o.redirect_url.replace("{phrase}",u(t.n.text.val()));t.o.overridewpdefault?t.o.override_method=="post"?f(t.o.homeurl+r,"post",{asl_active:1,p_asl_data:n("form",t.n.searchsettings).serialize()}):location.href=t.o.homeurl+r+"&asl_active=1&p_asid="+t.o.id+"&p_asl_data="+i.encode(n("form",t.n.searchsettings).serialize()):f(t.o.homeurl+r,"post",{np_asl_data:n("form",t.n.searchsettings).serialize()})})}},"text").fail(function(i,r){i.aborted||r=="abort"||(t.n.resdrg.html(""),t.n.resdrg.html('<div class="asp_nores">The request failed. Please check your connection! Status: '+i.status+"<\/div>"),t.n.items=n(".item",t.n.resultsDiv),t.hideLoader(),t.showResults(),t.scrollToResults())})}},showLoader:function(){var n=this;n.n.proloading.css({display:"block"})},hideLoader:function(){var n=this;n.n.proloading.css({display:"none"});n.n.results.css("display","")},showResultsBox:function(){var n=this;n.n.resultsDiv.css({display:"block",height:"auto"});n.n.items.addClass(n.animationOpacity);n.fixResultsPosition(!0);n.n.resultsDiv.css(n.resAnim.showCSS);n.n.resultsDiv.removeClass(n.resAnim.hideClass).addClass(n.resAnim.showClass)},showResults:function(){var n=this;n.createVerticalScroll();switch(n.o.resultstype){case"vertical":n.showVerticalResults();break;default:n.showHorizontalResults()}n.hideLoader();n.n.proclose.css({display:"block"});n.n.showmore!=null&&(n.n.items.length>0?n.n.showmore.css({display:"block"}):n.n.showmore.css({display:"none"}));n.is_scroll&&typeof n.scroll.recalculate!="undefined"&&setTimeout(function(){n.scroll.recalculate()},500);n.resultsOpened=!0},hideResults:function(){var n=this;if(!n.resultsOpened)return!1;n.n.resultsDiv.removeClass(n.resAnim.showClass).addClass(n.resAnim.hideClass);setTimeout(function(){n.n.resultsDiv.css(n.resAnim.hideCSS)},n.resAnim.duration);n.n.proclose.css({display:"none"});n.n.showmore!=null&&n.n.showmore.css({display:"none"});r()&&document.activeElement.blur();n.resultsOpened=!1},scrollToResults:function(){if(($this=this,this.o.scrollToResults==1)&&!this.$elem.parent().hasClass("asl_preview_data")){if($this.o.resultsposition=="hover")var t=$this.n.probox.offset().top-20;else var t=$this.n.resultsDiv.offset().top-20;n("#wpadminbar").length>0&&(t-=n("#wpadminbar").height());t=t<0?0:t;n("body, html").animate({scrollTop:t},{duration:500})}},createGroup:function(n){return"<div class='group'>"+n+"<\/div>"},showVerticalResults:function(){var t=this;if(t.showResultsBox(),t.n.items.length>0){var e=t.n.items.length<t.o.itemscount?t.n.items.length:t.o.itemscount,h=n(".group",t.n.resultsDiv);if(t.n.items.length<=t.o.itemscount)t.n.results.css({height:"auto"});else{t.n.results.css({height:30});t.resize();var i=0,r=0,u=0,f=0;t.n.items.each(function(){r+=n(this).outerHeight(!0);n(this).outerHeight(!0)>f&&(f=n(this).outerHeight(!0));i++});u=f*e;u>r&&(u=r);i=i<1?1:i;r=r/i*e;t.n.results.css({height:u})}if(t.resize(),t.n.items.last().addClass("asp_last_item"),t.o.highlight==1){var o=t.o.highlightwholewords==1?!0:!1;n("div.item",t.n.resultsDiv).highlight(t.n.text.val().split(" "),{element:"span",className:"highlighted",wordsOnly:o})}}t.resize();t.n.items.length==0&&t.n.results.css({height:"auto"});t.n.results.css({overflowY:"auto"});var s=t.is_scroll?n(t.scroll.getScrollElement()):t.n.results;s.scrollTop(0);t.addAnimation();t.fixResultsPosition(!0);t.searching=!1},addAnimation:function(){var i=this,t=0,r=1;i.n.items.each(function(){var u=this;setTimeout(function(){n(u).addClass(i.animation)},t);t=t+60;r++})},removeAnimation:function(){var t=this;t.n.items.each(function(){var i=this;n(i).removeClass(t.animation)})},initSettingsAnimations:function(){var n=this,t=300;n.settAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":t},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:t};n.n.searchsettings.css({"-webkit-animation-duration":n.settAnim.duration+"ms","animation-duration":n.settAnim.duration+"ms"})},initResultsAnimations:function(){var t=this,n=300;t.resAnim={showClass:"asl_an_fadeInDrop",showCSS:{visibility:"visible",display:"block",opacity:1,"animation-duration":n},hideClass:"asl_an_fadeOutDrop",hideCSS:{visibility:"hidden",opacity:0,display:"none"},duration:n};t.n.resultsDiv.css({"-webkit-animation-duration":n+"ms","animation-duration":n+"ms"})},showSettings:function(){var t=this;t.n.searchsettings.css(t.settAnim.showCSS);t.n.searchsettings.removeClass(t.settAnim.hideClass).addClass(t.settAnim.showClass);t.settScroll==null&&t.is_scroll&&(t.settScroll=[],n(".asl_sett_scroll",t.n.searchsettings).each(function(i){var r=this;setTimeout(function(){t.settScroll[i]=new asl_SimpleBar(n(r).get(0),{direction:n("body").hasClass("rtl")?"rtl":"ltr",autoHide:!0})},20)}));t.n.prosettings.data("opened",1);t.fixSettingsPosition(!0)},hideSettings:function(){var n=this;n.n.searchsettings.removeClass(n.settAnim.showClass).addClass(n.settAnim.hideClass);setTimeout(function(){n.n.searchsettings.css(n.settAnim.hideCSS)},n.settAnim.duration);n.n.prosettings.data("opened",0)},cleanUp:function(){var t=this;n(".searchsettings",t.n.container).length>0&&(n("body>#ajaxsearchlitesettings"+t.o.rid).remove(),n("body>#ajaxsearchliteres"+t.o.rid).remove())},orientationChange:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},resize:function(){var n=this;n.fixSettingsPosition();n.fixResultsPosition();n.fixTryThisPosition()},scrolling:function(n){var t=this;t.fixSettingsPosition(n);t.fixResultsPosition(n)},fixTryThisPosition:function(){},fixResultsPosition:function(t){t=typeof t=="undefined"?!1:t;var i=this,f=i.n.resultsDiv.css("position");if(f=="fixed"||f=="absolute"){var o=0;if(n("body").css("position")!="static"&&(o=n("body").offset().top),t==!0||i.n.resultsDiv.css("visibility")=="visible"){var s=0,h=0,u=i.n.container.offset();if(f=="fixed"&&(o=0,s=n(document).scrollTop(),h=n(document).scrollLeft(),r()&&e()&&i.n.text.is(":focus")&&(s=i.savedScrollTop,u.top=i.savedContainerTop)),typeof u!="undefined"){var c=i.n.container.outerWidth()<240?240:i.n.container.outerWidth();i.n.resultsDiv.outerWidth(c);i.n.resultsDiv.css({top:u.top+i.n.container.outerHeight(!0)+10-o-s,left:u.left-h})}}}},fixSettingsPosition:function(t){t=typeof t=="undefined"?!1:t;var i=this,s=0;if(n("body").css("position")!="static"&&(s=n("body").offset().top),(t==!0||i.n.prosettings.data("opened")!=0)&&i.o.blocking!=!0){if(i.fixSettingsWidth(),i.n.prosettings.css("display")!="none")var f=i.n.prosettings;else var f=i.n.promagnifier;var u=f.offset(),o=0,h=0;i.n.searchsettings.css("position")=="fixed"&&(o=n(window).scrollTop(),h=n(window).scrollLeft(),r()&&e()&&i.n.text.is(":focus")&&(u.top=i.savedContainerTop,o=i.savedScrollTop));i.o.settingsimagepos=="left"?i.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left-h}):i.n.searchsettings.css({display:"block",top:u.top+f.height()-2-s-o,left:u.left+f.width()-i.n.searchsettings.width()-h})}},fixSettingsWidth:function(){}};function l(){return!("ontouchstart"in window)?0:1}function r(){try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}}function o(t,i){var r=t.find(":input").get();return arguments.length===1?(i={},n.each(r,function(){!this.name||this.disabled||!(this.checked||/select|textarea/i.test(this.nodeName)||/text/i.test(this.type))||n(this).hasClass("asp_datepicker_field")||n(this).hasClass("asp_datepicker")||(i[this.name]==undefined&&(i[this.name]=[]),i[this.name].push(n(this).val()))}),JSON.stringify(i)):(typeof i!="object"&&(i=JSON.parse(i)),n.each(r,function(){if(this.name&&i[this.name]){var t=i[this.name],r=n(this);if(Object.prototype.toString.call(t)!=="[object Array]"&&(t=[t]),this.type=="checkbox"||this.type=="radio"){for(var e=r.val(),f=!1,u=0;u<t.length;u++)if(t[u]==e){f=!0;break}r.attr("checked",f)}else r.val(t[0])}}),t)}function u(n){return encodeURIComponent(n).replace(/\%20/g,"+")}function f(t,i,r,u){"use strict";var f;f=n("<form />",{action:t,method:i,style:"display: none;"});typeof r!="undefined"&&r!==null&&n.each(r,function(t,i){n("<input />",{type:"hidden",name:t,value:i}).appendTo(f)});typeof u!="undefined"&&u=="new"&&f.attr("target","_blank");f.appendTo("body").submit()}function h(t){n('<a href="'+t+'" target="_blank">').get(0).click()}function e(){return typeof navigator!="undefined"&&typeof window.navigator.userAgent!="undefined"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1}function a(){var n=window.navigator.userAgent,t=n.indexOf("MSIE ");return t>0?!0:!1}typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});n.plugin=function(t,i){n.fn[t]=function(r){return this.each(function(){n.data(this,t)||n.data(this,t,Object.create(i).init(r,this))})}};n.plugin("ajaxsearchlite",s);var i={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(n){var e="",o,t,r,h,c,s,u,f=0;for(n=i._utf8_encode(n);f<n.length;)o=n.charCodeAt(f++),t=n.charCodeAt(f++),r=n.charCodeAt(f++),h=o>>2,c=(o&3)<<4|t>>4,s=(t&15)<<2|r>>6,u=r&63,isNaN(t)?s=u=64:isNaN(r)&&(u=64),e=e+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(s)+this._keyStr.charAt(u);return e},decode:function(n){var t="",o,s,h,c,f,u,e,r=0;for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");r<n.length;)c=this._keyStr.indexOf(n.charAt(r++)),f=this._keyStr.indexOf(n.charAt(r++)),u=this._keyStr.indexOf(n.charAt(r++)),e=this._keyStr.indexOf(n.charAt(r++)),o=c<<2|f>>4,s=(f&15)<<4|u>>2,h=(u&3)<<6|e,t=t+String.fromCharCode(o),u!=64&&(t=t+String.fromCharCode(s)),e!=64&&(t=t+String.fromCharCode(h));return i._utf8_decode(t)},_utf8_encode:function(n){n=n.replace(/\r\n/g,"\n");for(var i="",r=0;r<n.length;r++){var t=n.charCodeAt(r);t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128))}return i},_utf8_decode:function(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}}})(jQuery);window.ASL=window.ASL||{};window.ASL.getScope=function(){if(typeof jQuery!="undefined")if(typeof jQuery.fn.ajaxsearchlite=="undefined")for(var n=jQuery,t=jQuery,i=0;i<10;i++)if(typeof n.fn.ajaxsearchlite=="undefined")n=jQuery.noConflict(!0);else return n.fn.jquery!=t.fn.jquery&&(window.jQuery=window.$=t),n;else return jQuery;return typeof window[ASL.js_scope]!="undefined"?window[ASL.js_scope]:eval(ASL.js_scope)};window.ASL.initialized=!1;window.ASL.initialize=function(n){var i=this;if(typeof i.getScope=="undefined")return!1;var t=i.getScope(),r=".asl_init_data";if(typeof ASL_INSTANCES!="undefined"&&Object.keys(ASL_INSTANCES).length>0)t.each(ASL_INSTANCES,function(n,i){return typeof i=="undefined"?!1:t("#ajaxsearchlite"+n).hasClass("hasASL")?!1:(t("#ajaxsearchlite"+n).addClass("hasASL"),t("#ajaxsearchlite"+n).ajaxsearchlite(i))});else{typeof n!="undefined"&&(r="div[id*=asl_init_id_"+n+"]");function u(n){for(var r="",t=0,i=c1=c2=0;t<n.length;)i=n.charCodeAt(t),i<128?(r+=String.fromCharCode(i),t++):i>191&&i<224?(c2=n.charCodeAt(t+1),r+=String.fromCharCode((i&31)<<6|c2&63),t+=2):(c2=n.charCodeAt(t+1),c3=n.charCodeAt(t+2),r+=String.fromCharCode((i&15)<<12|(c2&63)<<6|c3&63),t+=3);return r}function f(n){var t="",s,h,c,l,e,r,o,i=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<n.length;)l=f.indexOf(n.charAt(i++)),e=f.indexOf(n.charAt(i++)),r=f.indexOf(n.charAt(i++)),o=f.indexOf(n.charAt(i++)),s=l<<2|e>>4,h=(e&15)<<4|r>>2,c=(r&3)<<6|o,t=t+String.fromCharCode(s),r!=64&&(t=t+String.fromCharCode(h)),o!=64&&(t=t+String.fromCharCode(c));return u(t)}t(r).each(function(){var i=t(this).attr("id").match(/^asl_init_id_(.*)/)[1],n=t(this).data("asldata");if(typeof n=="undefined"||(n=f(n),typeof n=="undefined"||n==""))return!1;var r=JSON.parse(n);return t("#ajaxsearchlite"+i).addClass("hasASL"),t("#ajaxsearchlite"+i).ajaxsearchlite(r)})}i.initialized=!0};window.ASL.fixClones=function(){var t=this;if((t.fix_duplicates=t.fix_duplicates||0,t.fix_duplicates==0)||typeof t.getScope=="undefined")return!1;var n=t.getScope(),i={};n(".asl_init_data").each(function(){var t=n(this).attr("id").match(/^asl_init_id_(.*)/)[1];typeof i[t]=="undefined"?i[t]={rid:t,id:t,count:1}:i[t].count++});n.each(i,function(i,r){r.count>1&&n(".asl_m_"+r.rid).each(function(i){if(i==0)return!0;for(var f=n(this).parent(),u=r.id;n("#ajaxsearchlite"+u).length!=0;)u++;n(this).attr("id","ajaxsearchlite"+u);n(this).removeClass("asl_m_"+r.rid).addClass("asl_m_"+u);n(this).removeClass("hasASL");n(".asl_r_"+r.rid,this).length==0&&n(".asl_r_"+r.rid).clone().appendTo(n(this));n(".asl_r_"+r.rid,this).attr("id","ajaxsearchliteres"+u);n(".asl_r_"+r.rid,this).attr("data-id",u);n(".asl_r_"+r.rid,this).removeClass("asl_r_"+r.rid).addClass("asl_r_"+u);typeof ASL.resHTML!="undefined"&&n("#ajaxsearchliteres"+u).html(ASL.resHTML);n(".asl_s_"+r.rid,this).length==0&&n(".asl_s_"+r.rid).length!=0&&n(".asl_s_"+r.rid).clone().appendTo(n(this));n(".asl_sb_"+r.rid,this).length==0&&n(".asl_sb_"+r.rid).length!=0&&n(".asl_sb_"+r.rid).clone().appendTo(n(this));n(".asl_s_"+r.rid,this).attr("id","ajaxsearchlitesettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitesettings"+u).html(ASL.setHTML);n(".asl_sb_"+r.rid,f).attr("id","ajaxsearchlitebsettings"+u);typeof ASL.setHTML!="undefined"&&n("#ajaxsearchlitebsettings"+u).html(ASL.setHTML);n(".asl_hidden_data",f).length>0&&n(".asl_hidden_data",f).attr("id","asl_hidden_data_"+u);n(".asl_init_data",f).length>0&&n(".asl_init_data",f).attr("id","asl_init_id_"+u);t.initialize(u)})})};window.ASL.ready=function(){var n=this,t=n.getScope(),i=null;t(document).ready(function(){n.initialize();setTimeout(function(){n.fixClones()},2500)});t(window).on("load",function(){n.initialized||(n.initialize(),setTimeout(function(){n.fixClones()},2500),console.log("ASL initialized via window.load"))});typeof ASL.detect_ajax!="undefined"&&ASL.detect_ajax==1&&t("body").bind("DOMSubtreeModified",function(){clearTimeout(i);i=setTimeout(function(){n.initialize()},500)});var r;t(window).on("resize",function(){clearTimeout(r);r=setTimeout(function(){n.fixClones()},2e3)})};window._ASL=ASL;window._ASL.ready();
js/nomin-scoped/asl_wrapper.js CHANGED
@@ -9,9 +9,29 @@ window.ASL.getScope = function() {
9
  /**
10
  * Explanation:
11
  * If the sript is scoped, the first argument is always passed in a localized jQuery
12
- * variable, while the actual parameter can be asljQuery or jQuery (or anything) as well.
13
  */
14
- if (typeof jQuery !== "undefined") return jQuery;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  // The code should never reach this point, but sometimes magic happens (unloaded or undefined jQuery??)
17
  // .. I am almost positive at this point this is going to fail anyways, but worth a try.
9
  /**
10
  * Explanation:
11
  * If the sript is scoped, the first argument is always passed in a localized jQuery
12
+ * variable, while the actual parameter can be aspjQuery or jQuery (or anything) as well.
13
  */
14
+ if (typeof jQuery !== "undefined") {
15
+ // Is there more than one jQuery? Let's try to find the one where ajax search pro is added
16
+ if ( typeof jQuery.fn.ajaxsearchlite == 'undefined' ) {
17
+ // Let's try noconflicting through all the versions
18
+ var temp = jQuery;
19
+ var original = jQuery;
20
+ for (var i = 0; i < 10; i++) {
21
+ if (typeof temp.fn.ajaxsearchlite == 'undefined') {
22
+ temp = jQuery.noConflict(true);
23
+ } else {
24
+ // Restore the globals to the initial, original one
25
+ if ( temp.fn.jquery != original.fn.jquery ) {
26
+ window.jQuery = window.$ = original;
27
+ }
28
+ return temp;
29
+ }
30
+ }
31
+ } else {
32
+ return jQuery;
33
+ }
34
+ }
35
 
36
  // The code should never reach this point, but sometimes magic happens (unloaded or undefined jQuery??)
37
  // .. I am almost positive at this point this is going to fail anyways, but worth a try.
js/nomin-scoped/jquery.ajaxsearchlite.js CHANGED
@@ -52,10 +52,10 @@
52
  $this.cleanUp();
53
  $this.n.textAutocomplete.val('');
54
  $this.o.resultitemheight = parseInt($this.o.resultitemheight);
55
- $this.scroll = new Object();
56
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
57
  $this.savedContainerTop = 0;
58
- $this.is_scroll = typeof $.fn.mCustScr != "undefined";
59
  // Force noscroll on minified version
60
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
61
  $this.is_scroll = false;
@@ -119,8 +119,6 @@
119
  if ( ASL.js_retain_popstate == 1 )
120
  $this.initPrevState();
121
 
122
- $this.createVerticalScroll();
123
-
124
  if (detectOldIE())
125
  $this.n.container.addClass('asl_msie');
126
 
@@ -193,71 +191,135 @@
193
  });
194
  },
195
 
196
- analytics: function(term) {
197
  var $this = this;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
 
199
- // YOAST uses __gaTracker, if not defined check for ga, if nothing go null, FUN EH??
200
- var fun = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : null);
201
- if (!window.location.origin) {
202
- window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
 
 
 
 
 
 
 
 
 
 
203
  }
204
- // Multisite Subdirectory (if exists)
205
- var url = $this.o.homeurl.replace(window.location.origin, '');
206
-
207
- if (fun != null && $this.o.analytics && $this.o.analyticsString != '') {
208
- var string = $this.o.analyticsString.replace("{asl_term}", term).replace("{asp_term}", term);
209
- fun('send', 'pageview', {
210
- 'page': url + string,
211
- 'title': 'Ajax Search'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
214
  },
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  createVerticalScroll: function () {
217
  var $this = this;
218
 
219
- if ( $this.is_scroll ) {
220
- $this.scroll = $this.n.results.mCustScr({
221
- contentTouchScroll: true,
222
- scrollButtons: {
223
- enable: true
224
- },
225
- callbacks: {
226
- onScroll: function () {
227
- if (isMobile()) return;
228
- var top = parseInt($('.mCSBap_container', $this.n.results).position().top);
229
- var children = $('.mCSBap_container .resdrg').children();
230
- var overall = 0;
231
- var prev = 3000;
232
- var diff = 4000;
233
- var s_diff = 10000;
234
- var s_overall = 10000;
235
- var $last = null;
236
- children.each(function () {
237
- diff = Math.abs((Math.abs(top) - overall));
238
- if (diff < prev) {
239
- s_diff = diff;
240
- s_overall = overall;
241
- $last = $(this);
242
- }
243
- overall += $(this).outerHeight(true);
244
- prev = diff;
245
- });
246
- if ($last.hasClass('group'))
247
- s_overall = s_overall + ($last.outerHeight(true) - $last.outerHeight(false));
248
-
249
- $this.scroll.mCustScr("scrollTo", $last, {
250
- scrollInertia: 200,
251
- callbacks: false
252
- });
253
- }
254
- }
255
  });
256
- // Accessibility for scroll buttons
257
- $('a.mCSBap_buttonUp').text('Scroll up the results');
258
- $('a.mCSBap_buttonDown').text('Scroll down the results');
259
  }
260
-
261
  },
262
 
263
  initEvents: function () {
@@ -277,6 +339,7 @@
277
  // Some kind of crazy rev-slider fix
278
  $this.n.text.click(function(e){
279
  $(this).focus();
 
280
  });
281
 
282
  $this.n.text.on('focus input', function(e){
@@ -434,6 +497,14 @@
434
  $('div.asl_option label', $this.n.searchsettings).click(function(e){
435
  e.preventDefault(); // Let the previous handler handle the events, disable this
436
  });
 
 
 
 
 
 
 
 
437
  },
438
 
439
  initNavigationEvent: function () {
@@ -462,41 +533,35 @@
462
  }
463
 
464
  if ($('.item', $this.n.resultsDiv).length > 0 && $this.n.resultsDiv.css('display') != 'none') {
465
- if (keycode == 40) {
466
- e.stopPropagation();
467
- e.preventDefault();
468
- $this.n.text.blur();
469
-
470
- if ($this.post != null) $this.post.abort();
471
- if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
472
- $('.item', $this.n.resultsDiv).first().addClass('hovered');
473
- } else {
474
- $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').next().next('.item').addClass('hovered');
475
  }
476
- if ($this.is_scroll) {
477
- $this.scroll.mCustScr("scrollTo", ".resdrg .item.hovered", {
478
- scrollInertia: 200,
479
- callbacks: false
480
- });
 
 
481
  }
482
- }
483
- if (keycode == 38) {
484
  e.stopPropagation();
485
  e.preventDefault();
486
- $this.n.text.blur();
487
-
488
- if ($this.post != null) $this.post.abort();
489
- if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
490
- $('.item', $this.n.resultsDiv).last().addClass('hovered');
491
- } else {
492
- $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').prev().prev('.item').addClass('hovered');
493
- }
494
- if ($this.is_scroll) {
495
- $this.scroll.mCustScr("scrollTo", ".resdrg .item.hovered", {
496
- scrollInertia: 200,
497
- callbacks: false
498
- });
499
  }
 
 
 
 
 
500
  }
501
 
502
  // Trigger click on return key
@@ -540,6 +605,7 @@
540
 
541
  var isInput = $(this).hasClass("orig");
542
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
 
543
  if ( $this.o.redirect_on_enter == 1 ) {
544
  if ($this.o.redirectEnterTo != 'first_result') {
545
  $this.doRedirectToResults($this.ktype);
@@ -605,6 +671,10 @@
605
  }
606
  if ($(this).hasClass('orig') && $this.ktype == 'click') return;
607
 
 
 
 
 
608
  if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
609
  if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
610
 
@@ -652,6 +722,10 @@
652
  $('input[type=checkbox]', $this.n.searchsettings).on('asl_chbx_change', function(){
653
  if ($this.n.text.val().length < $this.o.charcount) return;
654
  if ($this.post != null) $this.post.abort();
 
 
 
 
655
  clearTimeout(t);
656
  t = setTimeout(function() {
657
  $this.search();
@@ -843,6 +917,8 @@
843
  return false;
844
  }
845
 
 
 
846
  // New method without JSON
847
  $this.post = $.post(ASL.ajaxurl, data, function (response) {
848
  response = response.replace(/^\s*[\r\n]/gm, "");
@@ -862,7 +938,9 @@
862
 
863
  $this.n.items = $('.item', $this.n.resultsDiv);
864
 
865
- $this.analytics($this.n.text.val());
 
 
866
 
867
  if ( $this.isRedirectToFirstResult() ) {
868
  $this.doRedirectToFirstResult();
@@ -959,6 +1037,10 @@
959
 
960
  showResults: function( ) {
961
  var $this = this;
 
 
 
 
962
  switch ($this.o.resultstype) {
963
  case 'vertical':
964
  $this.showVerticalResults();
@@ -986,8 +1068,11 @@
986
  }
987
  }
988
 
989
- /*if (isMobile() && $this.o.mobile.hide_keyboard)
990
- document.activeElement.blur();*/
 
 
 
991
 
992
  $this.resultsOpened = true;
993
  },
@@ -1059,44 +1144,41 @@
1059
  $this.n.results.css({
1060
  height: 30
1061
  });
1062
- if ($this.is_scroll) {
1063
- $this.scroll.mCustScr('update');
1064
- }
1065
  $this.resize();
1066
 
1067
  // Here now we have the correct item height values with the scrollbar enabled
1068
  var i = 0;
1069
  var h = 0;
 
 
1070
 
1071
  $this.n.items.each(function () {
1072
  h += $(this).outerHeight(true);
 
 
1073
  i++;
1074
  });
1075
 
 
 
 
 
 
 
1076
  // Count the average height * viewport size
1077
  i = i < 1 ? 1 : i;
1078
  h = h / i * count;
1079
 
1080
  $this.n.results.css({
1081
- height: h
1082
  });
1083
  }
1084
 
1085
- window.sscroll = $this.scroll;
1086
-
1087
- if ($this.is_scroll) {
1088
- // Disable the scrollbar first, to avoid glitches
1089
- $this.scroll.mCustScr('disable', true);
1090
-
1091
- // After making the changes trigger an update to re-enable
1092
- $this.scroll.mCustScr('update');
1093
- }
1094
  // ..then all the other math stuff from the resize event
1095
  $this.resize();
1096
- if ($this.is_scroll) {
1097
- // .. and finally scroll back to the first item nicely
1098
- $this.scroll.mCustScr('scrollTo', 0);
1099
- }
1100
 
1101
  if ($this.o.highlight == 1) {
1102
  var wholew = (($this.o.highlightwholewords == 1) ? true : false);
@@ -1106,53 +1188,24 @@
1106
  }
1107
  $this.resize();
1108
  if ($this.n.items.length == 0) {
1109
- var h = ($('.nores', $this.n.results).outerHeight(true) > ($this.o.resultitemheight) ? ($this.o.resultitemheight) : $('.nores', $this.n.results).outerHeight(true));
1110
- if ($this.is_scroll) {
1111
- $this.n.results.css({
1112
- height: 11110
1113
- });
1114
- $this.scroll.mCustScr('update');
1115
- $this.n.results.css({
1116
- height: 'auto'
1117
- });
1118
- } else {
1119
- $this.n.results.css({
1120
- height: 'auto'
1121
- });
1122
- }
1123
- }
1124
-
1125
- if (!$this.is_scroll) {
1126
  $this.n.results.css({
1127
- 'overflowY': 'auto'
1128
  });
1129
  }
1130
 
 
 
 
 
 
 
 
 
1131
  $this.addAnimation();
1132
  $this.fixResultsPosition(true);
1133
  $this.searching = false;
1134
  },
1135
 
1136
- hideVerticalResults: function () {
1137
- var $this = this;
1138
-
1139
- $this.disableMobileScroll = false;
1140
-
1141
- $this.n.resultsDiv
1142
- .animate({
1143
- opacity: 0,
1144
- height: 0
1145
- }, {
1146
- duration: 120,
1147
- complete: function () {
1148
- $(this).css({
1149
- visibility: "hidden",
1150
- display: "none"
1151
- });
1152
- }
1153
- });
1154
- },
1155
-
1156
  addAnimation: function () {
1157
  var $this = this;
1158
  var i = 0;
@@ -1236,8 +1289,16 @@
1236
  $this.n.searchsettings.removeClass($this.settAnim.hideClass).addClass($this.settAnim.showClass);
1237
 
1238
  if ($this.settScroll == null && ($this.is_scroll) ) {
1239
- $this.settScroll = $('.asl_sett_scroll', $this.n.searchsettings).mCustScr({
1240
- contentTouchScroll: true
 
 
 
 
 
 
 
 
1241
  });
1242
  }
1243
  $this.n.prosettings.data('opened', 1);
52
  $this.cleanUp();
53
  $this.n.textAutocomplete.val('');
54
  $this.o.resultitemheight = parseInt($this.o.resultitemheight);
55
+ $this.scroll = {};
56
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
57
  $this.savedContainerTop = 0;
58
+ $this.is_scroll = typeof asl_SimpleBar != "undefined";
59
  // Force noscroll on minified version
60
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
61
  $this.is_scroll = false;
119
  if ( ASL.js_retain_popstate == 1 )
120
  $this.initPrevState();
121
 
 
 
122
  if (detectOldIE())
123
  $this.n.container.addClass('asl_msie');
124
 
191
  });
192
  },
193
 
194
+ gaPageview: function(term) {
195
  var $this = this;
196
+ var tracking_id = $this.gaGetTrackingID();
197
+
198
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'pageview' )
199
+ return false;
200
+
201
+ if ( ASL.analytics.string != '' ) {
202
+ // YOAST uses __gaTracker, if not defined check for ga, if nothing go null, FUN EH??
203
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
204
+ var _gtag = typeof gtag == "function" ? gtag : false;
205
+
206
+ if (!window.location.origin) {
207
+ window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
208
+ }
209
+ // Multisite Subdirectory (if exists)
210
+ var url = $this.o.homeurl.replace(window.location.origin, '');
211
 
212
+ // GTAG bypass pageview tracking method
213
+ if ( _gtag !== false ) {
214
+ if ( tracking_id !== false ) {
215
+ _gtag('config', tracking_id, {'page_path': url + ASL.analytics.string.replace("{asl_term}", term)});
216
+ }
217
+ } else if ( _ga !== false ) {
218
+ if ( tracking_id !== false ) {
219
+ _ga('create', tracking_id, 'auto');
220
+ }
221
+ _ga('send', 'pageview', {
222
+ 'page': url + ASL.analytics.string.replace("{asl_term}", term),
223
+ 'title': 'Ajax Search'
224
+ });
225
+ }
226
  }
227
+ },
228
+
229
+ gaEvent: function(which, data) {
230
+ var $this = this;
231
+ var tracking_id = $this.gaGetTrackingID();
232
+
233
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'event' )
234
+ return false;
235
+
236
+ // Get the scope
237
+ var _gtag = typeof gtag == "function" ? gtag : false;
238
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
239
+
240
+ if ( _gtag === false && _ga === false )
241
+ return false;
242
+
243
+ if (
244
+ typeof (ASL.analytics.event[which]) != 'undefined' &&
245
+ ASL.analytics.event[which].active == 1 &&
246
+ typeof 'gtag' != 'undefined'
247
+ ) {
248
+ var def_data = {
249
+ "search_id": $this.o.id,
250
+ "search_name": $this.o.name,
251
+ "phrase": $this.n.text.val(),
252
+ "option_name": '',
253
+ "option_value": '',
254
+ "result_title": '',
255
+ "result_url": '',
256
+ "results_count": ''
257
+ };
258
+ var event = {
259
+ 'event_category': ASL.analytics.event[which].category,
260
+ 'event_label': ASL.analytics.event[which].label,
261
+ 'value': ASL.analytics.event[which].value
262
+ };
263
+ data = $.extend(def_data, data);
264
+ $.each(data, function (k, v) {
265
+ v = String(v).replace(/[\s\n\r]+/g, " ").trim();
266
+ $.each(event, function (kk, vv) {
267
+ var regex = new RegExp('\{' + k + '\}', 'gmi');
268
+ event[kk] = vv.replace(regex, v);
269
+ });
270
  });
271
+ if ( _gtag === false ) {
272
+ if ( tracking_id !== false ) {
273
+ _ga('create', tracking_id, 'auto');
274
+ }
275
+ _ga('send', 'event',
276
+ event.event_category,
277
+ ASL.analytics.event[which].action,
278
+ event.event_label,
279
+ event.value
280
+ );
281
+ } else {
282
+ if ( tracking_id !== false ) {
283
+ event.send_to = tracking_id;
284
+ }
285
+ _gtag('event', ASL.analytics.event[which].action, event);
286
+ }
287
  }
288
  },
289
 
290
+ gaGetTrackingID: function() {
291
+ var $this = this;
292
+ var ret = false;
293
+
294
+ if ( typeof ASL.analytics == 'undefined' )
295
+ return ret;
296
+
297
+ if ( typeof ASL.analytics.tracking_id != 'undefined' && ASL.analytics.tracking_id != '' ) {
298
+ return ASL.analytics.tracking_id;
299
+ } else {
300
+ // GTAG bypass pageview tracking method
301
+ var _gtag = typeof gtag == "function" ? gtag : false;
302
+ if ( _gtag !== false && typeof ga != 'undefined' && typeof ga.getAll != 'undefined' ) {
303
+ var id = false;
304
+ ga.getAll().forEach( function(tracker) {
305
+ id = tracker.get('trackingId');
306
+ });
307
+ return id;
308
+ }
309
+ }
310
+
311
+ return ret;
312
+ },
313
+
314
  createVerticalScroll: function () {
315
  var $this = this;
316
 
317
+ if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
318
+ $this.scroll = new asl_SimpleBar($this.n.results.get(0), {
319
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
320
+ autoHide: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  });
 
 
 
322
  }
 
323
  },
324
 
325
  initEvents: function () {
339
  // Some kind of crazy rev-slider fix
340
  $this.n.text.click(function(e){
341
  $(this).focus();
342
+ $this.gaEvent('focus');
343
  });
344
 
345
  $this.n.text.on('focus input', function(e){
497
  $('div.asl_option label', $this.n.searchsettings).click(function(e){
498
  e.preventDefault(); // Let the previous handler handle the events, disable this
499
  });
500
+
501
+ // GTAG on results click
502
+ $this.n.resultsDiv.on('click', '.results .item', function() {
503
+ $this.gaEvent('result_click', {
504
+ 'result_title': $(this).find('a.asl_res_url').text(),
505
+ 'result_url': $(this).find('a.asl_res_url').attr('href')
506
+ });
507
+ });
508
  },
509
 
510
  initNavigationEvent: function () {
533
  }
534
 
535
  if ($('.item', $this.n.resultsDiv).length > 0 && $this.n.resultsDiv.css('display') != 'none') {
536
+ if ( keycode == 40 || keycode == 38 ) {
537
+ if (keycode == 40) {
538
+ $this.n.text.blur();
539
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
540
+ $('.item', $this.n.resultsDiv).first().addClass('hovered');
541
+ } else {
542
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').next('.item').addClass('hovered');
543
+ }
 
 
544
  }
545
+ if (keycode == 38) {
546
+ $this.n.text.blur();
547
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
548
+ $('.item', $this.n.resultsDiv).last().addClass('hovered');
549
+ } else {
550
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').prev('.item').addClass('hovered');
551
+ }
552
  }
 
 
553
  e.stopPropagation();
554
  e.preventDefault();
555
+ var $container = $this.is_scroll ? $( $this.scroll.getScrollElement() ) : $this.n.results;
556
+ var $scrollTo = $this.n.resultsDiv.find('.resdrg .item.hovered');
557
+ if ( $scrollTo.length == 0 ) {
558
+ $scrollTo = $this.n.resultsDiv.children().first();
 
 
 
 
 
 
 
 
 
559
  }
560
+ $container.animate({
561
+ "scrollTop": $scrollTo.offset().top - $container.offset().top + $container.scrollTop()
562
+ }, {
563
+ "duration": 120
564
+ });
565
  }
566
 
567
  // Trigger click on return key
605
 
606
  var isInput = $(this).hasClass("orig");
607
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
608
+ $this.gaEvent('return');
609
  if ( $this.o.redirect_on_enter == 1 ) {
610
  if ($this.o.redirectEnterTo != 'first_result') {
611
  $this.doRedirectToResults($this.ktype);
671
  }
672
  if ($(this).hasClass('orig') && $this.ktype == 'click') return;
673
 
674
+ if ( !isInput && $this.ktype == 'click' ) {
675
+ $this.gaEvent('magnifier');
676
+ }
677
+
678
  if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
679
  if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
680
 
722
  $('input[type=checkbox]', $this.n.searchsettings).on('asl_chbx_change', function(){
723
  if ($this.n.text.val().length < $this.o.charcount) return;
724
  if ($this.post != null) $this.post.abort();
725
+ $this.gaEvent('facet_change', {
726
+ 'option_label': $(this).closest('fieldset').find('legend').text(),
727
+ 'option_value': $(this).closest('.asl_option').find('.asl_option_label').text() + ($(this).prop('checked') ? '(checked)' : '(unchecked)')
728
+ });
729
  clearTimeout(t);
730
  t = setTimeout(function() {
731
  $this.search();
917
  return false;
918
  }
919
 
920
+ $this.gaEvent('search_start');
921
+
922
  // New method without JSON
923
  $this.post = $.post(ASL.ajaxurl, data, function (response) {
924
  response = response.replace(/^\s*[\r\n]/gm, "");
938
 
939
  $this.n.items = $('.item', $this.n.resultsDiv);
940
 
941
+ $this.gaEvent('search_end', {'results_count':$this.n.items.length});
942
+
943
+ $this.gaPageview($this.n.text.val());
944
 
945
  if ( $this.isRedirectToFirstResult() ) {
946
  $this.doRedirectToFirstResult();
1037
 
1038
  showResults: function( ) {
1039
  var $this = this;
1040
+
1041
+ // Create the scrollbars if needed
1042
+ $this.createVerticalScroll();
1043
+
1044
  switch ($this.o.resultstype) {
1045
  case 'vertical':
1046
  $this.showVerticalResults();
1068
  }
1069
  }
1070
 
1071
+ if ( $this.is_scroll && typeof $this.scroll.recalculate !== 'undefined' ) {
1072
+ setTimeout(function(){
1073
+ $this.scroll.recalculate();
1074
+ }, 500);
1075
+ }
1076
 
1077
  $this.resultsOpened = true;
1078
  },
1144
  $this.n.results.css({
1145
  height: 30
1146
  });
 
 
 
1147
  $this.resize();
1148
 
1149
  // Here now we have the correct item height values with the scrollbar enabled
1150
  var i = 0;
1151
  var h = 0;
1152
+ var final_h = 0;
1153
+ var highest = 0;
1154
 
1155
  $this.n.items.each(function () {
1156
  h += $(this).outerHeight(true);
1157
+ if ($(this).outerHeight(true) > highest)
1158
+ highest = $(this).outerHeight(true);
1159
  i++;
1160
  });
1161
 
1162
+ // Get an initial height based on the highest item x viewport
1163
+ final_h = highest * count;
1164
+ // Reduce the final height to the overall height if exceeds it
1165
+ if (final_h > h)
1166
+ final_h = h;
1167
+
1168
  // Count the average height * viewport size
1169
  i = i < 1 ? 1 : i;
1170
  h = h / i * count;
1171
 
1172
  $this.n.results.css({
1173
+ height: final_h
1174
  });
1175
  }
1176
 
 
 
 
 
 
 
 
 
 
1177
  // ..then all the other math stuff from the resize event
1178
  $this.resize();
1179
+
1180
+ // Mark the last item
1181
+ $this.n.items.last().addClass('asp_last_item');
 
1182
 
1183
  if ($this.o.highlight == 1) {
1184
  var wholew = (($this.o.highlightwholewords == 1) ? true : false);
1188
  }
1189
  $this.resize();
1190
  if ($this.n.items.length == 0) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191
  $this.n.results.css({
1192
+ height: 'auto'
1193
  });
1194
  }
1195
 
1196
+ $this.n.results.css({
1197
+ 'overflowY': 'auto'
1198
+ });
1199
+
1200
+ // Scroll to top
1201
+ var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1202
+ $container.scrollTop(0);
1203
+
1204
  $this.addAnimation();
1205
  $this.fixResultsPosition(true);
1206
  $this.searching = false;
1207
  },
1208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1209
  addAnimation: function () {
1210
  var $this = this;
1211
  var i = 0;
1289
  $this.n.searchsettings.removeClass($this.settAnim.hideClass).addClass($this.settAnim.showClass);
1290
 
1291
  if ($this.settScroll == null && ($this.is_scroll) ) {
1292
+ $this.settScroll = [];
1293
+ $('.asl_sett_scroll', $this.n.searchsettings).each(function(i, o){
1294
+ var _this = this;
1295
+ // Small delay to fix a rendering issue
1296
+ setTimeout(function(){
1297
+ $this.settScroll[i] = new asl_SimpleBar($(_this).get(0), {
1298
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1299
+ autoHide: true
1300
+ });
1301
+ }, 20);
1302
  });
1303
  }
1304
  $this.n.prosettings.data('opened', 1);
js/nomin-scoped/jquery.mCustomScrollbar.js DELETED
@@ -1,9 +0,0 @@
1
- (function(jQuery, $, window){
2
- /* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */
3
- !function(a){"function"==typeof define&&false&&define.amd?define(["jquery"],a):"object"==typeof exports&&false?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&false&&define.amd?define(["jquery"],a):"object"==typeof exports&&false?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
4
- /* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
5
- if (typeof jQuery.fn.mCustScr == "undefined") {
6
- !function(e){"function"==typeof define&&false&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&false&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&false&&define.amd,a="undefined"!=typeof module&&false&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustScr",a="mCSap",n=".mCustScr",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSBap_dragger_onDrag","mCSBap_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSBap_draggerContainer","mCSBap_buttonUp","mCSBap_buttonDown","mCSBap_buttonLeft","mCSBap_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustScr(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSBap_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSBap_"+n.idx+"_container"),l=e("#mCSBap_"+n.idx),s=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSBap_"+i.idx),s=e("#mCSBap_"+i.idx+"_container"),c=e(".mCSBap_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSBap_"+n.idx+"_scrollbar_vertical' class='mCSBap_scrollTools mCSBap_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSBap_"+n.idx+"_dragger_vertical' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /></div><div class='mCSBap_draggerRail' /></div></div>","<div id='mCSBap_"+n.idx+"_scrollbar_horizontal' class='mCSBap_scrollTools mCSBap_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSBap_"+n.idx+"_dragger_horizontal' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /></div><div class='mCSBap_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSBap_vertical_horizontal":"x"===i.axis?"mCSBap_horizontal":"mCSBap_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSBap_"+n.idx+"_container_wrapper' class='mCSBap_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSBap_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSBap_"+n.idx+"_container' class='mCSBap_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSBap_"+n.idx),p=e("#mCSBap_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSBap_outside").after(c)):(m.addClass("mCSBap_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSBap_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSBap_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSBap_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSBap_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSBap_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSBap_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSBap_"+o.idx),r=e("#mCSBap_"+o.idx+"_container"),l=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSBap_"+o.idx+"_scrollbar",l=e("#mCSBap_"+o.idx+",#mCSBap_"+o.idx+"_container,#mCSBap_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSBap_"+o.idx+"_dragger_vertical,#mCSBap_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSBap_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSBap_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSBap_"+n.idx+"_container"),s=[e("#mCSBap_"+n.idx+"_scrollbar_vertical"),e("#mCSBap_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSBap_dragger"),s[1].find(".mCSBap_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSBap_"+l.idx+"_dragger_vertical","mCSBap_"+l.idx+"_dragger_horizontal"],h=e("#mCSBap_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSBap_"+B.idx),I=e("#mCSBap_"+B.idx+"_container"),D=[e("#mCSBap_"+B.idx+"_dragger_vertical"),e("#mCSBap_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSBap_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSBap_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSBap_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSBap_"+n.idx),c=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")],d=e("#mCSBap_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSBap_"+n.idx+"_container"),l=r.parent(),s=e(".mCSBap_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSBap_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSBap_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSBap_dragger");if(i.parent(".mCSBap_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSBap_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSBap_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSBap_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSBap_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSBap_"+n.idx),c=e("#mCSBap_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSBap_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSBap_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
7
- return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSBap_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSBap_"+o.idx+"_container,#mCSBap_"+o.idx+"_container_wrapper,#mCSBap_"+o.idx+"_dragger_vertical,#mCSBap_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSBap_"+s.idx),h=e("#mCSBap_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSBap_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSBap_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSBap_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSBap_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSBap_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSBap_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});} else {console.log("ASP: scrollbar detected, skipping loading")};
8
-
9
- })(asljQuery, asljQuery, window);
 
 
 
 
 
 
 
 
 
js/nomin-scoped/simplebar.js ADDED
@@ -0,0 +1,5309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(jQuery, $, window){
2
+ /**
3
+ * asl_SimpleBar.js - v5.0.7
4
+ * Scrollbars, simpler.
5
+ * https://grsmto.github.io/simplebar/
6
+ *
7
+ * Made by Adrien Denat from a fork by Jonathan Nicol
8
+ * Under MIT License
9
+ */
10
+
11
+ /**
12
+ * Scope changed for Ajax Search Pro, code left as original
13
+ * Replace:
14
+ * 1. SimpleBar with asl_SimpleBar - case sensitive
15
+ * 2. simplebar with asl_simplebar - case sensitive
16
+ * 3. Remove fixRegexpWellKnownSymbolLogic variable & function calls, as they cause conflicts (3 instances)
17
+ */
18
+
19
+ (function (global, factory) {
20
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
21
+ typeof define === 'function' && define.amd ? define(factory) :
22
+ (global = global || self, global.asl_SimpleBar = factory());
23
+ }(this, function () { 'use strict';
24
+
25
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
26
+
27
+ function createCommonjsModule(fn, module) {
28
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
29
+ }
30
+
31
+ var O = 'object';
32
+ var check = function (it) {
33
+ return it && it.Math == Math && it;
34
+ };
35
+
36
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
37
+ var global_1 =
38
+ // eslint-disable-next-line no-undef
39
+ check(typeof globalThis == O && globalThis) ||
40
+ check(typeof window == O && window) ||
41
+ check(typeof self == O && self) ||
42
+ check(typeof commonjsGlobal == O && commonjsGlobal) ||
43
+ // eslint-disable-next-line no-new-func
44
+ Function('return this')();
45
+
46
+ var fails = function (exec) {
47
+ try {
48
+ return !!exec();
49
+ } catch (error) {
50
+ return true;
51
+ }
52
+ };
53
+
54
+ // Thank's IE8 for his funny defineProperty
55
+ var descriptors = !fails(function () {
56
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57
+ });
58
+
59
+ var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
60
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
61
+
62
+ // Nashorn ~ JDK8 bug
63
+ var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
64
+
65
+ // `Object.prototype.propertyIsEnumerable` method implementation
66
+ // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
67
+ var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
68
+ var descriptor = getOwnPropertyDescriptor(this, V);
69
+ return !!descriptor && descriptor.enumerable;
70
+ } : nativePropertyIsEnumerable;
71
+
72
+ var objectPropertyIsEnumerable = {
73
+ f: f
74
+ };
75
+
76
+ var createPropertyDescriptor = function (bitmap, value) {
77
+ return {
78
+ enumerable: !(bitmap & 1),
79
+ configurable: !(bitmap & 2),
80
+ writable: !(bitmap & 4),
81
+ value: value
82
+ };
83
+ };
84
+
85
+ var toString = {}.toString;
86
+
87
+ var classofRaw = function (it) {
88
+ return toString.call(it).slice(8, -1);
89
+ };
90
+
91
+ var split = ''.split;
92
+
93
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
94
+ var indexedObject = fails(function () {
95
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
96
+ // eslint-disable-next-line no-prototype-builtins
97
+ return !Object('z').propertyIsEnumerable(0);
98
+ }) ? function (it) {
99
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
100
+ } : Object;
101
+
102
+ // `RequireObjectCoercible` abstract operation
103
+ // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
104
+ var requireObjectCoercible = function (it) {
105
+ if (it == undefined) throw TypeError("Can't call method on " + it);
106
+ return it;
107
+ };
108
+
109
+ // toObject with fallback for non-array-like ES3 strings
110
+
111
+
112
+
113
+ var toIndexedObject = function (it) {
114
+ return indexedObject(requireObjectCoercible(it));
115
+ };
116
+
117
+ var isObject = function (it) {
118
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
119
+ };
120
+
121
+ // `ToPrimitive` abstract operation
122
+ // https://tc39.github.io/ecma262/#sec-toprimitive
123
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
124
+ // and the second argument - flag - preferred type is a string
125
+ var toPrimitive = function (input, PREFERRED_STRING) {
126
+ if (!isObject(input)) return input;
127
+ var fn, val;
128
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
129
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
130
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
131
+ throw TypeError("Can't convert object to primitive value");
132
+ };
133
+
134
+ var hasOwnProperty = {}.hasOwnProperty;
135
+
136
+ var has = function (it, key) {
137
+ return hasOwnProperty.call(it, key);
138
+ };
139
+
140
+ var document$1 = global_1.document;
141
+ // typeof document.createElement is 'object' in old IE
142
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
143
+
144
+ var documentCreateElement = function (it) {
145
+ return EXISTS ? document$1.createElement(it) : {};
146
+ };
147
+
148
+ // Thank's IE8 for his funny defineProperty
149
+ var ie8DomDefine = !descriptors && !fails(function () {
150
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
151
+ get: function () { return 7; }
152
+ }).a != 7;
153
+ });
154
+
155
+ var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
156
+
157
+ // `Object.getOwnPropertyDescriptor` method
158
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
159
+ var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
160
+ O = toIndexedObject(O);
161
+ P = toPrimitive(P, true);
162
+ if (ie8DomDefine) try {
163
+ return nativeGetOwnPropertyDescriptor(O, P);
164
+ } catch (error) { /* empty */ }
165
+ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
166
+ };
167
+
168
+ var objectGetOwnPropertyDescriptor = {
169
+ f: f$1
170
+ };
171
+
172
+ var anObject = function (it) {
173
+ if (!isObject(it)) {
174
+ throw TypeError(String(it) + ' is not an object');
175
+ } return it;
176
+ };
177
+
178
+ var nativeDefineProperty = Object.defineProperty;
179
+
180
+ // `Object.defineProperty` method
181
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
182
+ var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
183
+ anObject(O);
184
+ P = toPrimitive(P, true);
185
+ anObject(Attributes);
186
+ if (ie8DomDefine) try {
187
+ return nativeDefineProperty(O, P, Attributes);
188
+ } catch (error) { /* empty */ }
189
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
190
+ if ('value' in Attributes) O[P] = Attributes.value;
191
+ return O;
192
+ };
193
+
194
+ var objectDefineProperty = {
195
+ f: f$2
196
+ };
197
+
198
+ var hide = descriptors ? function (object, key, value) {
199
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
200
+ } : function (object, key, value) {
201
+ object[key] = value;
202
+ return object;
203
+ };
204
+
205
+ var setGlobal = function (key, value) {
206
+ try {
207
+ hide(global_1, key, value);
208
+ } catch (error) {
209
+ global_1[key] = value;
210
+ } return value;
211
+ };
212
+
213
+ var shared = createCommonjsModule(function (module) {
214
+ var SHARED = '__core-js_shared__';
215
+ var store = global_1[SHARED] || setGlobal(SHARED, {});
216
+
217
+ (module.exports = function (key, value) {
218
+ return store[key] || (store[key] = value !== undefined ? value : {});
219
+ })('versions', []).push({
220
+ version: '3.2.1',
221
+ mode: 'global',
222
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
223
+ });
224
+ });
225
+
226
+ var functionToString = shared('native-function-to-string', Function.toString);
227
+
228
+ var WeakMap$1 = global_1.WeakMap;
229
+
230
+ var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(functionToString.call(WeakMap$1));
231
+
232
+ var id = 0;
233
+ var postfix = Math.random();
234
+
235
+ var uid = function (key) {
236
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
237
+ };
238
+
239
+ var keys = shared('keys');
240
+
241
+ var sharedKey = function (key) {
242
+ return keys[key] || (keys[key] = uid(key));
243
+ };
244
+
245
+ var hiddenKeys = {};
246
+
247
+ var WeakMap$2 = global_1.WeakMap;
248
+ var set, get, has$1;
249
+
250
+ var enforce = function (it) {
251
+ return has$1(it) ? get(it) : set(it, {});
252
+ };
253
+
254
+ var getterFor = function (TYPE) {
255
+ return function (it) {
256
+ var state;
257
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
258
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
259
+ } return state;
260
+ };
261
+ };
262
+
263
+ if (nativeWeakMap) {
264
+ var store = new WeakMap$2();
265
+ var wmget = store.get;
266
+ var wmhas = store.has;
267
+ var wmset = store.set;
268
+ set = function (it, metadata) {
269
+ wmset.call(store, it, metadata);
270
+ return metadata;
271
+ };
272
+ get = function (it) {
273
+ return wmget.call(store, it) || {};
274
+ };
275
+ has$1 = function (it) {
276
+ return wmhas.call(store, it);
277
+ };
278
+ } else {
279
+ var STATE = sharedKey('state');
280
+ hiddenKeys[STATE] = true;
281
+ set = function (it, metadata) {
282
+ hide(it, STATE, metadata);
283
+ return metadata;
284
+ };
285
+ get = function (it) {
286
+ return has(it, STATE) ? it[STATE] : {};
287
+ };
288
+ has$1 = function (it) {
289
+ return has(it, STATE);
290
+ };
291
+ }
292
+
293
+ var internalState = {
294
+ set: set,
295
+ get: get,
296
+ has: has$1,
297
+ enforce: enforce,
298
+ getterFor: getterFor
299
+ };
300
+
301
+ var redefine = createCommonjsModule(function (module) {
302
+ var getInternalState = internalState.get;
303
+ var enforceInternalState = internalState.enforce;
304
+ var TEMPLATE = String(functionToString).split('toString');
305
+
306
+ shared('inspectSource', function (it) {
307
+ return functionToString.call(it);
308
+ });
309
+
310
+ (module.exports = function (O, key, value, options) {
311
+ var unsafe = options ? !!options.unsafe : false;
312
+ var simple = options ? !!options.enumerable : false;
313
+ var noTargetGet = options ? !!options.noTargetGet : false;
314
+ if (typeof value == 'function') {
315
+ if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
316
+ enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
317
+ }
318
+ if (O === global_1) {
319
+ if (simple) O[key] = value;
320
+ else setGlobal(key, value);
321
+ return;
322
+ } else if (!unsafe) {
323
+ delete O[key];
324
+ } else if (!noTargetGet && O[key]) {
325
+ simple = true;
326
+ }
327
+ if (simple) O[key] = value;
328
+ else hide(O, key, value);
329
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
330
+ })(Function.prototype, 'toString', function toString() {
331
+ return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
332
+ });
333
+ });
334
+
335
+ var path = global_1;
336
+
337
+ var aFunction = function (variable) {
338
+ return typeof variable == 'function' ? variable : undefined;
339
+ };
340
+
341
+ var getBuiltIn = function (namespace, method) {
342
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
343
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
344
+ };
345
+
346
+ var ceil = Math.ceil;
347
+ var floor = Math.floor;
348
+
349
+ // `ToInteger` abstract operation
350
+ // https://tc39.github.io/ecma262/#sec-tointeger
351
+ var toInteger = function (argument) {
352
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
353
+ };
354
+
355
+ var min = Math.min;
356
+
357
+ // `ToLength` abstract operation
358
+ // https://tc39.github.io/ecma262/#sec-tolength
359
+ var toLength = function (argument) {
360
+ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
361
+ };
362
+
363
+ var max = Math.max;
364
+ var min$1 = Math.min;
365
+
366
+ // Helper for a popular repeating case of the spec:
367
+ // Let integer be ? ToInteger(index).
368
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
369
+ var toAbsoluteIndex = function (index, length) {
370
+ var integer = toInteger(index);
371
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
372
+ };
373
+
374
+ // `Array.prototype.{ indexOf, includes }` methods implementation
375
+ var createMethod = function (IS_INCLUDES) {
376
+ return function ($this, el, fromIndex) {
377
+ var O = toIndexedObject($this);
378
+ var length = toLength(O.length);
379
+ var index = toAbsoluteIndex(fromIndex, length);
380
+ var value;
381
+ // Array#includes uses SameValueZero equality algorithm
382
+ // eslint-disable-next-line no-self-compare
383
+ if (IS_INCLUDES && el != el) while (length > index) {
384
+ value = O[index++];
385
+ // eslint-disable-next-line no-self-compare
386
+ if (value != value) return true;
387
+ // Array#indexOf ignores holes, Array#includes - not
388
+ } else for (;length > index; index++) {
389
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
390
+ } return !IS_INCLUDES && -1;
391
+ };
392
+ };
393
+
394
+ var arrayIncludes = {
395
+ // `Array.prototype.includes` method
396
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
397
+ includes: createMethod(true),
398
+ // `Array.prototype.indexOf` method
399
+ // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
400
+ indexOf: createMethod(false)
401
+ };
402
+
403
+ var indexOf = arrayIncludes.indexOf;
404
+
405
+
406
+ var objectKeysInternal = function (object, names) {
407
+ var O = toIndexedObject(object);
408
+ var i = 0;
409
+ var result = [];
410
+ var key;
411
+ for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
412
+ // Don't enum bug & hidden keys
413
+ while (names.length > i) if (has(O, key = names[i++])) {
414
+ ~indexOf(result, key) || result.push(key);
415
+ }
416
+ return result;
417
+ };
418
+
419
+ // IE8- don't enum bug keys
420
+ var enumBugKeys = [
421
+ 'constructor',
422
+ 'hasOwnProperty',
423
+ 'isPrototypeOf',
424
+ 'propertyIsEnumerable',
425
+ 'toLocaleString',
426
+ 'toString',
427
+ 'valueOf'
428
+ ];
429
+
430
+ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
431
+
432
+ // `Object.getOwnPropertyNames` method
433
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
434
+ var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
435
+ return objectKeysInternal(O, hiddenKeys$1);
436
+ };
437
+
438
+ var objectGetOwnPropertyNames = {
439
+ f: f$3
440
+ };
441
+
442
+ var f$4 = Object.getOwnPropertySymbols;
443
+
444
+ var objectGetOwnPropertySymbols = {
445
+ f: f$4
446
+ };
447
+
448
+ // all object keys, includes non-enumerable and symbols
449
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
450
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
451
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
452
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
453
+ };
454
+
455
+ var copyConstructorProperties = function (target, source) {
456
+ var keys = ownKeys(source);
457
+ var defineProperty = objectDefineProperty.f;
458
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
459
+ for (var i = 0; i < keys.length; i++) {
460
+ var key = keys[i];
461
+ if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
462
+ }
463
+ };
464
+
465
+ var replacement = /#|\.prototype\./;
466
+
467
+ var isForced = function (feature, detection) {
468
+ var value = data[normalize(feature)];
469
+ return value == POLYFILL ? true
470
+ : value == NATIVE ? false
471
+ : typeof detection == 'function' ? fails(detection)
472
+ : !!detection;
473
+ };
474
+
475
+ var normalize = isForced.normalize = function (string) {
476
+ return String(string).replace(replacement, '.').toLowerCase();
477
+ };
478
+
479
+ var data = isForced.data = {};
480
+ var NATIVE = isForced.NATIVE = 'N';
481
+ var POLYFILL = isForced.POLYFILL = 'P';
482
+
483
+ var isForced_1 = isForced;
484
+
485
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
486
+
487
+
488
+
489
+
490
+
491
+
492
+ /*
493
+ options.target - name of the target object
494
+ options.global - target is the global object
495
+ options.stat - export as static methods of target
496
+ options.proto - export as prototype methods of target
497
+ options.real - real prototype method for the `pure` version
498
+ options.forced - export even if the native feature is available
499
+ options.bind - bind methods to the target, required for the `pure` version
500
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
501
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
502
+ options.sham - add a flag to not completely full polyfills
503
+ options.enumerable - export as enumerable property
504
+ options.noTargetGet - prevent calling a getter on target
505
+ */
506
+ var _export = function (options, source) {
507
+ var TARGET = options.target;
508
+ var GLOBAL = options.global;
509
+ var STATIC = options.stat;
510
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
511
+ if (GLOBAL) {
512
+ target = global_1;
513
+ } else if (STATIC) {
514
+ target = global_1[TARGET] || setGlobal(TARGET, {});
515
+ } else {
516
+ target = (global_1[TARGET] || {}).prototype;
517
+ }
518
+ if (target) for (key in source) {
519
+ sourceProperty = source[key];
520
+ if (options.noTargetGet) {
521
+ descriptor = getOwnPropertyDescriptor$1(target, key);
522
+ targetProperty = descriptor && descriptor.value;
523
+ } else targetProperty = target[key];
524
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
525
+ // contained in target
526
+ if (!FORCED && targetProperty !== undefined) {
527
+ if (typeof sourceProperty === typeof targetProperty) continue;
528
+ copyConstructorProperties(sourceProperty, targetProperty);
529
+ }
530
+ // add a flag to not completely full polyfills
531
+ if (options.sham || (targetProperty && targetProperty.sham)) {
532
+ hide(sourceProperty, 'sham', true);
533
+ }
534
+ // extend global
535
+ redefine(target, key, sourceProperty, options);
536
+ }
537
+ };
538
+
539
+ var aFunction$1 = function (it) {
540
+ if (typeof it != 'function') {
541
+ throw TypeError(String(it) + ' is not a function');
542
+ } return it;
543
+ };
544
+
545
+ // optional / simple context binding
546
+ var bindContext = function (fn, that, length) {
547
+ aFunction$1(fn);
548
+ if (that === undefined) return fn;
549
+ switch (length) {
550
+ case 0: return function () {
551
+ return fn.call(that);
552
+ };
553
+ case 1: return function (a) {
554
+ return fn.call(that, a);
555
+ };
556
+ case 2: return function (a, b) {
557
+ return fn.call(that, a, b);
558
+ };
559
+ case 3: return function (a, b, c) {
560
+ return fn.call(that, a, b, c);
561
+ };
562
+ }
563
+ return function (/* ...args */) {
564
+ return fn.apply(that, arguments);
565
+ };
566
+ };
567
+
568
+ // `ToObject` abstract operation
569
+ // https://tc39.github.io/ecma262/#sec-toobject
570
+ var toObject = function (argument) {
571
+ return Object(requireObjectCoercible(argument));
572
+ };
573
+
574
+ // `IsArray` abstract operation
575
+ // https://tc39.github.io/ecma262/#sec-isarray
576
+ var isArray = Array.isArray || function isArray(arg) {
577
+ return classofRaw(arg) == 'Array';
578
+ };
579
+
580
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
581
+ // Chrome 38 Symbol has incorrect toString conversion
582
+ // eslint-disable-next-line no-undef
583
+ return !String(Symbol());
584
+ });
585
+
586
+ var Symbol$1 = global_1.Symbol;
587
+ var store$1 = shared('wks');
588
+
589
+ var wellKnownSymbol = function (name) {
590
+ return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
591
+ || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
592
+ };
593
+
594
+ var SPECIES = wellKnownSymbol('species');
595
+
596
+ // `ArraySpeciesCreate` abstract operation
597
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
598
+ var arraySpeciesCreate = function (originalArray, length) {
599
+ var C;
600
+ if (isArray(originalArray)) {
601
+ C = originalArray.constructor;
602
+ // cross-realm fallback
603
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
604
+ else if (isObject(C)) {
605
+ C = C[SPECIES];
606
+ if (C === null) C = undefined;
607
+ }
608
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
609
+ };
610
+
611
+ var push = [].push;
612
+
613
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
614
+ var createMethod$1 = function (TYPE) {
615
+ var IS_MAP = TYPE == 1;
616
+ var IS_FILTER = TYPE == 2;
617
+ var IS_SOME = TYPE == 3;
618
+ var IS_EVERY = TYPE == 4;
619
+ var IS_FIND_INDEX = TYPE == 6;
620
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
621
+ return function ($this, callbackfn, that, specificCreate) {
622
+ var O = toObject($this);
623
+ var self = indexedObject(O);
624
+ var boundFunction = bindContext(callbackfn, that, 3);
625
+ var length = toLength(self.length);
626
+ var index = 0;
627
+ var create = specificCreate || arraySpeciesCreate;
628
+ var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
629
+ var value, result;
630
+ for (;length > index; index++) if (NO_HOLES || index in self) {
631
+ value = self[index];
632
+ result = boundFunction(value, index, O);
633
+ if (TYPE) {
634
+ if (IS_MAP) target[index] = result; // map
635
+ else if (result) switch (TYPE) {
636
+ case 3: return true; // some
637
+ case 5: return value; // find
638
+ case 6: return index; // findIndex
639
+ case 2: push.call(target, value); // filter
640
+ } else if (IS_EVERY) return false; // every
641
+ }
642
+ }
643
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
644
+ };
645
+ };
646
+
647
+ var arrayIteration = {
648
+ // `Array.prototype.forEach` method
649
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
650
+ forEach: createMethod$1(0),
651
+ // `Array.prototype.map` method
652
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
653
+ map: createMethod$1(1),
654
+ // `Array.prototype.filter` method
655
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
656
+ filter: createMethod$1(2),
657
+ // `Array.prototype.some` method
658
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
659
+ some: createMethod$1(3),
660
+ // `Array.prototype.every` method
661
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
662
+ every: createMethod$1(4),
663
+ // `Array.prototype.find` method
664
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
665
+ find: createMethod$1(5),
666
+ // `Array.prototype.findIndex` method
667
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
668
+ findIndex: createMethod$1(6)
669
+ };
670
+
671
+ var sloppyArrayMethod = function (METHOD_NAME, argument) {
672
+ var method = [][METHOD_NAME];
673
+ return !method || !fails(function () {
674
+ // eslint-disable-next-line no-useless-call,no-throw-literal
675
+ method.call(null, argument || function () { throw 1; }, 1);
676
+ });
677
+ };
678
+
679
+ var $forEach = arrayIteration.forEach;
680
+
681
+
682
+ // `Array.prototype.forEach` method implementation
683
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
684
+ var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
685
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
686
+ } : [].forEach;
687
+
688
+ // `Array.prototype.forEach` method
689
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
690
+ _export({ target: 'Array', proto: true, forced: [].forEach != arrayForEach }, {
691
+ forEach: arrayForEach
692
+ });
693
+
694
+ // iterable DOM collections
695
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
696
+ var domIterables = {
697
+ CSSRuleList: 0,
698
+ CSSStyleDeclaration: 0,
699
+ CSSValueList: 0,
700
+ ClientRectList: 0,
701
+ DOMRectList: 0,
702
+ DOMStringList: 0,
703
+ DOMTokenList: 1,
704
+ DataTransferItemList: 0,
705
+ FileList: 0,
706
+ HTMLAllCollection: 0,
707
+ HTMLCollection: 0,
708
+ HTMLFormElement: 0,
709
+ HTMLSelectElement: 0,
710
+ MediaList: 0,
711
+ MimeTypeArray: 0,
712
+ NamedNodeMap: 0,
713
+ NodeList: 1,
714
+ PaintRequestList: 0,
715
+ Plugin: 0,
716
+ PluginArray: 0,
717
+ SVGLengthList: 0,
718
+ SVGNumberList: 0,
719
+ SVGPathSegList: 0,
720
+ SVGPointList: 0,
721
+ SVGStringList: 0,
722
+ SVGTransformList: 0,
723
+ SourceBufferList: 0,
724
+ StyleSheetList: 0,
725
+ TextTrackCueList: 0,
726
+ TextTrackList: 0,
727
+ TouchList: 0
728
+ };
729
+
730
+ for (var COLLECTION_NAME in domIterables) {
731
+ var Collection = global_1[COLLECTION_NAME];
732
+ var CollectionPrototype = Collection && Collection.prototype;
733
+ // some Chrome versions have non-configurable methods on DOMTokenList
734
+ if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
735
+ hide(CollectionPrototype, 'forEach', arrayForEach);
736
+ } catch (error) {
737
+ CollectionPrototype.forEach = arrayForEach;
738
+ }
739
+ }
740
+
741
+ var canUseDOM = !!(
742
+ typeof window !== 'undefined' &&
743
+ window.document &&
744
+ window.document.createElement
745
+ );
746
+
747
+ var canUseDom = canUseDOM;
748
+
749
+ var SPECIES$1 = wellKnownSymbol('species');
750
+
751
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
752
+ return !fails(function () {
753
+ var array = [];
754
+ var constructor = array.constructor = {};
755
+ constructor[SPECIES$1] = function () {
756
+ return { foo: 1 };
757
+ };
758
+ return array[METHOD_NAME](Boolean).foo !== 1;
759
+ });
760
+ };
761
+
762
+ var $filter = arrayIteration.filter;
763
+
764
+
765
+ // `Array.prototype.filter` method
766
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
767
+ // with adding support of @@species
768
+ _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, {
769
+ filter: function filter(callbackfn /* , thisArg */) {
770
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
771
+ }
772
+ });
773
+
774
+ // `Object.keys` method
775
+ // https://tc39.github.io/ecma262/#sec-object.keys
776
+ var objectKeys = Object.keys || function keys(O) {
777
+ return objectKeysInternal(O, enumBugKeys);
778
+ };
779
+
780
+ // `Object.defineProperties` method
781
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
782
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
783
+ anObject(O);
784
+ var keys = objectKeys(Properties);
785
+ var length = keys.length;
786
+ var index = 0;
787
+ var key;
788
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
789
+ return O;
790
+ };
791
+
792
+ var html = getBuiltIn('document', 'documentElement');
793
+
794
+ var IE_PROTO = sharedKey('IE_PROTO');
795
+
796
+ var PROTOTYPE = 'prototype';
797
+ var Empty = function () { /* empty */ };
798
+
799
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
800
+ var createDict = function () {
801
+ // Thrash, waste and sodomy: IE GC bug
802
+ var iframe = documentCreateElement('iframe');
803
+ var length = enumBugKeys.length;
804
+ var lt = '<';
805
+ var script = 'script';
806
+ var gt = '>';
807
+ var js = 'java' + script + ':';
808
+ var iframeDocument;
809
+ iframe.style.display = 'none';
810
+ html.appendChild(iframe);
811
+ iframe.src = String(js);
812
+ iframeDocument = iframe.contentWindow.document;
813
+ iframeDocument.open();
814
+ iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
815
+ iframeDocument.close();
816
+ createDict = iframeDocument.F;
817
+ while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
818
+ return createDict();
819
+ };
820
+
821
+ // `Object.create` method
822
+ // https://tc39.github.io/ecma262/#sec-object.create
823
+ var objectCreate = Object.create || function create(O, Properties) {
824
+ var result;
825
+ if (O !== null) {
826
+ Empty[PROTOTYPE] = anObject(O);
827
+ result = new Empty();
828
+ Empty[PROTOTYPE] = null;
829
+ // add "__proto__" for Object.getPrototypeOf polyfill
830
+ result[IE_PROTO] = O;
831
+ } else result = createDict();
832
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
833
+ };
834
+
835
+ hiddenKeys[IE_PROTO] = true;
836
+
837
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
838
+ var ArrayPrototype = Array.prototype;
839
+
840
+ // Array.prototype[@@unscopables]
841
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
842
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
843
+ hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
844
+ }
845
+
846
+ // add a key to Array.prototype[@@unscopables]
847
+ var addToUnscopables = function (key) {
848
+ ArrayPrototype[UNSCOPABLES][key] = true;
849
+ };
850
+
851
+ var iterators = {};
852
+
853
+ var correctPrototypeGetter = !fails(function () {
854
+ function F() { /* empty */ }
855
+ F.prototype.constructor = null;
856
+ return Object.getPrototypeOf(new F()) !== F.prototype;
857
+ });
858
+
859
+ var IE_PROTO$1 = sharedKey('IE_PROTO');
860
+ var ObjectPrototype = Object.prototype;
861
+
862
+ // `Object.getPrototypeOf` method
863
+ // https://tc39.github.io/ecma262/#sec-object.getprototypeof
864
+ var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
865
+ O = toObject(O);
866
+ if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
867
+ if (typeof O.constructor == 'function' && O instanceof O.constructor) {
868
+ return O.constructor.prototype;
869
+ } return O instanceof Object ? ObjectPrototype : null;
870
+ };
871
+
872
+ var ITERATOR = wellKnownSymbol('iterator');
873
+ var BUGGY_SAFARI_ITERATORS = false;
874
+
875
+ var returnThis = function () { return this; };
876
+
877
+ // `%IteratorPrototype%` object
878
+ // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
879
+ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
880
+
881
+ if ([].keys) {
882
+ arrayIterator = [].keys();
883
+ // Safari 8 has buggy iterators w/o `next`
884
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
885
+ else {
886
+ PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
887
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
888
+ }
889
+ }
890
+
891
+ if (IteratorPrototype == undefined) IteratorPrototype = {};
892
+
893
+ // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
894
+ if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
895
+
896
+ var iteratorsCore = {
897
+ IteratorPrototype: IteratorPrototype,
898
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
899
+ };
900
+
901
+ var defineProperty = objectDefineProperty.f;
902
+
903
+
904
+
905
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
906
+
907
+ var setToStringTag = function (it, TAG, STATIC) {
908
+ if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
909
+ defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
910
+ }
911
+ };
912
+
913
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
914
+
915
+
916
+
917
+
918
+
919
+ var returnThis$1 = function () { return this; };
920
+
921
+ var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
922
+ var TO_STRING_TAG = NAME + ' Iterator';
923
+ IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
924
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
925
+ iterators[TO_STRING_TAG] = returnThis$1;
926
+ return IteratorConstructor;
927
+ };
928
+
929
+ var aPossiblePrototype = function (it) {
930
+ if (!isObject(it) && it !== null) {
931
+ throw TypeError("Can't set " + String(it) + ' as a prototype');
932
+ } return it;
933
+ };
934
+
935
+ // `Object.setPrototypeOf` method
936
+ // https://tc39.github.io/ecma262/#sec-object.setprototypeof
937
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
938
+ /* eslint-disable no-proto */
939
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
940
+ var CORRECT_SETTER = false;
941
+ var test = {};
942
+ var setter;
943
+ try {
944
+ setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
945
+ setter.call(test, []);
946
+ CORRECT_SETTER = test instanceof Array;
947
+ } catch (error) { /* empty */ }
948
+ return function setPrototypeOf(O, proto) {
949
+ anObject(O);
950
+ aPossiblePrototype(proto);
951
+ if (CORRECT_SETTER) setter.call(O, proto);
952
+ else O.__proto__ = proto;
953
+ return O;
954
+ };
955
+ }() : undefined);
956
+
957
+ var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
958
+ var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
959
+ var ITERATOR$1 = wellKnownSymbol('iterator');
960
+ var KEYS = 'keys';
961
+ var VALUES = 'values';
962
+ var ENTRIES = 'entries';
963
+
964
+ var returnThis$2 = function () { return this; };
965
+
966
+ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
967
+ createIteratorConstructor(IteratorConstructor, NAME, next);
968
+
969
+ var getIterationMethod = function (KIND) {
970
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
971
+ if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
972
+ switch (KIND) {
973
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
974
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
975
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
976
+ } return function () { return new IteratorConstructor(this); };
977
+ };
978
+
979
+ var TO_STRING_TAG = NAME + ' Iterator';
980
+ var INCORRECT_VALUES_NAME = false;
981
+ var IterablePrototype = Iterable.prototype;
982
+ var nativeIterator = IterablePrototype[ITERATOR$1]
983
+ || IterablePrototype['@@iterator']
984
+ || DEFAULT && IterablePrototype[DEFAULT];
985
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
986
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
987
+ var CurrentIteratorPrototype, methods, KEY;
988
+
989
+ // fix native
990
+ if (anyNativeIterator) {
991
+ CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
992
+ if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
993
+ if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
994
+ if (objectSetPrototypeOf) {
995
+ objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
996
+ } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
997
+ hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$2);
998
+ }
999
+ }
1000
+ // Set @@toStringTag to native iterators
1001
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1002
+ }
1003
+ }
1004
+
1005
+ // fix Array#{values, @@iterator}.name in V8 / FF
1006
+ if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1007
+ INCORRECT_VALUES_NAME = true;
1008
+ defaultIterator = function values() { return nativeIterator.call(this); };
1009
+ }
1010
+
1011
+ // define iterator
1012
+ if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1013
+ hide(IterablePrototype, ITERATOR$1, defaultIterator);
1014
+ }
1015
+ iterators[NAME] = defaultIterator;
1016
+
1017
+ // export additional methods
1018
+ if (DEFAULT) {
1019
+ methods = {
1020
+ values: getIterationMethod(VALUES),
1021
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1022
+ entries: getIterationMethod(ENTRIES)
1023
+ };
1024
+ if (FORCED) for (KEY in methods) {
1025
+ if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1026
+ redefine(IterablePrototype, KEY, methods[KEY]);
1027
+ }
1028
+ } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1029
+ }
1030
+
1031
+ return methods;
1032
+ };
1033
+
1034
+ var ARRAY_ITERATOR = 'Array Iterator';
1035
+ var setInternalState = internalState.set;
1036
+ var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
1037
+
1038
+ // `Array.prototype.entries` method
1039
+ // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1040
+ // `Array.prototype.keys` method
1041
+ // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1042
+ // `Array.prototype.values` method
1043
+ // https://tc39.github.io/ecma262/#sec-array.prototype.values
1044
+ // `Array.prototype[@@iterator]` method
1045
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1046
+ // `CreateArrayIterator` internal method
1047
+ // https://tc39.github.io/ecma262/#sec-createarrayiterator
1048
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1049
+ setInternalState(this, {
1050
+ type: ARRAY_ITERATOR,
1051
+ target: toIndexedObject(iterated), // target
1052
+ index: 0, // next index
1053
+ kind: kind // kind
1054
+ });
1055
+ // `%ArrayIteratorPrototype%.next` method
1056
+ // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1057
+ }, function () {
1058
+ var state = getInternalState(this);
1059
+ var target = state.target;
1060
+ var kind = state.kind;
1061
+ var index = state.index++;
1062
+ if (!target || index >= target.length) {
1063
+ state.target = undefined;
1064
+ return { value: undefined, done: true };
1065
+ }
1066
+ if (kind == 'keys') return { value: index, done: false };
1067
+ if (kind == 'values') return { value: target[index], done: false };
1068
+ return { value: [index, target[index]], done: false };
1069
+ }, 'values');
1070
+
1071
+ // argumentsList[@@iterator] is %ArrayProto_values%
1072
+ // https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject
1073
+ // https://tc39.github.io/ecma262/#sec-createmappedargumentsobject
1074
+ iterators.Arguments = iterators.Array;
1075
+
1076
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1077
+ addToUnscopables('keys');
1078
+ addToUnscopables('values');
1079
+ addToUnscopables('entries');
1080
+
1081
+ var nativeAssign = Object.assign;
1082
+
1083
+ // `Object.assign` method
1084
+ // https://tc39.github.io/ecma262/#sec-object.assign
1085
+ // should work with symbols and should have deterministic property order (V8 bug)
1086
+ var objectAssign = !nativeAssign || fails(function () {
1087
+ var A = {};
1088
+ var B = {};
1089
+ // eslint-disable-next-line no-undef
1090
+ var symbol = Symbol();
1091
+ var alphabet = 'abcdefghijklmnopqrst';
1092
+ A[symbol] = 7;
1093
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1094
+ return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
1095
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
1096
+ var T = toObject(target);
1097
+ var argumentsLength = arguments.length;
1098
+ var index = 1;
1099
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1100
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1101
+ while (argumentsLength > index) {
1102
+ var S = indexedObject(arguments[index++]);
1103
+ var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
1104
+ var length = keys.length;
1105
+ var j = 0;
1106
+ var key;
1107
+ while (length > j) {
1108
+ key = keys[j++];
1109
+ if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
1110
+ }
1111
+ } return T;
1112
+ } : nativeAssign;
1113
+
1114
+ // `Object.assign` method
1115
+ // https://tc39.github.io/ecma262/#sec-object.assign
1116
+ _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1117
+ assign: objectAssign
1118
+ });
1119
+
1120
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1121
+ // ES3 wrong here
1122
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1123
+
1124
+ // fallback for IE11 Script Access Denied error
1125
+ var tryGet = function (it, key) {
1126
+ try {
1127
+ return it[key];
1128
+ } catch (error) { /* empty */ }
1129
+ };
1130
+
1131
+ // getting tag from ES6+ `Object.prototype.toString`
1132
+ var classof = function (it) {
1133
+ var O, tag, result;
1134
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1135
+ // @@toStringTag case
1136
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1137
+ // builtinTag case
1138
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1139
+ // ES3 arguments fallback
1140
+ : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1141
+ };
1142
+
1143
+ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1144
+ var test = {};
1145
+
1146
+ test[TO_STRING_TAG$2] = 'z';
1147
+
1148
+ // `Object.prototype.toString` method implementation
1149
+ // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1150
+ var objectToString = String(test) !== '[object z]' ? function toString() {
1151
+ return '[object ' + classof(this) + ']';
1152
+ } : test.toString;
1153
+
1154
+ var ObjectPrototype$1 = Object.prototype;
1155
+
1156
+ // `Object.prototype.toString` method
1157
+ // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1158
+ if (objectToString !== ObjectPrototype$1.toString) {
1159
+ redefine(ObjectPrototype$1, 'toString', objectToString, { unsafe: true });
1160
+ }
1161
+
1162
+ // a string of all valid unicode whitespaces
1163
+ // eslint-disable-next-line max-len
1164
+ var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1165
+
1166
+ var whitespace = '[' + whitespaces + ']';
1167
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
1168
+ var rtrim = RegExp(whitespace + whitespace + '*$');
1169
+
1170
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1171
+ var createMethod$2 = function (TYPE) {
1172
+ return function ($this) {
1173
+ var string = String(requireObjectCoercible($this));
1174
+ if (TYPE & 1) string = string.replace(ltrim, '');
1175
+ if (TYPE & 2) string = string.replace(rtrim, '');
1176
+ return string;
1177
+ };
1178
+ };
1179
+
1180
+ var stringTrim = {
1181
+ // `String.prototype.{ trimLeft, trimStart }` methods
1182
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
1183
+ start: createMethod$2(1),
1184
+ // `String.prototype.{ trimRight, trimEnd }` methods
1185
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
1186
+ end: createMethod$2(2),
1187
+ // `String.prototype.trim` method
1188
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trim
1189
+ trim: createMethod$2(3)
1190
+ };
1191
+
1192
+ var trim = stringTrim.trim;
1193
+
1194
+
1195
+ var nativeParseInt = global_1.parseInt;
1196
+ var hex = /^[+-]?0[Xx]/;
1197
+ var FORCED = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
1198
+
1199
+ // `parseInt` method
1200
+ // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1201
+ var _parseInt = FORCED ? function parseInt(string, radix) {
1202
+ var S = trim(String(string));
1203
+ return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
1204
+ } : nativeParseInt;
1205
+
1206
+ // `parseInt` method
1207
+ // https://tc39.github.io/ecma262/#sec-parseint-string-radix
1208
+ _export({ global: true, forced: parseInt != _parseInt }, {
1209
+ parseInt: _parseInt
1210
+ });
1211
+
1212
+ // `String.prototype.{ codePointAt, at }` methods implementation
1213
+ var createMethod$3 = function (CONVERT_TO_STRING) {
1214
+ return function ($this, pos) {
1215
+ var S = String(requireObjectCoercible($this));
1216
+ var position = toInteger(pos);
1217
+ var size = S.length;
1218
+ var first, second;
1219
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1220
+ first = S.charCodeAt(position);
1221
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1222
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1223
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
1224
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1225
+ };
1226
+ };
1227
+
1228
+ var stringMultibyte = {
1229
+ // `String.prototype.codePointAt` method
1230
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1231
+ codeAt: createMethod$3(false),
1232
+ // `String.prototype.at` method
1233
+ // https://github.com/mathiasbynens/String.prototype.at
1234
+ charAt: createMethod$3(true)
1235
+ };
1236
+
1237
+ var charAt = stringMultibyte.charAt;
1238
+
1239
+
1240
+
1241
+ var STRING_ITERATOR = 'String Iterator';
1242
+ var setInternalState$1 = internalState.set;
1243
+ var getInternalState$1 = internalState.getterFor(STRING_ITERATOR);
1244
+
1245
+ // `String.prototype[@@iterator]` method
1246
+ // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1247
+ defineIterator(String, 'String', function (iterated) {
1248
+ setInternalState$1(this, {
1249
+ type: STRING_ITERATOR,
1250
+ string: String(iterated),
1251
+ index: 0
1252
+ });
1253
+ // `%StringIteratorPrototype%.next` method
1254
+ // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1255
+ }, function next() {
1256
+ var state = getInternalState$1(this);
1257
+ var string = state.string;
1258
+ var index = state.index;
1259
+ var point;
1260
+ if (index >= string.length) return { value: undefined, done: true };
1261
+ point = charAt(string, index);
1262
+ state.index += point.length;
1263
+ return { value: point, done: false };
1264
+ });
1265
+
1266
+ var redefineAll = function (target, src, options) {
1267
+ for (var key in src) redefine(target, key, src[key], options);
1268
+ return target;
1269
+ };
1270
+
1271
+ var freezing = !fails(function () {
1272
+ return Object.isExtensible(Object.preventExtensions({}));
1273
+ });
1274
+
1275
+ var internalMetadata = createCommonjsModule(function (module) {
1276
+ var defineProperty = objectDefineProperty.f;
1277
+
1278
+
1279
+
1280
+ var METADATA = uid('meta');
1281
+ var id = 0;
1282
+
1283
+ var isExtensible = Object.isExtensible || function () {
1284
+ return true;
1285
+ };
1286
+
1287
+ var setMetadata = function (it) {
1288
+ defineProperty(it, METADATA, { value: {
1289
+ objectID: 'O' + ++id, // object ID
1290
+ weakData: {} // weak collections IDs
1291
+ } });
1292
+ };
1293
+
1294
+ var fastKey = function (it, create) {
1295
+ // return a primitive with prefix
1296
+ if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
1297
+ if (!has(it, METADATA)) {
1298
+ // can't set metadata to uncaught frozen object
1299
+ if (!isExtensible(it)) return 'F';
1300
+ // not necessary to add metadata
1301
+ if (!create) return 'E';
1302
+ // add missing metadata
1303
+ setMetadata(it);
1304
+ // return object ID
1305
+ } return it[METADATA].objectID;
1306
+ };
1307
+
1308
+ var getWeakData = function (it, create) {
1309
+ if (!has(it, METADATA)) {
1310
+ // can't set metadata to uncaught frozen object
1311
+ if (!isExtensible(it)) return true;
1312
+ // not necessary to add metadata
1313
+ if (!create) return false;
1314
+ // add missing metadata
1315
+ setMetadata(it);
1316
+ // return the store of weak collections IDs
1317
+ } return it[METADATA].weakData;
1318
+ };
1319
+
1320
+ // add metadata on freeze-family methods calling
1321
+ var onFreeze = function (it) {
1322
+ if (freezing && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
1323
+ return it;
1324
+ };
1325
+
1326
+ var meta = module.exports = {
1327
+ REQUIRED: false,
1328
+ fastKey: fastKey,
1329
+ getWeakData: getWeakData,
1330
+ onFreeze: onFreeze
1331
+ };
1332
+
1333
+ hiddenKeys[METADATA] = true;
1334
+ });
1335
+ var internalMetadata_1 = internalMetadata.REQUIRED;
1336
+ var internalMetadata_2 = internalMetadata.fastKey;
1337
+ var internalMetadata_3 = internalMetadata.getWeakData;
1338
+ var internalMetadata_4 = internalMetadata.onFreeze;
1339
+
1340
+ var ITERATOR$2 = wellKnownSymbol('iterator');
1341
+ var ArrayPrototype$1 = Array.prototype;
1342
+
1343
+ // check on default Array iterator
1344
+ var isArrayIteratorMethod = function (it) {
1345
+ return it !== undefined && (iterators.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
1346
+ };
1347
+
1348
+ var ITERATOR$3 = wellKnownSymbol('iterator');
1349
+
1350
+ var getIteratorMethod = function (it) {
1351
+ if (it != undefined) return it[ITERATOR$3]
1352
+ || it['@@iterator']
1353
+ || iterators[classof(it)];
1354
+ };
1355
+
1356
+ // call something on iterator step with safe closing on error
1357
+ var callWithSafeIterationClosing = function (iterator, fn, value, ENTRIES) {
1358
+ try {
1359
+ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
1360
+ // 7.4.6 IteratorClose(iterator, completion)
1361
+ } catch (error) {
1362
+ var returnMethod = iterator['return'];
1363
+ if (returnMethod !== undefined) anObject(returnMethod.call(iterator));
1364
+ throw error;
1365
+ }
1366
+ };
1367
+
1368
+ var iterate_1 = createCommonjsModule(function (module) {
1369
+ var Result = function (stopped, result) {
1370
+ this.stopped = stopped;
1371
+ this.result = result;
1372
+ };
1373
+
1374
+ var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
1375
+ var boundFunction = bindContext(fn, that, AS_ENTRIES ? 2 : 1);
1376
+ var iterator, iterFn, index, length, result, step;
1377
+
1378
+ if (IS_ITERATOR) {
1379
+ iterator = iterable;
1380
+ } else {
1381
+ iterFn = getIteratorMethod(iterable);
1382
+ if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
1383
+ // optimisation for array iterators
1384
+ if (isArrayIteratorMethod(iterFn)) {
1385
+ for (index = 0, length = toLength(iterable.length); length > index; index++) {
1386
+ result = AS_ENTRIES
1387
+ ? boundFunction(anObject(step = iterable[index])[0], step[1])
1388
+ : boundFunction(iterable[index]);
1389
+ if (result && result instanceof Result) return result;
1390
+ } return new Result(false);
1391
+ }
1392
+ iterator = iterFn.call(iterable);
1393
+ }
1394
+
1395
+ while (!(step = iterator.next()).done) {
1396
+ result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
1397
+ if (result && result instanceof Result) return result;
1398
+ } return new Result(false);
1399
+ };
1400
+
1401
+ iterate.stop = function (result) {
1402
+ return new Result(true, result);
1403
+ };
1404
+ });
1405
+
1406
+ var anInstance = function (it, Constructor, name) {
1407
+ if (!(it instanceof Constructor)) {
1408
+ throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
1409
+ } return it;
1410
+ };
1411
+
1412
+ var ITERATOR$4 = wellKnownSymbol('iterator');
1413
+ var SAFE_CLOSING = false;
1414
+
1415
+ try {
1416
+ var called = 0;
1417
+ var iteratorWithReturn = {
1418
+ next: function () {
1419
+ return { done: !!called++ };
1420
+ },
1421
+ 'return': function () {
1422
+ SAFE_CLOSING = true;
1423
+ }
1424
+ };
1425
+ iteratorWithReturn[ITERATOR$4] = function () {
1426
+ return this;
1427
+ };
1428
+ // eslint-disable-next-line no-throw-literal
1429
+ Array.from(iteratorWithReturn, function () { throw 2; });
1430
+ } catch (error) { /* empty */ }
1431
+
1432
+ var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
1433
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
1434
+ var ITERATION_SUPPORT = false;
1435
+ try {
1436
+ var object = {};
1437
+ object[ITERATOR$4] = function () {
1438
+ return {
1439
+ next: function () {
1440
+ return { done: ITERATION_SUPPORT = true };
1441
+ }
1442
+ };
1443
+ };
1444
+ exec(object);
1445
+ } catch (error) { /* empty */ }
1446
+ return ITERATION_SUPPORT;
1447
+ };
1448
+
1449
+ // makes subclassing work correct for wrapped built-ins
1450
+ var inheritIfRequired = function ($this, dummy, Wrapper) {
1451
+ var NewTarget, NewTargetPrototype;
1452
+ if (
1453
+ // it can work only with native `setPrototypeOf`
1454
+ objectSetPrototypeOf &&
1455
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1456
+ typeof (NewTarget = dummy.constructor) == 'function' &&
1457
+ NewTarget !== Wrapper &&
1458
+ isObject(NewTargetPrototype = NewTarget.prototype) &&
1459
+ NewTargetPrototype !== Wrapper.prototype
1460
+ ) objectSetPrototypeOf($this, NewTargetPrototype);
1461
+ return $this;
1462
+ };
1463
+
1464
+ var collection = function (CONSTRUCTOR_NAME, wrapper, common, IS_MAP, IS_WEAK) {
1465
+ var NativeConstructor = global_1[CONSTRUCTOR_NAME];
1466
+ var NativePrototype = NativeConstructor && NativeConstructor.prototype;
1467
+ var Constructor = NativeConstructor;
1468
+ var ADDER = IS_MAP ? 'set' : 'add';
1469
+ var exported = {};
1470
+
1471
+ var fixMethod = function (KEY) {
1472
+ var nativeMethod = NativePrototype[KEY];
1473
+ redefine(NativePrototype, KEY,
1474
+ KEY == 'add' ? function add(value) {
1475
+ nativeMethod.call(this, value === 0 ? 0 : value);
1476
+ return this;
1477
+ } : KEY == 'delete' ? function (key) {
1478
+ return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
1479
+ } : KEY == 'get' ? function get(key) {
1480
+ return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
1481
+ } : KEY == 'has' ? function has(key) {
1482
+ return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
1483
+ } : function set(key, value) {
1484
+ nativeMethod.call(this, key === 0 ? 0 : key, value);
1485
+ return this;
1486
+ }
1487
+ );
1488
+ };
1489
+
1490
+ // eslint-disable-next-line max-len
1491
+ if (isForced_1(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
1492
+ new NativeConstructor().entries().next();
1493
+ })))) {
1494
+ // create collection constructor
1495
+ Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
1496
+ internalMetadata.REQUIRED = true;
1497
+ } else if (isForced_1(CONSTRUCTOR_NAME, true)) {
1498
+ var instance = new Constructor();
1499
+ // early implementations not supports chaining
1500
+ var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
1501
+ // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
1502
+ var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
1503
+ // most early implementations doesn't supports iterables, most modern - not close it correctly
1504
+ // eslint-disable-next-line no-new
1505
+ var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
1506
+ // for early implementations -0 and +0 not the same
1507
+ var BUGGY_ZERO = !IS_WEAK && fails(function () {
1508
+ // V8 ~ Chromium 42- fails only with 5+ elements
1509
+ var $instance = new NativeConstructor();
1510
+ var index = 5;
1511
+ while (index--) $instance[ADDER](index, index);
1512
+ return !$instance.has(-0);
1513
+ });
1514
+
1515
+ if (!ACCEPT_ITERABLES) {
1516
+ Constructor = wrapper(function (dummy, iterable) {
1517
+ anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
1518
+ var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
1519
+ if (iterable != undefined) iterate_1(iterable, that[ADDER], that, IS_MAP);
1520
+ return that;
1521
+ });
1522
+ Constructor.prototype = NativePrototype;
1523
+ NativePrototype.constructor = Constructor;
1524
+ }
1525
+
1526
+ if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
1527
+ fixMethod('delete');
1528
+ fixMethod('has');
1529
+ IS_MAP && fixMethod('get');
1530
+ }
1531
+
1532
+ if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
1533
+
1534
+ // weak collections should not contains .clear method
1535
+ if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
1536
+ }
1537
+
1538
+ exported[CONSTRUCTOR_NAME] = Constructor;
1539
+ _export({ global: true, forced: Constructor != NativeConstructor }, exported);
1540
+
1541
+ setToStringTag(Constructor, CONSTRUCTOR_NAME);
1542
+
1543
+ if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
1544
+
1545
+ return Constructor;
1546
+ };
1547
+
1548
+ var getWeakData = internalMetadata.getWeakData;
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+ var setInternalState$2 = internalState.set;
1558
+ var internalStateGetterFor = internalState.getterFor;
1559
+ var find = arrayIteration.find;
1560
+ var findIndex = arrayIteration.findIndex;
1561
+ var id$1 = 0;
1562
+
1563
+ // fallback for uncaught frozen keys
1564
+ var uncaughtFrozenStore = function (store) {
1565
+ return store.frozen || (store.frozen = new UncaughtFrozenStore());
1566
+ };
1567
+
1568
+ var UncaughtFrozenStore = function () {
1569
+ this.entries = [];
1570
+ };
1571
+
1572
+ var findUncaughtFrozen = function (store, key) {
1573
+ return find(store.entries, function (it) {
1574
+ return it[0] === key;
1575
+ });
1576
+ };
1577
+
1578
+ UncaughtFrozenStore.prototype = {
1579
+ get: function (key) {
1580
+ var entry = findUncaughtFrozen(this, key);
1581
+ if (entry) return entry[1];
1582
+ },
1583
+ has: function (key) {
1584
+ return !!findUncaughtFrozen(this, key);
1585
+ },
1586
+ set: function (key, value) {
1587
+ var entry = findUncaughtFrozen(this, key);
1588
+ if (entry) entry[1] = value;
1589
+ else this.entries.push([key, value]);
1590
+ },
1591
+ 'delete': function (key) {
1592
+ var index = findIndex(this.entries, function (it) {
1593
+ return it[0] === key;
1594
+ });
1595
+ if (~index) this.entries.splice(index, 1);
1596
+ return !!~index;
1597
+ }
1598
+ };
1599
+
1600
+ var collectionWeak = {
1601
+ getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
1602
+ var C = wrapper(function (that, iterable) {
1603
+ anInstance(that, C, CONSTRUCTOR_NAME);
1604
+ setInternalState$2(that, {
1605
+ type: CONSTRUCTOR_NAME,
1606
+ id: id$1++,
1607
+ frozen: undefined
1608
+ });
1609
+ if (iterable != undefined) iterate_1(iterable, that[ADDER], that, IS_MAP);
1610
+ });
1611
+
1612
+ var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
1613
+
1614
+ var define = function (that, key, value) {
1615
+ var state = getInternalState(that);
1616
+ var data = getWeakData(anObject(key), true);
1617
+ if (data === true) uncaughtFrozenStore(state).set(key, value);
1618
+ else data[state.id] = value;
1619
+ return that;
1620
+ };
1621
+
1622
+ redefineAll(C.prototype, {
1623
+ // 23.3.3.2 WeakMap.prototype.delete(key)
1624
+ // 23.4.3.3 WeakSet.prototype.delete(value)
1625
+ 'delete': function (key) {
1626
+ var state = getInternalState(this);
1627
+ if (!isObject(key)) return false;
1628
+ var data = getWeakData(key);
1629
+ if (data === true) return uncaughtFrozenStore(state)['delete'](key);
1630
+ return data && has(data, state.id) && delete data[state.id];
1631
+ },
1632
+ // 23.3.3.4 WeakMap.prototype.has(key)
1633
+ // 23.4.3.4 WeakSet.prototype.has(value)
1634
+ has: function has$1(key) {
1635
+ var state = getInternalState(this);
1636
+ if (!isObject(key)) return false;
1637
+ var data = getWeakData(key);
1638
+ if (data === true) return uncaughtFrozenStore(state).has(key);
1639
+ return data && has(data, state.id);
1640
+ }
1641
+ });
1642
+
1643
+ redefineAll(C.prototype, IS_MAP ? {
1644
+ // 23.3.3.3 WeakMap.prototype.get(key)
1645
+ get: function get(key) {
1646
+ var state = getInternalState(this);
1647
+ if (isObject(key)) {
1648
+ var data = getWeakData(key);
1649
+ if (data === true) return uncaughtFrozenStore(state).get(key);
1650
+ return data ? data[state.id] : undefined;
1651
+ }
1652
+ },
1653
+ // 23.3.3.5 WeakMap.prototype.set(key, value)
1654
+ set: function set(key, value) {
1655
+ return define(this, key, value);
1656
+ }
1657
+ } : {
1658
+ // 23.4.3.1 WeakSet.prototype.add(value)
1659
+ add: function add(value) {
1660
+ return define(this, value, true);
1661
+ }
1662
+ });
1663
+
1664
+ return C;
1665
+ }
1666
+ };
1667
+
1668
+ var es_weakMap = createCommonjsModule(function (module) {
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+ var enforceIternalState = internalState.enforce;
1676
+
1677
+
1678
+ var IS_IE11 = !global_1.ActiveXObject && 'ActiveXObject' in global_1;
1679
+ var isExtensible = Object.isExtensible;
1680
+ var InternalWeakMap;
1681
+
1682
+ var wrapper = function (get) {
1683
+ return function WeakMap() {
1684
+ return get(this, arguments.length ? arguments[0] : undefined);
1685
+ };
1686
+ };
1687
+
1688
+ // `WeakMap` constructor
1689
+ // https://tc39.github.io/ecma262/#sec-weakmap-constructor
1690
+ var $WeakMap = module.exports = collection('WeakMap', wrapper, collectionWeak, true, true);
1691
+
1692
+ // IE11 WeakMap frozen keys fix
1693
+ // We can't use feature detection because it crash some old IE builds
1694
+ // https://github.com/zloirock/core-js/issues/485
1695
+ if (nativeWeakMap && IS_IE11) {
1696
+ InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
1697
+ internalMetadata.REQUIRED = true;
1698
+ var WeakMapPrototype = $WeakMap.prototype;
1699
+ var nativeDelete = WeakMapPrototype['delete'];
1700
+ var nativeHas = WeakMapPrototype.has;
1701
+ var nativeGet = WeakMapPrototype.get;
1702
+ var nativeSet = WeakMapPrototype.set;
1703
+ redefineAll(WeakMapPrototype, {
1704
+ 'delete': function (key) {
1705
+ if (isObject(key) && !isExtensible(key)) {
1706
+ var state = enforceIternalState(this);
1707
+ if (!state.frozen) state.frozen = new InternalWeakMap();
1708
+ return nativeDelete.call(this, key) || state.frozen['delete'](key);
1709
+ } return nativeDelete.call(this, key);
1710
+ },
1711
+ has: function has(key) {
1712
+ if (isObject(key) && !isExtensible(key)) {
1713
+ var state = enforceIternalState(this);
1714
+ if (!state.frozen) state.frozen = new InternalWeakMap();
1715
+ return nativeHas.call(this, key) || state.frozen.has(key);
1716
+ } return nativeHas.call(this, key);
1717
+ },
1718
+ get: function get(key) {
1719
+ if (isObject(key) && !isExtensible(key)) {
1720
+ var state = enforceIternalState(this);
1721
+ if (!state.frozen) state.frozen = new InternalWeakMap();
1722
+ return nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key);
1723
+ } return nativeGet.call(this, key);
1724
+ },
1725
+ set: function set(key, value) {
1726
+ if (isObject(key) && !isExtensible(key)) {
1727
+ var state = enforceIternalState(this);
1728
+ if (!state.frozen) state.frozen = new InternalWeakMap();
1729
+ nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value);
1730
+ } else nativeSet.call(this, key, value);
1731
+ return this;
1732
+ }
1733
+ });
1734
+ }
1735
+ });
1736
+
1737
+ var ITERATOR$5 = wellKnownSymbol('iterator');
1738
+ var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1739
+ var ArrayValues = es_array_iterator.values;
1740
+
1741
+ for (var COLLECTION_NAME$1 in domIterables) {
1742
+ var Collection$1 = global_1[COLLECTION_NAME$1];
1743
+ var CollectionPrototype$1 = Collection$1 && Collection$1.prototype;
1744
+ if (CollectionPrototype$1) {
1745
+ // some Chrome versions have non-configurable methods on DOMTokenList
1746
+ if (CollectionPrototype$1[ITERATOR$5] !== ArrayValues) try {
1747
+ hide(CollectionPrototype$1, ITERATOR$5, ArrayValues);
1748
+ } catch (error) {
1749
+ CollectionPrototype$1[ITERATOR$5] = ArrayValues;
1750
+ }
1751
+ if (!CollectionPrototype$1[TO_STRING_TAG$3]) hide(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1);
1752
+ if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) {
1753
+ // some Chrome versions have non-configurable methods on DOMTokenList
1754
+ if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1755
+ hide(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1756
+ } catch (error) {
1757
+ CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1758
+ }
1759
+ }
1760
+ }
1761
+ }
1762
+
1763
+ /**
1764
+ * lodash (Custom Build) <https://lodash.com/>
1765
+ * Build: `lodash modularize exports="npm" -o ./`
1766
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
1767
+ * Released under MIT license <https://lodash.com/license>
1768
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1769
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1770
+ */
1771
+
1772
+ /** Used as the `TypeError` message for "Functions" methods. */
1773
+ var FUNC_ERROR_TEXT = 'Expected a function';
1774
+
1775
+ /** Used as references for various `Number` constants. */
1776
+ var NAN = 0 / 0;
1777
+
1778
+ /** `Object#toString` result references. */
1779
+ var symbolTag = '[object Symbol]';
1780
+
1781
+ /** Used to match leading and trailing whitespace. */
1782
+ var reTrim = /^\s+|\s+$/g;
1783
+
1784
+ /** Used to detect bad signed hexadecimal string values. */
1785
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
1786
+
1787
+ /** Used to detect binary string values. */
1788
+ var reIsBinary = /^0b[01]+$/i;
1789
+
1790
+ /** Used to detect octal string values. */
1791
+ var reIsOctal = /^0o[0-7]+$/i;
1792
+
1793
+ /** Built-in method references without a dependency on `root`. */
1794
+ var freeParseInt = parseInt;
1795
+
1796
+ /** Detect free variable `global` from Node.js. */
1797
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1798
+
1799
+ /** Detect free variable `self`. */
1800
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1801
+
1802
+ /** Used as a reference to the global object. */
1803
+ var root = freeGlobal || freeSelf || Function('return this')();
1804
+
1805
+ /** Used for built-in method references. */
1806
+ var objectProto = Object.prototype;
1807
+
1808
+ /**
1809
+ * Used to resolve the
1810
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1811
+ * of values.
1812
+ */
1813
+ var objectToString$1 = objectProto.toString;
1814
+
1815
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1816
+ var nativeMax = Math.max,
1817
+ nativeMin = Math.min;
1818
+
1819
+ /**
1820
+ * Gets the timestamp of the number of milliseconds that have elapsed since
1821
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
1822
+ *
1823
+ * @static
1824
+ * @memberOf _
1825
+ * @since 2.4.0
1826
+ * @category Date
1827
+ * @returns {number} Returns the timestamp.
1828
+ * @example
1829
+ *
1830
+ * _.defer(function(stamp) {
1831
+ * console.log(_.now() - stamp);
1832
+ * }, _.now());
1833
+ * // => Logs the number of milliseconds it took for the deferred invocation.
1834
+ */
1835
+ var now = function() {
1836
+ return root.Date.now();
1837
+ };
1838
+
1839
+ /**
1840
+ * Creates a debounced function that delays invoking `func` until after `wait`
1841
+ * milliseconds have elapsed since the last time the debounced function was
1842
+ * invoked. The debounced function comes with a `cancel` method to cancel
1843
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
1844
+ * Provide `options` to indicate whether `func` should be invoked on the
1845
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
1846
+ * with the last arguments provided to the debounced function. Subsequent
1847
+ * calls to the debounced function return the result of the last `func`
1848
+ * invocation.
1849
+ *
1850
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
1851
+ * invoked on the trailing edge of the timeout only if the debounced function
1852
+ * is invoked more than once during the `wait` timeout.
1853
+ *
1854
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
1855
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
1856
+ *
1857
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
1858
+ * for details over the differences between `_.debounce` and `_.throttle`.
1859
+ *
1860
+ * @static
1861
+ * @memberOf _
1862
+ * @since 0.1.0
1863
+ * @category Function
1864
+ * @param {Function} func The function to debounce.
1865
+ * @param {number} [wait=0] The number of milliseconds to delay.
1866
+ * @param {Object} [options={}] The options object.
1867
+ * @param {boolean} [options.leading=false]
1868
+ * Specify invoking on the leading edge of the timeout.
1869
+ * @param {number} [options.maxWait]
1870
+ * The maximum time `func` is allowed to be delayed before it's invoked.
1871
+ * @param {boolean} [options.trailing=true]
1872
+ * Specify invoking on the trailing edge of the timeout.
1873
+ * @returns {Function} Returns the new debounced function.
1874
+ * @example
1875
+ *
1876
+ * // Avoid costly calculations while the window size is in flux.
1877
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
1878
+ *
1879
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
1880
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
1881
+ * 'leading': true,
1882
+ * 'trailing': false
1883
+ * }));
1884
+ *
1885
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
1886
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
1887
+ * var source = new EventSource('/stream');
1888
+ * jQuery(source).on('message', debounced);
1889
+ *
1890
+ * // Cancel the trailing debounced invocation.
1891
+ * jQuery(window).on('popstate', debounced.cancel);
1892
+ */
1893
+ function debounce(func, wait, options) {
1894
+ var lastArgs,
1895
+ lastThis,
1896
+ maxWait,
1897
+ result,
1898
+ timerId,
1899
+ lastCallTime,
1900
+ lastInvokeTime = 0,
1901
+ leading = false,
1902
+ maxing = false,
1903
+ trailing = true;
1904
+
1905
+ if (typeof func != 'function') {
1906
+ throw new TypeError(FUNC_ERROR_TEXT);
1907
+ }
1908
+ wait = toNumber(wait) || 0;
1909
+ if (isObject$1(options)) {
1910
+ leading = !!options.leading;
1911
+ maxing = 'maxWait' in options;
1912
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
1913
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
1914
+ }
1915
+
1916
+ function invokeFunc(time) {
1917
+ var args = lastArgs,
1918
+ thisArg = lastThis;
1919
+
1920
+ lastArgs = lastThis = undefined;
1921
+ lastInvokeTime = time;
1922
+ result = func.apply(thisArg, args);
1923
+ return result;
1924
+ }
1925
+
1926
+ function leadingEdge(time) {
1927
+ // Reset any `maxWait` timer.
1928
+ lastInvokeTime = time;
1929
+ // Start the timer for the trailing edge.
1930
+ timerId = setTimeout(timerExpired, wait);
1931
+ // Invoke the leading edge.
1932
+ return leading ? invokeFunc(time) : result;
1933
+ }
1934
+
1935
+ function remainingWait(time) {
1936
+ var timeSinceLastCall = time - lastCallTime,
1937
+ timeSinceLastInvoke = time - lastInvokeTime,
1938
+ result = wait - timeSinceLastCall;
1939
+
1940
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
1941
+ }
1942
+
1943
+ function shouldInvoke(time) {
1944
+ var timeSinceLastCall = time - lastCallTime,
1945
+ timeSinceLastInvoke = time - lastInvokeTime;
1946
+
1947
+ // Either this is the first call, activity has stopped and we're at the
1948
+ // trailing edge, the system time has gone backwards and we're treating
1949
+ // it as the trailing edge, or we've hit the `maxWait` limit.
1950
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
1951
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
1952
+ }
1953
+
1954
+ function timerExpired() {
1955
+ var time = now();
1956
+ if (shouldInvoke(time)) {
1957
+ return trailingEdge(time);
1958
+ }
1959
+ // Restart the timer.
1960
+ timerId = setTimeout(timerExpired, remainingWait(time));
1961
+ }
1962
+
1963
+ function trailingEdge(time) {
1964
+ timerId = undefined;
1965
+
1966
+ // Only invoke if we have `lastArgs` which means `func` has been
1967
+ // debounced at least once.
1968
+ if (trailing && lastArgs) {
1969
+ return invokeFunc(time);
1970
+ }
1971
+ lastArgs = lastThis = undefined;
1972
+ return result;
1973
+ }
1974
+
1975
+ function cancel() {
1976
+ if (timerId !== undefined) {
1977
+ clearTimeout(timerId);
1978
+ }
1979
+ lastInvokeTime = 0;
1980
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
1981
+ }
1982
+
1983
+ function flush() {
1984
+ return timerId === undefined ? result : trailingEdge(now());
1985
+ }
1986
+
1987
+ function debounced() {
1988
+ var time = now(),
1989
+ isInvoking = shouldInvoke(time);
1990
+
1991
+ lastArgs = arguments;
1992
+ lastThis = this;
1993
+ lastCallTime = time;
1994
+
1995
+ if (isInvoking) {
1996
+ if (timerId === undefined) {
1997
+ return leadingEdge(lastCallTime);
1998
+ }
1999
+ if (maxing) {
2000
+ // Handle invocations in a tight loop.
2001
+ timerId = setTimeout(timerExpired, wait);
2002
+ return invokeFunc(lastCallTime);
2003
+ }
2004
+ }
2005
+ if (timerId === undefined) {
2006
+ timerId = setTimeout(timerExpired, wait);
2007
+ }
2008
+ return result;
2009
+ }
2010
+ debounced.cancel = cancel;
2011
+ debounced.flush = flush;
2012
+ return debounced;
2013
+ }
2014
+
2015
+ /**
2016
+ * Creates a throttled function that only invokes `func` at most once per
2017
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
2018
+ * method to cancel delayed `func` invocations and a `flush` method to
2019
+ * immediately invoke them. Provide `options` to indicate whether `func`
2020
+ * should be invoked on the leading and/or trailing edge of the `wait`
2021
+ * timeout. The `func` is invoked with the last arguments provided to the
2022
+ * throttled function. Subsequent calls to the throttled function return the
2023
+ * result of the last `func` invocation.
2024
+ *
2025
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
2026
+ * invoked on the trailing edge of the timeout only if the throttled function
2027
+ * is invoked more than once during the `wait` timeout.
2028
+ *
2029
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2030
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2031
+ *
2032
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2033
+ * for details over the differences between `_.throttle` and `_.debounce`.
2034
+ *
2035
+ * @static
2036
+ * @memberOf _
2037
+ * @since 0.1.0
2038
+ * @category Function
2039
+ * @param {Function} func The function to throttle.
2040
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
2041
+ * @param {Object} [options={}] The options object.
2042
+ * @param {boolean} [options.leading=true]
2043
+ * Specify invoking on the leading edge of the timeout.
2044
+ * @param {boolean} [options.trailing=true]
2045
+ * Specify invoking on the trailing edge of the timeout.
2046
+ * @returns {Function} Returns the new throttled function.
2047
+ * @example
2048
+ *
2049
+ * // Avoid excessively updating the position while scrolling.
2050
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
2051
+ *
2052
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
2053
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
2054
+ * jQuery(element).on('click', throttled);
2055
+ *
2056
+ * // Cancel the trailing throttled invocation.
2057
+ * jQuery(window).on('popstate', throttled.cancel);
2058
+ */
2059
+ function throttle(func, wait, options) {
2060
+ var leading = true,
2061
+ trailing = true;
2062
+
2063
+ if (typeof func != 'function') {
2064
+ throw new TypeError(FUNC_ERROR_TEXT);
2065
+ }
2066
+ if (isObject$1(options)) {
2067
+ leading = 'leading' in options ? !!options.leading : leading;
2068
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2069
+ }
2070
+ return debounce(func, wait, {
2071
+ 'leading': leading,
2072
+ 'maxWait': wait,
2073
+ 'trailing': trailing
2074
+ });
2075
+ }
2076
+
2077
+ /**
2078
+ * Checks if `value` is the
2079
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2080
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2081
+ *
2082
+ * @static
2083
+ * @memberOf _
2084
+ * @since 0.1.0
2085
+ * @category Lang
2086
+ * @param {*} value The value to check.
2087
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2088
+ * @example
2089
+ *
2090
+ * _.isObject({});
2091
+ * // => true
2092
+ *
2093
+ * _.isObject([1, 2, 3]);
2094
+ * // => true
2095
+ *
2096
+ * _.isObject(_.noop);
2097
+ * // => true
2098
+ *
2099
+ * _.isObject(null);
2100
+ * // => false
2101
+ */
2102
+ function isObject$1(value) {
2103
+ var type = typeof value;
2104
+ return !!value && (type == 'object' || type == 'function');
2105
+ }
2106
+
2107
+ /**
2108
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2109
+ * and has a `typeof` result of "object".
2110
+ *
2111
+ * @static
2112
+ * @memberOf _
2113
+ * @since 4.0.0
2114
+ * @category Lang
2115
+ * @param {*} value The value to check.
2116
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2117
+ * @example
2118
+ *
2119
+ * _.isObjectLike({});
2120
+ * // => true
2121
+ *
2122
+ * _.isObjectLike([1, 2, 3]);
2123
+ * // => true
2124
+ *
2125
+ * _.isObjectLike(_.noop);
2126
+ * // => false
2127
+ *
2128
+ * _.isObjectLike(null);
2129
+ * // => false
2130
+ */
2131
+ function isObjectLike(value) {
2132
+ return !!value && typeof value == 'object';
2133
+ }
2134
+
2135
+ /**
2136
+ * Checks if `value` is classified as a `Symbol` primitive or object.
2137
+ *
2138
+ * @static
2139
+ * @memberOf _
2140
+ * @since 4.0.0
2141
+ * @category Lang
2142
+ * @param {*} value The value to check.
2143
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
2144
+ * @example
2145
+ *
2146
+ * _.isSymbol(Symbol.iterator);
2147
+ * // => true
2148
+ *
2149
+ * _.isSymbol('abc');
2150
+ * // => false
2151
+ */
2152
+ function isSymbol(value) {
2153
+ return typeof value == 'symbol' ||
2154
+ (isObjectLike(value) && objectToString$1.call(value) == symbolTag);
2155
+ }
2156
+
2157
+ /**
2158
+ * Converts `value` to a number.
2159
+ *
2160
+ * @static
2161
+ * @memberOf _
2162
+ * @since 4.0.0
2163
+ * @category Lang
2164
+ * @param {*} value The value to process.
2165
+ * @returns {number} Returns the number.
2166
+ * @example
2167
+ *
2168
+ * _.toNumber(3.2);
2169
+ * // => 3.2
2170
+ *
2171
+ * _.toNumber(Number.MIN_VALUE);
2172
+ * // => 5e-324
2173
+ *
2174
+ * _.toNumber(Infinity);
2175
+ * // => Infinity
2176
+ *
2177
+ * _.toNumber('3.2');
2178
+ * // => 3.2
2179
+ */
2180
+ function toNumber(value) {
2181
+ if (typeof value == 'number') {
2182
+ return value;
2183
+ }
2184
+ if (isSymbol(value)) {
2185
+ return NAN;
2186
+ }
2187
+ if (isObject$1(value)) {
2188
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
2189
+ value = isObject$1(other) ? (other + '') : other;
2190
+ }
2191
+ if (typeof value != 'string') {
2192
+ return value === 0 ? value : +value;
2193
+ }
2194
+ value = value.replace(reTrim, '');
2195
+ var isBinary = reIsBinary.test(value);
2196
+ return (isBinary || reIsOctal.test(value))
2197
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
2198
+ : (reIsBadHex.test(value) ? NAN : +value);
2199
+ }
2200
+
2201
+ var lodash_throttle = throttle;
2202
+
2203
+ /**
2204
+ * lodash (Custom Build) <https://lodash.com/>
2205
+ * Build: `lodash modularize exports="npm" -o ./`
2206
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2207
+ * Released under MIT license <https://lodash.com/license>
2208
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2209
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2210
+ */
2211
+
2212
+ /** Used as the `TypeError` message for "Functions" methods. */
2213
+ var FUNC_ERROR_TEXT$1 = 'Expected a function';
2214
+
2215
+ /** Used as references for various `Number` constants. */
2216
+ var NAN$1 = 0 / 0;
2217
+
2218
+ /** `Object#toString` result references. */
2219
+ var symbolTag$1 = '[object Symbol]';
2220
+
2221
+ /** Used to match leading and trailing whitespace. */
2222
+ var reTrim$1 = /^\s+|\s+$/g;
2223
+
2224
+ /** Used to detect bad signed hexadecimal string values. */
2225
+ var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
2226
+
2227
+ /** Used to detect binary string values. */
2228
+ var reIsBinary$1 = /^0b[01]+$/i;
2229
+
2230
+ /** Used to detect octal string values. */
2231
+ var reIsOctal$1 = /^0o[0-7]+$/i;
2232
+
2233
+ /** Built-in method references without a dependency on `root`. */
2234
+ var freeParseInt$1 = parseInt;
2235
+
2236
+ /** Detect free variable `global` from Node.js. */
2237
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2238
+
2239
+ /** Detect free variable `self`. */
2240
+ var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
2241
+
2242
+ /** Used as a reference to the global object. */
2243
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
2244
+
2245
+ /** Used for built-in method references. */
2246
+ var objectProto$1 = Object.prototype;
2247
+
2248
+ /**
2249
+ * Used to resolve the
2250
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2251
+ * of values.
2252
+ */
2253
+ var objectToString$2 = objectProto$1.toString;
2254
+
2255
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2256
+ var nativeMax$1 = Math.max,
2257
+ nativeMin$1 = Math.min;
2258
+
2259
+ /**
2260
+ * Gets the timestamp of the number of milliseconds that have elapsed since
2261
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
2262
+ *
2263
+ * @static
2264
+ * @memberOf _
2265
+ * @since 2.4.0
2266
+ * @category Date
2267
+ * @returns {number} Returns the timestamp.
2268
+ * @example
2269
+ *
2270
+ * _.defer(function(stamp) {
2271
+ * console.log(_.now() - stamp);
2272
+ * }, _.now());
2273
+ * // => Logs the number of milliseconds it took for the deferred invocation.
2274
+ */
2275
+ var now$1 = function() {
2276
+ return root$1.Date.now();
2277
+ };
2278
+
2279
+ /**
2280
+ * Creates a debounced function that delays invoking `func` until after `wait`
2281
+ * milliseconds have elapsed since the last time the debounced function was
2282
+ * invoked. The debounced function comes with a `cancel` method to cancel
2283
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
2284
+ * Provide `options` to indicate whether `func` should be invoked on the
2285
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2286
+ * with the last arguments provided to the debounced function. Subsequent
2287
+ * calls to the debounced function return the result of the last `func`
2288
+ * invocation.
2289
+ *
2290
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
2291
+ * invoked on the trailing edge of the timeout only if the debounced function
2292
+ * is invoked more than once during the `wait` timeout.
2293
+ *
2294
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2295
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2296
+ *
2297
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2298
+ * for details over the differences between `_.debounce` and `_.throttle`.
2299
+ *
2300
+ * @static
2301
+ * @memberOf _
2302
+ * @since 0.1.0
2303
+ * @category Function
2304
+ * @param {Function} func The function to debounce.
2305
+ * @param {number} [wait=0] The number of milliseconds to delay.
2306
+ * @param {Object} [options={}] The options object.
2307
+ * @param {boolean} [options.leading=false]
2308
+ * Specify invoking on the leading edge of the timeout.
2309
+ * @param {number} [options.maxWait]
2310
+ * The maximum time `func` is allowed to be delayed before it's invoked.
2311
+ * @param {boolean} [options.trailing=true]
2312
+ * Specify invoking on the trailing edge of the timeout.
2313
+ * @returns {Function} Returns the new debounced function.
2314
+ * @example
2315
+ *
2316
+ * // Avoid costly calculations while the window size is in flux.
2317
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2318
+ *
2319
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2320
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
2321
+ * 'leading': true,
2322
+ * 'trailing': false
2323
+ * }));
2324
+ *
2325
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2326
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2327
+ * var source = new EventSource('/stream');
2328
+ * jQuery(source).on('message', debounced);
2329
+ *
2330
+ * // Cancel the trailing debounced invocation.
2331
+ * jQuery(window).on('popstate', debounced.cancel);
2332
+ */
2333
+ function debounce$1(func, wait, options) {
2334
+ var lastArgs,
2335
+ lastThis,
2336
+ maxWait,
2337
+ result,
2338
+ timerId,
2339
+ lastCallTime,
2340
+ lastInvokeTime = 0,
2341
+ leading = false,
2342
+ maxing = false,
2343
+ trailing = true;
2344
+
2345
+ if (typeof func != 'function') {
2346
+ throw new TypeError(FUNC_ERROR_TEXT$1);
2347
+ }
2348
+ wait = toNumber$1(wait) || 0;
2349
+ if (isObject$2(options)) {
2350
+ leading = !!options.leading;
2351
+ maxing = 'maxWait' in options;
2352
+ maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
2353
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2354
+ }
2355
+
2356
+ function invokeFunc(time) {
2357
+ var args = lastArgs,
2358
+ thisArg = lastThis;
2359
+
2360
+ lastArgs = lastThis = undefined;
2361
+ lastInvokeTime = time;
2362
+ result = func.apply(thisArg, args);
2363
+ return result;
2364
+ }
2365
+
2366
+ function leadingEdge(time) {
2367
+ // Reset any `maxWait` timer.
2368
+ lastInvokeTime = time;
2369
+ // Start the timer for the trailing edge.
2370
+ timerId = setTimeout(timerExpired, wait);
2371
+ // Invoke the leading edge.
2372
+ return leading ? invokeFunc(time) : result;
2373
+ }
2374
+
2375
+ function remainingWait(time) {
2376
+ var timeSinceLastCall = time - lastCallTime,
2377
+ timeSinceLastInvoke = time - lastInvokeTime,
2378
+ result = wait - timeSinceLastCall;
2379
+
2380
+ return maxing ? nativeMin$1(result, maxWait - timeSinceLastInvoke) : result;
2381
+ }
2382
+
2383
+ function shouldInvoke(time) {
2384
+ var timeSinceLastCall = time - lastCallTime,
2385
+ timeSinceLastInvoke = time - lastInvokeTime;
2386
+
2387
+ // Either this is the first call, activity has stopped and we're at the
2388
+ // trailing edge, the system time has gone backwards and we're treating
2389
+ // it as the trailing edge, or we've hit the `maxWait` limit.
2390
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2391
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2392
+ }
2393
+
2394
+ function timerExpired() {
2395
+ var time = now$1();
2396
+ if (shouldInvoke(time)) {
2397
+ return trailingEdge(time);
2398
+ }
2399
+ // Restart the timer.
2400
+ timerId = setTimeout(timerExpired, remainingWait(time));
2401
+ }
2402
+
2403
+ function trailingEdge(time) {
2404
+ timerId = undefined;
2405
+
2406
+ // Only invoke if we have `lastArgs` which means `func` has been
2407
+ // debounced at least once.
2408
+ if (trailing && lastArgs) {
2409
+ return invokeFunc(time);
2410
+ }
2411
+ lastArgs = lastThis = undefined;
2412
+ return result;
2413
+ }
2414
+
2415
+ function cancel() {
2416
+ if (timerId !== undefined) {
2417
+ clearTimeout(timerId);
2418
+ }
2419
+ lastInvokeTime = 0;
2420
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
2421
+ }
2422
+
2423
+ function flush() {
2424
+ return timerId === undefined ? result : trailingEdge(now$1());
2425
+ }
2426
+
2427
+ function debounced() {
2428
+ var time = now$1(),
2429
+ isInvoking = shouldInvoke(time);
2430
+
2431
+ lastArgs = arguments;
2432
+ lastThis = this;
2433
+ lastCallTime = time;
2434
+
2435
+ if (isInvoking) {
2436
+ if (timerId === undefined) {
2437
+ return leadingEdge(lastCallTime);
2438
+ }
2439
+ if (maxing) {
2440
+ // Handle invocations in a tight loop.
2441
+ timerId = setTimeout(timerExpired, wait);
2442
+ return invokeFunc(lastCallTime);
2443
+ }
2444
+ }
2445
+ if (timerId === undefined) {
2446
+ timerId = setTimeout(timerExpired, wait);
2447
+ }
2448
+ return result;
2449
+ }
2450
+ debounced.cancel = cancel;
2451
+ debounced.flush = flush;
2452
+ return debounced;
2453
+ }
2454
+
2455
+ /**
2456
+ * Checks if `value` is the
2457
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2458
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2459
+ *
2460
+ * @static
2461
+ * @memberOf _
2462
+ * @since 0.1.0
2463
+ * @category Lang
2464
+ * @param {*} value The value to check.
2465
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2466
+ * @example
2467
+ *
2468
+ * _.isObject({});
2469
+ * // => true
2470
+ *
2471
+ * _.isObject([1, 2, 3]);
2472
+ * // => true
2473
+ *
2474
+ * _.isObject(_.noop);
2475
+ * // => true
2476
+ *
2477
+ * _.isObject(null);
2478
+ * // => false
2479
+ */
2480
+ function isObject$2(value) {
2481
+ var type = typeof value;
2482
+ return !!value && (type == 'object' || type == 'function');
2483
+ }
2484
+
2485
+ /**
2486
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2487
+ * and has a `typeof` result of "object".
2488
+ *
2489
+ * @static
2490
+ * @memberOf _
2491
+ * @since 4.0.0
2492
+ * @category Lang
2493
+ * @param {*} value The value to check.
2494
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2495
+ * @example
2496
+ *
2497
+ * _.isObjectLike({});
2498
+ * // => true
2499
+ *
2500
+ * _.isObjectLike([1, 2, 3]);
2501
+ * // => true
2502
+ *
2503
+ * _.isObjectLike(_.noop);
2504
+ * // => false
2505
+ *
2506
+ * _.isObjectLike(null);
2507
+ * // => false
2508
+ */
2509
+ function isObjectLike$1(value) {
2510
+ return !!value && typeof value == 'object';
2511
+ }
2512
+
2513
+ /**
2514
+ * Checks if `value` is classified as a `Symbol` primitive or object.
2515
+ *
2516
+ * @static
2517
+ * @memberOf _
2518
+ * @since 4.0.0
2519
+ * @category Lang
2520
+ * @param {*} value The value to check.
2521
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
2522
+ * @example
2523
+ *
2524
+ * _.isSymbol(Symbol.iterator);
2525
+ * // => true
2526
+ *
2527
+ * _.isSymbol('abc');
2528
+ * // => false
2529
+ */
2530
+ function isSymbol$1(value) {
2531
+ return typeof value == 'symbol' ||
2532
+ (isObjectLike$1(value) && objectToString$2.call(value) == symbolTag$1);
2533
+ }
2534
+
2535
+ /**
2536
+ * Converts `value` to a number.
2537
+ *
2538
+ * @static
2539
+ * @memberOf _
2540
+ * @since 4.0.0
2541
+ * @category Lang
2542
+ * @param {*} value The value to process.
2543
+ * @returns {number} Returns the number.
2544
+ * @example
2545
+ *
2546
+ * _.toNumber(3.2);
2547
+ * // => 3.2
2548
+ *
2549
+ * _.toNumber(Number.MIN_VALUE);
2550
+ * // => 5e-324
2551
+ *
2552
+ * _.toNumber(Infinity);
2553
+ * // => Infinity
2554
+ *
2555
+ * _.toNumber('3.2');
2556
+ * // => 3.2
2557
+ */
2558
+ function toNumber$1(value) {
2559
+ if (typeof value == 'number') {
2560
+ return value;
2561
+ }
2562
+ if (isSymbol$1(value)) {
2563
+ return NAN$1;
2564
+ }
2565
+ if (isObject$2(value)) {
2566
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
2567
+ value = isObject$2(other) ? (other + '') : other;
2568
+ }
2569
+ if (typeof value != 'string') {
2570
+ return value === 0 ? value : +value;
2571
+ }
2572
+ value = value.replace(reTrim$1, '');
2573
+ var isBinary = reIsBinary$1.test(value);
2574
+ return (isBinary || reIsOctal$1.test(value))
2575
+ ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8)
2576
+ : (reIsBadHex$1.test(value) ? NAN$1 : +value);
2577
+ }
2578
+
2579
+ var lodash_debounce = debounce$1;
2580
+
2581
+ /**
2582
+ * lodash (Custom Build) <https://lodash.com/>
2583
+ * Build: `lodash modularize exports="npm" -o ./`
2584
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
2585
+ * Released under MIT license <https://lodash.com/license>
2586
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2587
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2588
+ */
2589
+
2590
+ /** Used as the `TypeError` message for "Functions" methods. */
2591
+ var FUNC_ERROR_TEXT$2 = 'Expected a function';
2592
+
2593
+ /** Used to stand-in for `undefined` hash values. */
2594
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
2595
+
2596
+ /** `Object#toString` result references. */
2597
+ var funcTag = '[object Function]',
2598
+ genTag = '[object GeneratorFunction]';
2599
+
2600
+ /**
2601
+ * Used to match `RegExp`
2602
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
2603
+ */
2604
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
2605
+
2606
+ /** Used to detect host constructors (Safari). */
2607
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
2608
+
2609
+ /** Detect free variable `global` from Node.js. */
2610
+ var freeGlobal$2 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2611
+
2612
+ /** Detect free variable `self`. */
2613
+ var freeSelf$2 = typeof self == 'object' && self && self.Object === Object && self;
2614
+
2615
+ /** Used as a reference to the global object. */
2616
+ var root$2 = freeGlobal$2 || freeSelf$2 || Function('return this')();
2617
+
2618
+ /**
2619
+ * Gets the value at `key` of `object`.
2620
+ *
2621
+ * @private
2622
+ * @param {Object} [object] The object to query.
2623
+ * @param {string} key The key of the property to get.
2624
+ * @returns {*} Returns the property value.
2625
+ */
2626
+ function getValue(object, key) {
2627
+ return object == null ? undefined : object[key];
2628
+ }
2629
+
2630
+ /**
2631
+ * Checks if `value` is a host object in IE < 9.
2632
+ *
2633
+ * @private
2634
+ * @param {*} value The value to check.
2635
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
2636
+ */
2637
+ function isHostObject(value) {
2638
+ // Many host objects are `Object` objects that can coerce to strings
2639
+ // despite having improperly defined `toString` methods.
2640
+ var result = false;
2641
+ if (value != null && typeof value.toString != 'function') {
2642
+ try {
2643
+ result = !!(value + '');
2644
+ } catch (e) {}
2645
+ }
2646
+ return result;
2647
+ }
2648
+
2649
+ /** Used for built-in method references. */
2650
+ var arrayProto = Array.prototype,
2651
+ funcProto = Function.prototype,
2652
+ objectProto$2 = Object.prototype;
2653
+
2654
+ /** Used to detect overreaching core-js shims. */
2655
+ var coreJsData = root$2['__core-js_shared__'];
2656
+
2657
+ /** Used to detect methods masquerading as native. */
2658
+ var maskSrcKey = (function() {
2659
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
2660
+ return uid ? ('Symbol(src)_1.' + uid) : '';
2661
+ }());
2662
+
2663
+ /** Used to resolve the decompiled source of functions. */
2664
+ var funcToString = funcProto.toString;
2665
+
2666
+ /** Used to check objects for own properties. */
2667
+ var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
2668
+
2669
+ /**
2670
+ * Used to resolve the
2671
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2672
+ * of values.
2673
+ */
2674
+ var objectToString$3 = objectProto$2.toString;
2675
+
2676
+ /** Used to detect if a method is native. */
2677
+ var reIsNative = RegExp('^' +
2678
+ funcToString.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
2679
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
2680
+ );
2681
+
2682
+ /** Built-in value references. */
2683
+ var splice = arrayProto.splice;
2684
+
2685
+ /* Built-in method references that are verified to be native. */
2686
+ var Map$1 = getNative(root$2, 'Map'),
2687
+ nativeCreate = getNative(Object, 'create');
2688
+
2689
+ /**
2690
+ * Creates a hash object.
2691
+ *
2692
+ * @private
2693
+ * @constructor
2694
+ * @param {Array} [entries] The key-value pairs to cache.
2695
+ */
2696
+ function Hash(entries) {
2697
+ var index = -1,
2698
+ length = entries ? entries.length : 0;
2699
+
2700
+ this.clear();
2701
+ while (++index < length) {
2702
+ var entry = entries[index];
2703
+ this.set(entry[0], entry[1]);
2704
+ }
2705
+ }
2706
+
2707
+ /**
2708
+ * Removes all key-value entries from the hash.
2709
+ *
2710
+ * @private
2711
+ * @name clear
2712
+ * @memberOf Hash
2713
+ */
2714
+ function hashClear() {
2715
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
2716
+ }
2717
+
2718
+ /**
2719
+ * Removes `key` and its value from the hash.
2720
+ *
2721
+ * @private
2722
+ * @name delete
2723
+ * @memberOf Hash
2724
+ * @param {Object} hash The hash to modify.
2725
+ * @param {string} key The key of the value to remove.
2726
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2727
+ */
2728
+ function hashDelete(key) {
2729
+ return this.has(key) && delete this.__data__[key];
2730
+ }
2731
+
2732
+ /**
2733
+ * Gets the hash value for `key`.
2734
+ *
2735
+ * @private
2736
+ * @name get
2737
+ * @memberOf Hash
2738
+ * @param {string} key The key of the value to get.
2739
+ * @returns {*} Returns the entry value.
2740
+ */
2741
+ function hashGet(key) {
2742
+ var data = this.__data__;
2743
+ if (nativeCreate) {
2744
+ var result = data[key];
2745
+ return result === HASH_UNDEFINED ? undefined : result;
2746
+ }
2747
+ return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
2748
+ }
2749
+
2750
+ /**
2751
+ * Checks if a hash value for `key` exists.
2752
+ *
2753
+ * @private
2754
+ * @name has
2755
+ * @memberOf Hash
2756
+ * @param {string} key The key of the entry to check.
2757
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2758
+ */
2759
+ function hashHas(key) {
2760
+ var data = this.__data__;
2761
+ return nativeCreate ? data[key] !== undefined : hasOwnProperty$1.call(data, key);
2762
+ }
2763
+
2764
+ /**
2765
+ * Sets the hash `key` to `value`.
2766
+ *
2767
+ * @private
2768
+ * @name set
2769
+ * @memberOf Hash
2770
+ * @param {string} key The key of the value to set.
2771
+ * @param {*} value The value to set.
2772
+ * @returns {Object} Returns the hash instance.
2773
+ */
2774
+ function hashSet(key, value) {
2775
+ var data = this.__data__;
2776
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
2777
+ return this;
2778
+ }
2779
+
2780
+ // Add methods to `Hash`.
2781
+ Hash.prototype.clear = hashClear;
2782
+ Hash.prototype['delete'] = hashDelete;
2783
+ Hash.prototype.get = hashGet;
2784
+ Hash.prototype.has = hashHas;
2785
+ Hash.prototype.set = hashSet;
2786
+
2787
+ /**
2788
+ * Creates an list cache object.
2789
+ *
2790
+ * @private
2791
+ * @constructor
2792
+ * @param {Array} [entries] The key-value pairs to cache.
2793
+ */
2794
+ function ListCache(entries) {
2795
+ var index = -1,
2796
+ length = entries ? entries.length : 0;
2797
+
2798
+ this.clear();
2799
+ while (++index < length) {
2800
+ var entry = entries[index];
2801
+ this.set(entry[0], entry[1]);
2802
+ }
2803
+ }
2804
+
2805
+ /**
2806
+ * Removes all key-value entries from the list cache.
2807
+ *
2808
+ * @private
2809
+ * @name clear
2810
+ * @memberOf ListCache
2811
+ */
2812
+ function listCacheClear() {
2813
+ this.__data__ = [];
2814
+ }
2815
+
2816
+ /**
2817
+ * Removes `key` and its value from the list cache.
2818
+ *
2819
+ * @private
2820
+ * @name delete
2821
+ * @memberOf ListCache
2822
+ * @param {string} key The key of the value to remove.
2823
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2824
+ */
2825
+ function listCacheDelete(key) {
2826
+ var data = this.__data__,
2827
+ index = assocIndexOf(data, key);
2828
+
2829
+ if (index < 0) {
2830
+ return false;
2831
+ }
2832
+ var lastIndex = data.length - 1;
2833
+ if (index == lastIndex) {
2834
+ data.pop();
2835
+ } else {
2836
+ splice.call(data, index, 1);
2837
+ }
2838
+ return true;
2839
+ }
2840
+
2841
+ /**
2842
+ * Gets the list cache value for `key`.
2843
+ *
2844
+ * @private
2845
+ * @name get
2846
+ * @memberOf ListCache
2847
+ * @param {string} key The key of the value to get.
2848
+ * @returns {*} Returns the entry value.
2849
+ */
2850
+ function listCacheGet(key) {
2851
+ var data = this.__data__,
2852
+ index = assocIndexOf(data, key);
2853
+
2854
+ return index < 0 ? undefined : data[index][1];
2855
+ }
2856
+
2857
+ /**
2858
+ * Checks if a list cache value for `key` exists.
2859
+ *
2860
+ * @private
2861
+ * @name has
2862
+ * @memberOf ListCache
2863
+ * @param {string} key The key of the entry to check.
2864
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2865
+ */
2866
+ function listCacheHas(key) {
2867
+ return assocIndexOf(this.__data__, key) > -1;
2868
+ }
2869
+
2870
+ /**
2871
+ * Sets the list cache `key` to `value`.
2872
+ *
2873
+ * @private
2874
+ * @name set
2875
+ * @memberOf ListCache
2876
+ * @param {string} key The key of the value to set.
2877
+ * @param {*} value The value to set.
2878
+ * @returns {Object} Returns the list cache instance.
2879
+ */
2880
+ function listCacheSet(key, value) {
2881
+ var data = this.__data__,
2882
+ index = assocIndexOf(data, key);
2883
+
2884
+ if (index < 0) {
2885
+ data.push([key, value]);
2886
+ } else {
2887
+ data[index][1] = value;
2888
+ }
2889
+ return this;
2890
+ }
2891
+
2892
+ // Add methods to `ListCache`.
2893
+ ListCache.prototype.clear = listCacheClear;
2894
+ ListCache.prototype['delete'] = listCacheDelete;
2895
+ ListCache.prototype.get = listCacheGet;
2896
+ ListCache.prototype.has = listCacheHas;
2897
+ ListCache.prototype.set = listCacheSet;
2898
+
2899
+ /**
2900
+ * Creates a map cache object to store key-value pairs.
2901
+ *
2902
+ * @private
2903
+ * @constructor
2904
+ * @param {Array} [entries] The key-value pairs to cache.
2905
+ */
2906
+ function MapCache(entries) {
2907
+ var index = -1,
2908
+ length = entries ? entries.length : 0;
2909
+
2910
+ this.clear();
2911
+ while (++index < length) {
2912
+ var entry = entries[index];
2913
+ this.set(entry[0], entry[1]);
2914
+ }
2915
+ }
2916
+
2917
+ /**
2918
+ * Removes all key-value entries from the map.
2919
+ *
2920
+ * @private
2921
+ * @name clear
2922
+ * @memberOf MapCache
2923
+ */
2924
+ function mapCacheClear() {
2925
+ this.__data__ = {
2926
+ 'hash': new Hash,
2927
+ 'map': new (Map$1 || ListCache),
2928
+ 'string': new Hash
2929
+ };
2930
+ }
2931
+
2932
+ /**
2933
+ * Removes `key` and its value from the map.
2934
+ *
2935
+ * @private
2936
+ * @name delete
2937
+ * @memberOf MapCache
2938
+ * @param {string} key The key of the value to remove.
2939
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2940
+ */
2941
+ function mapCacheDelete(key) {
2942
+ return getMapData(this, key)['delete'](key);
2943
+ }
2944
+
2945
+ /**
2946
+ * Gets the map value for `key`.
2947
+ *
2948
+ * @private
2949
+ * @name get
2950
+ * @memberOf MapCache
2951
+ * @param {string} key The key of the value to get.
2952
+ * @returns {*} Returns the entry value.
2953
+ */
2954
+ function mapCacheGet(key) {
2955
+ return getMapData(this, key).get(key);
2956
+ }
2957
+
2958
+ /**
2959
+ * Checks if a map value for `key` exists.
2960
+ *
2961
+ * @private
2962
+ * @name has
2963
+ * @memberOf MapCache
2964
+ * @param {string} key The key of the entry to check.
2965
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2966
+ */
2967
+ function mapCacheHas(key) {
2968
+ return getMapData(this, key).has(key);
2969
+ }
2970
+
2971
+ /**
2972
+ * Sets the map `key` to `value`.
2973
+ *
2974
+ * @private
2975
+ * @name set
2976
+ * @memberOf MapCache
2977
+ * @param {string} key The key of the value to set.
2978
+ * @param {*} value The value to set.
2979
+ * @returns {Object} Returns the map cache instance.
2980
+ */
2981
+ function mapCacheSet(key, value) {
2982
+ getMapData(this, key).set(key, value);
2983
+ return this;
2984
+ }
2985
+
2986
+ // Add methods to `MapCache`.
2987
+ MapCache.prototype.clear = mapCacheClear;
2988
+ MapCache.prototype['delete'] = mapCacheDelete;
2989
+ MapCache.prototype.get = mapCacheGet;
2990
+ MapCache.prototype.has = mapCacheHas;
2991
+ MapCache.prototype.set = mapCacheSet;
2992
+
2993
+ /**
2994
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
2995
+ *
2996
+ * @private
2997
+ * @param {Array} array The array to inspect.
2998
+ * @param {*} key The key to search for.
2999
+ * @returns {number} Returns the index of the matched value, else `-1`.
3000
+ */
3001
+ function assocIndexOf(array, key) {
3002
+ var length = array.length;
3003
+ while (length--) {
3004
+ if (eq(array[length][0], key)) {
3005
+ return length;
3006
+ }
3007
+ }
3008
+ return -1;
3009
+ }
3010
+
3011
+ /**
3012
+ * The base implementation of `_.isNative` without bad shim checks.
3013
+ *
3014
+ * @private
3015
+ * @param {*} value The value to check.
3016
+ * @returns {boolean} Returns `true` if `value` is a native function,
3017
+ * else `false`.
3018
+ */
3019
+ function baseIsNative(value) {
3020
+ if (!isObject$3(value) || isMasked(value)) {
3021
+ return false;
3022
+ }
3023
+ var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
3024
+ return pattern.test(toSource(value));
3025
+ }
3026
+
3027
+ /**
3028
+ * Gets the data for `map`.
3029
+ *
3030
+ * @private
3031
+ * @param {Object} map The map to query.
3032
+ * @param {string} key The reference key.
3033
+ * @returns {*} Returns the map data.
3034
+ */
3035
+ function getMapData(map, key) {
3036
+ var data = map.__data__;
3037
+ return isKeyable(key)
3038
+ ? data[typeof key == 'string' ? 'string' : 'hash']
3039
+ : data.map;
3040
+ }
3041
+
3042
+ /**
3043
+ * Gets the native function at `key` of `object`.
3044
+ *
3045
+ * @private
3046
+ * @param {Object} object The object to query.
3047
+ * @param {string} key The key of the method to get.
3048
+ * @returns {*} Returns the function if it's native, else `undefined`.
3049
+ */
3050
+ function getNative(object, key) {
3051
+ var value = getValue(object, key);
3052
+ return baseIsNative(value) ? value : undefined;
3053
+ }
3054
+
3055
+ /**
3056
+ * Checks if `value` is suitable for use as unique object key.
3057
+ *
3058
+ * @private
3059
+ * @param {*} value The value to check.
3060
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
3061
+ */
3062
+ function isKeyable(value) {
3063
+ var type = typeof value;
3064
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
3065
+ ? (value !== '__proto__')
3066
+ : (value === null);
3067
+ }
3068
+
3069
+ /**
3070
+ * Checks if `func` has its source masked.
3071
+ *
3072
+ * @private
3073
+ * @param {Function} func The function to check.
3074
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
3075
+ */
3076
+ function isMasked(func) {
3077
+ return !!maskSrcKey && (maskSrcKey in func);
3078
+ }
3079
+
3080
+ /**
3081
+ * Converts `func` to its source code.
3082
+ *
3083
+ * @private
3084
+ * @param {Function} func The function to process.
3085
+ * @returns {string} Returns the source code.
3086
+ */
3087
+ function toSource(func) {
3088
+ if (func != null) {
3089
+ try {
3090
+ return funcToString.call(func);
3091
+ } catch (e) {}
3092
+ try {
3093
+ return (func + '');
3094
+ } catch (e) {}
3095
+ }
3096
+ return '';
3097
+ }
3098
+
3099
+ /**
3100
+ * Creates a function that memoizes the result of `func`. If `resolver` is
3101
+ * provided, it determines the cache key for storing the result based on the
3102
+ * arguments provided to the memoized function. By default, the first argument
3103
+ * provided to the memoized function is used as the map cache key. The `func`
3104
+ * is invoked with the `this` binding of the memoized function.
3105
+ *
3106
+ * **Note:** The cache is exposed as the `cache` property on the memoized
3107
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
3108
+ * constructor with one whose instances implement the
3109
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
3110
+ * method interface of `delete`, `get`, `has`, and `set`.
3111
+ *
3112
+ * @static
3113
+ * @memberOf _
3114
+ * @since 0.1.0
3115
+ * @category Function
3116
+ * @param {Function} func The function to have its output memoized.
3117
+ * @param {Function} [resolver] The function to resolve the cache key.
3118
+ * @returns {Function} Returns the new memoized function.
3119
+ * @example
3120
+ *
3121
+ * var object = { 'a': 1, 'b': 2 };
3122
+ * var other = { 'c': 3, 'd': 4 };
3123
+ *
3124
+ * var values = _.memoize(_.values);
3125
+ * values(object);
3126
+ * // => [1, 2]
3127
+ *
3128
+ * values(other);
3129
+ * // => [3, 4]
3130
+ *
3131
+ * object.a = 2;
3132
+ * values(object);
3133
+ * // => [1, 2]
3134
+ *
3135
+ * // Modify the result cache.
3136
+ * values.cache.set(object, ['a', 'b']);
3137
+ * values(object);
3138
+ * // => ['a', 'b']
3139
+ *
3140
+ * // Replace `_.memoize.Cache`.
3141
+ * _.memoize.Cache = WeakMap;
3142
+ */
3143
+ function memoize(func, resolver) {
3144
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
3145
+ throw new TypeError(FUNC_ERROR_TEXT$2);
3146
+ }
3147
+ var memoized = function() {
3148
+ var args = arguments,
3149
+ key = resolver ? resolver.apply(this, args) : args[0],
3150
+ cache = memoized.cache;
3151
+
3152
+ if (cache.has(key)) {
3153
+ return cache.get(key);
3154
+ }
3155
+ var result = func.apply(this, args);
3156
+ memoized.cache = cache.set(key, result);
3157
+ return result;
3158
+ };
3159
+ memoized.cache = new (memoize.Cache || MapCache);
3160
+ return memoized;
3161
+ }
3162
+
3163
+ // Assign cache to `_.memoize`.
3164
+ memoize.Cache = MapCache;
3165
+
3166
+ /**
3167
+ * Performs a
3168
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3169
+ * comparison between two values to determine if they are equivalent.
3170
+ *
3171
+ * @static
3172
+ * @memberOf _
3173
+ * @since 4.0.0
3174
+ * @category Lang
3175
+ * @param {*} value The value to compare.
3176
+ * @param {*} other The other value to compare.
3177
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3178
+ * @example
3179
+ *
3180
+ * var object = { 'a': 1 };
3181
+ * var other = { 'a': 1 };
3182
+ *
3183
+ * _.eq(object, object);
3184
+ * // => true
3185
+ *
3186
+ * _.eq(object, other);
3187
+ * // => false
3188
+ *
3189
+ * _.eq('a', 'a');
3190
+ * // => true
3191
+ *
3192
+ * _.eq('a', Object('a'));
3193
+ * // => false
3194
+ *
3195
+ * _.eq(NaN, NaN);
3196
+ * // => true
3197
+ */
3198
+ function eq(value, other) {
3199
+ return value === other || (value !== value && other !== other);
3200
+ }
3201
+
3202
+ /**
3203
+ * Checks if `value` is classified as a `Function` object.
3204
+ *
3205
+ * @static
3206
+ * @memberOf _
3207
+ * @since 0.1.0
3208
+ * @category Lang
3209
+ * @param {*} value The value to check.
3210
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
3211
+ * @example
3212
+ *
3213
+ * _.isFunction(_);
3214
+ * // => true
3215
+ *
3216
+ * _.isFunction(/abc/);
3217
+ * // => false
3218
+ */
3219
+ function isFunction(value) {
3220
+ // The use of `Object#toString` avoids issues with the `typeof` operator
3221
+ // in Safari 8-9 which returns 'object' for typed array and other constructors.
3222
+ var tag = isObject$3(value) ? objectToString$3.call(value) : '';
3223
+ return tag == funcTag || tag == genTag;
3224
+ }
3225
+
3226
+ /**
3227
+ * Checks if `value` is the
3228
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
3229
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
3230
+ *
3231
+ * @static
3232
+ * @memberOf _
3233
+ * @since 0.1.0
3234
+ * @category Lang
3235
+ * @param {*} value The value to check.
3236
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
3237
+ * @example
3238
+ *
3239
+ * _.isObject({});
3240
+ * // => true
3241
+ *
3242
+ * _.isObject([1, 2, 3]);
3243
+ * // => true
3244
+ *
3245
+ * _.isObject(_.noop);
3246
+ * // => true
3247
+ *
3248
+ * _.isObject(null);
3249
+ * // => false
3250
+ */
3251
+ function isObject$3(value) {
3252
+ var type = typeof value;
3253
+ return !!value && (type == 'object' || type == 'function');
3254
+ }
3255
+
3256
+ var lodash_memoize = memoize;
3257
+
3258
+ /**
3259
+ * A collection of shims that provide minimal functionality of the ES6 collections.
3260
+ *
3261
+ * These implementations are not meant to be used outside of the ResizeObserver
3262
+ * modules as they cover only a limited range of use cases.
3263
+ */
3264
+ /* eslint-disable require-jsdoc, valid-jsdoc */
3265
+ var MapShim = (function () {
3266
+ if (typeof Map !== 'undefined') {
3267
+ return Map;
3268
+ }
3269
+ /**
3270
+ * Returns index in provided array that matches the specified key.
3271
+ *
3272
+ * @param {Array<Array>} arr
3273
+ * @param {*} key
3274
+ * @returns {number}
3275
+ */
3276
+ function getIndex(arr, key) {
3277
+ var result = -1;
3278
+ arr.some(function (entry, index) {
3279
+ if (entry[0] === key) {
3280
+ result = index;
3281
+ return true;
3282
+ }
3283
+ return false;
3284
+ });
3285
+ return result;
3286
+ }
3287
+ return /** @class */ (function () {
3288
+ function class_1() {
3289
+ this.__entries__ = [];
3290
+ }
3291
+ Object.defineProperty(class_1.prototype, "size", {
3292
+ /**
3293
+ * @returns {boolean}
3294
+ */
3295
+ get: function () {
3296
+ return this.__entries__.length;
3297
+ },
3298
+ enumerable: true,
3299
+ configurable: true
3300
+ });
3301
+ /**
3302
+ * @param {*} key
3303
+ * @returns {*}
3304
+ */
3305
+ class_1.prototype.get = function (key) {
3306
+ var index = getIndex(this.__entries__, key);
3307
+ var entry = this.__entries__[index];
3308
+ return entry && entry[1];
3309
+ };
3310
+ /**
3311
+ * @param {*} key
3312
+ * @param {*} value
3313
+ * @returns {void}
3314
+ */
3315
+ class_1.prototype.set = function (key, value) {
3316
+ var index = getIndex(this.__entries__, key);
3317
+ if (~index) {
3318
+ this.__entries__[index][1] = value;
3319
+ }
3320
+ else {
3321
+ this.__entries__.push([key, value]);
3322
+ }
3323
+ };
3324
+ /**
3325
+ * @param {*} key
3326
+ * @returns {void}
3327
+ */
3328
+ class_1.prototype.delete = function (key) {
3329
+ var entries = this.__entries__;
3330
+ var index = getIndex(entries, key);
3331
+ if (~index) {
3332
+ entries.splice(index, 1);
3333
+ }
3334
+ };
3335
+ /**
3336
+ * @param {*} key
3337
+ * @returns {void}
3338
+ */
3339
+ class_1.prototype.has = function (key) {
3340
+ return !!~getIndex(this.__entries__, key);
3341
+ };
3342
+ /**
3343
+ * @returns {void}
3344
+ */
3345
+ class_1.prototype.clear = function () {
3346
+ this.__entries__.splice(0);
3347
+ };
3348
+ /**
3349
+ * @param {Function} callback
3350
+ * @param {*} [ctx=null]
3351
+ * @returns {void}
3352
+ */
3353
+ class_1.prototype.forEach = function (callback, ctx) {
3354
+ if (ctx === void 0) { ctx = null; }
3355
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
3356
+ var entry = _a[_i];
3357
+ callback.call(ctx, entry[1], entry[0]);
3358
+ }
3359
+ };
3360
+ return class_1;
3361
+ }());
3362
+ })();
3363
+
3364
+ /**
3365
+ * Detects whether window and document objects are available in current environment.
3366
+ */
3367
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
3368
+
3369
+ // Returns global object of a current environment.
3370
+ var global$1 = (function () {
3371
+ if (typeof global !== 'undefined' && global.Math === Math) {
3372
+ return global;
3373
+ }
3374
+ if (typeof self !== 'undefined' && self.Math === Math) {
3375
+ return self;
3376
+ }
3377
+ if (typeof window !== 'undefined' && window.Math === Math) {
3378
+ return window;
3379
+ }
3380
+ // eslint-disable-next-line no-new-func
3381
+ return Function('return this')();
3382
+ })();
3383
+
3384
+ /**
3385
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
3386
+ * first one is not supported.
3387
+ *
3388
+ * @returns {number} Requests' identifier.
3389
+ */
3390
+ var requestAnimationFrame$1 = (function () {
3391
+ if (typeof requestAnimationFrame === 'function') {
3392
+ // It's required to use a bounded function because IE sometimes throws
3393
+ // an "Invalid calling object" error if rAF is invoked without the global
3394
+ // object on the left hand side.
3395
+ return requestAnimationFrame.bind(global$1);
3396
+ }
3397
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
3398
+ })();
3399
+
3400
+ // Defines minimum timeout before adding a trailing call.
3401
+ var trailingTimeout = 2;
3402
+ /**
3403
+ * Creates a wrapper function which ensures that provided callback will be
3404
+ * invoked only once during the specified delay period.
3405
+ *
3406
+ * @param {Function} callback - Function to be invoked after the delay period.
3407
+ * @param {number} delay - Delay after which to invoke callback.
3408
+ * @returns {Function}
3409
+ */
3410
+ function throttle$1 (callback, delay) {
3411
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
3412
+ /**
3413
+ * Invokes the original callback function and schedules new invocation if
3414
+ * the "proxy" was called during current request.
3415
+ *
3416
+ * @returns {void}
3417
+ */
3418
+ function resolvePending() {
3419
+ if (leadingCall) {
3420
+ leadingCall = false;
3421
+ callback();
3422
+ }
3423
+ if (trailingCall) {
3424
+ proxy();
3425
+ }
3426
+ }
3427
+ /**
3428
+ * Callback invoked after the specified delay. It will further postpone
3429
+ * invocation of the original function delegating it to the
3430
+ * requestAnimationFrame.
3431
+ *
3432
+ * @returns {void}
3433
+ */
3434
+ function timeoutCallback() {
3435
+ requestAnimationFrame$1(resolvePending);
3436
+ }
3437
+ /**
3438
+ * Schedules invocation of the original function.
3439
+ *
3440
+ * @returns {void}
3441
+ */
3442
+ function proxy() {
3443
+ var timeStamp = Date.now();
3444
+ if (leadingCall) {
3445
+ // Reject immediately following calls.
3446
+ if (timeStamp - lastCallTime < trailingTimeout) {
3447
+ return;
3448
+ }
3449
+ // Schedule new call to be in invoked when the pending one is resolved.
3450
+ // This is important for "transitions" which never actually start
3451
+ // immediately so there is a chance that we might miss one if change
3452
+ // happens amids the pending invocation.
3453
+ trailingCall = true;
3454
+ }
3455
+ else {
3456
+ leadingCall = true;
3457
+ trailingCall = false;
3458
+ setTimeout(timeoutCallback, delay);
3459
+ }
3460
+ lastCallTime = timeStamp;
3461
+ }
3462
+ return proxy;
3463
+ }
3464
+
3465
+ // Minimum delay before invoking the update of observers.
3466
+ var REFRESH_DELAY = 20;
3467
+ // A list of substrings of CSS properties used to find transition events that
3468
+ // might affect dimensions of observed elements.
3469
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
3470
+ // Check if MutationObserver is available.
3471
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
3472
+ /**
3473
+ * Singleton controller class which handles updates of ResizeObserver instances.
3474
+ */
3475
+ var ResizeObserverController = /** @class */ (function () {
3476
+ /**
3477
+ * Creates a new instance of ResizeObserverController.
3478
+ *
3479
+ * @private
3480
+ */
3481
+ function ResizeObserverController() {
3482
+ /**
3483
+ * Indicates whether DOM listeners have been added.
3484
+ *
3485
+ * @private {boolean}
3486
+ */
3487
+ this.connected_ = false;
3488
+ /**
3489
+ * Tells that controller has subscribed for Mutation Events.
3490
+ *
3491
+ * @private {boolean}
3492
+ */
3493
+ this.mutationEventsAdded_ = false;
3494
+ /**
3495
+ * Keeps reference to the instance of MutationObserver.
3496
+ *
3497
+ * @private {MutationObserver}
3498
+ */
3499
+ this.mutationsObserver_ = null;
3500
+ /**
3501
+ * A list of connected observers.
3502
+ *
3503
+ * @private {Array<ResizeObserverSPI>}
3504
+ */
3505
+ this.observers_ = [];
3506
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
3507
+ this.refresh = throttle$1(this.refresh.bind(this), REFRESH_DELAY);
3508
+ }
3509
+ /**
3510
+ * Adds observer to observers list.
3511
+ *
3512
+ * @param {ResizeObserverSPI} observer - Observer to be added.
3513
+ * @returns {void}
3514
+ */
3515
+ ResizeObserverController.prototype.addObserver = function (observer) {
3516
+ if (!~this.observers_.indexOf(observer)) {
3517
+ this.observers_.push(observer);
3518
+ }
3519
+ // Add listeners if they haven't been added yet.
3520
+ if (!this.connected_) {
3521
+ this.connect_();
3522
+ }
3523
+ };
3524
+ /**
3525
+ * Removes observer from observers list.
3526
+ *
3527
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
3528
+ * @returns {void}
3529
+ */
3530
+ ResizeObserverController.prototype.removeObserver = function (observer) {
3531
+ var observers = this.observers_;
3532
+ var index = observers.indexOf(observer);
3533
+ // Remove observer if it's present in registry.
3534
+ if (~index) {
3535
+ observers.splice(index, 1);
3536
+ }
3537
+ // Remove listeners if controller has no connected observers.
3538
+ if (!observers.length && this.connected_) {
3539
+ this.disconnect_();
3540
+ }
3541
+ };
3542
+ /**
3543
+ * Invokes the update of observers. It will continue running updates insofar
3544
+ * it detects changes.
3545
+ *
3546
+ * @returns {void}
3547
+ */
3548
+ ResizeObserverController.prototype.refresh = function () {
3549
+ var changesDetected = this.updateObservers_();
3550
+ // Continue running updates if changes have been detected as there might
3551
+ // be future ones caused by CSS transitions.
3552
+ if (changesDetected) {
3553
+ this.refresh();
3554
+ }
3555
+ };
3556
+ /**
3557
+ * Updates every observer from observers list and notifies them of queued
3558
+ * entries.
3559
+ *
3560
+ * @private
3561
+ * @returns {boolean} Returns "true" if any observer has detected changes in
3562
+ * dimensions of it's elements.
3563
+ */
3564
+ ResizeObserverController.prototype.updateObservers_ = function () {
3565
+ // Collect observers that have active observations.
3566
+ var activeObservers = this.observers_.filter(function (observer) {
3567
+ return observer.gatherActive(), observer.hasActive();
3568
+ });
3569
+ // Deliver notifications in a separate cycle in order to avoid any
3570
+ // collisions between observers, e.g. when multiple instances of
3571
+ // ResizeObserver are tracking the same element and the callback of one
3572
+ // of them changes content dimensions of the observed target. Sometimes
3573
+ // this may result in notifications being blocked for the rest of observers.
3574
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
3575
+ return activeObservers.length > 0;
3576
+ };
3577
+ /**
3578
+ * Initializes DOM listeners.
3579
+ *
3580
+ * @private
3581
+ * @returns {void}
3582
+ */
3583
+ ResizeObserverController.prototype.connect_ = function () {
3584
+ // Do nothing if running in a non-browser environment or if listeners
3585
+ // have been already added.
3586
+ if (!isBrowser || this.connected_) {
3587
+ return;
3588
+ }
3589
+ // Subscription to the "Transitionend" event is used as a workaround for
3590
+ // delayed transitions. This way it's possible to capture at least the
3591
+ // final state of an element.
3592
+ document.addEventListener('transitionend', this.onTransitionEnd_);
3593
+ window.addEventListener('resize', this.refresh);
3594
+ if (mutationObserverSupported) {
3595
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
3596
+ this.mutationsObserver_.observe(document, {
3597
+ attributes: true,
3598
+ childList: true,
3599
+ characterData: true,
3600
+ subtree: true
3601
+ });
3602
+ }
3603
+ else {
3604
+ document.addEventListener('DOMSubtreeModified', this.refresh);
3605
+ this.mutationEventsAdded_ = true;
3606
+ }
3607
+ this.connected_ = true;
3608
+ };
3609
+ /**
3610
+ * Removes DOM listeners.
3611
+ *
3612
+ * @private
3613
+ * @returns {void}
3614
+ */
3615
+ ResizeObserverController.prototype.disconnect_ = function () {
3616
+ // Do nothing if running in a non-browser environment or if listeners
3617
+ // have been already removed.
3618
+ if (!isBrowser || !this.connected_) {
3619
+ return;
3620
+ }
3621
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
3622
+ window.removeEventListener('resize', this.refresh);
3623
+ if (this.mutationsObserver_) {
3624
+ this.mutationsObserver_.disconnect();
3625
+ }
3626
+ if (this.mutationEventsAdded_) {
3627
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
3628
+ }
3629
+ this.mutationsObserver_ = null;
3630
+ this.mutationEventsAdded_ = false;
3631
+ this.connected_ = false;
3632
+ };
3633
+ /**
3634
+ * "Transitionend" event handler.
3635
+ *
3636
+ * @private
3637
+ * @param {TransitionEvent} event
3638
+ * @returns {void}
3639
+ */
3640
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
3641
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
3642
+ // Detect whether transition may affect dimensions of an element.
3643
+ var isReflowProperty = transitionKeys.some(function (key) {
3644
+ return !!~propertyName.indexOf(key);
3645
+ });
3646
+ if (isReflowProperty) {
3647
+ this.refresh();
3648
+ }
3649
+ };
3650
+ /**
3651
+ * Returns instance of the ResizeObserverController.
3652
+ *
3653
+ * @returns {ResizeObserverController}
3654
+ */
3655
+ ResizeObserverController.getInstance = function () {
3656
+ if (!this.instance_) {
3657
+ this.instance_ = new ResizeObserverController();
3658
+ }
3659
+ return this.instance_;
3660
+ };
3661
+ /**
3662
+ * Holds reference to the controller's instance.
3663
+ *
3664
+ * @private {ResizeObserverController}
3665
+ */
3666
+ ResizeObserverController.instance_ = null;
3667
+ return ResizeObserverController;
3668
+ }());
3669
+
3670
+ /**
3671
+ * Defines non-writable/enumerable properties of the provided target object.
3672
+ *
3673
+ * @param {Object} target - Object for which to define properties.
3674
+ * @param {Object} props - Properties to be defined.
3675
+ * @returns {Object} Target object.
3676
+ */
3677
+ var defineConfigurable = (function (target, props) {
3678
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
3679
+ var key = _a[_i];
3680
+ Object.defineProperty(target, key, {
3681
+ value: props[key],
3682
+ enumerable: false,
3683
+ writable: false,
3684
+ configurable: true
3685
+ });
3686
+ }
3687
+ return target;
3688
+ });
3689
+
3690
+ /**
3691
+ * Returns the global object associated with provided element.
3692
+ *
3693
+ * @param {Object} target
3694
+ * @returns {Object}
3695
+ */
3696
+ var getWindowOf = (function (target) {
3697
+ // Assume that the element is an instance of Node, which means that it
3698
+ // has the "ownerDocument" property from which we can retrieve a
3699
+ // corresponding global object.
3700
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
3701
+ // Return the local global object if it's not possible extract one from
3702
+ // provided element.
3703
+ return ownerGlobal || global$1;
3704
+ });
3705
+
3706
+ // Placeholder of an empty content rectangle.
3707
+ var emptyRect = createRectInit(0, 0, 0, 0);
3708
+ /**
3709
+ * Converts provided string to a number.
3710
+ *
3711
+ * @param {number|string} value
3712
+ * @returns {number}
3713
+ */
3714
+ function toFloat(value) {
3715
+ return parseFloat(value) || 0;
3716
+ }
3717
+ /**
3718
+ * Extracts borders size from provided styles.
3719
+ *
3720
+ * @param {CSSStyleDeclaration} styles
3721
+ * @param {...string} positions - Borders positions (top, right, ...)
3722
+ * @returns {number}
3723
+ */
3724
+ function getBordersSize(styles) {
3725
+ var positions = [];
3726
+ for (var _i = 1; _i < arguments.length; _i++) {
3727
+ positions[_i - 1] = arguments[_i];
3728
+ }
3729
+ return positions.reduce(function (size, position) {
3730
+ var value = styles['border-' + position + '-width'];
3731
+ return size + toFloat(value);
3732
+ }, 0);
3733
+ }
3734
+ /**
3735
+ * Extracts paddings sizes from provided styles.
3736
+ *
3737
+ * @param {CSSStyleDeclaration} styles
3738
+ * @returns {Object} Paddings box.
3739
+ */
3740
+ function getPaddings(styles) {
3741
+ var positions = ['top', 'right', 'bottom', 'left'];
3742
+ var paddings = {};
3743
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
3744
+ var position = positions_1[_i];
3745
+ var value = styles['padding-' + position];
3746
+ paddings[position] = toFloat(value);
3747
+ }
3748
+ return paddings;
3749
+ }
3750
+ /**
3751
+ * Calculates content rectangle of provided SVG element.
3752
+ *
3753
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
3754
+ * to be calculated.
3755
+ * @returns {DOMRectInit}
3756
+ */
3757
+ function getSVGContentRect(target) {
3758
+ var bbox = target.getBBox();
3759
+ return createRectInit(0, 0, bbox.width, bbox.height);
3760
+ }
3761
+ /**
3762
+ * Calculates content rectangle of provided HTMLElement.
3763
+ *
3764
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
3765
+ * @returns {DOMRectInit}
3766
+ */
3767
+ function getHTMLElementContentRect(target) {
3768
+ // Client width & height properties can't be
3769
+ // used exclusively as they provide rounded values.
3770
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
3771
+ // By this condition we can catch all non-replaced inline, hidden and
3772
+ // detached elements. Though elements with width & height properties less
3773
+ // than 0.5 will be discarded as well.
3774
+ //
3775
+ // Without it we would need to implement separate methods for each of
3776
+ // those cases and it's not possible to perform a precise and performance
3777
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
3778
+ // gives wrong results for elements with width & height less than 0.5.
3779
+ if (!clientWidth && !clientHeight) {
3780
+ return emptyRect;
3781
+ }
3782
+ var styles = getWindowOf(target).getComputedStyle(target);
3783
+ var paddings = getPaddings(styles);
3784
+ var horizPad = paddings.left + paddings.right;
3785
+ var vertPad = paddings.top + paddings.bottom;
3786
+ // Computed styles of width & height are being used because they are the
3787
+ // only dimensions available to JS that contain non-rounded values. It could
3788
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
3789
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
3790
+ var width = toFloat(styles.width), height = toFloat(styles.height);
3791
+ // Width & height include paddings and borders when the 'border-box' box
3792
+ // model is applied (except for IE).
3793
+ if (styles.boxSizing === 'border-box') {
3794
+ // Following conditions are required to handle Internet Explorer which
3795
+ // doesn't include paddings and borders to computed CSS dimensions.
3796
+ //
3797
+ // We can say that if CSS dimensions + paddings are equal to the "client"
3798
+ // properties then it's either IE, and thus we don't need to subtract
3799
+ // anything, or an element merely doesn't have paddings/borders styles.
3800
+ if (Math.round(width + horizPad) !== clientWidth) {
3801
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
3802
+ }
3803
+ if (Math.round(height + vertPad) !== clientHeight) {
3804
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
3805
+ }
3806
+ }
3807
+ // Following steps can't be applied to the document's root element as its
3808
+ // client[Width/Height] properties represent viewport area of the window.
3809
+ // Besides, it's as well not necessary as the <html> itself neither has
3810
+ // rendered scroll bars nor it can be clipped.
3811
+ if (!isDocumentElement(target)) {
3812
+ // In some browsers (only in Firefox, actually) CSS width & height
3813
+ // include scroll bars size which can be removed at this step as scroll
3814
+ // bars are the only difference between rounded dimensions + paddings
3815
+ // and "client" properties, though that is not always true in Chrome.
3816
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
3817
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
3818
+ // Chrome has a rather weird rounding of "client" properties.
3819
+ // E.g. for an element with content width of 314.2px it sometimes gives
3820
+ // the client width of 315px and for the width of 314.7px it may give
3821
+ // 314px. And it doesn't happen all the time. So just ignore this delta
3822
+ // as a non-relevant.
3823
+ if (Math.abs(vertScrollbar) !== 1) {
3824
+ width -= vertScrollbar;
3825
+ }
3826
+ if (Math.abs(horizScrollbar) !== 1) {
3827
+ height -= horizScrollbar;
3828
+ }
3829
+ }
3830
+ return createRectInit(paddings.left, paddings.top, width, height);
3831
+ }
3832
+ /**
3833
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
3834
+ *
3835
+ * @param {Element} target - Element to be checked.
3836
+ * @returns {boolean}
3837
+ */
3838
+ var isSVGGraphicsElement = (function () {
3839
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
3840
+ // interface.
3841
+ if (typeof SVGGraphicsElement !== 'undefined') {
3842
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
3843
+ }
3844
+ // If it's so, then check that element is at least an instance of the
3845
+ // SVGElement and that it has the "getBBox" method.
3846
+ // eslint-disable-next-line no-extra-parens
3847
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
3848
+ typeof target.getBBox === 'function'); };
3849
+ })();
3850
+ /**
3851
+ * Checks whether provided element is a document element (<html>).
3852
+ *
3853
+ * @param {Element} target - Element to be checked.
3854
+ * @returns {boolean}
3855
+ */
3856
+ function isDocumentElement(target) {
3857
+ return target === getWindowOf(target).document.documentElement;
3858
+ }
3859
+ /**
3860
+ * Calculates an appropriate content rectangle for provided html or svg element.
3861
+ *
3862
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
3863
+ * @returns {DOMRectInit}
3864
+ */
3865
+ function getContentRect(target) {
3866
+ if (!isBrowser) {
3867
+ return emptyRect;
3868
+ }
3869
+ if (isSVGGraphicsElement(target)) {
3870
+ return getSVGContentRect(target);
3871
+ }
3872
+ return getHTMLElementContentRect(target);
3873
+ }
3874
+ /**
3875
+ * Creates rectangle with an interface of the DOMRectReadOnly.
3876
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
3877
+ *
3878
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
3879
+ * @returns {DOMRectReadOnly}
3880
+ */
3881
+ function createReadOnlyRect(_a) {
3882
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
3883
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
3884
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
3885
+ var rect = Object.create(Constr.prototype);
3886
+ // Rectangle's properties are not writable and non-enumerable.
3887
+ defineConfigurable(rect, {
3888
+ x: x, y: y, width: width, height: height,
3889
+ top: y,
3890
+ right: x + width,
3891
+ bottom: height + y,
3892
+ left: x
3893
+ });
3894
+ return rect;
3895
+ }
3896
+ /**
3897
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
3898
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
3899
+ *
3900
+ * @param {number} x - X coordinate.
3901
+ * @param {number} y - Y coordinate.
3902
+ * @param {number} width - Rectangle's width.
3903
+ * @param {number} height - Rectangle's height.
3904
+ * @returns {DOMRectInit}
3905
+ */
3906
+ function createRectInit(x, y, width, height) {
3907
+ return { x: x, y: y, width: width, height: height };
3908
+ }
3909
+
3910
+ /**
3911
+ * Class that is responsible for computations of the content rectangle of
3912
+ * provided DOM element and for keeping track of it's changes.
3913
+ */
3914
+ var ResizeObservation = /** @class */ (function () {
3915
+ /**
3916
+ * Creates an instance of ResizeObservation.
3917
+ *
3918
+ * @param {Element} target - Element to be observed.
3919
+ */
3920
+ function ResizeObservation(target) {
3921
+ /**
3922
+ * Broadcasted width of content rectangle.
3923
+ *
3924
+ * @type {number}
3925
+ */
3926
+ this.broadcastWidth = 0;
3927
+ /**
3928
+ * Broadcasted height of content rectangle.
3929
+ *
3930
+ * @type {number}
3931
+ */
3932
+ this.broadcastHeight = 0;
3933
+ /**
3934
+ * Reference to the last observed content rectangle.
3935
+ *
3936
+ * @private {DOMRectInit}
3937
+ */
3938
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
3939
+ this.target = target;
3940
+ }
3941
+ /**
3942
+ * Updates content rectangle and tells whether it's width or height properties
3943
+ * have changed since the last broadcast.
3944
+ *
3945
+ * @returns {boolean}
3946
+ */
3947
+ ResizeObservation.prototype.isActive = function () {
3948
+ var rect = getContentRect(this.target);
3949
+ this.contentRect_ = rect;
3950
+ return (rect.width !== this.broadcastWidth ||
3951
+ rect.height !== this.broadcastHeight);
3952
+ };
3953
+ /**
3954
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
3955
+ * from the corresponding properties of the last observed content rectangle.
3956
+ *
3957
+ * @returns {DOMRectInit} Last observed content rectangle.
3958
+ */
3959
+ ResizeObservation.prototype.broadcastRect = function () {
3960
+ var rect = this.contentRect_;
3961
+ this.broadcastWidth = rect.width;
3962
+ this.broadcastHeight = rect.height;
3963
+ return rect;
3964
+ };
3965
+ return ResizeObservation;
3966
+ }());
3967
+
3968
+ var ResizeObserverEntry = /** @class */ (function () {
3969
+ /**
3970
+ * Creates an instance of ResizeObserverEntry.
3971
+ *
3972
+ * @param {Element} target - Element that is being observed.
3973
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
3974
+ */
3975
+ function ResizeObserverEntry(target, rectInit) {
3976
+ var contentRect = createReadOnlyRect(rectInit);
3977
+ // According to the specification following properties are not writable
3978
+ // and are also not enumerable in the native implementation.
3979
+ //
3980
+ // Property accessors are not being used as they'd require to define a
3981
+ // private WeakMap storage which may cause memory leaks in browsers that
3982
+ // don't support this type of collections.
3983
+ defineConfigurable(this, { target: target, contentRect: contentRect });
3984
+ }
3985
+ return ResizeObserverEntry;
3986
+ }());
3987
+
3988
+ var ResizeObserverSPI = /** @class */ (function () {
3989
+ /**
3990
+ * Creates a new instance of ResizeObserver.
3991
+ *
3992
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
3993
+ * when one of the observed elements changes it's content dimensions.
3994
+ * @param {ResizeObserverController} controller - Controller instance which
3995
+ * is responsible for the updates of observer.
3996
+ * @param {ResizeObserver} callbackCtx - Reference to the public
3997
+ * ResizeObserver instance which will be passed to callback function.
3998
+ */
3999
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
4000
+ /**
4001
+ * Collection of resize observations that have detected changes in dimensions
4002
+ * of elements.
4003
+ *
4004
+ * @private {Array<ResizeObservation>}
4005
+ */
4006
+ this.activeObservations_ = [];
4007
+ /**
4008
+ * Registry of the ResizeObservation instances.
4009
+ *
4010
+ * @private {Map<Element, ResizeObservation>}
4011
+ */
4012
+ this.observations_ = new MapShim();
4013
+ if (typeof callback !== 'function') {
4014
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
4015
+ }
4016
+ this.callback_ = callback;
4017
+ this.controller_ = controller;
4018
+ this.callbackCtx_ = callbackCtx;
4019
+ }
4020
+ /**
4021
+ * Starts observing provided element.
4022
+ *
4023
+ * @param {Element} target - Element to be observed.
4024
+ * @returns {void}
4025
+ */
4026
+ ResizeObserverSPI.prototype.observe = function (target) {
4027
+ if (!arguments.length) {
4028
+ throw new TypeError('1 argument required, but only 0 present.');
4029
+ }
4030
+ // Do nothing if current environment doesn't have the Element interface.
4031
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
4032
+ return;
4033
+ }
4034
+ if (!(target instanceof getWindowOf(target).Element)) {
4035
+ throw new TypeError('parameter 1 is not of type "Element".');
4036
+ }
4037
+ var observations = this.observations_;
4038
+ // Do nothing if element is already being observed.
4039
+ if (observations.has(target)) {
4040
+ return;
4041
+ }
4042
+ observations.set(target, new ResizeObservation(target));
4043
+ this.controller_.addObserver(this);
4044
+ // Force the update of observations.
4045
+ this.controller_.refresh();
4046
+ };
4047
+ /**
4048
+ * Stops observing provided element.
4049
+ *
4050
+ * @param {Element} target - Element to stop observing.
4051
+ * @returns {void}
4052
+ */
4053
+ ResizeObserverSPI.prototype.unobserve = function (target) {
4054
+ if (!arguments.length) {
4055
+ throw new TypeError('1 argument required, but only 0 present.');
4056
+ }
4057
+ // Do nothing if current environment doesn't have the Element interface.
4058
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
4059
+ return;
4060
+ }
4061
+ if (!(target instanceof getWindowOf(target).Element)) {
4062
+ throw new TypeError('parameter 1 is not of type "Element".');
4063
+ }
4064
+ var observations = this.observations_;
4065
+ // Do nothing if element is not being observed.
4066
+ if (!observations.has(target)) {
4067
+ return;
4068
+ }
4069
+ observations.delete(target);
4070
+ if (!observations.size) {
4071
+ this.controller_.removeObserver(this);
4072
+ }
4073
+ };
4074
+ /**
4075
+ * Stops observing all elements.
4076
+ *
4077
+ * @returns {void}
4078
+ */
4079
+ ResizeObserverSPI.prototype.disconnect = function () {
4080
+ this.clearActive();
4081
+ this.observations_.clear();
4082
+ this.controller_.removeObserver(this);
4083
+ };
4084
+ /**
4085
+ * Collects observation instances the associated element of which has changed
4086
+ * it's content rectangle.
4087
+ *
4088
+ * @returns {void}
4089
+ */
4090
+ ResizeObserverSPI.prototype.gatherActive = function () {
4091
+ var _this = this;
4092
+ this.clearActive();
4093
+ this.observations_.forEach(function (observation) {
4094
+ if (observation.isActive()) {
4095
+ _this.activeObservations_.push(observation);
4096
+ }
4097
+ });
4098
+ };
4099
+ /**
4100
+ * Invokes initial callback function with a list of ResizeObserverEntry
4101
+ * instances collected from active resize observations.
4102
+ *
4103
+ * @returns {void}
4104
+ */
4105
+ ResizeObserverSPI.prototype.broadcastActive = function () {
4106
+ // Do nothing if observer doesn't have active observations.
4107
+ if (!this.hasActive()) {
4108
+ return;
4109
+ }
4110
+ var ctx = this.callbackCtx_;
4111
+ // Create ResizeObserverEntry instance for every active observation.
4112
+ var entries = this.activeObservations_.map(function (observation) {
4113
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
4114
+ });
4115
+ this.callback_.call(ctx, entries, ctx);
4116
+ this.clearActive();
4117
+ };
4118
+ /**
4119
+ * Clears the collection of active observations.
4120
+ *
4121
+ * @returns {void}
4122
+ */
4123
+ ResizeObserverSPI.prototype.clearActive = function () {
4124
+ this.activeObservations_.splice(0);
4125
+ };
4126
+ /**
4127
+ * Tells whether observer has active observations.
4128
+ *
4129
+ * @returns {boolean}
4130
+ */
4131
+ ResizeObserverSPI.prototype.hasActive = function () {
4132
+ return this.activeObservations_.length > 0;
4133
+ };
4134
+ return ResizeObserverSPI;
4135
+ }());
4136
+
4137
+ // Registry of internal observers. If WeakMap is not available use current shim
4138
+ // for the Map collection as it has all required methods and because WeakMap
4139
+ // can't be fully polyfilled anyway.
4140
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
4141
+ /**
4142
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
4143
+ * exposing only those methods and properties that are defined in the spec.
4144
+ */
4145
+ var ResizeObserver = /** @class */ (function () {
4146
+ /**
4147
+ * Creates a new instance of ResizeObserver.
4148
+ *
4149
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
4150
+ * dimensions of the observed elements change.
4151
+ */
4152
+ function ResizeObserver(callback) {
4153
+ if (!(this instanceof ResizeObserver)) {
4154
+ throw new TypeError('Cannot call a class as a function.');
4155
+ }
4156
+ if (!arguments.length) {
4157
+ throw new TypeError('1 argument required, but only 0 present.');
4158
+ }
4159
+ var controller = ResizeObserverController.getInstance();
4160
+ var observer = new ResizeObserverSPI(callback, controller, this);
4161
+ observers.set(this, observer);
4162
+ }
4163
+ return ResizeObserver;
4164
+ }());
4165
+ // Expose public methods of ResizeObserver.
4166
+ [
4167
+ 'observe',
4168
+ 'unobserve',
4169
+ 'disconnect'
4170
+ ].forEach(function (method) {
4171
+ ResizeObserver.prototype[method] = function () {
4172
+ var _a;
4173
+ return (_a = observers.get(this))[method].apply(_a, arguments);
4174
+ };
4175
+ });
4176
+
4177
+ var index = (function () {
4178
+ // Export existing implementation if available.
4179
+ if (typeof global$1.ResizeObserver !== 'undefined') {
4180
+ return global$1.ResizeObserver;
4181
+ }
4182
+ return ResizeObserver;
4183
+ })();
4184
+
4185
+ var cachedScrollbarWidth = null;
4186
+ var cachedDevicePixelRatio = null;
4187
+
4188
+ if (canUseDom) {
4189
+ window.addEventListener('resize', function () {
4190
+ if (cachedDevicePixelRatio !== window.devicePixelRatio) {
4191
+ cachedDevicePixelRatio = window.devicePixelRatio;
4192
+ cachedScrollbarWidth = null;
4193
+ }
4194
+ });
4195
+ }
4196
+
4197
+ function scrollbarWidth() {
4198
+ if (cachedScrollbarWidth === null) {
4199
+ if (typeof document === 'undefined') {
4200
+ cachedScrollbarWidth = 0;
4201
+ return cachedScrollbarWidth;
4202
+ }
4203
+
4204
+ var body = document.body;
4205
+ var box = document.createElement('div');
4206
+ box.classList.add('asl_simplebar-hide-scrollbar');
4207
+ body.appendChild(box);
4208
+ var width = box.getBoundingClientRect().right;
4209
+ body.removeChild(box);
4210
+ cachedScrollbarWidth = width;
4211
+ }
4212
+
4213
+ return cachedScrollbarWidth;
4214
+ }
4215
+
4216
+ var asl_SimpleBar =
4217
+ /*#__PURE__*/
4218
+ function () {
4219
+ function asl_SimpleBar(element, options) {
4220
+ var _this = this;
4221
+
4222
+ this.onScroll = function () {
4223
+ if (!_this.scrollXTicking) {
4224
+ window.requestAnimationFrame(_this.scrollX);
4225
+ _this.scrollXTicking = true;
4226
+ }
4227
+
4228
+ if (!_this.scrollYTicking) {
4229
+ window.requestAnimationFrame(_this.scrollY);
4230
+ _this.scrollYTicking = true;
4231
+ }
4232
+ };
4233
+
4234
+ this.scrollX = function () {
4235
+ if (_this.axis.x.isOverflowing) {
4236
+ _this.showScrollbar('x');
4237
+
4238
+ _this.positionScrollbar('x');
4239
+ }
4240
+
4241
+ _this.scrollXTicking = false;
4242
+ };
4243
+
4244
+ this.scrollY = function () {
4245
+ if (_this.axis.y.isOverflowing) {
4246
+ _this.showScrollbar('y');
4247
+
4248
+ _this.positionScrollbar('y');
4249
+ }
4250
+
4251
+ _this.scrollYTicking = false;
4252
+ };
4253
+
4254
+ this.onMouseEnter = function () {
4255
+ _this.showScrollbar('x');
4256
+
4257
+ _this.showScrollbar('y');
4258
+ };
4259
+
4260
+ this.onMouseMove = function (e) {
4261
+ _this.mouseX = e.clientX;
4262
+ _this.mouseY = e.clientY;
4263
+
4264
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4265
+ _this.onMouseMoveForAxis('x');
4266
+ }
4267
+
4268
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4269
+ _this.onMouseMoveForAxis('y');
4270
+ }
4271
+ };
4272
+
4273
+ this.onMouseLeave = function () {
4274
+ _this.onMouseMove.cancel();
4275
+
4276
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4277
+ _this.onMouseLeaveForAxis('x');
4278
+ }
4279
+
4280
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4281
+ _this.onMouseLeaveForAxis('y');
4282
+ }
4283
+
4284
+ _this.mouseX = -1;
4285
+ _this.mouseY = -1;
4286
+ };
4287
+
4288
+ this.onWindowResize = function () {
4289
+ // Recalculate scrollbarWidth in case it's a zoom
4290
+ _this.scrollbarWidth = _this.getScrollbarWidth();
4291
+
4292
+ _this.hideNativeScrollbar();
4293
+ };
4294
+
4295
+ this.hideScrollbars = function () {
4296
+ _this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
4297
+ _this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
4298
+
4299
+ if (!_this.isWithinBounds(_this.axis.y.track.rect)) {
4300
+ _this.axis.y.scrollbar.el.classList.remove(_this.classNames.visible);
4301
+
4302
+ _this.axis.y.isVisible = false;
4303
+ }
4304
+
4305
+ if (!_this.isWithinBounds(_this.axis.x.track.rect)) {
4306
+ _this.axis.x.scrollbar.el.classList.remove(_this.classNames.visible);
4307
+
4308
+ _this.axis.x.isVisible = false;
4309
+ }
4310
+ };
4311
+
4312
+ this.onPointerEvent = function (e) {
4313
+ var isWithinTrackXBounds, isWithinTrackYBounds;
4314
+ _this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
4315
+ _this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
4316
+
4317
+ if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
4318
+ isWithinTrackXBounds = _this.isWithinBounds(_this.axis.x.track.rect);
4319
+ }
4320
+
4321
+ if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
4322
+ isWithinTrackYBounds = _this.isWithinBounds(_this.axis.y.track.rect);
4323
+ } // If any pointer event is called on the scrollbar
4324
+
4325
+
4326
+ if (isWithinTrackXBounds || isWithinTrackYBounds) {
4327
+ // Preventing the event's default action stops text being
4328
+ // selectable during the drag.
4329
+ e.preventDefault(); // Prevent event leaking
4330
+
4331
+ e.stopPropagation();
4332
+
4333
+ if (e.type === 'mousedown') {
4334
+ if (isWithinTrackXBounds) {
4335
+ _this.axis.x.scrollbar.rect = _this.axis.x.scrollbar.el.getBoundingClientRect();
4336
+
4337
+ if (_this.isWithinBounds(_this.axis.x.scrollbar.rect)) {
4338
+ _this.onDragStart(e, 'x');
4339
+ } else {
4340
+ _this.onTrackClick(e, 'x');
4341
+ }
4342
+ }
4343
+
4344
+ if (isWithinTrackYBounds) {
4345
+ _this.axis.y.scrollbar.rect = _this.axis.y.scrollbar.el.getBoundingClientRect();
4346
+
4347
+ if (_this.isWithinBounds(_this.axis.y.scrollbar.rect)) {
4348
+ _this.onDragStart(e, 'y');
4349
+ } else {
4350
+ _this.onTrackClick(e, 'y');
4351
+ }
4352
+ }
4353
+ }
4354
+ }
4355
+ };
4356
+
4357
+ this.drag = function (e) {
4358
+ var eventOffset;
4359
+ var track = _this.axis[_this.draggedAxis].track;
4360
+ var trackSize = track.rect[_this.axis[_this.draggedAxis].sizeAttr];
4361
+ var scrollbar = _this.axis[_this.draggedAxis].scrollbar;
4362
+ var contentSize = _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollSizeAttr];
4363
+ var hostSize = parseInt(_this.elStyles[_this.axis[_this.draggedAxis].sizeAttr], 10);
4364
+ e.preventDefault();
4365
+ e.stopPropagation();
4366
+
4367
+ if (_this.draggedAxis === 'y') {
4368
+ eventOffset = e.pageY;
4369
+ } else {
4370
+ eventOffset = e.pageX;
4371
+ } // Calculate how far the user's mouse is from the top/left of the scrollbar (minus the dragOffset).
4372
+
4373
+
4374
+ var dragPos = eventOffset - track.rect[_this.axis[_this.draggedAxis].offsetAttr] - _this.axis[_this.draggedAxis].dragOffset; // Convert the mouse position into a percentage of the scrollbar height/width.
4375
+
4376
+ var dragPerc = dragPos / (trackSize - scrollbar.size); // Scroll the content by the same percentage.
4377
+
4378
+ var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
4379
+
4380
+ if (_this.draggedAxis === 'x') {
4381
+ scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
4382
+ scrollPos = _this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
4383
+ }
4384
+
4385
+ _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
4386
+ };
4387
+
4388
+ this.onEndDrag = function (e) {
4389
+ e.preventDefault();
4390
+ e.stopPropagation();
4391
+
4392
+ _this.el.classList.remove(_this.classNames.dragging);
4393
+
4394
+ document.removeEventListener('mousemove', _this.drag, true);
4395
+ document.removeEventListener('mouseup', _this.onEndDrag, true);
4396
+ _this.removePreventClickId = window.setTimeout(function () {
4397
+ // Remove these asynchronously so we still suppress click events
4398
+ // generated simultaneously with mouseup.
4399
+ document.removeEventListener('click', _this.preventClick, true);
4400
+ document.removeEventListener('dblclick', _this.preventClick, true);
4401
+ _this.removePreventClickId = null;
4402
+ });
4403
+ };
4404
+
4405
+ this.preventClick = function (e) {
4406
+ e.preventDefault();
4407
+ e.stopPropagation();
4408
+ };
4409
+
4410
+ this.el = element;
4411
+ this.minScrollbarWidth = 20;
4412
+ this.options = Object.assign({}, asl_SimpleBar.defaultOptions, {}, options);
4413
+ this.classNames = Object.assign({}, asl_SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
4414
+ this.axis = {
4415
+ x: {
4416
+ scrollOffsetAttr: 'scrollLeft',
4417
+ sizeAttr: 'width',
4418
+ scrollSizeAttr: 'scrollWidth',
4419
+ offsetSizeAttr: 'offsetWidth',
4420
+ offsetAttr: 'left',
4421
+ overflowAttr: 'overflowX',
4422
+ dragOffset: 0,
4423
+ isOverflowing: true,
4424
+ isVisible: false,
4425
+ forceVisible: false,
4426
+ track: {},
4427
+ scrollbar: {}
4428
+ },
4429
+ y: {
4430
+ scrollOffsetAttr: 'scrollTop',
4431
+ sizeAttr: 'height',
4432
+ scrollSizeAttr: 'scrollHeight',
4433
+ offsetSizeAttr: 'offsetHeight',
4434
+ offsetAttr: 'top',
4435
+ overflowAttr: 'overflowY',
4436
+ dragOffset: 0,
4437
+ isOverflowing: true,
4438
+ isVisible: false,
4439
+ forceVisible: false,
4440
+ track: {},
4441
+ scrollbar: {}
4442
+ }
4443
+ };
4444
+ this.removePreventClickId = null; // Don't re-instantiate over an existing one
4445
+
4446
+ if (asl_SimpleBar.instances.has(this.el)) {
4447
+ return;
4448
+ }
4449
+
4450
+ this.recalculate = lodash_throttle(this.recalculate.bind(this), 64);
4451
+ this.onMouseMove = lodash_throttle(this.onMouseMove.bind(this), 64);
4452
+ this.hideScrollbars = lodash_debounce(this.hideScrollbars.bind(this), this.options.timeout);
4453
+ this.onWindowResize = lodash_debounce(this.onWindowResize.bind(this), 64, {
4454
+ leading: true
4455
+ });
4456
+ asl_SimpleBar.getRtlHelpers = lodash_memoize(asl_SimpleBar.getRtlHelpers);
4457
+ this.init();
4458
+ }
4459
+ /**
4460
+ * Static properties
4461
+ */
4462
+
4463
+ /**
4464
+ * Helper to fix browsers inconsistency on RTL:
4465
+ * - Firefox inverts the scrollbar initial position
4466
+ * - IE11 inverts both scrollbar position and scrolling offset
4467
+ * Directly inspired by @KingSora's OverlayScrollbars https://github.com/KingSora/OverlayScrollbars/blob/master/js/OverlayScrollbars.js#L1634
4468
+ */
4469
+
4470
+
4471
+ asl_SimpleBar.getRtlHelpers = function getRtlHelpers() {
4472
+ var dummyDiv = document.createElement('div');
4473
+ dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
4474
+ var scrollbarDummyEl = dummyDiv.firstElementChild;
4475
+ document.body.appendChild(scrollbarDummyEl);
4476
+ var dummyContainerChild = scrollbarDummyEl.firstElementChild;
4477
+ scrollbarDummyEl.scrollLeft = 0;
4478
+ var dummyContainerOffset = asl_SimpleBar.getOffset(scrollbarDummyEl);
4479
+ var dummyContainerChildOffset = asl_SimpleBar.getOffset(dummyContainerChild);
4480
+ scrollbarDummyEl.scrollLeft = 999;
4481
+ var dummyContainerScrollOffsetAfterScroll = asl_SimpleBar.getOffset(dummyContainerChild);
4482
+ return {
4483
+ // determines if the scrolling is responding with negative values
4484
+ isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
4485
+ // determines if the origin scrollbar position is inverted or not (positioned on left or right)
4486
+ isRtlScrollbarInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left
4487
+ };
4488
+ };
4489
+
4490
+ asl_SimpleBar.getOffset = function getOffset(el) {
4491
+ var rect = el.getBoundingClientRect();
4492
+ return {
4493
+ top: rect.top + (window.pageYOffset || document.documentElement.scrollTop),
4494
+ left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft)
4495
+ };
4496
+ };
4497
+
4498
+ var _proto = asl_SimpleBar.prototype;
4499
+
4500
+ _proto.init = function init() {
4501
+ // Save a reference to the instance, so we know this DOM node has already been instancied
4502
+ asl_SimpleBar.instances.set(this.el, this); // We stop here on server-side
4503
+
4504
+ if (canUseDom) {
4505
+ this.initDOM();
4506
+ this.scrollbarWidth = this.getScrollbarWidth();
4507
+ this.recalculate();
4508
+ this.initListeners();
4509
+ }
4510
+ };
4511
+
4512
+ _proto.initDOM = function initDOM() {
4513
+ var _this2 = this;
4514
+
4515
+ // make sure this element doesn't have the elements yet
4516
+ if (Array.prototype.filter.call(this.el.children, function (child) {
4517
+ return child.classList.contains(_this2.classNames.wrapper);
4518
+ }).length) {
4519
+ // assume that element has his DOM already initiated
4520
+ this.wrapperEl = this.el.querySelector("." + this.classNames.wrapper);
4521
+ this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector("." + this.classNames.contentWrapper);
4522
+ this.contentEl = this.options.contentNode || this.el.querySelector("." + this.classNames.contentEl);
4523
+ this.offsetEl = this.el.querySelector("." + this.classNames.offset);
4524
+ this.maskEl = this.el.querySelector("." + this.classNames.mask);
4525
+ this.placeholderEl = this.findChild(this.wrapperEl, "." + this.classNames.placeholder);
4526
+ this.heightAutoObserverWrapperEl = this.el.querySelector("." + this.classNames.heightAutoObserverWrapperEl);
4527
+ this.heightAutoObserverEl = this.el.querySelector("." + this.classNames.heightAutoObserverEl);
4528
+ this.axis.x.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.horizontal);
4529
+ this.axis.y.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.vertical);
4530
+ } else {
4531
+ // Prepare DOM
4532
+ this.wrapperEl = document.createElement('div');
4533
+ this.contentWrapperEl = document.createElement('div');
4534
+ this.offsetEl = document.createElement('div');
4535
+ this.maskEl = document.createElement('div');
4536
+ this.contentEl = document.createElement('div');
4537
+ this.placeholderEl = document.createElement('div');
4538
+ this.heightAutoObserverWrapperEl = document.createElement('div');
4539
+ this.heightAutoObserverEl = document.createElement('div');
4540
+ this.wrapperEl.classList.add(this.classNames.wrapper);
4541
+ this.contentWrapperEl.classList.add(this.classNames.contentWrapper);
4542
+ this.offsetEl.classList.add(this.classNames.offset);
4543
+ this.maskEl.classList.add(this.classNames.mask);
4544
+ this.contentEl.classList.add(this.classNames.contentEl);
4545
+ this.placeholderEl.classList.add(this.classNames.placeholder);
4546
+ this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);
4547
+ this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);
4548
+
4549
+ while (this.el.firstChild) {
4550
+ this.contentEl.appendChild(this.el.firstChild);
4551
+ }
4552
+
4553
+ this.contentWrapperEl.appendChild(this.contentEl);
4554
+ this.offsetEl.appendChild(this.contentWrapperEl);
4555
+ this.maskEl.appendChild(this.offsetEl);
4556
+ this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);
4557
+ this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);
4558
+ this.wrapperEl.appendChild(this.maskEl);
4559
+ this.wrapperEl.appendChild(this.placeholderEl);
4560
+ this.el.appendChild(this.wrapperEl);
4561
+ }
4562
+
4563
+ if (!this.axis.x.track.el || !this.axis.y.track.el) {
4564
+ var track = document.createElement('div');
4565
+ var scrollbar = document.createElement('div');
4566
+ track.classList.add(this.classNames.track);
4567
+ scrollbar.classList.add(this.classNames.scrollbar);
4568
+ track.appendChild(scrollbar);
4569
+ this.axis.x.track.el = track.cloneNode(true);
4570
+ this.axis.x.track.el.classList.add(this.classNames.horizontal);
4571
+ this.axis.y.track.el = track.cloneNode(true);
4572
+ this.axis.y.track.el.classList.add(this.classNames.vertical);
4573
+ this.el.appendChild(this.axis.x.track.el);
4574
+ this.el.appendChild(this.axis.y.track.el);
4575
+ }
4576
+
4577
+ this.axis.x.scrollbar.el = this.axis.x.track.el.querySelector("." + this.classNames.scrollbar);
4578
+ this.axis.y.scrollbar.el = this.axis.y.track.el.querySelector("." + this.classNames.scrollbar);
4579
+
4580
+ if (!this.options.autoHide) {
4581
+ this.axis.x.scrollbar.el.classList.add(this.classNames.visible);
4582
+ this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
4583
+ }
4584
+
4585
+ this.el.setAttribute('data-asl_simplebar', 'init');
4586
+ };
4587
+
4588
+ _proto.initListeners = function initListeners() {
4589
+ var _this3 = this;
4590
+
4591
+ // Event listeners
4592
+ if (this.options.autoHide) {
4593
+ this.el.addEventListener('mouseenter', this.onMouseEnter);
4594
+ }
4595
+
4596
+ ['mousedown', 'click', 'dblclick'].forEach(function (e) {
4597
+ _this3.el.addEventListener(e, _this3.onPointerEvent, true);
4598
+ });
4599
+ ['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
4600
+ _this3.el.addEventListener(e, _this3.onPointerEvent, {
4601
+ capture: true,
4602
+ passive: true
4603
+ });
4604
+ });
4605
+ this.el.addEventListener('mousemove', this.onMouseMove);
4606
+ this.el.addEventListener('mouseleave', this.onMouseLeave);
4607
+ this.contentWrapperEl.addEventListener('scroll', this.onScroll); // Browser zoom triggers a window resize
4608
+
4609
+ window.addEventListener('resize', this.onWindowResize); // Hack for https://github.com/WICG/ResizeObserver/issues/38
4610
+
4611
+ var resizeObserverStarted = false;
4612
+ this.resizeObserver = new index(function () {
4613
+ if (!resizeObserverStarted) return;
4614
+
4615
+ _this3.recalculate();
4616
+ });
4617
+ this.resizeObserver.observe(this.el);
4618
+ this.resizeObserver.observe(this.contentEl);
4619
+ window.requestAnimationFrame(function () {
4620
+ resizeObserverStarted = true;
4621
+ }); // This is required to detect horizontal scroll. Vertical scroll only needs the resizeObserver.
4622
+
4623
+ this.mutationObserver = new MutationObserver(this.recalculate);
4624
+ this.mutationObserver.observe(this.contentEl, {
4625
+ childList: true,
4626
+ subtree: true,
4627
+ characterData: true
4628
+ });
4629
+ };
4630
+
4631
+ _proto.recalculate = function recalculate() {
4632
+ this.elStyles = window.getComputedStyle(this.el);
4633
+ this.isRtl = this.elStyles.direction === 'rtl';
4634
+ var isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
4635
+ var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
4636
+ var contentElOffsetWidth = this.contentEl.offsetWidth;
4637
+ var contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;
4638
+ var elOverflowX = this.elStyles.overflowX;
4639
+ var elOverflowY = this.elStyles.overflowY;
4640
+ this.contentEl.style.padding = this.elStyles.paddingTop + " " + this.elStyles.paddingRight + " " + this.elStyles.paddingBottom + " " + this.elStyles.paddingLeft;
4641
+ this.wrapperEl.style.margin = "-" + this.elStyles.paddingTop + " -" + this.elStyles.paddingRight + " -" + this.elStyles.paddingBottom + " -" + this.elStyles.paddingLeft;
4642
+ var contentElScrollHeight = this.contentEl.scrollHeight;
4643
+ var contentElScrollWidth = this.contentEl.scrollWidth;
4644
+ this.contentWrapperEl.style.height = isHeightAuto ? 'auto' : '100%'; // Determine placeholder size
4645
+
4646
+ this.placeholderEl.style.width = isWidthAuto ? contentElOffsetWidth + "px" : 'auto';
4647
+ this.placeholderEl.style.height = contentElScrollHeight + "px";
4648
+ var contentWrapperElOffsetHeight = this.contentWrapperEl.offsetHeight;
4649
+ this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
4650
+ this.axis.y.isOverflowing = contentElScrollHeight > contentWrapperElOffsetHeight; // Set isOverflowing to false if user explicitely set hidden overflow
4651
+
4652
+ this.axis.x.isOverflowing = elOverflowX === 'hidden' ? false : this.axis.x.isOverflowing;
4653
+ this.axis.y.isOverflowing = elOverflowY === 'hidden' ? false : this.axis.y.isOverflowing;
4654
+ this.axis.x.forceVisible = this.options.forceVisible === 'x' || this.options.forceVisible === true;
4655
+ this.axis.y.forceVisible = this.options.forceVisible === 'y' || this.options.forceVisible === true;
4656
+ this.hideNativeScrollbar(); // Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
4657
+
4658
+ var offsetForXScrollbar = this.axis.x.isOverflowing ? this.scrollbarWidth : 0;
4659
+ var offsetForYScrollbar = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
4660
+ this.axis.x.isOverflowing = this.axis.x.isOverflowing && contentElScrollWidth > contentWrapperElOffsetWidth - offsetForYScrollbar;
4661
+ this.axis.y.isOverflowing = this.axis.y.isOverflowing && contentElScrollHeight > contentWrapperElOffsetHeight - offsetForXScrollbar;
4662
+ this.axis.x.scrollbar.size = this.getScrollbarSize('x');
4663
+ this.axis.y.scrollbar.size = this.getScrollbarSize('y');
4664
+ this.axis.x.scrollbar.el.style.width = this.axis.x.scrollbar.size + "px";
4665
+ this.axis.y.scrollbar.el.style.height = this.axis.y.scrollbar.size + "px";
4666
+ this.positionScrollbar('x');
4667
+ this.positionScrollbar('y');
4668
+ this.toggleTrackVisibility('x');
4669
+ this.toggleTrackVisibility('y');
4670
+ }
4671
+ /**
4672
+ * Calculate scrollbar size
4673
+ */
4674
+ ;
4675
+
4676
+ _proto.getScrollbarSize = function getScrollbarSize(axis) {
4677
+ if (axis === void 0) {
4678
+ axis = 'y';
4679
+ }
4680
+
4681
+ if (!this.axis[axis].isOverflowing) {
4682
+ return 0;
4683
+ }
4684
+
4685
+ var contentSize = this.contentEl[this.axis[axis].scrollSizeAttr];
4686
+ var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
4687
+ var scrollbarSize;
4688
+ var scrollbarRatio = trackSize / contentSize; // Calculate new height/position of drag handle.
4689
+
4690
+ scrollbarSize = Math.max(~~(scrollbarRatio * trackSize), this.options.scrollbarMinSize);
4691
+
4692
+ if (this.options.scrollbarMaxSize) {
4693
+ scrollbarSize = Math.min(scrollbarSize, this.options.scrollbarMaxSize);
4694
+ }
4695
+
4696
+ return scrollbarSize;
4697
+ };
4698
+
4699
+ _proto.positionScrollbar = function positionScrollbar(axis) {
4700
+ if (axis === void 0) {
4701
+ axis = 'y';
4702
+ }
4703
+
4704
+ if (!this.axis[axis].isOverflowing) {
4705
+ return;
4706
+ }
4707
+
4708
+ var contentSize = this.contentWrapperEl[this.axis[axis].scrollSizeAttr];
4709
+ var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
4710
+ var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
4711
+ var scrollbar = this.axis[axis].scrollbar;
4712
+ var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
4713
+ scrollOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
4714
+ var scrollPourcent = scrollOffset / (contentSize - hostSize);
4715
+ var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
4716
+ handleOffset = axis === 'x' && this.isRtl && asl_SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
4717
+ scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
4718
+ };
4719
+
4720
+ _proto.toggleTrackVisibility = function toggleTrackVisibility(axis) {
4721
+ if (axis === void 0) {
4722
+ axis = 'y';
4723
+ }
4724
+
4725
+ var track = this.axis[axis].track.el;
4726
+ var scrollbar = this.axis[axis].scrollbar.el;
4727
+
4728
+ if (this.axis[axis].isOverflowing || this.axis[axis].forceVisible) {
4729
+ track.style.visibility = 'visible';
4730
+ this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'scroll';
4731
+ } else {
4732
+ track.style.visibility = 'hidden';
4733
+ this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'hidden';
4734
+ } // Even if forceVisible is enabled, scrollbar itself should be hidden
4735
+
4736
+
4737
+ if (this.axis[axis].isOverflowing) {
4738
+ scrollbar.style.display = 'block';
4739
+ } else {
4740
+ scrollbar.style.display = 'none';
4741
+ }
4742
+ };
4743
+
4744
+ _proto.hideNativeScrollbar = function hideNativeScrollbar() {
4745
+ this.offsetEl.style[this.isRtl ? 'left' : 'right'] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
4746
+ this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
4747
+ }
4748
+ /**
4749
+ * On scroll event handling
4750
+ */
4751
+ ;
4752
+
4753
+ _proto.onMouseMoveForAxis = function onMouseMoveForAxis(axis) {
4754
+ if (axis === void 0) {
4755
+ axis = 'y';
4756
+ }
4757
+
4758
+ this.axis[axis].track.rect = this.axis[axis].track.el.getBoundingClientRect();
4759
+ this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
4760
+ var isWithinScrollbarBoundsX = this.isWithinBounds(this.axis[axis].scrollbar.rect);
4761
+
4762
+ if (isWithinScrollbarBoundsX) {
4763
+ this.axis[axis].scrollbar.el.classList.add(this.classNames.hover);
4764
+ } else {
4765
+ this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
4766
+ }
4767
+
4768
+ if (this.isWithinBounds(this.axis[axis].track.rect)) {
4769
+ this.showScrollbar(axis);
4770
+ this.axis[axis].track.el.classList.add(this.classNames.hover);
4771
+ } else {
4772
+ this.axis[axis].track.el.classList.remove(this.classNames.hover);
4773
+ }
4774
+ };
4775
+
4776
+ _proto.onMouseLeaveForAxis = function onMouseLeaveForAxis(axis) {
4777
+ if (axis === void 0) {
4778
+ axis = 'y';
4779
+ }
4780
+
4781
+ this.axis[axis].track.el.classList.remove(this.classNames.hover);
4782
+ this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
4783
+ };
4784
+
4785
+ /**
4786
+ * Show scrollbar
4787
+ */
4788
+ _proto.showScrollbar = function showScrollbar(axis) {
4789
+ if (axis === void 0) {
4790
+ axis = 'y';
4791
+ }
4792
+
4793
+ var scrollbar = this.axis[axis].scrollbar.el;
4794
+
4795
+ if (!this.axis[axis].isVisible) {
4796
+ scrollbar.classList.add(this.classNames.visible);
4797
+ this.axis[axis].isVisible = true;
4798
+ }
4799
+
4800
+ if (this.options.autoHide) {
4801
+ this.hideScrollbars();
4802
+ }
4803
+ }
4804
+ /**
4805
+ * Hide Scrollbar
4806
+ */
4807
+ ;
4808
+
4809
+ /**
4810
+ * on scrollbar handle drag movement starts
4811
+ */
4812
+ _proto.onDragStart = function onDragStart(e, axis) {
4813
+ if (axis === void 0) {
4814
+ axis = 'y';
4815
+ }
4816
+
4817
+ var scrollbar = this.axis[axis].scrollbar; // Measure how far the user's mouse is from the top of the scrollbar drag handle.
4818
+
4819
+ var eventOffset = axis === 'y' ? e.pageY : e.pageX;
4820
+ this.axis[axis].dragOffset = eventOffset - scrollbar.rect[this.axis[axis].offsetAttr];
4821
+ this.draggedAxis = axis;
4822
+ this.el.classList.add(this.classNames.dragging);
4823
+ document.addEventListener('mousemove', this.drag, true);
4824
+ document.addEventListener('mouseup', this.onEndDrag, true);
4825
+
4826
+ if (this.removePreventClickId === null) {
4827
+ document.addEventListener('click', this.preventClick, true);
4828
+ document.addEventListener('dblclick', this.preventClick, true);
4829
+ } else {
4830
+ window.clearTimeout(this.removePreventClickId);
4831
+ this.removePreventClickId = null;
4832
+ }
4833
+ }
4834
+ /**
4835
+ * Drag scrollbar handle
4836
+ */
4837
+ ;
4838
+
4839
+ _proto.onTrackClick = function onTrackClick(e, axis) {
4840
+ var _this4 = this;
4841
+
4842
+ if (axis === void 0) {
4843
+ axis = 'y';
4844
+ }
4845
+
4846
+ this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
4847
+ var scrollbar = this.axis[axis].scrollbar;
4848
+ var scrollbarOffset = scrollbar.rect[this.axis[axis].offsetAttr];
4849
+ var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
4850
+ var scrolled = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
4851
+ var t = axis === 'y' ? this.mouseY - scrollbarOffset : this.mouseX - scrollbarOffset;
4852
+ var dir = t < 0 ? -1 : 1;
4853
+ var scrollSize = dir === -1 ? scrolled - hostSize : scrolled + hostSize;
4854
+ var speed = 40;
4855
+
4856
+ var scrollTo = function scrollTo() {
4857
+ if (dir === -1) {
4858
+ if (scrolled > scrollSize) {
4859
+ var _this4$contentWrapper;
4860
+
4861
+ scrolled -= speed;
4862
+
4863
+ _this4.contentWrapperEl.scrollTo((_this4$contentWrapper = {}, _this4$contentWrapper[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper));
4864
+
4865
+ window.requestAnimationFrame(scrollTo);
4866
+ }
4867
+ } else {
4868
+ if (scrolled < scrollSize) {
4869
+ var _this4$contentWrapper2;
4870
+
4871
+ scrolled += speed;
4872
+
4873
+ _this4.contentWrapperEl.scrollTo((_this4$contentWrapper2 = {}, _this4$contentWrapper2[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper2));
4874
+
4875
+ window.requestAnimationFrame(scrollTo);
4876
+ }
4877
+ }
4878
+ };
4879
+
4880
+ scrollTo();
4881
+ }
4882
+ /**
4883
+ * Getter for content element
4884
+ */
4885
+ ;
4886
+
4887
+ _proto.getContentElement = function getContentElement() {
4888
+ return this.contentEl;
4889
+ }
4890
+ /**
4891
+ * Getter for original scrolling element
4892
+ */
4893
+ ;
4894
+
4895
+ _proto.getScrollElement = function getScrollElement() {
4896
+ return this.contentWrapperEl;
4897
+ };
4898
+
4899
+ _proto.getScrollbarWidth = function getScrollbarWidth() {
4900
+ // Try/catch for FF 56 throwing on undefined computedStyles
4901
+ try {
4902
+ // Detect Chrome/Firefox and do not calculate
4903
+ if (getComputedStyle(this.contentWrapperEl, '::-webkit-scrollbar').display === 'none' || 'scrollbarWidth' in document.documentElement.style) {
4904
+ return 0;
4905
+ } else {
4906
+ return scrollbarWidth();
4907
+ }
4908
+ } catch (e) {
4909
+ return scrollbarWidth();
4910
+ }
4911
+ };
4912
+
4913
+ _proto.removeListeners = function removeListeners() {
4914
+ var _this5 = this;
4915
+
4916
+ // Event listeners
4917
+ if (this.options.autoHide) {
4918
+ this.el.removeEventListener('mouseenter', this.onMouseEnter);
4919
+ }
4920
+
4921
+ ['mousedown', 'click', 'dblclick'].forEach(function (e) {
4922
+ _this5.el.removeEventListener(e, _this5.onPointerEvent, true);
4923
+ });
4924
+ ['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
4925
+ _this5.el.removeEventListener(e, _this5.onPointerEvent, {
4926
+ capture: true,
4927
+ passive: true
4928
+ });
4929
+ });
4930
+ this.el.removeEventListener('mousemove', this.onMouseMove);
4931
+ this.el.removeEventListener('mouseleave', this.onMouseLeave);
4932
+ this.contentWrapperEl.removeEventListener('scroll', this.onScroll);
4933
+ window.removeEventListener('resize', this.onWindowResize);
4934
+ this.mutationObserver.disconnect();
4935
+ this.resizeObserver.disconnect(); // Cancel all debounced functions
4936
+
4937
+ this.recalculate.cancel();
4938
+ this.onMouseMove.cancel();
4939
+ this.hideScrollbars.cancel();
4940
+ this.onWindowResize.cancel();
4941
+ }
4942
+ /**
4943
+ * UnMount mutation observer and delete asl_SimpleBar instance from DOM element
4944
+ */
4945
+ ;
4946
+
4947
+ _proto.unMount = function unMount() {
4948
+ this.removeListeners();
4949
+ asl_SimpleBar.instances.delete(this.el);
4950
+ }
4951
+ /**
4952
+ * Check if mouse is within bounds
4953
+ */
4954
+ ;
4955
+
4956
+ _proto.isWithinBounds = function isWithinBounds(bbox) {
4957
+ return this.mouseX >= bbox.left && this.mouseX <= bbox.left + bbox.width && this.mouseY >= bbox.top && this.mouseY <= bbox.top + bbox.height;
4958
+ }
4959
+ /**
4960
+ * Find element children matches query
4961
+ */
4962
+ ;
4963
+
4964
+ _proto.findChild = function findChild(el, query) {
4965
+ var matches = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
4966
+ return Array.prototype.filter.call(el.children, function (child) {
4967
+ return matches.call(child, query);
4968
+ })[0];
4969
+ };
4970
+
4971
+ return asl_SimpleBar;
4972
+ }();
4973
+
4974
+ asl_SimpleBar.defaultOptions = {
4975
+ autoHide: true,
4976
+ forceVisible: false,
4977
+ classNames: {
4978
+ contentEl: 'asl_simplebar-content',
4979
+ contentWrapper: 'asl_simplebar-content-wrapper',
4980
+ offset: 'asl_simplebar-offset',
4981
+ mask: 'asl_simplebar-mask',
4982
+ wrapper: 'asl_simplebar-wrapper',
4983
+ placeholder: 'asl_simplebar-placeholder',
4984
+ scrollbar: 'asl_simplebar-scrollbar',
4985
+ track: 'asl_simplebar-track',
4986
+ heightAutoObserverWrapperEl: 'asl_simplebar-height-auto-observer-wrapper',
4987
+ heightAutoObserverEl: 'asl_simplebar-height-auto-observer',
4988
+ visible: 'asl_simplebar-visible',
4989
+ horizontal: 'asl_simplebar-horizontal',
4990
+ vertical: 'asl_simplebar-vertical',
4991
+ hover: 'asl_simplebar-hover',
4992
+ dragging: 'asl_simplebar-dragging'
4993
+ },
4994
+ scrollbarMinSize: 25,
4995
+ scrollbarMaxSize: 0,
4996
+ timeout: 1000
4997
+ };
4998
+ asl_SimpleBar.instances = new WeakMap();
4999
+
5000
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
5001
+ var createMethod$4 = function (IS_RIGHT) {
5002
+ return function (that, callbackfn, argumentsLength, memo) {
5003
+ aFunction$1(callbackfn);
5004
+ var O = toObject(that);
5005
+ var self = indexedObject(O);
5006
+ var length = toLength(O.length);
5007
+ var index = IS_RIGHT ? length - 1 : 0;
5008
+ var i = IS_RIGHT ? -1 : 1;
5009
+ if (argumentsLength < 2) while (true) {
5010
+ if (index in self) {
5011
+ memo = self[index];
5012
+ index += i;
5013
+ break;
5014
+ }
5015
+ index += i;
5016
+ if (IS_RIGHT ? index < 0 : length <= index) {
5017
+ throw TypeError('Reduce of empty array with no initial value');
5018
+ }
5019
+ }
5020
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
5021
+ memo = callbackfn(memo, self[index], index, O);
5022
+ }
5023
+ return memo;
5024
+ };
5025
+ };
5026
+
5027
+ var arrayReduce = {
5028
+ // `Array.prototype.reduce` method
5029
+ // https://tc39.github.io/ecma262/#sec-array.prototype.reduce
5030
+ left: createMethod$4(false),
5031
+ // `Array.prototype.reduceRight` method
5032
+ // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
5033
+ right: createMethod$4(true)
5034
+ };
5035
+
5036
+ var $reduce = arrayReduce.left;
5037
+
5038
+
5039
+ // `Array.prototype.reduce` method
5040
+ // https://tc39.github.io/ecma262/#sec-array.prototype.reduce
5041
+ _export({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduce') }, {
5042
+ reduce: function reduce(callbackfn /* , initialValue */) {
5043
+ return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
5044
+ }
5045
+ });
5046
+
5047
+ var defineProperty$1 = objectDefineProperty.f;
5048
+
5049
+ var FunctionPrototype = Function.prototype;
5050
+ var FunctionPrototypeToString = FunctionPrototype.toString;
5051
+ var nameRE = /^\s*function ([^ (]*)/;
5052
+ var NAME = 'name';
5053
+
5054
+ // Function instances `.name` property
5055
+ // https://tc39.github.io/ecma262/#sec-function-instances-name
5056
+ if (descriptors && !(NAME in FunctionPrototype)) {
5057
+ defineProperty$1(FunctionPrototype, NAME, {
5058
+ configurable: true,
5059
+ get: function () {
5060
+ try {
5061
+ return FunctionPrototypeToString.call(this).match(nameRE)[1];
5062
+ } catch (error) {
5063
+ return '';
5064
+ }
5065
+ }
5066
+ });
5067
+ }
5068
+
5069
+ // `RegExp.prototype.flags` getter implementation
5070
+ // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
5071
+ var regexpFlags = function () {
5072
+ var that = anObject(this);
5073
+ var result = '';
5074
+ if (that.global) result += 'g';
5075
+ if (that.ignoreCase) result += 'i';
5076
+ if (that.multiline) result += 'm';
5077
+ if (that.dotAll) result += 's';
5078
+ if (that.unicode) result += 'u';
5079
+ if (that.sticky) result += 'y';
5080
+ return result;
5081
+ };
5082
+
5083
+ var nativeExec = RegExp.prototype.exec;
5084
+ // This always refers to the native implementation, because the
5085
+ // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
5086
+ // which loads this file before patching the method.
5087
+ var nativeReplace = String.prototype.replace;
5088
+
5089
+ var patchedExec = nativeExec;
5090
+
5091
+ var UPDATES_LAST_INDEX_WRONG = (function () {
5092
+ var re1 = /a/;
5093
+ var re2 = /b*/g;
5094
+ nativeExec.call(re1, 'a');
5095
+ nativeExec.call(re2, 'a');
5096
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
5097
+ })();
5098
+
5099
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
5100
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
5101
+
5102
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
5103
+
5104
+ if (PATCH) {
5105
+ patchedExec = function exec(str) {
5106
+ var re = this;
5107
+ var lastIndex, reCopy, match, i;
5108
+
5109
+ if (NPCG_INCLUDED) {
5110
+ reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
5111
+ }
5112
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
5113
+
5114
+ match = nativeExec.call(re, str);
5115
+
5116
+ if (UPDATES_LAST_INDEX_WRONG && match) {
5117
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
5118
+ }
5119
+ if (NPCG_INCLUDED && match && match.length > 1) {
5120
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
5121
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
5122
+ nativeReplace.call(match[0], reCopy, function () {
5123
+ for (i = 1; i < arguments.length - 2; i++) {
5124
+ if (arguments[i] === undefined) match[i] = undefined;
5125
+ }
5126
+ });
5127
+ }
5128
+
5129
+ return match;
5130
+ };
5131
+ }
5132
+
5133
+ var regexpExec = patchedExec;
5134
+
5135
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
5136
+ exec: regexpExec
5137
+ });
5138
+
5139
+ var SPECIES$2 = wellKnownSymbol('species');
5140
+
5141
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
5142
+ // #replace needs built-in support for named groups.
5143
+ // #match works fine because it just return the exec results, even if it has
5144
+ // a "grops" property.
5145
+ var re = /./;
5146
+ re.exec = function () {
5147
+ var result = [];
5148
+ result.groups = { a: '7' };
5149
+ return result;
5150
+ };
5151
+ return ''.replace(re, '$<a>') !== '7';
5152
+ });
5153
+
5154
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
5155
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
5156
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
5157
+ var re = /(?:)/;
5158
+ var originalExec = re.exec;
5159
+ re.exec = function () { return originalExec.apply(this, arguments); };
5160
+ var result = 'ab'.split(re);
5161
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
5162
+ });
5163
+
5164
+ var charAt$1 = stringMultibyte.charAt;
5165
+
5166
+ // `AdvanceStringIndex` abstract operation
5167
+ // https://tc39.github.io/ecma262/#sec-advancestringindex
5168
+ var advanceStringIndex = function (S, index, unicode) {
5169
+ return index + (unicode ? charAt$1(S, index).length : 1);
5170
+ };
5171
+
5172
+ // `RegExpExec` abstract operation
5173
+ // https://tc39.github.io/ecma262/#sec-regexpexec
5174
+ var regexpExecAbstract = function (R, S) {
5175
+ var exec = R.exec;
5176
+ if (typeof exec === 'function') {
5177
+ var result = exec.call(R, S);
5178
+ if (typeof result !== 'object') {
5179
+ throw TypeError('RegExp exec method returned something other than an Object or null');
5180
+ }
5181
+ return result;
5182
+ }
5183
+
5184
+ if (classofRaw(R) !== 'RegExp') {
5185
+ throw TypeError('RegExp#exec called on incompatible receiver');
5186
+ }
5187
+
5188
+ return regexpExec.call(R, S);
5189
+ };
5190
+
5191
+ var max$1 = Math.max;
5192
+ var min$2 = Math.min;
5193
+ var floor$1 = Math.floor;
5194
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
5195
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
5196
+
5197
+ var maybeToString = function (it) {
5198
+ return it === undefined ? it : String(it);
5199
+ };
5200
+
5201
+ // Helper function to retrieve options from element attributes
5202
+ var getOptions = function getOptions(obj) {
5203
+ var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
5204
+ var option = attribute.name.match(/data-asl_simplebar-(.+)/);
5205
+
5206
+ if (option) {
5207
+ var key = option[1].replace(/\W+(.)/g, function (x, chr) {
5208
+ return chr.toUpperCase();
5209
+ });
5210
+
5211
+ switch (attribute.value) {
5212
+ case 'true':
5213
+ acc[key] = true;
5214
+ break;
5215
+
5216
+ case 'false':
5217
+ acc[key] = false;
5218
+ break;
5219
+
5220
+ case undefined:
5221
+ acc[key] = true;
5222
+ break;
5223
+
5224
+ default:
5225
+ acc[key] = attribute.value;
5226
+ }
5227
+ }
5228
+
5229
+ return acc;
5230
+ }, {});
5231
+ return options;
5232
+ };
5233
+
5234
+ asl_SimpleBar.initDOMLoadedElements = function () {
5235
+ document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
5236
+ window.removeEventListener('load', this.initDOMLoadedElements);
5237
+ Array.prototype.forEach.call(document.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'), function (el) {
5238
+ if (!asl_SimpleBar.instances.has(el)) new asl_SimpleBar(el, getOptions(el.attributes));
5239
+ });
5240
+ };
5241
+
5242
+ asl_SimpleBar.removeObserver = function () {
5243
+ this.globalObserver.disconnect();
5244
+ };
5245
+
5246
+ asl_SimpleBar.initHtmlApi = function () {
5247
+ this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this); // MutationObserver is IE11+
5248
+
5249
+ if (typeof MutationObserver !== 'undefined') {
5250
+ // Mutation observer to observe dynamically added elements
5251
+ this.globalObserver = new MutationObserver(asl_SimpleBar.handleMutations);
5252
+ this.globalObserver.observe(document, {
5253
+ childList: true,
5254
+ subtree: true
5255
+ });
5256
+ } // Taken from jQuery `ready` function
5257
+ // Instantiate elements already present on the page
5258
+
5259
+
5260
+ if (document.readyState === 'complete' || document.readyState !== 'loading' && !document.documentElement.doScroll) {
5261
+ // Handle it asynchronously to allow scripts the opportunity to delay init
5262
+ window.setTimeout(this.initDOMLoadedElements);
5263
+ } else {
5264
+ document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);
5265
+ window.addEventListener('load', this.initDOMLoadedElements);
5266
+ }
5267
+ };
5268
+
5269
+ asl_SimpleBar.handleMutations = function (mutations) {
5270
+ mutations.forEach(function (mutation) {
5271
+ Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
5272
+ if (addedNode.nodeType === 1) {
5273
+ if (addedNode.hasAttribute('data-asl_simplebar')) {
5274
+ !asl_SimpleBar.instances.has(addedNode) && new asl_SimpleBar(addedNode, getOptions(addedNode.attributes));
5275
+ } else {
5276
+ Array.prototype.forEach.call(addedNode.querySelectorAll('[data-asl_simplebar]:not([data-asl_simplebar="init"])'), function (el) {
5277
+ !asl_SimpleBar.instances.has(el) && new asl_SimpleBar(el, getOptions(el.attributes));
5278
+ });
5279
+ }
5280
+ }
5281
+ });
5282
+ Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
5283
+ if (removedNode.nodeType === 1) {
5284
+ if (removedNode.hasAttribute('[data-asl_simplebar="init"]')) {
5285
+ asl_SimpleBar.instances.has(removedNode) && asl_SimpleBar.instances.get(removedNode).unMount();
5286
+ } else {
5287
+ Array.prototype.forEach.call(removedNode.querySelectorAll('[data-asl_simplebar="init"]'), function (el) {
5288
+ asl_SimpleBar.instances.has(el) && asl_SimpleBar.instances.get(el).unMount();
5289
+ });
5290
+ }
5291
+ }
5292
+ });
5293
+ });
5294
+ };
5295
+
5296
+ asl_SimpleBar.getOptions = getOptions;
5297
+ /**
5298
+ * HTML API
5299
+ * Called only in a browser env.
5300
+ */
5301
+
5302
+ if (canUseDom) {
5303
+ asl_SimpleBar.initHtmlApi();
5304
+ }
5305
+
5306
+ return asl_SimpleBar;
5307
+
5308
+ }));
5309
+ })(asljQuery, asljQuery, window);
js/nomin/asl_wrapper.js CHANGED
@@ -8,9 +8,29 @@ window.ASL.getScope = function() {
8
  /**
9
  * Explanation:
10
  * If the sript is scoped, the first argument is always passed in a localized jQuery
11
- * variable, while the actual parameter can be asljQuery or jQuery (or anything) as well.
12
  */
13
- if (typeof jQuery !== "undefined") return jQuery;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  // The code should never reach this point, but sometimes magic happens (unloaded or undefined jQuery??)
16
  // .. I am almost positive at this point this is going to fail anyways, but worth a try.
8
  /**
9
  * Explanation:
10
  * If the sript is scoped, the first argument is always passed in a localized jQuery
11
+ * variable, while the actual parameter can be aspjQuery or jQuery (or anything) as well.
12
  */
13
+ if (typeof jQuery !== "undefined") {
14
+ // Is there more than one jQuery? Let's try to find the one where ajax search pro is added
15
+ if ( typeof jQuery.fn.ajaxsearchlite == 'undefined' ) {
16
+ // Let's try noconflicting through all the versions
17
+ var temp = jQuery;
18
+ var original = jQuery;
19
+ for (var i = 0; i < 10; i++) {
20
+ if (typeof temp.fn.ajaxsearchlite == 'undefined') {
21
+ temp = jQuery.noConflict(true);
22
+ } else {
23
+ // Restore the globals to the initial, original one
24
+ if ( temp.fn.jquery != original.fn.jquery ) {
25
+ window.jQuery = window.$ = original;
26
+ }
27
+ return temp;
28
+ }
29
+ }
30
+ } else {
31
+ return jQuery;
32
+ }
33
+ }
34
 
35
  // The code should never reach this point, but sometimes magic happens (unloaded or undefined jQuery??)
36
  // .. I am almost positive at this point this is going to fail anyways, but worth a try.
js/nomin/jquery.ajaxsearchlite.js CHANGED
@@ -51,10 +51,10 @@
51
  $this.cleanUp();
52
  $this.n.textAutocomplete.val('');
53
  $this.o.resultitemheight = parseInt($this.o.resultitemheight);
54
- $this.scroll = new Object();
55
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
56
  $this.savedContainerTop = 0;
57
- $this.is_scroll = typeof $.fn.mCustScr != "undefined";
58
  // Force noscroll on minified version
59
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
60
  $this.is_scroll = false;
@@ -118,8 +118,6 @@
118
  if ( ASL.js_retain_popstate == 1 )
119
  $this.initPrevState();
120
 
121
- $this.createVerticalScroll();
122
-
123
  if (detectOldIE())
124
  $this.n.container.addClass('asl_msie');
125
 
@@ -192,71 +190,135 @@
192
  });
193
  },
194
 
195
- analytics: function(term) {
196
  var $this = this;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
 
198
- // YOAST uses __gaTracker, if not defined check for ga, if nothing go null, FUN EH??
199
- var fun = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : null);
200
- if (!window.location.origin) {
201
- window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
 
 
 
 
 
 
 
 
 
 
202
  }
203
- // Multisite Subdirectory (if exists)
204
- var url = $this.o.homeurl.replace(window.location.origin, '');
205
-
206
- if (fun != null && $this.o.analytics && $this.o.analyticsString != '') {
207
- var string = $this.o.analyticsString.replace("{asl_term}", term).replace("{asp_term}", term);
208
- fun('send', 'pageview', {
209
- 'page': url + string,
210
- 'title': 'Ajax Search'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  }
213
  },
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  createVerticalScroll: function () {
216
  var $this = this;
217
 
218
- if ( $this.is_scroll ) {
219
- $this.scroll = $this.n.results.mCustScr({
220
- contentTouchScroll: true,
221
- scrollButtons: {
222
- enable: true
223
- },
224
- callbacks: {
225
- onScroll: function () {
226
- if (isMobile()) return;
227
- var top = parseInt($('.mCSBap_container', $this.n.results).position().top);
228
- var children = $('.mCSBap_container .resdrg').children();
229
- var overall = 0;
230
- var prev = 3000;
231
- var diff = 4000;
232
- var s_diff = 10000;
233
- var s_overall = 10000;
234
- var $last = null;
235
- children.each(function () {
236
- diff = Math.abs((Math.abs(top) - overall));
237
- if (diff < prev) {
238
- s_diff = diff;
239
- s_overall = overall;
240
- $last = $(this);
241
- }
242
- overall += $(this).outerHeight(true);
243
- prev = diff;
244
- });
245
- if ($last.hasClass('group'))
246
- s_overall = s_overall + ($last.outerHeight(true) - $last.outerHeight(false));
247
-
248
- $this.scroll.mCustScr("scrollTo", $last, {
249
- scrollInertia: 200,
250
- callbacks: false
251
- });
252
- }
253
- }
254
  });
255
- // Accessibility for scroll buttons
256
- $('a.mCSBap_buttonUp').text('Scroll up the results');
257
- $('a.mCSBap_buttonDown').text('Scroll down the results');
258
  }
259
-
260
  },
261
 
262
  initEvents: function () {
@@ -276,6 +338,7 @@
276
  // Some kind of crazy rev-slider fix
277
  $this.n.text.click(function(e){
278
  $(this).focus();
 
279
  });
280
 
281
  $this.n.text.on('focus input', function(e){
@@ -433,6 +496,14 @@
433
  $('div.asl_option label', $this.n.searchsettings).click(function(e){
434
  e.preventDefault(); // Let the previous handler handle the events, disable this
435
  });
 
 
 
 
 
 
 
 
436
  },
437
 
438
  initNavigationEvent: function () {
@@ -461,41 +532,35 @@
461
  }
462
 
463
  if ($('.item', $this.n.resultsDiv).length > 0 && $this.n.resultsDiv.css('display') != 'none') {
464
- if (keycode == 40) {
465
- e.stopPropagation();
466
- e.preventDefault();
467
- $this.n.text.blur();
468
-
469
- if ($this.post != null) $this.post.abort();
470
- if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
471
- $('.item', $this.n.resultsDiv).first().addClass('hovered');
472
- } else {
473
- $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').next().next('.item').addClass('hovered');
474
  }
475
- if ($this.is_scroll) {
476
- $this.scroll.mCustScr("scrollTo", ".resdrg .item.hovered", {
477
- scrollInertia: 200,
478
- callbacks: false
479
- });
 
 
480
  }
481
- }
482
- if (keycode == 38) {
483
  e.stopPropagation();
484
  e.preventDefault();
485
- $this.n.text.blur();
486
-
487
- if ($this.post != null) $this.post.abort();
488
- if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
489
- $('.item', $this.n.resultsDiv).last().addClass('hovered');
490
- } else {
491
- $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').prev().prev('.item').addClass('hovered');
492
- }
493
- if ($this.is_scroll) {
494
- $this.scroll.mCustScr("scrollTo", ".resdrg .item.hovered", {
495
- scrollInertia: 200,
496
- callbacks: false
497
- });
498
  }
 
 
 
 
 
499
  }
500
 
501
  // Trigger click on return key
@@ -539,6 +604,7 @@
539
 
540
  var isInput = $(this).hasClass("orig");
541
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
 
542
  if ( $this.o.redirect_on_enter == 1 ) {
543
  if ($this.o.redirectEnterTo != 'first_result') {
544
  $this.doRedirectToResults($this.ktype);
@@ -604,6 +670,10 @@
604
  }
605
  if ($(this).hasClass('orig') && $this.ktype == 'click') return;
606
 
 
 
 
 
607
  if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
608
  if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
609
 
@@ -651,6 +721,10 @@
651
  $('input[type=checkbox]', $this.n.searchsettings).on('asl_chbx_change', function(){
652
  if ($this.n.text.val().length < $this.o.charcount) return;
653
  if ($this.post != null) $this.post.abort();
 
 
 
 
654
  clearTimeout(t);
655
  t = setTimeout(function() {
656
  $this.search();
@@ -842,6 +916,8 @@
842
  return false;
843
  }
844
 
 
 
845
  // New method without JSON
846
  $this.post = $.post(ASL.ajaxurl, data, function (response) {
847
  response = response.replace(/^\s*[\r\n]/gm, "");
@@ -861,7 +937,9 @@
861
 
862
  $this.n.items = $('.item', $this.n.resultsDiv);
863
 
864
- $this.analytics($this.n.text.val());
 
 
865
 
866
  if ( $this.isRedirectToFirstResult() ) {
867
  $this.doRedirectToFirstResult();
@@ -958,6 +1036,10 @@
958
 
959
  showResults: function( ) {
960
  var $this = this;
 
 
 
 
961
  switch ($this.o.resultstype) {
962
  case 'vertical':
963
  $this.showVerticalResults();
@@ -985,8 +1067,11 @@
985
  }
986
  }
987
 
988
- /*if (isMobile() && $this.o.mobile.hide_keyboard)
989
- document.activeElement.blur();*/
 
 
 
990
 
991
  $this.resultsOpened = true;
992
  },
@@ -1058,44 +1143,41 @@
1058
  $this.n.results.css({
1059
  height: 30
1060
  });
1061
- if ($this.is_scroll) {
1062
- $this.scroll.mCustScr('update');
1063
- }
1064
  $this.resize();
1065
 
1066
  // Here now we have the correct item height values with the scrollbar enabled
1067
  var i = 0;
1068
  var h = 0;
 
 
1069
 
1070
  $this.n.items.each(function () {
1071
  h += $(this).outerHeight(true);
 
 
1072
  i++;
1073
  });
1074
 
 
 
 
 
 
 
1075
  // Count the average height * viewport size
1076
  i = i < 1 ? 1 : i;
1077
  h = h / i * count;
1078
 
1079
  $this.n.results.css({
1080
- height: h
1081
  });
1082
  }
1083
 
1084
- window.sscroll = $this.scroll;
1085
-
1086
- if ($this.is_scroll) {
1087
- // Disable the scrollbar first, to avoid glitches
1088
- $this.scroll.mCustScr('disable', true);
1089
-
1090
- // After making the changes trigger an update to re-enable
1091
- $this.scroll.mCustScr('update');
1092
- }
1093
  // ..then all the other math stuff from the resize event
1094
  $this.resize();
1095
- if ($this.is_scroll) {
1096
- // .. and finally scroll back to the first item nicely
1097
- $this.scroll.mCustScr('scrollTo', 0);
1098
- }
1099
 
1100
  if ($this.o.highlight == 1) {
1101
  var wholew = (($this.o.highlightwholewords == 1) ? true : false);
@@ -1105,53 +1187,24 @@
1105
  }
1106
  $this.resize();
1107
  if ($this.n.items.length == 0) {
1108
- var h = ($('.nores', $this.n.results).outerHeight(true) > ($this.o.resultitemheight) ? ($this.o.resultitemheight) : $('.nores', $this.n.results).outerHeight(true));
1109
- if ($this.is_scroll) {
1110
- $this.n.results.css({
1111
- height: 11110
1112
- });
1113
- $this.scroll.mCustScr('update');
1114
- $this.n.results.css({
1115
- height: 'auto'
1116
- });
1117
- } else {
1118
- $this.n.results.css({
1119
- height: 'auto'
1120
- });
1121
- }
1122
- }
1123
-
1124
- if (!$this.is_scroll) {
1125
  $this.n.results.css({
1126
- 'overflowY': 'auto'
1127
  });
1128
  }
1129
 
 
 
 
 
 
 
 
 
1130
  $this.addAnimation();
1131
  $this.fixResultsPosition(true);
1132
  $this.searching = false;
1133
  },
1134
 
1135
- hideVerticalResults: function () {
1136
- var $this = this;
1137
-
1138
- $this.disableMobileScroll = false;
1139
-
1140
- $this.n.resultsDiv
1141
- .animate({
1142
- opacity: 0,
1143
- height: 0
1144
- }, {
1145
- duration: 120,
1146
- complete: function () {
1147
- $(this).css({
1148
- visibility: "hidden",
1149
- display: "none"
1150
- });
1151
- }
1152
- });
1153
- },
1154
-
1155
  addAnimation: function () {
1156
  var $this = this;
1157
  var i = 0;
@@ -1235,8 +1288,16 @@
1235
  $this.n.searchsettings.removeClass($this.settAnim.hideClass).addClass($this.settAnim.showClass);
1236
 
1237
  if ($this.settScroll == null && ($this.is_scroll) ) {
1238
- $this.settScroll = $('.asl_sett_scroll', $this.n.searchsettings).mCustScr({
1239
- contentTouchScroll: true
 
 
 
 
 
 
 
 
1240
  });
1241
  }
1242
  $this.n.prosettings.data('opened', 1);
51
  $this.cleanUp();
52
  $this.n.textAutocomplete.val('');
53
  $this.o.resultitemheight = parseInt($this.o.resultitemheight);
54
+ $this.scroll = {};
55
  $this.savedScrollTop = 0; // Save the window scroll on IOS devices
56
  $this.savedContainerTop = 0;
57
+ $this.is_scroll = typeof asl_SimpleBar != "undefined";
58
  // Force noscroll on minified version
59
  if ( typeof ASL.scrollbar != "undefined" && ASL.scrollbar == 0 )
60
  $this.is_scroll = false;
118
  if ( ASL.js_retain_popstate == 1 )
119
  $this.initPrevState();
120
 
 
 
121
  if (detectOldIE())
122
  $this.n.container.addClass('asl_msie');
123
 
190
  });
191
  },
192
 
193
+ gaPageview: function(term) {
194
  var $this = this;
195
+ var tracking_id = $this.gaGetTrackingID();
196
+
197
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'pageview' )
198
+ return false;
199
+
200
+ if ( ASL.analytics.string != '' ) {
201
+ // YOAST uses __gaTracker, if not defined check for ga, if nothing go null, FUN EH??
202
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
203
+ var _gtag = typeof gtag == "function" ? gtag : false;
204
+
205
+ if (!window.location.origin) {
206
+ window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
207
+ }
208
+ // Multisite Subdirectory (if exists)
209
+ var url = $this.o.homeurl.replace(window.location.origin, '');
210
 
211
+ // GTAG bypass pageview tracking method
212
+ if ( _gtag !== false ) {
213
+ if ( tracking_id !== false ) {
214
+ _gtag('config', tracking_id, {'page_path': url + ASL.analytics.string.replace("{asl_term}", term)});
215
+ }
216
+ } else if ( _ga !== false ) {
217
+ if ( tracking_id !== false ) {
218
+ _ga('create', tracking_id, 'auto');
219
+ }
220
+ _ga('send', 'pageview', {
221
+ 'page': url + ASL.analytics.string.replace("{asl_term}", term),
222
+ 'title': 'Ajax Search'
223
+ });
224
+ }
225
  }
226
+ },
227
+
228
+ gaEvent: function(which, data) {
229
+ var $this = this;
230
+ var tracking_id = $this.gaGetTrackingID();
231
+
232
+ if ( typeof ASL.analytics == 'undefined' || ASL.analytics.method != 'event' )
233
+ return false;
234
+
235
+ // Get the scope
236
+ var _gtag = typeof gtag == "function" ? gtag : false;
237
+ var _ga = typeof __gaTracker == "function" ? __gaTracker : (typeof ga == "function" ? ga : false);
238
+
239
+ if ( _gtag === false && _ga === false )
240
+ return false;
241
+
242
+ if (
243
+ typeof (ASL.analytics.event[which]) != 'undefined' &&
244
+ ASL.analytics.event[which].active == 1 &&
245
+ typeof 'gtag' != 'undefined'
246
+ ) {
247
+ var def_data = {
248
+ "search_id": $this.o.id,
249
+ "search_name": $this.o.name,
250
+ "phrase": $this.n.text.val(),
251
+ "option_name": '',
252
+ "option_value": '',
253
+ "result_title": '',
254
+ "result_url": '',
255
+ "results_count": ''
256
+ };
257
+ var event = {
258
+ 'event_category': ASL.analytics.event[which].category,
259
+ 'event_label': ASL.analytics.event[which].label,
260
+ 'value': ASL.analytics.event[which].value
261
+ };
262
+ data = $.extend(def_data, data);
263
+ $.each(data, function (k, v) {
264
+ v = String(v).replace(/[\s\n\r]+/g, " ").trim();
265
+ $.each(event, function (kk, vv) {
266
+ var regex = new RegExp('\{' + k + '\}', 'gmi');
267
+ event[kk] = vv.replace(regex, v);
268
+ });
269
  });
270
+ if ( _gtag === false ) {
271
+ if ( tracking_id !== false ) {
272
+ _ga('create', tracking_id, 'auto');
273
+ }
274
+ _ga('send', 'event',
275
+ event.event_category,
276
+ ASL.analytics.event[which].action,
277
+ event.event_label,
278
+ event.value
279
+ );
280
+ } else {
281
+ if ( tracking_id !== false ) {
282
+ event.send_to = tracking_id;
283
+ }
284
+ _gtag('event', ASL.analytics.event[which].action, event);
285
+ }
286
  }
287
  },
288
 
289
+ gaGetTrackingID: function() {
290
+ var $this = this;
291
+ var ret = false;
292
+
293
+ if ( typeof ASL.analytics == 'undefined' )
294
+ return ret;
295
+
296
+ if ( typeof ASL.analytics.tracking_id != 'undefined' && ASL.analytics.tracking_id != '' ) {
297
+ return ASL.analytics.tracking_id;
298
+ } else {
299
+ // GTAG bypass pageview tracking method
300
+ var _gtag = typeof gtag == "function" ? gtag : false;
301
+ if ( _gtag !== false && typeof ga != 'undefined' && typeof ga.getAll != 'undefined' ) {
302
+ var id = false;
303
+ ga.getAll().forEach( function(tracker) {
304
+ id = tracker.get('trackingId');
305
+ });
306
+ return id;
307
+ }
308
+ }
309
+
310
+ return ret;
311
+ },
312
+
313
  createVerticalScroll: function () {
314
  var $this = this;
315
 
316
+ if ( $this.is_scroll && typeof $this.scroll.recalculate === 'undefined' ) {
317
+ $this.scroll = new asl_SimpleBar($this.n.results.get(0), {
318
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
319
+ autoHide: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  });
 
 
 
321
  }
 
322
  },
323
 
324
  initEvents: function () {
338
  // Some kind of crazy rev-slider fix
339
  $this.n.text.click(function(e){
340
  $(this).focus();
341
+ $this.gaEvent('focus');
342
  });
343
 
344
  $this.n.text.on('focus input', function(e){
496
  $('div.asl_option label', $this.n.searchsettings).click(function(e){
497
  e.preventDefault(); // Let the previous handler handle the events, disable this
498
  });
499
+
500
+ // GTAG on results click
501
+ $this.n.resultsDiv.on('click', '.results .item', function() {
502
+ $this.gaEvent('result_click', {
503
+ 'result_title': $(this).find('a.asl_res_url').text(),
504
+ 'result_url': $(this).find('a.asl_res_url').attr('href')
505
+ });
506
+ });
507
  },
508
 
509
  initNavigationEvent: function () {
532
  }
533
 
534
  if ($('.item', $this.n.resultsDiv).length > 0 && $this.n.resultsDiv.css('display') != 'none') {
535
+ if ( keycode == 40 || keycode == 38 ) {
536
+ if (keycode == 40) {
537
+ $this.n.text.blur();
538
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
539
+ $('.item', $this.n.resultsDiv).first().addClass('hovered');
540
+ } else {
541
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').next('.item').addClass('hovered');
542
+ }
 
 
543
  }
544
+ if (keycode == 38) {
545
+ $this.n.text.blur();
546
+ if ($('.item.hovered', $this.n.resultsDiv).length == 0) {
547
+ $('.item', $this.n.resultsDiv).last().addClass('hovered');
548
+ } else {
549
+ $('.item.hovered', $this.n.resultsDiv).removeClass('hovered').prev('.item').addClass('hovered');
550
+ }
551
  }
 
 
552
  e.stopPropagation();
553
  e.preventDefault();
554
+ var $container = $this.is_scroll ? $( $this.scroll.getScrollElement() ) : $this.n.results;
555
+ var $scrollTo = $this.n.resultsDiv.find('.resdrg .item.hovered');
556
+ if ( $scrollTo.length == 0 ) {
557
+ $scrollTo = $this.n.resultsDiv.children().first();
 
 
 
 
 
 
 
 
 
558
  }
559
+ $container.animate({
560
+ "scrollTop": $scrollTo.offset().top - $container.offset().top + $container.scrollTop()
561
+ }, {
562
+ "duration": 120
563
+ });
564
  }
565
 
566
  // Trigger click on return key
604
 
605
  var isInput = $(this).hasClass("orig");
606
  if ( $this.n.text.val().length >= $this.o.charcount && isInput && $this.ktype == 'keyup' && $this.keycode == 13 ) {
607
+ $this.gaEvent('return');
608
  if ( $this.o.redirect_on_enter == 1 ) {
609
  if ($this.o.redirectEnterTo != 'first_result') {
610
  $this.doRedirectToResults($this.ktype);
670
  }
671
  if ($(this).hasClass('orig') && $this.ktype == 'click') return;
672
 
673
+ if ( !isInput && $this.ktype == 'click' ) {
674
+ $this.gaEvent('magnifier');
675
+ }
676
+
677
  if ($this.o.trigger_on_click == 0 && $this.ktype == 'click') return;
678
  if ($this.o.triggerontype == 0 && $this.ktype == 'input') return;
679
 
721
  $('input[type=checkbox]', $this.n.searchsettings).on('asl_chbx_change', function(){
722
  if ($this.n.text.val().length < $this.o.charcount) return;
723
  if ($this.post != null) $this.post.abort();
724
+ $this.gaEvent('facet_change', {
725
+ 'option_label': $(this).closest('fieldset').find('legend').text(),
726
+ 'option_value': $(this).closest('.asl_option').find('.asl_option_label').text() + ($(this).prop('checked') ? '(checked)' : '(unchecked)')
727
+ });
728
  clearTimeout(t);
729
  t = setTimeout(function() {
730
  $this.search();
916
  return false;
917
  }
918
 
919
+ $this.gaEvent('search_start');
920
+
921
  // New method without JSON
922
  $this.post = $.post(ASL.ajaxurl, data, function (response) {
923
  response = response.replace(/^\s*[\r\n]/gm, "");
937
 
938
  $this.n.items = $('.item', $this.n.resultsDiv);
939
 
940
+ $this.gaEvent('search_end', {'results_count':$this.n.items.length});
941
+
942
+ $this.gaPageview($this.n.text.val());
943
 
944
  if ( $this.isRedirectToFirstResult() ) {
945
  $this.doRedirectToFirstResult();
1036
 
1037
  showResults: function( ) {
1038
  var $this = this;
1039
+
1040
+ // Create the scrollbars if needed
1041
+ $this.createVerticalScroll();
1042
+
1043
  switch ($this.o.resultstype) {
1044
  case 'vertical':
1045
  $this.showVerticalResults();
1067
  }
1068
  }
1069
 
1070
+ if ( $this.is_scroll && typeof $this.scroll.recalculate !== 'undefined' ) {
1071
+ setTimeout(function(){
1072
+ $this.scroll.recalculate();
1073
+ }, 500);
1074
+ }
1075
 
1076
  $this.resultsOpened = true;
1077
  },
1143
  $this.n.results.css({
1144
  height: 30
1145
  });
 
 
 
1146
  $this.resize();
1147
 
1148
  // Here now we have the correct item height values with the scrollbar enabled
1149
  var i = 0;
1150
  var h = 0;
1151
+ var final_h = 0;
1152
+ var highest = 0;
1153
 
1154
  $this.n.items.each(function () {
1155
  h += $(this).outerHeight(true);
1156
+ if ($(this).outerHeight(true) > highest)
1157
+ highest = $(this).outerHeight(true);
1158
  i++;
1159
  });
1160
 
1161
+ // Get an initial height based on the highest item x viewport
1162
+ final_h = highest * count;
1163
+ // Reduce the final height to the overall height if exceeds it
1164
+ if (final_h > h)
1165
+ final_h = h;
1166
+
1167
  // Count the average height * viewport size
1168
  i = i < 1 ? 1 : i;
1169
  h = h / i * count;
1170
 
1171
  $this.n.results.css({
1172
+ height: final_h
1173
  });
1174
  }
1175
 
 
 
 
 
 
 
 
 
 
1176
  // ..then all the other math stuff from the resize event
1177
  $this.resize();
1178
+
1179
+ // Mark the last item
1180
+ $this.n.items.last().addClass('asp_last_item');
 
1181
 
1182
  if ($this.o.highlight == 1) {
1183
  var wholew = (($this.o.highlightwholewords == 1) ? true : false);
1187
  }
1188
  $this.resize();
1189
  if ($this.n.items.length == 0) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1190
  $this.n.results.css({
1191
+ height: 'auto'
1192
  });
1193
  }
1194
 
1195
+ $this.n.results.css({
1196
+ 'overflowY': 'auto'
1197
+ });
1198
+
1199
+ // Scroll to top
1200
+ var $container = $this.is_scroll ? $($this.scroll.getScrollElement()) : $this.n.results;
1201
+ $container.scrollTop(0);
1202
+
1203
  $this.addAnimation();
1204
  $this.fixResultsPosition(true);
1205
  $this.searching = false;
1206
  },
1207
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1208
  addAnimation: function () {
1209
  var $this = this;
1210
  var i = 0;
1288
  $this.n.searchsettings.removeClass($this.settAnim.hideClass).addClass($this.settAnim.showClass);
1289
 
1290
  if ($this.settScroll == null && ($this.is_scroll) ) {
1291
+ $this.settScroll = [];
1292
+ $('.asl_sett_scroll', $this.n.searchsettings).each(function(i, o){
1293
+ var _this = this;
1294
+ // Small delay to fix a rendering issue
1295
+ setTimeout(function(){
1296
+ $this.settScroll[i] = new asl_SimpleBar($(_this).get(0), {
1297
+ direction: $('body').hasClass('rtl') ? 'rtl' : 'ltr',
1298
+ autoHide: true
1299
+ });
1300
+ }, 20);
1301
  });
1302
  }
1303
  $this.n.prosettings.data('opened', 1);
js/nomin/jquery.mCustomScrollbar.js DELETED
@@ -1,6 +0,0 @@
1
- /* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */
2
- !function(a){"function"==typeof define&&false&&define.amd?define(["jquery"],a):"object"==typeof exports&&false?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&false&&define.amd?define(["jquery"],a):"object"==typeof exports&&false?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
3
- /* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
4
- if (typeof jQuery.fn.mCustScr == "undefined") {
5
- !function(e){"function"==typeof define&&false&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&false&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&false&&define.amd,a="undefined"!=typeof module&&false&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustScr",a="mCSap",n=".mCustScr",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSBap_dragger_onDrag","mCSBap_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSBap_draggerContainer","mCSBap_buttonUp","mCSBap_buttonDown","mCSBap_buttonLeft","mCSBap_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustScr(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSBap_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSBap_"+n.idx+"_container"),l=e("#mCSBap_"+n.idx),s=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSBap_"+i.idx),s=e("#mCSBap_"+i.idx+"_container"),c=e(".mCSBap_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSBap_"+n.idx+"_scrollbar_vertical' class='mCSBap_scrollTools mCSBap_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSBap_"+n.idx+"_dragger_vertical' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /></div><div class='mCSBap_draggerRail' /></div></div>","<div id='mCSBap_"+n.idx+"_scrollbar_horizontal' class='mCSBap_scrollTools mCSBap_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSBap_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSBap_"+n.idx+"_dragger_horizontal' class='mCSBap_dragger' style='position:absolute;'><div class='mCSBap_dragger_bar' /></div><div class='mCSBap_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSBap_vertical_horizontal":"x"===i.axis?"mCSBap_horizontal":"mCSBap_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSBap_"+n.idx+"_container_wrapper' class='mCSBap_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSBap_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSBap_"+n.idx+"_container' class='mCSBap_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSBap_"+n.idx),p=e("#mCSBap_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSBap_outside").after(c)):(m.addClass("mCSBap_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSBap_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSBap_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSBap_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSBap_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSBap_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSBap_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSBap_"+o.idx),i=e("#mCSBap_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSBap_"+o.idx),r=e("#mCSBap_"+o.idx+"_container"),l=[e("#mCSBap_"+o.idx+"_dragger_vertical"),e("#mCSBap_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSBap_"+o.idx+"_scrollbar",l=e("#mCSBap_"+o.idx+",#mCSBap_"+o.idx+"_container,#mCSBap_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSBap_"+o.idx+"_dragger_vertical,#mCSBap_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSBap_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSBap_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSBap_"+n.idx+"_container"),s=[e("#mCSBap_"+n.idx+"_scrollbar_vertical"),e("#mCSBap_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSBap_dragger"),s[1].find(".mCSBap_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSBap_"+l.idx+"_dragger_vertical","mCSBap_"+l.idx+"_dragger_horizontal"],h=e("#mCSBap_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSBap_"+B.idx),I=e("#mCSBap_"+B.idx+"_container"),D=[e("#mCSBap_"+B.idx+"_dragger_vertical"),e("#mCSBap_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSBap_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSBap_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSBap_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSBap_"+n.idx),c=[e("#mCSBap_"+n.idx+"_dragger_vertical"),e("#mCSBap_"+n.idx+"_dragger_horizontal")],d=e("#mCSBap_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSBap_"+n.idx+"_container"),l=r.parent(),s=e(".mCSBap_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSBap_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSBap_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSBap_dragger");if(i.parent(".mCSBap_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSBap_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSBap_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSBap_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSBap_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSBap_"+n.idx),c=e("#mCSBap_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSBap_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSBap_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
6
- return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSBap_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSBap_"+o.idx+"_container,#mCSBap_"+o.idx+"_container_wrapper,#mCSBap_"+o.idx+"_dragger_vertical,#mCSBap_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSBap_"+s.idx),h=e("#mCSBap_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSBap_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSBap_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSBap_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSBap_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSBap_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||func