Version Description
- May 20, 2020 =
- FIX - Added fix for when using Masonry and Filters add-on. Filter would become inaccessible after the first first attempt.
- FIX - Added fix for new WooCommerce Add-on and SPA sites throwing an error about undefined variable.
- UPDATE - Updated a11y focus feature for users with
transition_container=false
. Focus will now be set on the newly added items.
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 5.3.3 |
Comparing to | |
See all releases |
Code changes from version 5.3.0 to 5.3.3
- README.txt +23 -2
- admin/admin.php +6 -17
- admin/dist/css/admin.css +26 -17
- admin/shortcode-builder/components/nextpage.php +3 -3
- admin/shortcode-builder/components/paging.php +27 -0
- admin/shortcode-builder/js/shortcode-builder.js +16 -5
- admin/shortcode-builder/shortcode-builder.php +0 -0
- admin/src/scss/partials/_pro-listing.scss +26 -12
- admin/views/extensions.php +0 -0
- ajax-load-more.php +7 -6
- core/classes/class.alm-localize.php +0 -0
- core/classes/class.alm-shortcode.php +13 -11
- core/classes/includes/preloaded.php +3 -3
- core/dist/css/ajax-load-more.css +0 -0
- core/dist/css/ajax-load-more.min.css +0 -0
- core/dist/js/ajax-load-more.js +4790 -4481
- core/dist/js/ajax-load-more.min.js +3 -3
- core/functions.php +0 -0
- core/src/js/addons/seo.js +132 -0
- core/src/js/addons/singleposts.js +64 -0
- core/src/js/{modules → addons}/woocommerce.js +1 -4
- core/src/js/ajax-load-more.js +165 -154
- core/src/js/helpers/almAppendChild.js +0 -0
- core/src/js/helpers/almAppendChildren.js +0 -0
- core/src/js/helpers/polyfills.js +0 -0
- core/src/js/helpers/srcsetPolyfill.js +0 -0
- core/src/js/helpers/tableWrap.js +0 -0
- core/src/js/modules/fadeIn.js +0 -0
- core/src/js/modules/fadeOut.js +0 -0
- core/src/js/modules/insertScript.js +0 -0
- core/src/js/modules/masonry.js +18 -2
- core/src/js/modules/setFocus.js +29 -17
- core/src/js/modules/singleposts.js +0 -30
- core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js +0 -0
- core/src/scss/ajax-load-more.scss +0 -0
- lang/ajax-load-more.pot +65 -53
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
|
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.4.
|
7 |
-
Stable tag: 5.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -383,6 +383,27 @@ How to install Ajax Load More.
|
|
383 |
|
384 |
== Changelog ==
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
= 5.3.0 - April 22, 2020 =
|
387 |
* NEW - Added support and core functionality for new [WooCommerce add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/).
|
388 |
* NEW - Added new `White` & `Light Grey` loading style.
|
3 |
Donate link: https://connekthq.com/donate/
|
4 |
Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.4.1
|
7 |
+
Stable tag: 5.3.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
383 |
|
384 |
== Changelog ==
|
385 |
|
386 |
+
= 5.3.3 - May 20, 2020 =
|
387 |
+
* FIX - Added fix for when using Masonry and Filters add-on. Filter would become inaccessible after the first first attempt.
|
388 |
+
* FIX - Added fix for new WooCommerce Add-on and SPA sites throwing an error about undefined variable.
|
389 |
+
* UPDATE - Updated a11y focus feature for users with `transition_container=false`. Focus will now be set on the newly added items.
|
390 |
+
|
391 |
+
|
392 |
+
= 5.3.2 - May 19, 2020 =
|
393 |
+
* SECURITY FIX - Added security fix for a possible authenticated SQL injection. Attacker needs to be authenticated, with edit_theme_options capability. (Read More)[https://wpvulndb.com/vulnerabilities/10230]
|
394 |
+
* FIX - Fix for accidental `print_r` left inside a WooCommerce function. Sorry!
|
395 |
+
|
396 |
+
|
397 |
+
= 5.3.1 - May 1, 2020 =
|
398 |
+
* NEW - Added support for creating paged URLs with the SEO add-on and Masonry.
|
399 |
+
* UPDATE - Improved accessiblity of element focus feature by implementing native browser support (`preventScroll`) for focusing on elements without scrolling after an Ajax load. There is still a slight jump on mobile safari and chrome for iOS. Hopefully these browsers will implement better native support for [preventScroll](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus)
|
400 |
+
* UPDATE - Removed `Top of Page` global ALM setting.
|
401 |
+
* FIX - Add accessibility fix for when using Masonry transition. New item is now auto focused after an Ajax load.
|
402 |
+
* FIX - Fixed issue with Destroy After not working correctly after being filtered.
|
403 |
+
* FIX - Fixed bug with CTA and Preloaded add-ons. If `cta="false"` was set Ajax Load More may still render the CTA is some cases.
|
404 |
+
* FIX- Fixed issue with custom Filtering and Masonry not appending items after a filter.
|
405 |
+
|
406 |
+
|
407 |
= 5.3.0 - April 22, 2020 =
|
408 |
* NEW - Added support and core functionality for new [WooCommerce add-on](https://connekthq.com/plugins/ajax-load-more/add-ons/woocommerce/).
|
409 |
* NEW - Added new `White` & `Light Grey` loading style.
|
admin/admin.php
CHANGED
@@ -1252,7 +1252,8 @@ function alm_update_repeater(){
|
|
1252 |
if($t === 'default') $n = 'default';
|
1253 |
if($t === 'unlimited') $table_name = $wpdb->prefix . "alm_unlimited";
|
1254 |
|
1255 |
-
|
|
|
1256 |
|
1257 |
echo $the_repeater; // Return repeater value
|
1258 |
|
@@ -1482,6 +1483,7 @@ function alm_admin_init(){
|
|
1482 |
'alm_general_settings'
|
1483 |
);
|
1484 |
|
|
|
1485 |
add_settings_field( // Scroll to top on load
|
1486 |
'_alm_scroll_top',
|
1487 |
__('Top of Page', 'ajax-load-more' ),
|
@@ -1489,6 +1491,7 @@ function alm_admin_init(){
|
|
1489 |
'ajax-load-more',
|
1490 |
'alm_general_settings'
|
1491 |
);
|
|
|
1492 |
|
1493 |
add_settings_field( // Uninstall
|
1494 |
'_alm_uninstall',
|
@@ -1852,23 +1855,9 @@ function alm_btn_color_callback() {
|
|
1852 |
$html .= '<button style="cursor: pointer;" type="button" class="alm-load-more-btn'. $loadingClass .'" id="test-alm-button">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button>';
|
1853 |
|
1854 |
$html .= '</div>';
|
1855 |
-
|
1856 |
|
1857 |
-
|
1858 |
-
?>
|
1859 |
-
|
1860 |
-
<script>
|
1861 |
-
// Button Preview Toggle
|
1862 |
-
// Toggle button state if not Infinite loading style
|
1863 |
-
jQuery('button#test-alm-button').click(function() {
|
1864 |
-
var almWrap = document.querySelector('.alm-btn-wrap .ajax-load-more-wrap');
|
1865 |
-
if (!almWrap.classList.contains('infinite')){
|
1866 |
-
jQuery(this).toggleClass('loading');
|
1867 |
-
}
|
1868 |
-
});
|
1869 |
-
</script>
|
1870 |
-
|
1871 |
-
<?php
|
1872 |
}
|
1873 |
|
1874 |
|
1252 |
if($t === 'default') $n = 'default';
|
1253 |
if($t === 'unlimited') $table_name = $wpdb->prefix . "alm_unlimited";
|
1254 |
|
1255 |
+
//$the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '$n'");
|
1256 |
+
$the_repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '".esc_sql($n)."'");
|
1257 |
|
1258 |
echo $the_repeater; // Return repeater value
|
1259 |
|
1483 |
'alm_general_settings'
|
1484 |
);
|
1485 |
|
1486 |
+
/*
|
1487 |
add_settings_field( // Scroll to top on load
|
1488 |
'_alm_scroll_top',
|
1489 |
__('Top of Page', 'ajax-load-more' ),
|
1491 |
'ajax-load-more',
|
1492 |
'alm_general_settings'
|
1493 |
);
|
1494 |
+
*/
|
1495 |
|
1496 |
add_settings_field( // Uninstall
|
1497 |
'_alm_uninstall',
|
1855 |
$html .= '<button style="cursor: pointer;" type="button" class="alm-load-more-btn'. $loadingClass .'" id="test-alm-button">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button>';
|
1856 |
|
1857 |
$html .= '</div>';
|
1858 |
+
$html .= '</div>';
|
1859 |
|
1860 |
+
echo $html;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1861 |
}
|
1862 |
|
1863 |
|
admin/dist/css/admin.css
CHANGED
@@ -603,21 +603,21 @@ disabled look for disabled choices in the results dropdown
|
|
603 |
display: flex;
|
604 |
-ms-flex-wrap: wrap;
|
605 |
flex-wrap: wrap;
|
606 |
-
|
607 |
-
|
608 |
-
justify-content: space-between; }
|
609 |
.alm-pro-listing .item {
|
610 |
-
width:
|
611 |
display: -webkit-box;
|
612 |
display: -ms-flexbox;
|
613 |
display: flex;
|
614 |
-
margin
|
615 |
@media screen and (min-width: 1500px) {
|
616 |
.alm-pro-listing .item {
|
617 |
-
width:
|
618 |
@media screen and (max-width: 480px) {
|
619 |
.alm-pro-listing .item {
|
620 |
-
width: 100%;
|
|
|
621 |
.alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
|
622 |
-webkit-transition: all 0.15s ease;
|
623 |
transition: all 0.15s ease; }
|
@@ -632,9 +632,9 @@ disabled look for disabled choices in the results dropdown
|
|
632 |
-webkit-transition: all 0.15s ease;
|
633 |
transition: all 0.15s ease;
|
634 |
border-radius: 2px; }
|
635 |
-
@media screen and (
|
636 |
.alm-pro-listing .item a {
|
637 |
-
padding: 0
|
638 |
.alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
|
639 |
border-color: #bbb; }
|
640 |
.alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
|
@@ -646,10 +646,10 @@ disabled look for disabled choices in the results dropdown
|
|
646 |
display: -webkit-box;
|
647 |
display: -ms-flexbox;
|
648 |
display: flex;
|
649 |
-
-webkit-box-align:
|
650 |
-
-ms-flex-align:
|
651 |
-
align-items:
|
652 |
-
@media screen and (
|
653 |
.alm-pro-listing .item--detail {
|
654 |
display: block;
|
655 |
text-align: center; }
|
@@ -660,10 +660,7 @@ disabled look for disabled choices in the results dropdown
|
|
660 |
.alm-pro-listing .item--detail img {
|
661 |
width: 110px;
|
662 |
height: auto;
|
663 |
-
margin-right:
|
664 |
-
@media screen and (max-width: 768px) {
|
665 |
-
.alm-pro-listing .item--detail img {
|
666 |
-
display: none; } }
|
667 |
.alm-pro-listing .item--detail a {
|
668 |
text-decoration: none; }
|
669 |
.alm-pro-listing .item--detail a:hover, .alm-pro-listing .item--detail a:focus {
|
@@ -694,6 +691,18 @@ disabled look for disabled choices in the results dropdown
|
|
694 |
opacity: 0;
|
695 |
-webkit-transition: opacity 0.15s ease;
|
696 |
transition: opacity 0.15s ease; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
.alm-pro-listing .item .result {
|
698 |
position: absolute;
|
699 |
right: 6px;
|
603 |
display: flex;
|
604 |
-ms-flex-wrap: wrap;
|
605 |
flex-wrap: wrap;
|
606 |
+
width: calc(100% + 10px);
|
607 |
+
margin-left: -5px; }
|
|
|
608 |
.alm-pro-listing .item {
|
609 |
+
width: calc(50% - 10px);
|
610 |
display: -webkit-box;
|
611 |
display: -ms-flexbox;
|
612 |
display: flex;
|
613 |
+
margin: 0 5px 10px; }
|
614 |
@media screen and (min-width: 1500px) {
|
615 |
.alm-pro-listing .item {
|
616 |
+
width: calc(33.333% - 10px); } }
|
617 |
@media screen and (max-width: 480px) {
|
618 |
.alm-pro-listing .item {
|
619 |
+
width: 100%;
|
620 |
+
margin: 0 0 10px; } }
|
621 |
.alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
|
622 |
-webkit-transition: all 0.15s ease;
|
623 |
transition: all 0.15s ease; }
|
632 |
-webkit-transition: all 0.15s ease;
|
633 |
transition: all 0.15s ease;
|
634 |
border-radius: 2px; }
|
635 |
+
@media screen and (max-width: 1100px) {
|
636 |
.alm-pro-listing .item a {
|
637 |
+
padding: 0 10px 20px; } }
|
638 |
.alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
|
639 |
border-color: #bbb; }
|
640 |
.alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
|
646 |
display: -webkit-box;
|
647 |
display: -ms-flexbox;
|
648 |
display: flex;
|
649 |
+
-webkit-box-align: start;
|
650 |
+
-ms-flex-align: start;
|
651 |
+
align-items: flex-start; }
|
652 |
+
@media screen and (max-width: 1100px) {
|
653 |
.alm-pro-listing .item--detail {
|
654 |
display: block;
|
655 |
text-align: center; }
|
660 |
.alm-pro-listing .item--detail img {
|
661 |
width: 110px;
|
662 |
height: auto;
|
663 |
+
margin-right: 20px; }
|
|
|
|
|
|
|
664 |
.alm-pro-listing .item--detail a {
|
665 |
text-decoration: none; }
|
666 |
.alm-pro-listing .item--detail a:hover, .alm-pro-listing .item--detail a:focus {
|
691 |
opacity: 0;
|
692 |
-webkit-transition: opacity 0.15s ease;
|
693 |
transition: opacity 0.15s ease; }
|
694 |
+
.alm-pro-listing .item--detail .highlight-addon {
|
695 |
+
padding-top: 15px;
|
696 |
+
font-size: 12px;
|
697 |
+
margin: 0; }
|
698 |
+
.alm-pro-listing .item--detail .highlight-addon span {
|
699 |
+
display: inline-block;
|
700 |
+
padding: 5px;
|
701 |
+
position: relative;
|
702 |
+
left: -5px;
|
703 |
+
line-height: 1;
|
704 |
+
background-color: #ffffe8;
|
705 |
+
font-weight: 500; }
|
706 |
.alm-pro-listing .item .result {
|
707 |
position: absolute;
|
708 |
right: 6px;
|
admin/shortcode-builder/components/nextpage.php
CHANGED
@@ -89,14 +89,14 @@
|
|
89 |
<div class="half">
|
90 |
<label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
|
91 |
<select class="alm_element" name="next-page-scroll" id="next-page-scroll">
|
92 |
-
<option value="true"
|
93 |
-
<option value="false"><?php _e('False', 'ajax-load-more'); ?></option>
|
94 |
</select>
|
95 |
</div>
|
96 |
<div class="half">
|
97 |
<label for="next-page-scroll-top" class="full">
|
98 |
<?php _e('Scroll Top', 'ajax-load-more'); ?>
|
99 |
-
<a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The scrolltop position of the window (used with scrolling and fwd/back browser buttons).','ajax-load-more'); ?>"></a>
|
100 |
</label>
|
101 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
102 |
</div>
|
89 |
<div class="half">
|
90 |
<label for="next-page-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
|
91 |
<select class="alm_element" name="next-page-scroll" id="next-page-scroll">
|
92 |
+
<option value="true"><?php _e('True', 'ajax-load-more'); ?></option>
|
93 |
+
<option value="false" selected="selected"><?php _e('False', 'ajax-load-more'); ?></option>
|
94 |
</select>
|
95 |
</div>
|
96 |
<div class="half">
|
97 |
<label for="next-page-scroll-top" class="full">
|
98 |
<?php _e('Scroll Top', 'ajax-load-more'); ?>
|
99 |
+
<a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The scrolltop position of the browser window (used with scrolling and fwd/back browser buttons).','ajax-load-more'); ?>"></a>
|
100 |
</label>
|
101 |
<input id="next-page-scroll-top" name="next-page-scroll-top" class="alm_element sm" type="number" min="0" max="1000" step="1" value="30" placeholder="30">
|
102 |
</div>
|
admin/shortcode-builder/components/paging.php
CHANGED
@@ -50,6 +50,33 @@
|
|
50 |
</div>
|
51 |
</section>
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
<section>
|
54 |
<div class="shortcode-builder--label">
|
55 |
<h4><?php _e('Controls', 'ajax-load-more'); ?></h4>
|
50 |
</div>
|
51 |
</section>
|
52 |
|
53 |
+
<?php if( ALM_PAGING_VERSION > '1.5.2'){ ?>
|
54 |
+
<section>
|
55 |
+
<div class="shortcode-builder--label">
|
56 |
+
<h4><?php _e('Scroll', 'ajax-load-more'); ?></h4>
|
57 |
+
<p><?php _e('Move users to the top of the Ajax Load More container after a paging click event.', 'ajax-load-more'); ?></p>
|
58 |
+
</div>
|
59 |
+
<div class="shortcode-builder--fields">
|
60 |
+
<section class="first">
|
61 |
+
<div class="half">
|
62 |
+
<label for="paging-scroll" class="full"><?php _e('Enable Scrolling', 'ajax-load-more'); ?></label>
|
63 |
+
<select class="alm_element" name="paging-scroll" id="paging-scroll">
|
64 |
+
<option value="true" selected="selected"><?php _e('True', 'ajax-load-more'); ?></option>
|
65 |
+
<option value="false"><?php _e('False', 'ajax-load-more'); ?></option>
|
66 |
+
</select>
|
67 |
+
</div>
|
68 |
+
<div class="half paging-scrolltop-wrap">
|
69 |
+
<label for="paging-scrolltop" class="full">
|
70 |
+
<?php _e('Scroll Top', 'ajax-load-more'); ?>
|
71 |
+
<a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('The scrolltop position of the browser window when scrolling back to top.','ajax-load-more'); ?>"></a>
|
72 |
+
</label>
|
73 |
+
<input id="paging-scrolltop" name="paging-scrolltop" class="alm_element sm" type="number" min="0" max="1000" step="1" value="100" placeholder="100">
|
74 |
+
</div>
|
75 |
+
</section>
|
76 |
+
</div>
|
77 |
+
</section>
|
78 |
+
<?php } ?>
|
79 |
+
|
80 |
<section>
|
81 |
<div class="shortcode-builder--label">
|
82 |
<h4><?php _e('Controls', 'ajax-load-more'); ?></h4>
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -436,26 +436,37 @@ jQuery(document).ready(function($) {
|
|
436 |
var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
|
437 |
var paging_show_at_most = $('#alm-paging input#show-at-most').val();
|
438 |
var paging_classes = $('#alm-paging input#paging-classes').val();
|
|
|
|
|
439 |
|
440 |
var paging_first_label = $('#alm-paging input#paging-first-label').val();
|
441 |
var paging_last_label = $('#alm-paging input#paging-last-label').val();
|
442 |
var paging_previous_label = $('#alm-paging input#paging-previous-label').val();
|
443 |
var paging_next_label = $('#alm-paging input#paging-next-label').val();
|
444 |
-
|
445 |
if(paging !== 'false' && paging != undefined){
|
446 |
output += ' paging="'+paging+'"';
|
447 |
-
|
|
|
|
|
|
|
448 |
if(paging_show_at_most !== ''){
|
449 |
output += ' paging_show_at_most="'+paging_show_at_most+'"';
|
450 |
}
|
451 |
-
if(
|
452 |
-
|
|
|
|
|
|
|
|
|
453 |
}
|
|
|
454 |
$('#nav-controls').slideDown(250, 'alm_easeInOutQuad');
|
|
|
|
|
455 |
|
456 |
if(paging_controls === 'true'){
|
457 |
$('#paging-controls-nav').slideDown(250, 'alm_easeInOutQuad');
|
458 |
-
|
459 |
output += (paging_first_label !== '') ? ' paging_first_label="'+paging_first_label+'"' : '';
|
460 |
output += (paging_last_label !== '') ? ' paging_last_label="'+paging_last_label+'"' : '';
|
461 |
output += (paging_previous_label !== '') ? ' paging_previous_label="'+paging_previous_label+'"' : '';
|
436 |
var paging_controls = $('#alm-paging input[name=paging-controls]:checked').val();
|
437 |
var paging_show_at_most = $('#alm-paging input#show-at-most').val();
|
438 |
var paging_classes = $('#alm-paging input#paging-classes').val();
|
439 |
+
var paging_scroll = $('#alm-paging select#paging-scroll').val();
|
440 |
+
var paging_scrolltop = $('#alm-paging input#paging-scrolltop').val();
|
441 |
|
442 |
var paging_first_label = $('#alm-paging input#paging-first-label').val();
|
443 |
var paging_last_label = $('#alm-paging input#paging-last-label').val();
|
444 |
var paging_previous_label = $('#alm-paging input#paging-previous-label').val();
|
445 |
var paging_next_label = $('#alm-paging input#paging-next-label').val();
|
446 |
+
|
447 |
if(paging !== 'false' && paging != undefined){
|
448 |
output += ' paging="'+paging+'"';
|
449 |
+
|
450 |
+
if(paging_classes !== ''){
|
451 |
+
output += ' paging_classes="'+paging_classes+'"';
|
452 |
+
}
|
453 |
if(paging_show_at_most !== ''){
|
454 |
output += ' paging_show_at_most="'+paging_show_at_most+'"';
|
455 |
}
|
456 |
+
if(paging_scroll !== 'false'){
|
457 |
+
$('.paging-scrolltop-wrap').show();
|
458 |
+
paging_scrolltop = (paging_scrolltop) ? paging_scrolltop : 100;
|
459 |
+
output += ' paging_scroll="true:'+ paging_scrolltop+ '"';
|
460 |
+
} else {
|
461 |
+
$('.paging-scrolltop-wrap').hide();
|
462 |
}
|
463 |
+
|
464 |
$('#nav-controls').slideDown(250, 'alm_easeInOutQuad');
|
465 |
+
|
466 |
+
output += ' paging_controls="'+paging_controls+'"';
|
467 |
|
468 |
if(paging_controls === 'true'){
|
469 |
$('#paging-controls-nav').slideDown(250, 'alm_easeInOutQuad');
|
|
|
470 |
output += (paging_first_label !== '') ? ' paging_first_label="'+paging_first_label+'"' : '';
|
471 |
output += (paging_last_label !== '') ? ' paging_last_label="'+paging_last_label+'"' : '';
|
472 |
output += (paging_previous_label !== '') ? ' paging_previous_label="'+paging_previous_label+'"' : '';
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
File without changes
|
admin/src/scss/partials/_pro-listing.scss
CHANGED
@@ -48,18 +48,20 @@
|
|
48 |
&--wrap{
|
49 |
display: flex;
|
50 |
flex-wrap: wrap;
|
51 |
-
|
|
|
52 |
}
|
53 |
|
54 |
.item{
|
55 |
-
width:
|
56 |
display: flex;
|
57 |
-
margin
|
58 |
@media screen and (min-width: 1500px){
|
59 |
-
|
60 |
}
|
61 |
@media screen and (max-width: 480px){
|
62 |
width: 100%;
|
|
|
63 |
}
|
64 |
h2, p, img, .state{
|
65 |
transition: all 0.15s ease;
|
@@ -72,8 +74,8 @@
|
|
72 |
border: 1px solid #e1e1e1;
|
73 |
transition: all 0.15s ease;
|
74 |
border-radius: 2px;
|
75 |
-
@media screen and (
|
76 |
-
padding: 0
|
77 |
}
|
78 |
&:hover,
|
79 |
&:focus{
|
@@ -88,8 +90,8 @@
|
|
88 |
position: relative;
|
89 |
min-height: 110px;
|
90 |
display: flex;
|
91 |
-
align-items:
|
92 |
-
@media screen and (
|
93 |
display: block;
|
94 |
text-align: center;
|
95 |
img{
|
@@ -102,10 +104,7 @@
|
|
102 |
img{
|
103 |
width: 110px;
|
104 |
height: auto;
|
105 |
-
margin-right:
|
106 |
-
@media screen and (max-width: 768px){
|
107 |
-
display: none;
|
108 |
-
}
|
109 |
}
|
110 |
a{
|
111 |
text-decoration: none;
|
@@ -143,6 +142,21 @@
|
|
143 |
transition: opacity 0.15s ease;
|
144 |
}
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
147 |
.result{
|
148 |
position: absolute;
|
48 |
&--wrap{
|
49 |
display: flex;
|
50 |
flex-wrap: wrap;
|
51 |
+
width: calc(100% + 10px);
|
52 |
+
margin-left: -5px;
|
53 |
}
|
54 |
|
55 |
.item{
|
56 |
+
width: calc(50% - 10px);
|
57 |
display: flex;
|
58 |
+
margin: 0 5px 10px;
|
59 |
@media screen and (min-width: 1500px){
|
60 |
+
width: calc(33.333% - 10px);
|
61 |
}
|
62 |
@media screen and (max-width: 480px){
|
63 |
width: 100%;
|
64 |
+
margin: 0 0 10px;
|
65 |
}
|
66 |
h2, p, img, .state{
|
67 |
transition: all 0.15s ease;
|
74 |
border: 1px solid #e1e1e1;
|
75 |
transition: all 0.15s ease;
|
76 |
border-radius: 2px;
|
77 |
+
@media screen and (max-width: 1100px){
|
78 |
+
padding: 0 10px 20px;
|
79 |
}
|
80 |
&:hover,
|
81 |
&:focus{
|
90 |
position: relative;
|
91 |
min-height: 110px;
|
92 |
display: flex;
|
93 |
+
align-items: flex-start;
|
94 |
+
@media screen and (max-width: 1100px){
|
95 |
display: block;
|
96 |
text-align: center;
|
97 |
img{
|
104 |
img{
|
105 |
width: 110px;
|
106 |
height: auto;
|
107 |
+
margin-right: 20px;
|
|
|
|
|
|
|
108 |
}
|
109 |
a{
|
110 |
text-decoration: none;
|
142 |
transition: opacity 0.15s ease;
|
143 |
}
|
144 |
}
|
145 |
+
.highlight-addon{
|
146 |
+
padding-top: 15px;
|
147 |
+
font-size: 12px;
|
148 |
+
margin: 0;
|
149 |
+
|
150 |
+
span{
|
151 |
+
display: inline-block;
|
152 |
+
padding: 5px;
|
153 |
+
position: relative;
|
154 |
+
left: -5px;
|
155 |
+
line-height: 1;
|
156 |
+
background-color: $yellow;
|
157 |
+
font-weight: 500;
|
158 |
+
}
|
159 |
+
}
|
160 |
}
|
161 |
.result{
|
162 |
position: absolute;
|
admin/views/extensions.php
CHANGED
File without changes
|
ajax-load-more.php
CHANGED
@@ -7,14 +7,14 @@ Text Domain: ajax-load-more
|
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
-
Version: 5.3.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
-
define('ALM_VERSION', '5.3.
|
17 |
-
define('ALM_RELEASE', '
|
18 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
19 |
|
20 |
|
@@ -380,7 +380,7 @@ if( !class_exists('AjaxLoadMore') ):
|
|
380 |
}
|
381 |
|
382 |
// Prevent loading of unnessasry posts - move user to top of page
|
383 |
-
|
384 |
|
385 |
|
386 |
// Localized JS variables
|
@@ -390,8 +390,10 @@ if( !class_exists('AjaxLoadMore') ):
|
|
390 |
array(
|
391 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
392 |
'alm_nonce' => wp_create_nonce( "ajax_load_more_nonce" ),
|
|
|
|
|
393 |
'pluginurl' => ALM_URL,
|
394 |
-
'scrolltop' => $scrolltop,
|
395 |
'speed' => apply_filters('alm_speed', 200),
|
396 |
'ga_debug' => apply_filters('alm_ga_debug', 'false'),
|
397 |
'results_text' => apply_filters('alm_display_results', __('Viewing {post_count} of {total_posts} results.', 'ajax-load-more')),
|
@@ -666,7 +668,6 @@ if( !class_exists('AjaxLoadMore') ):
|
|
666 |
// End Call to Action [Before]
|
667 |
|
668 |
// Repeater Templates
|
669 |
-
|
670 |
if($theme_repeater !== 'null' && has_action('alm_get_theme_repeater')){
|
671 |
// Theme Repeater
|
672 |
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
+
Version: 5.3.3
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
|
16 |
+
define('ALM_VERSION', '5.3.3');
|
17 |
+
define('ALM_RELEASE', 'May 20, 2020');
|
18 |
define('ALM_STORE_URL', 'https://connekthq.com');
|
19 |
|
20 |
|
380 |
}
|
381 |
|
382 |
// Prevent loading of unnessasry posts - move user to top of page
|
383 |
+
//$scrolltop = (!isset($options['_alm_scroll_top']) || $options['_alm_scroll_top'] !== '1') ? 'false' : 'true';
|
384 |
|
385 |
|
386 |
// Localized JS variables
|
390 |
array(
|
391 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
392 |
'alm_nonce' => wp_create_nonce( "ajax_load_more_nonce" ),
|
393 |
+
'rest_api' => esc_url_raw( rest_url() ),
|
394 |
+
'rest_nonce' => wp_create_nonce( 'wp_rest' ),
|
395 |
'pluginurl' => ALM_URL,
|
396 |
+
//'scrolltop' => $scrolltop,
|
397 |
'speed' => apply_filters('alm_speed', 200),
|
398 |
'ga_debug' => apply_filters('alm_ga_debug', 'false'),
|
399 |
'results_text' => apply_filters('alm_display_results', __('Viewing {post_count} of {total_posts} results.', 'ajax-load-more')),
|
668 |
// End Call to Action [Before]
|
669 |
|
670 |
// Repeater Templates
|
|
|
671 |
if($theme_repeater !== 'null' && has_action('alm_get_theme_repeater')){
|
672 |
// Theme Repeater
|
673 |
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
core/classes/class.alm-localize.php
CHANGED
File without changes
|
core/classes/class.alm-shortcode.php
CHANGED
@@ -80,7 +80,6 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
80 |
$atts = ($default_atts) ? array_merge($default_atts, $atts) : $atts;
|
81 |
|
82 |
|
83 |
-
|
84 |
// Extact shortcode arrtibutes
|
85 |
extract(shortcode_atts(array(
|
86 |
'nested' => false,
|
@@ -128,7 +127,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
128 |
'nextpage' => false,
|
129 |
'nextpage_post_id' => '',
|
130 |
'nextpage_urls' => 'true',
|
131 |
-
'nextpage_scroll' => '
|
132 |
'nextpage_pageviews' => 'true',
|
133 |
'nextpage_start' => 1,
|
134 |
'previous_post' => false,
|
@@ -149,6 +148,7 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
149 |
'paging_controls' => 'false',
|
150 |
'paging_show_at_most' => '7',
|
151 |
'paging_classes' => '',
|
|
|
152 |
'paging_first_label' => apply_filters('alm_paging_first_label', ''),
|
153 |
'paging_last_label' => apply_filters('alm_paging_last_label', ''),
|
154 |
'paging_previous_label' => apply_filters('alm_paging_previous_label', '«'),
|
@@ -888,17 +888,17 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
888 |
|
889 |
// Paging Add-on
|
890 |
if(has_action('alm_paging_installed') && $paging === 'true'){
|
891 |
-
|
892 |
'alm_paging_shortcode',
|
893 |
$paging,
|
894 |
$paging_controls,
|
895 |
$paging_show_at_most,
|
896 |
-
$paging_classes,
|
897 |
$paging_first_label,
|
898 |
$paging_last_label,
|
899 |
$paging_previous_label,
|
900 |
$paging_next_label,
|
901 |
-
$
|
902 |
);
|
903 |
$ajaxloadmore .= $paging_return;
|
904 |
}
|
@@ -1124,12 +1124,14 @@ if( !class_exists('ALM_SHORTCODE') ):
|
|
1124 |
$ajaxloadmore .= (!empty($lang)) ? ' data-lang="'.$lang.'"' : '';
|
1125 |
|
1126 |
// Scroll
|
1127 |
-
$
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
|
|
|
|
1133 |
}
|
1134 |
|
1135 |
// Pause
|
80 |
$atts = ($default_atts) ? array_merge($default_atts, $atts) : $atts;
|
81 |
|
82 |
|
|
|
83 |
// Extact shortcode arrtibutes
|
84 |
extract(shortcode_atts(array(
|
85 |
'nested' => false,
|
127 |
'nextpage' => false,
|
128 |
'nextpage_post_id' => '',
|
129 |
'nextpage_urls' => 'true',
|
130 |
+
'nextpage_scroll' => 'false:30',
|
131 |
'nextpage_pageviews' => 'true',
|
132 |
'nextpage_start' => 1,
|
133 |
'previous_post' => false,
|
148 |
'paging_controls' => 'false',
|
149 |
'paging_show_at_most' => '7',
|
150 |
'paging_classes' => '',
|
151 |
+
'paging_scroll' => false,
|
152 |
'paging_first_label' => apply_filters('alm_paging_first_label', ''),
|
153 |
'paging_last_label' => apply_filters('alm_paging_last_label', ''),
|
154 |
'paging_previous_label' => apply_filters('alm_paging_previous_label', '«'),
|
888 |
|
889 |
// Paging Add-on
|
890 |
if(has_action('alm_paging_installed') && $paging === 'true'){
|
891 |
+
$paging_return = apply_filters(
|
892 |
'alm_paging_shortcode',
|
893 |
$paging,
|
894 |
$paging_controls,
|
895 |
$paging_show_at_most,
|
896 |
+
$paging_classes,
|
897 |
$paging_first_label,
|
898 |
$paging_last_label,
|
899 |
$paging_previous_label,
|
900 |
$paging_next_label,
|
901 |
+
$paging_scroll
|
902 |
);
|
903 |
$ajaxloadmore .= $paging_return;
|
904 |
}
|
1124 |
$ajaxloadmore .= (!empty($lang)) ? ' data-lang="'.$lang.'"' : '';
|
1125 |
|
1126 |
// Scroll
|
1127 |
+
if($paging !== 'true') {
|
1128 |
+
$ajaxloadmore .= ' data-scroll="'.$scroll.'"';
|
1129 |
+
if($scroll === 'true'){
|
1130 |
+
$ajaxloadmore .= ' data-scroll-distance="'.$scroll_distance.'"';
|
1131 |
+
$ajaxloadmore .= (!empty($scroll_container)) ? ' data-scroll-container="'.$scroll_container.'"' : '';
|
1132 |
+
$ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
|
1133 |
+
$ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
|
1134 |
+
}
|
1135 |
}
|
1136 |
|
1137 |
// Pause
|
core/classes/includes/preloaded.php
CHANGED
@@ -305,15 +305,15 @@ else {
|
|
305 |
$alm_current++;
|
306 |
|
307 |
// Call to Action [Before]
|
308 |
-
if($cta && has_action('alm_cta_inc') && $cta_pos === 'before'){
|
309 |
-
|
310 |
}
|
311 |
|
312 |
// Repeater Template
|
313 |
$output .= alm_loop($repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
314 |
|
315 |
// Call to Action [After]
|
316 |
-
if($cta && has_action('alm_cta_inc') && $cta_pos === 'after'){
|
317 |
$output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
|
318 |
}
|
319 |
|
305 |
$alm_current++;
|
306 |
|
307 |
// Call to Action [Before]
|
308 |
+
if($cta === 'true' && has_action('alm_cta_inc') && $cta_pos === 'before'){
|
309 |
+
$output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
|
310 |
}
|
311 |
|
312 |
// Repeater Template
|
313 |
$output .= alm_loop($repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
314 |
|
315 |
// Call to Action [After]
|
316 |
+
if($cta === 'true' && has_action('alm_cta_inc') && $cta_pos === 'after'){
|
317 |
$output .= ($alm_current == $cta_val) ? apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true) : '';
|
318 |
}
|
319 |
|
core/dist/css/ajax-load-more.css
CHANGED
File without changes
|
core/dist/css/ajax-load-more.min.css
CHANGED
File without changes
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -87,10 +87,10 @@ var ajaxloadmore =
|
|
87 |
/************************************************************************/
|
88 |
/******/ ({
|
89 |
|
90 |
-
/***/ "./core/src/js/
|
91 |
-
|
92 |
-
!*** ./core/src/js/
|
93 |
-
|
94 |
/*! no static exports found */
|
95 |
/***/ (function(module, exports, __webpack_require__) {
|
96 |
|
@@ -98,3730 +98,3323 @@ var ajaxloadmore =
|
|
98 |
|
99 |
|
100 |
Object.defineProperty(exports, "__esModule", {
|
101 |
-
|
102 |
});
|
103 |
-
exports.
|
104 |
-
|
105 |
-
|
106 |
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
-
|
|
|
|
|
110 |
|
111 |
-
var
|
|
|
|
|
|
|
|
|
112 |
|
113 |
-
|
|
|
114 |
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
-
|
|
|
|
|
118 |
|
119 |
-
var
|
|
|
|
|
|
|
120 |
|
121 |
-
|
|
|
|
|
|
|
|
|
122 |
|
123 |
-
|
|
|
|
|
|
|
124 |
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
|
|
|
128 |
|
129 |
-
|
|
|
130 |
|
131 |
-
|
|
|
132 |
|
133 |
-
|
134 |
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
-
|
|
|
140 |
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
-
|
|
|
144 |
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
-
|
|
|
148 |
|
149 |
-
|
150 |
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
-
|
154 |
|
155 |
-
var _insertScript2 = _interopRequireDefault(_insertScript);
|
156 |
|
157 |
-
|
|
|
|
|
|
|
|
|
158 |
|
159 |
-
var
|
160 |
|
161 |
-
var
|
162 |
|
163 |
-
|
|
|
|
|
164 |
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
|
167 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
-
|
170 |
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
-
|
174 |
|
175 |
-
|
|
|
|
|
176 |
|
177 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
-
|
180 |
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
-
|
184 |
|
185 |
-
var _getScrollPercentage = __webpack_require__(/*! ./modules/getScrollPercentage */ "./core/src/js/modules/getScrollPercentage.js");
|
186 |
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
|
189 |
-
var _srcsetPolyfill = __webpack_require__(/*!
|
190 |
|
191 |
var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
|
192 |
|
193 |
-
var
|
194 |
-
|
195 |
-
var _woocommerce = __webpack_require__(/*! ./modules/woocommerce */ "./core/src/js/modules/woocommerce.js");
|
196 |
|
197 |
-
var
|
198 |
-
|
199 |
-
var _singleposts2 = _interopRequireDefault(_singleposts);
|
200 |
-
|
201 |
-
function _interopRequireWildcard(obj) {
|
202 |
-
if (obj && obj.__esModule) {
|
203 |
-
return obj;
|
204 |
-
} else {
|
205 |
-
var newObj = {};if (obj != null) {
|
206 |
-
for (var key in obj) {
|
207 |
-
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
|
208 |
-
}
|
209 |
-
}newObj.default = obj;return newObj;
|
210 |
-
}
|
211 |
-
}
|
212 |
|
213 |
function _interopRequireDefault(obj) {
|
214 |
-
|
215 |
-
}
|
216 |
-
|
217 |
-
function _toConsumableArray(arr) {
|
218 |
-
if (Array.isArray(arr)) {
|
219 |
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
220 |
-
arr2[i] = arr[i];
|
221 |
-
}return arr2;
|
222 |
-
} else {
|
223 |
-
return Array.from(arr);
|
224 |
-
}
|
225 |
}
|
226 |
|
227 |
function _asyncToGenerator(fn) {
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
}
|
248 |
|
249 |
-
/*
|
250 |
-
* Ajax Load More
|
251 |
-
* https://connekthq.com/plugins/ajax-load-more/
|
252 |
-
* Author: Darren Cooney
|
253 |
-
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
254 |
-
* Copyright Connekt Media - https://connekthq.com
|
255 |
-
*/
|
256 |
-
|
257 |
-
// Polyfills
|
258 |
-
__webpack_require__(/*! @babel/polyfill/noConflict */ "./node_modules/@babel/polyfill/noConflict.js");
|
259 |
-
__webpack_require__(/*! ./helpers/polyfills.js */ "./core/src/js/helpers/polyfills.js");
|
260 |
-
|
261 |
-
// External Modules
|
262 |
-
var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
|
263 |
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
264 |
-
// Smooth scrolling polyfill
|
265 |
-
_smoothscrollPolyfill2.default.polyfill();
|
266 |
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
|
269 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
|
|
|
|
271 |
|
272 |
-
//
|
273 |
-
var
|
|
|
274 |
|
275 |
-
//
|
276 |
-
|
277 |
-
|
278 |
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
*
|
283 |
-
* @param {*} el
|
284 |
-
* @param {*} e
|
285 |
-
*/
|
286 |
-
|
287 |
-
var ajaxloadmore = function ajaxloadmore(el, e) {
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
window.scrollTo(0, 0);
|
292 |
-
}
|
293 |
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
alm.posts = 0;
|
303 |
-
alm.totalposts = 0;
|
304 |
-
alm.proceed = false;
|
305 |
-
alm.disable_ajax = false;
|
306 |
-
alm.init = true;
|
307 |
-
alm.loading = true;
|
308 |
-
alm.finished = false;
|
309 |
-
alm.timer = null;
|
310 |
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
|
315 |
-
|
316 |
-
alm.master_id = el.dataset.id ? 'ajax-load-more-' + el.dataset.id : el.id; // The defined or generated ID of the ALM instance
|
317 |
-
el.classList.add('alm-' + e); // Add unique classname
|
318 |
-
el.setAttribute('data-alm-id', e); // Add unique data id
|
319 |
|
|
|
|
|
320 |
|
321 |
-
|
322 |
-
|
323 |
-
|
|
|
|
|
|
|
|
|
324 |
|
|
|
|
|
|
|
325 |
|
326 |
-
|
327 |
-
|
328 |
-
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
329 |
-
alm.content = alm.listing;
|
330 |
-
alm.el = alm.content;
|
331 |
-
alm.ajax = el.querySelector('.alm-ajax');
|
332 |
-
alm.container_type = alm.listing.dataset.containerType;
|
333 |
|
334 |
-
|
335 |
-
|
336 |
-
alm.nested = el.dataset.nested ? el.dataset.nested : null;
|
337 |
-
alm.is_search = el.dataset.search;
|
338 |
-
alm.slug = el.dataset.slug;
|
339 |
-
alm.post_id = el.dataset.postId;
|
340 |
-
alm.id = el.dataset.id ? el.dataset.id : '';
|
341 |
|
342 |
-
|
343 |
-
|
344 |
-
|
|
|
|
|
|
|
|
|
345 |
|
346 |
-
|
347 |
-
|
348 |
-
|
|
|
|
|
|
|
349 |
|
350 |
-
|
351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
alm.trigger = alm.btnWrap[alm.btnWrap.length - 1];
|
357 |
-
alm.button = alm.trigger.querySelector('button.alm-load-more-btn');
|
358 |
|
359 |
-
|
360 |
-
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
361 |
-
alm.placeholder = alm.main.querySelector('.alm-placeholder');
|
362 |
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
|
367 |
-
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
368 |
-
alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
|
369 |
-
alm.transition = alm.listing.dataset.transition; // Transition
|
370 |
-
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
371 |
-
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
372 |
-
alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
373 |
-
alm.images_loaded = alm.listing.dataset.imagesLoaded ? alm.listing.dataset.imagesLoaded : false;
|
374 |
-
alm.destroy_after = alm.listing.dataset.destroyAfter ? alm.listing.dataset.destroyAfter : '';
|
375 |
-
alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
|
376 |
-
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
377 |
-
alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
|
378 |
-
alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
|
379 |
-
alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
|
380 |
|
381 |
-
|
382 |
-
alm.addons.woocommerce = alm.localize.woocommerce ? true : false; // Woocommerce add-on
|
383 |
-
if (alm.addons.woocommerce) {
|
384 |
-
alm.addons.woocommerce_columns = alm.localize.woocommerce.columns ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
|
385 |
-
alm.addons.woocommerce_paged = alm.localize.woocommerce.paged ? parseInt(alm.localize.woocommerce.paged) : 1; // Woocommerce Paged
|
386 |
-
alm.addons.woocommerce_paged_urls = alm.localize.woocommerce.paged_urls;
|
387 |
-
alm.addons.woocommerce_pages = parseInt(alm.localize.woocommerce.pages);
|
388 |
-
alm.addons.woocommerce_classes = {};
|
389 |
-
alm.addons.woocommerce_classes.container = alm.localize.woocommerce.container;
|
390 |
-
alm.addons.woocommerce_classes.products = alm.localize.woocommerce.products;
|
391 |
-
alm.addons.woocommerce_classes.results = alm.localize.woocommerce.results;
|
392 |
-
alm.addons.woocommerce_results_text = document.querySelectorAll(alm.addons.woocommerce_classes.results);
|
393 |
-
alm.addons.woocommerce_settings = alm.localize.woocommerce.settings;
|
394 |
-
alm.page = parseInt(alm.page) + alm.addons.woocommerce_paged;
|
395 |
-
}
|
396 |
|
397 |
-
|
398 |
-
|
399 |
-
alm.addons.cache_id = alm.listing.dataset.cacheId;
|
400 |
-
alm.addons.cache_path = alm.listing.dataset.cachePath;
|
401 |
-
alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
402 |
-
alm.addons.cache_logged_in = alm.addons.cache_logged_in === undefined ? false : alm.addons.cache_logged_in;
|
403 |
-
|
404 |
-
alm.addons.cta = alm.listing.dataset.cta; // CTA add-on
|
405 |
-
alm.addons.cta_position = alm.listing.dataset.ctaPosition;
|
406 |
-
alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
|
407 |
-
alm.addons.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
408 |
-
|
409 |
-
alm.addons.nextpage = alm.listing.dataset.nextpage; // Nextpage add-on
|
410 |
-
alm.addons.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
411 |
-
alm.addons.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
412 |
-
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
413 |
-
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
414 |
-
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
415 |
-
|
416 |
-
alm.addons.single_post = alm.listing.dataset.singlePost; // Previous Post add-on
|
417 |
-
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
418 |
-
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
419 |
-
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
420 |
-
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
421 |
-
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
422 |
-
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
|
423 |
-
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
|
424 |
-
|
425 |
-
alm.addons.comments = alm.listing.dataset.comments; // Comments add-on
|
426 |
-
alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
427 |
-
alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
|
428 |
-
alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;
|
429 |
-
alm.addons.comments_type = alm.listing.dataset.comments_type;
|
430 |
-
alm.addons.comments_style = alm.listing.dataset.comments_style;
|
431 |
-
alm.addons.comments_template = alm.listing.dataset.comments_template;
|
432 |
-
alm.addons.comments_callback = alm.listing.dataset.comments_callback;
|
433 |
|
434 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
|
436 |
-
|
|
|
437 |
|
438 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
|
440 |
-
|
441 |
-
|
442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
-
|
445 |
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
450 |
-
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
451 |
-
}
|
452 |
|
453 |
-
|
454 |
-
alm.extensions.restapi = alm.listing.dataset.restapi; // REST API
|
455 |
-
alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
456 |
-
alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
457 |
-
alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
458 |
-
alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
459 |
-
alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
|
460 |
|
461 |
-
|
462 |
-
alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
|
463 |
-
alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
|
464 |
-
alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
|
465 |
-
alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
|
466 |
-
alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
|
467 |
-
// if field type, name or post ID is empty
|
468 |
-
if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {
|
469 |
-
alm.extensions.acf = false;
|
470 |
-
}
|
471 |
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
alm.addons.paging_init = true;
|
482 |
-
alm.addons.paging_controls = alm.listing.dataset.pagingControls === 'true' ? true : false;
|
483 |
-
alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
484 |
-
alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
|
485 |
-
alm.addons.paging_show_at_most = alm.addons.paging_show_at_most === undefined ? 7 : alm.addons.paging_show_at_most;
|
486 |
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
491 |
-
|
492 |
-
// If preloaded, pause ALM
|
493 |
-
alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
|
494 |
-
} else {
|
495 |
-
alm.addons.paging = false;
|
496 |
-
}
|
497 |
-
/* End Paging */
|
498 |
|
499 |
-
|
500 |
-
|
501 |
-
alm.addons.filters = true;
|
502 |
|
503 |
-
|
504 |
-
|
505 |
-
alm.addons.filters_scroll = alm.listing.dataset.filtersScroll === 'true' ? true : false;
|
506 |
-
alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop ? alm.listing.dataset.filtersScrolltop : '30';
|
507 |
-
alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
|
508 |
-
alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
|
509 |
-
alm.addons.filters_startpage = 0;
|
510 |
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
|
515 |
-
|
516 |
-
|
517 |
-
alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;
|
518 |
-
alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
|
519 |
-
}
|
520 |
-
} else {
|
521 |
-
alm.addons.filters = false;
|
522 |
-
}
|
523 |
-
/* End Filters */
|
524 |
|
525 |
-
|
526 |
-
if (alm.addons.tabs === 'true') {
|
527 |
-
alm.addons.tabs = true;
|
528 |
-
alm.addons.tab_template = alm.listing.dataset.tabTemplate ? alm.listing.dataset.tabTemplate : '';
|
529 |
-
alm.addons.tab_onload = alm.listing.dataset.tabOnload ? alm.listing.dataset.tabOnload : '';
|
530 |
-
alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl ? alm.listing.dataset.tabsRestUrl : '';
|
531 |
|
532 |
-
|
533 |
-
|
534 |
-
var tabNav = document.querySelector('.alm-tab-nav li [data-tab-url=' + alm.addons.tab_onload + ']');
|
535 |
-
alm.addons.tab_template = tabNav ? tabNav.dataset.tabTemplate : alm.addons.tab_template;
|
536 |
-
alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
|
537 |
-
// Set selected tab
|
538 |
-
if (tabNav) {
|
539 |
-
var activeTab = document.querySelector('.alm-tab-nav li .active');
|
540 |
-
if (activeTab) {
|
541 |
-
activeTab.classList.remove('active');
|
542 |
-
}
|
543 |
-
}
|
544 |
-
}
|
545 |
-
} else {
|
546 |
-
alm.addons.tabs = false;
|
547 |
-
}
|
548 |
-
/* End TABS */
|
549 |
|
550 |
-
|
551 |
-
if (alm.extensions.restapi === 'true') {
|
552 |
-
alm.extensions.restapi = true;
|
553 |
-
alm.extensions.restapi_debug = alm.extensions.restapi_debug === undefined ? false : alm.extensions.restapi_debug;
|
554 |
-
alm.extensions.restapi = alm.extensions.restapi_template_id === '' ? false : alm.extensions.restapi;
|
555 |
-
} else {
|
556 |
-
alm.extensions.restapi = false;
|
557 |
-
}
|
558 |
-
/* End REST API */
|
559 |
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
alm.addons.preloaded_total_posts = alm.localize.total_posts;
|
568 |
-
alm.disable_ajax = true;
|
569 |
-
}
|
570 |
-
}
|
571 |
-
} else {
|
572 |
-
alm.addons.preloaded = 'false';
|
573 |
-
}
|
574 |
-
/* End Preloaded */
|
575 |
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
alm.is_search = alm.is_search === undefined ? false : alm.is_search;
|
580 |
-
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
581 |
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
|
|
|
|
|
|
|
|
587 |
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
alm.addons.seo_controls = alm.listing.dataset.seoControls;
|
592 |
-
alm.isPaged = false;
|
593 |
-
if (alm.start_page > 1) {
|
594 |
-
alm.isPaged = true; // Is this a paged page > 1 ?
|
595 |
-
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
596 |
-
}
|
597 |
-
if (alm.addons.paging) {
|
598 |
-
// If paging, reset posts_per_page
|
599 |
-
alm.posts_per_page = alm.orginal_posts_per_page;
|
600 |
-
}
|
601 |
-
} else {
|
602 |
-
alm.start_page = 1;
|
603 |
-
}
|
604 |
-
/* End SEO */
|
605 |
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
}
|
629 |
-
if (alm.addons.nextpage_startpage > 1) {
|
630 |
-
alm.isPaged = true;
|
631 |
-
}
|
632 |
-
/* End Nextpage */
|
633 |
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
alm.addons.single_post_init_id = '';
|
646 |
-
}
|
647 |
-
alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
|
648 |
-
alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
|
649 |
-
alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
|
650 |
-
alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
|
651 |
-
alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
|
652 |
-
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
653 |
-
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
654 |
-
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
655 |
-
alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
656 |
-
alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
657 |
-
alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
658 |
-
alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
659 |
-
alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
|
660 |
-
/* End Single Post */
|
661 |
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
alm.pause = false;
|
666 |
-
}
|
667 |
-
if (alm.addons.preloaded === 'true' && alm.addons.seo && alm.start_page > 0) {
|
668 |
-
// SEO + Preloaded
|
669 |
-
alm.pause = false;
|
670 |
-
}
|
671 |
-
if (alm.addons.filters && alm.addons.filters_startpage > 0) {
|
672 |
-
// Filters
|
673 |
-
alm.pause = false;
|
674 |
-
}
|
675 |
-
if (alm.addons.preloaded === 'true' && alm.addons.paging) {
|
676 |
-
alm.pause = true;
|
677 |
-
}
|
678 |
|
679 |
-
|
680 |
-
|
681 |
-
alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
|
682 |
|
683 |
-
|
684 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
|
|
698 |
|
699 |
-
|
700 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701 |
|
702 |
-
|
703 |
-
alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
|
704 |
|
705 |
-
|
706 |
-
|
|
|
|
|
|
|
|
|
707 |
|
708 |
-
|
709 |
-
alm.is_masonry_preloaded = false;
|
710 |
-
if (alm.transition === 'masonry') {
|
711 |
-
alm.masonry_init = true;
|
712 |
-
if (alm.msnry) {
|
713 |
-
alm.msnry.destroy(); // destroy masonry if currently exists
|
714 |
-
} else {
|
715 |
-
alm.msnry = '';
|
716 |
-
}
|
717 |
-
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
718 |
-
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
719 |
-
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
720 |
-
alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
|
721 |
-
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
722 |
-
alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
|
723 |
-
alm.transition_container = false;
|
724 |
-
alm.images_loaded = false;
|
725 |
-
alm.is_masonry_preloaded = alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
|
726 |
-
}
|
727 |
|
728 |
-
/* Scroll */
|
729 |
-
if (alm.listing.dataset.scroll === undefined) {
|
730 |
-
alm.scroll = true;
|
731 |
-
} else if (alm.listing.dataset.scroll === 'false') {
|
732 |
-
alm.scroll = false;
|
733 |
-
} else {
|
734 |
-
alm.scroll = true;
|
735 |
-
}
|
736 |
|
737 |
-
|
738 |
-
|
|
|
|
|
739 |
|
740 |
-
|
741 |
-
alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
|
742 |
-
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
743 |
|
744 |
-
|
745 |
-
if (alm.addons.paging) {
|
746 |
-
alm.main.classList.add('loading'); // add loading class to main container
|
747 |
-
} else {
|
748 |
-
var almChildren = el.childNodes; // Get child nodes of instance [nodeList]
|
749 |
-
if (almChildren) {
|
750 |
-
var almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
751 |
|
752 |
-
|
753 |
-
var btnWrap = almChildArray.filter(function (element) {
|
754 |
-
if (!element.classList) {
|
755 |
-
// If not element (#text node)
|
756 |
-
return false;
|
757 |
-
}
|
758 |
-
return element.classList.contains('alm-btn-wrap');
|
759 |
-
});
|
760 |
-
alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
761 |
-
} else {
|
762 |
-
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
763 |
-
}
|
764 |
|
765 |
-
|
766 |
-
alm.button.disabled = false;
|
767 |
-
}
|
768 |
|
769 |
-
|
770 |
-
// Render "Showing x of y results" text.
|
771 |
-
// If woocommerce, get the default woocommerce results block
|
772 |
-
if (alm.integration.woocommerce) {
|
773 |
-
alm.resultsText = document.querySelectorAll('.woocommerce-result-count');
|
774 |
-
if (alm.resultsText.length < 1) {
|
775 |
-
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
776 |
-
}
|
777 |
-
} else {
|
778 |
-
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
779 |
-
}
|
780 |
-
if (alm.resultsText) {
|
781 |
-
alm.resultsText.forEach(function (results) {
|
782 |
-
results.setAttribute('aria-live', 'polite');
|
783 |
-
results.setAttribute('aria-atomic', 'true');
|
784 |
-
});
|
785 |
-
} else {
|
786 |
-
alm.resultsText = false;
|
787 |
-
}
|
788 |
|
789 |
-
|
790 |
-
// Render 1, 2, 3 etc. when pages are loaded
|
791 |
-
alm.tableofcontents = document.querySelector('.alm-toc');
|
792 |
-
if (alm.tableofcontents) {
|
793 |
-
alm.tableofcontents.setAttribute('aria-live', 'polite');
|
794 |
-
alm.tableofcontents.setAttribute('aria-atomic', 'true');
|
795 |
-
} else {
|
796 |
-
alm.tableofcontents = false;
|
797 |
-
}
|
798 |
|
799 |
-
|
800 |
-
* LoadPosts()
|
801 |
-
* The function to get posts via Ajax
|
802 |
-
* @since 2.0.0
|
803 |
-
*/
|
804 |
|
805 |
-
|
806 |
|
807 |
-
|
808 |
-
window.almOnChange(alm);
|
809 |
-
}
|
810 |
|
811 |
-
|
812 |
|
813 |
-
|
814 |
-
// Check for ajax blocker
|
815 |
-
if (!alm.addons.paging) {
|
816 |
-
alm.button.classList.add('loading');
|
817 |
-
if (alm.button_loading_label !== false) {
|
818 |
-
alm.button.innerHTML = alm.button_loading_label;
|
819 |
-
}
|
820 |
-
}
|
821 |
-
alm.main.classList.add('alm-loading');
|
822 |
-
alm.loading = true;
|
823 |
|
824 |
-
|
825 |
-
// Cache
|
826 |
-
var cache_page = (0, _getCacheUrl2.default)(alm);
|
827 |
-
if (cache_page) {
|
828 |
|
829 |
-
|
830 |
-
_axios2.default.get(cache_page).then(function (response) {
|
831 |
-
// Exists
|
832 |
-
alm.AjaxLoadMore.success(response.data, true);
|
833 |
-
}).catch(function (error) {
|
834 |
-
// Error || Page does not yet exist
|
835 |
-
alm.AjaxLoadMore.ajax('standard');
|
836 |
-
});
|
837 |
-
} else {
|
838 |
-
// Standard ALM query
|
839 |
-
alm.AjaxLoadMore.ajax('standard');
|
840 |
-
}
|
841 |
-
} else {
|
842 |
-
// Standard ALM query
|
843 |
-
alm.AjaxLoadMore.ajax('standard');
|
844 |
-
}
|
845 |
-
}
|
846 |
-
};
|
847 |
|
848 |
-
|
849 |
-
* Ajax Load Moe Ajax function
|
850 |
-
*
|
851 |
-
* @param queryType The type of Ajax request (standard/totalposts)
|
852 |
-
* @since 2.6.0
|
853 |
-
*/
|
854 |
|
855 |
-
|
856 |
|
857 |
-
|
858 |
-
var action = 'alm_get_posts';
|
859 |
|
860 |
-
|
861 |
-
alm.acf_array = '';
|
862 |
-
if (alm.extensions.acf) {
|
863 |
-
// Custom query for the Repeater / Gallery / Flexible Content field types
|
864 |
-
if (alm.extensions.acf_field_type !== 'relationship') {
|
865 |
-
action = 'alm_acf';
|
866 |
-
}
|
867 |
-
alm.acf_array = {
|
868 |
-
'acf': 'true',
|
869 |
-
'post_id': alm.extensions.acf_post_id,
|
870 |
-
'field_type': alm.extensions.acf_field_type,
|
871 |
-
'field_name': alm.extensions.acf_field_name,
|
872 |
-
'parent_field_name': alm.extensions.acf_parent_field_name
|
873 |
-
};
|
874 |
-
}
|
875 |
|
876 |
-
|
877 |
-
alm.term_query_array = '';
|
878 |
-
if (alm.extensions.term_query) {
|
879 |
-
action = 'alm_get_terms';
|
880 |
-
alm.term_query_array = {
|
881 |
-
'term_query': 'true',
|
882 |
-
'taxonomy': alm.extensions.term_query_taxonomy,
|
883 |
-
'hide_empty': alm.extensions.term_query_hide_empty,
|
884 |
-
'number': alm.extensions.term_query_number
|
885 |
-
};
|
886 |
-
}
|
887 |
|
888 |
-
|
889 |
-
alm.nextpage_array = '';
|
890 |
-
if (alm.addons.nextpage) {
|
891 |
-
action = 'alm_nextpage';
|
892 |
-
alm.nextpage_array = {
|
893 |
-
'nextpage': 'true',
|
894 |
-
'urls': alm.addons.nextpage_urls,
|
895 |
-
'scroll': alm.addons.nextpage_scroll,
|
896 |
-
'pageviews': alm.addons.nextpage_pageviews,
|
897 |
-
'post_id': alm.addons.nextpage_post_id,
|
898 |
-
'startpage': alm.addons.nextpage_startpage
|
899 |
-
};
|
900 |
-
}
|
901 |
|
902 |
-
|
903 |
-
alm.single_post_array = '';
|
904 |
-
if (alm.addons.single_post) {
|
905 |
-
alm.single_post_array = {
|
906 |
-
'single_post': 'true',
|
907 |
-
'id': alm.addons.single_post_id,
|
908 |
-
'slug': alm.addons.single_post_slug
|
909 |
-
};
|
910 |
-
}
|
911 |
|
912 |
-
|
913 |
-
alm.comments_array = '';
|
914 |
-
if (alm.addons.comments === 'true') {
|
915 |
-
action = 'alm_comments';
|
916 |
-
alm.posts_per_page = alm.addons.comments_per_page;
|
917 |
-
alm.comments_array = {
|
918 |
-
'comments': 'true',
|
919 |
-
'post_id': alm.addons.comments_post_id,
|
920 |
-
'per_page': alm.addons.comments_per_page,
|
921 |
-
'type': alm.addons.comments_type,
|
922 |
-
'style': alm.addons.comments_style,
|
923 |
-
'template': alm.addons.comments_template,
|
924 |
-
'callback': alm.addons.comments_callback
|
925 |
-
};
|
926 |
-
}
|
927 |
|
928 |
-
|
929 |
-
alm.users_array = '';
|
930 |
-
if (alm.addons.users) {
|
931 |
-
action = 'alm_users';
|
932 |
-
alm.users_array = {
|
933 |
-
'users': 'true',
|
934 |
-
'role': alm.listing.dataset.usersRole,
|
935 |
-
'include': alm.listing.dataset.usersInclude,
|
936 |
-
'exclude': alm.listing.dataset.usersExclude,
|
937 |
-
'per_page': alm.posts_per_page,
|
938 |
-
'order': alm.listing.dataset.usersOrder,
|
939 |
-
'orderby': alm.listing.dataset.usersOrderby
|
940 |
-
};
|
941 |
-
}
|
942 |
|
943 |
-
|
944 |
-
alm.cta_array = '';
|
945 |
-
if (alm.addons.cta === 'true') {
|
946 |
-
alm.cta_array = {
|
947 |
-
'cta': 'true',
|
948 |
-
'cta_position': alm.addons.cta_position,
|
949 |
-
'cta_repeater': alm.addons.cta_repeater,
|
950 |
-
'cta_theme_repeater': alm.addons.cta_theme_repeater
|
951 |
-
};
|
952 |
-
}
|
953 |
|
954 |
-
|
955 |
-
if (alm.extensions.restapi) {
|
956 |
-
alm.AjaxLoadMore.restapi(alm, action, queryType);
|
957 |
-
}
|
958 |
-
// Tabs
|
959 |
-
else if (alm.addons.tabs) {
|
960 |
-
alm.AjaxLoadMore.tabs(alm);
|
961 |
-
}
|
962 |
-
// Standard ALM
|
963 |
-
else {
|
964 |
-
alm.AjaxLoadMore.adminajax(alm, action, queryType);
|
965 |
-
}
|
966 |
-
};
|
967 |
|
968 |
-
|
969 |
-
* adminajax
|
970 |
-
* Send request to the admin-ajax.php
|
971 |
-
*
|
972 |
-
* @param {*} alm | ALm object
|
973 |
-
* @param {*} action | Ajax action
|
974 |
-
* @param {*} queryType
|
975 |
-
* @since 5.0.0
|
976 |
-
*/
|
977 |
-
alm.AjaxLoadMore.adminajax = function (alm, action, queryType) {
|
978 |
|
979 |
-
|
980 |
-
alm.button.classList.add('loading');
|
981 |
-
}
|
982 |
|
983 |
-
|
984 |
-
_axios2.default.interceptors.request.use(function (config) {
|
985 |
-
config.paramsSerializer = function (params) {
|
986 |
-
// Qs is already included in the Axios package
|
987 |
-
return qs.stringify(params, {
|
988 |
-
arrayFormat: 'brackets',
|
989 |
-
encode: false
|
990 |
-
});
|
991 |
-
};
|
992 |
-
return config;
|
993 |
-
});
|
994 |
|
995 |
-
|
996 |
-
var ajaxURL = alm_localize.ajaxurl;
|
997 |
|
998 |
-
|
999 |
-
var params = queryParams.almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js
|
1000 |
|
|
|
1001 |
|
1002 |
-
|
1003 |
-
// If has `single_post_target`, adjust the Ajax URL to the post URL.
|
1004 |
-
if (alm.addons.single_post && alm.addons.single_post_target) {
|
1005 |
-
ajaxURL = alm.addons.single_post_permalink;
|
1006 |
-
params = '';
|
1007 |
-
}
|
1008 |
|
1009 |
-
|
1010 |
-
if (alm.addons.woocommerce) {
|
1011 |
-
ajaxURL = (0, _woocommerce.wooGetURL)(alm);
|
1012 |
-
params = '';
|
1013 |
-
}
|
1014 |
|
1015 |
-
|
1016 |
-
_axios2.default.get(ajaxURL, { params: params }).then(function (response) {
|
1017 |
|
1018 |
-
|
1019 |
-
var data = '';
|
1020 |
|
1021 |
-
|
1022 |
-
// Single Posts
|
1023 |
-
data = (0, _singleposts2.default)(response, alm.addons.single_post_target);
|
1024 |
-
} else if (alm.addons.woocommerce) {
|
1025 |
-
// WooCommerce
|
1026 |
-
data = (0, _woocommerce.wooGetContent)(response, alm);
|
1027 |
-
} else {
|
1028 |
-
// Get data from response
|
1029 |
-
data = response.data;
|
1030 |
-
}
|
1031 |
|
1032 |
-
|
1033 |
-
if (queryType === 'standard') {
|
1034 |
-
alm.AjaxLoadMore.success(data, false);
|
1035 |
-
} else if (queryType === 'totalpages' && alm.addons.paging && alm.addons.nextpage) {
|
1036 |
-
// Next Page and Paging
|
1037 |
-
if (typeof almBuildPagination === 'function') {
|
1038 |
-
window.almBuildPagination(data.totalpages, alm);
|
1039 |
-
}
|
1040 |
-
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
1041 |
-
// Paging
|
1042 |
-
if (typeof almBuildPagination === 'function') {
|
1043 |
-
window.almBuildPagination(data.totalposts, alm);
|
1044 |
-
}
|
1045 |
-
}
|
1046 |
-
}).catch(function (error) {
|
1047 |
|
1048 |
-
|
1049 |
-
alm.AjaxLoadMore.error(error, 'adminajax');
|
1050 |
-
});
|
1051 |
-
};
|
1052 |
|
1053 |
-
|
1054 |
-
* tabs
|
1055 |
-
* Send request to the WP REST API
|
1056 |
-
*
|
1057 |
-
* @param {*} alm | ALm object
|
1058 |
-
* @since 5.2.0
|
1059 |
-
*/
|
1060 |
-
alm.AjaxLoadMore.tabs = function (alm) {
|
1061 |
|
1062 |
-
|
1063 |
|
1064 |
-
|
1065 |
-
post_id: alm.post_id,
|
1066 |
-
template: alm.addons.tab_template
|
1067 |
|
1068 |
-
|
1069 |
-
};_axios2.default.interceptors.request.use(function (config) {
|
1070 |
-
config.paramsSerializer = function (params) {
|
1071 |
-
// Qs is already included in the Axios package
|
1072 |
-
return qs.stringify(params, {
|
1073 |
-
arrayFormat: 'brackets',
|
1074 |
-
encode: false
|
1075 |
-
});
|
1076 |
-
};
|
1077 |
-
return config;
|
1078 |
-
});
|
1079 |
|
1080 |
-
|
1081 |
-
_axios2.default.get(alm_rest_url, { params: params }).then(function (response) {
|
1082 |
|
1083 |
-
|
1084 |
-
var results = response.data; // Get data from response
|
1085 |
-
var html = results.html;
|
1086 |
|
1087 |
-
|
1088 |
-
var obj = {
|
1089 |
-
'html': html,
|
1090 |
-
'meta': {
|
1091 |
-
'postcount': 1,
|
1092 |
-
'totalposts': 1
|
1093 |
-
}
|
1094 |
-
};
|
1095 |
-
alm.AjaxLoadMore.success(obj, false); // Send data
|
1096 |
|
|
|
1097 |
|
1098 |
-
|
1099 |
-
if (typeof almTabLoaded === 'function') {
|
1100 |
-
window.almTabLoaded(alm);
|
1101 |
-
}
|
1102 |
-
}).catch(function (error) {
|
1103 |
-
// Error
|
1104 |
-
alm.AjaxLoadMore.error(error, 'restapi');
|
1105 |
-
});
|
1106 |
-
};
|
1107 |
|
1108 |
-
|
1109 |
-
* restapi
|
1110 |
-
* Send request to the WP REST API
|
1111 |
-
*
|
1112 |
-
* @param {*} alm | ALm object
|
1113 |
-
* @param {*} action | Ajax action
|
1114 |
-
* @param {*} queryType
|
1115 |
-
* @since 5.0.0
|
1116 |
-
*/
|
1117 |
-
alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
|
1118 |
|
1119 |
-
|
1120 |
-
var alm_rest_url = alm.extensions.restapi_base_url + '/' + alm.extensions.restapi_namespace + '/' + alm.extensions.restapi_endpoint;
|
1121 |
-
var params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
|
1122 |
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
var results = response.data; // Get data from response
|
1139 |
-
var data = '',
|
1140 |
-
html = results.html,
|
1141 |
-
meta = results.meta,
|
1142 |
-
postcount = meta.postcount,
|
1143 |
-
totalposts = meta.totalposts;
|
1144 |
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1153 |
}
|
|
|
|
|
|
|
|
|
1154 |
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
};
|
1163 |
-
alm.AjaxLoadMore.success(obj, false); // Send data
|
1164 |
-
}).catch(function (error) {
|
1165 |
-
// Error
|
1166 |
-
alm.AjaxLoadMore.error(error, 'restapi');
|
1167 |
-
});
|
1168 |
-
};
|
1169 |
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
} else {
|
1175 |
-
alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
|
1176 |
-
}
|
1177 |
-
}
|
1178 |
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
* @param is_cache Are results of the Ajax request coming from cache
|
1185 |
-
* @since 2.6.0
|
1186 |
-
*/
|
1187 |
-
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1188 |
-
var _this = this;
|
1189 |
|
1190 |
-
|
1191 |
-
// Get previous page data
|
1192 |
-
alm.AjaxLoadMore.getSinglePost();
|
1193 |
-
}
|
1194 |
|
1195 |
-
|
1196 |
|
1197 |
-
// Create `.alm-reveal` element
|
1198 |
-
//let reveal = document.createElement('div');
|
1199 |
-
var reveal = alm.container_type === 'table' ? document.createElement('tbody') : document.createElement('div');
|
1200 |
-
alm.el = reveal;
|
1201 |
-
reveal.style.opacity = 0;
|
1202 |
-
reveal.style.height = 0;
|
1203 |
-
reveal.style.outline = 'none';
|
1204 |
|
1205 |
-
|
1206 |
-
|
1207 |
|
1208 |
-
|
|
|
|
|
1209 |
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
|
1218 |
-
total = meta.postcount;
|
1219 |
-
alm.totalposts = meta.totalposts;
|
1220 |
-
alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
|
1221 |
-
alm.debug = meta.debug ? meta.debug : '';
|
1222 |
-
}
|
1223 |
|
1224 |
-
|
1225 |
-
alm.html = html;
|
1226 |
|
1227 |
-
|
1228 |
-
|
|
|
|
|
1229 |
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
}
|
1247 |
-
}
|
1248 |
-
if (typeof almEmpty === 'function') {
|
1249 |
-
window.almEmpty(alm);
|
1250 |
-
}
|
1251 |
-
if (alm.no_results) {
|
1252 |
-
setTimeout(function () {
|
1253 |
-
(0, _noResults2.default)(alm.content, alm.no_results);
|
1254 |
-
}, alm.speed + 10);
|
1255 |
-
}
|
1256 |
-
}
|
1257 |
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
alm.posts_per_page = alm.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage;
|
1262 |
-
// SEO add-on
|
1263 |
-
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
1264 |
-
// Filters add-on
|
1265 |
-
if (alm.addons.filters) {
|
1266 |
-
if (alm.addons.filters_startpage > 0) {
|
1267 |
-
alm.page = alm.addons.filters_startpage - 1; // Set new page #
|
1268 |
-
alm.posts_per_page = alm.listing.dataset.postsPerPage; // Reset `filters-startpage` data after the first run
|
1269 |
-
}
|
1270 |
-
}
|
1271 |
-
}
|
1272 |
-
}
|
1273 |
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
|
1279 |
-
/*
|
1280 |
-
* Set localized variables and Results Text
|
1281 |
-
*/
|
1282 |
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
1283 |
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
1284 |
-
while (1) {
|
1285 |
-
switch (_context.prev = _context.next) {
|
1286 |
-
case 0:
|
1287 |
-
_context.next = 2;
|
1288 |
-
return (0, _setLocalizedVars2.default)(alm);
|
1289 |
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
}
|
1294 |
-
}
|
1295 |
-
}, _callee, _this);
|
1296 |
-
}))();
|
1297 |
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
|
|
|
|
|
|
|
|
1301 |
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
|
1304 |
-
|
|
|
|
|
1305 |
|
1306 |
-
|
|
|
|
|
1307 |
|
1308 |
-
|
|
|
1309 |
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
reveal.dataset.title = alm.addons.single_post_title;
|
1316 |
-
reveal.innerHTML = alm.html;
|
1317 |
-
} else {
|
1318 |
|
1319 |
-
|
1320 |
-
|
|
|
1321 |
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
|
1327 |
-
|
1328 |
-
var querystring = window.location.search;
|
1329 |
-
var seo_class = alm.addons.seo ? ' alm-seo' : '';
|
1330 |
-
var filters_class = alm.addons.filters ? ' alm-filters' : '';
|
1331 |
-
var preloaded_class = alm.is_preloaded ? ' alm-preloaded' : '';
|
1332 |
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1336 |
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
|
|
|
|
|
|
|
|
1342 |
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
|
|
1349 |
|
1350 |
-
|
1351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1352 |
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1357 |
|
1358 |
-
|
1359 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1360 |
|
1361 |
-
|
1362 |
-
var alm_reveal = document.createElement('div');
|
1363 |
|
1364 |
-
|
1365 |
|
1366 |
-
|
1367 |
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1373 |
-
alm_reveal.dataset.url = alm.canonical_url + querystring + '&paged=' + pagenum;
|
1374 |
-
alm_reveal.dataset.page = pagenum;
|
1375 |
-
} else {
|
1376 |
-
// Pretty Permalinks
|
1377 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1378 |
-
alm_reveal.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
1379 |
-
alm_reveal.dataset.page = pagenum;
|
1380 |
-
}
|
1381 |
-
}
|
1382 |
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
if (alm.addons.filters) {
|
1399 |
-
// Filters
|
1400 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
1401 |
-
alm_reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, 0);
|
1402 |
-
alm_reveal.dataset.page = '1';
|
1403 |
-
}
|
1404 |
-
}
|
1405 |
|
1406 |
-
|
1407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1408 |
|
1409 |
-
|
1410 |
-
|
|
|
|
|
|
|
|
|
1411 |
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1415 |
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
|
|
1419 |
|
1420 |
-
|
1421 |
-
|
1422 |
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
|
|
|
|
1427 |
|
1428 |
-
|
|
|
|
|
1429 |
|
1430 |
-
|
1431 |
-
|
|
|
|
|
|
|
|
|
|
|
1432 |
|
1433 |
-
|
|
|
|
|
1434 |
|
1435 |
-
|
1436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1437 |
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
reveal.dataset.page = pagenum;
|
1445 |
-
} else {
|
1446 |
-
// Pretty Permalinks
|
1447 |
-
reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1448 |
-
reveal.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
1449 |
-
reveal.dataset.page = pagenum;
|
1450 |
-
}
|
1451 |
-
} else if (alm.addons.filters) {
|
1452 |
-
// Filters
|
1453 |
-
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1454 |
-
reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, pagenum);
|
1455 |
-
reveal.dataset.page = pagenum;
|
1456 |
-
} else {
|
1457 |
-
// Basic ALM
|
1458 |
-
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1459 |
-
}
|
1460 |
-
} else if (alm.addons.filters) {
|
1461 |
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1467 |
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
}
|
1478 |
-
|
1479 |
-
reveal.innerHTML = alm.html;
|
1480 |
-
}
|
1481 |
-
}
|
1482 |
-
}
|
1483 |
|
1484 |
-
|
1485 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1486 |
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
case 0:
|
1493 |
-
_context2.next = 2;
|
1494 |
-
return (0, _woocommerce.woocommerce)(reveal, alm, data.pageTitle);
|
1495 |
|
1496 |
-
|
1497 |
-
|
|
|
|
|
|
|
1498 |
|
1499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1500 |
|
1501 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1502 |
|
1503 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1504 |
|
1505 |
-
|
1506 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1507 |
|
1508 |
-
|
|
|
|
|
1509 |
|
1510 |
-
|
|
|
1511 |
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1516 |
|
1517 |
-
|
1518 |
-
|
1519 |
-
alm.AjaxLoadMore.triggerDone();
|
1520 |
-
}
|
1521 |
|
1522 |
-
|
1523 |
-
|
1524 |
-
return _context2.stop();
|
1525 |
-
}
|
1526 |
-
}
|
1527 |
-
}, _callee2, this);
|
1528 |
-
}))().catch(function (e) {
|
1529 |
-
console.log(e);
|
1530 |
-
console.log('There was an error loading woocommerce products');
|
1531 |
-
});
|
1532 |
|
1533 |
-
|
|
|
1534 |
|
1535 |
-
|
1536 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1537 |
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
|
|
|
|
|
|
|
|
|
|
1541 |
|
1542 |
-
|
|
|
1543 |
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
imagesLoaded(reveal, function () {
|
1548 |
-
(0, _almAppendChildren2.default)(alm.listing, reveal);
|
1549 |
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
|
|
|
|
1555 |
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
alm.listing.appendChild(reveal);
|
1562 |
-
}
|
1563 |
-
}
|
1564 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1565 |
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1574 |
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
|
|
1583 |
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
}
|
1590 |
|
1591 |
-
|
1592 |
-
case 'end':
|
1593 |
-
return _context3.stop();
|
1594 |
-
}
|
1595 |
-
}
|
1596 |
-
}, _callee3, this);
|
1597 |
-
}))().catch(function (e) {
|
1598 |
-
console.log('There was an error with ALM Masonry');
|
1599 |
-
});
|
1600 |
-
}
|
1601 |
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
imagesLoaded(reveal, function () {
|
1606 |
-
(0, _fadeIn2.default)(reveal, 0);
|
1607 |
-
alm.AjaxLoadMore.transitionEnd();
|
1608 |
-
});
|
1609 |
-
} else {
|
1610 |
-
(0, _fadeIn2.default)(reveal, 0);
|
1611 |
-
alm.AjaxLoadMore.transitionEnd();
|
1612 |
-
}
|
1613 |
-
}
|
1614 |
|
1615 |
-
|
1616 |
-
else {
|
1617 |
-
if (alm.images_loaded === 'true') {
|
1618 |
-
imagesLoaded(reveal, function () {
|
1619 |
-
if (alm.transition_container) {
|
1620 |
-
(0, _fadeIn2.default)(reveal, alm.speed);
|
1621 |
-
}
|
1622 |
-
alm.AjaxLoadMore.transitionEnd();
|
1623 |
-
});
|
1624 |
-
} else {
|
1625 |
-
if (alm.transition_container) {
|
1626 |
-
(0, _fadeIn2.default)(reveal, alm.speed);
|
1627 |
-
}
|
1628 |
-
alm.AjaxLoadMore.transitionEnd();
|
1629 |
-
}
|
1630 |
-
}
|
1631 |
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
}, alm.speed);
|
1639 |
-
});
|
1640 |
}
|
1641 |
-
}
|
1642 |
-
|
1643 |
-
|
1644 |
-
if (!alm.init) {
|
1645 |
-
if (pagingContent) {
|
1646 |
-
(0, _fadeOut2.default)(pagingContent, alm.speed);
|
1647 |
-
pagingContent.style.outline = 'none';
|
1648 |
-
alm.main.classList.remove('alm-loading');
|
1649 |
-
|
1650 |
-
setTimeout(function () {
|
1651 |
-
pagingContent.style.opacity = 0;
|
1652 |
-
pagingContent.innerHTML = alm.html;
|
1653 |
-
|
1654 |
-
imagesLoaded(pagingContent, function () {
|
1655 |
-
// Delay for effect
|
1656 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1657 |
-
(0, _fadeIn2.default)(pagingContent, alm.speed);
|
1658 |
-
|
1659 |
-
// Remove opacity on element to fix CSS transition
|
1660 |
-
setTimeout(function () {
|
1661 |
-
pagingContent.style.opacity = '';
|
1662 |
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
|
|
1666 |
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
|
|
1674 |
} else {
|
1675 |
-
|
1676 |
-
|
1677 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1678 |
-
}, alm.speed);
|
1679 |
}
|
1680 |
-
|
|
|
|
|
1681 |
}
|
|
|
|
|
1682 |
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
// Insert Script
|
1690 |
-
_insertScript2.default.init(alm.el);
|
1691 |
|
1692 |
-
|
1693 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1694 |
-
window.almComplete(alm);
|
1695 |
-
}
|
1696 |
|
1697 |
-
|
1698 |
-
|
1699 |
-
// Filters Complete
|
1700 |
-
if (typeof almFilterComplete === 'function') {
|
1701 |
-
// Standard Filtering
|
1702 |
-
window.almFilterComplete();
|
1703 |
-
}
|
1704 |
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1712 |
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
|
|
|
|
|
|
1721 |
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1726 |
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
if (total < alm.posts_per_page) {
|
1736 |
-
alm.AjaxLoadMore.triggerDone();
|
1737 |
-
}
|
1738 |
-
}
|
1739 |
-
// End ALM Done
|
1740 |
-
});
|
1741 |
-
// End ALM Loaded
|
1742 |
}
|
1743 |
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1760 |
-
window.almComplete(alm);
|
1761 |
-
}
|
1762 |
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1770 |
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
|
|
|
|
|
|
1778 |
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
|
|
|
|
|
|
|
|
1786 |
}
|
|
|
1787 |
|
1788 |
-
|
1789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1790 |
|
1791 |
-
|
1792 |
-
|
1793 |
-
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1794 |
-
currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
|
1795 |
-
if (currentPage == alm.destroy_after) {
|
1796 |
-
// Disable ALM if page = alm.destroy_after val
|
1797 |
-
alm.AjaxLoadMore.destroyed();
|
1798 |
-
}
|
1799 |
}
|
1800 |
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1805 |
|
1806 |
-
//
|
1807 |
-
|
1808 |
|
1809 |
-
//
|
1810 |
-
|
1811 |
|
1812 |
|
1813 |
-
//
|
1814 |
-
|
1815 |
-
|
|
|
|
|
1816 |
}
|
1817 |
|
1818 |
-
//
|
1819 |
-
alm.
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
* pagingPreloadedInit
|
1824 |
-
* First run for Paging + Preloaded add-ons
|
1825 |
-
* Moves preloaded content into ajax container
|
1826 |
-
*
|
1827 |
-
* @param {data} Results of the Ajax request
|
1828 |
-
* @since 2.11.3
|
1829 |
-
*/
|
1830 |
-
alm.AjaxLoadMore.pagingPreloadedInit = function (data) {
|
1831 |
|
1832 |
-
|
|
|
1833 |
|
1834 |
-
|
1835 |
-
|
1836 |
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
if (
|
1842 |
-
|
|
|
|
|
|
|
|
|
1843 |
}
|
1844 |
-
|
1845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1846 |
}
|
1847 |
-
}
|
|
|
|
|
|
|
|
|
1848 |
};
|
1849 |
|
1850 |
/**
|
1851 |
-
*
|
1852 |
-
*
|
1853 |
-
* Moves .alm-nextpage content into ajax container
|
1854 |
*
|
1855 |
-
* @param {
|
1856 |
-
* @since 2.
|
1857 |
*/
|
1858 |
-
alm.AjaxLoadMore.
|
1859 |
|
1860 |
-
|
1861 |
|
1862 |
-
|
1863 |
-
|
|
|
1864 |
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1870 |
|
1871 |
-
|
1872 |
-
|
1873 |
-
* First run for Paging + (Preloaded & Next Page) add-ons. Create required containers.
|
1874 |
-
*
|
1875 |
-
* @param {data} Ajax results
|
1876 |
-
* @param {classes} added classes
|
1877 |
-
* @since 5.0
|
1878 |
-
*/
|
1879 |
-
alm.AjaxLoadMore.pagingInit = function (data) {
|
1880 |
-
var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'alm-reveal';
|
1881 |
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
var reveal = document.createElement('div');
|
1886 |
-
reveal.setAttribute('class', classes);
|
1887 |
-
|
1888 |
-
// Create `alm-paging-loading` container
|
1889 |
-
var content = document.createElement('div');
|
1890 |
-
content.setAttribute('class', 'alm-paging-content' + alm.tcc);
|
1891 |
-
content.innerHTML = data;
|
1892 |
-
reveal.appendChild(content);
|
1893 |
-
|
1894 |
-
// Create `alm-paging-content` container
|
1895 |
-
var loader = document.createElement('div');
|
1896 |
-
loader.setAttribute('class', 'alm-paging-loading');
|
1897 |
-
reveal.appendChild(loader);
|
1898 |
-
|
1899 |
-
// Add div to container
|
1900 |
-
alm.listing.appendChild(reveal);
|
1901 |
-
|
1902 |
-
// Get/Set height of .alm-listing div
|
1903 |
-
var styles = window.getComputedStyle(alm.listing);
|
1904 |
-
var pTop = parseInt(styles.getPropertyValue('padding-top').replace('px', ''));
|
1905 |
-
var pBtm = parseInt(styles.getPropertyValue('padding-bottom').replace('px', ''));
|
1906 |
-
var h = reveal.offsetHeight;
|
1907 |
-
|
1908 |
-
// Set initial `.alm-listing` height
|
1909 |
-
alm.listing.style.height = h + pTop + pBtm + 'px';
|
1910 |
|
1911 |
-
|
1912 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1913 |
|
1914 |
-
// Reset button text
|
1915 |
-
alm.AjaxLoadMore.resetBtnText();
|
1916 |
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
window.almFadePageControls(alm.btnWrap);
|
1921 |
-
}
|
1922 |
-
if (typeof almOnWindowResize === 'function') {
|
1923 |
-
window.almOnWindowResize(alm);
|
1924 |
}
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
|
|
1928 |
};
|
1929 |
|
1930 |
-
/**
|
1931 |
-
|
1932 |
-
*
|
1933 |
*
|
1934 |
-
* @param {
|
1935 |
-
* @
|
1936 |
-
|
1937 |
-
|
1938 |
-
if (!reveal || !alm.transition_container) {
|
1939 |
-
return false; // Exit if not `transition_container`
|
1940 |
-
}
|
1941 |
-
var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances from jQuery obj
|
1942 |
-
if (nested) {
|
1943 |
-
nested.forEach(function (element) {
|
1944 |
-
window.almInit(element);
|
1945 |
-
});
|
1946 |
-
}
|
1947 |
-
};
|
1948 |
-
|
1949 |
-
/**
|
1950 |
-
* fetchingPreviousPost
|
1951 |
-
* Get the previous post ID via ajax
|
1952 |
-
*
|
1953 |
-
* @since 2.7.4
|
1954 |
*/
|
|
|
1955 |
|
1956 |
-
|
1957 |
-
alm.
|
1958 |
-
|
1959 |
-
}
|
1960 |
-
|
1961 |
-
alm.AjaxLoadMore.getSinglePost = function () {
|
1962 |
-
|
1963 |
-
var action = 'alm_get_single';
|
1964 |
-
|
1965 |
-
if (alm.fetchingPreviousPost) {
|
1966 |
-
return false;
|
1967 |
-
}
|
1968 |
-
|
1969 |
-
alm.fetchingPreviousPost = true;
|
1970 |
-
|
1971 |
-
// Get admin-ajax.php URL
|
1972 |
-
var ajaxURL = alm_localize.ajaxurl;
|
1973 |
-
|
1974 |
-
// Get data params
|
1975 |
-
var params = {
|
1976 |
-
id: alm.addons.single_post_id,
|
1977 |
-
initial_id: alm.addons.single_post_init_id,
|
1978 |
-
order: alm.addons.single_post_order,
|
1979 |
-
taxonomy: alm.addons.single_post_taxonomy,
|
1980 |
-
excluded_terms: alm.addons.single_post_excluded_terms,
|
1981 |
-
post_type: alm.post_type,
|
1982 |
-
init: alm.addons.single_post_init,
|
1983 |
-
action: action
|
1984 |
-
};
|
1985 |
|
1986 |
-
//
|
1987 |
-
_axios2.default.
|
1988 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1989 |
|
1990 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1991 |
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
alm.
|
1996 |
-
|
1997 |
-
|
1998 |
-
} else {
|
1999 |
-
if (!data.has_previous_post) {
|
2000 |
-
alm.AjaxLoadMore.triggerDone();
|
2001 |
}
|
|
|
2002 |
}
|
2003 |
-
if (typeof window.almSetSinglePost === 'function') {
|
2004 |
-
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
2005 |
-
}
|
2006 |
-
alm.fetchingPreviousPost = false;
|
2007 |
-
alm.addons.single_post_init = false;
|
2008 |
-
}).catch(function (error) {
|
2009 |
-
// Error
|
2010 |
|
2011 |
-
|
2012 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013 |
});
|
2014 |
};
|
2015 |
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
2023 |
-
if (typeof almSetNextPage === 'function') {
|
2024 |
-
// Next Page
|
2025 |
-
window.almSetNextPage(alm);
|
2026 |
-
}
|
2027 |
-
if (typeof almSEO === "function") {
|
2028 |
-
// SEO
|
2029 |
-
window.almSEO(alm, false);
|
2030 |
-
}
|
2031 |
-
if (typeof almWooCommerce === 'function') {
|
2032 |
-
// WooCommerce
|
2033 |
-
window.almWooCommerce(alm);
|
2034 |
}
|
2035 |
-
}
|
2036 |
|
2037 |
/**
|
2038 |
-
*
|
|
|
2039 |
*
|
2040 |
-
*
|
2041 |
-
* @
|
|
|
2042 |
*/
|
2043 |
-
alm.AjaxLoadMore.
|
2044 |
-
|
2045 |
-
alm.finished = true;
|
2046 |
-
if (!alm.addons.paging) {
|
2047 |
-
alm.button.classList.add('done');
|
2048 |
-
alm.button.disabled = true;
|
2049 |
-
}
|
2050 |
-
if (typeof almDone === 'function') {
|
2051 |
-
// Delay done until animations complete
|
2052 |
-
setTimeout(function () {
|
2053 |
-
window.almDone(alm);
|
2054 |
-
(0, _placeholder.hidePlaceholder)(alm);
|
2055 |
-
}, alm.speed + 10);
|
2056 |
-
}
|
2057 |
-
};
|
2058 |
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
*
|
2063 |
-
* @since 2.8.4
|
2064 |
-
*/
|
2065 |
-
alm.AjaxLoadMore.resetBtnText = function () {
|
2066 |
-
if (alm.button_loading_label !== false && !alm.addons.paging) {
|
2067 |
-
// Reset button text
|
2068 |
-
alm.button.innerHTML = alm.button_label;
|
2069 |
}
|
2070 |
-
};
|
2071 |
|
2072 |
-
|
2073 |
-
* Ajax Error
|
2074 |
-
* Error function after failed data
|
2075 |
-
*
|
2076 |
-
* @since 2.6.0
|
2077 |
-
*/
|
2078 |
-
alm.AjaxLoadMore.error = function (error) {
|
2079 |
-
var location = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
2080 |
-
|
2081 |
-
alm.loading = false;
|
2082 |
-
if (!alm.addons.paging) {
|
2083 |
-
alm.button.classList.remove('loading');
|
2084 |
-
alm.AjaxLoadMore.resetBtnText();
|
2085 |
-
}
|
2086 |
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
console.log('Error Msg: ', error.message);
|
2095 |
-
} else if (error.request) {
|
2096 |
-
// The request was made but no response was received
|
2097 |
-
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
2098 |
-
// http.ClientRequest in node.js
|
2099 |
-
console.log(error.request);
|
2100 |
-
} else {
|
2101 |
-
// Something happened in setting up the request that triggered an Error
|
2102 |
-
console.log('Error Msg: ', error.message);
|
2103 |
-
}
|
2104 |
|
2105 |
-
|
2106 |
-
|
2107 |
-
}
|
2108 |
|
2109 |
-
|
2110 |
-
console.log('ALM Error Debug: ', error.config);
|
2111 |
-
}
|
2112 |
-
};
|
2113 |
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
alm.
|
2124 |
-
alm.
|
2125 |
-
alm.
|
2126 |
-
}
|
2127 |
-
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
2128 |
-
alm.loading = true;
|
2129 |
-
alm.page++;
|
2130 |
-
alm.AjaxLoadMore.loadPosts();
|
2131 |
}
|
2132 |
-
};
|
2133 |
|
2134 |
-
|
2135 |
-
|
2136 |
-
* Load more button click event
|
2137 |
-
*
|
2138 |
-
* @since 1.0.0
|
2139 |
-
*/
|
2140 |
|
2141 |
-
|
2142 |
-
|
2143 |
-
}
|
2144 |
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
|
2157 |
-
|
2158 |
-
// Tabs
|
2159 |
-
if (typeof almOnTabsWindowResize === 'function') {
|
2160 |
-
window.almOnTabsWindowResize(alm);
|
2161 |
-
}
|
2162 |
-
}
|
2163 |
if (alm.addons.paging) {
|
2164 |
-
|
2165 |
-
|
2166 |
-
window.almOnWindowResize(alm);
|
2167 |
}
|
2168 |
}
|
2169 |
-
if (
|
2170 |
-
|
2171 |
}
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
|
|
|
|
|
|
2175 |
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2182 |
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
};
|
2188 |
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
|
|
|
|
2197 |
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
|
|
|
|
|
|
|
|
2201 |
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
2206 |
-
var scrollTrigger = btnPos <= 0 ? true : false;
|
2207 |
|
2208 |
-
|
2209 |
-
if (alm.window !== window) {
|
2210 |
-
var scrollInstance = alm.window.querySelector('.ajax-load-more-wrap'); // ALM inside the container
|
2211 |
-
var scrollHeight = scrollInstance.offsetHeight; // ALM height
|
2212 |
-
var scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
2213 |
-
scrollTrigger = scrollHeight <= scrollPosition ? true : false;
|
2214 |
-
}
|
2215 |
|
2216 |
-
|
2217 |
-
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {
|
2218 |
-
alm.button.click();
|
2219 |
-
}
|
2220 |
|
2221 |
-
|
2222 |
-
else {
|
2223 |
-
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2224 |
-
alm.button.click();
|
2225 |
-
}
|
2226 |
-
}
|
2227 |
-
}
|
2228 |
-
}, 25);
|
2229 |
-
};
|
2230 |
|
2231 |
-
|
2232 |
-
if (alm.scroll && !alm.addons.paging) {
|
2233 |
-
if (alm.scroll_container !== '') {
|
2234 |
-
// Scroll Container
|
2235 |
-
alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
|
2236 |
-
}
|
2237 |
-
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
|
2238 |
-
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
|
2239 |
-
alm.window.addEventListener('wheel', function (e) {
|
2240 |
-
// Mousewheel
|
2241 |
-
var direction = Math.sign(e.deltaY);
|
2242 |
-
if (direction > 0) {
|
2243 |
-
alm.AjaxLoadMore.scroll();
|
2244 |
-
}
|
2245 |
-
});
|
2246 |
-
alm.window.addEventListener('keyup', function (e) {
|
2247 |
-
// End, Page Down
|
2248 |
-
var code = e.keyCode ? e.keyCode : e.which;
|
2249 |
-
switch (code) {
|
2250 |
-
case 35:
|
2251 |
-
case 34:
|
2252 |
-
alm.AjaxLoadMore.scroll();
|
2253 |
-
break;
|
2254 |
-
}
|
2255 |
-
});
|
2256 |
-
}
|
2257 |
|
2258 |
-
|
2259 |
-
|
2260 |
-
|
2261 |
-
|
2262 |
-
|
2263 |
-
|
2264 |
-
|
2265 |
-
|
2266 |
-
if (!alm.addons.paging) {
|
2267 |
-
alm.button.style.display = 'none';
|
2268 |
-
alm.AjaxLoadMore.triggerDone();
|
2269 |
-
if (typeof almDestroyed === 'function') {
|
2270 |
-
window.almDestroyed(alm);
|
2271 |
-
}
|
2272 |
-
}
|
2273 |
-
};
|
2274 |
-
|
2275 |
-
/**
|
2276 |
-
* transitionEnd
|
2277 |
-
* Set variables after loading transiton completes
|
2278 |
-
*
|
2279 |
-
* @since 3.5
|
2280 |
-
*/
|
2281 |
-
alm.AjaxLoadMore.transitionEnd = function () {
|
2282 |
-
setTimeout(function () {
|
2283 |
-
alm.AjaxLoadMore.resetBtnText();
|
2284 |
-
alm.main.classList.remove('alm-loading');
|
2285 |
-
alm.button.classList.remove('loading'); // Loading button
|
2286 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
2287 |
-
if (!alm.addons.paging) {
|
2288 |
-
setTimeout(function () {
|
2289 |
-
alm.loading = false; // Delay to prevent loading to fast
|
2290 |
-
}, alm.speed * 3);
|
2291 |
-
}
|
2292 |
-
}, 100);
|
2293 |
-
(0, _placeholder.hidePlaceholder)(alm);
|
2294 |
-
};
|
2295 |
|
2296 |
-
|
2297 |
-
|
2298 |
-
* Set induvidual localized variable
|
2299 |
-
*
|
2300 |
-
* @param {string} name
|
2301 |
-
* @param {string} value
|
2302 |
-
* @since 4.1
|
2303 |
-
*/
|
2304 |
-
alm.AjaxLoadMore.setLocalizedVar = function () {
|
2305 |
-
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2306 |
-
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
2307 |
|
2308 |
-
|
2309 |
-
|
2310 |
-
|
2311 |
-
|
2312 |
-
};
|
2313 |
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
* @since 5.0
|
2320 |
-
*/
|
2321 |
-
alm.AjaxLoadMore.getQueryVariable = function (variable) {
|
2322 |
-
var query = window.location.search.substring(1);
|
2323 |
-
var vars = query.split('&');
|
2324 |
-
for (var i = 0; i < vars.length; i++) {
|
2325 |
-
var pair = vars[i].split('=');
|
2326 |
-
if (decodeURIComponent(pair[0]) == variable) {
|
2327 |
-
return decodeURIComponent(pair[1]);
|
2328 |
-
}
|
2329 |
-
}
|
2330 |
-
return false;
|
2331 |
-
};
|
2332 |
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
*
|
2337 |
-
* @param {String} querystring
|
2338 |
-
* @param {Number} page
|
2339 |
-
* @since 5.0
|
2340 |
-
*/
|
2341 |
-
alm.AjaxLoadMore.buildFilterURL = function () {
|
2342 |
-
var querystring = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2343 |
-
var page = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
2344 |
|
2345 |
-
|
|
|
|
|
|
|
|
|
2346 |
|
2347 |
-
|
|
|
|
|
|
|
|
|
|
|
2348 |
|
2349 |
-
|
2350 |
-
|
2351 |
-
if (qs) {
|
2352 |
-
// If already has `pg` in querystring
|
2353 |
-
if (alm.AjaxLoadMore.getQueryVariable('pg')) {
|
2354 |
-
qs = querystring.replace(/(pg=)[^\&]+/, '$1' + page);
|
2355 |
-
} else {
|
2356 |
-
qs = querystring + '&pg=' + page;
|
2357 |
-
}
|
2358 |
-
} else {
|
2359 |
-
qs = '?pg=' + page;
|
2360 |
-
}
|
2361 |
-
} else {
|
2362 |
-
// Not Paged
|
2363 |
-
qs = querystring.replace(/(pg=)[^\&]+/, '');
|
2364 |
-
qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring
|
2365 |
-
qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols
|
2366 |
-
}
|
2367 |
-
}
|
2368 |
|
2369 |
-
|
2370 |
-
|
|
|
|
|
2371 |
|
2372 |
-
|
2373 |
-
|
2374 |
-
* Load posts as user scrolls the page
|
2375 |
-
*
|
2376 |
-
* @since 2.0
|
2377 |
-
*/
|
2378 |
-
alm.AjaxLoadMore.init = function () {
|
2379 |
|
2380 |
-
|
2381 |
-
|
2382 |
-
alm.AjaxLoadMore.destroyed();
|
2383 |
-
}
|
2384 |
|
2385 |
-
|
2386 |
-
if (alm.disable_ajax) {
|
2387 |
-
alm.finished = true;
|
2388 |
-
alm.button.classList.add('done');
|
2389 |
-
} else {
|
2390 |
-
if (alm.pause === 'true') {
|
2391 |
-
alm.button.innerHTML = alm.button_label;
|
2392 |
-
alm.loading = false;
|
2393 |
-
} else {
|
2394 |
-
alm.AjaxLoadMore.loadPosts();
|
2395 |
-
}
|
2396 |
-
}
|
2397 |
-
}
|
2398 |
|
2399 |
-
|
2400 |
-
if (alm.addons.single_post) {
|
2401 |
-
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
2402 |
-
alm.loading = false;
|
2403 |
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
}
|
2409 |
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
}, alm.speed);
|
2418 |
-
}
|
2419 |
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
-
|
2432 |
-
}
|
2433 |
-
if (alm.no_results) {
|
2434 |
-
(0, _noResults2.default)(alm.content, alm.no_results);
|
2435 |
-
}
|
2436 |
-
}
|
2437 |
-
}, alm.speed);
|
2438 |
-
}
|
2439 |
|
2440 |
-
|
2441 |
-
|
2442 |
-
if (alm.resultsText) {
|
2443 |
-
resultsText.almInitResultsText(alm, 'preloaded');
|
2444 |
-
}
|
2445 |
|
2446 |
-
|
2447 |
-
|
2448 |
-
*/
|
2449 |
-
(0, _tableofcontents.tableOfContents)(alm, alm.init, true);
|
2450 |
-
}
|
2451 |
|
2452 |
-
|
2453 |
-
|
|
|
2454 |
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
|
2459 |
-
|
2460 |
-
|
2461 |
-
var nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
|
2462 |
|
2463 |
-
|
2464 |
-
|
2465 |
-
|
2466 |
-
|
2467 |
-
}
|
2468 |
-
}
|
2469 |
|
2470 |
-
|
2471 |
-
resultsText.almInitResultsText(alm, 'nextpage');
|
2472 |
-
}
|
2473 |
|
2474 |
-
|
2475 |
-
|
2476 |
-
*/
|
2477 |
-
(0, _tableofcontents.tableOfContents)(alm, alm.init, true);
|
2478 |
-
}
|
2479 |
|
2480 |
-
|
2481 |
-
if (alm.addons.woocommerce) {
|
2482 |
|
2483 |
-
|
2484 |
-
|
2485 |
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2489 |
|
|
|
|
|
|
|
|
|
|
|
2490 |
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
|
|
|
|
|
|
2496 |
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
|
|
2500 |
|
2501 |
-
//
|
2502 |
-
|
2503 |
-
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
2504 |
-
while (1) {
|
2505 |
-
switch (_context4.prev = _context4.next) {
|
2506 |
-
case 0:
|
2507 |
-
_context4.next = 2;
|
2508 |
-
return (0, _masonry2.default)(alm, true, false);
|
2509 |
|
2510 |
-
|
2511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2512 |
|
2513 |
-
|
2514 |
-
|
2515 |
-
return _context4.stop();
|
2516 |
-
}
|
2517 |
-
}
|
2518 |
-
}, _callee4, this);
|
2519 |
-
}))().catch(function (e) {
|
2520 |
-
console.log('There was an error with ALM Masonry');
|
2521 |
-
});
|
2522 |
-
}
|
2523 |
-
if (typeof almOnLoad === 'function') {
|
2524 |
-
window.almOnLoad(alm);
|
2525 |
-
}
|
2526 |
-
});
|
2527 |
-
};
|
2528 |
|
2529 |
-
|
2530 |
-
alm.AjaxLoadMore.init();
|
2531 |
|
2532 |
-
|
2533 |
-
|
2534 |
-
alm.proceed = true;
|
2535 |
-
}, alm.speed);
|
2536 |
|
2537 |
-
|
2538 |
-
* almUpdateCurrentPage
|
2539 |
-
* Update current page - triggered from paging add-on
|
2540 |
-
*
|
2541 |
-
* @since 2.7.0
|
2542 |
-
*/
|
2543 |
-
window.almUpdateCurrentPage = function (current, obj, alm) {
|
2544 |
|
2545 |
-
|
2546 |
-
alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
|
2547 |
|
2548 |
-
|
2549 |
-
|
|
|
|
|
2550 |
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
|
2555 |
-
data = target.innerHTML; // Get content
|
2556 |
-
target.parentNode.removeChild(target); // Remove target
|
2557 |
-
alm.addons.preloaded_amount = 0; // Reset preloaded
|
2558 |
-
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
2559 |
-
}
|
2560 |
-
alm.addons.paging_init = false;
|
2561 |
-
alm.init = false;
|
2562 |
-
} else if (alm.addons.paging_init && alm.addons.nextpage) {
|
2563 |
-
// Paging + Next Page on firstrun
|
2564 |
-
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
2565 |
-
if (target) {
|
2566 |
-
data = target.innerHTML; // Get content
|
2567 |
-
target.parentNode.removeChild(target); // Remove target
|
2568 |
-
alm.AjaxLoadMore.pagingNextpageInit(data);
|
2569 |
-
}
|
2570 |
-
alm.addons.paging_init = false;
|
2571 |
-
alm.init = false;
|
2572 |
-
} else {
|
2573 |
-
// Standard Paging
|
2574 |
-
alm.AjaxLoadMore.loadPosts();
|
2575 |
-
}
|
2576 |
-
};
|
2577 |
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
|
2588 |
|
2589 |
-
|
2590 |
-
* almGetObj
|
2591 |
-
* Returns the current ALM obj
|
2592 |
-
*
|
2593 |
-
* @param {string} specific obj
|
2594 |
-
* @since 2.7.0
|
2595 |
-
* @return object
|
2596 |
-
*/
|
2597 |
-
window.almGetObj = function () {
|
2598 |
-
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2599 |
|
2600 |
-
|
2601 |
-
|
2602 |
-
} else {
|
2603 |
-
return alm; // Return the entire alm object
|
2604 |
-
}
|
2605 |
-
};
|
2606 |
|
2607 |
-
|
2608 |
-
|
2609 |
-
|
2610 |
-
*
|
2611 |
-
* @since 2.12.0
|
2612 |
-
*/
|
2613 |
-
window.almTriggerClick = function () {
|
2614 |
-
alm.button.click();
|
2615 |
-
};
|
2616 |
-
};
|
2617 |
|
2618 |
-
|
2619 |
|
|
|
|
|
|
|
|
|
|
|
2620 |
|
2621 |
-
|
2622 |
-
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
2626 |
-
*/
|
2627 |
-
window.almInit = function (el) {
|
2628 |
-
var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
2629 |
|
2630 |
-
|
2631 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2632 |
|
2633 |
-
|
2634 |
-
|
2635 |
-
|
2636 |
-
*/
|
2637 |
|
2638 |
-
var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
2639 |
-
if (alm_instances.length) {
|
2640 |
-
[].concat(_toConsumableArray(alm_instances)).forEach(function (alm, e) {
|
2641 |
-
new ajaxloadmore(alm, e);
|
2642 |
-
});
|
2643 |
-
}
|
2644 |
-
})();
|
2645 |
|
2646 |
-
|
2647 |
-
|
2648 |
-
|
2649 |
-
*
|
2650 |
-
* @since 5.0
|
2651 |
-
* @param {*} transition
|
2652 |
-
* @param {*} speed
|
2653 |
-
* @param {*} data
|
2654 |
-
*/
|
2655 |
-
var filter = function filter() {
|
2656 |
-
var transition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fade';
|
2657 |
-
var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '200';
|
2658 |
-
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
2659 |
|
2660 |
-
|
2661 |
-
|
2662 |
-
|
2663 |
-
|
2664 |
-
|
2665 |
-
|
2666 |
-
|
|
|
2667 |
|
2668 |
-
|
2669 |
-
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
*/
|
2676 |
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2680 |
|
2681 |
-
|
2682 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2683 |
|
2684 |
-
|
2685 |
-
|
2686 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2687 |
|
2688 |
-
|
2689 |
-
|
2690 |
-
|
2691 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2692 |
|
2693 |
-
|
2694 |
-
|
2695 |
-
|
2696 |
-
|
2697 |
-
|
2698 |
-
|
2699 |
-
*/
|
2700 |
|
2701 |
-
|
2702 |
-
|
2703 |
-
|
2704 |
-
gtag('event', 'page_view', {
|
2705 |
-
'page_path': path
|
2706 |
-
});
|
2707 |
-
if (alm_localize.ga_debug) {
|
2708 |
-
console.log('Pageview sent to Google Analytics (gtag)');
|
2709 |
-
}
|
2710 |
-
}
|
2711 |
-
if (typeof ga === 'function') {
|
2712 |
-
// Deprecated GA Tracking
|
2713 |
-
ga('send', 'pageview', path);
|
2714 |
-
if (alm_localize.ga_debug) {
|
2715 |
-
console.log('Pageview sent to Google Analytics (ga)');
|
2716 |
-
}
|
2717 |
-
}
|
2718 |
-
if (typeof __gaTracker === 'function') {
|
2719 |
-
// Monster Insights
|
2720 |
-
__gaTracker('send', 'pageview', path);
|
2721 |
-
if (alm_localize.ga_debug) {
|
2722 |
-
console.log('Pageview sent to Google Analytics (__gaTracker)');
|
2723 |
-
}
|
2724 |
-
}
|
2725 |
|
2726 |
-
|
2727 |
-
|
2728 |
-
|
2729 |
-
|
2730 |
-
};
|
2731 |
-
exports.tracking = tracking;
|
2732 |
|
2733 |
-
|
2734 |
-
|
2735 |
-
|
2736 |
-
*
|
2737 |
-
* @since 5.0
|
2738 |
-
* @param {*} el
|
2739 |
-
*/
|
2740 |
|
2741 |
-
|
2742 |
-
|
2743 |
-
|
2744 |
-
}
|
2745 |
-
window.almInit(el);
|
2746 |
-
};
|
2747 |
-
exports.start = start;
|
2748 |
|
2749 |
-
|
2750 |
-
|
2751 |
-
|
2752 |
-
|
2753 |
-
|
2754 |
-
|
2755 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2756 |
|
2757 |
-
|
2758 |
-
|
2759 |
-
return false;
|
2760 |
-
}
|
2761 |
-
window.scrollTo({
|
2762 |
-
top: position,
|
2763 |
-
behavior: 'smooth'
|
2764 |
-
});
|
2765 |
-
};
|
2766 |
-
exports.almScroll = almScroll;
|
2767 |
|
2768 |
-
|
2769 |
-
|
2770 |
-
* Get the current top/left coordinates of an element relative to the document.
|
2771 |
-
*
|
2772 |
-
* @since 5.0
|
2773 |
-
* @param {*} el
|
2774 |
-
*/
|
2775 |
|
2776 |
-
|
2777 |
-
|
2778 |
|
2779 |
-
|
2780 |
-
|
2781 |
-
|
2782 |
-
|
2783 |
-
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
|
2784 |
-
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
2785 |
-
return { top: rect.top + scrollTop, left: rect.left + scrollLeft };
|
2786 |
-
};
|
2787 |
-
exports.getOffset = getOffset;
|
2788 |
|
2789 |
-
|
2790 |
-
|
2791 |
-
|
2792 |
-
|
2793 |
-
|
2794 |
-
|
|
|
|
|
2795 |
|
2796 |
-
|
2797 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2798 |
|
2799 |
-
|
2800 |
-
|
2801 |
-
|
2802 |
-
|
2803 |
-
};
|
2804 |
-
exports.render = render;
|
2805 |
|
2806 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2807 |
|
2808 |
-
|
2809 |
-
|
2810 |
-
|
2811 |
-
|
2812 |
-
/*! no static exports found */
|
2813 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2814 |
|
2815 |
-
|
|
|
2816 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2817 |
|
2818 |
-
|
2819 |
-
|
2820 |
-
|
2821 |
-
|
2822 |
-
* Append a child element to a container
|
2823 |
-
*
|
2824 |
-
* @param {*} target | Target element to append items
|
2825 |
-
* @param {*} element | The element to append
|
2826 |
-
* @param {*} transition | The transiton
|
2827 |
-
* @since 5.0
|
2828 |
-
*/
|
2829 |
|
2830 |
-
|
|
|
|
|
|
|
2831 |
|
2832 |
-
|
2833 |
-
|
2834 |
-
|
2835 |
-
|
2836 |
|
2837 |
-
|
2838 |
-
|
2839 |
-
|
2840 |
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
2846 |
-
|
2847 |
-
|
2848 |
-
target.appendChild(element);
|
2849 |
-
}
|
2850 |
-
};
|
2851 |
-
exports.default = almAppendChild;
|
2852 |
|
2853 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2854 |
|
2855 |
-
|
2856 |
-
|
2857 |
-
|
2858 |
-
|
2859 |
-
/*! no static exports found */
|
2860 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2861 |
|
2862 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2863 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2864 |
|
2865 |
-
|
2866 |
-
|
2867 |
-
});
|
2868 |
|
2869 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2870 |
|
2871 |
-
|
2872 |
|
2873 |
-
|
2874 |
-
|
2875 |
-
}
|
2876 |
|
2877 |
-
|
2878 |
-
|
2879 |
-
|
2880 |
-
|
2881 |
-
|
2882 |
-
|
2883 |
-
|
2884 |
-
|
|
|
|
|
|
|
|
|
2885 |
|
2886 |
-
|
2887 |
-
|
2888 |
-
|
2889 |
-
|
|
|
|
|
|
|
|
|
|
|
2890 |
|
2891 |
-
|
2892 |
-
return false;
|
2893 |
-
}
|
2894 |
-
for (var i = 0; i < array.length; i++) {
|
2895 |
-
var element = array[i];
|
2896 |
-
(0, _almAppendChild2.default)(target, element, transition);
|
2897 |
-
}
|
2898 |
-
};
|
2899 |
-
exports.default = almAppendChildren;
|
2900 |
|
2901 |
-
|
|
|
2902 |
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
-
|
2907 |
-
|
2908 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2909 |
|
2910 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2911 |
|
|
|
2912 |
|
2913 |
-
|
2914 |
-
|
2915 |
-
|
2916 |
-
/**
|
2917 |
-
* Convert a plain text string into an array of HTML nodes
|
2918 |
-
*
|
2919 |
-
* @param {*} html | The HTML string
|
2920 |
-
* @param {*} type
|
2921 |
-
* @return array
|
2922 |
-
* @since 5.0
|
2923 |
-
*/
|
2924 |
-
var almDomParser = function almDomParser() {
|
2925 |
-
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2926 |
-
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html';
|
2927 |
|
2928 |
-
|
2929 |
-
|
2930 |
-
|
2931 |
-
|
2932 |
-
|
2933 |
-
return data ? Array.prototype.slice.call(data.body.childNodes) : data;
|
2934 |
-
};
|
2935 |
-
exports.default = almDomParser;
|
2936 |
|
2937 |
-
|
|
|
|
|
|
|
2938 |
|
2939 |
-
|
2940 |
-
|
2941 |
-
!*** ./core/src/js/helpers/getCacheUrl.js ***!
|
2942 |
-
\********************************************/
|
2943 |
-
/*! no static exports found */
|
2944 |
-
/***/ (function(module, exports, __webpack_require__) {
|
2945 |
|
2946 |
-
|
|
|
|
|
|
|
|
|
2947 |
|
|
|
|
|
2948 |
|
2949 |
-
|
2950 |
-
|
2951 |
-
});
|
2952 |
-
/**
|
2953 |
-
* Generate the cache page URL for GET request
|
2954 |
-
*
|
2955 |
-
* @param {*} el | Target element to append items
|
2956 |
-
* @param {*} array | An array of elements
|
2957 |
-
* @since 5.0
|
2958 |
-
*/
|
2959 |
-
var getCacheUrl = function getCacheUrl(alm) {
|
2960 |
-
|
2961 |
-
if (!alm) {
|
2962 |
-
return false;
|
2963 |
-
}
|
2964 |
-
|
2965 |
-
var cache_url = '';
|
2966 |
-
var ext = '.html';
|
2967 |
-
|
2968 |
-
// SEO Add-on
|
2969 |
-
if (alm.init && alm.addons.seo && alm.isPaged) {
|
2970 |
-
// If the request is a paged URL (/page/3/)
|
2971 |
-
var firstpage = '1';
|
2972 |
-
cache_url = alm.addons.cache_path + alm.addons.cache_id + '/page-' + firstpage + '-' + alm.start_page + ext;
|
2973 |
-
}
|
2974 |
|
2975 |
-
|
2976 |
-
|
2977 |
|
2978 |
-
|
2979 |
-
|
2980 |
-
|
2981 |
-
|
2982 |
-
nextpage_cache_url = parseInt(alm.page) + 2;
|
2983 |
-
if (alm.isPaged) {
|
2984 |
-
// If the request a paged URL (/page/3/)
|
2985 |
-
nextpage_cache_url = parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1;
|
2986 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2987 |
}
|
2988 |
-
|
2989 |
-
|
2990 |
-
|
2991 |
-
|
2992 |
-
|
2993 |
}
|
|
|
2994 |
|
2995 |
-
|
2996 |
-
|
2997 |
-
|
2998 |
-
|
2999 |
-
|
3000 |
-
|
3001 |
-
}
|
3002 |
|
3003 |
-
|
3004 |
-
|
|
|
|
|
3005 |
|
3006 |
-
|
3007 |
|
3008 |
-
|
3009 |
|
3010 |
-
|
3011 |
-
|
3012 |
-
|
3013 |
-
\***************************************************/
|
3014 |
-
/*! no static exports found */
|
3015 |
-
/***/ (function(module, exports, __webpack_require__) {
|
3016 |
|
3017 |
-
|
3018 |
|
|
|
|
|
3019 |
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
|
3027 |
-
|
3028 |
-
|
3029 |
-
|
3030 |
-
|
3031 |
-
};
|
3032 |
-
exports.default = getParameterByName;
|
3033 |
|
3034 |
-
|
|
|
|
|
3035 |
|
3036 |
-
|
3037 |
-
/*!****************************************!*\
|
3038 |
-
!*** ./core/src/js/helpers/helpers.js ***!
|
3039 |
-
\****************************************/
|
3040 |
-
/*! no static exports found */
|
3041 |
-
/***/ (function(module, exports, __webpack_require__) {
|
3042 |
|
3043 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3044 |
|
|
|
|
|
|
|
|
|
3045 |
|
3046 |
-
|
3047 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3048 |
|
3049 |
-
|
3050 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3051 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3052 |
|
3053 |
-
|
3054 |
-
|
3055 |
-
|
3056 |
-
|
3057 |
-
|
3058 |
-
|
3059 |
-
|
3060 |
-
|
3061 |
-
}return resArray;
|
3062 |
-
};
|
3063 |
-
}
|
3064 |
|
3065 |
-
|
3066 |
-
if (
|
3067 |
-
|
3068 |
-
|
3069 |
-
|
3070 |
-
};
|
3071 |
|
3072 |
-
|
3073 |
-
if (
|
3074 |
-
|
3075 |
-
|
3076 |
-
|
3077 |
-
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
|
3082 |
-
|
3083 |
-
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
3088 |
-
|
3089 |
-
var maxSafeInteger = Math.pow(2, 53) - 1;
|
3090 |
-
var toLength = function toLength(value) {
|
3091 |
-
var len = toInteger(value);
|
3092 |
-
return Math.min(Math.max(len, 0), maxSafeInteger);
|
3093 |
-
};
|
3094 |
|
3095 |
-
|
3096 |
-
|
3097 |
-
|
3098 |
-
var C = this;
|
3099 |
|
3100 |
-
|
3101 |
-
|
|
|
|
|
3102 |
|
3103 |
-
|
3104 |
-
|
3105 |
-
|
3106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3107 |
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
-
|
3113 |
-
|
3114 |
-
if (!isCallable(mapFn)) {
|
3115 |
-
throw new TypeError('Array.from: when provided, the second argument must be a function');
|
3116 |
-
}
|
3117 |
|
3118 |
-
|
3119 |
-
|
3120 |
-
T = arguments[2];
|
3121 |
-
}
|
3122 |
}
|
3123 |
|
3124 |
-
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
3134 |
-
|
3135 |
-
|
3136 |
-
|
3137 |
-
|
3138 |
-
|
3139 |
-
|
3140 |
-
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
|
3145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3146 |
}
|
3147 |
-
// 18. Let putStatus be Put(A, "length", len, true).
|
3148 |
-
A.length = len;
|
3149 |
-
// 20. Return A.
|
3150 |
-
return A;
|
3151 |
-
};
|
3152 |
-
}();
|
3153 |
-
}
|
3154 |
|
3155 |
-
|
3156 |
-
|
3157 |
-
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
-
|
3162 |
-
|
3163 |
-
|
3164 |
-
|
3165 |
-
|
3166 |
-
// https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
|
3167 |
-
(function (arr) {
|
3168 |
-
arr.forEach(function (item) {
|
3169 |
-
if (item.hasOwnProperty('remove')) {
|
3170 |
-
return;
|
3171 |
-
}
|
3172 |
-
Object.defineProperty(item, 'remove', {
|
3173 |
-
configurable: true,
|
3174 |
-
enumerable: true,
|
3175 |
-
writable: true,
|
3176 |
-
value: function remove() {
|
3177 |
-
if (this.parentNode !== null) this.parentNode.removeChild(this);
|
3178 |
-
}
|
3179 |
-
});
|
3180 |
-
});
|
3181 |
-
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
3182 |
|
3183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3184 |
|
3185 |
-
|
3186 |
-
|
3187 |
-
|
3188 |
-
|
3189 |
-
|
3190 |
-
|
|
|
|
|
3191 |
|
3192 |
-
|
|
|
|
|
3193 |
|
|
|
|
|
|
|
|
|
|
|
3194 |
|
3195 |
-
|
3196 |
-
|
3197 |
-
|
3198 |
-
|
3199 |
-
|
3200 |
-
|
3201 |
-
|
3202 |
-
* (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js )
|
3203 |
-
* Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below)
|
3204 |
-
* All code below is Licensed under the X11/MIT License
|
3205 |
-
*/
|
3206 |
|
3207 |
-
|
3208 |
-
|
3209 |
-
|
|
|
3210 |
|
3211 |
-
|
3212 |
-
|
3213 |
-
|
3214 |
-
|
|
|
|
|
|
|
|
|
|
|
3215 |
|
3216 |
-
|
3217 |
-
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3225 |
|
3226 |
-
|
3227 |
-
|
3228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3229 |
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
-
|
3235 |
-
|
3236 |
-
|
3237 |
-
|
3238 |
-
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
-
|
3243 |
-
|
3244 |
-
|
|
|
|
|
|
|
|
|
|
|
3245 |
|
3246 |
-
|
3247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3248 |
|
3249 |
-
|
3250 |
-
|
3251 |
-
|
3252 |
-
|
3253 |
-
|
3254 |
-
hasOwnProp = ObjectProto.hasOwnProperty;
|
3255 |
|
3256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3257 |
|
3258 |
-
|
3259 |
-
|
3260 |
-
|
3261 |
-
|
3262 |
-
|
3263 |
-
|
|
|
|
|
|
|
|
|
|
|
3264 |
|
3265 |
-
|
3266 |
|
3267 |
-
|
3268 |
-
if (!lookupGetter.call(obj, prop) && !lookupSetter.call(obj, prop)) {
|
3269 |
-
// data property defined and no pre-existing accessors
|
3270 |
-
obj[prop] = descriptor.value;
|
3271 |
-
}
|
3272 |
|
3273 |
-
|
3274 |
-
|
3275 |
-
|
3276 |
-
|
3277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3278 |
|
3279 |
-
|
3280 |
-
|
3281 |
-
if (!(descriptor.writable && descriptor.enumerable && descriptor.configurable)) {
|
3282 |
-
throw new TypeError("This implementation of Object.defineProperty does not support" + " false for configurable, enumerable, or writable.");
|
3283 |
-
}
|
3284 |
|
3285 |
-
|
3286 |
-
|
3287 |
-
|
3288 |
-
|
3289 |
-
|
3290 |
-
|
|
|
3291 |
|
3292 |
-
|
3293 |
-
|
3294 |
-
|
|
|
3295 |
|
3296 |
-
|
3297 |
-
|
3298 |
-
|
3299 |
-
|
3300 |
-
|
3301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3302 |
|
3303 |
-
|
|
|
|
|
|
|
3304 |
|
3305 |
-
|
3306 |
-
|
3307 |
-
|
3308 |
-
|
3309 |
-
|
3310 |
-
getter = lookupGetter.call(obj, prop),
|
3311 |
-
setter = lookupSetter.call(obj, prop);
|
3312 |
|
3313 |
-
|
3314 |
-
|
3315 |
-
|
3316 |
-
|
3317 |
-
|
3318 |
-
|
3319 |
-
|
3320 |
-
|
3321 |
-
|
3322 |
|
3323 |
-
|
3324 |
-
|
3325 |
-
|
3326 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3327 |
|
3328 |
-
|
3329 |
-
|
3330 |
-
|
3331 |
-
|
3332 |
-
|
3333 |
-
}
|
3334 |
|
3335 |
-
|
3336 |
-
|
3337 |
-
|
|
|
|
|
3338 |
|
3339 |
-
|
3340 |
-
|
3341 |
-
var prop;
|
3342 |
-
for (prop in props) {
|
3343 |
-
if (hasOwnProp.call(props, prop)) {
|
3344 |
-
Object.defineProperty(obj, prop, props[prop]);
|
3345 |
-
}
|
3346 |
-
}
|
3347 |
-
};
|
3348 |
-
}
|
3349 |
-
}
|
3350 |
-
})();
|
3351 |
|
3352 |
-
//
|
|
|
|
|
3353 |
|
3354 |
-
if (
|
3355 |
-
|
3356 |
-
|
3357 |
-
var propDescriptor = {
|
3358 |
-
enumerable: true,
|
3359 |
-
get: function get() {
|
3360 |
-
'use strict';
|
3361 |
|
3362 |
-
|
3363 |
-
|
3364 |
-
|
3365 |
-
|
3366 |
-
|
3367 |
-
propName,
|
3368 |
-
attribute,
|
3369 |
-
attributes = this.attributes,
|
3370 |
-
attsLength = attributes.length,
|
3371 |
-
toUpperCase = function toUpperCase(n0) {
|
3372 |
-
return n0.charAt(1).toUpperCase();
|
3373 |
-
},
|
3374 |
-
getter = function getter() {
|
3375 |
-
return this;
|
3376 |
-
},
|
3377 |
-
setter = function setter(attrName, value) {
|
3378 |
-
return typeof value !== 'undefined' ? this.setAttribute(attrName, value) : this.removeAttribute(attrName);
|
3379 |
-
};
|
3380 |
-
try {
|
3381 |
-
// Simulate DOMStringMap w/accessor support
|
3382 |
-
// Test setting accessor on normal object
|
3383 |
-
({}).__defineGetter__('test', function () {});
|
3384 |
-
HTML5_DOMStringMap = {};
|
3385 |
-
} catch (e1) {
|
3386 |
-
// Use a DOM object for IE8
|
3387 |
-
HTML5_DOMStringMap = document.createElement('div');
|
3388 |
}
|
3389 |
-
|
3390 |
-
|
3391 |
-
|
3392 |
-
// colons (and non-uppercase for XHTML)
|
3393 |
-
if (attribute && attribute.name && /^data-\w[\w\-]*$/.test(attribute.name)) {
|
3394 |
-
attrVal = attribute.value;
|
3395 |
-
attrName = attribute.name;
|
3396 |
-
// Change to CamelCase
|
3397 |
-
propName = attrName.substr(5).replace(/-./g, toUpperCase);
|
3398 |
-
try {
|
3399 |
-
Object.defineProperty(HTML5_DOMStringMap, propName, {
|
3400 |
-
enumerable: this.enumerable,
|
3401 |
-
get: getter.bind(attrVal || ''),
|
3402 |
-
set: setter.bind(that, attrName)
|
3403 |
-
});
|
3404 |
-
} catch (e2) {
|
3405 |
-
// if accessors are not working
|
3406 |
-
HTML5_DOMStringMap[propName] = attrVal;
|
3407 |
-
}
|
3408 |
-
}
|
3409 |
}
|
3410 |
-
return HTML5_DOMStringMap;
|
3411 |
-
}
|
3412 |
-
};
|
3413 |
-
try {
|
3414 |
-
// FF enumerates over element's dataset, but not
|
3415 |
-
// Element.prototype.dataset; IE9 iterates over both
|
3416 |
-
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
3417 |
-
} catch (e) {
|
3418 |
-
propDescriptor.enumerable = false; // IE8 does not allow setting to true
|
3419 |
-
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
3420 |
-
}
|
3421 |
-
}
|
3422 |
|
3423 |
-
|
|
|
|
|
|
|
|
|
3424 |
|
3425 |
-
|
3426 |
-
|
3427 |
-
!*** ./core/src/js/helpers/queryParams.js ***!
|
3428 |
-
\********************************************/
|
3429 |
-
/*! no static exports found */
|
3430 |
-
/***/ (function(module, exports, __webpack_require__) {
|
3431 |
|
3432 |
-
|
|
|
3433 |
|
|
|
|
|
|
|
3434 |
|
3435 |
-
Object.defineProperty(exports, "__esModule", {
|
3436 |
-
value: true
|
3437 |
-
});
|
3438 |
-
exports.almGetAjaxParams = almGetAjaxParams;
|
3439 |
-
exports.almGetRestParams = almGetRestParams;
|
3440 |
-
/**
|
3441 |
-
* almGetAjaxParams
|
3442 |
-
* Build the data object to send with the Ajax request
|
3443 |
-
*
|
3444 |
-
* @param alm object
|
3445 |
-
* @param action string
|
3446 |
-
* @param queryType string
|
3447 |
-
* @since 3.6
|
3448 |
-
*/
|
3449 |
|
3450 |
-
|
|
|
|
|
|
|
|
|
3451 |
|
3452 |
-
|
3453 |
-
|
3454 |
-
|
3455 |
-
post_id: alm.post_id,
|
3456 |
-
slug: alm.slug,
|
3457 |
-
canonical_url: encodeURIComponent(alm.canonical_url),
|
3458 |
-
posts_per_page: alm.posts_per_page,
|
3459 |
-
page: alm.page,
|
3460 |
-
offset: alm.offset,
|
3461 |
-
post_type: alm.post_type,
|
3462 |
-
repeater: alm.repeater,
|
3463 |
-
seo_start_page: alm.start_page
|
3464 |
-
};
|
3465 |
|
3466 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3467 |
|
3468 |
-
|
3469 |
-
|
3470 |
-
}
|
3471 |
-
if (alm.addons.paging) {
|
3472 |
-
data.paging = alm.addons.paging;
|
3473 |
-
}
|
3474 |
-
if (alm.addons.preloaded) {
|
3475 |
-
data.preloaded = alm.addons.preloaded;
|
3476 |
-
data.preloaded_amount = alm.addons.preloaded_amount;
|
3477 |
-
}
|
3478 |
-
if (alm.addons.cache === 'true') {
|
3479 |
-
data.cache_id = alm.addons.cache_id;
|
3480 |
-
data.cache_logged_in = alm.addons.cache_logged_in;
|
3481 |
-
}
|
3482 |
-
if (alm.acf_array) {
|
3483 |
-
data.acf = alm.acf_array;
|
3484 |
-
}
|
3485 |
-
if (alm.term_query_array) {
|
3486 |
-
data.term_query = alm.term_query_array;
|
3487 |
-
}
|
3488 |
-
if (alm.cta_array) {
|
3489 |
-
data.cta = alm.cta_array;
|
3490 |
-
}
|
3491 |
-
if (alm.comments_array) {
|
3492 |
-
data.comments = alm.comments_array;
|
3493 |
-
}
|
3494 |
-
if (alm.nextpage_array) {
|
3495 |
-
data.nextpage = alm.nextpage_array;
|
3496 |
-
}
|
3497 |
-
if (alm.single_post_array) {
|
3498 |
-
data.single_post = alm.single_post_array;
|
3499 |
-
}
|
3500 |
-
if (alm.users_array) {
|
3501 |
-
data.users = alm.users_array;
|
3502 |
-
}
|
3503 |
|
3504 |
-
|
3505 |
-
|
3506 |
-
|
3507 |
-
|
3508 |
-
|
3509 |
-
|
3510 |
-
|
3511 |
-
|
3512 |
-
|
3513 |
-
|
3514 |
-
|
3515 |
-
|
3516 |
-
|
3517 |
-
|
3518 |
-
|
3519 |
-
}
|
3520 |
-
if (alm.listing.dataset.categoryNotIn) {
|
3521 |
-
data.category__not_in = alm.listing.dataset.categoryNotIn;
|
3522 |
-
}
|
3523 |
-
if (alm.listing.dataset.tag) {
|
3524 |
-
data.tag = alm.listing.dataset.tag;
|
3525 |
-
}
|
3526 |
-
if (alm.listing.dataset.tagAnd) {
|
3527 |
-
data.tag__and = alm.listing.dataset.tagAnd;
|
3528 |
-
}
|
3529 |
-
if (alm.listing.dataset.tagNotIn) {
|
3530 |
-
data.tag__not_in = alm.listing.dataset.tagNotIn;
|
3531 |
-
}
|
3532 |
-
if (alm.listing.dataset.taxonomy) {
|
3533 |
-
data.taxonomy = alm.listing.dataset.taxonomy;
|
3534 |
-
}
|
3535 |
-
if (alm.listing.dataset.taxonomyTerms) {
|
3536 |
-
data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;
|
3537 |
-
}
|
3538 |
-
if (alm.listing.dataset.taxonomyOperator) {
|
3539 |
-
data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;
|
3540 |
-
}
|
3541 |
-
if (alm.listing.dataset.taxonomyRelation) {
|
3542 |
-
data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;
|
3543 |
-
}
|
3544 |
-
if (alm.listing.dataset.metaKey) {
|
3545 |
-
data.meta_key = alm.listing.dataset.metaKey;
|
3546 |
-
}
|
3547 |
-
if (alm.listing.dataset.metaValue) {
|
3548 |
-
data.meta_value = alm.listing.dataset.metaValue;
|
3549 |
-
}
|
3550 |
-
if (alm.listing.dataset.metaCompare) {
|
3551 |
-
data.meta_compare = alm.listing.dataset.metaCompare;
|
3552 |
-
}
|
3553 |
-
if (alm.listing.dataset.metaRelation) {
|
3554 |
-
data.meta_relation = alm.listing.dataset.metaRelation;
|
3555 |
-
}
|
3556 |
-
if (alm.listing.dataset.metaType) {
|
3557 |
-
data.meta_type = alm.listing.dataset.metaType;
|
3558 |
-
}
|
3559 |
-
if (alm.listing.dataset.author) {
|
3560 |
-
data.author = alm.listing.dataset.author;
|
3561 |
-
}
|
3562 |
-
if (alm.listing.dataset.year) {
|
3563 |
-
data.year = alm.listing.dataset.year;
|
3564 |
-
}
|
3565 |
-
if (alm.listing.dataset.month) {
|
3566 |
-
data.month = alm.listing.dataset.month;
|
3567 |
-
}
|
3568 |
-
if (alm.listing.dataset.day) {
|
3569 |
-
data.day = alm.listing.dataset.day;
|
3570 |
-
}
|
3571 |
-
if (alm.listing.dataset.order) {
|
3572 |
-
data.order = alm.listing.dataset.order;
|
3573 |
-
}
|
3574 |
-
if (alm.listing.dataset.orderby) {
|
3575 |
-
data.orderby = alm.listing.dataset.orderby;
|
3576 |
-
}
|
3577 |
-
if (alm.listing.dataset.postStatus) {
|
3578 |
-
data.post_status = alm.listing.dataset.postStatus;
|
3579 |
-
}
|
3580 |
-
if (alm.listing.dataset.postIn) {
|
3581 |
-
data.post__in = alm.listing.dataset.postIn;
|
3582 |
-
}
|
3583 |
-
if (alm.listing.dataset.postNotIn) {
|
3584 |
-
data.post__not_in = alm.listing.dataset.postNotIn;
|
3585 |
-
}
|
3586 |
-
if (alm.listing.dataset.exclude) {
|
3587 |
-
data.exclude = alm.listing.dataset.exclude;
|
3588 |
-
}
|
3589 |
-
if (alm.listing.dataset.search) {
|
3590 |
-
data.search = alm.listing.dataset.search;
|
3591 |
-
}
|
3592 |
-
if (alm.listing.dataset.s) {
|
3593 |
-
data.search = alm.listing.dataset.s;
|
3594 |
-
}
|
3595 |
-
if (alm.listing.dataset.customArgs) {
|
3596 |
-
data.custom_args = alm.listing.dataset.customArgs;
|
3597 |
-
}
|
3598 |
|
3599 |
-
|
3600 |
-
|
3601 |
|
3602 |
-
|
3603 |
-
|
|
|
|
|
3604 |
|
3605 |
-
/**
|
3606 |
-
|
3607 |
-
|
3608 |
-
|
3609 |
-
|
3610 |
-
|
3611 |
-
|
3612 |
-
function almGetRestParams(alm) {
|
3613 |
-
var data = {
|
3614 |
-
id: alm.id,
|
3615 |
-
post_id: alm.post_id,
|
3616 |
-
posts_per_page: alm.posts_per_page,
|
3617 |
-
page: alm.page,
|
3618 |
-
offset: alm.offset,
|
3619 |
-
slug: alm.slug,
|
3620 |
-
canonical_url: encodeURIComponent(alm.canonical_url),
|
3621 |
-
post_type: alm.post_type,
|
3622 |
-
post_format: alm.listing.dataset.postFormat,
|
3623 |
-
category: alm.listing.dataset.category,
|
3624 |
-
category__not_in: alm.listing.dataset.categoryNotIn,
|
3625 |
-
tag: alm.listing.dataset.tag,
|
3626 |
-
tag__not_in: alm.listing.dataset.tagNotIn,
|
3627 |
-
taxonomy: alm.listing.dataset.taxonomy,
|
3628 |
-
taxonomy_terms: alm.listing.dataset.taxonomyTerms,
|
3629 |
-
taxonomy_operator: alm.listing.dataset.taxonomyOperator,
|
3630 |
-
taxonomy_relation: alm.listing.dataset.taxonomyRelation,
|
3631 |
-
meta_key: alm.listing.dataset.metaKey,
|
3632 |
-
meta_value: alm.listing.dataset.metaValue,
|
3633 |
-
meta_compare: alm.listing.dataset.metaCompare,
|
3634 |
-
meta_relation: alm.listing.dataset.metaRelation,
|
3635 |
-
meta_type: alm.listing.dataset.metaType,
|
3636 |
-
author: alm.listing.dataset.author,
|
3637 |
-
year: alm.listing.dataset.year,
|
3638 |
-
month: alm.listing.dataset.month,
|
3639 |
-
day: alm.listing.dataset.day,
|
3640 |
-
post_status: alm.listing.dataset.postStatus,
|
3641 |
-
order: alm.listing.dataset.order,
|
3642 |
-
orderby: alm.listing.dataset.orderby,
|
3643 |
-
post__in: alm.listing.dataset.postIn,
|
3644 |
-
post__not_in: alm.listing.dataset.postNotIn,
|
3645 |
-
search: alm.listing.dataset.search,
|
3646 |
-
s: alm.listing.dataset.s,
|
3647 |
-
custom_args: alm.listing.dataset.customArgs,
|
3648 |
-
lang: alm.lang,
|
3649 |
-
preloaded: alm.addons.preloaded,
|
3650 |
-
preloaded_amount: alm.addons.preloaded_amount,
|
3651 |
-
seo_start_page: alm.start_page
|
3652 |
-
};
|
3653 |
|
3654 |
-
|
3655 |
-
|
3656 |
|
3657 |
-
|
|
|
3658 |
|
3659 |
-
|
3660 |
-
|
3661 |
-
|
3662 |
-
|
3663 |
-
|
3664 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3665 |
|
3666 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3667 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3668 |
|
3669 |
-
|
3670 |
-
|
3671 |
-
}
|
3672 |
-
|
3673 |
-
|
3674 |
-
|
3675 |
-
*
|
3676 |
-
* @param {*} container Element
|
3677 |
-
* @param {*} ua String
|
3678 |
-
* @since 5.0.2
|
3679 |
-
*/
|
3680 |
-
var srcsetPolyfill = function srcsetPolyfill() {
|
3681 |
-
var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
3682 |
-
var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
3683 |
|
3684 |
-
|
3685 |
-
|
3686 |
-
|
3687 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3688 |
|
3689 |
-
|
3690 |
-
if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') != -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) {
|
3691 |
-
return false;
|
3692 |
-
}
|
3693 |
|
3694 |
-
// Get the images
|
3695 |
-
var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');
|
3696 |
|
3697 |
-
|
3698 |
-
|
3699 |
-
|
3700 |
-
|
3701 |
-
|
3702 |
-
|
3703 |
-
|
3704 |
-
|
3705 |
|
3706 |
-
|
|
|
3707 |
|
3708 |
-
|
3709 |
-
|
3710 |
-
|
3711 |
-
|
3712 |
-
/*! no static exports found */
|
3713 |
-
/***/ (function(module, exports, __webpack_require__) {
|
3714 |
|
3715 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3716 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3717 |
|
3718 |
-
|
3719 |
-
|
3720 |
-
}
|
3721 |
-
|
3722 |
-
|
3723 |
-
|
3724 |
-
|
3725 |
-
|
3726 |
-
|
3727 |
-
*
|
|
|
|
|
|
|
|
|
|
|
3728 |
*/
|
3729 |
-
var stripEmptyNodes = function stripEmptyNodes() {
|
3730 |
-
var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
3731 |
|
3732 |
-
|
3733 |
-
|
3734 |
-
|
3735 |
|
3736 |
-
|
3737 |
-
|
3738 |
|
3739 |
-
|
3740 |
-
|
3741 |
-
|
3742 |
-
});
|
3743 |
|
3744 |
-
|
3745 |
-
|
3746 |
};
|
3747 |
-
exports.
|
3748 |
-
|
3749 |
-
/***/ }),
|
3750 |
|
3751 |
-
|
3752 |
-
|
3753 |
-
|
3754 |
-
|
3755 |
-
|
3756 |
-
|
|
|
3757 |
|
3758 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3759 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3760 |
|
3761 |
-
|
3762 |
-
|
3763 |
-
|
3764 |
-
|
3765 |
-
* Wrap `table` containers in tbody elements
|
3766 |
-
* innerHTML and DOMParser do not work with <tr/> <td/> elements etc.
|
3767 |
-
*
|
3768 |
-
* @param {*} html | Plain text
|
3769 |
* @since 5.0
|
|
|
3770 |
*/
|
3771 |
-
var tableWrap = function tableWrap() {
|
3772 |
-
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
3773 |
|
3774 |
-
|
|
|
3775 |
return false;
|
3776 |
}
|
3777 |
-
|
3778 |
-
table_reveal.innerHTML = html;
|
3779 |
-
var table_reveal_array = [table_reveal];
|
3780 |
-
return table_reveal_array; // Return new array
|
3781 |
};
|
3782 |
-
exports.
|
3783 |
|
3784 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3785 |
|
3786 |
-
|
3787 |
-
|
3788 |
-
|
3789 |
-
|
3790 |
-
|
3791 |
-
|
|
|
|
|
|
|
|
|
3792 |
|
3793 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3794 |
|
|
|
|
|
3795 |
|
3796 |
-
|
3797 |
-
|
3798 |
-
}
|
3799 |
-
|
3800 |
-
|
3801 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3802 |
*
|
3803 |
-
*
|
3804 |
-
*
|
3805 |
*/
|
3806 |
|
3807 |
-
var
|
3808 |
-
|
3809 |
-
var obj = {
|
3810 |
-
'query': alm.debug,
|
3811 |
-
'localize': alm.localize
|
3812 |
-
};
|
3813 |
-
console.log('ALM Debug:', obj);
|
3814 |
-
}
|
3815 |
-
};
|
3816 |
|
3817 |
-
|
|
|
|
|
|
|
|
|
|
|
3818 |
|
3819 |
/***/ }),
|
3820 |
|
3821 |
-
/***/ "./core/src/js/
|
3822 |
-
|
3823 |
-
!*** ./core/src/js/
|
3824 |
-
|
3825 |
/*! no static exports found */
|
3826 |
/***/ (function(module, exports, __webpack_require__) {
|
3827 |
|
@@ -3832,36 +3425,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
3832 |
value: true
|
3833 |
});
|
3834 |
/**
|
3835 |
-
*
|
3836 |
-
*
|
3837 |
-
* @param {*}
|
|
|
|
|
|
|
3838 |
*/
|
3839 |
-
|
3840 |
-
|
3841 |
-
|
3842 |
-
|
3843 |
-
|
3844 |
-
|
3845 |
-
|
3846 |
-
|
3847 |
-
|
3848 |
-
|
3849 |
-
|
3850 |
-
|
3851 |
-
|
3852 |
-
|
3853 |
-
|
3854 |
-
|
|
|
|
|
|
|
|
|
3855 |
}
|
3856 |
};
|
3857 |
-
exports.default =
|
3858 |
|
3859 |
/***/ }),
|
3860 |
|
3861 |
-
/***/ "./core/src/js/
|
3862 |
-
|
3863 |
-
!*** ./core/src/js/
|
3864 |
-
|
3865 |
/*! no static exports found */
|
3866 |
/***/ (function(module, exports, __webpack_require__) {
|
3867 |
|
@@ -3869,32 +3469,47 @@ exports.default = almFadeIn;
|
|
3869 |
|
3870 |
|
3871 |
Object.defineProperty(exports, "__esModule", {
|
3872 |
-
|
3873 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3874 |
/**
|
3875 |
-
*
|
3876 |
-
*
|
3877 |
-
* @param {*}
|
|
|
|
|
|
|
3878 |
*/
|
3879 |
-
|
3880 |
-
|
3881 |
-
|
3882 |
-
|
3883 |
-
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
-
|
|
|
|
|
|
|
3889 |
};
|
3890 |
-
exports.default =
|
3891 |
|
3892 |
/***/ }),
|
3893 |
|
3894 |
-
/***/ "./core/src/js/
|
3895 |
-
|
3896 |
-
!*** ./core/src/js/
|
3897 |
-
|
3898 |
/*! no static exports found */
|
3899 |
/***/ (function(module, exports, __webpack_require__) {
|
3900 |
|
@@ -3902,291 +3517,917 @@ exports.default = almFadeOut;
|
|
3902 |
|
3903 |
|
3904 |
Object.defineProperty(exports, "__esModule", {
|
3905 |
-
|
3906 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3907 |
|
3908 |
-
|
3909 |
-
|
3910 |
-
|
3911 |
-
|
3912 |
-
|
3913 |
-
|
3914 |
-
|
3915 |
-
|
3916 |
-
} finally {
|
3917 |
-
try {
|
3918 |
-
if (!_n && _i["return"]) _i["return"]();
|
3919 |
-
} finally {
|
3920 |
-
if (_d) throw _e;
|
3921 |
-
}
|
3922 |
-
}return _arr;
|
3923 |
-
}return function (arr, i) {
|
3924 |
-
if (Array.isArray(arr)) {
|
3925 |
-
return arr;
|
3926 |
-
} else if (Symbol.iterator in Object(arr)) {
|
3927 |
-
return sliceIterator(arr, i);
|
3928 |
-
} else {
|
3929 |
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
3930 |
-
}
|
3931 |
-
};
|
3932 |
-
}();
|
3933 |
-
|
3934 |
-
var _fadeIn = __webpack_require__(/*! ./fadeIn */ "./core/src/js/modules/fadeIn.js");
|
3935 |
-
|
3936 |
-
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
3937 |
-
|
3938 |
-
var _fadeOut = __webpack_require__(/*! ./fadeOut */ "./core/src/js/modules/fadeOut.js");
|
3939 |
|
3940 |
-
|
3941 |
|
3942 |
-
|
|
|
|
|
|
|
|
|
|
|
3943 |
|
3944 |
-
|
3945 |
-
return obj && obj.__esModule ? obj : { default: obj };
|
3946 |
-
}
|
3947 |
|
3948 |
-
function _toConsumableArray(arr) {
|
3949 |
-
if (Array.isArray(arr)) {
|
3950 |
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
3951 |
-
arr2[i] = arr[i];
|
3952 |
-
}return arr2;
|
3953 |
-
} else {
|
3954 |
-
return Array.from(arr);
|
3955 |
-
}
|
3956 |
-
}
|
3957 |
|
|
|
|
|
|
|
3958 |
/**
|
3959 |
-
*
|
3960 |
-
* Filter Ajax Load More
|
3961 |
*
|
3962 |
-
* @param {*}
|
3963 |
-
* @param {*}
|
3964 |
-
* @
|
3965 |
-
* @param {*} type string;
|
3966 |
-
* @since 2.6.1
|
3967 |
*/
|
|
|
3968 |
|
3969 |
-
|
3970 |
-
|
|
|
3971 |
|
3972 |
-
|
3973 |
-
|
3974 |
-
var target = document.querySelectorAll('.ajax-load-more-wrap[data-id="' + data.target + '"]');
|
3975 |
-
target.forEach(function (element) {
|
3976 |
-
almFilterTransition(transition, speed, data, element, type);
|
3977 |
-
});
|
3978 |
-
} else {
|
3979 |
-
// Target not specified
|
3980 |
-
var alm = document.querySelectorAll('.ajax-load-more-wrap');
|
3981 |
-
alm.forEach(function (element) {
|
3982 |
-
almFilterTransition(transition, speed, data, element, type);
|
3983 |
-
});
|
3984 |
-
}
|
3985 |
|
3986 |
-
|
3987 |
-
|
3988 |
-
|
3989 |
-
|
|
|
|
|
3990 |
|
3991 |
-
|
3992 |
-
|
3993 |
-
* Transition Ajax Load More
|
3994 |
-
*
|
3995 |
-
* @param {*} transition string;
|
3996 |
-
* @param {*} speed number;
|
3997 |
-
* @param {*} data obj;
|
3998 |
-
* @param {*} el element;
|
3999 |
-
* @param {*} type string;
|
4000 |
-
* @since 2.13.1
|
4001 |
-
*/
|
4002 |
|
4003 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4004 |
|
4005 |
-
|
4006 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4007 |
|
4008 |
-
|
4009 |
-
|
4010 |
-
|
4011 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4012 |
|
4013 |
-
|
|
|
4014 |
|
4015 |
-
|
4016 |
-
el.classList.add('alm-loading');
|
4017 |
-
var new_el = el.querySelector('.alm-listing');
|
4018 |
-
el.style.height = new_el.offsetHeight + 'px';
|
4019 |
-
(0, _fadeOut2.default)(new_el, speed);
|
4020 |
|
4021 |
-
|
4022 |
-
|
|
|
|
|
|
|
|
|
4023 |
|
4024 |
-
|
4025 |
-
setTimeout(function () {
|
4026 |
-
almCompleteFilterTransition(speed, data, el, type);
|
4027 |
-
}, speed);
|
4028 |
-
} else {
|
4029 |
-
// No transition
|
4030 |
-
el.classList.add('alm-is-filtering');
|
4031 |
-
almCompleteFilterTransition(speed, data, el, type);
|
4032 |
-
}
|
4033 |
-
};
|
4034 |
|
4035 |
-
|
4036 |
-
|
4037 |
-
|
4038 |
-
|
4039 |
-
|
4040 |
-
*
|
4041 |
-
*
|
4042 |
-
*
|
4043 |
-
* @
|
|
|
|
|
4044 |
*/
|
4045 |
-
var
|
|
|
|
|
4046 |
|
4047 |
-
//
|
4048 |
-
|
|
|
|
|
4049 |
|
4050 |
-
//
|
4051 |
-
|
|
|
|
|
4052 |
|
4053 |
-
//
|
4054 |
-
[].
|
4055 |
-
e.innerHTML = ''; // Clear listings
|
4056 |
-
});
|
4057 |
|
4058 |
-
//
|
4059 |
-
var
|
4060 |
-
|
4061 |
-
|
|
|
4062 |
}
|
|
|
|
|
4063 |
|
4064 |
-
|
4065 |
-
var paging = btnWrap.querySelector('.alm-paging');
|
4066 |
-
if (paging) {
|
4067 |
-
paging.style.opacity = 0;
|
4068 |
-
}
|
4069 |
|
4070 |
-
|
4071 |
-
|
4072 |
-
|
4073 |
-
|
4074 |
-
|
|
|
4075 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4076 |
/**
|
4077 |
-
*
|
4078 |
-
*
|
4079 |
*
|
4080 |
-
* @param {*}
|
4081 |
-
* @
|
4082 |
-
* @
|
4083 |
-
* @param {*} type string;
|
4084 |
-
* @updated 3.3
|
4085 |
-
* @since 2.6.1
|
4086 |
*/
|
4087 |
-
var
|
4088 |
-
|
4089 |
-
var data = arguments[1];
|
4090 |
-
var el = arguments[2];
|
4091 |
-
var type = arguments[3];
|
4092 |
|
4093 |
-
|
4094 |
-
|
4095 |
-
|
4096 |
-
return false;
|
4097 |
-
}
|
4098 |
|
4099 |
-
|
4100 |
-
|
4101 |
-
// Update data attributes
|
4102 |
-
var _iteratorNormalCompletion = true;
|
4103 |
-
var _didIteratorError = false;
|
4104 |
-
var _iteratorError = undefined;
|
4105 |
|
4106 |
-
|
4107 |
-
|
4108 |
-
|
|
|
4109 |
|
4110 |
-
|
|
|
|
|
|
|
4111 |
|
4112 |
-
|
4113 |
-
var value = _ref2[1];
|
4114 |
|
4115 |
-
|
4116 |
-
|
4117 |
-
|
4118 |
-
|
4119 |
-
|
4120 |
-
|
4121 |
-
_didIteratorError = true;
|
4122 |
-
_iteratorError = err;
|
4123 |
-
} finally {
|
4124 |
-
try {
|
4125 |
-
if (!_iteratorNormalCompletion && _iterator.return) {
|
4126 |
-
_iterator.return();
|
4127 |
-
}
|
4128 |
-
} finally {
|
4129 |
-
if (_didIteratorError) {
|
4130 |
-
throw _iteratorError;
|
4131 |
-
}
|
4132 |
-
}
|
4133 |
-
}
|
4134 |
|
4135 |
-
|
4136 |
-
break;
|
4137 |
|
4138 |
-
case 'tab':
|
4139 |
-
// Update `data-tab-template` attribute
|
4140 |
-
listing.setAttribute('data-preloaded', 'false');
|
4141 |
-
listing.setAttribute('data-pause', 'false');
|
4142 |
-
listing.setAttribute('data-tab-template', data.tabTemplate);
|
4143 |
|
4144 |
-
|
4145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4146 |
|
4147 |
-
|
4148 |
-
|
4149 |
-
|
4150 |
-
|
4151 |
-
|
4152 |
-
|
4153 |
-
|
4154 |
-
|
4155 |
-
|
4156 |
-
// Target not specified
|
4157 |
-
target = document.querySelector('.ajax-load-more-wrap');
|
4158 |
-
if (target) {
|
4159 |
-
window.almInit(target);
|
4160 |
-
}
|
4161 |
-
}
|
4162 |
|
4163 |
-
|
4164 |
|
4165 |
-
|
4166 |
-
|
4167 |
-
|
4168 |
-
|
4169 |
-
|
4170 |
-
|
4171 |
-
break;
|
4172 |
|
4173 |
-
|
4174 |
-
|
4175 |
-
|
4176 |
-
|
4177 |
-
|
4178 |
-
|
4179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4180 |
|
4181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4182 |
};
|
4183 |
|
|
|
|
|
4184 |
/***/ }),
|
4185 |
|
4186 |
-
/***/ "./core/src/js/modules/
|
4187 |
-
|
4188 |
-
!*** ./core/src/js/modules/
|
4189 |
-
|
4190 |
/*! no static exports found */
|
4191 |
/***/ (function(module, exports, __webpack_require__) {
|
4192 |
|
@@ -4197,38 +4438,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
4197 |
value: true
|
4198 |
});
|
4199 |
/**
|
4200 |
-
*
|
4201 |
-
*
|
4202 |
-
*
|
4203 |
-
* @param {Object} alm
|
4204 |
-
* @return {NUMBER} newdistance
|
4205 |
-
* @since 5.2
|
4206 |
*/
|
4207 |
-
|
4208 |
-
|
4209 |
-
|
4210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4211 |
}
|
4212 |
-
|
4213 |
-
var is_negative = alm.scroll_distance_orig.toString().indexOf("-") === -1 ? false : true; // Is this a negative number
|
4214 |
-
var raw_distance = alm.scroll_distance_orig.toString().replace("-", "").replace("%", ""); // Remove - and perc
|
4215 |
-
var wh = alm.window.innerHeight; // window height
|
4216 |
-
|
4217 |
-
var height = Math.floor(wh / 100 * parseInt(raw_distance)); // Do math to get distance
|
4218 |
-
|
4219 |
-
var newdistance = is_negative ? "-" + height : height; // Set the distance
|
4220 |
-
//console.log(parseInt(newdistance));
|
4221 |
-
|
4222 |
-
return parseInt(newdistance);
|
4223 |
};
|
4224 |
-
exports.default =
|
4225 |
|
4226 |
/***/ }),
|
4227 |
|
4228 |
-
/***/ "./core/src/js/modules/
|
4229 |
-
|
4230 |
-
!*** ./core/src/js/modules/
|
4231 |
-
|
4232 |
/*! no static exports found */
|
4233 |
/***/ (function(module, exports, __webpack_require__) {
|
4234 |
|
@@ -4238,80 +4477,30 @@ exports.default = getScrollPercentage;
|
|
4238 |
Object.defineProperty(exports, "__esModule", {
|
4239 |
value: true
|
4240 |
});
|
4241 |
-
|
4242 |
-
var _almDomParser = __webpack_require__(/*! ../helpers/almDomParser */ "./core/src/js/helpers/almDomParser.js");
|
4243 |
-
|
4244 |
-
var _almDomParser2 = _interopRequireDefault(_almDomParser);
|
4245 |
-
|
4246 |
-
function _interopRequireDefault(obj) {
|
4247 |
-
return obj && obj.__esModule ? obj : { default: obj };
|
4248 |
-
}
|
4249 |
-
|
4250 |
/**
|
4251 |
-
*
|
4252 |
-
*
|
4253 |
-
*
|
4254 |
-
*
|
4255 |
-
* @since 5.0
|
4256 |
*/
|
4257 |
-
var
|
4258 |
-
|
4259 |
-
|
4260 |
-
|
4261 |
-
|
4262 |
-
|
4263 |
-
var i = 0;
|
4264 |
-
var children = node.childNodes;
|
4265 |
-
|
4266 |
-
if (children === undefined) {
|
4267 |
-
var parser = new DOMParser();
|
4268 |
-
var data = parser.parseFromString(node, 'text/html');
|
4269 |
-
if (data) {
|
4270 |
-
children = data.body.childNodes;
|
4271 |
-
}
|
4272 |
-
}
|
4273 |
-
while (i < children.length) {
|
4274 |
-
this.replace(children[i++]);
|
4275 |
-
}
|
4276 |
-
}
|
4277 |
-
return node;
|
4278 |
-
},
|
4279 |
-
|
4280 |
-
replace: function replace(node) {
|
4281 |
-
if (this.isScript(node) === true) {
|
4282 |
-
node.parentNode.replaceChild(this.clone(node), node);
|
4283 |
} else {
|
4284 |
-
|
4285 |
-
var children = node.childNodes;
|
4286 |
-
while (i < children.length) {
|
4287 |
-
this.replace(children[i++]);
|
4288 |
-
}
|
4289 |
-
}
|
4290 |
-
return node;
|
4291 |
-
},
|
4292 |
-
|
4293 |
-
isScript: function isScript(node) {
|
4294 |
-
return node.tagName === 'SCRIPT';
|
4295 |
-
},
|
4296 |
-
|
4297 |
-
clone: function clone(node) {
|
4298 |
-
var script = document.createElement("script");
|
4299 |
-
script.text = node.innerHTML;
|
4300 |
-
for (var i = node.attributes.length - 1; i >= 0; i--) {
|
4301 |
-
script.setAttribute(node.attributes[i].name, node.attributes[i].value);
|
4302 |
}
|
4303 |
-
|
4304 |
-
}
|
4305 |
-
|
4306 |
};
|
4307 |
-
exports.default =
|
4308 |
|
4309 |
/***/ }),
|
4310 |
|
4311 |
-
/***/ "./core/src/js/modules/
|
4312 |
-
|
4313 |
-
!*** ./core/src/js/modules/
|
4314 |
-
|
4315 |
/*! no static exports found */
|
4316 |
/***/ (function(module, exports, __webpack_require__) {
|
4317 |
|
@@ -4322,208 +4511,288 @@ Object.defineProperty(exports, "__esModule", {
|
|
4322 |
value: true
|
4323 |
});
|
4324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4325 |
var _fadeIn = __webpack_require__(/*! ./fadeIn */ "./core/src/js/modules/fadeIn.js");
|
4326 |
|
4327 |
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
4328 |
|
4329 |
-
var
|
4330 |
-
|
4331 |
-
var _almAppendChildren2 = _interopRequireDefault(_almAppendChildren);
|
4332 |
-
|
4333 |
-
var _almDomParser = __webpack_require__(/*! ../helpers/almDomParser */ "./core/src/js/helpers/almDomParser.js");
|
4334 |
-
|
4335 |
-
var _almDomParser2 = _interopRequireDefault(_almDomParser);
|
4336 |
|
4337 |
-
var
|
4338 |
|
4339 |
-
var
|
4340 |
|
4341 |
function _interopRequireDefault(obj) {
|
4342 |
return obj && obj.__esModule ? obj : { default: obj };
|
4343 |
}
|
4344 |
|
4345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4346 |
|
4347 |
/**
|
4348 |
-
*
|
4349 |
-
*
|
4350 |
-
*
|
4351 |
-
* @param {
|
4352 |
-
* @param {
|
4353 |
-
* @param {
|
4354 |
-
* @
|
4355 |
-
* @
|
4356 |
-
*/
|
4357 |
-
var almMasonry = function almMasonry(alm, init, filtering) {
|
4358 |
|
4359 |
-
|
|
|
4360 |
|
4361 |
-
|
4362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4363 |
|
4364 |
-
|
4365 |
-
var columnWidth = alm.masonry_columnwidth;
|
4366 |
-
var animation = alm.masonry_animation;
|
4367 |
-
var horizontalOrder = alm.masonry_horizontalorder;
|
4368 |
-
var speed = alm.speed;
|
4369 |
-
var masonry_init = alm.masonry_init;
|
4370 |
|
4371 |
-
|
4372 |
-
|
4373 |
-
var visible = 'scale(1)';
|
4374 |
|
4375 |
-
|
4376 |
-
|
4377 |
-
|
4378 |
-
|
4379 |
|
4380 |
-
|
4381 |
-
hidden = 'translateY(50px)';
|
4382 |
-
visible = 'translateY(0)';
|
4383 |
-
}
|
4384 |
|
4385 |
-
|
4386 |
-
|
4387 |
-
|
4388 |
-
|
|
|
4389 |
|
4390 |
-
|
4391 |
-
hidden = 'translateY(0)';
|
4392 |
-
visible = 'translateY(0)';
|
4393 |
}
|
4394 |
|
4395 |
-
//
|
4396 |
-
|
4397 |
-
|
4398 |
-
|
4399 |
-
|
4400 |
-
|
4401 |
-
|
4402 |
-
|
4403 |
-
|
4404 |
-
|
4405 |
|
4406 |
-
|
4407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4408 |
|
4409 |
-
|
|
|
4410 |
|
4411 |
-
|
4412 |
-
|
4413 |
|
4414 |
-
|
|
|
|
|
|
|
4415 |
|
4416 |
-
|
|
|
|
|
|
|
|
|
4417 |
|
4418 |
-
|
4419 |
-
|
4420 |
-
|
4421 |
-
|
4422 |
-
|
4423 |
-
hiddenStyle: {
|
4424 |
-
transform: hidden,
|
4425 |
-
opacity: 0
|
4426 |
-
},
|
4427 |
-
visibleStyle: {
|
4428 |
-
transform: visible,
|
4429 |
-
opacity: 1
|
4430 |
|
4431 |
-
|
4432 |
-
|
4433 |
-
|
4434 |
-
|
4435 |
-
|
4436 |
-
defaults[key] = alm_masonry_vars[key];
|
4437 |
-
});
|
4438 |
-
}
|
4439 |
|
4440 |
-
|
4441 |
-
|
4442 |
-
|
4443 |
-
|
4444 |
-
|
4445 |
-
|
4446 |
-
|
4447 |
-
|
4448 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4449 |
|
4450 |
-
|
4451 |
-
|
|
|
|
|
|
|
4452 |
|
4453 |
-
|
4454 |
-
|
|
|
|
|
|
|
|
|
4455 |
|
4456 |
-
|
|
|
|
|
4457 |
|
4458 |
-
|
4459 |
-
(0, _almAppendChildren2.default)(alm.listing, data, 'masonry');
|
4460 |
|
4461 |
-
|
4462 |
-
|
4463 |
|
4464 |
-
|
4465 |
-
|
4466 |
-
|
4467 |
-
|
4468 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4469 |
}
|
4470 |
}
|
4471 |
-
|
4472 |
-
|
4473 |
-
// Reset
|
4474 |
-
container.parentNode.style.opacity = 0;
|
4475 |
-
almMasonry(alm, true, false);
|
4476 |
-
resolve(true);
|
4477 |
-
}
|
4478 |
-
});
|
4479 |
-
};
|
4480 |
-
|
4481 |
-
exports.default = almMasonry;
|
4482 |
|
4483 |
-
|
|
|
4484 |
|
4485 |
-
|
4486 |
-
|
4487 |
-
|
4488 |
-
|
4489 |
-
|
4490 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4491 |
|
4492 |
-
|
|
|
4493 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4494 |
|
4495 |
-
|
4496 |
-
value: true
|
4497 |
-
});
|
4498 |
-
/**
|
4499 |
-
* Set the results text if required.
|
4500 |
-
*
|
4501 |
-
* @param {*} target The target HTML element
|
4502 |
-
* @param {*} html The HTML
|
4503 |
-
* @since 5.1
|
4504 |
-
*/
|
4505 |
-
var almNoResults = function almNoResults(target) {
|
4506 |
-
var html = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
4507 |
|
4508 |
-
|
4509 |
-
|
4510 |
-
|
|
|
|
|
|
|
|
|
4511 |
|
4512 |
-
|
4513 |
-
|
|
|
|
|
|
|
|
|
|
|
4514 |
|
4515 |
-
|
4516 |
-
target.innerHTML = html;
|
4517 |
};
|
4518 |
|
4519 |
-
exports.default = almNoResults;
|
4520 |
-
|
4521 |
/***/ }),
|
4522 |
|
4523 |
-
/***/ "./core/src/js/modules/
|
4524 |
-
|
4525 |
-
!*** ./core/src/js/modules/
|
4526 |
-
|
4527 |
/*! no static exports found */
|
4528 |
/***/ (function(module, exports, __webpack_require__) {
|
4529 |
|
@@ -4531,51 +4800,41 @@ exports.default = almNoResults;
|
|
4531 |
|
4532 |
|
4533 |
Object.defineProperty(exports, "__esModule", {
|
4534 |
-
|
4535 |
});
|
4536 |
-
|
4537 |
-
|
4538 |
-
|
4539 |
-
|
4540 |
-
|
4541 |
-
|
|
|
|
|
4542 |
|
4543 |
-
var
|
|
|
|
|
|
|
4544 |
|
4545 |
-
var
|
|
|
|
|
4546 |
|
4547 |
-
|
4548 |
-
return obj && obj.__esModule ? obj : { default: obj };
|
4549 |
-
}
|
4550 |
|
4551 |
-
|
4552 |
-
|
4553 |
-
return false;
|
4554 |
-
}
|
4555 |
-
if (alm.placeholder) {
|
4556 |
-
alm.placeholder.style.display = 'block';
|
4557 |
-
(0, _fadeIn2.default)(alm.placeholder, 75);
|
4558 |
-
}
|
4559 |
-
}
|
4560 |
|
4561 |
-
|
4562 |
-
|
4563 |
-
|
4564 |
-
}
|
4565 |
-
if (alm.placeholder) {
|
4566 |
-
(0, _fadeOut2.default)(alm.placeholder, 75);
|
4567 |
-
setTimeout(function () {
|
4568 |
-
alm.placeholder.style.display = 'none';
|
4569 |
-
}, 75);
|
4570 |
-
}
|
4571 |
-
}
|
4572 |
|
4573 |
/***/ }),
|
4574 |
|
4575 |
-
/***/ "./core/src/js/modules/
|
4576 |
-
|
4577 |
-
!*** ./core/src/js/modules/
|
4578 |
-
|
4579 |
/*! no static exports found */
|
4580 |
/***/ (function(module, exports, __webpack_require__) {
|
4581 |
|
@@ -4583,164 +4842,82 @@ function hidePlaceholder(alm) {
|
|
4583 |
|
4584 |
|
4585 |
Object.defineProperty(exports, "__esModule", {
|
4586 |
-
|
4587 |
});
|
4588 |
-
exports.almResultsText = almResultsText;
|
4589 |
-
exports.almGetResultsText = almGetResultsText;
|
4590 |
-
exports.almInitResultsText = almInitResultsText;
|
4591 |
-
/**
|
4592 |
-
* Set the results text if required.
|
4593 |
-
*
|
4594 |
-
* @param {object} alm Global alm object
|
4595 |
-
* @param {string} type Type of results
|
4596 |
-
* @since 5.1
|
4597 |
-
*/
|
4598 |
-
function almResultsText(alm) {
|
4599 |
-
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
4600 |
-
|
4601 |
-
if (!alm.resultsText || alm.nested === 'true') return false;
|
4602 |
-
var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard';
|
4603 |
-
|
4604 |
-
almGetResultsText(alm, resultsType);
|
4605 |
-
}
|
4606 |
-
|
4607 |
-
/**
|
4608 |
-
* Get values for showing results text.
|
4609 |
-
*
|
4610 |
-
* @param {Object} alm
|
4611 |
-
* @param {String} type
|
4612 |
-
* @since 4.1
|
4613 |
-
*/
|
4614 |
-
function almGetResultsText(alm) {
|
4615 |
-
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
4616 |
-
|
4617 |
-
if (!alm.resultsText || alm.nested === 'true') return false;
|
4618 |
-
|
4619 |
-
var page = 0;
|
4620 |
-
var pages = 0;
|
4621 |
-
var post_count = 0;
|
4622 |
-
var total_posts = 0;
|
4623 |
-
var preloaded = alm.addons.preloaded === 'true' ? true : false;
|
4624 |
-
var paging = alm.addons.paging ? true : false;
|
4625 |
-
var posts_per_page = alm.orginal_posts_per_page;
|
4626 |
|
4627 |
-
|
4628 |
-
|
4629 |
-
// Nextpage
|
4630 |
-
case 'nextpage':
|
4631 |
-
|
4632 |
-
page = parseInt(alm.localize.page);
|
4633 |
-
post_count = page;
|
4634 |
-
pages = parseInt(alm.localize.total_posts);
|
4635 |
-
total_posts = parseInt(pages);
|
4636 |
-
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
4637 |
-
|
4638 |
-
break;
|
4639 |
-
|
4640 |
-
// WooCommerce
|
4641 |
-
case 'woocommerce':
|
4642 |
-
// Don't do anything
|
4643 |
-
break;
|
4644 |
-
|
4645 |
-
default:
|
4646 |
-
|
4647 |
-
page = parseInt(alm.page) + 1;
|
4648 |
-
pages = Math.ceil(alm.localize.total_posts / posts_per_page);
|
4649 |
-
post_count = parseInt(alm.localize.post_count);
|
4650 |
-
total_posts = parseInt(alm.localize.total_posts);
|
4651 |
-
|
4652 |
-
// Add 1 page if Preloaded
|
4653 |
-
if (preloaded) {
|
4654 |
-
page = paging ? alm.page + 1 : page + 1;
|
4655 |
-
}
|
4656 |
|
4657 |
-
|
4658 |
|
4659 |
-
|
|
|
4660 |
}
|
4661 |
|
4662 |
-
/**
|
4663 |
-
*
|
4664 |
-
*
|
4665 |
-
*
|
4666 |
-
*
|
4667 |
-
*
|
4668 |
*/
|
4669 |
-
|
4670 |
-
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
4671 |
-
|
4672 |
-
if (!alm.resultsText || !alm.localize || alm.nested === 'true') return false;
|
4673 |
-
|
4674 |
-
var page = 0;
|
4675 |
-
var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);
|
4676 |
-
var post_count = parseInt(alm.localize.post_count);
|
4677 |
-
var total_posts = parseInt(alm.localize.total_posts);
|
4678 |
-
|
4679 |
-
switch (type) {
|
4680 |
-
|
4681 |
-
// Nextpage
|
4682 |
-
case 'nextpage':
|
4683 |
-
page = alm.addons.nextpage_startpage;
|
4684 |
-
post_count = page;
|
4685 |
-
pages = total_posts;
|
4686 |
-
almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts);
|
4687 |
-
break;
|
4688 |
-
|
4689 |
-
// Preloaded
|
4690 |
-
case 'preloaded':
|
4691 |
-
page = alm.addons.paging && alm.addons.seo ? parseInt(alm.start_page) + 1 : parseInt(alm.page) + 1;
|
4692 |
-
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
4693 |
-
break;
|
4694 |
-
|
4695 |
-
// WooCommerce
|
4696 |
-
case 'woocommerce':
|
4697 |
-
// Don't do anything
|
4698 |
-
break;
|
4699 |
-
|
4700 |
-
default:
|
4701 |
|
4702 |
-
|
|
|
|
|
|
|
|
|
|
|
4703 |
|
4704 |
-
|
4705 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4706 |
|
4707 |
-
|
4708 |
-
|
4709 |
-
|
4710 |
-
|
4711 |
-
|
4712 |
-
|
4713 |
-
|
4714 |
-
|
4715 |
-
|
4716 |
-
|
4717 |
-
|
|
|
4718 |
|
4719 |
-
|
|
|
|
|
4720 |
|
4721 |
-
|
4722 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4723 |
|
4724 |
-
if (pages > 0) {
|
4725 |
-
text = text.replace('{num}', '<span class="alm-results-num">' + page + '</span>'); // Deprecated
|
4726 |
-
text = text.replace('{page}', '<span class="alm-results-page">' + page + '</span>');
|
4727 |
-
text = text.replace('{total}', '<span class="alm-results-total">' + pages + '</span>'); // Deprecated
|
4728 |
-
text = text.replace('{pages}', '<span class="alm-results-pages">' + pages + '</span>');
|
4729 |
-
text = text.replace('{post_count}', '<span class="alm-results-post_count">' + post_count + '</span>');
|
4730 |
-
text = text.replace('{total_posts}', '<span class="alm-results-total_posts">' + total_posts + '</span>');
|
4731 |
-
result.innerHTML = text;
|
4732 |
-
} else {
|
4733 |
-
result.innerHTML = text;
|
4734 |
-
}
|
4735 |
-
});
|
4736 |
};
|
|
|
4737 |
|
4738 |
/***/ }),
|
4739 |
|
4740 |
-
/***/ "./core/src/js/modules/
|
4741 |
-
|
4742 |
-
!*** ./core/src/js/modules/
|
4743 |
-
|
4744 |
/*! no static exports found */
|
4745 |
/***/ (function(module, exports, __webpack_require__) {
|
4746 |
|
@@ -4750,226 +4927,193 @@ var almRenderResultsText = function almRenderResultsText(el, page, pages, post_c
|
|
4750 |
Object.defineProperty(exports, "__esModule", {
|
4751 |
value: true
|
4752 |
});
|
4753 |
-
/**
|
4754 |
-
* setFocus
|
4755 |
-
* Set user focus to improve accessibility after load events
|
4756 |
-
*
|
4757 |
-
* @param {Object} alm
|
4758 |
-
* @param {HTMLElement} preloaded
|
4759 |
-
* @param {Number} total
|
4760 |
-
* @param {Boolean} is_filtering
|
4761 |
-
* @since 5.1
|
4762 |
-
*/
|
4763 |
|
4764 |
-
var
|
4765 |
-
var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
4766 |
-
var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
4767 |
-
var is_filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
4768 |
|
4769 |
-
|
4770 |
-
return false;
|
4771 |
-
}
|
4772 |
|
4773 |
-
|
4774 |
-
if (alm.addons.woocommerce) {
|
4775 |
-
moveFocus(false, false, element, false, alm.isSafari);
|
4776 |
-
return;
|
4777 |
-
}
|
4778 |
|
4779 |
-
|
4780 |
-
if (alm.transition_container && total > 0) {
|
4781 |
-
if (alm.addons.paging) {
|
4782 |
-
// Paging
|
4783 |
-
moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
|
4784 |
-
} else if (alm.addons.single_post || alm.addons.nextpage) {
|
4785 |
-
// Single Posts OR Next Page, set `init` to false to trigger focus
|
4786 |
-
moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
4787 |
-
} else {
|
4788 |
-
// Standard ALM
|
4789 |
-
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
4790 |
-
}
|
4791 |
-
} else if (!alm.transition_container && alm.container_type === 'table') {
|
4792 |
|
4793 |
-
|
4794 |
-
|
4795 |
-
|
4796 |
-
|
4797 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4798 |
|
4799 |
/**
|
4800 |
-
*
|
4801 |
-
*
|
4802 |
*
|
4803 |
-
* @param {
|
4804 |
-
* @param {
|
4805 |
-
* @param {
|
4806 |
-
* @
|
4807 |
-
* @
|
4808 |
-
|
4809 |
-
|
4810 |
|
4811 |
-
|
4812 |
-
var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
4813 |
-
var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false';
|
4814 |
-
var element = arguments[2];
|
4815 |
-
var is_filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
4816 |
-
var isSafari = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
4817 |
|
4818 |
-
|
4819 |
-
|
4820 |
-
return false; // Exit if first run
|
4821 |
-
}
|
4822 |
-
}
|
4823 |
|
4824 |
-
|
4825 |
-
|
4826 |
-
|
4827 |
-
|
4828 |
-
|
4829 |
-
|
4830 |
|
4831 |
-
|
4832 |
-
|
4833 |
-
|
4834 |
|
4835 |
-
|
4836 |
-
|
4837 |
-
|
|
|
4838 |
|
4839 |
-
|
4840 |
-
|
|
|
|
|
4841 |
|
4842 |
-
|
4843 |
-
|
4844 |
-
|
4845 |
-
if (container) {
|
4846 |
-
var left = container.scrollLeft;
|
4847 |
-
var top = container.scrollTop;
|
4848 |
-
element.focus();
|
4849 |
-
container.scrollLeft = left;
|
4850 |
-
container.scrollTop = top;
|
4851 |
}
|
4852 |
-
}
|
4853 |
|
4854 |
-
|
4855 |
-
|
4856 |
-
|
4857 |
-
|
4858 |
-
|
4859 |
-
|
4860 |
-
|
4861 |
-
|
|
|
|
|
4862 |
}
|
4863 |
-
|
4864 |
-
|
|
|
4865 |
}
|
4866 |
-
};
|
4867 |
|
4868 |
-
|
|
|
4869 |
|
4870 |
-
|
4871 |
-
/*!*************************************************!*\
|
4872 |
-
!*** ./core/src/js/modules/setLocalizedVars.js ***!
|
4873 |
-
\*************************************************/
|
4874 |
-
/*! no static exports found */
|
4875 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4876 |
|
4877 |
-
|
|
|
4878 |
|
|
|
4879 |
|
4880 |
-
|
4881 |
-
value: true
|
4882 |
-
});
|
4883 |
|
4884 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4885 |
|
4886 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4887 |
|
4888 |
-
|
4889 |
-
|
4890 |
-
|
4891 |
-
|
4892 |
-
|
4893 |
-
|
4894 |
-
|
|
|
|
|
|
|
|
|
|
|
4895 |
}
|
4896 |
-
}newObj.default = obj;return newObj;
|
4897 |
-
}
|
4898 |
-
}
|
4899 |
|
4900 |
-
|
4901 |
-
|
4902 |
-
*
|
4903 |
-
* @param {object} alm Global alm object
|
4904 |
-
* @since 4.1
|
4905 |
-
*/
|
4906 |
|
4907 |
-
|
|
|
4908 |
|
4909 |
-
|
|
|
|
|
|
|
4910 |
|
4911 |
-
|
|
|
4912 |
|
4913 |
-
|
|
|
4914 |
|
4915 |
-
|
4916 |
-
if (alm.addons.nextpage) {
|
4917 |
-
type = 'nextpage';
|
4918 |
-
if (alm.addons.paging) {
|
4919 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
4920 |
-
} else {
|
4921 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1);
|
4922 |
-
}
|
4923 |
-
}
|
4924 |
-
// woocommerce
|
4925 |
-
else if (alm.addons.woocommerce) {
|
4926 |
-
type = 'woocommerce';
|
4927 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
4928 |
-
} else {
|
4929 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
4930 |
-
}
|
4931 |
|
4932 |
-
|
4933 |
-
|
4934 |
-
if (alm.addons.preloaded !== 'true' && !alm.addons.nextpage && !alm.addons.woocommerce) {
|
4935 |
-
alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);
|
4936 |
-
}
|
4937 |
|
4938 |
-
|
4939 |
-
|
4940 |
|
4941 |
-
|
4942 |
-
|
|
|
|
|
|
|
4943 |
|
4944 |
-
|
|
|
|
|
|
|
|
|
4945 |
});
|
4946 |
};
|
4947 |
|
4948 |
-
exports.default =
|
4949 |
-
|
4950 |
-
/**
|
4951 |
-
* almSetViewing
|
4952 |
-
* Get total post_count
|
4953 |
-
*/
|
4954 |
-
|
4955 |
-
function almSetPostCount(alm) {
|
4956 |
-
var pc = parseInt(alm.posts);
|
4957 |
-
var pa = parseInt(alm.addons.preloaded_amount);
|
4958 |
-
var count = pc + pa;
|
4959 |
-
count = alm.start_page > 1 ? count - pa : count; // SEO
|
4960 |
-
count = alm.addons.filters_startpage > 1 ? count - pa : count; // Filters
|
4961 |
-
count = alm.addons.single_post ? count + 1 : count; // Single Posts
|
4962 |
-
count = alm.addons.nextpage ? count + 1 : count; // Next Page
|
4963 |
-
|
4964 |
-
return count;
|
4965 |
-
}
|
4966 |
|
4967 |
/***/ }),
|
4968 |
|
4969 |
-
/***/ "./core/src/js/modules/
|
4970 |
-
|
4971 |
-
!*** ./core/src/js/modules/
|
4972 |
-
|
4973 |
/*! no static exports found */
|
4974 |
/***/ (function(module, exports, __webpack_require__) {
|
4975 |
|
@@ -4980,44 +5124,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
4980 |
value: true
|
4981 |
});
|
4982 |
/**
|
4983 |
-
*
|
4984 |
-
*
|
4985 |
-
*
|
4986 |
-
* @param {
|
4987 |
-
* @
|
4988 |
-
* @since 5.1.8.1
|
4989 |
*/
|
|
|
|
|
4990 |
|
4991 |
-
|
4992 |
-
|
4993 |
-
|
4994 |
-
var data = {
|
4995 |
-
html: '',
|
4996 |
-
meta: {
|
4997 |
-
postcount: 1,
|
4998 |
-
totalposts: 1,
|
4999 |
-
debug: 'Single Posts Query'
|
5000 |
-
}
|
5001 |
-
};
|
5002 |
-
if (response.status === 200 && response.data && target) {
|
5003 |
-
var div = document.createElement("div");
|
5004 |
-
div.innerHTML = response.data;
|
5005 |
-
var htmlTarget = div.querySelector(target);
|
5006 |
-
if (htmlTarget) {
|
5007 |
-
data.html = htmlTarget.innerHTML;
|
5008 |
-
}
|
5009 |
}
|
5010 |
-
|
|
|
|
|
|
|
|
|
|
|
5011 |
};
|
5012 |
|
5013 |
-
exports.default =
|
5014 |
|
5015 |
/***/ }),
|
5016 |
|
5017 |
-
/***/ "./core/src/js/modules/
|
5018 |
-
|
5019 |
-
!*** ./core/src/js/modules/
|
5020 |
-
|
5021 |
/*! no static exports found */
|
5022 |
/***/ (function(module, exports, __webpack_require__) {
|
5023 |
|
@@ -5025,166 +5159,216 @@ exports.default = singlePostHTML;
|
|
5025 |
|
5026 |
|
5027 |
Object.defineProperty(exports, "__esModule", {
|
5028 |
-
|
5029 |
});
|
5030 |
-
exports.
|
5031 |
-
exports.
|
5032 |
|
5033 |
-
var
|
5034 |
|
5035 |
-
var
|
5036 |
|
5037 |
-
var
|
|
|
|
|
5038 |
|
5039 |
function _interopRequireDefault(obj) {
|
5040 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5041 |
}
|
5042 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5043 |
/**
|
5044 |
-
*
|
5045 |
-
*
|
5046 |
-
* @param {object} alm
|
5047 |
-
* @param {
|
5048 |
-
* @since 5.
|
5049 |
*/
|
5050 |
-
function
|
5051 |
-
|
5052 |
-
var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
5053 |
|
5054 |
-
|
5055 |
-
|
5056 |
-
// Exit if zero posts and not single posts
|
5057 |
-
return false;
|
5058 |
-
}
|
5059 |
|
5060 |
-
|
|
|
5061 |
|
5062 |
-
|
5063 |
-
|
5064 |
-
|
5065 |
-
|
5066 |
-
|
5067 |
-
|
|
|
|
|
|
|
5068 |
|
5069 |
-
|
5070 |
-
if (alm.addons.paging || alm.addons.nextpage) {
|
5071 |
-
return false;
|
5072 |
-
}
|
5073 |
|
5074 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5075 |
|
5076 |
-
|
5077 |
-
setTimeout(function () {
|
5078 |
-
// Paged results
|
5079 |
-
if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) {
|
5080 |
-
// SEO
|
5081 |
-
if (alm.addons.seo && startPage > 1) {
|
5082 |
-
for (var i = 0; i < startPage; i++) {
|
5083 |
-
createTOCButton(alm, i, offset);
|
5084 |
-
}
|
5085 |
-
}
|
5086 |
-
// Filters
|
5087 |
-
if (alm.addons.filters && filterStartPage > 1) {
|
5088 |
-
for (var _i = 0; _i < filterStartPage; _i++) {
|
5089 |
-
createTOCButton(alm, _i, offset);
|
5090 |
-
}
|
5091 |
-
}
|
5092 |
-
// Nextpage
|
5093 |
-
if (alm.addons.nextpage && nextpageStartPage > 1) {
|
5094 |
-
for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) {
|
5095 |
-
createTOCButton(alm, _i2, offset);
|
5096 |
-
}
|
5097 |
-
}
|
5098 |
-
} else {
|
5099 |
-
if (!from_preloaded && preloaded) {
|
5100 |
-
page = page + 1;
|
5101 |
-
}
|
5102 |
-
createTOCButton(alm, page, offset);
|
5103 |
-
}
|
5104 |
-
}, 100);
|
5105 |
-
} else {
|
5106 |
|
5107 |
-
|
5108 |
-
|
5109 |
-
if (alm.addons.seo && startPage > 0) {
|
5110 |
-
page = page;
|
5111 |
-
} else if (alm.addons.filters && filterStartPage > 0) {
|
5112 |
-
page = page;
|
5113 |
-
} else {
|
5114 |
-
page = page + 1;
|
5115 |
-
}
|
5116 |
-
}
|
5117 |
|
5118 |
-
|
5119 |
-
|
5120 |
-
|
5121 |
-
|
|
|
5122 |
|
5123 |
-
|
5124 |
-
function clearTOC() {
|
5125 |
-
var toc = document.querySelector('.alm-toc');
|
5126 |
-
if (toc) {
|
5127 |
-
toc.innerHTML = '';
|
5128 |
-
}
|
5129 |
-
}
|
5130 |
|
5131 |
-
//
|
5132 |
-
|
|
|
|
|
5133 |
|
5134 |
-
|
5135 |
-
return false;
|
5136 |
-
}
|
5137 |
|
5138 |
-
|
5139 |
-
|
|
|
|
|
5140 |
|
5141 |
-
|
5142 |
-
|
5143 |
-
|
5144 |
-
|
5145 |
|
5146 |
-
|
5147 |
-
var page = this.dataset.page;
|
5148 |
-
var target = document.querySelector('.alm-reveal:nth-child(' + page + ')') || document.querySelector('.alm-nextpage:nth-child(' + page + ')');
|
5149 |
-
if (!target) {
|
5150 |
-
return false;
|
5151 |
-
}
|
5152 |
-
var top = typeof _ajaxLoadMore.getOffset === 'function' ? (0, _ajaxLoadMore.getOffset)(target).top : target.offsetTop;
|
5153 |
-
(0, _ajaxLoadMore.almScroll)(top - offset);
|
5154 |
|
5155 |
-
|
5156 |
-
setTimeout(function () {
|
5157 |
-
(0, _setFocus2.default)(alm, target, page, false);
|
5158 |
-
}, 1000);
|
5159 |
-
});
|
5160 |
}
|
5161 |
|
5162 |
-
|
5163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5164 |
|
5165 |
-
|
5166 |
|
5167 |
-
|
5168 |
-
|
5169 |
-
|
5170 |
-
|
5171 |
-
}
|
5172 |
|
5173 |
-
|
5174 |
-
var funcName = 'almTOCLabel_' + alm.id;
|
5175 |
-
if (typeof window[funcName] === 'function') {
|
5176 |
-
label = window[funcName](page, label);
|
5177 |
-
}
|
5178 |
|
5179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5180 |
}
|
5181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5182 |
/***/ }),
|
5183 |
|
5184 |
-
/***/ "./core/src/js/modules/
|
5185 |
-
|
5186 |
-
!*** ./core/src/js/modules/
|
5187 |
-
|
5188 |
/*! no static exports found */
|
5189 |
/***/ (function(module, exports, __webpack_require__) {
|
5190 |
|
@@ -5194,362 +5378,393 @@ function getTOCLabel(alm, page) {
|
|
5194 |
Object.defineProperty(exports, "__esModule", {
|
5195 |
value: true
|
5196 |
});
|
5197 |
-
|
5198 |
-
|
5199 |
-
|
5200 |
-
|
5201 |
-
|
5202 |
-
|
5203 |
-
|
5204 |
-
|
5205 |
-
|
5206 |
-
|
5207 |
-
|
5208 |
-
var _setFocus2 = _interopRequireDefault(_setFocus);
|
5209 |
-
|
5210 |
-
function _interopRequireDefault(obj) {
|
5211 |
-
return obj && obj.__esModule ? obj : { default: obj };
|
5212 |
-
}
|
5213 |
|
5214 |
-
function
|
5215 |
-
|
5216 |
-
|
5217 |
-
|
5218 |
-
try {
|
5219 |
-
var info = gen[key](arg);var value = info.value;
|
5220 |
-
} catch (error) {
|
5221 |
-
reject(error);return;
|
5222 |
-
}if (info.done) {
|
5223 |
-
resolve(value);
|
5224 |
-
} else {
|
5225 |
-
return Promise.resolve(value).then(function (value) {
|
5226 |
-
step("next", value);
|
5227 |
-
}, function (err) {
|
5228 |
-
step("throw", err);
|
5229 |
-
});
|
5230 |
-
}
|
5231 |
-
}return step("next");
|
5232 |
-
});
|
5233 |
-
};
|
5234 |
-
}
|
5235 |
|
5236 |
-
|
|
|
|
|
5237 |
|
5238 |
-
//
|
|
|
|
|
|
|
|
|
5239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5240 |
|
5241 |
-
/**
|
5242 |
-
*
|
5243 |
-
*
|
5244 |
-
*
|
5245 |
-
* @param {
|
5246 |
-
* @
|
|
|
|
|
|
|
|
|
5247 |
*/
|
5248 |
-
function wooGetContent(response, alm) {
|
5249 |
|
5250 |
-
|
5251 |
-
|
5252 |
-
|
5253 |
-
|
5254 |
-
|
5255 |
-
|
|
|
|
|
|
|
|
|
5256 |
}
|
5257 |
-
}
|
5258 |
-
if (response.status === 200 && response.data) {
|
5259 |
|
5260 |
-
|
5261 |
-
|
|
|
|
|
|
|
|
|
5262 |
|
5263 |
-
|
5264 |
-
|
5265 |
-
|
5266 |
|
5267 |
-
|
5268 |
-
|
5269 |
-
|
5270 |
|
5271 |
-
|
5272 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5273 |
}
|
5274 |
|
5275 |
-
|
5276 |
-
|
5277 |
|
5278 |
-
|
5279 |
-
|
5280 |
-
|
5281 |
-
*
|
5282 |
-
* @param {object} alm
|
5283 |
-
* @since 5.3.0
|
5284 |
-
*/
|
5285 |
-
function wooInit(alm) {
|
5286 |
|
5287 |
-
|
5288 |
-
|
5289 |
-
}
|
5290 |
|
5291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5292 |
|
5293 |
-
|
5294 |
-
alm.button.dataset.page = alm.addons.woocommerce_paged + 1;
|
5295 |
|
5296 |
-
|
5297 |
-
|
5298 |
-
|
5299 |
-
|
5300 |
-
|
5301 |
-
|
5302 |
-
}
|
5303 |
|
5304 |
-
|
5305 |
-
var products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
|
5306 |
-
if (products) {
|
5307 |
|
5308 |
-
products.setAttribute('aria-live', 'polite');
|
5309 |
-
products.setAttribute('aria-atomic', 'true');
|
5310 |
|
5311 |
-
|
5312 |
-
|
|
|
5313 |
|
5314 |
-
|
5315 |
-
if (product) {
|
5316 |
-
product.classList.add('alm-woocommerce');
|
5317 |
-
product.dataset.url = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged - 1];
|
5318 |
-
product.dataset.page = alm.page;
|
5319 |
-
product.dataset.pageTitle = document.title;
|
5320 |
-
}
|
5321 |
|
5322 |
-
|
5323 |
-
|
5324 |
-
|
5325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5326 |
}
|
5327 |
}
|
5328 |
|
5329 |
/**
|
5330 |
-
*
|
5331 |
-
* Core ALM WooCommerce Product Loader
|
5332 |
*
|
5333 |
-
* @param {
|
5334 |
-
* @
|
5335 |
-
* @param {String} pageTitle
|
5336 |
-
* @since 5.3.0
|
5337 |
*/
|
5338 |
-
function woocommerce(content, alm) {
|
5339 |
-
var pageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.title;
|
5340 |
|
5341 |
-
|
5342 |
-
return false;
|
5343 |
-
}
|
5344 |
|
5345 |
return new Promise(function (resolve) {
|
5346 |
|
5347 |
-
var
|
5348 |
-
var products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
|
5349 |
-
var columns = alm.addons.woocommerce_columns; // Count columns
|
5350 |
|
5351 |
-
|
5352 |
|
5353 |
-
|
5354 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5355 |
|
5356 |
-
|
5357 |
-
|
5358 |
-
|
5359 |
-
|
5360 |
-
|
5361 |
-
case 0:
|
5362 |
-
_context.next = 2;
|
5363 |
-
return loadProducts(container, products, columns, alm, pageTitle);
|
5364 |
|
5365 |
-
|
5366 |
-
|
5367 |
|
5368 |
-
|
5369 |
-
|
5370 |
-
|
5371 |
-
|
5372 |
-
}
|
5373 |
-
}, _callee, this);
|
5374 |
-
}))().catch(function (e) {
|
5375 |
-
console.log(e, 'There was an error with WooCommerce');
|
5376 |
-
});
|
5377 |
-
}
|
5378 |
});
|
5379 |
-
}
|
|
|
|
|
5380 |
|
5381 |
/**
|
5382 |
-
*
|
5383 |
-
*
|
5384 |
-
*
|
5385 |
-
* @param {HTMLElement} container
|
5386 |
-
* @param {HTMLElement} products
|
5387 |
-
* @param {String} columns
|
5388 |
-
* @param {Object} alm
|
5389 |
-
* @param {String} pageTitle
|
5390 |
*/
|
5391 |
-
var loadProducts = function loadProducts(container, products, columns, alm, pageTitle) {
|
5392 |
|
5393 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5394 |
|
5395 |
-
|
5396 |
-
|
5397 |
-
var count = 1;
|
5398 |
|
5399 |
-
|
5400 |
|
5401 |
-
|
|
|
|
|
|
|
|
|
|
|
5402 |
|
5403 |
-
|
5404 |
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
5405 |
-
while (1) {
|
5406 |
-
switch (_context2.prev = _context2.next) {
|
5407 |
-
case 0:
|
5408 |
|
5409 |
-
//products[index].classList.remove('first');
|
5410 |
-
//products[index].classList.remove('last');
|
5411 |
-
products[index].style.opacity = 0;
|
5412 |
|
5413 |
-
|
5414 |
-
|
5415 |
-
|
|
|
|
|
5416 |
|
5417 |
-
|
5418 |
-
products[index].dataset.url = alm.addons.woocommerce_paged_urls[alm.page];
|
5419 |
|
5420 |
-
|
5421 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5422 |
|
5423 |
-
|
5424 |
-
|
5425 |
-
|
|
|
|
|
5426 |
|
5427 |
-
|
5428 |
-
return loadProductImage(container, products[index], alm.ua);
|
5429 |
|
5430 |
-
|
|
|
|
|
|
|
|
|
|
|
5431 |
|
5432 |
-
|
5433 |
-
|
|
|
|
|
5434 |
|
5435 |
-
|
5436 |
|
5437 |
-
|
5438 |
-
|
5439 |
-
|
5440 |
-
|
|
|
|
|
|
|
|
|
5441 |
}
|
5442 |
-
}
|
5443 |
-
|
5444 |
-
|
5445 |
-
|
5446 |
-
|
5447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5448 |
|
5449 |
-
|
5450 |
-
|
5451 |
-
|
5452 |
-
|
5453 |
-
if (
|
5454 |
-
|
|
|
|
|
5455 |
}
|
5456 |
}
|
|
|
|
|
5457 |
}
|
|
|
|
|
5458 |
|
5459 |
-
|
5460 |
-
|
5461 |
-
|
|
|
|
|
|
|
|
|
5462 |
|
5463 |
-
|
5464 |
-
|
5465 |
-
* Load the product image with imagesLoaded
|
5466 |
-
*
|
5467 |
-
* @param {HTMLElement} container
|
5468 |
-
* @param {HTMLElement} product
|
5469 |
-
* @param {String} ua
|
5470 |
-
*/
|
5471 |
-
var loadProductImage = function loadProductImage(container, product, ua) {
|
5472 |
-
return new Promise(function (resolve) {
|
5473 |
-
imagesLoaded(product, function () {
|
5474 |
-
// Add CSS transition
|
5475 |
-
product.style.transition = 'all 0.3s ease';
|
5476 |
-
// Append to container
|
5477 |
-
container.appendChild(product);
|
5478 |
-
// Run srcset fix
|
5479 |
-
(0, _srcsetPolyfill2.default)(product, ua);
|
5480 |
-
// Send await callback
|
5481 |
-
resolve(true);
|
5482 |
-
});
|
5483 |
-
});
|
5484 |
-
};
|
5485 |
|
5486 |
-
|
5487 |
-
* wooGetURL
|
5488 |
-
* Get the next URL for Load More button
|
5489 |
-
*
|
5490 |
-
* @param {object} alm
|
5491 |
-
* @since 5.3.0
|
5492 |
-
*/
|
5493 |
-
function wooGetURL(alm) {
|
5494 |
-
if (!alm || !alm.trigger) {
|
5495 |
return false;
|
5496 |
}
|
5497 |
|
5498 |
-
|
5499 |
-
|
5500 |
-
var url = button.dataset.url;
|
5501 |
|
5502 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5503 |
}
|
5504 |
|
5505 |
-
|
5506 |
-
|
5507 |
-
* Set results text for WooCommerce Add-on.
|
5508 |
-
*
|
5509 |
-
* @param {HTMLElement} target
|
5510 |
-
* @param {Object} alm
|
5511 |
-
* @since 5.3
|
5512 |
-
*/
|
5513 |
-
function almWooCommerceResultsText() {
|
5514 |
-
var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
5515 |
-
var alm = arguments[1];
|
5516 |
|
5517 |
-
|
5518 |
-
|
5519 |
-
|
5520 |
-
|
5521 |
-
|
5522 |
-
|
5523 |
-
resultText = resultText + alm.localize.woocommerce.settings.previous_page_link;
|
5524 |
-
}
|
5525 |
-
element.innerHTML = resultText;
|
5526 |
-
});
|
5527 |
-
}
|
5528 |
}
|
5529 |
-
}
|
5530 |
|
5531 |
-
|
5532 |
-
|
5533 |
-
|
5534 |
-
|
5535 |
-
* @param {Object} alm
|
5536 |
-
* @since 5.3
|
5537 |
-
*/
|
5538 |
-
function almWooCommerceResultsTextInit(alm) {
|
5539 |
-
if (alm && alm.addons.woocommerce_results_text) {
|
5540 |
-
var results = document.querySelectorAll(alm.addons.woocommerce_classes.results);
|
5541 |
-
if (results.length < 1) {
|
5542 |
-
return false;
|
5543 |
-
}
|
5544 |
-
// Loop all result text elements
|
5545 |
-
results.forEach(function (element) {
|
5546 |
-
if (alm.localize.woocommerce.settings.previous_page_link) {
|
5547 |
-
var newText = element.innerHTML;
|
5548 |
-
newText = newText + alm.localize.woocommerce.settings.previous_page_link;
|
5549 |
-
element.innerHTML = newText;
|
5550 |
-
}
|
5551 |
-
});
|
5552 |
}
|
|
|
|
|
5553 |
}
|
5554 |
|
5555 |
/***/ }),
|
@@ -16921,6 +17136,100 @@ return EvEmitter;
|
|
16921 |
}));
|
16922 |
|
16923 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16924 |
/***/ }),
|
16925 |
|
16926 |
/***/ "./node_modules/imagesloaded/imagesloaded.js":
|
87 |
/************************************************************************/
|
88 |
/******/ ({
|
89 |
|
90 |
+
/***/ "./core/src/js/addons/seo.js":
|
91 |
+
/*!***********************************!*\
|
92 |
+
!*** ./core/src/js/addons/seo.js ***!
|
93 |
+
\***********************************/
|
94 |
/*! no static exports found */
|
95 |
/***/ (function(module, exports, __webpack_require__) {
|
96 |
|
98 |
|
99 |
|
100 |
Object.defineProperty(exports, "__esModule", {
|
101 |
+
value: true
|
102 |
});
|
103 |
+
exports.createMasonrySEOPage = createMasonrySEOPage;
|
104 |
+
exports.createMasonrySEOPages = createMasonrySEOPages;
|
105 |
+
exports.createSEOAttributes = createSEOAttributes;
|
106 |
|
107 |
+
/**
|
108 |
+
* createMasonrySEOPage
|
109 |
+
* Create data attributes for SEO paged results
|
110 |
+
*
|
111 |
+
* @param {Object} alm
|
112 |
+
* @param {Array} elements
|
113 |
+
* @since 5.3.1
|
114 |
+
*/
|
115 |
+
function createMasonrySEOPage(alm, element) {
|
116 |
|
117 |
+
if (!alm.addons.seo) {
|
118 |
+
return element;
|
119 |
+
}
|
120 |
|
121 |
+
var querystring = window.location.search;
|
122 |
+
var seo_class = 'alm-seo';
|
123 |
+
var page = alm.page + 1;
|
124 |
+
page = alm.addons.preloaded === 'true' ? page + 1 : page;
|
125 |
+
element = createMasonryDataAtts(alm, element, querystring, seo_class, page);
|
126 |
|
127 |
+
return element;
|
128 |
+
}
|
129 |
|
130 |
+
/**
|
131 |
+
* createMasonrySEOPages
|
132 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
133 |
+
*
|
134 |
+
* @param {Object} alm
|
135 |
+
* @param {Array} elements
|
136 |
+
* @since 5.3.1
|
137 |
+
*/
|
138 |
+
function createMasonrySEOPages(alm, elements) {
|
139 |
|
140 |
+
if (!alm.addons.seo) {
|
141 |
+
return elements;
|
142 |
+
}
|
143 |
|
144 |
+
var pagenum = 1;
|
145 |
+
var page = alm.page;
|
146 |
+
var seo_class = 'alm-seo';
|
147 |
+
var querystring = window.location.search;
|
148 |
|
149 |
+
if (alm.start_page > 1) {
|
150 |
+
// Create pages
|
151 |
+
var posts_per_page = parseInt(alm.posts_per_page);
|
152 |
+
var pages = Math.ceil(elements.length / parseInt(posts_per_page));
|
153 |
+
var return_data = [];
|
154 |
|
155 |
+
// Slice data array into individual pages
|
156 |
+
for (var i = 0; i < elements.length; i += posts_per_page) {
|
157 |
+
return_data.push(elements.slice(i, posts_per_page + i));
|
158 |
+
}
|
159 |
|
160 |
+
// Loop new data array
|
161 |
+
for (var k = 0; k < return_data.length; k++) {
|
162 |
+
var target = k > 0 ? k * posts_per_page : 0;
|
163 |
+
pagenum = k + 1;
|
164 |
+
if (elements[target]) {
|
165 |
+
elements[target] = createMasonryDataAtts(alm, elements[target], querystring, seo_class, pagenum);
|
166 |
+
}
|
167 |
+
}
|
168 |
+
} else {
|
169 |
+
pagenum = page;
|
170 |
+
elements[0] = createMasonryDataAtts(alm, elements[0], querystring, seo_class, pagenum);
|
171 |
+
}
|
172 |
|
173 |
+
return elements;
|
174 |
+
}
|
175 |
|
176 |
+
// Create the attributes (page, url, classes) for the masonry items
|
177 |
+
function createMasonryDataAtts(alm, element, querystring, seo_class, pagenum) {
|
178 |
|
179 |
+
element.classList.add(seo_class);
|
180 |
+
element.dataset.page = pagenum;
|
181 |
|
182 |
+
if (alm.addons.seo_permalink === 'default') {
|
183 |
|
184 |
+
// Default Permalinks
|
185 |
+
if (pagenum > 1) {
|
186 |
+
element.dataset.url = alm.canonical_url + querystring + '&paged=' + pagenum;
|
187 |
+
} else {
|
188 |
+
element.dataset.url = alm.canonical_url + querystring;
|
189 |
+
}
|
190 |
+
} else {
|
191 |
|
192 |
+
// Pretty Permalinks
|
193 |
+
if (pagenum > 1) {
|
194 |
+
element.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
195 |
+
} else {
|
196 |
+
element.dataset.url = alm.canonical_url + querystring;
|
197 |
+
}
|
198 |
+
}
|
199 |
|
200 |
+
return element;
|
201 |
+
}
|
202 |
|
203 |
+
/**
|
204 |
+
* createSEOAttributes
|
205 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
206 |
+
*
|
207 |
+
* @param {Object} alm
|
208 |
+
* @param {Array} elements
|
209 |
+
* ...
|
210 |
+
* @since 5.3.1
|
211 |
+
*/
|
212 |
+
function createSEOAttributes(alm, element, querystring, seo_class, pagenum) {
|
213 |
|
214 |
+
element.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
215 |
+
element.dataset.page = pagenum;
|
216 |
|
217 |
+
if (alm.addons.seo_permalink === 'default') {
|
218 |
+
// Default Permalinks
|
219 |
+
element.dataset.url = pagenum > 1 ? alm.canonical_url + querystring + '&paged=' + pagenum : alm.canonical_url + querystring;
|
220 |
+
} else {
|
221 |
+
// Pretty Permalinks
|
222 |
+
element.dataset.url = pagenum > 1 ? alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring : alm.canonical_url + querystring;
|
223 |
+
}
|
224 |
|
225 |
+
return element;
|
226 |
+
}
|
227 |
|
228 |
+
/***/ }),
|
229 |
|
230 |
+
/***/ "./core/src/js/addons/singleposts.js":
|
231 |
+
/*!*******************************************!*\
|
232 |
+
!*** ./core/src/js/addons/singleposts.js ***!
|
233 |
+
\*******************************************/
|
234 |
+
/*! no static exports found */
|
235 |
+
/***/ (function(module, exports, __webpack_require__) {
|
236 |
|
237 |
+
"use strict";
|
238 |
|
|
|
239 |
|
240 |
+
Object.defineProperty(exports, "__esModule", {
|
241 |
+
value: true
|
242 |
+
});
|
243 |
+
exports.singlePostHTML = singlePostHTML;
|
244 |
+
exports.singlePostCache = singlePostCache;
|
245 |
|
246 |
+
var _axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
|
247 |
|
248 |
+
var _axios2 = _interopRequireDefault(_axios);
|
249 |
|
250 |
+
function _interopRequireDefault(obj) {
|
251 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
252 |
+
}
|
253 |
|
254 |
+
/**
|
255 |
+
* singlePostHTML
|
256 |
+
* Create the HTML for loading Single Posts
|
257 |
+
*
|
258 |
+
* @param {Object} response Query response
|
259 |
+
* @param {HTMLElement} target The target div
|
260 |
+
* @since 5.1.8.1
|
261 |
+
*/
|
262 |
+
function singlePostHTML(response) {
|
263 |
+
var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
264 |
|
265 |
+
var data = {
|
266 |
+
html: '',
|
267 |
+
meta: {
|
268 |
+
postcount: 1,
|
269 |
+
totalposts: 1,
|
270 |
+
debug: 'Single Posts Query'
|
271 |
+
}
|
272 |
+
};
|
273 |
+
if (response.status === 200 && response.data && target) {
|
274 |
+
var div = document.createElement("div");
|
275 |
+
div.innerHTML = response.data;
|
276 |
+
var htmlTarget = div.querySelector(target);
|
277 |
+
if (htmlTarget) {
|
278 |
+
data.html = htmlTarget.innerHTML;
|
279 |
+
}
|
280 |
+
}
|
281 |
+
return data;
|
282 |
+
}
|
283 |
|
284 |
+
exports.default = singlePostHTML;
|
285 |
|
286 |
+
/**
|
287 |
+
* singlePostCache
|
288 |
+
* Create a single post cache file
|
289 |
+
*
|
290 |
+
* @param {Object} alm
|
291 |
+
* @param {String} content
|
292 |
+
* @since 5.3.1
|
293 |
+
*/
|
294 |
|
295 |
+
function singlePostCache(alm, content) {
|
296 |
|
297 |
+
if (alm.addons.cache !== 'true' || !content || content === '') {
|
298 |
+
return false;
|
299 |
+
}
|
300 |
|
301 |
+
var formData = new FormData();
|
302 |
+
formData.append('action', 'alm_cache_from_html');
|
303 |
+
formData.append('security', alm_localize.alm_nonce);
|
304 |
+
formData.append('cache_id', alm.addons.cache_id);
|
305 |
+
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
306 |
+
formData.append('canonical_url', alm.canonical_url);
|
307 |
+
formData.append('name', alm.addons.single_post_id);
|
308 |
+
formData.append('html', content.trim());
|
309 |
+
|
310 |
+
_axios2.default.post(alm_localize.ajaxurl, formData).then(function (response) {
|
311 |
+
console.log(response);
|
312 |
+
});
|
313 |
+
}
|
314 |
|
315 |
+
/***/ }),
|
316 |
|
317 |
+
/***/ "./core/src/js/addons/woocommerce.js":
|
318 |
+
/*!*******************************************!*\
|
319 |
+
!*** ./core/src/js/addons/woocommerce.js ***!
|
320 |
+
\*******************************************/
|
321 |
+
/*! no static exports found */
|
322 |
+
/***/ (function(module, exports, __webpack_require__) {
|
323 |
|
324 |
+
"use strict";
|
325 |
|
|
|
326 |
|
327 |
+
Object.defineProperty(exports, "__esModule", {
|
328 |
+
value: true
|
329 |
+
});
|
330 |
+
exports.wooGetContent = wooGetContent;
|
331 |
+
exports.wooInit = wooInit;
|
332 |
+
exports.woocommerce = woocommerce;
|
333 |
+
exports.wooGetURL = wooGetURL;
|
334 |
|
335 |
+
var _srcsetPolyfill = __webpack_require__(/*! ../helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
|
336 |
|
337 |
var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
|
338 |
|
339 |
+
var _setFocus = __webpack_require__(/*! ../modules/setFocus */ "./core/src/js/modules/setFocus.js");
|
|
|
|
|
340 |
|
341 |
+
var _setFocus2 = _interopRequireDefault(_setFocus);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
|
343 |
function _interopRequireDefault(obj) {
|
344 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
}
|
346 |
|
347 |
function _asyncToGenerator(fn) {
|
348 |
+
return function () {
|
349 |
+
var gen = fn.apply(this, arguments);return new Promise(function (resolve, reject) {
|
350 |
+
function step(key, arg) {
|
351 |
+
try {
|
352 |
+
var info = gen[key](arg);var value = info.value;
|
353 |
+
} catch (error) {
|
354 |
+
reject(error);return;
|
355 |
+
}if (info.done) {
|
356 |
+
resolve(value);
|
357 |
+
} else {
|
358 |
+
return Promise.resolve(value).then(function (value) {
|
359 |
+
step("next", value);
|
360 |
+
}, function (err) {
|
361 |
+
step("throw", err);
|
362 |
+
});
|
363 |
+
}
|
364 |
+
}return step("next");
|
365 |
+
});
|
366 |
+
};
|
367 |
}
|
368 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
|
|
|
|
370 |
|
371 |
+
/**
|
372 |
+
* wooGetContent
|
373 |
+
* Get the content, title and results text from the Ajax response
|
374 |
+
*
|
375 |
+
* @param {object} alm
|
376 |
+
* @since 5.3.0
|
377 |
+
*/
|
378 |
+
function wooGetContent(response, alm) {
|
379 |
|
380 |
+
var data = {
|
381 |
+
html: '',
|
382 |
+
meta: {
|
383 |
+
postcount: 1,
|
384 |
+
totalposts: alm.localize.total_posts,
|
385 |
+
debug: 'WooCommerce Query'
|
386 |
+
}
|
387 |
+
};
|
388 |
+
if (response.status === 200 && response.data) {
|
389 |
|
390 |
+
var div = document.createElement("div");
|
391 |
+
div.innerHTML = response.data;
|
392 |
|
393 |
+
// Get Page Title
|
394 |
+
var title = div.querySelector('title').innerHTML;
|
395 |
+
data.pageTitle = title;
|
396 |
|
397 |
+
// Get Products HTML
|
398 |
+
var products = div.querySelector(alm.addons.woocommerce_classes.container);
|
399 |
+
data.html = products ? products.innerHTML : '';
|
400 |
|
401 |
+
// Results Text
|
402 |
+
almWooCommerceResultsText(div, alm);
|
403 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
|
405 |
+
return data;
|
406 |
+
}
|
|
|
|
|
407 |
|
408 |
+
/**
|
409 |
+
* wooInit
|
410 |
+
* Set up the instance of ALM WooCommerce
|
411 |
+
*
|
412 |
+
* @param {object} alm
|
413 |
+
* @since 5.3.0
|
414 |
+
*/
|
415 |
+
function wooInit(alm) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
|
417 |
+
if (!alm || !alm.addons.woocommerce) {
|
418 |
+
return false;
|
419 |
+
}
|
420 |
|
421 |
+
// Set button data attributes
|
|
|
|
|
|
|
422 |
|
423 |
+
// Page
|
424 |
+
alm.button.dataset.page = alm.addons.woocommerce_paged + 1;
|
425 |
|
426 |
+
// URL
|
427 |
+
var nextPage = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged];
|
428 |
+
if (nextPage) {
|
429 |
+
alm.button.dataset.url = nextPage;
|
430 |
+
} else {
|
431 |
+
alm.button.dataset.url = '';
|
432 |
+
}
|
433 |
|
434 |
+
// Set up URL and class parameters on first item in product listing
|
435 |
+
var products = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
|
436 |
+
if (products) {
|
437 |
|
438 |
+
products.setAttribute('aria-live', 'polite');
|
439 |
+
products.setAttribute('aria-atomic', 'true');
|
|
|
|
|
|
|
|
|
|
|
440 |
|
441 |
+
alm.listing.removeAttribute('aria-live');
|
442 |
+
alm.listing.removeAttribute('aria-atomic');
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
+
var product = products.querySelector(alm.addons.woocommerce_classes.products); // Get first `.product` item
|
445 |
+
if (product) {
|
446 |
+
product.classList.add('alm-woocommerce');
|
447 |
+
product.dataset.url = alm.addons.woocommerce_paged_urls[alm.addons.woocommerce_paged - 1];
|
448 |
+
product.dataset.page = alm.page;
|
449 |
+
product.dataset.pageTitle = document.title;
|
450 |
+
}
|
451 |
|
452 |
+
if (alm.addons.woocommerce_paged > 1) {
|
453 |
+
// maybe soon
|
454 |
+
almWooCommerceResultsTextInit(alm);
|
455 |
+
}
|
456 |
+
}
|
457 |
+
}
|
458 |
|
459 |
+
/**
|
460 |
+
* woocommerce
|
461 |
+
* Core ALM WooCommerce Product Loader
|
462 |
+
*
|
463 |
+
* @param {HTMLElement} content
|
464 |
+
* @param {object} alm
|
465 |
+
* @param {String} pageTitle
|
466 |
+
* @since 5.3.0
|
467 |
+
*/
|
468 |
+
function woocommerce(content, alm) {
|
469 |
+
var pageTitle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.title;
|
470 |
|
471 |
+
if (!content || !alm) {
|
472 |
+
return false;
|
473 |
+
}
|
|
|
|
|
474 |
|
475 |
+
return new Promise(function (resolve) {
|
|
|
|
|
476 |
|
477 |
+
var container = document.querySelector(alm.addons.woocommerce_classes.container); // Get `ul.products`
|
478 |
+
var products = content.querySelectorAll(alm.addons.woocommerce_classes.products); // Get all `.products`
|
479 |
+
var columns = alm.addons.woocommerce_columns; // Count columns
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
|
481 |
+
if (container && products) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
|
483 |
+
// Convert NodeList to Array
|
484 |
+
products = Array.prototype.slice.call(products);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
|
486 |
+
// Load the Products
|
487 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
488 |
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
489 |
+
while (1) {
|
490 |
+
switch (_context.prev = _context.next) {
|
491 |
+
case 0:
|
492 |
+
_context.next = 2;
|
493 |
+
return loadProducts(container, products, columns, alm, pageTitle);
|
494 |
|
495 |
+
case 2:
|
496 |
+
resolve(true);
|
497 |
|
498 |
+
case 3:
|
499 |
+
case 'end':
|
500 |
+
return _context.stop();
|
501 |
+
}
|
502 |
+
}
|
503 |
+
}, _callee, this);
|
504 |
+
}))().catch(function (e) {
|
505 |
+
console.log(e, 'There was an error with WooCommerce');
|
506 |
+
});
|
507 |
+
}
|
508 |
+
});
|
509 |
+
}
|
510 |
|
511 |
+
/**
|
512 |
+
* loadProducts
|
513 |
+
* Load all products
|
514 |
+
*
|
515 |
+
* @param {HTMLElement} container
|
516 |
+
* @param {HTMLElement} products
|
517 |
+
* @param {String} columns
|
518 |
+
* @param {Object} alm
|
519 |
+
* @param {String} pageTitle
|
520 |
+
*/
|
521 |
+
var loadProducts = function loadProducts(container, products, columns, alm, pageTitle) {
|
522 |
|
523 |
+
return new Promise(function (resolve) {
|
524 |
|
525 |
+
var total = products.length;
|
526 |
+
var index = 0;
|
527 |
+
var count = 1;
|
|
|
|
|
|
|
528 |
|
529 |
+
function loadProduct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
|
531 |
+
if (count <= total) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
|
533 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
534 |
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
535 |
+
while (1) {
|
536 |
+
switch (_context2.prev = _context2.next) {
|
537 |
+
case 0:
|
538 |
|
539 |
+
//products[index].classList.remove('first');
|
540 |
+
//products[index].classList.remove('last');
|
541 |
+
products[index].style.opacity = 0;
|
|
|
|
|
|
|
|
|
|
|
542 |
|
543 |
+
// First item only
|
544 |
+
if (count == 1) {
|
545 |
+
products[index].classList.add('alm-woocommerce');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
546 |
|
547 |
+
// Get URL from localized variables
|
548 |
+
products[index].dataset.url = alm.addons.woocommerce_paged_urls[alm.page];
|
|
|
549 |
|
550 |
+
// Set page num
|
551 |
+
products[index].dataset.page = alm.page + 1;
|
|
|
|
|
|
|
|
|
|
|
552 |
|
553 |
+
// Set page title
|
554 |
+
products[index].dataset.pageTitle = pageTitle;
|
555 |
+
}
|
556 |
|
557 |
+
_context2.next = 4;
|
558 |
+
return loadProductImage(container, products[index], alm.ua);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
|
560 |
+
case 4:
|
|
|
|
|
|
|
|
|
|
|
561 |
|
562 |
+
count++;
|
563 |
+
index++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
564 |
|
565 |
+
loadProduct();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
|
567 |
+
case 7:
|
568 |
+
case 'end':
|
569 |
+
return _context2.stop();
|
570 |
+
}
|
571 |
+
}
|
572 |
+
}, _callee2, this);
|
573 |
+
}))().catch(function (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
+
console.log('There was an error with WooCommerce');
|
576 |
+
});
|
577 |
+
} else {
|
|
|
|
|
578 |
|
579 |
+
resolve(true);
|
580 |
+
products.map(function (product) {
|
581 |
+
product.style.opacity = 1;
|
582 |
+
});
|
583 |
+
if (products[0]) {
|
584 |
+
(0, _setFocus2.default)(alm, products[0], null, false);
|
585 |
+
}
|
586 |
+
}
|
587 |
+
}
|
588 |
|
589 |
+
loadProduct();
|
590 |
+
});
|
591 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
|
593 |
+
/**
|
594 |
+
* loadProductImage
|
595 |
+
* Load the product image with imagesLoaded
|
596 |
+
*
|
597 |
+
* @param {HTMLElement} container
|
598 |
+
* @param {HTMLElement} product
|
599 |
+
* @param {String} ua
|
600 |
+
*/
|
601 |
+
var loadProductImage = function loadProductImage(container, product, ua) {
|
602 |
+
return new Promise(function (resolve) {
|
603 |
+
imagesLoaded(product, function () {
|
604 |
+
// Add CSS transition
|
605 |
+
product.style.transition = 'all 0.3s ease';
|
606 |
+
// Append to container
|
607 |
+
container.appendChild(product);
|
608 |
+
// Run srcset fix
|
609 |
+
(0, _srcsetPolyfill2.default)(product, ua);
|
610 |
+
// Send await callback
|
611 |
+
resolve(true);
|
612 |
+
});
|
613 |
+
});
|
614 |
+
};
|
|
|
|
|
|
|
|
|
|
|
615 |
|
616 |
+
/**
|
617 |
+
* wooGetURL
|
618 |
+
* Get the next URL for Load More button
|
619 |
+
*
|
620 |
+
* @param {object} alm
|
621 |
+
* @since 5.3.0
|
622 |
+
*/
|
623 |
+
function wooGetURL(alm) {
|
624 |
+
if (!alm || !alm.trigger) {
|
625 |
+
return false;
|
626 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
627 |
|
628 |
+
// Get Button
|
629 |
+
var button = alm.trigger.querySelector('button');
|
630 |
+
var url = button.dataset.url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
|
632 |
+
return url ? url : '';
|
633 |
+
}
|
|
|
634 |
|
635 |
+
/**
|
636 |
+
* almWooCommerceResultsText
|
637 |
+
* Set results text for WooCommerce Add-on.
|
638 |
+
*
|
639 |
+
* @param {HTMLElement} target
|
640 |
+
* @param {Object} alm
|
641 |
+
* @since 5.3
|
642 |
+
*/
|
643 |
+
function almWooCommerceResultsText() {
|
644 |
+
var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
645 |
+
var alm = arguments[1];
|
646 |
|
647 |
+
if (target && alm && alm.addons.woocommerce_results_text) {
|
648 |
+
var currentResults = target.querySelector(alm.addons.woocommerce_classes.results);
|
649 |
+
if (currentResults) {
|
650 |
+
var resultText = currentResults.innerHTML;
|
651 |
+
alm.addons.woocommerce_results_text.forEach(function (element) {
|
652 |
+
if (alm.localize.woocommerce.settings.previous_page_link) {
|
653 |
+
resultText = resultText + alm.localize.woocommerce.settings.previous_page_link;
|
654 |
+
}
|
655 |
+
element.innerHTML = resultText;
|
656 |
+
});
|
657 |
+
}
|
658 |
+
}
|
659 |
+
}
|
660 |
|
661 |
+
/**
|
662 |
+
* almWooCommerceResultsTextInit
|
663 |
+
* Initiate Results text.
|
664 |
+
*
|
665 |
+
* @param {Object} alm
|
666 |
+
* @since 5.3
|
667 |
+
*/
|
668 |
+
function almWooCommerceResultsTextInit(alm) {
|
669 |
+
if (alm && alm.addons.woocommerce_results_text) {
|
670 |
+
var results = document.querySelectorAll(alm.addons.woocommerce_classes.results);
|
671 |
+
if (results.length < 1) {
|
672 |
+
return false;
|
673 |
+
}
|
674 |
+
// Loop all result text elements
|
675 |
+
results.forEach(function (element) {
|
676 |
+
if (alm.localize.woocommerce.settings.previous_page_link) {
|
677 |
+
var newText = element.innerHTML;
|
678 |
+
newText = newText + alm.localize.woocommerce.settings.previous_page_link;
|
679 |
+
element.innerHTML = newText;
|
680 |
+
}
|
681 |
+
});
|
682 |
+
}
|
683 |
+
}
|
684 |
|
685 |
+
/***/ }),
|
|
|
686 |
|
687 |
+
/***/ "./core/src/js/ajax-load-more.js":
|
688 |
+
/*!***************************************!*\
|
689 |
+
!*** ./core/src/js/ajax-load-more.js ***!
|
690 |
+
\***************************************/
|
691 |
+
/*! no static exports found */
|
692 |
+
/***/ (function(module, exports, __webpack_require__) {
|
693 |
|
694 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
695 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
696 |
|
697 |
+
Object.defineProperty(exports, "__esModule", {
|
698 |
+
value: true
|
699 |
+
});
|
700 |
+
exports.render = exports.getOffset = exports.almScroll = exports.start = exports.tracking = exports.tab = exports.filter = undefined;
|
701 |
|
702 |
+
var _axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
|
|
|
|
|
703 |
|
704 |
+
var _axios2 = _interopRequireDefault(_axios);
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
|
706 |
+
var _smoothscrollPolyfill = __webpack_require__(/*! smoothscroll-polyfill */ "./node_modules/smoothscroll-polyfill/dist/smoothscroll.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
|
708 |
+
var _smoothscrollPolyfill2 = _interopRequireDefault(_smoothscrollPolyfill);
|
|
|
|
|
709 |
|
710 |
+
__webpack_require__(/*! ./helpers/helpers */ "./core/src/js/helpers/helpers.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
|
712 |
+
var _getParameterByName = __webpack_require__(/*! ./helpers/getParameterByName */ "./core/src/js/helpers/getParameterByName.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
|
714 |
+
var _getParameterByName2 = _interopRequireDefault(_getParameterByName);
|
|
|
|
|
|
|
|
|
715 |
|
716 |
+
var _almAppendChildren = __webpack_require__(/*! ./helpers/almAppendChildren */ "./core/src/js/helpers/almAppendChildren.js");
|
717 |
|
718 |
+
var _almAppendChildren2 = _interopRequireDefault(_almAppendChildren);
|
|
|
|
|
719 |
|
720 |
+
var _tableWrap = __webpack_require__(/*! ./helpers/tableWrap */ "./core/src/js/helpers/tableWrap.js");
|
721 |
|
722 |
+
var _tableWrap2 = _interopRequireDefault(_tableWrap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
723 |
|
724 |
+
var _getCacheUrl = __webpack_require__(/*! ./helpers/getCacheUrl */ "./core/src/js/helpers/getCacheUrl.js");
|
|
|
|
|
|
|
725 |
|
726 |
+
var _getCacheUrl2 = _interopRequireDefault(_getCacheUrl);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
727 |
|
728 |
+
var _almDomParser = __webpack_require__(/*! ./helpers/almDomParser */ "./core/src/js/helpers/almDomParser.js");
|
|
|
|
|
|
|
|
|
|
|
729 |
|
730 |
+
var _almDomParser2 = _interopRequireDefault(_almDomParser);
|
731 |
|
732 |
+
var _stripEmptyNodes = __webpack_require__(/*! ./helpers/stripEmptyNodes */ "./core/src/js/helpers/stripEmptyNodes.js");
|
|
|
733 |
|
734 |
+
var _stripEmptyNodes2 = _interopRequireDefault(_stripEmptyNodes);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
735 |
|
736 |
+
var _queryParams = __webpack_require__(/*! ./helpers/queryParams */ "./core/src/js/helpers/queryParams.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
737 |
|
738 |
+
var queryParams = _interopRequireWildcard(_queryParams);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
739 |
|
740 |
+
var _resultsText = __webpack_require__(/*! ./modules/resultsText */ "./core/src/js/modules/resultsText.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
741 |
|
742 |
+
var resultsText = _interopRequireWildcard(_resultsText);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
|
744 |
+
var _tableofcontents = __webpack_require__(/*! ./modules/tableofcontents */ "./core/src/js/modules/tableofcontents.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
|
746 |
+
var _setLocalizedVars = __webpack_require__(/*! ./modules/setLocalizedVars */ "./core/src/js/modules/setLocalizedVars.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
|
748 |
+
var _setLocalizedVars2 = _interopRequireDefault(_setLocalizedVars);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
|
750 |
+
var _insertScript = __webpack_require__(/*! ./modules/insertScript */ "./core/src/js/modules/insertScript.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
|
752 |
+
var _insertScript2 = _interopRequireDefault(_insertScript);
|
|
|
|
|
753 |
|
754 |
+
var _setFocus = __webpack_require__(/*! ./modules/setFocus */ "./core/src/js/modules/setFocus.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
755 |
|
756 |
+
var _setFocus2 = _interopRequireDefault(_setFocus);
|
|
|
757 |
|
758 |
+
var _masonry = __webpack_require__(/*! ./modules/masonry */ "./core/src/js/modules/masonry.js");
|
|
|
759 |
|
760 |
+
var _masonry2 = _interopRequireDefault(_masonry);
|
761 |
|
762 |
+
var _fadeIn = __webpack_require__(/*! ./modules/fadeIn */ "./core/src/js/modules/fadeIn.js");
|
|
|
|
|
|
|
|
|
|
|
763 |
|
764 |
+
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
|
|
|
|
|
|
|
|
765 |
|
766 |
+
var _fadeOut = __webpack_require__(/*! ./modules/fadeOut */ "./core/src/js/modules/fadeOut.js");
|
|
|
767 |
|
768 |
+
var _fadeOut2 = _interopRequireDefault(_fadeOut);
|
|
|
769 |
|
770 |
+
var _filtering = __webpack_require__(/*! ./modules/filtering */ "./core/src/js/modules/filtering.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
771 |
|
772 |
+
var _filtering2 = _interopRequireDefault(_filtering);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
|
774 |
+
var _noResults = __webpack_require__(/*! ./modules/noResults */ "./core/src/js/modules/noResults.js");
|
|
|
|
|
|
|
775 |
|
776 |
+
var _noResults2 = _interopRequireDefault(_noResults);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
777 |
|
778 |
+
var _almDebug = __webpack_require__(/*! ./modules/almDebug */ "./core/src/js/modules/almDebug.js");
|
779 |
|
780 |
+
var _almDebug2 = _interopRequireDefault(_almDebug);
|
|
|
|
|
781 |
|
782 |
+
var _getScrollPercentage = __webpack_require__(/*! ./modules/getScrollPercentage */ "./core/src/js/modules/getScrollPercentage.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
|
784 |
+
var _getScrollPercentage2 = _interopRequireDefault(_getScrollPercentage);
|
|
|
785 |
|
786 |
+
var _srcsetPolyfill = __webpack_require__(/*! ./helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
|
|
|
|
|
787 |
|
788 |
+
var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
|
790 |
+
var _placeholder = __webpack_require__(/*! ./modules/placeholder */ "./core/src/js/modules/placeholder.js");
|
791 |
|
792 |
+
var _singleposts = __webpack_require__(/*! ./addons/singleposts */ "./core/src/js/addons/singleposts.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
|
794 |
+
var _woocommerce = __webpack_require__(/*! ./addons/woocommerce */ "./core/src/js/addons/woocommerce.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
|
796 |
+
var _seo = __webpack_require__(/*! ./addons/seo */ "./core/src/js/addons/seo.js");
|
|
|
|
|
797 |
|
798 |
+
function _interopRequireWildcard(obj) {
|
799 |
+
if (obj && obj.__esModule) {
|
800 |
+
return obj;
|
801 |
+
} else {
|
802 |
+
var newObj = {};if (obj != null) {
|
803 |
+
for (var key in obj) {
|
804 |
+
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
|
805 |
+
}
|
806 |
+
}newObj.default = obj;return newObj;
|
807 |
+
}
|
808 |
+
}
|
809 |
|
810 |
+
function _interopRequireDefault(obj) {
|
811 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
812 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
813 |
|
814 |
+
function _toConsumableArray(arr) {
|
815 |
+
if (Array.isArray(arr)) {
|
816 |
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
817 |
+
arr2[i] = arr[i];
|
818 |
+
}return arr2;
|
819 |
+
} else {
|
820 |
+
return Array.from(arr);
|
821 |
+
}
|
822 |
+
}
|
823 |
+
|
824 |
+
function _asyncToGenerator(fn) {
|
825 |
+
return function () {
|
826 |
+
var gen = fn.apply(this, arguments);return new Promise(function (resolve, reject) {
|
827 |
+
function step(key, arg) {
|
828 |
+
try {
|
829 |
+
var info = gen[key](arg);var value = info.value;
|
830 |
+
} catch (error) {
|
831 |
+
reject(error);return;
|
832 |
+
}if (info.done) {
|
833 |
+
resolve(value);
|
834 |
+
} else {
|
835 |
+
return Promise.resolve(value).then(function (value) {
|
836 |
+
step("next", value);
|
837 |
+
}, function (err) {
|
838 |
+
step("throw", err);
|
839 |
+
});
|
840 |
}
|
841 |
+
}return step("next");
|
842 |
+
});
|
843 |
+
};
|
844 |
+
}
|
845 |
|
846 |
+
/*
|
847 |
+
* Ajax Load More
|
848 |
+
* https://connekthq.com/plugins/ajax-load-more/
|
849 |
+
* Author: Darren Cooney
|
850 |
+
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
851 |
+
* Copyright Connekt Media - https://connekthq.com
|
852 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
853 |
|
854 |
+
// Polyfills
|
855 |
+
__webpack_require__(/*! @babel/polyfill/noConflict */ "./node_modules/@babel/polyfill/noConflict.js");
|
856 |
+
__webpack_require__(/*! focus-options-polyfill */ "./node_modules/focus-options-polyfill/index.js");
|
857 |
+
__webpack_require__(/*! ./helpers/polyfills.js */ "./core/src/js/helpers/polyfills.js");
|
|
|
|
|
|
|
|
|
858 |
|
859 |
+
// External Modules
|
860 |
+
var qs = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
|
861 |
+
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
862 |
+
// Smooth scrolling polyfill
|
863 |
+
_smoothscrollPolyfill2.default.polyfill();
|
|
|
|
|
|
|
|
|
|
|
864 |
|
865 |
+
// ALM Modules
|
|
|
|
|
|
|
866 |
|
867 |
+
//import commentReplyFix from './helpers/commentReplyFix';
|
868 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
869 |
|
870 |
+
// Global filtering var
|
871 |
+
var alm_is_filtering = false;
|
872 |
|
873 |
+
// Start ALM
|
874 |
+
(function () {
|
875 |
+
"use strict";
|
876 |
|
877 |
+
/**
|
878 |
+
* ajaxloadmore
|
879 |
+
* Init Ajax Load More
|
880 |
+
*
|
881 |
+
* @param {*} el
|
882 |
+
* @param {*} e
|
883 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
|
885 |
+
var ajaxloadmore = function ajaxloadmore(el, e) {
|
|
|
886 |
|
887 |
+
// Move user to top of page to prevent loading of unnessasry posts
|
888 |
+
if (alm_localize && alm_localize.scrolltop === 'true') {
|
889 |
+
window.scrollTo(0, 0);
|
890 |
+
}
|
891 |
|
892 |
+
//Set ALM Variables
|
893 |
+
var alm = this;
|
894 |
+
alm.AjaxLoadMore = {};
|
895 |
+
alm.addons = {};
|
896 |
+
alm.extensions = {};
|
897 |
+
alm.integration = {};
|
898 |
+
alm.window = window;
|
899 |
+
alm.page = 0;
|
900 |
+
alm.posts = 0;
|
901 |
+
alm.totalposts = 0;
|
902 |
+
alm.proceed = false;
|
903 |
+
alm.disable_ajax = false;
|
904 |
+
alm.init = true;
|
905 |
+
alm.loading = true;
|
906 |
+
alm.finished = false;
|
907 |
+
alm.timer = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
908 |
|
909 |
+
alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent
|
910 |
+
alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
|
911 |
+
alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
912 |
|
913 |
+
alm.main = el;
|
914 |
+
alm.master_id = el.dataset.id ? 'ajax-load-more-' + el.dataset.id : el.id; // The defined or generated ID of the ALM instance
|
915 |
+
el.classList.add('alm-' + e); // Add unique classname
|
916 |
+
el.setAttribute('data-alm-id', e); // Add unique data id
|
917 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
918 |
|
919 |
+
// Get localized <script/> variables
|
920 |
+
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
921 |
+
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
|
|
|
|
|
|
|
|
922 |
|
923 |
+
// Main ALM Containers
|
924 |
+
alm.main = el; // Top level DOM element
|
925 |
+
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
926 |
+
alm.content = alm.listing;
|
927 |
+
alm.el = alm.content;
|
928 |
+
alm.ajax = el.querySelector('.alm-ajax');
|
929 |
+
alm.container_type = alm.listing.dataset.containerType;
|
930 |
|
931 |
+
// Instance Params
|
932 |
+
alm.canonical_url = el.dataset.canonicalUrl;
|
933 |
+
alm.nested = el.dataset.nested ? el.dataset.nested : null;
|
934 |
+
alm.is_search = el.dataset.search;
|
935 |
+
alm.slug = el.dataset.slug;
|
936 |
+
alm.post_id = el.dataset.postId;
|
937 |
+
alm.id = el.dataset.id ? el.dataset.id : '';
|
938 |
|
939 |
+
// No results template
|
940 |
+
var alm_no_results = el.querySelector('.alm-no-results');
|
941 |
+
alm.no_results = alm_no_results ? alm_no_results.innerHTML : '';
|
942 |
|
943 |
+
// Shortcode Params
|
944 |
+
alm.repeater = alm.listing.dataset.repeater; // Repeaters
|
945 |
+
alm.theme_repeater = alm.listing.dataset.themeRepeater;
|
946 |
|
947 |
+
alm.post_type = alm.listing.dataset.postType ? alm.listing.dataset.postType : 'post';
|
948 |
+
alm.sticky_posts = alm.listing.dataset.stickyPosts ? alm.listing.dataset.stickyPosts : null;
|
949 |
|
950 |
+
alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs
|
951 |
+
alm.btnWrap = Array.prototype.slice.call(alm.btnWrap); // Convert NodeList to array
|
952 |
+
alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting)
|
953 |
+
alm.trigger = alm.btnWrap[alm.btnWrap.length - 1];
|
954 |
+
alm.button = alm.trigger.querySelector('button.alm-load-more-btn');
|
|
|
|
|
|
|
955 |
|
956 |
+
alm.button_label = alm.listing.dataset.buttonLabel;
|
957 |
+
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
958 |
+
alm.placeholder = alm.main.querySelector('.alm-placeholder');
|
959 |
|
960 |
+
alm.scroll_distance = alm.listing.dataset.scrollDistance;
|
961 |
+
alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
|
962 |
+
alm.scroll_container = alm.listing.dataset.scrollContainer;
|
963 |
+
alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
|
964 |
+
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
965 |
+
alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
|
966 |
+
alm.transition = alm.listing.dataset.transition; // Transition
|
967 |
+
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
968 |
+
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
969 |
+
alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
970 |
+
alm.images_loaded = alm.listing.dataset.imagesLoaded ? alm.listing.dataset.imagesLoaded : false;
|
971 |
+
alm.destroy_after = alm.listing.dataset.destroyAfter ? alm.listing.dataset.destroyAfter : '';
|
972 |
+
alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
|
973 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
974 |
+
alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
|
975 |
+
alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
|
976 |
+
alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
|
977 |
|
978 |
+
// Addon Shortcode Params
|
|
|
|
|
|
|
|
|
979 |
|
980 |
+
// Woocommerce add-on
|
981 |
+
alm.addons.woocommerce = alm.localize && alm.localize.woocommerce ? true : false;
|
982 |
+
if (alm.addons.woocommerce) {
|
983 |
+
alm.addons.woocommerce_columns = alm.localize.woocommerce.columns ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
|
984 |
+
alm.addons.woocommerce_paged = alm.localize.woocommerce.paged ? parseInt(alm.localize.woocommerce.paged) : 1; // Woocommerce Paged
|
985 |
+
alm.addons.woocommerce_paged_urls = alm.localize.woocommerce.paged_urls;
|
986 |
+
alm.addons.woocommerce_pages = parseInt(alm.localize.woocommerce.pages);
|
987 |
+
alm.addons.woocommerce_classes = {};
|
988 |
+
alm.addons.woocommerce_classes.container = alm.localize.woocommerce.container;
|
989 |
+
alm.addons.woocommerce_classes.products = alm.localize.woocommerce.products;
|
990 |
+
alm.addons.woocommerce_classes.results = alm.localize.woocommerce.results;
|
991 |
+
alm.addons.woocommerce_results_text = document.querySelectorAll(alm.addons.woocommerce_classes.results);
|
992 |
+
alm.addons.woocommerce_settings = alm.localize.woocommerce.settings;
|
993 |
+
alm.page = parseInt(alm.page) + alm.addons.woocommerce_paged;
|
994 |
+
}
|
995 |
|
996 |
+
// Cache add-on
|
997 |
+
alm.addons.cache = alm.listing.dataset.cache;
|
998 |
+
alm.addons.cache = alm.addons.cache === undefined ? false : alm.addons.cache;
|
999 |
+
if (alm.addons.cache === 'true') {
|
1000 |
+
alm.addons.cache_id = alm.listing.dataset.cacheId;
|
1001 |
+
alm.addons.cache_path = alm.listing.dataset.cachePath;
|
1002 |
+
alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
1003 |
+
alm.addons.cache_logged_in = alm.addons.cache_logged_in === undefined ? false : alm.addons.cache_logged_in;
|
1004 |
+
}
|
1005 |
|
1006 |
+
// CTA add-on
|
1007 |
+
alm.addons.cta = alm.listing.dataset.cta;
|
1008 |
+
if (alm.addons.cta === 'true') {
|
1009 |
+
alm.addons.cta_position = alm.listing.dataset.ctaPosition;
|
1010 |
+
alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
|
1011 |
+
alm.addons.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
1012 |
+
}
|
1013 |
|
1014 |
+
// Nextpage add-on
|
1015 |
+
alm.addons.nextpage = alm.listing.dataset.nextpage;
|
1016 |
+
if (alm.addons.nextpage === 'true') {
|
1017 |
+
alm.addons.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
1018 |
+
alm.addons.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
1019 |
+
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
1020 |
+
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
1021 |
+
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
1022 |
+
}
|
1023 |
|
1024 |
+
// Single Posts add-on
|
1025 |
+
alm.addons.single_post = alm.listing.dataset.singlePost;
|
1026 |
+
if (alm.addons.single_post === 'true') {
|
1027 |
+
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
1028 |
+
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
1029 |
+
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
1030 |
+
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
1031 |
+
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
1032 |
+
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
|
1033 |
+
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
|
1034 |
+
}
|
1035 |
|
1036 |
+
// Comments add-on
|
1037 |
+
alm.addons.comments = alm.listing.dataset.comments;
|
1038 |
+
if (alm.addons.comments === 'true') {
|
1039 |
+
alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
1040 |
+
alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
|
1041 |
+
alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;
|
1042 |
+
alm.addons.comments_type = alm.listing.dataset.comments_type;
|
1043 |
+
alm.addons.comments_style = alm.listing.dataset.comments_style;
|
1044 |
+
alm.addons.comments_template = alm.listing.dataset.comments_template;
|
1045 |
+
alm.addons.comments_callback = alm.listing.dataset.comments_callback;
|
1046 |
+
}
|
1047 |
|
1048 |
+
alm.addons.tabs = alm.listing.dataset.tabs;
|
|
|
1049 |
|
1050 |
+
alm.addons.filters = alm.listing.dataset.filters;
|
1051 |
|
1052 |
+
alm.addons.seo = alm.listing.dataset.seo;
|
1053 |
|
1054 |
+
// Preloaded
|
1055 |
+
alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
1056 |
+
alm.addons.preloaded_amount = alm.listing.dataset.preloadedAmount ? alm.listing.dataset.preloadedAmount : 0;
|
1057 |
+
alm.is_preloaded = alm.listing.dataset.isPreloaded === 'true' ? true : false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1058 |
|
1059 |
+
// Users
|
1060 |
+
alm.addons.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
|
1061 |
+
if (alm.addons.users) {
|
1062 |
+
// Override paging params for users
|
1063 |
+
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
1064 |
+
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
1065 |
+
}
|
1066 |
|
1067 |
+
// Extension Shortcode Params
|
1068 |
+
alm.extensions.restapi = alm.listing.dataset.restapi; // REST API
|
1069 |
+
alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
1070 |
+
alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
1071 |
+
alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
1072 |
+
alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
1073 |
+
alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1074 |
|
1075 |
+
alm.extensions.acf = alm.listing.dataset.acf; // ACF
|
1076 |
+
alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
|
1077 |
+
alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
|
1078 |
+
alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
|
1079 |
+
alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
|
1080 |
+
alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
|
1081 |
+
// if field type, name or post ID is empty
|
1082 |
+
if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {
|
1083 |
+
alm.extensions.acf = false;
|
1084 |
+
}
|
1085 |
|
1086 |
+
// Term Query
|
1087 |
+
alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
|
1088 |
+
alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
|
1089 |
+
alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
|
1090 |
+
alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
|
1091 |
+
alm.extensions.term_query = alm.extensions.term_query === 'true' ? true : false;
|
1092 |
|
1093 |
+
// Paging
|
1094 |
+
alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
|
1095 |
+
if (alm.addons.paging === 'true') {
|
1096 |
+
alm.addons.paging = true;
|
1097 |
+
alm.addons.paging_init = true;
|
1098 |
+
alm.addons.paging_controls = alm.listing.dataset.pagingControls === 'true' ? true : false;
|
1099 |
+
alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
1100 |
+
alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
|
1101 |
+
alm.addons.paging_show_at_most = alm.addons.paging_show_at_most === undefined ? 7 : alm.addons.paging_show_at_most;
|
1102 |
|
1103 |
+
alm.addons.paging_first_label = alm.listing.dataset.pagingFirstLabel;
|
1104 |
+
alm.addons.paging_previous_label = alm.listing.dataset.pagingPreviousLabel;
|
1105 |
+
alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
|
1106 |
+
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
1107 |
|
1108 |
+
alm.addons.paging_scroll = alm.listing.dataset.pagingScroll ? alm.listing.dataset.pagingScroll : false;
|
1109 |
+
alm.addons.paging_scrolltop = alm.listing.dataset.pagingScrolltop ? parseInt(alm.listing.dataset.pagingScrolltop) : 100;
|
1110 |
|
1111 |
+
// If preloaded, pause ALM
|
1112 |
+
alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
|
1113 |
+
} else {
|
1114 |
+
alm.addons.paging = false;
|
1115 |
+
}
|
1116 |
+
/* End Paging */
|
1117 |
|
1118 |
+
/* Filters */
|
1119 |
+
if (alm.addons.filters === 'true') {
|
1120 |
+
alm.addons.filters = true;
|
1121 |
|
1122 |
+
alm.addons.filters_url = alm.listing.dataset.filtersUrl === 'true' ? true : false;
|
1123 |
+
alm.addons.filters_paging = alm.listing.dataset.filtersPaging === 'true' ? true : false;
|
1124 |
+
alm.addons.filters_scroll = alm.listing.dataset.filtersScroll === 'true' ? true : false;
|
1125 |
+
alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop ? alm.listing.dataset.filtersScrolltop : '30';
|
1126 |
+
alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
|
1127 |
+
alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
|
1128 |
+
alm.addons.filters_startpage = 0;
|
1129 |
|
1130 |
+
// Get Paged Querystring Val
|
1131 |
+
var page = (0, _getParameterByName2.default)('pg');
|
1132 |
+
alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;
|
1133 |
|
1134 |
+
// If not Paging add-on
|
1135 |
+
if (!alm.addons.paging && alm.addons.filters_startpage > 0) {
|
1136 |
+
alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;
|
1137 |
+
alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
|
1138 |
+
}
|
1139 |
+
} else {
|
1140 |
+
alm.addons.filters = false;
|
1141 |
+
}
|
1142 |
+
/* End Filters */
|
1143 |
|
1144 |
+
/* TABS */
|
1145 |
+
if (alm.addons.tabs === 'true') {
|
1146 |
+
alm.addons.tabs = true;
|
1147 |
+
alm.addons.tab_template = alm.listing.dataset.tabTemplate ? alm.listing.dataset.tabTemplate : '';
|
1148 |
+
alm.addons.tab_onload = alm.listing.dataset.tabOnload ? alm.listing.dataset.tabOnload : '';
|
1149 |
+
alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl ? alm.listing.dataset.tabsRestUrl : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1150 |
|
1151 |
+
// Locate active template (deeplinks)
|
1152 |
+
if (alm.addons.tab_onload !== '') {
|
1153 |
+
var tabNav = document.querySelector('.alm-tab-nav li [data-tab-url=' + alm.addons.tab_onload + ']');
|
1154 |
+
alm.addons.tab_template = tabNav ? tabNav.dataset.tabTemplate : alm.addons.tab_template;
|
1155 |
+
alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
|
1156 |
+
// Set selected tab
|
1157 |
+
if (tabNav) {
|
1158 |
+
var activeTab = document.querySelector('.alm-tab-nav li .active');
|
1159 |
+
if (activeTab) {
|
1160 |
+
activeTab.classList.remove('active');
|
1161 |
+
}
|
1162 |
+
}
|
1163 |
+
}
|
1164 |
+
} else {
|
1165 |
+
alm.addons.tabs = false;
|
1166 |
+
}
|
1167 |
+
/* End TABS */
|
1168 |
|
1169 |
+
/* REST API */
|
1170 |
+
if (alm.extensions.restapi === 'true') {
|
1171 |
+
alm.extensions.restapi = true;
|
1172 |
+
alm.extensions.restapi_debug = alm.extensions.restapi_debug === undefined ? false : alm.extensions.restapi_debug;
|
1173 |
+
alm.extensions.restapi = alm.extensions.restapi_template_id === '' ? false : alm.extensions.restapi;
|
1174 |
+
} else {
|
1175 |
+
alm.extensions.restapi = false;
|
1176 |
+
}
|
1177 |
+
/* End REST API */
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
|
1179 |
+
/* Preloaded */
|
1180 |
+
if (alm.addons.preloaded === 'true') {
|
1181 |
+
// Preloaded Amount
|
1182 |
+
alm.addons.preloaded_amount = alm.addons.preloaded_amount === undefined ? alm.posts_per_page : alm.addons.preloaded_amount;
|
1183 |
+
// Disable ALM if total_posts is less than or equal to preloaded_amount
|
1184 |
+
if (alm.localize && alm.localize.total_posts) {
|
1185 |
+
if (parseInt(alm.localize.total_posts) <= parseInt(alm.addons.preloaded_amount)) {
|
1186 |
+
alm.addons.preloaded_total_posts = alm.localize.total_posts;
|
1187 |
+
alm.disable_ajax = true;
|
1188 |
+
}
|
1189 |
+
}
|
1190 |
+
} else {
|
1191 |
+
alm.addons.preloaded = 'false';
|
1192 |
+
}
|
1193 |
+
/* End Preloaded */
|
1194 |
|
1195 |
+
/* SEO */
|
1196 |
+
alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
|
1197 |
+
alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
|
1198 |
+
alm.is_search = alm.is_search === undefined ? false : alm.is_search;
|
1199 |
+
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
|
|
|
|
|
|
1200 |
|
1201 |
+
alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
|
1202 |
+
alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
|
1203 |
+
alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
|
1204 |
+
alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
|
1205 |
+
alm.start_page = alm.listing.dataset.seoStartPage;
|
1206 |
|
1207 |
+
if (alm.start_page) {
|
1208 |
+
alm.addons.seo_scroll = alm.listing.dataset.seoScroll;
|
1209 |
+
alm.addons.seo_scrolltop = alm.listing.dataset.seoScrolltop;
|
1210 |
+
alm.addons.seo_controls = alm.listing.dataset.seoControls;
|
1211 |
+
alm.isPaged = false;
|
1212 |
+
if (alm.start_page > 1) {
|
1213 |
+
alm.isPaged = true; // Is this a paged page > 1 ?
|
1214 |
+
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
1215 |
+
}
|
1216 |
+
if (alm.addons.paging) {
|
1217 |
+
// If paging, reset posts_per_page
|
1218 |
+
alm.posts_per_page = alm.orginal_posts_per_page;
|
1219 |
+
}
|
1220 |
+
} else {
|
1221 |
+
alm.start_page = 1;
|
1222 |
+
}
|
1223 |
+
/* End SEO */
|
1224 |
|
1225 |
+
/* Nextpage */
|
1226 |
+
if (alm.addons.nextpage === 'true') {
|
1227 |
+
alm.addons.nextpage = true;
|
1228 |
+
alm.posts_per_page = 1;
|
1229 |
+
} else {
|
1230 |
+
alm.addons.nextpage = false;
|
1231 |
+
}
|
1232 |
+
if (alm.addons.nextpage_urls === undefined) {
|
1233 |
+
alm.addons.nextpage_urls = 'true';
|
1234 |
+
}
|
1235 |
+
if (alm.addons.nextpage_scroll === undefined) {
|
1236 |
+
alm.addons.nextpage_scroll = 'false:30';
|
1237 |
+
}
|
1238 |
+
if (alm.addons.nextpage_pageviews === undefined) {
|
1239 |
+
alm.addons.nextpage_pageviews = 'true';
|
1240 |
+
}
|
1241 |
+
if (alm.addons.nextpage_post_id === undefined) {
|
1242 |
+
alm.addons.nextpage = false;
|
1243 |
+
alm.addons.nextpage_post_id = null;
|
1244 |
+
}
|
1245 |
+
if (alm.addons.nextpage_startpage === undefined) {
|
1246 |
+
alm.addons.nextpage_startpage = 1;
|
1247 |
+
}
|
1248 |
+
if (alm.addons.nextpage_startpage > 1) {
|
1249 |
+
alm.isPaged = true;
|
1250 |
+
}
|
1251 |
+
/* End Nextpage */
|
1252 |
|
1253 |
+
/* Single Post */
|
1254 |
+
if (alm.addons.single_post === 'true') {
|
1255 |
+
alm.addons.single_post = true;
|
1256 |
+
alm.addons.single_post_permalink = '';
|
1257 |
+
alm.addons.single_post_title = '';
|
1258 |
+
alm.addons.single_post_slug = '';
|
1259 |
+
} else {
|
1260 |
+
alm.addons.single_post = false;
|
1261 |
+
}
|
1262 |
+
if (alm.addons.single_post_id === undefined) {
|
1263 |
+
alm.addons.single_post_id = '';
|
1264 |
+
alm.addons.single_post_init_id = '';
|
1265 |
+
}
|
1266 |
+
alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
|
1267 |
+
alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
|
1268 |
+
alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
|
1269 |
+
alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
|
1270 |
+
alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
|
1271 |
+
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
1272 |
+
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
1273 |
+
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
1274 |
+
alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
1275 |
+
alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
1276 |
+
alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
1277 |
+
alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
1278 |
+
alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
|
1279 |
+
/* End Single Post */
|
1280 |
|
1281 |
+
/* Pause */
|
1282 |
+
if (alm.pause === undefined || alm.addons.seo && alm.start_page > 1) {
|
1283 |
+
// SEO only
|
1284 |
+
alm.pause = false;
|
1285 |
+
}
|
1286 |
+
if (alm.addons.preloaded === 'true' && alm.addons.seo && alm.start_page > 0) {
|
1287 |
+
// SEO + Preloaded
|
1288 |
+
alm.pause = false;
|
1289 |
+
}
|
1290 |
+
if (alm.addons.filters && alm.addons.filters_startpage > 0) {
|
1291 |
+
// Filters
|
1292 |
+
alm.pause = false;
|
1293 |
+
}
|
1294 |
+
if (alm.addons.preloaded === 'true' && alm.addons.paging) {
|
1295 |
+
alm.pause = true;
|
1296 |
+
}
|
1297 |
|
1298 |
+
/* Repeater and Theme Repeater */
|
1299 |
+
alm.repeater = alm.repeater === undefined ? 'default' : alm.repeater;
|
1300 |
+
alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
|
1301 |
|
1302 |
+
/* Max Pages (while scrolling) */
|
1303 |
+
alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
|
1304 |
|
1305 |
+
/* Scroll Distance */
|
1306 |
+
alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance;
|
1307 |
+
alm.scroll_distance_perc = false;
|
1308 |
+
if (alm.scroll_distance.toString().indexOf("%") == -1) {
|
1309 |
+
// Standard scroll_distance
|
1310 |
+
alm.scroll_distance = parseInt(alm.scroll_distance);
|
1311 |
+
} else {
|
1312 |
+
// Percentage scroll_distance
|
1313 |
+
alm.scroll_distance_perc = true;
|
1314 |
+
alm.scroll_distance_orig = parseInt(alm.scroll_distance);
|
1315 |
+
alm.scroll_distance = (0, _getScrollPercentage2.default)(alm);
|
1316 |
+
}
|
1317 |
|
1318 |
+
/* Scroll Container */
|
1319 |
+
alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
|
|
|
|
|
1320 |
|
1321 |
+
/* Transition */
|
1322 |
+
alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1323 |
|
1324 |
+
/* Transition Container Class */
|
1325 |
+
alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
|
1326 |
|
1327 |
+
/* Masonry */
|
1328 |
+
alm.is_masonry_preloaded = false;
|
1329 |
+
if (alm.transition === 'masonry') {
|
1330 |
+
alm.masonry_init = true;
|
1331 |
+
if (alm.msnry) {
|
1332 |
+
alm.msnry.destroy(); // destroy masonry if currently exists
|
1333 |
+
} else {
|
1334 |
+
alm.msnry = '';
|
1335 |
+
}
|
1336 |
+
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
1337 |
+
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
1338 |
+
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
1339 |
+
alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
|
1340 |
+
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
1341 |
+
alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
|
1342 |
+
alm.transition_container = false;
|
1343 |
+
alm.images_loaded = false;
|
1344 |
+
alm.is_masonry_preloaded = alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
|
1345 |
+
}
|
1346 |
|
1347 |
+
/* Scroll */
|
1348 |
+
if (alm.listing.dataset.scroll === undefined) {
|
1349 |
+
alm.scroll = true;
|
1350 |
+
} else if (alm.listing.dataset.scroll === 'false') {
|
1351 |
+
alm.scroll = false;
|
1352 |
+
} else {
|
1353 |
+
alm.scroll = true;
|
1354 |
+
}
|
1355 |
|
1356 |
+
/* Transition Container */
|
1357 |
+
alm.transition_container = alm.transition_container === undefined || alm.transition_container === 'true' ? true : false;
|
1358 |
|
1359 |
+
/* Button Labels */
|
1360 |
+
alm.button_label = alm.button_label === undefined ? 'Older Posts' : alm.button_label;
|
1361 |
+
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
|
|
|
|
1362 |
|
1363 |
+
/* Paging */
|
1364 |
+
if (alm.addons.paging) {
|
1365 |
+
alm.main.classList.add('loading'); // add loading class to main container
|
1366 |
+
} else {
|
1367 |
+
var almChildren = el.childNodes; // Get child nodes of instance [nodeList]
|
1368 |
+
if (almChildren) {
|
1369 |
+
var almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
1370 |
|
1371 |
+
// Filter array to find the `.alm-btn-wrap` div
|
1372 |
+
var btnWrap = almChildArray.filter(function (element) {
|
1373 |
+
if (!element.classList) {
|
1374 |
+
// If not element (#text node)
|
1375 |
+
return false;
|
|
|
|
|
|
|
1376 |
}
|
1377 |
+
return element.classList.contains('alm-btn-wrap');
|
1378 |
+
});
|
1379 |
+
alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
1380 |
+
} else {
|
1381 |
+
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
1382 |
+
}
|
1383 |
|
1384 |
+
// Reset button state
|
1385 |
+
alm.button.disabled = false;
|
1386 |
+
alm.button.style.display = '';
|
1387 |
+
}
|
1388 |
|
1389 |
+
// Results Text
|
1390 |
+
// Render "Showing x of y results" text.
|
1391 |
+
// If woocommerce, get the default woocommerce results block
|
1392 |
+
if (alm.integration.woocommerce) {
|
1393 |
+
alm.resultsText = document.querySelectorAll('.woocommerce-result-count');
|
1394 |
+
if (alm.resultsText.length < 1) {
|
1395 |
+
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
1396 |
+
}
|
1397 |
+
} else {
|
1398 |
+
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
1399 |
+
}
|
1400 |
+
if (alm.resultsText) {
|
1401 |
+
alm.resultsText.forEach(function (results) {
|
1402 |
+
results.setAttribute('aria-live', 'polite');
|
1403 |
+
results.setAttribute('aria-atomic', 'true');
|
1404 |
+
});
|
1405 |
+
} else {
|
1406 |
+
alm.resultsText = false;
|
1407 |
+
}
|
1408 |
|
1409 |
+
// Table of Contents
|
1410 |
+
// Render 1, 2, 3 etc. when pages are loaded
|
1411 |
+
alm.tableofcontents = document.querySelector('.alm-toc');
|
1412 |
+
if (alm.tableofcontents) {
|
1413 |
+
alm.tableofcontents.setAttribute('aria-live', 'polite');
|
1414 |
+
alm.tableofcontents.setAttribute('aria-atomic', 'true');
|
1415 |
+
} else {
|
1416 |
+
alm.tableofcontents = false;
|
1417 |
+
}
|
1418 |
|
1419 |
+
/**
|
1420 |
+
* LoadPosts()
|
1421 |
+
* The function to get posts via Ajax
|
1422 |
+
* @since 2.0.0
|
1423 |
+
*/
|
|
|
1424 |
|
1425 |
+
alm.AjaxLoadMore.loadPosts = function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1426 |
|
1427 |
+
if (typeof almOnChange === 'function') {
|
1428 |
+
window.almOnChange(alm);
|
1429 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1430 |
|
1431 |
+
(0, _placeholder.showPlaceholder)(alm);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1432 |
|
1433 |
+
if (!alm.disable_ajax) {
|
1434 |
+
// Check for ajax blocker
|
1435 |
+
if (!alm.addons.paging) {
|
1436 |
+
alm.button.classList.add('loading');
|
1437 |
+
if (alm.button_loading_label !== false) {
|
1438 |
+
alm.button.innerHTML = alm.button_loading_label;
|
|
|
|
|
1439 |
}
|
1440 |
+
}
|
1441 |
+
alm.main.classList.add('alm-loading');
|
1442 |
+
alm.loading = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1443 |
|
1444 |
+
if (alm.addons.cache === 'true' && !alm.addons.cache_logged_in) {
|
1445 |
+
// Cache
|
1446 |
+
var cache_page = (0, _getCacheUrl2.default)(alm);
|
1447 |
+
if (cache_page) {
|
1448 |
|
1449 |
+
// Load `.html` page
|
1450 |
+
_axios2.default.get(cache_page).then(function (response) {
|
1451 |
+
// Exists
|
1452 |
+
alm.AjaxLoadMore.success(response.data, true);
|
1453 |
+
}).catch(function (error) {
|
1454 |
+
// Error || Page does not yet exist
|
1455 |
+
alm.AjaxLoadMore.ajax('standard');
|
1456 |
+
});
|
1457 |
} else {
|
1458 |
+
// Standard ALM query
|
1459 |
+
alm.AjaxLoadMore.ajax('standard');
|
|
|
|
|
1460 |
}
|
1461 |
+
} else {
|
1462 |
+
// Standard ALM query
|
1463 |
+
alm.AjaxLoadMore.ajax('standard');
|
1464 |
}
|
1465 |
+
}
|
1466 |
+
};
|
1467 |
|
1468 |
+
/* ajax()
|
1469 |
+
* Ajax Load Moe Ajax function
|
1470 |
+
*
|
1471 |
+
* @param queryType The type of Ajax request (standard/totalposts)
|
1472 |
+
* @since 2.6.0
|
1473 |
+
*/
|
|
|
|
|
1474 |
|
1475 |
+
alm.AjaxLoadMore.ajax = function (queryType) {
|
|
|
|
|
|
|
1476 |
|
1477 |
+
// Default ALM action
|
1478 |
+
var action = 'alm_get_posts';
|
|
|
|
|
|
|
|
|
|
|
1479 |
|
1480 |
+
// ACF Params
|
1481 |
+
alm.acf_array = '';
|
1482 |
+
if (alm.extensions.acf) {
|
1483 |
+
// Custom query for the Repeater / Gallery / Flexible Content field types
|
1484 |
+
if (alm.extensions.acf_field_type !== 'relationship') {
|
1485 |
+
action = 'alm_acf';
|
1486 |
+
}
|
1487 |
+
alm.acf_array = {
|
1488 |
+
'acf': 'true',
|
1489 |
+
'post_id': alm.extensions.acf_post_id,
|
1490 |
+
'field_type': alm.extensions.acf_field_type,
|
1491 |
+
'field_name': alm.extensions.acf_field_name,
|
1492 |
+
'parent_field_name': alm.extensions.acf_parent_field_name
|
1493 |
+
};
|
1494 |
+
}
|
1495 |
|
1496 |
+
// Term Query Params
|
1497 |
+
alm.term_query_array = '';
|
1498 |
+
if (alm.extensions.term_query) {
|
1499 |
+
action = 'alm_get_terms';
|
1500 |
+
alm.term_query_array = {
|
1501 |
+
'term_query': 'true',
|
1502 |
+
'taxonomy': alm.extensions.term_query_taxonomy,
|
1503 |
+
'hide_empty': alm.extensions.term_query_hide_empty,
|
1504 |
+
'number': alm.extensions.term_query_number
|
1505 |
+
};
|
1506 |
+
}
|
1507 |
|
1508 |
+
// Nextpage Params
|
1509 |
+
alm.nextpage_array = '';
|
1510 |
+
if (alm.addons.nextpage) {
|
1511 |
+
action = 'alm_nextpage';
|
1512 |
+
alm.nextpage_array = {
|
1513 |
+
'nextpage': 'true',
|
1514 |
+
'urls': alm.addons.nextpage_urls,
|
1515 |
+
'scroll': alm.addons.nextpage_scroll,
|
1516 |
+
'pageviews': alm.addons.nextpage_pageviews,
|
1517 |
+
'post_id': alm.addons.nextpage_post_id,
|
1518 |
+
'startpage': alm.addons.nextpage_startpage
|
1519 |
+
};
|
1520 |
+
}
|
1521 |
|
1522 |
+
// Previous Post Params
|
1523 |
+
alm.single_post_array = '';
|
1524 |
+
if (alm.addons.single_post) {
|
1525 |
+
alm.single_post_array = {
|
1526 |
+
'single_post': 'true',
|
1527 |
+
'id': alm.addons.single_post_id,
|
1528 |
+
'slug': alm.addons.single_post_slug
|
1529 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1530 |
}
|
1531 |
|
1532 |
+
// Comment Params
|
1533 |
+
alm.comments_array = '';
|
1534 |
+
if (alm.addons.comments === 'true') {
|
1535 |
+
action = 'alm_comments';
|
1536 |
+
alm.posts_per_page = alm.addons.comments_per_page;
|
1537 |
+
alm.comments_array = {
|
1538 |
+
'comments': 'true',
|
1539 |
+
'post_id': alm.addons.comments_post_id,
|
1540 |
+
'per_page': alm.addons.comments_per_page,
|
1541 |
+
'type': alm.addons.comments_type,
|
1542 |
+
'style': alm.addons.comments_style,
|
1543 |
+
'template': alm.addons.comments_template,
|
1544 |
+
'callback': alm.addons.comments_callback
|
1545 |
+
};
|
1546 |
+
}
|
|
|
|
|
|
|
1547 |
|
1548 |
+
// Users Params
|
1549 |
+
alm.users_array = '';
|
1550 |
+
if (alm.addons.users) {
|
1551 |
+
action = 'alm_users';
|
1552 |
+
alm.users_array = {
|
1553 |
+
'users': 'true',
|
1554 |
+
'role': alm.listing.dataset.usersRole,
|
1555 |
+
'include': alm.listing.dataset.usersInclude,
|
1556 |
+
'exclude': alm.listing.dataset.usersExclude,
|
1557 |
+
'per_page': alm.posts_per_page,
|
1558 |
+
'order': alm.listing.dataset.usersOrder,
|
1559 |
+
'orderby': alm.listing.dataset.usersOrderby
|
1560 |
+
};
|
1561 |
+
}
|
1562 |
|
1563 |
+
// CTA Params
|
1564 |
+
alm.cta_array = '';
|
1565 |
+
if (alm.addons.cta === 'true') {
|
1566 |
+
alm.cta_array = {
|
1567 |
+
'cta': 'true',
|
1568 |
+
'cta_position': alm.addons.cta_position,
|
1569 |
+
'cta_repeater': alm.addons.cta_repeater,
|
1570 |
+
'cta_theme_repeater': alm.addons.cta_theme_repeater
|
1571 |
+
};
|
1572 |
+
}
|
1573 |
|
1574 |
+
// REST API
|
1575 |
+
if (alm.extensions.restapi) {
|
1576 |
+
alm.AjaxLoadMore.restapi(alm, action, queryType);
|
1577 |
+
}
|
1578 |
+
// Tabs
|
1579 |
+
else if (alm.addons.tabs) {
|
1580 |
+
alm.AjaxLoadMore.tabs(alm);
|
1581 |
+
}
|
1582 |
+
// Standard ALM
|
1583 |
+
else {
|
1584 |
+
alm.AjaxLoadMore.adminajax(alm, action, queryType);
|
1585 |
}
|
1586 |
+
};
|
1587 |
|
1588 |
+
/**
|
1589 |
+
* adminajax
|
1590 |
+
* Send request to the admin-ajax.php
|
1591 |
+
*
|
1592 |
+
* @param {*} alm | ALm object
|
1593 |
+
* @param {*} action | Ajax action
|
1594 |
+
* @param {*} queryType
|
1595 |
+
* @since 5.0.0
|
1596 |
+
*/
|
1597 |
+
alm.AjaxLoadMore.adminajax = function (alm, action, queryType) {
|
1598 |
|
1599 |
+
if (alm.page != 1 && !alm.addons.paging) {
|
1600 |
+
alm.button.classList.add('loading');
|
|
|
|
|
|
|
|
|
|
|
|
|
1601 |
}
|
1602 |
|
1603 |
+
// Axios Interceptor for nested data objects
|
1604 |
+
_axios2.default.interceptors.request.use(function (config) {
|
1605 |
+
config.paramsSerializer = function (params) {
|
1606 |
+
// Qs is already included in the Axios package
|
1607 |
+
return qs.stringify(params, {
|
1608 |
+
arrayFormat: 'brackets',
|
1609 |
+
encode: false
|
1610 |
+
});
|
1611 |
+
};
|
1612 |
+
return config;
|
1613 |
+
});
|
1614 |
|
1615 |
+
// Get Ajax URL
|
1616 |
+
var ajaxURL = alm_localize.ajaxurl;
|
1617 |
|
1618 |
+
// Get data params
|
1619 |
+
var params = queryParams.almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js
|
1620 |
|
1621 |
|
1622 |
+
// Single Posts Add-on
|
1623 |
+
// If has `single_post_target`, adjust the Ajax URL to the post URL.
|
1624 |
+
if (alm.addons.single_post && alm.addons.single_post_target) {
|
1625 |
+
ajaxURL = alm.addons.single_post_permalink;
|
1626 |
+
params = '';
|
1627 |
}
|
1628 |
|
1629 |
+
// WooCommerce Add-on
|
1630 |
+
if (alm.addons.woocommerce) {
|
1631 |
+
ajaxURL = (0, _woocommerce.wooGetURL)(alm);
|
1632 |
+
params = '';
|
1633 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1634 |
|
1635 |
+
// Send HTTP request via axios
|
1636 |
+
_axios2.default.get(ajaxURL, { params: params }).then(function (response) {
|
1637 |
|
1638 |
+
// Success
|
1639 |
+
var data = '';
|
1640 |
|
1641 |
+
if (alm.addons.single_post && alm.addons.single_post_target) {
|
1642 |
+
// Single Posts
|
1643 |
+
data = (0, _singleposts.singlePostHTML)(response, alm.addons.single_post_target);
|
1644 |
+
(0, _singleposts.singlePostCache)(alm, data.html);
|
1645 |
+
} else if (alm.addons.woocommerce) {
|
1646 |
+
// WooCommerce
|
1647 |
+
data = (0, _woocommerce.wooGetContent)(response, alm);
|
1648 |
+
} else {
|
1649 |
+
// Get data from response
|
1650 |
+
data = response.data;
|
1651 |
}
|
1652 |
+
|
1653 |
+
// Standard Query
|
1654 |
+
if (queryType === 'standard') {
|
1655 |
+
alm.AjaxLoadMore.success(data, false);
|
1656 |
+
} else if (queryType === 'totalpages' && alm.addons.paging && alm.addons.nextpage) {
|
1657 |
+
// Next Page and Paging
|
1658 |
+
if (typeof almBuildPagination === 'function') {
|
1659 |
+
window.almBuildPagination(data.totalpages, alm);
|
1660 |
+
}
|
1661 |
+
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
1662 |
+
// Paging
|
1663 |
+
if (typeof almBuildPagination === 'function') {
|
1664 |
+
window.almBuildPagination(data.totalposts, alm);
|
1665 |
+
}
|
1666 |
}
|
1667 |
+
}).catch(function (error) {
|
1668 |
+
|
1669 |
+
// Error
|
1670 |
+
alm.AjaxLoadMore.error(error, 'adminajax');
|
1671 |
+
});
|
1672 |
};
|
1673 |
|
1674 |
/**
|
1675 |
+
* tabs
|
1676 |
+
* Send request to the WP REST API
|
|
|
1677 |
*
|
1678 |
+
* @param {*} alm | ALm object
|
1679 |
+
* @since 5.2.0
|
1680 |
*/
|
1681 |
+
alm.AjaxLoadMore.tabs = function (alm) {
|
1682 |
|
1683 |
+
var alm_rest_url = alm.addons.tabs_resturl + 'ajaxloadmore/tab';
|
1684 |
|
1685 |
+
var params = {
|
1686 |
+
post_id: alm.post_id,
|
1687 |
+
template: alm.addons.tab_template
|
1688 |
|
1689 |
+
// Axios Interceptor for nested data objects
|
1690 |
+
};_axios2.default.interceptors.request.use(function (config) {
|
1691 |
+
config.paramsSerializer = function (params) {
|
1692 |
+
// Qs is already included in the Axios package
|
1693 |
+
return qs.stringify(params, {
|
1694 |
+
arrayFormat: 'brackets',
|
1695 |
+
encode: false
|
1696 |
+
});
|
1697 |
+
};
|
1698 |
+
return config;
|
1699 |
+
});
|
1700 |
|
1701 |
+
// Send Ajax request
|
1702 |
+
_axios2.default.get(alm_rest_url, { params: params }).then(function (response) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1703 |
|
1704 |
+
// Success
|
1705 |
+
var results = response.data; // Get data from response
|
1706 |
+
var html = results.html;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1707 |
|
1708 |
+
// Create object to pass to success()
|
1709 |
+
var obj = {
|
1710 |
+
'html': html,
|
1711 |
+
'meta': {
|
1712 |
+
'postcount': 1,
|
1713 |
+
'totalposts': 1
|
1714 |
+
}
|
1715 |
+
};
|
1716 |
+
alm.AjaxLoadMore.success(obj, false); // Send data
|
1717 |
|
|
|
|
|
1718 |
|
1719 |
+
// Callback to Tabs add-on
|
1720 |
+
if (typeof almTabLoaded === 'function') {
|
1721 |
+
window.almTabLoaded(alm);
|
|
|
|
|
|
|
|
|
1722 |
}
|
1723 |
+
}).catch(function (error) {
|
1724 |
+
// Error
|
1725 |
+
alm.AjaxLoadMore.error(error, 'restapi');
|
1726 |
+
});
|
1727 |
};
|
1728 |
|
1729 |
+
/**
|
1730 |
+
* restapi
|
1731 |
+
* Send request to the WP REST API
|
1732 |
*
|
1733 |
+
* @param {*} alm | ALm object
|
1734 |
+
* @param {*} action | Ajax action
|
1735 |
+
* @param {*} queryType
|
1736 |
+
* @since 5.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1737 |
*/
|
1738 |
+
alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
|
1739 |
|
1740 |
+
var alm_rest_template = wp.template(alm.extensions.restapi_template_id);
|
1741 |
+
var alm_rest_url = alm.extensions.restapi_base_url + '/' + alm.extensions.restapi_namespace + '/' + alm.extensions.restapi_endpoint;
|
1742 |
+
var params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1743 |
|
1744 |
+
// Axios Interceptor for nested data objects
|
1745 |
+
_axios2.default.interceptors.request.use(function (config) {
|
1746 |
+
config.paramsSerializer = function (params) {
|
1747 |
+
// Qs is already included in the Axios package
|
1748 |
+
return qs.stringify(params, {
|
1749 |
+
arrayFormat: 'brackets',
|
1750 |
+
encode: false
|
1751 |
+
});
|
1752 |
+
};
|
1753 |
+
return config;
|
1754 |
+
});
|
1755 |
|
1756 |
+
// Send Ajax request
|
1757 |
+
_axios2.default.get(alm_rest_url, { params: params }).then(function (response) {
|
1758 |
+
// Success
|
1759 |
+
var results = response.data; // Get data from response
|
1760 |
+
var data = '',
|
1761 |
+
html = results.html,
|
1762 |
+
meta = results.meta,
|
1763 |
+
postcount = meta.postcount,
|
1764 |
+
totalposts = meta.totalposts;
|
1765 |
|
1766 |
+
// loop results to get data from each
|
1767 |
+
for (var i = 0; i < html.length; i++) {
|
1768 |
+
var result = html[i];
|
1769 |
+
if (alm.restapi_debug === 'true') {
|
1770 |
+
// If debug
|
1771 |
+
console.log(result);
|
|
|
|
|
|
|
1772 |
}
|
1773 |
+
data += alm_rest_template(result);
|
1774 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1775 |
|
1776 |
+
// Create object to pass to success()
|
1777 |
+
var obj = {
|
1778 |
+
'html': data,
|
1779 |
+
'meta': {
|
1780 |
+
'postcount': postcount,
|
1781 |
+
'totalposts': totalposts
|
1782 |
+
}
|
1783 |
+
};
|
1784 |
+
alm.AjaxLoadMore.success(obj, false); // Send data
|
1785 |
+
}).catch(function (error) {
|
1786 |
+
// Error
|
1787 |
+
alm.AjaxLoadMore.error(error, 'restapi');
|
1788 |
});
|
1789 |
};
|
1790 |
|
1791 |
+
// If pagination enabled, run totalposts query
|
1792 |
+
if (alm.addons.paging) {
|
1793 |
+
if (alm.addons.nextpage) {
|
1794 |
+
alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
|
1795 |
+
} else {
|
1796 |
+
alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1797 |
}
|
1798 |
+
}
|
1799 |
|
1800 |
/**
|
1801 |
+
* success
|
1802 |
+
* Success function after loading data
|
1803 |
*
|
1804 |
+
* @param data The results of the Ajax request
|
1805 |
+
* @param is_cache Are results of the Ajax request coming from cache
|
1806 |
+
* @since 2.6.0
|
1807 |
*/
|
1808 |
+
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1809 |
+
var _this = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1810 |
|
1811 |
+
if (alm.addons.single_post) {
|
1812 |
+
// Get previous page data
|
1813 |
+
alm.AjaxLoadMore.getSinglePost();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1814 |
}
|
|
|
1815 |
|
1816 |
+
var isPaged = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1817 |
|
1818 |
+
// Create `.alm-reveal` element
|
1819 |
+
//let reveal = document.createElement('div');
|
1820 |
+
var reveal = alm.container_type === 'table' ? document.createElement('tbody') : document.createElement('div');
|
1821 |
+
alm.el = reveal;
|
1822 |
+
reveal.style.opacity = 0;
|
1823 |
+
reveal.style.height = 0;
|
1824 |
+
reveal.style.outline = 'none';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1825 |
|
1826 |
+
// Paging container
|
1827 |
+
var pagingContent = alm.listing.querySelector('.alm-paging-content');
|
|
|
1828 |
|
1829 |
+
var html, meta, total, totalLoaded;
|
|
|
|
|
|
|
1830 |
|
1831 |
+
if (is_cache) {
|
1832 |
+
// If Cache, do not look for json data as we won't be querying the DB.
|
1833 |
+
html = data;
|
1834 |
+
} else {
|
1835 |
+
// Standard ALM query results
|
1836 |
+
html = data.html;
|
1837 |
+
meta = data.meta;
|
1838 |
+
alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
|
1839 |
+
total = meta.postcount;
|
1840 |
+
alm.totalposts = meta.totalposts;
|
1841 |
+
alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
|
1842 |
+
alm.debug = meta.debug ? meta.debug : '';
|
|
|
|
|
|
|
|
|
|
|
1843 |
}
|
|
|
1844 |
|
1845 |
+
// Set alm.html as plain text return
|
1846 |
+
alm.html = html;
|
|
|
|
|
|
|
|
|
1847 |
|
1848 |
+
// If cache, get the length of the html object
|
1849 |
+
total = is_cache ? (0, _almDomParser2.default)(html).length : total;
|
|
|
1850 |
|
1851 |
+
// First Run Only
|
1852 |
+
if (alm.init) {
|
1853 |
+
// Set Meta
|
1854 |
+
if (meta) {
|
1855 |
+
alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0;
|
1856 |
+
}
|
1857 |
+
// Paging
|
1858 |
+
if (alm.addons.paging && total > 0) {
|
1859 |
+
// Add paging containers and content
|
1860 |
+
alm.AjaxLoadMore.pagingInit(html, 'alm-reveal');
|
1861 |
+
}
|
1862 |
+
// ALM Empty
|
1863 |
+
if (total === 0) {
|
|
|
|
|
|
|
|
|
|
|
1864 |
if (alm.addons.paging) {
|
1865 |
+
if (typeof almPagingEmpty === 'function') {
|
1866 |
+
window.almPagingEmpty(alm);
|
|
|
1867 |
}
|
1868 |
}
|
1869 |
+
if (typeof almEmpty === 'function') {
|
1870 |
+
window.almEmpty(alm);
|
1871 |
}
|
1872 |
+
if (alm.no_results) {
|
1873 |
+
setTimeout(function () {
|
1874 |
+
(0, _noResults2.default)(alm.content, alm.no_results);
|
1875 |
+
}, alm.speed + 10);
|
1876 |
+
}
|
1877 |
+
}
|
1878 |
|
1879 |
+
// isPaged
|
1880 |
+
if (alm.isPaged) {
|
1881 |
+
// Reset the posts_per_page parameter
|
1882 |
+
alm.posts_per_page = alm.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage;
|
1883 |
+
// SEO add-on
|
1884 |
+
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
1885 |
+
// Filters add-on
|
1886 |
+
if (alm.addons.filters) {
|
1887 |
+
if (alm.addons.filters_startpage > 0) {
|
1888 |
+
alm.page = alm.addons.filters_startpage - 1; // Set new page #
|
1889 |
+
alm.posts_per_page = alm.listing.dataset.postsPerPage; // Reset `filters-startpage` data after the first run
|
1890 |
+
}
|
1891 |
+
}
|
1892 |
+
}
|
1893 |
+
}
|
1894 |
|
1895 |
+
/*
|
1896 |
+
* Display alm_debug results
|
1897 |
+
*/
|
1898 |
+
(0, _almDebug2.default)(alm);
|
|
|
1899 |
|
1900 |
+
/*
|
1901 |
+
* Set localized variables and Results Text
|
1902 |
+
*/
|
1903 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
1904 |
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
1905 |
+
while (1) {
|
1906 |
+
switch (_context.prev = _context.next) {
|
1907 |
+
case 0:
|
1908 |
+
_context.next = 2;
|
1909 |
+
return (0, _setLocalizedVars2.default)(alm);
|
1910 |
|
1911 |
+
case 2:
|
1912 |
+
case 'end':
|
1913 |
+
return _context.stop();
|
1914 |
+
}
|
1915 |
+
}
|
1916 |
+
}, _callee, _this);
|
1917 |
+
}))();
|
1918 |
|
1919 |
+
/*
|
1920 |
+
* Render results
|
1921 |
+
*/
|
|
|
|
|
1922 |
|
1923 |
+
if (total > 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
1924 |
|
1925 |
+
// We have results!
|
|
|
|
|
|
|
1926 |
|
1927 |
+
if (!alm.addons.paging) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1928 |
|
1929 |
+
if (alm.addons.single_post) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1930 |
|
1931 |
+
// Single Posts
|
1932 |
+
reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
|
1933 |
+
reveal.dataset.url = alm.addons.single_post_permalink;
|
1934 |
+
reveal.dataset.page = alm.page;
|
1935 |
+
reveal.dataset.id = alm.addons.single_post_id;
|
1936 |
+
reveal.dataset.title = alm.addons.single_post_title;
|
1937 |
+
reveal.innerHTML = alm.html;
|
1938 |
+
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1939 |
|
1940 |
+
if (!alm.transition_container) {
|
1941 |
+
// No transition container
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1942 |
|
1943 |
+
alm.el = alm.html;
|
1944 |
+
reveal = alm.container_type === 'table' ? (0, _tableWrap2.default)(alm.html) : (0, _stripEmptyNodes2.default)((0, _almDomParser2.default)(alm.html, 'text/html'));
|
1945 |
+
} else {
|
1946 |
+
// Standard container
|
|
|
1947 |
|
1948 |
+
var pagenum = void 0;
|
1949 |
+
var querystring = window.location.search;
|
1950 |
+
var seo_class = alm.addons.seo ? ' alm-seo' : '';
|
1951 |
+
var filters_class = alm.addons.filters ? ' alm-filters' : '';
|
1952 |
+
var preloaded_class = alm.is_preloaded ? ' alm-preloaded' : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1953 |
|
1954 |
+
// Init, SEO and Filter Paged
|
1955 |
+
if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
|
1956 |
+
// loop through items and break into separate .alm-reveal divs for paging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1957 |
|
1958 |
+
var return_data = [];
|
1959 |
+
var container_array = [];
|
1960 |
+
var posts_per_page = parseInt(alm.posts_per_page);
|
1961 |
+
var pages = Math.ceil(total / posts_per_page);
|
1962 |
+
isPaged = true;
|
1963 |
|
1964 |
+
// Call to Actions
|
1965 |
+
if (alm.addons.cta === 'true') {
|
1966 |
+
posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
|
1967 |
+
pages = Math.ceil(total / posts_per_page); // Update pages var with new posts_per_page
|
1968 |
+
total = pages + total; // Get new total w/ CTAs added
|
1969 |
+
}
|
1970 |
|
1971 |
+
// Parse returned HTML and strip empty nodes
|
1972 |
+
var _data = (0, _stripEmptyNodes2.default)((0, _almDomParser2.default)(alm.html, 'text/html'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1973 |
|
1974 |
+
// Slice data array into individual pages (array)
|
1975 |
+
for (var i = 0; i < total; i += posts_per_page) {
|
1976 |
+
return_data.push(_data.slice(i, posts_per_page + i));
|
1977 |
+
}
|
1978 |
|
1979 |
+
// Loop return_data array to build .alm-reveal containers
|
1980 |
+
for (var k = 0; k < return_data.length; k++) {
|
|
|
|
|
|
|
|
|
|
|
1981 |
|
1982 |
+
var p = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1983 |
+
var alm_reveal = document.createElement('div');
|
|
|
|
|
1984 |
|
1985 |
+
if (k > 0 || alm.addons.preloaded === 'true') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1986 |
|
1987 |
+
pagenum = k + 1 + p; // > Paged
|
|
|
|
|
|
|
1988 |
|
1989 |
+
if (alm.addons.seo) {
|
1990 |
+
// SEO
|
1991 |
+
alm_reveal = (0, _seo.createSEOAttributes)(alm, alm_reveal, querystring, seo_class, pagenum);
|
1992 |
+
}
|
|
|
1993 |
|
1994 |
+
if (alm.addons.filters) {
|
1995 |
+
// Filters
|
1996 |
+
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1997 |
+
alm_reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, pagenum);
|
1998 |
+
alm_reveal.dataset.page = pagenum;
|
1999 |
+
}
|
2000 |
+
} else {
|
|
|
|
|
2001 |
|
2002 |
+
// First Page
|
2003 |
+
if (alm.addons.seo) {
|
2004 |
+
// SEO
|
2005 |
+
alm_reveal = (0, _seo.createSEOAttributes)(alm, alm_reveal, querystring, seo_class, 1);
|
2006 |
+
}
|
2007 |
+
if (alm.addons.filters) {
|
2008 |
+
// Filters
|
2009 |
+
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
2010 |
+
alm_reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, 0);
|
2011 |
+
alm_reveal.dataset.page = '1';
|
2012 |
+
}
|
2013 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014 |
|
2015 |
+
// Append children to `.alm-reveal` element
|
2016 |
+
(0, _almAppendChildren2.default)(alm_reveal, return_data[k]);
|
|
|
|
|
|
|
2017 |
|
2018 |
+
// Run srcSet polyfill
|
2019 |
+
(0, _srcsetPolyfill2.default)(alm_reveal, alm.ua);
|
|
|
|
|
|
|
2020 |
|
2021 |
+
// Push alm_reveal elements into container_array
|
2022 |
+
container_array.push(alm_reveal);
|
2023 |
+
}
|
2024 |
|
2025 |
+
// Set opacity and height of .alm-listing div to allow for fadein.
|
2026 |
+
alm.listing.style.opacity = 0;
|
2027 |
+
alm.listing.style.height = 0;
|
2028 |
|
2029 |
+
// Append container_array to `.alm-listing`
|
2030 |
+
(0, _almAppendChildren2.default)(alm.listing, container_array);
|
|
|
2031 |
|
2032 |
+
reveal = alm.listing;
|
2033 |
+
alm.el = reveal;
|
2034 |
+
}
|
2035 |
+
// End Init & SEO
|
|
|
|
|
2036 |
|
2037 |
+
else {
|
|
|
|
|
2038 |
|
2039 |
+
// Preloaded OR SEO (and Paged)
|
2040 |
+
if (alm.addons.seo && alm.page > 0 || alm.addons.preloaded === 'true') {
|
|
|
|
|
|
|
2041 |
|
2042 |
+
var p2 = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
|
|
2043 |
|
2044 |
+
// SEO [Paged]
|
2045 |
+
pagenum = alm.page + 1 + p2;
|
2046 |
|
2047 |
+
if (alm.addons.seo) {
|
2048 |
+
// SEO
|
2049 |
+
reveal = (0, _seo.createSEOAttributes)(alm, reveal, querystring, seo_class, pagenum);
|
2050 |
+
} else if (alm.addons.filters) {
|
2051 |
+
// Filters
|
2052 |
+
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
2053 |
+
reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, pagenum);
|
2054 |
+
reveal.dataset.page = pagenum;
|
2055 |
+
} else {
|
2056 |
+
// Basic ALM
|
2057 |
+
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
2058 |
+
}
|
2059 |
+
} else if (alm.addons.filters) {
|
2060 |
|
2061 |
+
// Filters
|
2062 |
+
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
2063 |
+
reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, parseInt(alm.page) + 1);
|
2064 |
+
reveal.dataset.page = parseInt(alm.page) + 1;
|
2065 |
+
} else {
|
2066 |
|
2067 |
+
if (alm.addons.seo) {
|
2068 |
+
// SEO [Page 1]
|
2069 |
+
reveal = (0, _seo.createSEOAttributes)(alm, reveal, querystring, seo_class, 1);
|
2070 |
+
} else {
|
2071 |
+
// Basic ALM
|
2072 |
+
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
2073 |
+
}
|
2074 |
+
}
|
2075 |
|
2076 |
+
reveal.innerHTML = alm.html;
|
2077 |
+
}
|
2078 |
+
}
|
2079 |
+
}
|
2080 |
|
2081 |
+
// WooCommerce Add-on
|
2082 |
+
if (alm.addons.woocommerce) {
|
|
|
|
|
|
|
|
|
|
|
|
|
2083 |
|
2084 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
2085 |
+
var nextPageNum, nextPage;
|
2086 |
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
2087 |
+
while (1) {
|
2088 |
+
switch (_context2.prev = _context2.next) {
|
2089 |
+
case 0:
|
2090 |
+
_context2.next = 2;
|
2091 |
+
return (0, _woocommerce.woocommerce)(reveal, alm, data.pageTitle);
|
2092 |
|
2093 |
+
case 2:
|
2094 |
+
nextPageNum = alm.page + 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2095 |
|
2096 |
+
// Set button data attributes
|
|
|
2097 |
|
2098 |
+
alm.button.dataset.page = nextPageNum; // Page
|
2099 |
+
nextPage = alm.addons.woocommerce_paged_urls[nextPageNum - 1]; // URL
|
|
|
|
|
2100 |
|
2101 |
+
alm.button.dataset.url = nextPage ? nextPage : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
2102 |
|
2103 |
+
alm.AjaxLoadMore.transitionEnd();
|
|
|
2104 |
|
2105 |
+
// almComplete
|
2106 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
2107 |
+
window.almComplete(alm);
|
2108 |
+
}
|
2109 |
|
2110 |
+
// ALM Done
|
2111 |
+
if (nextPageNum > parseInt(alm.addons.woocommerce_pages)) {
|
2112 |
+
alm.AjaxLoadMore.triggerDone();
|
2113 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2114 |
|
2115 |
+
case 9:
|
2116 |
+
case 'end':
|
2117 |
+
return _context2.stop();
|
2118 |
+
}
|
2119 |
+
}
|
2120 |
+
}, _callee2, this);
|
2121 |
+
}))().catch(function (e) {
|
2122 |
+
console.log(e);
|
2123 |
+
console.log('There was an error loading woocommerce products');
|
2124 |
+
});
|
2125 |
|
2126 |
+
alm.init = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2127 |
|
2128 |
+
return;
|
2129 |
+
}
|
|
|
|
|
|
|
|
|
2130 |
|
2131 |
+
// Append `reveal` div to ALM Listing container
|
2132 |
+
// Do not append when transtion == masonry OR init and !preloaded
|
2133 |
+
if (alm.transition !== 'masonry' || alm.init && !alm.is_masonry_preloaded) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2134 |
|
2135 |
+
if (!isPaged) {
|
2136 |
|
2137 |
+
if (!alm.transition_container) {
|
2138 |
+
// No transition container
|
2139 |
+
if (alm.images_loaded === 'true') {
|
2140 |
+
imagesLoaded(reveal, function () {
|
2141 |
+
(0, _almAppendChildren2.default)(alm.listing, reveal);
|
2142 |
|
2143 |
+
// Run srcSet polyfill
|
2144 |
+
(0, _srcsetPolyfill2.default)(alm.listing, alm.ua);
|
2145 |
+
});
|
2146 |
+
} else {
|
2147 |
+
(0, _almAppendChildren2.default)(alm.listing, reveal);
|
|
|
|
|
|
|
2148 |
|
2149 |
+
// Run srcSet polyfill
|
2150 |
+
(0, _srcsetPolyfill2.default)(alm.listing, alm.ua);
|
2151 |
+
}
|
2152 |
+
} else {
|
2153 |
+
// Standard container
|
2154 |
+
alm.listing.appendChild(reveal);
|
2155 |
+
}
|
2156 |
+
}
|
2157 |
+
}
|
2158 |
|
2159 |
+
// *****
|
2160 |
+
// Transitions
|
2161 |
+
// *****
|
|
|
2162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2163 |
|
2164 |
+
// Masonry
|
2165 |
+
if (alm.transition === 'masonry') {
|
2166 |
+
alm.el = alm.listing;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2167 |
|
2168 |
+
// Wrap almMasonry in anonymous async/await function
|
2169 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
2170 |
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
2171 |
+
while (1) {
|
2172 |
+
switch (_context3.prev = _context3.next) {
|
2173 |
+
case 0:
|
2174 |
+
_context3.next = 2;
|
2175 |
+
return (0, _masonry2.default)(alm, alm.init, alm_is_filtering);
|
2176 |
|
2177 |
+
case 2:
|
2178 |
+
alm.masonry_init = false;
|
2179 |
+
alm.AjaxLoadMore.triggerWindowResize();
|
2180 |
+
alm.AjaxLoadMore.transitionEnd();
|
2181 |
+
if (typeof almComplete === 'function') {
|
2182 |
+
window.almComplete(alm);
|
2183 |
+
}
|
|
|
2184 |
|
2185 |
+
case 6:
|
2186 |
+
case 'end':
|
2187 |
+
return _context3.stop();
|
2188 |
+
}
|
2189 |
+
}
|
2190 |
+
}, _callee3, this);
|
2191 |
+
}))().catch(function (e) {
|
2192 |
+
console.log('There was an error with ALM Masonry');
|
2193 |
+
});
|
2194 |
+
}
|
2195 |
|
2196 |
+
// None
|
2197 |
+
else if (alm.transition === 'none') {
|
2198 |
+
if (alm.images_loaded === 'true') {
|
2199 |
+
imagesLoaded(reveal, function () {
|
2200 |
+
(0, _fadeIn2.default)(reveal, 0);
|
2201 |
+
alm.AjaxLoadMore.transitionEnd();
|
2202 |
+
});
|
2203 |
+
} else {
|
2204 |
+
(0, _fadeIn2.default)(reveal, 0);
|
2205 |
+
alm.AjaxLoadMore.transitionEnd();
|
2206 |
+
}
|
2207 |
+
}
|
2208 |
|
2209 |
+
// Default(Fade)
|
2210 |
+
else {
|
2211 |
+
if (alm.images_loaded === 'true') {
|
2212 |
+
imagesLoaded(reveal, function () {
|
2213 |
+
if (alm.transition_container) {
|
2214 |
+
(0, _fadeIn2.default)(reveal, alm.speed);
|
2215 |
+
}
|
2216 |
+
alm.AjaxLoadMore.transitionEnd();
|
2217 |
+
});
|
2218 |
+
} else {
|
2219 |
+
if (alm.transition_container) {
|
2220 |
+
(0, _fadeIn2.default)(reveal, alm.speed);
|
2221 |
+
}
|
2222 |
+
alm.AjaxLoadMore.transitionEnd();
|
2223 |
+
}
|
2224 |
+
}
|
2225 |
|
2226 |
+
// TABS - Trigger almTabsSetHeight callback in Tabs add-on
|
2227 |
+
if (alm.addons.tabs && typeof almTabsSetHeight === 'function') {
|
2228 |
+
imagesLoaded(reveal, function () {
|
2229 |
+
(0, _fadeIn2.default)(alm.listing, alm.speed);
|
2230 |
+
setTimeout(function () {
|
2231 |
+
window.almTabsSetHeight(alm);
|
2232 |
+
}, alm.speed);
|
2233 |
+
});
|
2234 |
+
}
|
2235 |
+
} else {
|
2236 |
|
2237 |
+
// Paging
|
2238 |
+
if (!alm.init) {
|
2239 |
+
if (pagingContent) {
|
2240 |
+
(0, _fadeOut2.default)(pagingContent, alm.speed);
|
2241 |
+
pagingContent.style.outline = 'none';
|
2242 |
+
alm.main.classList.remove('alm-loading');
|
|
|
2243 |
|
2244 |
+
setTimeout(function () {
|
2245 |
+
pagingContent.style.opacity = 0;
|
2246 |
+
pagingContent.innerHTML = alm.html;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2247 |
|
2248 |
+
imagesLoaded(pagingContent, function () {
|
2249 |
+
// Delay for effect
|
2250 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
2251 |
+
(0, _fadeIn2.default)(pagingContent, alm.speed);
|
|
|
|
|
2252 |
|
2253 |
+
// Remove opacity on element to fix CSS transition
|
2254 |
+
setTimeout(function () {
|
2255 |
+
pagingContent.style.opacity = '';
|
|
|
|
|
|
|
|
|
2256 |
|
2257 |
+
// Insert Script
|
2258 |
+
_insertScript2.default.init(pagingContent);
|
2259 |
+
}, parseInt(alm.speed) + 10);
|
|
|
|
|
|
|
|
|
2260 |
|
2261 |
+
// Paging addon
|
2262 |
+
if (typeof almOnPagingComplete === 'function') {
|
2263 |
+
window.almOnPagingComplete(alm);
|
2264 |
+
}
|
2265 |
+
});
|
2266 |
+
}, parseInt(alm.speed) + 25);
|
2267 |
+
}
|
2268 |
+
} else {
|
2269 |
+
setTimeout(function () {
|
2270 |
+
alm.main.classList.remove('alm-loading');
|
2271 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
2272 |
+
}, alm.speed);
|
2273 |
+
}
|
2274 |
+
// End Paging
|
2275 |
+
}
|
2276 |
|
2277 |
+
// ALM Loaded, run complete callbacks
|
2278 |
+
imagesLoaded(reveal, function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2279 |
|
2280 |
+
// Nested
|
2281 |
+
alm.AjaxLoadMore.nested(reveal);
|
|
|
|
|
|
|
|
|
|
|
2282 |
|
2283 |
+
// Insert Script
|
2284 |
+
_insertScript2.default.init(alm.el);
|
2285 |
|
2286 |
+
// almComplete
|
2287 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
2288 |
+
window.almComplete(alm);
|
2289 |
+
}
|
|
|
|
|
|
|
|
|
|
|
2290 |
|
2291 |
+
// Filters Add-on Complete
|
2292 |
+
if (alm_is_filtering && alm.addons.filters) {
|
2293 |
+
if (typeof almFiltersAddonComplete === "function") {
|
2294 |
+
// Filters Add-on
|
2295 |
+
window.almFiltersAddonComplete(el);
|
2296 |
+
}
|
2297 |
+
alm_is_filtering = false;
|
2298 |
+
}
|
2299 |
|
2300 |
+
// Tabs Complete
|
2301 |
+
if (alm.addons.tabs) {
|
2302 |
+
// Tabs Complete
|
2303 |
+
if (typeof almTabsComplete === 'function') {
|
2304 |
+
// Standard Filtering
|
2305 |
+
window.almTabsComplete();
|
2306 |
+
}
|
2307 |
+
}
|
2308 |
|
2309 |
+
// Filters onLoad
|
2310 |
+
if (typeof almFiltersOnload === 'function' && alm.init) {
|
2311 |
+
window.almFiltersOnload(alm);
|
2312 |
+
}
|
|
|
|
|
2313 |
|
2314 |
+
// ALM Done
|
2315 |
+
if (!alm.addons.cache) {
|
2316 |
+
// Not Cache & Previous Post
|
2317 |
+
if (alm.posts >= alm.totalposts && !alm.addons.single_post) {
|
2318 |
+
alm.AjaxLoadMore.triggerDone();
|
2319 |
+
}
|
2320 |
+
} else {
|
2321 |
+
// Cache
|
2322 |
+
if (total < alm.posts_per_page) {
|
2323 |
+
alm.AjaxLoadMore.triggerDone();
|
2324 |
+
}
|
2325 |
+
}
|
2326 |
+
// End ALM Done
|
2327 |
+
});
|
2328 |
+
// End ALM Loaded
|
2329 |
+
}
|
2330 |
|
2331 |
+
/*
|
2332 |
+
* No results from Ajax
|
2333 |
+
*/
|
2334 |
+
else {
|
|
|
|
|
2335 |
|
2336 |
+
alm.AjaxLoadMore.noresults();
|
2337 |
+
}
|
2338 |
|
2339 |
+
// Destroy After
|
2340 |
+
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
2341 |
+
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
2342 |
+
currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
|
2343 |
+
if (currentPage == alm.destroy_after) {
|
2344 |
+
// Disable ALM if page = alm.destroy_after val
|
2345 |
+
alm.AjaxLoadMore.destroyed();
|
2346 |
+
}
|
2347 |
+
}
|
2348 |
|
2349 |
+
/*
|
2350 |
+
* Display tableOfContents
|
2351 |
+
*/
|
2352 |
+
(0, _tableofcontents.tableOfContents)(alm, alm.init);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2353 |
|
2354 |
+
// Set Focus for A11y
|
2355 |
+
if (alm.transition !== 'masonry') {
|
2356 |
+
(0, _setFocus2.default)(alm, reveal, total, alm_is_filtering);
|
2357 |
+
}
|
2358 |
|
2359 |
+
// Remove filtering class
|
2360 |
+
if (alm.main.classList.contains('alm-is-filtering')) {
|
2361 |
+
alm.main.classList.remove('alm-is-filtering');
|
2362 |
+
}
|
2363 |
|
2364 |
+
// Set init flag
|
2365 |
+
alm.init = false;
|
2366 |
+
};
|
2367 |
|
2368 |
+
/**
|
2369 |
+
* noresults
|
2370 |
+
* Functions run when no results are returned.
|
2371 |
+
*
|
2372 |
+
* @since 5.3.1
|
2373 |
+
*/
|
2374 |
+
alm.AjaxLoadMore.noresults = function () {
|
|
|
|
|
|
|
|
|
2375 |
|
2376 |
+
if (!alm.addons.paging) {
|
2377 |
+
// Add .done class, reset btn text
|
2378 |
+
setTimeout(function () {
|
2379 |
+
alm.button.classList.remove('loading');
|
2380 |
+
alm.button.classList.add('done');
|
2381 |
+
}, alm.speed);
|
2382 |
+
alm.AjaxLoadMore.resetBtnText();
|
2383 |
+
}
|
2384 |
|
2385 |
+
// almComplete
|
2386 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
2387 |
+
window.almComplete(alm);
|
2388 |
+
}
|
|
|
|
|
2389 |
|
2390 |
+
// Filters Add-on Complete
|
2391 |
+
if (alm_is_filtering && alm.addons.filters) {
|
2392 |
+
if (typeof almFiltersAddonComplete === "function") {
|
2393 |
+
// Filters Add-on
|
2394 |
+
almFiltersAddonComplete(el);
|
2395 |
+
}
|
2396 |
+
alm_is_filtering = false;
|
2397 |
+
}
|
2398 |
|
2399 |
+
// Tabs Complete
|
2400 |
+
if (alm.addons.tabs) {
|
2401 |
+
// Tabs Complete
|
2402 |
+
if (typeof almTabsComplete === 'function') {
|
2403 |
+
// Standard Filtering
|
2404 |
+
almTabsComplete();
|
2405 |
+
}
|
2406 |
+
}
|
2407 |
|
2408 |
+
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
2409 |
+
};
|
|
|
2410 |
|
2411 |
+
/**
|
2412 |
+
* pagingPreloadedInit
|
2413 |
+
* First run for Paging + Preloaded add-ons
|
2414 |
+
* Moves preloaded content into ajax container
|
2415 |
+
*
|
2416 |
+
* @param {data} Results of the Ajax request
|
2417 |
+
* @since 2.11.3
|
2418 |
+
*/
|
2419 |
+
alm.AjaxLoadMore.pagingPreloadedInit = function (data) {
|
2420 |
|
2421 |
+
data = data == null ? '' : data; // Check for null data object
|
2422 |
|
2423 |
+
// Add paging containers and content
|
2424 |
+
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal');
|
|
|
2425 |
|
2426 |
+
if (data === '') {
|
2427 |
+
if (typeof almPagingEmpty === 'function') {
|
2428 |
+
window.almPagingEmpty(alm);
|
2429 |
+
}
|
2430 |
+
if (typeof almEmpty === 'function') {
|
2431 |
+
window.almEmpty(alm);
|
2432 |
+
}
|
2433 |
+
if (alm.no_results) {
|
2434 |
+
(0, _noResults2.default)(alm.content, alm.no_results);
|
2435 |
+
}
|
2436 |
+
}
|
2437 |
+
};
|
2438 |
|
2439 |
+
/**
|
2440 |
+
* pagingNextpageInit
|
2441 |
+
* First run for Paging + Next Page add-ons
|
2442 |
+
* Moves .alm-nextpage content into ajax container
|
2443 |
+
*
|
2444 |
+
* @param {data} Results of Ajax request
|
2445 |
+
* @since 2.14.0
|
2446 |
+
*/
|
2447 |
+
alm.AjaxLoadMore.pagingNextpageInit = function (data) {
|
2448 |
|
2449 |
+
data = data == null ? '' : data; // Check for null data object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2450 |
|
2451 |
+
// Add paging containers and content
|
2452 |
+
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal alm-nextpage');
|
2453 |
|
2454 |
+
// Set up Nextpage Vars
|
2455 |
+
if (typeof almSetNextPageVars === 'function') {
|
2456 |
+
window.almSetNextPageVars(alm); // Next Page Add-on
|
2457 |
+
}
|
2458 |
+
};
|
|
|
2459 |
|
2460 |
+
/**
|
2461 |
+
* pagingInit
|
2462 |
+
* First run for Paging + (Preloaded & Next Page) add-ons. Create required containers.
|
2463 |
+
*
|
2464 |
+
* @param {data} Ajax results
|
2465 |
+
* @param {classes} added classes
|
2466 |
+
* @since 5.0
|
2467 |
+
*/
|
2468 |
+
alm.AjaxLoadMore.pagingInit = function (data) {
|
2469 |
+
var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'alm-reveal';
|
2470 |
|
2471 |
+
data = data == null ? '' : data; // Check for null data object
|
2472 |
|
2473 |
+
// Create `alm-reveal` container
|
2474 |
+
var reveal = document.createElement('div');
|
2475 |
+
reveal.setAttribute('class', classes);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2476 |
|
2477 |
+
// Create `alm-paging-loading` container
|
2478 |
+
var content = document.createElement('div');
|
2479 |
+
content.setAttribute('class', 'alm-paging-content' + alm.tcc);
|
2480 |
+
content.innerHTML = data;
|
2481 |
+
reveal.appendChild(content);
|
|
|
|
|
|
|
2482 |
|
2483 |
+
// Create `alm-paging-content` container
|
2484 |
+
var loader = document.createElement('div');
|
2485 |
+
loader.setAttribute('class', 'alm-paging-loading');
|
2486 |
+
reveal.appendChild(loader);
|
2487 |
|
2488 |
+
// Add div to container
|
2489 |
+
alm.listing.appendChild(reveal);
|
|
|
|
|
|
|
|
|
2490 |
|
2491 |
+
// Get/Set height of .alm-listing div
|
2492 |
+
var styles = window.getComputedStyle(alm.listing);
|
2493 |
+
var pTop = parseInt(styles.getPropertyValue('padding-top').replace('px', ''));
|
2494 |
+
var pBtm = parseInt(styles.getPropertyValue('padding-bottom').replace('px', ''));
|
2495 |
+
var h = reveal.offsetHeight;
|
2496 |
|
2497 |
+
// Set initial `.alm-listing` height
|
2498 |
+
alm.listing.style.height = h + pTop + pBtm + 'px';
|
2499 |
|
2500 |
+
// Insert Script
|
2501 |
+
_insertScript2.default.init(reveal);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2502 |
|
2503 |
+
// Reset button text
|
2504 |
+
alm.AjaxLoadMore.resetBtnText();
|
2505 |
|
2506 |
+
// Delay reveal of paging to avoid positioning issues
|
2507 |
+
setTimeout(function () {
|
2508 |
+
if (typeof almFadePageControls === 'function') {
|
2509 |
+
window.almFadePageControls(alm.btnWrap);
|
|
|
|
|
|
|
|
|
2510 |
}
|
2511 |
+
if (typeof almOnWindowResize === 'function') {
|
2512 |
+
window.almOnWindowResize(alm);
|
2513 |
+
}
|
2514 |
+
// Remove loading class from main container
|
2515 |
+
alm.main.classList.remove('loading');
|
2516 |
+
}, alm.speed);
|
2517 |
+
};
|
2518 |
+
|
2519 |
+
/**
|
2520 |
+
* nested
|
2521 |
+
* Automatically trigger nested ALM instances (Requies `.alm-reveal` container
|
2522 |
+
*
|
2523 |
+
* @param {object} instance
|
2524 |
+
* @since 5.0
|
2525 |
+
*/
|
2526 |
+
alm.AjaxLoadMore.nested = function (reveal) {
|
2527 |
+
if (!reveal || !alm.transition_container) {
|
2528 |
+
return false; // Exit if not `transition_container`
|
2529 |
}
|
2530 |
+
var nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances from jQuery obj
|
2531 |
+
if (nested) {
|
2532 |
+
nested.forEach(function (element) {
|
2533 |
+
window.almInit(element);
|
2534 |
+
});
|
2535 |
}
|
2536 |
+
};
|
2537 |
|
2538 |
+
/**
|
2539 |
+
* fetchingPreviousPost
|
2540 |
+
* Get the previous post ID via ajax
|
2541 |
+
*
|
2542 |
+
* @since 2.7.4
|
2543 |
+
*/
|
|
|
2544 |
|
2545 |
+
if (alm.addons.single_post_id) {
|
2546 |
+
alm.fetchingPreviousPost = false;
|
2547 |
+
alm.addons.single_post_init = true;
|
2548 |
+
}
|
2549 |
|
2550 |
+
alm.AjaxLoadMore.getSinglePost = function () {
|
2551 |
|
2552 |
+
var action = 'alm_get_single';
|
2553 |
|
2554 |
+
if (alm.fetchingPreviousPost) {
|
2555 |
+
return false;
|
2556 |
+
}
|
|
|
|
|
|
|
2557 |
|
2558 |
+
alm.fetchingPreviousPost = true;
|
2559 |
|
2560 |
+
// Get admin-ajax.php URL
|
2561 |
+
var ajaxURL = alm_localize.ajaxurl;
|
2562 |
|
2563 |
+
// Get data params
|
2564 |
+
var params = {
|
2565 |
+
id: alm.addons.single_post_id,
|
2566 |
+
initial_id: alm.addons.single_post_init_id,
|
2567 |
+
order: alm.addons.single_post_order,
|
2568 |
+
taxonomy: alm.addons.single_post_taxonomy,
|
2569 |
+
excluded_terms: alm.addons.single_post_excluded_terms,
|
2570 |
+
post_type: alm.post_type,
|
2571 |
+
init: alm.addons.single_post_init,
|
2572 |
+
action: action
|
2573 |
+
};
|
|
|
|
|
2574 |
|
2575 |
+
// Send HTTP request via Axios
|
2576 |
+
_axios2.default.get(ajaxURL, { params: params }).then(function (response) {
|
2577 |
+
// Success
|
2578 |
|
2579 |
+
var data = response.data; // Get data from response
|
|
|
|
|
|
|
|
|
|
|
2580 |
|
2581 |
+
if (data.has_previous_post) {
|
2582 |
+
alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance
|
2583 |
+
alm.addons.single_post_id = data.prev_id;
|
2584 |
+
alm.addons.single_post_permalink = data.prev_permalink;
|
2585 |
+
alm.addons.single_post_title = data.prev_title;
|
2586 |
+
alm.addons.single_post_slug = data.prev_slug;
|
2587 |
+
} else {
|
2588 |
+
if (!data.has_previous_post) {
|
2589 |
+
alm.AjaxLoadMore.triggerDone();
|
2590 |
+
}
|
2591 |
+
}
|
2592 |
+
if (typeof window.almSetSinglePost === 'function') {
|
2593 |
+
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
2594 |
+
}
|
2595 |
+
alm.fetchingPreviousPost = false;
|
2596 |
+
alm.addons.single_post_init = false;
|
2597 |
+
}).catch(function (error) {
|
2598 |
+
// Error
|
2599 |
|
2600 |
+
alm.AjaxLoadMore.error(error, 'getSinglePost');
|
2601 |
+
alm.fetchingPreviousPost = false;
|
2602 |
+
});
|
2603 |
+
};
|
2604 |
|
2605 |
+
/**
|
2606 |
+
* triggerAddons
|
2607 |
+
*
|
2608 |
+
* Triggers various add-on functions (if available) after load complete.
|
2609 |
+
* @since 2.14.0
|
2610 |
+
*/
|
2611 |
+
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
2612 |
+
if (typeof almSetNextPage === 'function') {
|
2613 |
+
// Next Page
|
2614 |
+
window.almSetNextPage(alm);
|
2615 |
+
}
|
2616 |
+
if (typeof almSEO === "function") {
|
2617 |
+
// SEO
|
2618 |
+
window.almSEO(alm, false);
|
2619 |
+
}
|
2620 |
+
if (typeof almWooCommerce === 'function') {
|
2621 |
+
// WooCommerce
|
2622 |
+
window.almWooCommerce(alm);
|
2623 |
+
}
|
2624 |
+
};
|
2625 |
|
2626 |
+
/**
|
2627 |
+
* triggerDone
|
2628 |
+
*
|
2629 |
+
* Fires the almDone() function (if available).
|
2630 |
+
* @since 2.11.3
|
2631 |
+
*/
|
2632 |
+
alm.AjaxLoadMore.triggerDone = function () {
|
2633 |
+
alm.loading = false;
|
2634 |
+
alm.finished = true;
|
2635 |
+
if (!alm.addons.paging) {
|
2636 |
+
alm.button.classList.add('done');
|
2637 |
+
alm.button.disabled = true;
|
2638 |
+
}
|
2639 |
+
if (typeof almDone === 'function') {
|
2640 |
+
// Delay done until animations complete
|
2641 |
+
setTimeout(function () {
|
2642 |
+
window.almDone(alm);
|
2643 |
+
(0, _placeholder.hidePlaceholder)(alm);
|
2644 |
+
}, alm.speed + 10);
|
2645 |
+
}
|
2646 |
+
};
|
2647 |
|
2648 |
+
/**
|
2649 |
+
* resetBtnText
|
2650 |
+
* Resets the loading button text after loading has completed
|
2651 |
+
*
|
2652 |
+
* @since 2.8.4
|
2653 |
+
*/
|
2654 |
+
alm.AjaxLoadMore.resetBtnText = function () {
|
2655 |
+
if (alm.button_loading_label !== false && !alm.addons.paging) {
|
2656 |
+
// Reset button text
|
2657 |
+
alm.button.innerHTML = alm.button_label;
|
2658 |
+
}
|
2659 |
+
};
|
2660 |
|
2661 |
+
/**
|
2662 |
+
* Ajax Error
|
2663 |
+
* Error function after failed data
|
2664 |
+
*
|
2665 |
+
* @since 2.6.0
|
2666 |
+
*/
|
2667 |
+
alm.AjaxLoadMore.error = function (error) {
|
2668 |
+
var location = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
|
|
|
|
|
2669 |
|
2670 |
+
alm.loading = false;
|
2671 |
+
if (!alm.addons.paging) {
|
2672 |
+
alm.button.classList.remove('loading');
|
2673 |
+
alm.AjaxLoadMore.resetBtnText();
|
2674 |
+
}
|
|
|
2675 |
|
2676 |
+
console.log('Error: ', error);
|
2677 |
+
if (error.response) {
|
2678 |
+
// The request was made and the server responded with a status code
|
2679 |
+
// that falls out of the range of 2xx
|
2680 |
+
//console.log(error.response.data);
|
2681 |
+
//console.log(error.response.status);
|
2682 |
+
//console.log(error.response.headers);
|
2683 |
+
console.log('Error Msg: ', error.message);
|
2684 |
+
} else if (error.request) {
|
2685 |
+
// The request was made but no response was received
|
2686 |
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
2687 |
+
// http.ClientRequest in node.js
|
2688 |
+
console.log(error.request);
|
2689 |
+
} else {
|
2690 |
+
// Something happened in setting up the request that triggered an Error
|
2691 |
+
console.log('Error Msg: ', error.message);
|
2692 |
+
}
|
|
|
|
|
|
|
|
|
|
|
2693 |
|
2694 |
+
if (location) {
|
2695 |
+
console.log('ALM Error started in ' + location);
|
2696 |
+
}
|
|
|
2697 |
|
2698 |
+
if (error.config) {
|
2699 |
+
console.log('ALM Error Debug: ', error.config);
|
2700 |
+
}
|
2701 |
+
};
|
2702 |
|
2703 |
+
/**
|
2704 |
+
* click
|
2705 |
+
* Button click handler to load posts
|
2706 |
+
*
|
2707 |
+
* @since 4.2.0
|
2708 |
+
*/
|
2709 |
+
alm.AjaxLoadMore.click = function (e) {
|
2710 |
+
var button = e.target || e.currentTarget;
|
2711 |
+
if (alm.pause === 'true') {
|
2712 |
+
alm.pause = false;
|
2713 |
+
alm.pause_override = false;
|
2714 |
+
alm.AjaxLoadMore.loadPosts();
|
2715 |
+
}
|
2716 |
+
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
2717 |
+
alm.loading = true;
|
2718 |
+
alm.page++;
|
2719 |
+
alm.AjaxLoadMore.loadPosts();
|
2720 |
+
}
|
2721 |
+
};
|
2722 |
|
2723 |
+
/**
|
2724 |
+
* Button Click Event
|
2725 |
+
* Load more button click event
|
2726 |
+
*
|
2727 |
+
* @since 1.0.0
|
2728 |
+
*/
|
|
|
|
|
|
|
2729 |
|
2730 |
+
if (!alm.addons.paging && !alm.fetchingPreviousPost) {
|
2731 |
+
alm.button.onclick = alm.AjaxLoadMore.click;
|
|
|
|
|
2732 |
}
|
2733 |
|
2734 |
+
/**
|
2735 |
+
* Window Resize
|
2736 |
+
* Add resize function for Paging, Scroll Distance Percentage & Tabs.
|
2737 |
+
*
|
2738 |
+
* @since 2.1.2
|
2739 |
+
* @updated 5.2
|
2740 |
+
*/
|
2741 |
+
if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc) {
|
2742 |
+
var resize = void 0;
|
2743 |
+
alm.window.onresize = function () {
|
2744 |
+
clearTimeout(resize);
|
2745 |
+
resize = setTimeout(function (e) {
|
2746 |
+
if (alm.addons.tabs) {
|
2747 |
+
// Tabs
|
2748 |
+
if (typeof almOnTabsWindowResize === 'function') {
|
2749 |
+
window.almOnTabsWindowResize(alm);
|
2750 |
+
}
|
2751 |
+
}
|
2752 |
+
if (alm.addons.paging) {
|
2753 |
+
// Paging
|
2754 |
+
if (typeof almOnWindowResize === 'function') {
|
2755 |
+
window.almOnWindowResize(alm);
|
2756 |
+
}
|
2757 |
+
}
|
2758 |
+
if (alm.scroll_distance_perc) {
|
2759 |
+
alm.scroll_distance = (0, _getScrollPercentage2.default)(alm);
|
2760 |
+
}
|
2761 |
+
}, alm.speed);
|
2762 |
+
};
|
2763 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2764 |
|
2765 |
+
/**
|
2766 |
+
* isVisible
|
2767 |
+
* Check to see if element is visible before loading posts
|
2768 |
+
*
|
2769 |
+
* @since 2.1.2
|
2770 |
+
*/
|
2771 |
+
alm.AjaxLoadMore.isVisible = function () {
|
2772 |
+
// Check for a width and height to determine visibility
|
2773 |
+
alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false;
|
2774 |
+
return alm.visible;
|
2775 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2776 |
|
2777 |
+
/**
|
2778 |
+
* triggerWindowResize
|
2779 |
+
* Trigger a window resize browser function
|
2780 |
+
*
|
2781 |
+
* @since 5.3.1
|
2782 |
+
*/
|
2783 |
+
alm.AjaxLoadMore.triggerWindowResize = function () {
|
2784 |
+
if (typeof Event === 'function') {
|
2785 |
+
// modern browsers
|
2786 |
+
window.dispatchEvent(new Event('resize'));
|
2787 |
+
} else {
|
2788 |
+
//This will be executed on old browsers and especially IE
|
2789 |
+
var resizeEvent = window.document.createEvent('UIEvents');
|
2790 |
+
resizeEvent.initUIEvent('resize', true, false, window, 0);
|
2791 |
+
window.dispatchEvent(resizeEvent);
|
2792 |
+
}
|
2793 |
+
};
|
2794 |
|
2795 |
+
/**
|
2796 |
+
* scroll
|
2797 |
+
* Load posts as user scrolls the page
|
2798 |
+
*
|
2799 |
+
* @since 1.0
|
2800 |
+
* @updated 4.2.0
|
2801 |
+
*/
|
2802 |
+
alm.AjaxLoadMore.scroll = function () {
|
2803 |
|
2804 |
+
if (alm.timer) {
|
2805 |
+
clearTimeout(alm.timer);
|
2806 |
+
}
|
2807 |
|
2808 |
+
alm.timer = setTimeout(function () {
|
2809 |
+
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
2810 |
+
var trigger = alm.trigger.getBoundingClientRect();
|
2811 |
+
var btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
2812 |
+
var scrollTrigger = btnPos <= 0 ? true : false;
|
2813 |
|
2814 |
+
// Scroll Container
|
2815 |
+
if (alm.window !== window) {
|
2816 |
+
var scrollInstance = alm.window.querySelector('.ajax-load-more-wrap'); // ALM inside the container
|
2817 |
+
var scrollHeight = scrollInstance.offsetHeight; // ALM height
|
2818 |
+
var scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
2819 |
+
scrollTrigger = scrollHeight <= scrollPosition ? true : false;
|
2820 |
+
}
|
|
|
|
|
|
|
|
|
2821 |
|
2822 |
+
// If Pause && Pause Override
|
2823 |
+
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true') {
|
2824 |
+
alm.button.click();
|
2825 |
+
}
|
2826 |
|
2827 |
+
// Standard Scroll
|
2828 |
+
else {
|
2829 |
+
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2830 |
+
alm.button.click();
|
2831 |
+
}
|
2832 |
+
}
|
2833 |
+
}
|
2834 |
+
}, 25);
|
2835 |
+
};
|
2836 |
|
2837 |
+
// Add scroll eventlisteners, only when needed
|
2838 |
+
if (alm.scroll && !alm.addons.paging) {
|
2839 |
+
if (alm.scroll_container !== '') {
|
2840 |
+
// Scroll Container
|
2841 |
+
alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
|
2842 |
+
}
|
2843 |
+
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
|
2844 |
+
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
|
2845 |
+
alm.window.addEventListener('wheel', function (e) {
|
2846 |
+
// Mousewheel
|
2847 |
+
var direction = Math.sign(e.deltaY);
|
2848 |
+
if (direction > 0) {
|
2849 |
+
alm.AjaxLoadMore.scroll();
|
2850 |
+
}
|
2851 |
+
});
|
2852 |
+
alm.window.addEventListener('keyup', function (e) {
|
2853 |
+
// End, Page Down
|
2854 |
+
var code = e.keyCode ? e.keyCode : e.which;
|
2855 |
+
switch (code) {
|
2856 |
+
case 35:
|
2857 |
+
case 34:
|
2858 |
+
alm.AjaxLoadMore.scroll();
|
2859 |
+
break;
|
2860 |
+
}
|
2861 |
+
});
|
2862 |
+
}
|
2863 |
|
2864 |
+
/**
|
2865 |
+
* destroyed
|
2866 |
+
* Destroy Ajax Load More functionality
|
2867 |
+
*
|
2868 |
+
* @since 3.4.2
|
2869 |
+
*/
|
2870 |
+
alm.AjaxLoadMore.destroyed = function () {
|
2871 |
+
alm.disable_ajax = true;
|
2872 |
+
if (!alm.addons.paging) {
|
2873 |
+
alm.button.style.display = 'none';
|
2874 |
+
alm.AjaxLoadMore.triggerDone();
|
2875 |
+
if (typeof almDestroyed === 'function') {
|
2876 |
+
window.almDestroyed(alm);
|
2877 |
+
}
|
2878 |
+
}
|
2879 |
+
};
|
2880 |
|
2881 |
+
/**
|
2882 |
+
* transitionEnd
|
2883 |
+
* Set variables after loading transiton completes
|
2884 |
+
*
|
2885 |
+
* @since 3.5
|
2886 |
+
*/
|
2887 |
+
alm.AjaxLoadMore.transitionEnd = function () {
|
2888 |
+
setTimeout(function () {
|
2889 |
+
alm.AjaxLoadMore.resetBtnText();
|
2890 |
+
alm.main.classList.remove('alm-loading');
|
2891 |
+
alm.button.classList.remove('loading'); // Loading button
|
2892 |
+
alm.AjaxLoadMore.triggerAddons(alm);
|
2893 |
+
if (!alm.addons.paging) {
|
2894 |
+
setTimeout(function () {
|
2895 |
+
alm.loading = false; // Delay to prevent loading to fast
|
2896 |
+
}, alm.speed * 3);
|
2897 |
+
}
|
2898 |
+
}, 100);
|
2899 |
+
(0, _placeholder.hidePlaceholder)(alm);
|
2900 |
+
};
|
2901 |
|
2902 |
+
/**
|
2903 |
+
* setLocalizedVar
|
2904 |
+
* Set induvidual localized variable
|
2905 |
+
*
|
2906 |
+
* @param {string} name
|
2907 |
+
* @param {string} value
|
2908 |
+
* @since 4.1
|
2909 |
+
*/
|
2910 |
+
alm.AjaxLoadMore.setLocalizedVar = function () {
|
2911 |
+
var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2912 |
+
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
2913 |
|
2914 |
+
if (alm.localize && name !== '' && value !== '') {
|
2915 |
+
alm.localize[name] = value.toString(); // Set ALM localize var
|
2916 |
+
window[alm.master_id + '_vars'][name] = value.toString(); // Update global window obj vars
|
2917 |
+
}
|
2918 |
+
};
|
|
|
2919 |
|
2920 |
+
/**
|
2921 |
+
* getQueryVariable
|
2922 |
+
* Get querysting value
|
2923 |
+
*
|
2924 |
+
* @param {String} variable
|
2925 |
+
* @since 5.0
|
2926 |
+
*/
|
2927 |
+
alm.AjaxLoadMore.getQueryVariable = function (variable) {
|
2928 |
+
var query = window.location.search.substring(1);
|
2929 |
+
var vars = query.split('&');
|
2930 |
+
for (var i = 0; i < vars.length; i++) {
|
2931 |
+
var pair = vars[i].split('=');
|
2932 |
+
if (decodeURIComponent(pair[0]) == variable) {
|
2933 |
+
return decodeURIComponent(pair[1]);
|
2934 |
+
}
|
2935 |
+
}
|
2936 |
+
return false;
|
2937 |
+
};
|
2938 |
|
2939 |
+
/**
|
2940 |
+
* buildFilterURL
|
2941 |
+
* Build new paging URL for filters
|
2942 |
+
*
|
2943 |
+
* @param {String} querystring
|
2944 |
+
* @param {Number} page
|
2945 |
+
* @since 5.0
|
2946 |
+
*/
|
2947 |
+
alm.AjaxLoadMore.buildFilterURL = function () {
|
2948 |
+
var querystring = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
2949 |
+
var page = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
2950 |
|
2951 |
+
var qs = querystring;
|
2952 |
|
2953 |
+
if (alm.addons.filters_paging) {
|
|
|
|
|
|
|
|
|
2954 |
|
2955 |
+
if (page > 1) {
|
2956 |
+
// Paged
|
2957 |
+
if (qs) {
|
2958 |
+
// If already has `pg` in querystring
|
2959 |
+
if (alm.AjaxLoadMore.getQueryVariable('pg')) {
|
2960 |
+
qs = querystring.replace(/(pg=)[^\&]+/, '$1' + page);
|
2961 |
+
} else {
|
2962 |
+
qs = querystring + '&pg=' + page;
|
2963 |
+
}
|
2964 |
+
} else {
|
2965 |
+
qs = '?pg=' + page;
|
2966 |
+
}
|
2967 |
+
} else {
|
2968 |
+
// Not Paged
|
2969 |
+
qs = querystring.replace(/(pg=)[^\&]+/, '');
|
2970 |
+
qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring
|
2971 |
+
qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols
|
2972 |
+
}
|
2973 |
+
}
|
2974 |
|
2975 |
+
return qs;
|
2976 |
+
};
|
|
|
|
|
|
|
2977 |
|
2978 |
+
/**
|
2979 |
+
* Init Ajax load More
|
2980 |
+
* Load posts as user scrolls the page
|
2981 |
+
*
|
2982 |
+
* @since 2.0
|
2983 |
+
*/
|
2984 |
+
alm.AjaxLoadMore.init = function () {
|
2985 |
|
2986 |
+
// Preloaded and destroy_after is 1
|
2987 |
+
if (alm.addons.preloaded === 'true' && alm.destroy_after == 1) {
|
2988 |
+
alm.AjaxLoadMore.destroyed();
|
2989 |
+
}
|
2990 |
|
2991 |
+
if (!alm.addons.paging && !alm.addons.single_post) {
|
2992 |
+
if (alm.disable_ajax) {
|
2993 |
+
alm.finished = true;
|
2994 |
+
alm.button.classList.add('done');
|
2995 |
+
} else {
|
2996 |
+
if (alm.pause === 'true') {
|
2997 |
+
alm.button.innerHTML = alm.button_label;
|
2998 |
+
alm.loading = false;
|
2999 |
+
} else {
|
3000 |
+
alm.AjaxLoadMore.loadPosts();
|
3001 |
+
}
|
3002 |
+
}
|
3003 |
+
}
|
3004 |
|
3005 |
+
// Previous Post Add-on
|
3006 |
+
if (alm.addons.single_post) {
|
3007 |
+
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
3008 |
+
alm.loading = false;
|
3009 |
|
3010 |
+
/*
|
3011 |
+
* Display tableOfContents
|
3012 |
+
*/
|
3013 |
+
(0, _tableofcontents.tableOfContents)(alm, true, true);
|
3014 |
+
}
|
|
|
|
|
3015 |
|
3016 |
+
// Preloaded + SEO && !Paging
|
3017 |
+
if (alm.addons.preloaded === 'true' && alm.addons.seo && !alm.addons.paging) {
|
3018 |
+
// Delay for scripts to load
|
3019 |
+
setTimeout(function () {
|
3020 |
+
if (typeof almSEO === "function" && alm.start_page < 1) {
|
3021 |
+
window.almSEO(alm, true);
|
3022 |
+
}
|
3023 |
+
}, alm.speed);
|
3024 |
+
}
|
3025 |
|
3026 |
+
// Preloaded && !Paging
|
3027 |
+
if (alm.addons.preloaded === 'true' && !alm.addons.paging) {
|
3028 |
+
// Delay for scripts to load
|
3029 |
+
setTimeout(function () {
|
3030 |
+
// triggerDone
|
3031 |
+
if (alm.addons.preloaded_total_posts <= parseInt(alm.addons.preloaded_amount)) {
|
3032 |
+
alm.AjaxLoadMore.triggerDone();
|
3033 |
+
}
|
3034 |
+
// almEmpty
|
3035 |
+
if (alm.addons.preloaded_total_posts == 0) {
|
3036 |
+
if (typeof almEmpty === 'function') {
|
3037 |
+
window.almEmpty(alm);
|
3038 |
+
}
|
3039 |
+
if (alm.no_results) {
|
3040 |
+
(0, _noResults2.default)(alm.content, alm.no_results);
|
3041 |
+
}
|
3042 |
+
}
|
3043 |
+
}, alm.speed);
|
3044 |
+
}
|
3045 |
|
3046 |
+
// Preloaded Add-on ONLY
|
3047 |
+
if (alm.addons.preloaded === 'true') {
|
3048 |
+
if (alm.resultsText) {
|
3049 |
+
resultsText.almInitResultsText(alm, 'preloaded');
|
3050 |
+
}
|
|
|
3051 |
|
3052 |
+
/*
|
3053 |
+
* Display tableOfContents
|
3054 |
+
*/
|
3055 |
+
(0, _tableofcontents.tableOfContents)(alm, alm.init, true);
|
3056 |
+
}
|
3057 |
|
3058 |
+
// Next Page Add-on
|
3059 |
+
if (alm.addons.nextpage) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3060 |
|
3061 |
+
// Check that posts remain on load
|
3062 |
+
if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) {
|
3063 |
+
var nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items
|
3064 |
|
3065 |
+
if (nextpage_pages) {
|
3066 |
+
var nextpage_first = nextpage_pages[0];
|
3067 |
+
var nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
|
|
|
|
|
|
|
|
|
3068 |
|
3069 |
+
// Disable if last page loaded
|
3070 |
+
if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
|
3071 |
+
alm.AjaxLoadMore.triggerDone();
|
3072 |
+
}
|
3073 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3074 |
}
|
3075 |
+
|
3076 |
+
if (alm.resultsText) {
|
3077 |
+
resultsText.almInitResultsText(alm, 'nextpage');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3078 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3079 |
|
3080 |
+
/*
|
3081 |
+
* Display tableOfContents
|
3082 |
+
*/
|
3083 |
+
(0, _tableofcontents.tableOfContents)(alm, alm.init, true);
|
3084 |
+
}
|
3085 |
|
3086 |
+
// WooCommerce Add-on
|
3087 |
+
if (alm.addons.woocommerce) {
|
|
|
|
|
|
|
|
|
3088 |
|
3089 |
+
// Initiate WooCommerce
|
3090 |
+
(0, _woocommerce.wooInit)(alm);
|
3091 |
|
3092 |
+
// Set Results Text
|
3093 |
+
if (alm.resultsText) {}
|
3094 |
+
//resultsText.almInitResultsText(alm, 'woocommerce');
|
3095 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3096 |
|
3097 |
+
// Trigger Done if productsLoaded is less than woocommerce_total_posts
|
3098 |
+
if (alm.addons.woocommerce_paged >= parseInt(alm.addons.woocommerce_pages)) {
|
3099 |
+
alm.AjaxLoadMore.triggerDone();
|
3100 |
+
}
|
3101 |
+
}
|
3102 |
|
3103 |
+
// Window Load (Masonry + Preloaded)
|
3104 |
+
alm.window.addEventListener('load', function () {
|
3105 |
+
if (alm.is_masonry_preloaded) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3106 |
|
3107 |
+
// Wrap almMasonry in anonymous async/await function
|
3108 |
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
3109 |
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
3110 |
+
while (1) {
|
3111 |
+
switch (_context4.prev = _context4.next) {
|
3112 |
+
case 0:
|
3113 |
+
_context4.next = 2;
|
3114 |
+
return (0, _masonry2.default)(alm, true, false);
|
3115 |
|
3116 |
+
case 2:
|
3117 |
+
alm.masonry_init = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3118 |
|
3119 |
+
case 3:
|
3120 |
+
case 'end':
|
3121 |
+
return _context4.stop();
|
3122 |
+
}
|
3123 |
+
}
|
3124 |
+
}, _callee4, this);
|
3125 |
+
}))().catch(function (e) {
|
3126 |
+
console.log('There was an error with ALM Masonry');
|
3127 |
+
});
|
3128 |
+
}
|
3129 |
+
if (typeof almOnLoad === 'function') {
|
3130 |
+
window.almOnLoad(alm);
|
3131 |
+
}
|
3132 |
+
});
|
3133 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3134 |
|
3135 |
+
// Init Ajax Load More
|
3136 |
+
alm.AjaxLoadMore.init();
|
3137 |
|
3138 |
+
// Flag to prevent unnecessary loading of posts on initial page load.
|
3139 |
+
setTimeout(function () {
|
3140 |
+
alm.proceed = true;
|
3141 |
+
}, alm.speed);
|
3142 |
|
3143 |
+
/**
|
3144 |
+
* almUpdateCurrentPage
|
3145 |
+
* Update current page - triggered from paging add-on
|
3146 |
+
*
|
3147 |
+
* @since 2.7.0
|
3148 |
+
*/
|
3149 |
+
window.almUpdateCurrentPage = function (current, obj, alm) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3150 |
|
3151 |
+
alm.page = current;
|
3152 |
+
alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
|
3153 |
|
3154 |
+
var data = '';
|
3155 |
+
var target = '';
|
3156 |
|
3157 |
+
if (alm.addons.paging_init && alm.addons.preloaded === 'true') {
|
3158 |
+
// Paging + Preloaded Firstrun
|
3159 |
+
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
3160 |
+
if (target) {
|
3161 |
+
data = target.innerHTML; // Get content
|
3162 |
+
target.parentNode.removeChild(target); // Remove target
|
3163 |
+
alm.addons.preloaded_amount = 0; // Reset preloaded
|
3164 |
+
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
3165 |
+
}
|
3166 |
+
alm.addons.paging_init = false;
|
3167 |
+
alm.init = false;
|
3168 |
+
} else if (alm.addons.paging_init && alm.addons.nextpage) {
|
3169 |
+
// Paging + Next Page on firstrun
|
3170 |
+
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
3171 |
+
if (target) {
|
3172 |
+
data = target.innerHTML; // Get content
|
3173 |
+
target.parentNode.removeChild(target); // Remove target
|
3174 |
+
alm.AjaxLoadMore.pagingNextpageInit(data);
|
3175 |
+
}
|
3176 |
+
alm.addons.paging_init = false;
|
3177 |
+
alm.init = false;
|
3178 |
+
} else {
|
3179 |
+
// Standard Paging
|
3180 |
+
alm.AjaxLoadMore.loadPosts();
|
3181 |
+
}
|
3182 |
+
};
|
3183 |
|
3184 |
+
/**
|
3185 |
+
* almGetParentContainer
|
3186 |
+
* return the parent ALM container
|
3187 |
+
*
|
3188 |
+
* @since 2.7.0
|
3189 |
+
* @return element
|
3190 |
+
*/
|
3191 |
+
window.almGetParentContainer = function () {
|
3192 |
+
return alm.listing;
|
3193 |
+
};
|
3194 |
|
3195 |
+
/**
|
3196 |
+
* almGetObj
|
3197 |
+
* Returns the current ALM obj
|
3198 |
+
*
|
3199 |
+
* @param {string} specific obj
|
3200 |
+
* @since 2.7.0
|
3201 |
+
* @return object
|
3202 |
+
*/
|
3203 |
+
window.almGetObj = function () {
|
3204 |
+
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
3205 |
|
3206 |
+
if (obj !== '') {
|
3207 |
+
return alm[obj]; // Return specific param
|
3208 |
+
} else {
|
3209 |
+
return alm; // Return the entire alm object
|
3210 |
+
}
|
3211 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3212 |
|
3213 |
+
/**
|
3214 |
+
* almTriggerClick
|
3215 |
+
* Trigger ajaxloadmore from any element on page
|
3216 |
+
*
|
3217 |
+
* @since 2.12.0
|
3218 |
+
*/
|
3219 |
+
window.almTriggerClick = function () {
|
3220 |
+
alm.button.click();
|
3221 |
+
};
|
3222 |
+
};
|
3223 |
|
3224 |
+
// End ajaxloadmore
|
|
|
|
|
|
|
3225 |
|
|
|
|
|
3226 |
|
3227 |
+
/**
|
3228 |
+
* almInit
|
3229 |
+
* Initiate instance of Ajax load More
|
3230 |
+
*
|
3231 |
+
* @since 5.0
|
3232 |
+
*/
|
3233 |
+
window.almInit = function (el) {
|
3234 |
+
var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
3235 |
|
3236 |
+
new ajaxloadmore(el, id);
|
3237 |
+
};
|
3238 |
|
3239 |
+
/**
|
3240 |
+
* Initiate Ajax load More if div is present on screen
|
3241 |
+
* @since 2.1.2
|
3242 |
+
*/
|
|
|
|
|
3243 |
|
3244 |
+
var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
3245 |
+
if (alm_instances.length) {
|
3246 |
+
[].concat(_toConsumableArray(alm_instances)).forEach(function (alm, e) {
|
3247 |
+
new ajaxloadmore(alm, e);
|
3248 |
+
});
|
3249 |
+
}
|
3250 |
+
})();
|
3251 |
|
3252 |
+
/**
|
3253 |
+
* filter
|
3254 |
+
* Filter an Ajax Load More instance
|
3255 |
+
*
|
3256 |
+
* @since 5.0
|
3257 |
+
* @param {*} transition
|
3258 |
+
* @param {*} speed
|
3259 |
+
* @param {*} data
|
3260 |
+
*/
|
3261 |
+
var filter = function filter() {
|
3262 |
+
var transition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fade';
|
3263 |
+
var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '200';
|
3264 |
+
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
3265 |
|
3266 |
+
if (!transition || !speed || !data) {
|
3267 |
+
return false;
|
3268 |
+
}
|
3269 |
+
alm_is_filtering = true;
|
3270 |
+
(0, _filtering2.default)(transition, speed, data, 'filter');
|
3271 |
+
};
|
3272 |
+
exports.filter = filter;
|
3273 |
+
|
3274 |
+
/**
|
3275 |
+
* tab
|
3276 |
+
* Tabbed content for Ajax Load More instance
|
3277 |
+
*
|
3278 |
+
* @since 5.2
|
3279 |
+
* @param {*} data
|
3280 |
+
* @param {*} url
|
3281 |
*/
|
|
|
|
|
3282 |
|
3283 |
+
var tab = function tab() {
|
3284 |
+
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
3285 |
+
var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
3286 |
|
3287 |
+
var transition = 'fade';
|
3288 |
+
var speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
3289 |
|
3290 |
+
if (!data) {
|
3291 |
+
return false;
|
3292 |
+
}
|
|
|
3293 |
|
3294 |
+
alm_is_filtering = true;
|
3295 |
+
(0, _filtering2.default)(transition, speed, data, 'tab');
|
3296 |
};
|
3297 |
+
exports.tab = tab;
|
|
|
|
|
3298 |
|
3299 |
+
/**
|
3300 |
+
* tracking
|
3301 |
+
* Track Page Views in Google Analytics
|
3302 |
+
*
|
3303 |
+
* @since 5.0
|
3304 |
+
* @param {*} path
|
3305 |
+
*/
|
3306 |
|
3307 |
+
var tracking = function tracking(path) {
|
3308 |
+
if (typeof gtag === 'function') {
|
3309 |
+
// Gtag GA Tracking
|
3310 |
+
gtag('event', 'page_view', {
|
3311 |
+
'page_path': path
|
3312 |
+
});
|
3313 |
+
if (alm_localize.ga_debug) {
|
3314 |
+
console.log('Pageview sent to Google Analytics (gtag)');
|
3315 |
+
}
|
3316 |
+
}
|
3317 |
+
if (typeof ga === 'function') {
|
3318 |
+
// Deprecated GA Tracking
|
3319 |
+
ga('send', 'pageview', path);
|
3320 |
+
if (alm_localize.ga_debug) {
|
3321 |
+
console.log('Pageview sent to Google Analytics (ga)');
|
3322 |
+
}
|
3323 |
+
}
|
3324 |
+
if (typeof __gaTracker === 'function') {
|
3325 |
+
// Monster Insights
|
3326 |
+
__gaTracker('send', 'pageview', path);
|
3327 |
+
if (alm_localize.ga_debug) {
|
3328 |
+
console.log('Pageview sent to Google Analytics (__gaTracker)');
|
3329 |
+
}
|
3330 |
+
}
|
3331 |
|
3332 |
+
// Dispatch global Analytics callback
|
3333 |
+
if (typeof almAnalytics === 'function') {
|
3334 |
+
window.almAnalytics(path);
|
3335 |
+
}
|
3336 |
+
};
|
3337 |
+
exports.tracking = tracking;
|
3338 |
|
3339 |
+
/**
|
3340 |
+
* start
|
3341 |
+
* Trigger Ajax Load More from other events
|
3342 |
+
*
|
|
|
|
|
|
|
|
|
3343 |
* @since 5.0
|
3344 |
+
* @param {*} el
|
3345 |
*/
|
|
|
|
|
3346 |
|
3347 |
+
var start = function start(el) {
|
3348 |
+
if (!el) {
|
3349 |
return false;
|
3350 |
}
|
3351 |
+
window.almInit(el);
|
|
|
|
|
|
|
3352 |
};
|
3353 |
+
exports.start = start;
|
3354 |
|
3355 |
+
/**
|
3356 |
+
* almScroll
|
3357 |
+
* Scroll window to position (global function)
|
3358 |
+
*
|
3359 |
+
* @since 5.0
|
3360 |
+
* @param {*} position
|
3361 |
+
*/
|
3362 |
|
3363 |
+
var almScroll = function almScroll(position) {
|
3364 |
+
if (!position) {
|
3365 |
+
return false;
|
3366 |
+
}
|
3367 |
+
window.scrollTo({
|
3368 |
+
top: position,
|
3369 |
+
behavior: 'smooth'
|
3370 |
+
});
|
3371 |
+
};
|
3372 |
+
exports.almScroll = almScroll;
|
3373 |
|
3374 |
+
/**
|
3375 |
+
* getOffset
|
3376 |
+
* Get the current top/left coordinates of an element relative to the document.
|
3377 |
+
*
|
3378 |
+
* @since 5.0
|
3379 |
+
* @param {*} el
|
3380 |
+
*/
|
3381 |
|
3382 |
+
var getOffset = function getOffset() {
|
3383 |
+
var el = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
3384 |
|
3385 |
+
if (!el) {
|
3386 |
+
return false;
|
3387 |
+
}
|
3388 |
+
var rect = el.getBoundingClientRect(),
|
3389 |
+
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
|
3390 |
+
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
3391 |
+
return { top: rect.top + scrollTop, left: rect.left + scrollLeft };
|
3392 |
+
};
|
3393 |
+
exports.getOffset = getOffset;
|
3394 |
+
|
3395 |
+
/**
|
3396 |
+
* render
|
3397 |
*
|
3398 |
+
* @since 5.0
|
3399 |
+
* @param {*} position
|
3400 |
*/
|
3401 |
|
3402 |
+
var render = function render(el) {
|
3403 |
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3404 |
|
3405 |
+
if (!el) {
|
3406 |
+
return false;
|
3407 |
+
}
|
3408 |
+
// console.log(el, options);
|
3409 |
+
};
|
3410 |
+
exports.render = render;
|
3411 |
|
3412 |
/***/ }),
|
3413 |
|
3414 |
+
/***/ "./core/src/js/helpers/almAppendChild.js":
|
3415 |
+
/*!***********************************************!*\
|
3416 |
+
!*** ./core/src/js/helpers/almAppendChild.js ***!
|
3417 |
+
\***********************************************/
|
3418 |
/*! no static exports found */
|
3419 |
/***/ (function(module, exports, __webpack_require__) {
|
3420 |
|
3425 |
value: true
|
3426 |
});
|
3427 |
/**
|
3428 |
+
* Append a child element to a container
|
3429 |
+
*
|
3430 |
+
* @param {*} target | Target element to append items
|
3431 |
+
* @param {*} element | The element to append
|
3432 |
+
* @param {*} transition | The transiton
|
3433 |
+
* @since 5.0
|
3434 |
*/
|
3435 |
+
|
3436 |
+
var nodeNameArray = ['#text', '#comment'];
|
3437 |
+
|
3438 |
+
var almAppendChild = function almAppendChild() {
|
3439 |
+
var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
3440 |
+
var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
3441 |
+
var transition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fade';
|
3442 |
+
|
3443 |
+
if (!target || !element) {
|
3444 |
+
return false;
|
3445 |
+
}
|
3446 |
+
|
3447 |
+
// Do not append elements that are not actual element nodes (i.e. #text node)
|
3448 |
+
// Add item if not in exclude array
|
3449 |
+
if (nodeNameArray.indexOf(element.nodeName.toLowerCase()) === -1) {
|
3450 |
+
if (transition === 'masonry') {
|
3451 |
+
// If Masonry, opacity = zero
|
3452 |
+
element.style.opacity = 0;
|
3453 |
+
}
|
3454 |
+
target.appendChild(element);
|
3455 |
}
|
3456 |
};
|
3457 |
+
exports.default = almAppendChild;
|
3458 |
|
3459 |
/***/ }),
|
3460 |
|
3461 |
+
/***/ "./core/src/js/helpers/almAppendChildren.js":
|
3462 |
+
/*!**************************************************!*\
|
3463 |
+
!*** ./core/src/js/helpers/almAppendChildren.js ***!
|
3464 |
+
\**************************************************/
|
3465 |
/*! no static exports found */
|
3466 |
/***/ (function(module, exports, __webpack_require__) {
|
3467 |
|
3469 |
|
3470 |
|
3471 |
Object.defineProperty(exports, "__esModule", {
|
3472 |
+
value: true
|
3473 |
});
|
3474 |
+
|
3475 |
+
var _almAppendChild = __webpack_require__(/*! ./almAppendChild */ "./core/src/js/helpers/almAppendChild.js");
|
3476 |
+
|
3477 |
+
var _almAppendChild2 = _interopRequireDefault(_almAppendChild);
|
3478 |
+
|
3479 |
+
function _interopRequireDefault(obj) {
|
3480 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
3481 |
+
}
|
3482 |
+
|
3483 |
/**
|
3484 |
+
* Loop array of elements and append to target
|
3485 |
+
*
|
3486 |
+
* @param {*} target | Target element to append items
|
3487 |
+
* @param {*} array | An array of elements
|
3488 |
+
* @param {*} transition | The transiton
|
3489 |
+
* @since 5.0
|
3490 |
*/
|
3491 |
+
|
3492 |
+
var almAppendChildren = function almAppendChildren() {
|
3493 |
+
var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
3494 |
+
var array = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
3495 |
+
var transition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fade';
|
3496 |
+
|
3497 |
+
if (!target || !array) {
|
3498 |
+
return false;
|
3499 |
+
}
|
3500 |
+
for (var i = 0; i < array.length; i++) {
|
3501 |
+
var element = array[i];
|
3502 |
+
(0, _almAppendChild2.default)(target, element, transition);
|
3503 |
+
}
|
3504 |
};
|
3505 |
+
exports.default = almAppendChildren;
|
3506 |
|
3507 |
/***/ }),
|
3508 |
|
3509 |
+
/***/ "./core/src/js/helpers/almDomParser.js":
|
3510 |
+
/*!*********************************************!*\
|
3511 |
+
!*** ./core/src/js/helpers/almDomParser.js ***!
|
3512 |
+
\*********************************************/
|
3513 |
/*! no static exports found */
|
3514 |
/***/ (function(module, exports, __webpack_require__) {
|
3515 |
|
3517 |
|
3518 |
|
3519 |
Object.defineProperty(exports, "__esModule", {
|
3520 |
+
value: true
|
3521 |
});
|
3522 |
+
/**
|
3523 |
+
* Convert a plain text string into an array of HTML nodes
|
3524 |
+
*
|
3525 |
+
* @param {*} html | The HTML string
|
3526 |
+
* @param {*} type
|
3527 |
+
* @return array
|
3528 |
+
* @since 5.0
|
3529 |
+
*/
|
3530 |
+
var almDomParser = function almDomParser() {
|
3531 |
+
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
3532 |
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'text/html';
|
3533 |
|
3534 |
+
if (!html) {
|
3535 |
+
return false;
|
3536 |
+
}
|
3537 |
+
var parser = new DOMParser();
|
3538 |
+
var data = parser.parseFromString(html, type);
|
3539 |
+
return data ? Array.prototype.slice.call(data.body.childNodes) : data;
|
3540 |
+
};
|
3541 |
+
exports.default = almDomParser;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3542 |
|
3543 |
+
/***/ }),
|
3544 |
|
3545 |
+
/***/ "./core/src/js/helpers/getCacheUrl.js":
|
3546 |
+
/*!********************************************!*\
|
3547 |
+
!*** ./core/src/js/helpers/getCacheUrl.js ***!
|
3548 |
+
\********************************************/
|
3549 |
+
/*! no static exports found */
|
3550 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3551 |
|
3552 |
+
"use strict";
|
|
|
|
|
3553 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3554 |
|
3555 |
+
Object.defineProperty(exports, "__esModule", {
|
3556 |
+
value: true
|
3557 |
+
});
|
3558 |
/**
|
3559 |
+
* Generate the cache page URL for GET request
|
|
|
3560 |
*
|
3561 |
+
* @param {*} el | Target element to append items
|
3562 |
+
* @param {*} array | An array of elements
|
3563 |
+
* @since 5.0
|
|
|
|
|
3564 |
*/
|
3565 |
+
var getCacheUrl = function getCacheUrl(alm) {
|
3566 |
|
3567 |
+
if (!alm) {
|
3568 |
+
return false;
|
3569 |
+
}
|
3570 |
|
3571 |
+
var cache_url = '';
|
3572 |
+
var ext = '.html';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3573 |
|
3574 |
+
// SEO Add-on
|
3575 |
+
if (alm.init && alm.addons.seo && alm.isPaged) {
|
3576 |
+
// If the request is a paged URL (/page/3/)
|
3577 |
+
var firstpage = '1';
|
3578 |
+
cache_url = alm.addons.cache_path + alm.addons.cache_id + '/page-' + firstpage + '-' + alm.start_page + ext;
|
3579 |
+
}
|
3580 |
|
3581 |
+
// Nextpage add-on
|
3582 |
+
else if (alm.addons.nextpage) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3583 |
|
3584 |
+
var nextpage_cache_url = void 0;
|
3585 |
+
if (alm.addons.paging) {
|
3586 |
+
nextpage_cache_url = parseInt(alm.page) + 1;
|
3587 |
+
} else {
|
3588 |
+
nextpage_cache_url = parseInt(alm.page) + 2;
|
3589 |
+
if (alm.isPaged) {
|
3590 |
+
// If the request a paged URL (/page/3/)
|
3591 |
+
nextpage_cache_url = parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1;
|
3592 |
+
}
|
3593 |
+
}
|
3594 |
+
cache_url = alm.addons.cache_path + alm.addons.cache_id + '/page-' + nextpage_cache_url + ext;
|
3595 |
+
}
|
3596 |
+
// Single Post
|
3597 |
+
else if (alm.addons.single_post) {
|
3598 |
+
cache_url = alm.addons.cache_path + alm.addons.cache_id + '/' + alm.addons.single_post_id + ext;
|
3599 |
+
}
|
3600 |
|
3601 |
+
// Filters
|
3602 |
+
else if (alm.addons.filters) {
|
3603 |
+
console.log(alm);
|
3604 |
+
} else {
|
3605 |
+
// Standard URL request
|
3606 |
+
cache_url = alm.addons.cache_path + alm.addons.cache_id + '/page-' + (alm.page + 1) + ext;
|
3607 |
+
}
|
3608 |
+
|
3609 |
+
return cache_url;
|
3610 |
+
};
|
3611 |
+
|
3612 |
+
exports.default = getCacheUrl;
|
3613 |
+
|
3614 |
+
/***/ }),
|
3615 |
+
|
3616 |
+
/***/ "./core/src/js/helpers/getParameterByName.js":
|
3617 |
+
/*!***************************************************!*\
|
3618 |
+
!*** ./core/src/js/helpers/getParameterByName.js ***!
|
3619 |
+
\***************************************************/
|
3620 |
+
/*! no static exports found */
|
3621 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3622 |
+
|
3623 |
+
"use strict";
|
3624 |
+
|
3625 |
+
|
3626 |
+
Object.defineProperty(exports, "__esModule", {
|
3627 |
+
value: true
|
3628 |
+
});
|
3629 |
+
var getParameterByName = function getParameterByName(name, url) {
|
3630 |
+
if (!url) url = window.location.href;
|
3631 |
+
name = name.replace(/[\[\]]/g, "\\$&");
|
3632 |
+
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
3633 |
+
results = regex.exec(url);
|
3634 |
+
if (!results) return null;
|
3635 |
+
if (!results[2]) return '';
|
3636 |
+
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
3637 |
+
};
|
3638 |
+
exports.default = getParameterByName;
|
3639 |
+
|
3640 |
+
/***/ }),
|
3641 |
+
|
3642 |
+
/***/ "./core/src/js/helpers/helpers.js":
|
3643 |
+
/*!****************************************!*\
|
3644 |
+
!*** ./core/src/js/helpers/helpers.js ***!
|
3645 |
+
\****************************************/
|
3646 |
+
/*! no static exports found */
|
3647 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3648 |
+
|
3649 |
+
"use strict";
|
3650 |
+
|
3651 |
+
|
3652 |
+
// Prevent native browser scrolling on popstate
|
3653 |
+
// https://developer.mozilla.org/en-US/docs/Web/API/History#Browser_compatibility
|
3654 |
+
|
3655 |
+
if ('scrollRestoration' in history) {}
|
3656 |
+
//history.scrollRestoration = 'manual';
|
3657 |
+
|
3658 |
+
|
3659 |
+
// Object.entries
|
3660 |
+
if (!Object.entries) {
|
3661 |
+
Object.entries = function (obj) {
|
3662 |
+
var ownProps = Object.keys(obj),
|
3663 |
+
i = ownProps.length,
|
3664 |
+
resArray = new Array(i); // preallocate the Array
|
3665 |
+
while (i--) {
|
3666 |
+
resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
3667 |
+
}return resArray;
|
3668 |
+
};
|
3669 |
+
}
|
3670 |
+
|
3671 |
+
// isArray
|
3672 |
+
if (typeof Array.isArray === 'undefined') {
|
3673 |
+
Array.isArray = function (obj) {
|
3674 |
+
return Object.prototype.toString.call(obj) === '[object Array]';
|
3675 |
+
};
|
3676 |
+
};
|
3677 |
+
|
3678 |
+
// Array.from
|
3679 |
+
if (!Array.from) {
|
3680 |
+
Array.from = function () {
|
3681 |
+
var toStr = Object.prototype.toString;
|
3682 |
+
var isCallable = function isCallable(fn) {
|
3683 |
+
return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
|
3684 |
+
};
|
3685 |
+
var toInteger = function toInteger(value) {
|
3686 |
+
var number = Number(value);
|
3687 |
+
if (isNaN(number)) {
|
3688 |
+
return 0;
|
3689 |
+
}
|
3690 |
+
if (number === 0 || !isFinite(number)) {
|
3691 |
+
return number;
|
3692 |
+
}
|
3693 |
+
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
|
3694 |
+
};
|
3695 |
+
var maxSafeInteger = Math.pow(2, 53) - 1;
|
3696 |
+
var toLength = function toLength(value) {
|
3697 |
+
var len = toInteger(value);
|
3698 |
+
return Math.min(Math.max(len, 0), maxSafeInteger);
|
3699 |
+
};
|
3700 |
+
|
3701 |
+
// The length property of the from method is 1.
|
3702 |
+
return function from(arrayLike /*, mapFn, thisArg */) {
|
3703 |
+
// 1. Let C be the this value.
|
3704 |
+
var C = this;
|
3705 |
+
|
3706 |
+
// 2. Let items be ToObject(arrayLike).
|
3707 |
+
var items = Object(arrayLike);
|
3708 |
+
|
3709 |
+
// 3. ReturnIfAbrupt(items).
|
3710 |
+
if (arrayLike == null) {
|
3711 |
+
throw new TypeError('Array.from requires an array-like object - not null or undefined');
|
3712 |
+
}
|
3713 |
+
|
3714 |
+
// 4. If mapfn is undefined, then let mapping be false.
|
3715 |
+
var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
|
3716 |
+
var T;
|
3717 |
+
if (typeof mapFn !== 'undefined') {
|
3718 |
+
// 5. else
|
3719 |
+
// 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
|
3720 |
+
if (!isCallable(mapFn)) {
|
3721 |
+
throw new TypeError('Array.from: when provided, the second argument must be a function');
|
3722 |
+
}
|
3723 |
+
|
3724 |
+
// 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
|
3725 |
+
if (arguments.length > 2) {
|
3726 |
+
T = arguments[2];
|
3727 |
+
}
|
3728 |
+
}
|
3729 |
+
|
3730 |
+
// 10. Let lenValue be Get(items, "length").
|
3731 |
+
// 11. Let len be ToLength(lenValue).
|
3732 |
+
var len = toLength(items.length);
|
3733 |
+
|
3734 |
+
// 13. If IsConstructor(C) is true, then
|
3735 |
+
// 13. a. Let A be the result of calling the [[Construct]] internal method
|
3736 |
+
// of C with an argument list containing the single item len.
|
3737 |
+
// 14. a. Else, Let A be ArrayCreate(len).
|
3738 |
+
var A = isCallable(C) ? Object(new C(len)) : new Array(len);
|
3739 |
+
|
3740 |
+
// 16. Let k be 0.
|
3741 |
+
var k = 0;
|
3742 |
+
// 17. Repeat, while k < len… (also steps a - h)
|
3743 |
+
var kValue;
|
3744 |
+
while (k < len) {
|
3745 |
+
kValue = items[k];
|
3746 |
+
if (mapFn) {
|
3747 |
+
A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
|
3748 |
+
} else {
|
3749 |
+
A[k] = kValue;
|
3750 |
+
}
|
3751 |
+
k += 1;
|
3752 |
+
}
|
3753 |
+
// 18. Let putStatus be Put(A, "length", len, true).
|
3754 |
+
A.length = len;
|
3755 |
+
// 20. Return A.
|
3756 |
+
return A;
|
3757 |
+
};
|
3758 |
+
}();
|
3759 |
+
}
|
3760 |
+
|
3761 |
+
// Nodelist
|
3762 |
+
if (window.NodeList && !NodeList.prototype.forEach) {
|
3763 |
+
NodeList.prototype.forEach = function (callback, thisArg) {
|
3764 |
+
thisArg = thisArg || window;
|
3765 |
+
for (var i = 0; i < this.length; i++) {
|
3766 |
+
callback.call(thisArg, this[i], i, this);
|
3767 |
+
}
|
3768 |
+
};
|
3769 |
+
}
|
3770 |
+
|
3771 |
+
// removeChild
|
3772 |
+
// https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
|
3773 |
+
(function (arr) {
|
3774 |
+
arr.forEach(function (item) {
|
3775 |
+
if (item.hasOwnProperty('remove')) {
|
3776 |
+
return;
|
3777 |
+
}
|
3778 |
+
Object.defineProperty(item, 'remove', {
|
3779 |
+
configurable: true,
|
3780 |
+
enumerable: true,
|
3781 |
+
writable: true,
|
3782 |
+
value: function remove() {
|
3783 |
+
if (this.parentNode !== null) this.parentNode.removeChild(this);
|
3784 |
+
}
|
3785 |
+
});
|
3786 |
+
});
|
3787 |
+
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
3788 |
+
|
3789 |
+
/***/ }),
|
3790 |
+
|
3791 |
+
/***/ "./core/src/js/helpers/polyfills.js":
|
3792 |
+
/*!******************************************!*\
|
3793 |
+
!*** ./core/src/js/helpers/polyfills.js ***!
|
3794 |
+
\******************************************/
|
3795 |
+
/*! no static exports found */
|
3796 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3797 |
+
|
3798 |
+
"use strict";
|
3799 |
+
|
3800 |
+
|
3801 |
+
/**
|
3802 |
+
* Add dataset support to elements
|
3803 |
+
* No globals, no overriding prototype with non-standard methods,
|
3804 |
+
* handles CamelCase properly, attempts to use standard
|
3805 |
+
* Object.defineProperty() (and Function bind()) methods,
|
3806 |
+
* falls back to native implementation when existing
|
3807 |
+
* Inspired by http://code.eligrey.com/html5/dataset/
|
3808 |
+
* (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js )
|
3809 |
+
* Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below)
|
3810 |
+
* All code below is Licensed under the X11/MIT License
|
3811 |
+
*/
|
3812 |
+
|
3813 |
+
if (!Function.prototype.bind) {
|
3814 |
+
Function.prototype.bind = function (oThis) {
|
3815 |
+
'use strict';
|
3816 |
+
|
3817 |
+
if (typeof this !== "function") {
|
3818 |
+
// closest thing possible to the ECMAScript 5 internal IsCallable function
|
3819 |
+
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
|
3820 |
+
}
|
3821 |
+
|
3822 |
+
var aArgs = Array.prototype.slice.call(arguments, 1),
|
3823 |
+
fToBind = this,
|
3824 |
+
FNOP = function FNOP() {},
|
3825 |
+
fBound = function fBound() {
|
3826 |
+
return fToBind.apply(this instanceof FNOP && oThis ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)));
|
3827 |
+
};
|
3828 |
+
|
3829 |
+
FNOP.prototype = this.prototype;
|
3830 |
+
fBound.prototype = new FNOP();
|
3831 |
+
|
3832 |
+
return fBound;
|
3833 |
+
};
|
3834 |
+
}
|
3835 |
+
|
3836 |
+
/*
|
3837 |
+
* Xccessors Standard: Cross-browser ECMAScript 5 accessors
|
3838 |
+
* http://purl.eligrey.com/github/Xccessors
|
3839 |
+
*
|
3840 |
+
* 2010-06-21
|
3841 |
+
*
|
3842 |
+
* By Eli Grey, http://eligrey.com
|
3843 |
+
*
|
3844 |
+
* A shim that partially implements Object.defineProperty,
|
3845 |
+
* Object.getOwnPropertyDescriptor, and Object.defineProperties in browsers that have
|
3846 |
+
* legacy __(define|lookup)[GS]etter__ support.
|
3847 |
+
*
|
3848 |
+
* Licensed under the X11/MIT License
|
3849 |
+
* See LICENSE.md
|
3850 |
+
*/
|
3851 |
+
|
3852 |
+
(function () {
|
3853 |
+
'use strict';
|
3854 |
+
|
3855 |
+
var ObjectProto = Object.prototype,
|
3856 |
+
defineGetter = ObjectProto.__defineGetter__,
|
3857 |
+
defineSetter = ObjectProto.__defineSetter__,
|
3858 |
+
lookupGetter = ObjectProto.__lookupGetter__,
|
3859 |
+
lookupSetter = ObjectProto.__lookupSetter__,
|
3860 |
+
hasOwnProp = ObjectProto.hasOwnProperty;
|
3861 |
+
|
3862 |
+
if (defineGetter && defineSetter && lookupGetter && lookupSetter) {
|
3863 |
+
|
3864 |
+
if (!Object.defineProperty) {
|
3865 |
+
Object.defineProperty = function (obj, prop, descriptor) {
|
3866 |
+
if (arguments.length < 3) {
|
3867 |
+
// all arguments required
|
3868 |
+
throw new TypeError("Arguments not optional");
|
3869 |
+
}
|
3870 |
+
|
3871 |
+
prop += ""; // convert prop to string
|
3872 |
+
|
3873 |
+
if (hasOwnProp.call(descriptor, "value")) {
|
3874 |
+
if (!lookupGetter.call(obj, prop) && !lookupSetter.call(obj, prop)) {
|
3875 |
+
// data property defined and no pre-existing accessors
|
3876 |
+
obj[prop] = descriptor.value;
|
3877 |
+
}
|
3878 |
+
|
3879 |
+
if (hasOwnProp.call(descriptor, "get") || hasOwnProp.call(descriptor, "set")) {
|
3880 |
+
// descriptor has a value prop but accessor already exists
|
3881 |
+
throw new TypeError("Cannot specify an accessor and a value");
|
3882 |
+
}
|
3883 |
+
}
|
3884 |
+
|
3885 |
+
// can't switch off these features in ECMAScript 3
|
3886 |
+
// so throw a TypeError if any are false
|
3887 |
+
if (!(descriptor.writable && descriptor.enumerable && descriptor.configurable)) {
|
3888 |
+
throw new TypeError("This implementation of Object.defineProperty does not support" + " false for configurable, enumerable, or writable.");
|
3889 |
+
}
|
3890 |
+
|
3891 |
+
if (descriptor.get) {
|
3892 |
+
defineGetter.call(obj, prop, descriptor.get);
|
3893 |
+
}
|
3894 |
+
if (descriptor.set) {
|
3895 |
+
defineSetter.call(obj, prop, descriptor.set);
|
3896 |
+
}
|
3897 |
+
|
3898 |
+
return obj;
|
3899 |
+
};
|
3900 |
+
}
|
3901 |
+
|
3902 |
+
if (!Object.getOwnPropertyDescriptor) {
|
3903 |
+
Object.getOwnPropertyDescriptor = function (obj, prop) {
|
3904 |
+
if (arguments.length < 2) {
|
3905 |
+
// all arguments required
|
3906 |
+
throw new TypeError("Arguments not optional.");
|
3907 |
+
}
|
3908 |
+
|
3909 |
+
prop += ""; // convert prop to string
|
3910 |
+
|
3911 |
+
var descriptor = {
|
3912 |
+
configurable: true,
|
3913 |
+
enumerable: true,
|
3914 |
+
writable: true
|
3915 |
+
},
|
3916 |
+
getter = lookupGetter.call(obj, prop),
|
3917 |
+
setter = lookupSetter.call(obj, prop);
|
3918 |
+
|
3919 |
+
if (!hasOwnProp.call(obj, prop)) {
|
3920 |
+
// property doesn't exist or is inherited
|
3921 |
+
return descriptor;
|
3922 |
+
}
|
3923 |
+
if (!getter && !setter) {
|
3924 |
+
// not an accessor so return prop
|
3925 |
+
descriptor.value = obj[prop];
|
3926 |
+
return descriptor;
|
3927 |
+
}
|
3928 |
+
|
3929 |
+
// there is an accessor, remove descriptor.writable;
|
3930 |
+
// populate descriptor.get and descriptor.set (IE's behavior)
|
3931 |
+
delete descriptor.writable;
|
3932 |
+
descriptor.get = descriptor.set = undefined;
|
3933 |
+
|
3934 |
+
if (getter) {
|
3935 |
+
descriptor.get = getter;
|
3936 |
+
}
|
3937 |
+
if (setter) {
|
3938 |
+
descriptor.set = setter;
|
3939 |
+
}
|
3940 |
+
|
3941 |
+
return descriptor;
|
3942 |
+
};
|
3943 |
+
}
|
3944 |
+
|
3945 |
+
if (!Object.defineProperties) {
|
3946 |
+
Object.defineProperties = function (obj, props) {
|
3947 |
+
var prop;
|
3948 |
+
for (prop in props) {
|
3949 |
+
if (hasOwnProp.call(props, prop)) {
|
3950 |
+
Object.defineProperty(obj, prop, props[prop]);
|
3951 |
+
}
|
3952 |
+
}
|
3953 |
+
};
|
3954 |
+
}
|
3955 |
+
}
|
3956 |
+
})();
|
3957 |
+
|
3958 |
+
// Begin dataset code
|
3959 |
+
|
3960 |
+
if (!document.documentElement.dataset && (
|
3961 |
+
// FF is empty while IE gives empty object
|
3962 |
+
!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset') || !Object.getOwnPropertyDescriptor(Element.prototype, 'dataset').get)) {
|
3963 |
+
var propDescriptor = {
|
3964 |
+
enumerable: true,
|
3965 |
+
get: function get() {
|
3966 |
+
'use strict';
|
3967 |
+
|
3968 |
+
var i,
|
3969 |
+
that = this,
|
3970 |
+
HTML5_DOMStringMap,
|
3971 |
+
attrVal,
|
3972 |
+
attrName,
|
3973 |
+
propName,
|
3974 |
+
attribute,
|
3975 |
+
attributes = this.attributes,
|
3976 |
+
attsLength = attributes.length,
|
3977 |
+
toUpperCase = function toUpperCase(n0) {
|
3978 |
+
return n0.charAt(1).toUpperCase();
|
3979 |
+
},
|
3980 |
+
getter = function getter() {
|
3981 |
+
return this;
|
3982 |
+
},
|
3983 |
+
setter = function setter(attrName, value) {
|
3984 |
+
return typeof value !== 'undefined' ? this.setAttribute(attrName, value) : this.removeAttribute(attrName);
|
3985 |
+
};
|
3986 |
+
try {
|
3987 |
+
// Simulate DOMStringMap w/accessor support
|
3988 |
+
// Test setting accessor on normal object
|
3989 |
+
({}).__defineGetter__('test', function () {});
|
3990 |
+
HTML5_DOMStringMap = {};
|
3991 |
+
} catch (e1) {
|
3992 |
+
// Use a DOM object for IE8
|
3993 |
+
HTML5_DOMStringMap = document.createElement('div');
|
3994 |
+
}
|
3995 |
+
for (i = 0; i < attsLength; i++) {
|
3996 |
+
attribute = attributes[i];
|
3997 |
+
// Fix: This test really should allow any XML Name without
|
3998 |
+
// colons (and non-uppercase for XHTML)
|
3999 |
+
if (attribute && attribute.name && /^data-\w[\w\-]*$/.test(attribute.name)) {
|
4000 |
+
attrVal = attribute.value;
|
4001 |
+
attrName = attribute.name;
|
4002 |
+
// Change to CamelCase
|
4003 |
+
propName = attrName.substr(5).replace(/-./g, toUpperCase);
|
4004 |
+
try {
|
4005 |
+
Object.defineProperty(HTML5_DOMStringMap, propName, {
|
4006 |
+
enumerable: this.enumerable,
|
4007 |
+
get: getter.bind(attrVal || ''),
|
4008 |
+
set: setter.bind(that, attrName)
|
4009 |
+
});
|
4010 |
+
} catch (e2) {
|
4011 |
+
// if accessors are not working
|
4012 |
+
HTML5_DOMStringMap[propName] = attrVal;
|
4013 |
+
}
|
4014 |
+
}
|
4015 |
+
}
|
4016 |
+
return HTML5_DOMStringMap;
|
4017 |
+
}
|
4018 |
+
};
|
4019 |
+
try {
|
4020 |
+
// FF enumerates over element's dataset, but not
|
4021 |
+
// Element.prototype.dataset; IE9 iterates over both
|
4022 |
+
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
4023 |
+
} catch (e) {
|
4024 |
+
propDescriptor.enumerable = false; // IE8 does not allow setting to true
|
4025 |
+
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
4026 |
+
}
|
4027 |
+
}
|
4028 |
|
4029 |
+
/***/ }),
|
4030 |
+
|
4031 |
+
/***/ "./core/src/js/helpers/queryParams.js":
|
4032 |
+
/*!********************************************!*\
|
4033 |
+
!*** ./core/src/js/helpers/queryParams.js ***!
|
4034 |
+
\********************************************/
|
4035 |
+
/*! no static exports found */
|
4036 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4037 |
+
|
4038 |
+
"use strict";
|
4039 |
+
|
4040 |
+
|
4041 |
+
Object.defineProperty(exports, "__esModule", {
|
4042 |
+
value: true
|
4043 |
+
});
|
4044 |
+
exports.almGetAjaxParams = almGetAjaxParams;
|
4045 |
+
exports.almGetRestParams = almGetRestParams;
|
4046 |
+
/**
|
4047 |
+
* almGetAjaxParams
|
4048 |
+
* Build the data object to send with the Ajax request
|
4049 |
+
*
|
4050 |
+
* @param alm object
|
4051 |
+
* @param action string
|
4052 |
+
* @param queryType string
|
4053 |
+
* @since 3.6
|
4054 |
+
*/
|
4055 |
+
|
4056 |
+
function almGetAjaxParams(alm, action, queryType) {
|
4057 |
+
|
4058 |
+
// Defaults
|
4059 |
+
var data = {
|
4060 |
+
id: alm.id,
|
4061 |
+
post_id: alm.post_id,
|
4062 |
+
slug: alm.slug,
|
4063 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
4064 |
+
posts_per_page: alm.posts_per_page,
|
4065 |
+
page: alm.page,
|
4066 |
+
offset: alm.offset,
|
4067 |
+
post_type: alm.post_type,
|
4068 |
+
repeater: alm.repeater,
|
4069 |
+
seo_start_page: alm.start_page
|
4070 |
+
};
|
4071 |
+
|
4072 |
+
// Addons & Extensions
|
4073 |
+
|
4074 |
+
if (alm.theme_repeater) {
|
4075 |
+
data.theme_repeater = alm.theme_repeater;
|
4076 |
+
}
|
4077 |
+
if (alm.addons.paging) {
|
4078 |
+
data.paging = alm.addons.paging;
|
4079 |
+
}
|
4080 |
+
if (alm.addons.preloaded) {
|
4081 |
+
data.preloaded = alm.addons.preloaded;
|
4082 |
+
data.preloaded_amount = alm.addons.preloaded_amount;
|
4083 |
+
}
|
4084 |
+
if (alm.addons.cache === 'true') {
|
4085 |
+
data.cache_id = alm.addons.cache_id;
|
4086 |
+
data.cache_logged_in = alm.addons.cache_logged_in;
|
4087 |
+
}
|
4088 |
+
if (alm.acf_array) {
|
4089 |
+
data.acf = alm.acf_array;
|
4090 |
+
}
|
4091 |
+
if (alm.term_query_array) {
|
4092 |
+
data.term_query = alm.term_query_array;
|
4093 |
+
}
|
4094 |
+
if (alm.cta_array) {
|
4095 |
+
data.cta = alm.cta_array;
|
4096 |
+
}
|
4097 |
+
if (alm.comments_array) {
|
4098 |
+
data.comments = alm.comments_array;
|
4099 |
+
}
|
4100 |
+
if (alm.nextpage_array) {
|
4101 |
+
data.nextpage = alm.nextpage_array;
|
4102 |
+
}
|
4103 |
+
if (alm.single_post_array) {
|
4104 |
+
data.single_post = alm.single_post_array;
|
4105 |
+
}
|
4106 |
+
if (alm.users_array) {
|
4107 |
+
data.users = alm.users_array;
|
4108 |
+
}
|
4109 |
+
|
4110 |
+
// Query data
|
4111 |
+
if (alm.listing.dataset.lang) {
|
4112 |
+
data.lang = alm.listing.dataset.lang;
|
4113 |
+
}
|
4114 |
+
if (alm.listing.dataset.stickyPosts) {
|
4115 |
+
data.sticky_posts = alm.listing.dataset.stickyPosts;
|
4116 |
+
}
|
4117 |
+
if (alm.listing.dataset.postFormat) {
|
4118 |
+
data.post_format = alm.listing.dataset.postFormat;
|
4119 |
+
}
|
4120 |
+
if (alm.listing.dataset.category) {
|
4121 |
+
data.category = alm.listing.dataset.category;
|
4122 |
+
}
|
4123 |
+
if (alm.listing.dataset.categoryAnd) {
|
4124 |
+
data.category__and = alm.listing.dataset.categoryAnd;
|
4125 |
+
}
|
4126 |
+
if (alm.listing.dataset.categoryNotIn) {
|
4127 |
+
data.category__not_in = alm.listing.dataset.categoryNotIn;
|
4128 |
+
}
|
4129 |
+
if (alm.listing.dataset.tag) {
|
4130 |
+
data.tag = alm.listing.dataset.tag;
|
4131 |
+
}
|
4132 |
+
if (alm.listing.dataset.tagAnd) {
|
4133 |
+
data.tag__and = alm.listing.dataset.tagAnd;
|
4134 |
+
}
|
4135 |
+
if (alm.listing.dataset.tagNotIn) {
|
4136 |
+
data.tag__not_in = alm.listing.dataset.tagNotIn;
|
4137 |
+
}
|
4138 |
+
if (alm.listing.dataset.taxonomy) {
|
4139 |
+
data.taxonomy = alm.listing.dataset.taxonomy;
|
4140 |
+
}
|
4141 |
+
if (alm.listing.dataset.taxonomyTerms) {
|
4142 |
+
data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;
|
4143 |
+
}
|
4144 |
+
if (alm.listing.dataset.taxonomyOperator) {
|
4145 |
+
data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;
|
4146 |
+
}
|
4147 |
+
if (alm.listing.dataset.taxonomyRelation) {
|
4148 |
+
data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;
|
4149 |
+
}
|
4150 |
+
if (alm.listing.dataset.metaKey) {
|
4151 |
+
data.meta_key = alm.listing.dataset.metaKey;
|
4152 |
+
}
|
4153 |
+
if (alm.listing.dataset.metaValue) {
|
4154 |
+
data.meta_value = alm.listing.dataset.metaValue;
|
4155 |
+
}
|
4156 |
+
if (alm.listing.dataset.metaCompare) {
|
4157 |
+
data.meta_compare = alm.listing.dataset.metaCompare;
|
4158 |
+
}
|
4159 |
+
if (alm.listing.dataset.metaRelation) {
|
4160 |
+
data.meta_relation = alm.listing.dataset.metaRelation;
|
4161 |
+
}
|
4162 |
+
if (alm.listing.dataset.metaType) {
|
4163 |
+
data.meta_type = alm.listing.dataset.metaType;
|
4164 |
+
}
|
4165 |
+
if (alm.listing.dataset.author) {
|
4166 |
+
data.author = alm.listing.dataset.author;
|
4167 |
+
}
|
4168 |
+
if (alm.listing.dataset.year) {
|
4169 |
+
data.year = alm.listing.dataset.year;
|
4170 |
+
}
|
4171 |
+
if (alm.listing.dataset.month) {
|
4172 |
+
data.month = alm.listing.dataset.month;
|
4173 |
+
}
|
4174 |
+
if (alm.listing.dataset.day) {
|
4175 |
+
data.day = alm.listing.dataset.day;
|
4176 |
+
}
|
4177 |
+
if (alm.listing.dataset.order) {
|
4178 |
+
data.order = alm.listing.dataset.order;
|
4179 |
+
}
|
4180 |
+
if (alm.listing.dataset.orderby) {
|
4181 |
+
data.orderby = alm.listing.dataset.orderby;
|
4182 |
+
}
|
4183 |
+
if (alm.listing.dataset.postStatus) {
|
4184 |
+
data.post_status = alm.listing.dataset.postStatus;
|
4185 |
+
}
|
4186 |
+
if (alm.listing.dataset.postIn) {
|
4187 |
+
data.post__in = alm.listing.dataset.postIn;
|
4188 |
+
}
|
4189 |
+
if (alm.listing.dataset.postNotIn) {
|
4190 |
+
data.post__not_in = alm.listing.dataset.postNotIn;
|
4191 |
+
}
|
4192 |
+
if (alm.listing.dataset.exclude) {
|
4193 |
+
data.exclude = alm.listing.dataset.exclude;
|
4194 |
+
}
|
4195 |
+
if (alm.listing.dataset.search) {
|
4196 |
+
data.search = alm.listing.dataset.search;
|
4197 |
+
}
|
4198 |
+
if (alm.listing.dataset.s) {
|
4199 |
+
data.search = alm.listing.dataset.s;
|
4200 |
+
}
|
4201 |
+
if (alm.listing.dataset.customArgs) {
|
4202 |
+
data.custom_args = alm.listing.dataset.customArgs;
|
4203 |
+
}
|
4204 |
+
|
4205 |
+
data.action = action;
|
4206 |
+
data.query_type = queryType;
|
4207 |
+
|
4208 |
+
return data;
|
4209 |
+
}
|
4210 |
+
|
4211 |
+
/**
|
4212 |
+
* almGetRestParams
|
4213 |
+
* Build the REST API data object to send with REST API request
|
4214 |
+
*
|
4215 |
+
* @param alm object
|
4216 |
+
* @since 3.6
|
4217 |
+
*/
|
4218 |
+
function almGetRestParams(alm) {
|
4219 |
+
var data = {
|
4220 |
+
id: alm.id,
|
4221 |
+
post_id: alm.post_id,
|
4222 |
+
posts_per_page: alm.posts_per_page,
|
4223 |
+
page: alm.page,
|
4224 |
+
offset: alm.offset,
|
4225 |
+
slug: alm.slug,
|
4226 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
4227 |
+
post_type: alm.post_type,
|
4228 |
+
post_format: alm.listing.dataset.postFormat,
|
4229 |
+
category: alm.listing.dataset.category,
|
4230 |
+
category__not_in: alm.listing.dataset.categoryNotIn,
|
4231 |
+
tag: alm.listing.dataset.tag,
|
4232 |
+
tag__not_in: alm.listing.dataset.tagNotIn,
|
4233 |
+
taxonomy: alm.listing.dataset.taxonomy,
|
4234 |
+
taxonomy_terms: alm.listing.dataset.taxonomyTerms,
|
4235 |
+
taxonomy_operator: alm.listing.dataset.taxonomyOperator,
|
4236 |
+
taxonomy_relation: alm.listing.dataset.taxonomyRelation,
|
4237 |
+
meta_key: alm.listing.dataset.metaKey,
|
4238 |
+
meta_value: alm.listing.dataset.metaValue,
|
4239 |
+
meta_compare: alm.listing.dataset.metaCompare,
|
4240 |
+
meta_relation: alm.listing.dataset.metaRelation,
|
4241 |
+
meta_type: alm.listing.dataset.metaType,
|
4242 |
+
author: alm.listing.dataset.author,
|
4243 |
+
year: alm.listing.dataset.year,
|
4244 |
+
month: alm.listing.dataset.month,
|
4245 |
+
day: alm.listing.dataset.day,
|
4246 |
+
post_status: alm.listing.dataset.postStatus,
|
4247 |
+
order: alm.listing.dataset.order,
|
4248 |
+
orderby: alm.listing.dataset.orderby,
|
4249 |
+
post__in: alm.listing.dataset.postIn,
|
4250 |
+
post__not_in: alm.listing.dataset.postNotIn,
|
4251 |
+
search: alm.listing.dataset.search,
|
4252 |
+
s: alm.listing.dataset.s,
|
4253 |
+
custom_args: alm.listing.dataset.customArgs,
|
4254 |
+
lang: alm.lang,
|
4255 |
+
preloaded: alm.addons.preloaded,
|
4256 |
+
preloaded_amount: alm.addons.preloaded_amount,
|
4257 |
+
seo_start_page: alm.start_page
|
4258 |
+
};
|
4259 |
|
4260 |
+
return data;
|
4261 |
+
}
|
4262 |
|
4263 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
4264 |
|
4265 |
+
/***/ "./core/src/js/helpers/srcsetPolyfill.js":
|
4266 |
+
/*!***********************************************!*\
|
4267 |
+
!*** ./core/src/js/helpers/srcsetPolyfill.js ***!
|
4268 |
+
\***********************************************/
|
4269 |
+
/*! no static exports found */
|
4270 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4271 |
|
4272 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4273 |
|
4274 |
+
|
4275 |
+
Object.defineProperty(exports, "__esModule", {
|
4276 |
+
value: true
|
4277 |
+
});
|
4278 |
+
/**
|
4279 |
+
* srcsetPolyfill
|
4280 |
+
* A Safari srcset polyfill to get Masonry and ImagesLoaded working
|
4281 |
+
*
|
4282 |
+
* @param {*} container Element
|
4283 |
+
* @param {*} ua String
|
4284 |
+
* @since 5.0.2
|
4285 |
*/
|
4286 |
+
var srcsetPolyfill = function srcsetPolyfill() {
|
4287 |
+
var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
4288 |
+
var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
4289 |
|
4290 |
+
// Exit if no container
|
4291 |
+
if (!container) {
|
4292 |
+
return false;
|
4293 |
+
}
|
4294 |
|
4295 |
+
// Exit if useragent is Chrome, Safari or Windows
|
4296 |
+
if (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') != -1 || ua.indexOf('Firefox') > -1 || ua.indexOf('Windows') > -1) {
|
4297 |
+
return false;
|
4298 |
+
}
|
4299 |
|
4300 |
+
// Get the images
|
4301 |
+
var imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');
|
|
|
|
|
4302 |
|
4303 |
+
// Loop images
|
4304 |
+
for (var i = 0; i < imgs.length; i++) {
|
4305 |
+
var img = imgs[i];
|
4306 |
+
img.classList.add('alm-loaded');
|
4307 |
+
img.outerHTML = img.outerHTML;
|
4308 |
}
|
4309 |
+
};
|
4310 |
+
exports.default = srcsetPolyfill;
|
4311 |
|
4312 |
+
/***/ }),
|
|
|
|
|
|
|
|
|
4313 |
|
4314 |
+
/***/ "./core/src/js/helpers/stripEmptyNodes.js":
|
4315 |
+
/*!************************************************!*\
|
4316 |
+
!*** ./core/src/js/helpers/stripEmptyNodes.js ***!
|
4317 |
+
\************************************************/
|
4318 |
+
/*! no static exports found */
|
4319 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4320 |
|
4321 |
+
"use strict";
|
4322 |
+
|
4323 |
+
|
4324 |
+
Object.defineProperty(exports, "__esModule", {
|
4325 |
+
value: true
|
4326 |
+
});
|
4327 |
/**
|
4328 |
+
* Remove empty HTML nodes from array of nodes
|
4329 |
+
* Remove all empty text nodes from SEO and Filters return
|
4330 |
*
|
4331 |
+
* @param {*} nodes | Array of HTML nodes
|
4332 |
+
* @return array
|
4333 |
+
* @since 5.1.3
|
|
|
|
|
|
|
4334 |
*/
|
4335 |
+
var stripEmptyNodes = function stripEmptyNodes() {
|
4336 |
+
var nodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
|
|
|
|
|
4337 |
|
4338 |
+
if (!nodes) {
|
4339 |
+
return false;
|
4340 |
+
}
|
|
|
|
|
4341 |
|
4342 |
+
// Exclude these nodeNames from being rendered
|
4343 |
+
var nodeNameArray = ['#text', '#comment'];
|
|
|
|
|
|
|
|
|
4344 |
|
4345 |
+
// Filter data by nodeName
|
4346 |
+
var results = nodes.filter(function (node) {
|
4347 |
+
return nodeNameArray.indexOf(node.nodeName.toLowerCase()) === -1;
|
4348 |
+
});
|
4349 |
|
4350 |
+
// Send the results
|
4351 |
+
return results;
|
4352 |
+
};
|
4353 |
+
exports.default = stripEmptyNodes;
|
4354 |
|
4355 |
+
/***/ }),
|
|
|
4356 |
|
4357 |
+
/***/ "./core/src/js/helpers/tableWrap.js":
|
4358 |
+
/*!******************************************!*\
|
4359 |
+
!*** ./core/src/js/helpers/tableWrap.js ***!
|
4360 |
+
\******************************************/
|
4361 |
+
/*! no static exports found */
|
4362 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4363 |
|
4364 |
+
"use strict";
|
|
|
4365 |
|
|
|
|
|
|
|
|
|
|
|
4366 |
|
4367 |
+
Object.defineProperty(exports, "__esModule", {
|
4368 |
+
value: true
|
4369 |
+
});
|
4370 |
+
/**
|
4371 |
+
* Wrap `table` containers in tbody elements
|
4372 |
+
* innerHTML and DOMParser do not work with <tr/> <td/> elements etc.
|
4373 |
+
*
|
4374 |
+
* @param {*} html | Plain text
|
4375 |
+
* @since 5.0
|
4376 |
+
*/
|
4377 |
+
var tableWrap = function tableWrap() {
|
4378 |
+
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
4379 |
|
4380 |
+
if (!html) {
|
4381 |
+
return false;
|
4382 |
+
}
|
4383 |
+
var table_reveal = document.createElement('tbody');
|
4384 |
+
table_reveal.innerHTML = html;
|
4385 |
+
var table_reveal_array = [table_reveal];
|
4386 |
+
return table_reveal_array; // Return new array
|
4387 |
+
};
|
4388 |
+
exports.default = tableWrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
4389 |
|
4390 |
+
/***/ }),
|
4391 |
|
4392 |
+
/***/ "./core/src/js/modules/almDebug.js":
|
4393 |
+
/*!*****************************************!*\
|
4394 |
+
!*** ./core/src/js/modules/almDebug.js ***!
|
4395 |
+
\*****************************************/
|
4396 |
+
/*! no static exports found */
|
4397 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
4398 |
|
4399 |
+
"use strict";
|
4400 |
+
|
4401 |
+
|
4402 |
+
Object.defineProperty(exports, "__esModule", {
|
4403 |
+
value: true
|
4404 |
+
});
|
4405 |
+
/**
|
4406 |
+
* Display alm_debug results
|
4407 |
+
* https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug
|
4408 |
+
*
|
4409 |
+
* @param {object} alm Global alm object
|
4410 |
+
* @since 5.1.6
|
4411 |
+
*/
|
4412 |
|
4413 |
+
var almDebug = function almDebug(alm) {
|
4414 |
+
if (alm && alm.debug) {
|
4415 |
+
var obj = {
|
4416 |
+
'query': alm.debug,
|
4417 |
+
'localize': alm.localize
|
4418 |
+
};
|
4419 |
+
console.log('ALM Debug:', obj);
|
4420 |
+
}
|
4421 |
};
|
4422 |
|
4423 |
+
exports.default = almDebug;
|
4424 |
+
|
4425 |
/***/ }),
|
4426 |
|
4427 |
+
/***/ "./core/src/js/modules/fadeIn.js":
|
4428 |
+
/*!***************************************!*\
|
4429 |
+
!*** ./core/src/js/modules/fadeIn.js ***!
|
4430 |
+
\***************************************/
|
4431 |
/*! no static exports found */
|
4432 |
/***/ (function(module, exports, __webpack_require__) {
|
4433 |
|
4438 |
value: true
|
4439 |
});
|
4440 |
/**
|
4441 |
+
* Fade element in
|
4442 |
+
* @param {*} element
|
4443 |
+
* @param {*} speed
|
|
|
|
|
|
|
4444 |
*/
|
4445 |
+
var almFadeIn = function almFadeIn(element, speed) {
|
4446 |
+
if (speed == 0) {
|
4447 |
+
element.style.opacity = 1;
|
4448 |
+
element.style.height = 'auto';
|
4449 |
+
} else {
|
4450 |
+
speed = speed / 10;
|
4451 |
+
var op = 0; // initial opacity
|
4452 |
+
var timer = setInterval(function () {
|
4453 |
+
if (op > 0.9) {
|
4454 |
+
element.style.opacity = 1;
|
4455 |
+
clearInterval(timer);
|
4456 |
+
}
|
4457 |
+
element.style.opacity = op;
|
4458 |
+
op += 0.1;
|
4459 |
+
}, speed);
|
4460 |
+
element.style.height = 'auto';
|
4461 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4462 |
};
|
4463 |
+
exports.default = almFadeIn;
|
4464 |
|
4465 |
/***/ }),
|
4466 |
|
4467 |
+
/***/ "./core/src/js/modules/fadeOut.js":
|
4468 |
+
/*!****************************************!*\
|
4469 |
+
!*** ./core/src/js/modules/fadeOut.js ***!
|
4470 |
+
\****************************************/
|
4471 |
/*! no static exports found */
|
4472 |
/***/ (function(module, exports, __webpack_require__) {
|
4473 |
|
4477 |
Object.defineProperty(exports, "__esModule", {
|
4478 |
value: true
|
4479 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4480 |
/**
|
4481 |
+
* Fade element out
|
4482 |
+
* @param {*} element
|
4483 |
+
* @param {*} speed
|
|
|
|
|
4484 |
*/
|
4485 |
+
var almFadeOut = function almFadeOut(element, speed) {
|
4486 |
+
speed = speed / 10;
|
4487 |
+
element.style.opacity = 0.5;
|
4488 |
+
var fadeEffect = setInterval(function () {
|
4489 |
+
if (element.style.opacity < 0.1) {
|
4490 |
+
clearInterval(fadeEffect);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4491 |
} else {
|
4492 |
+
element.style.opacity -= 0.1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4493 |
}
|
4494 |
+
}, speed);
|
|
|
|
|
4495 |
};
|
4496 |
+
exports.default = almFadeOut;
|
4497 |
|
4498 |
/***/ }),
|
4499 |
|
4500 |
+
/***/ "./core/src/js/modules/filtering.js":
|
4501 |
+
/*!******************************************!*\
|
4502 |
+
!*** ./core/src/js/modules/filtering.js ***!
|
4503 |
+
\******************************************/
|
4504 |
/*! no static exports found */
|
4505 |
/***/ (function(module, exports, __webpack_require__) {
|
4506 |
|
4511 |
value: true
|
4512 |
});
|
4513 |
|
4514 |
+
var _slicedToArray = function () {
|
4515 |
+
function sliceIterator(arr, i) {
|
4516 |
+
var _arr = [];var _n = true;var _d = false;var _e = undefined;try {
|
4517 |
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
4518 |
+
_arr.push(_s.value);if (i && _arr.length === i) break;
|
4519 |
+
}
|
4520 |
+
} catch (err) {
|
4521 |
+
_d = true;_e = err;
|
4522 |
+
} finally {
|
4523 |
+
try {
|
4524 |
+
if (!_n && _i["return"]) _i["return"]();
|
4525 |
+
} finally {
|
4526 |
+
if (_d) throw _e;
|
4527 |
+
}
|
4528 |
+
}return _arr;
|
4529 |
+
}return function (arr, i) {
|
4530 |
+
if (Array.isArray(arr)) {
|
4531 |
+
return arr;
|
4532 |
+
} else if (Symbol.iterator in Object(arr)) {
|
4533 |
+
return sliceIterator(arr, i);
|
4534 |
+
} else {
|
4535 |
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
4536 |
+
}
|
4537 |
+
};
|
4538 |
+
}();
|
4539 |
+
|
4540 |
var _fadeIn = __webpack_require__(/*! ./fadeIn */ "./core/src/js/modules/fadeIn.js");
|
4541 |
|
4542 |
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
4543 |
|
4544 |
+
var _fadeOut = __webpack_require__(/*! ./fadeOut */ "./core/src/js/modules/fadeOut.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
4545 |
|
4546 |
+
var _fadeOut2 = _interopRequireDefault(_fadeOut);
|
4547 |
|
4548 |
+
var _tableofcontents = __webpack_require__(/*! ./tableofcontents */ "./core/src/js/modules/tableofcontents.js");
|
4549 |
|
4550 |
function _interopRequireDefault(obj) {
|
4551 |
return obj && obj.__esModule ? obj : { default: obj };
|
4552 |
}
|
4553 |
|
4554 |
+
function _toConsumableArray(arr) {
|
4555 |
+
if (Array.isArray(arr)) {
|
4556 |
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
|
4557 |
+
arr2[i] = arr[i];
|
4558 |
+
}return arr2;
|
4559 |
+
} else {
|
4560 |
+
return Array.from(arr);
|
4561 |
+
}
|
4562 |
+
}
|
4563 |
|
4564 |
/**
|
4565 |
+
* almFilter(type, speed, data)
|
4566 |
+
* Filter Ajax Load More
|
4567 |
+
*
|
4568 |
+
* @param {*} transition string;
|
4569 |
+
* @param {*} speed number;
|
4570 |
+
* @param {*} data obj;
|
4571 |
+
* @param {*} type string;
|
4572 |
+
* @since 2.6.1
|
4573 |
+
*/
|
|
|
4574 |
|
4575 |
+
var almFilter = function almFilter(transition, speed, data) {
|
4576 |
+
var type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "filter";
|
4577 |
|
4578 |
+
if (data.target) {
|
4579 |
+
// if a target has been specified
|
4580 |
+
var target = document.querySelectorAll('.ajax-load-more-wrap[data-id="' + data.target + '"]');
|
4581 |
+
target.forEach(function (element) {
|
4582 |
+
almFilterTransition(transition, speed, data, element, type);
|
4583 |
+
});
|
4584 |
+
} else {
|
4585 |
+
// Target not specified
|
4586 |
+
var alm = document.querySelectorAll('.ajax-load-more-wrap');
|
4587 |
+
alm.forEach(function (element) {
|
4588 |
+
almFilterTransition(transition, speed, data, element, type);
|
4589 |
+
});
|
4590 |
+
}
|
4591 |
+
|
4592 |
+
// Clear table of contents if required
|
4593 |
+
(0, _tableofcontents.clearTOC)();
|
4594 |
+
};
|
4595 |
+
exports.default = almFilter;
|
4596 |
+
|
4597 |
+
/**
|
4598 |
+
* almFilterTransition(transition, speed, data, el)
|
4599 |
+
* Transition Ajax Load More
|
4600 |
+
*
|
4601 |
+
* @param {*} transition string;
|
4602 |
+
* @param {*} speed number;
|
4603 |
+
* @param {*} data obj;
|
4604 |
+
* @param {*} el element;
|
4605 |
+
* @param {*} type string;
|
4606 |
+
* @since 2.13.1
|
4607 |
+
*/
|
4608 |
|
4609 |
+
var almFilterTransition = function almFilterTransition(transition, speed, data, el, type) {
|
|
|
|
|
|
|
|
|
|
|
4610 |
|
4611 |
+
if (transition === 'fade' || transition === 'masonry') {
|
4612 |
+
// Fade, Masonry transition
|
|
|
4613 |
|
4614 |
+
switch (type) {
|
4615 |
+
case 'filter':
|
4616 |
+
el.classList.add('alm-is-filtering');
|
4617 |
+
(0, _fadeOut2.default)(el, speed);
|
4618 |
|
4619 |
+
break;
|
|
|
|
|
|
|
4620 |
|
4621 |
+
case 'tab':
|
4622 |
+
el.classList.add('alm-loading');
|
4623 |
+
var new_el = el.querySelector('.alm-listing');
|
4624 |
+
el.style.height = new_el.offsetHeight + 'px';
|
4625 |
+
(0, _fadeOut2.default)(new_el, speed);
|
4626 |
|
4627 |
+
break;
|
|
|
|
|
4628 |
}
|
4629 |
|
4630 |
+
// Move to next function
|
4631 |
+
setTimeout(function () {
|
4632 |
+
almCompleteFilterTransition(speed, data, el, type);
|
4633 |
+
}, speed);
|
4634 |
+
} else {
|
4635 |
+
// No transition
|
4636 |
+
el.classList.add('alm-is-filtering');
|
4637 |
+
almCompleteFilterTransition(speed, data, el, type);
|
4638 |
+
}
|
4639 |
+
};
|
4640 |
|
4641 |
+
/**
|
4642 |
+
* almCompleteFilterTransition
|
4643 |
+
* Complete the filter transition
|
4644 |
+
*
|
4645 |
+
* @param {*} speed number;
|
4646 |
+
* @param {*} data obj;
|
4647 |
+
* @param {*} el element;
|
4648 |
+
* @param {*} type string;
|
4649 |
+
* @since 3.3
|
4650 |
+
*/
|
4651 |
+
var almCompleteFilterTransition = function almCompleteFilterTransition(speed, data, el, type) {
|
4652 |
|
4653 |
+
// Get `.alm-btn-wrap` element
|
4654 |
+
var btnWrap = el.querySelector('.alm-btn-wrap');
|
4655 |
|
4656 |
+
// Get `.alm-listing` element
|
4657 |
+
var listing = el.querySelectorAll('.alm-listing');
|
4658 |
|
4659 |
+
// Loop over all .alm-listing divs
|
4660 |
+
[].concat(_toConsumableArray(listing)).forEach(function (e) {
|
4661 |
+
e.innerHTML = ''; // Clear listings
|
4662 |
+
});
|
4663 |
|
4664 |
+
// Get Load More button
|
4665 |
+
var button = btnWrap.querySelector('.alm-load-more-btn');
|
4666 |
+
if (button) {
|
4667 |
+
button.classList.remove('done'); // Reset Button
|
4668 |
+
}
|
4669 |
|
4670 |
+
// Clear paging navigation
|
4671 |
+
var paging = btnWrap.querySelector('.alm-paging');
|
4672 |
+
if (paging) {
|
4673 |
+
paging.style.opacity = 0;
|
4674 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4675 |
|
4676 |
+
// Reset Preloaded Amount
|
4677 |
+
data.preloadedAmount = 0;
|
4678 |
+
// Dispatch Filters
|
4679 |
+
almSetFilters(speed, data, el, type);
|
4680 |
+
};
|
|
|
|
|
|
|
4681 |
|
4682 |
+
/**
|
4683 |
+
* almSetFilters
|
4684 |
+
* Set filter parameters on .alm-listing element
|
4685 |
+
*
|
4686 |
+
* @param {*} speed number;
|
4687 |
+
* @param {*} el element;
|
4688 |
+
* @param {*} data string;
|
4689 |
+
* @param {*} type string;
|
4690 |
+
* @updated 3.3
|
4691 |
+
* @since 2.6.1
|
4692 |
+
*/
|
4693 |
+
var almSetFilters = function almSetFilters() {
|
4694 |
+
var speed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 250;
|
4695 |
+
var data = arguments[1];
|
4696 |
+
var el = arguments[2];
|
4697 |
+
var type = arguments[3];
|
4698 |
|
4699 |
+
// Get `alm-listing` container
|
4700 |
+
var listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
4701 |
+
if (!listing) {
|
4702 |
+
return false;
|
4703 |
+
}
|
4704 |
|
4705 |
+
switch (type) {
|
4706 |
+
case 'filter':
|
4707 |
+
// Update data attributes
|
4708 |
+
var _iteratorNormalCompletion = true;
|
4709 |
+
var _didIteratorError = false;
|
4710 |
+
var _iteratorError = undefined;
|
4711 |
|
4712 |
+
try {
|
4713 |
+
for (var _iterator = Object.entries(data)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
4714 |
+
var _ref = _step.value;
|
4715 |
|
4716 |
+
var _ref2 = _slicedToArray(_ref, 2);
|
|
|
4717 |
|
4718 |
+
var key = _ref2[0];
|
4719 |
+
var value = _ref2[1];
|
4720 |
|
4721 |
+
// Convert camelCase data atts back to dashes (-).
|
4722 |
+
key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase();
|
4723 |
+
listing.setAttribute('data-' + key, value);
|
4724 |
+
}
|
4725 |
+
// Fade ALM back (Filters only)
|
4726 |
+
} catch (err) {
|
4727 |
+
_didIteratorError = true;
|
4728 |
+
_iteratorError = err;
|
4729 |
+
} finally {
|
4730 |
+
try {
|
4731 |
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
4732 |
+
_iterator.return();
|
4733 |
+
}
|
4734 |
+
} finally {
|
4735 |
+
if (_didIteratorError) {
|
4736 |
+
throw _iteratorError;
|
4737 |
}
|
4738 |
}
|
4739 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4740 |
|
4741 |
+
(0, _fadeIn2.default)(el, speed);
|
4742 |
+
break;
|
4743 |
|
4744 |
+
case 'tab':
|
4745 |
+
// Update `data-tab-template` attribute
|
4746 |
+
listing.setAttribute('data-preloaded', 'false');
|
4747 |
+
listing.setAttribute('data-pause', 'false');
|
4748 |
+
listing.setAttribute('data-tab-template', data.tabTemplate);
|
|
|
4749 |
|
4750 |
+
break;
|
4751 |
+
}
|
4752 |
|
4753 |
+
// Re-initiate Ajax Load More
|
4754 |
+
var target = '';
|
4755 |
+
if (data.target) {
|
4756 |
+
// Target has been specified
|
4757 |
+
target = document.querySelector('.ajax-load-more-wrap[data-id="' + data.target + '"]');
|
4758 |
+
if (target) {
|
4759 |
+
window.almInit(target);
|
4760 |
+
}
|
4761 |
+
} else {
|
4762 |
+
// Target not specified
|
4763 |
+
target = document.querySelector('.ajax-load-more-wrap');
|
4764 |
+
if (target) {
|
4765 |
+
window.almInit(target);
|
4766 |
+
}
|
4767 |
+
}
|
4768 |
|
4769 |
+
switch (type) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4770 |
|
4771 |
+
case 'filter':
|
4772 |
+
// Filters Complete (not the add-on)
|
4773 |
+
if (typeof almFilterComplete === 'function') {
|
4774 |
+
// Standard Filtering
|
4775 |
+
almFilterComplete();
|
4776 |
+
}
|
4777 |
+
break;
|
4778 |
|
4779 |
+
case 'tab':
|
4780 |
+
// Tabs Complete
|
4781 |
+
if (typeof almTabsComplete === 'function') {
|
4782 |
+
// Standard Filtering
|
4783 |
+
almTabsComplete();
|
4784 |
+
}
|
4785 |
+
break;
|
4786 |
|
4787 |
+
}
|
|
|
4788 |
};
|
4789 |
|
|
|
|
|
4790 |
/***/ }),
|
4791 |
|
4792 |
+
/***/ "./core/src/js/modules/getScrollPercentage.js":
|
4793 |
+
/*!****************************************************!*\
|
4794 |
+
!*** ./core/src/js/modules/getScrollPercentage.js ***!
|
4795 |
+
\****************************************************/
|
4796 |
/*! no static exports found */
|
4797 |
/***/ (function(module, exports, __webpack_require__) {
|
4798 |
|
4800 |
|
4801 |
|
4802 |
Object.defineProperty(exports, "__esModule", {
|
4803 |
+
value: true
|
4804 |
});
|
4805 |
+
/**
|
4806 |
+
* getScrollPercentage
|
4807 |
+
* Get the scroll distance in pixels from a percentage
|
4808 |
+
*
|
4809 |
+
* @param {Object} alm
|
4810 |
+
* @return {NUMBER} newdistance
|
4811 |
+
* @since 5.2
|
4812 |
+
*/
|
4813 |
|
4814 |
+
var getScrollPercentage = function getScrollPercentage(alm) {
|
4815 |
+
if (!alm) {
|
4816 |
+
return false;
|
4817 |
+
}
|
4818 |
|
4819 |
+
var is_negative = alm.scroll_distance_orig.toString().indexOf("-") === -1 ? false : true; // Is this a negative number
|
4820 |
+
var raw_distance = alm.scroll_distance_orig.toString().replace("-", "").replace("%", ""); // Remove - and perc
|
4821 |
+
var wh = alm.window.innerHeight; // window height
|
4822 |
|
4823 |
+
var height = Math.floor(wh / 100 * parseInt(raw_distance)); // Do math to get distance
|
|
|
|
|
4824 |
|
4825 |
+
var newdistance = is_negative ? "-" + height : height; // Set the distance
|
4826 |
+
//console.log(parseInt(newdistance));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4827 |
|
4828 |
+
return parseInt(newdistance);
|
4829 |
+
};
|
4830 |
+
exports.default = getScrollPercentage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4831 |
|
4832 |
/***/ }),
|
4833 |
|
4834 |
+
/***/ "./core/src/js/modules/insertScript.js":
|
4835 |
+
/*!*********************************************!*\
|
4836 |
+
!*** ./core/src/js/modules/insertScript.js ***!
|
4837 |
+
\*********************************************/
|
4838 |
/*! no static exports found */
|
4839 |
/***/ (function(module, exports, __webpack_require__) {
|
4840 |
|
4842 |
|
4843 |
|
4844 |
Object.defineProperty(exports, "__esModule", {
|
4845 |
+
value: true
|
4846 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4847 |
|
4848 |
+
var _almDomParser = __webpack_require__(/*! ../helpers/almDomParser */ "./core/src/js/helpers/almDomParser.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4849 |
|
4850 |
+
var _almDomParser2 = _interopRequireDefault(_almDomParser);
|
4851 |
|
4852 |
+
function _interopRequireDefault(obj) {
|
4853 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
4854 |
}
|
4855 |
|
4856 |
+
/**
|
4857 |
+
* insertScript
|
4858 |
+
* Search nodes for <script/> tags and run scripts.
|
4859 |
+
* Scripts cannot run with appendChild or innerHTML so this is necessary to function.
|
4860 |
+
*
|
4861 |
+
* @since 5.0
|
4862 |
*/
|
4863 |
+
var insertScript = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4864 |
|
4865 |
+
init: function init(node) {
|
4866 |
+
if (this.isScript(node) === true) {
|
4867 |
+
node.parentNode.replaceChild(this.clone(node), node);
|
4868 |
+
} else {
|
4869 |
+
var i = 0;
|
4870 |
+
var children = node.childNodes;
|
4871 |
|
4872 |
+
if (children === undefined) {
|
4873 |
+
var parser = new DOMParser();
|
4874 |
+
var data = parser.parseFromString(node, 'text/html');
|
4875 |
+
if (data) {
|
4876 |
+
children = data.body.childNodes;
|
4877 |
+
}
|
4878 |
+
}
|
4879 |
+
while (i < children.length) {
|
4880 |
+
this.replace(children[i++]);
|
4881 |
+
}
|
4882 |
+
}
|
4883 |
+
return node;
|
4884 |
+
},
|
4885 |
|
4886 |
+
replace: function replace(node) {
|
4887 |
+
if (this.isScript(node) === true) {
|
4888 |
+
node.parentNode.replaceChild(this.clone(node), node);
|
4889 |
+
} else {
|
4890 |
+
var i = 0;
|
4891 |
+
var children = node.childNodes;
|
4892 |
+
while (i < children.length) {
|
4893 |
+
this.replace(children[i++]);
|
4894 |
+
}
|
4895 |
+
}
|
4896 |
+
return node;
|
4897 |
+
},
|
4898 |
|
4899 |
+
isScript: function isScript(node) {
|
4900 |
+
return node.tagName === 'SCRIPT';
|
4901 |
+
},
|
4902 |
|
4903 |
+
clone: function clone(node) {
|
4904 |
+
var script = document.createElement("script");
|
4905 |
+
script.text = node.innerHTML;
|
4906 |
+
for (var i = node.attributes.length - 1; i >= 0; i--) {
|
4907 |
+
script.setAttribute(node.attributes[i].name, node.attributes[i].value);
|
4908 |
+
}
|
4909 |
+
return script;
|
4910 |
+
}
|
4911 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4912 |
};
|
4913 |
+
exports.default = insertScript;
|
4914 |
|
4915 |
/***/ }),
|
4916 |
|
4917 |
+
/***/ "./core/src/js/modules/masonry.js":
|
4918 |
+
/*!****************************************!*\
|
4919 |
+
!*** ./core/src/js/modules/masonry.js ***!
|
4920 |
+
\****************************************/
|
4921 |
/*! no static exports found */
|
4922 |
/***/ (function(module, exports, __webpack_require__) {
|
4923 |
|
4927 |
Object.defineProperty(exports, "__esModule", {
|
4928 |
value: true
|
4929 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4930 |
|
4931 |
+
var _fadeIn = __webpack_require__(/*! ./fadeIn */ "./core/src/js/modules/fadeIn.js");
|
|
|
|
|
|
|
4932 |
|
4933 |
+
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
|
|
|
|
4934 |
|
4935 |
+
var _almAppendChildren = __webpack_require__(/*! ../helpers/almAppendChildren */ "./core/src/js/helpers/almAppendChildren.js");
|
|
|
|
|
|
|
|
|
4936 |
|
4937 |
+
var _almAppendChildren2 = _interopRequireDefault(_almAppendChildren);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4938 |
|
4939 |
+
var _almDomParser = __webpack_require__(/*! ../helpers/almDomParser */ "./core/src/js/helpers/almDomParser.js");
|
4940 |
+
|
4941 |
+
var _almDomParser2 = _interopRequireDefault(_almDomParser);
|
4942 |
+
|
4943 |
+
var _srcsetPolyfill = __webpack_require__(/*! ../helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
|
4944 |
+
|
4945 |
+
var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
|
4946 |
+
|
4947 |
+
var _stripEmptyNodes = __webpack_require__(/*! ../helpers/stripEmptyNodes */ "./core/src/js/helpers/stripEmptyNodes.js");
|
4948 |
+
|
4949 |
+
var _stripEmptyNodes2 = _interopRequireDefault(_stripEmptyNodes);
|
4950 |
+
|
4951 |
+
var _seo = __webpack_require__(/*! ../addons/seo */ "./core/src/js/addons/seo.js");
|
4952 |
+
|
4953 |
+
var _setFocus = __webpack_require__(/*! ./setFocus */ "./core/src/js/modules/setFocus.js");
|
4954 |
+
|
4955 |
+
var _setFocus2 = _interopRequireDefault(_setFocus);
|
4956 |
+
|
4957 |
+
function _interopRequireDefault(obj) {
|
4958 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
4959 |
+
}
|
4960 |
+
|
4961 |
+
var imagesLoaded = __webpack_require__(/*! imagesloaded */ "./node_modules/imagesloaded/imagesloaded.js");
|
4962 |
|
4963 |
/**
|
4964 |
+
* almMasonry
|
4965 |
+
* Function to trigger built-in Ajax Load More Masonry
|
4966 |
*
|
4967 |
+
* @param {object} alm
|
4968 |
+
* @param {boolean} init
|
4969 |
+
* @param {boolean} filtering
|
4970 |
+
* @since 3.1
|
4971 |
+
* @updated 5.0.2
|
4972 |
+
*/
|
4973 |
+
var almMasonry = function almMasonry(alm, init, filtering) {
|
4974 |
|
4975 |
+
return new Promise(function (resolve) {
|
|
|
|
|
|
|
|
|
|
|
4976 |
|
4977 |
+
var container = alm.listing;
|
4978 |
+
var html = alm.html;
|
|
|
|
|
|
|
4979 |
|
4980 |
+
var selector = alm.masonry_selector;
|
4981 |
+
var columnWidth = alm.masonry_columnwidth;
|
4982 |
+
var animation = alm.masonry_animation;
|
4983 |
+
var horizontalOrder = alm.masonry_horizontalorder;
|
4984 |
+
var speed = alm.speed;
|
4985 |
+
var masonry_init = alm.masonry_init;
|
4986 |
|
4987 |
+
var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
|
4988 |
+
var hidden = 'scale(0.5)';
|
4989 |
+
var visible = 'scale(1)';
|
4990 |
|
4991 |
+
if (animation === 'zoom-out') {
|
4992 |
+
hidden = 'translateY(-20px) scale(1.25)';
|
4993 |
+
visible = 'translateY(0) scale(1)';
|
4994 |
+
}
|
4995 |
|
4996 |
+
if (animation === 'slide-up') {
|
4997 |
+
hidden = 'translateY(50px)';
|
4998 |
+
visible = 'translateY(0)';
|
4999 |
+
}
|
5000 |
|
5001 |
+
if (animation === 'slide-down') {
|
5002 |
+
hidden = 'translateY(-50px)';
|
5003 |
+
visible = 'translateY(0)';
|
|
|
|
|
|
|
|
|
|
|
|
|
5004 |
}
|
|
|
5005 |
|
5006 |
+
if (animation === 'none') {
|
5007 |
+
hidden = 'translateY(0)';
|
5008 |
+
visible = 'translateY(0)';
|
5009 |
+
}
|
5010 |
+
|
5011 |
+
// columnWidth
|
5012 |
+
if (columnWidth) {
|
5013 |
+
if (!isNaN(columnWidth)) {
|
5014 |
+
// Check if number
|
5015 |
+
columnWidth = parseInt(columnWidth);
|
5016 |
}
|
5017 |
+
} else {
|
5018 |
+
// No columnWidth, use the selector
|
5019 |
+
columnWidth = selector;
|
5020 |
}
|
|
|
5021 |
|
5022 |
+
// horizontalOrder
|
5023 |
+
horizontalOrder = horizontalOrder === 'true' ? true : false;
|
5024 |
|
5025 |
+
if (!filtering) {
|
|
|
|
|
|
|
|
|
|
|
5026 |
|
5027 |
+
// First Run
|
5028 |
+
if (masonry_init && init) {
|
5029 |
|
5030 |
+
(0, _srcsetPolyfill2.default)(container, alm.ua); // Run srcSet polyfill
|
5031 |
|
5032 |
+
imagesLoaded(container, function () {
|
|
|
|
|
5033 |
|
5034 |
+
var defaults = {
|
5035 |
+
itemSelector: selector,
|
5036 |
+
transitionDuration: duration,
|
5037 |
+
columnWidth: columnWidth,
|
5038 |
+
horizontalOrder: horizontalOrder,
|
5039 |
+
hiddenStyle: {
|
5040 |
+
transform: hidden,
|
5041 |
+
opacity: 0
|
5042 |
+
},
|
5043 |
+
visibleStyle: {
|
5044 |
+
transform: visible,
|
5045 |
+
opacity: 1
|
5046 |
|
5047 |
+
// Get custom Masonry options (https://masonry.desandro.com/options.html)
|
5048 |
+
} };var alm_masonry_vars = window.alm_masonry_vars;
|
5049 |
+
if (alm_masonry_vars) {
|
5050 |
+
Object.keys(alm_masonry_vars).forEach(function (key) {
|
5051 |
+
// Loop object to create key:prop
|
5052 |
+
defaults[key] = alm_masonry_vars[key];
|
5053 |
+
});
|
5054 |
+
}
|
5055 |
|
5056 |
+
// Create SEO URL, if available
|
5057 |
+
var data = container.querySelectorAll(selector);
|
5058 |
+
data = (0, _seo.createMasonrySEOPages)(alm, Array.prototype.slice.call(data));
|
5059 |
+
|
5060 |
+
// Init Masonry, delay to allow time for items to be added to the page
|
5061 |
+
setTimeout(function () {
|
5062 |
+
alm.msnry = new Masonry(container, defaults);
|
5063 |
+
// Fade In
|
5064 |
+
(0, _fadeIn2.default)(container.parentNode, speed);
|
5065 |
+
resolve(true);
|
5066 |
+
}, 25);
|
5067 |
+
});
|
5068 |
}
|
|
|
|
|
|
|
5069 |
|
5070 |
+
// Standard / Append content
|
5071 |
+
else {
|
|
|
|
|
|
|
|
|
5072 |
|
5073 |
+
// Loop all items and create array of node elements
|
5074 |
+
var data = (0, _stripEmptyNodes2.default)((0, _almDomParser2.default)(html, 'text/html'));
|
5075 |
|
5076 |
+
if (data) {
|
5077 |
+
|
5078 |
+
// Append elements listing
|
5079 |
+
(0, _almAppendChildren2.default)(alm.listing, data, 'masonry');
|
5080 |
|
5081 |
+
// Run srcSet polyfill
|
5082 |
+
(0, _srcsetPolyfill2.default)(container, alm.ua);
|
5083 |
|
5084 |
+
// imagesLoaded & append
|
5085 |
+
imagesLoaded(container, function () {
|
5086 |
|
5087 |
+
alm.msnry.appended(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5088 |
|
5089 |
+
// Set Focus
|
5090 |
+
(0, _setFocus2.default)(alm, data, data.length, false);
|
|
|
|
|
|
|
5091 |
|
5092 |
+
// Create SEO URL, if required
|
5093 |
+
(0, _seo.createMasonrySEOPage)(alm, data[0]);
|
5094 |
|
5095 |
+
resolve(true);
|
5096 |
+
});
|
5097 |
+
}
|
5098 |
+
}
|
5099 |
+
} else {
|
5100 |
|
5101 |
+
// Reset
|
5102 |
+
container.parentNode.style.opacity = 0;
|
5103 |
+
almMasonry(alm, true, false);
|
5104 |
+
resolve(true);
|
5105 |
+
}
|
5106 |
});
|
5107 |
};
|
5108 |
|
5109 |
+
exports.default = almMasonry;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5110 |
|
5111 |
/***/ }),
|
5112 |
|
5113 |
+
/***/ "./core/src/js/modules/noResults.js":
|
5114 |
+
/*!******************************************!*\
|
5115 |
+
!*** ./core/src/js/modules/noResults.js ***!
|
5116 |
+
\******************************************/
|
5117 |
/*! no static exports found */
|
5118 |
/***/ (function(module, exports, __webpack_require__) {
|
5119 |
|
5124 |
value: true
|
5125 |
});
|
5126 |
/**
|
5127 |
+
* Set the results text if required.
|
5128 |
+
*
|
5129 |
+
* @param {*} target The target HTML element
|
5130 |
+
* @param {*} html The HTML
|
5131 |
+
* @since 5.1
|
|
|
5132 |
*/
|
5133 |
+
var almNoResults = function almNoResults(target) {
|
5134 |
+
var html = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
5135 |
|
5136 |
+
if (html === '') {
|
5137 |
+
return false; // exit if empty
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5138 |
}
|
5139 |
+
|
5140 |
+
// Remove empty <p/> tags
|
5141 |
+
html = html.replace(/(<p><\/p>)+/g, '');
|
5142 |
+
|
5143 |
+
// Append to DOM
|
5144 |
+
target.innerHTML = html;
|
5145 |
};
|
5146 |
|
5147 |
+
exports.default = almNoResults;
|
5148 |
|
5149 |
/***/ }),
|
5150 |
|
5151 |
+
/***/ "./core/src/js/modules/placeholder.js":
|
5152 |
+
/*!********************************************!*\
|
5153 |
+
!*** ./core/src/js/modules/placeholder.js ***!
|
5154 |
+
\********************************************/
|
5155 |
/*! no static exports found */
|
5156 |
/***/ (function(module, exports, __webpack_require__) {
|
5157 |
|
5159 |
|
5160 |
|
5161 |
Object.defineProperty(exports, "__esModule", {
|
5162 |
+
value: true
|
5163 |
});
|
5164 |
+
exports.showPlaceholder = showPlaceholder;
|
5165 |
+
exports.hidePlaceholder = hidePlaceholder;
|
5166 |
|
5167 |
+
var _fadeIn = __webpack_require__(/*! ./fadeIn */ "./core/src/js/modules/fadeIn.js");
|
5168 |
|
5169 |
+
var _fadeIn2 = _interopRequireDefault(_fadeIn);
|
5170 |
|
5171 |
+
var _fadeOut = __webpack_require__(/*! ./fadeOut */ "./core/src/js/modules/fadeOut.js");
|
5172 |
+
|
5173 |
+
var _fadeOut2 = _interopRequireDefault(_fadeOut);
|
5174 |
|
5175 |
function _interopRequireDefault(obj) {
|
5176 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
5177 |
+
}
|
5178 |
+
|
5179 |
+
function showPlaceholder(alm) {
|
5180 |
+
if (!alm || !alm.main || alm.addons.paging) {
|
5181 |
+
return false;
|
5182 |
+
}
|
5183 |
+
if (alm.placeholder) {
|
5184 |
+
alm.placeholder.style.display = 'block';
|
5185 |
+
(0, _fadeIn2.default)(alm.placeholder, 75);
|
5186 |
+
}
|
5187 |
+
}
|
5188 |
+
|
5189 |
+
function hidePlaceholder(alm) {
|
5190 |
+
if (!alm || !alm.main || alm.addons.paging) {
|
5191 |
+
return false;
|
5192 |
+
}
|
5193 |
+
if (alm.placeholder) {
|
5194 |
+
(0, _fadeOut2.default)(alm.placeholder, 75);
|
5195 |
+
setTimeout(function () {
|
5196 |
+
alm.placeholder.style.display = 'none';
|
5197 |
+
}, 75);
|
5198 |
+
}
|
5199 |
}
|
5200 |
|
5201 |
+
/***/ }),
|
5202 |
+
|
5203 |
+
/***/ "./core/src/js/modules/resultsText.js":
|
5204 |
+
/*!********************************************!*\
|
5205 |
+
!*** ./core/src/js/modules/resultsText.js ***!
|
5206 |
+
\********************************************/
|
5207 |
+
/*! no static exports found */
|
5208 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5209 |
+
|
5210 |
+
"use strict";
|
5211 |
+
|
5212 |
+
|
5213 |
+
Object.defineProperty(exports, "__esModule", {
|
5214 |
+
value: true
|
5215 |
+
});
|
5216 |
+
exports.almResultsText = almResultsText;
|
5217 |
+
exports.almGetResultsText = almGetResultsText;
|
5218 |
+
exports.almInitResultsText = almInitResultsText;
|
5219 |
/**
|
5220 |
+
* Set the results text if required.
|
5221 |
+
*
|
5222 |
+
* @param {object} alm Global alm object
|
5223 |
+
* @param {string} type Type of results
|
5224 |
+
* @since 5.1
|
5225 |
*/
|
5226 |
+
function almResultsText(alm) {
|
5227 |
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
|
|
5228 |
|
5229 |
+
if (!alm.resultsText || alm.nested === 'true') return false;
|
5230 |
+
var resultsType = type === 'nextpage' || type === 'woocommerce' ? type : 'standard';
|
|
|
|
|
|
|
5231 |
|
5232 |
+
almGetResultsText(alm, resultsType);
|
5233 |
+
}
|
5234 |
|
5235 |
+
/**
|
5236 |
+
* Get values for showing results text.
|
5237 |
+
*
|
5238 |
+
* @param {Object} alm
|
5239 |
+
* @param {String} type
|
5240 |
+
* @since 4.1
|
5241 |
+
*/
|
5242 |
+
function almGetResultsText(alm) {
|
5243 |
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
5244 |
|
5245 |
+
if (!alm.resultsText || alm.nested === 'true') return false;
|
|
|
|
|
|
|
5246 |
|
5247 |
+
var page = 0;
|
5248 |
+
var pages = 0;
|
5249 |
+
var post_count = 0;
|
5250 |
+
var total_posts = 0;
|
5251 |
+
var preloaded = alm.addons.preloaded === 'true' ? true : false;
|
5252 |
+
var paging = alm.addons.paging ? true : false;
|
5253 |
+
var posts_per_page = alm.orginal_posts_per_page;
|
5254 |
|
5255 |
+
switch (type) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5256 |
|
5257 |
+
// Nextpage
|
5258 |
+
case 'nextpage':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5259 |
|
5260 |
+
page = parseInt(alm.localize.page);
|
5261 |
+
post_count = page;
|
5262 |
+
pages = parseInt(alm.localize.total_posts);
|
5263 |
+
total_posts = parseInt(pages);
|
5264 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
5265 |
|
5266 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
5267 |
|
5268 |
+
// WooCommerce
|
5269 |
+
case 'woocommerce':
|
5270 |
+
// Don't do anything
|
5271 |
+
break;
|
5272 |
|
5273 |
+
default:
|
|
|
|
|
5274 |
|
5275 |
+
page = parseInt(alm.page) + 1;
|
5276 |
+
pages = Math.ceil(alm.localize.total_posts / posts_per_page);
|
5277 |
+
post_count = parseInt(alm.localize.post_count);
|
5278 |
+
total_posts = parseInt(alm.localize.total_posts);
|
5279 |
|
5280 |
+
// Add 1 page if Preloaded
|
5281 |
+
if (preloaded) {
|
5282 |
+
page = paging ? alm.page + 1 : page + 1;
|
5283 |
+
}
|
5284 |
|
5285 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5286 |
|
5287 |
+
}
|
|
|
|
|
|
|
|
|
5288 |
}
|
5289 |
|
5290 |
+
/**
|
5291 |
+
* Display `Showing {x} of {y} pages` text.
|
5292 |
+
*
|
5293 |
+
* @param {Object} alm
|
5294 |
+
* @param {String} type
|
5295 |
+
* @since 4.1
|
5296 |
+
*/
|
5297 |
+
function almInitResultsText(alm) {
|
5298 |
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'standard';
|
5299 |
|
5300 |
+
if (!alm.resultsText || !alm.localize || alm.nested === 'true') return false;
|
5301 |
|
5302 |
+
var page = 0;
|
5303 |
+
var pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);
|
5304 |
+
var post_count = parseInt(alm.localize.post_count);
|
5305 |
+
var total_posts = parseInt(alm.localize.total_posts);
|
|
|
5306 |
|
5307 |
+
switch (type) {
|
|
|
|
|
|
|
|
|
5308 |
|
5309 |
+
// Nextpage
|
5310 |
+
case 'nextpage':
|
5311 |
+
page = alm.addons.nextpage_startpage;
|
5312 |
+
post_count = page;
|
5313 |
+
pages = total_posts;
|
5314 |
+
almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts);
|
5315 |
+
break;
|
5316 |
+
|
5317 |
+
// Preloaded
|
5318 |
+
case 'preloaded':
|
5319 |
+
page = alm.addons.paging && alm.addons.seo ? parseInt(alm.start_page) + 1 : parseInt(alm.page) + 1;
|
5320 |
+
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
5321 |
+
break;
|
5322 |
+
|
5323 |
+
// WooCommerce
|
5324 |
+
case 'woocommerce':
|
5325 |
+
// Don't do anything
|
5326 |
+
break;
|
5327 |
+
|
5328 |
+
default:
|
5329 |
+
|
5330 |
+
console.log('No results to set.');
|
5331 |
+
|
5332 |
+
}
|
5333 |
}
|
5334 |
|
5335 |
+
/**
|
5336 |
+
* Render `Showing {x} of {y} results` text.
|
5337 |
+
*
|
5338 |
+
* @param {Element} el
|
5339 |
+
* @param {String} page
|
5340 |
+
* @param {String} pages
|
5341 |
+
* @param {String} post_count
|
5342 |
+
* @param {String} total_posts
|
5343 |
+
* @since 4.1
|
5344 |
+
*/
|
5345 |
+
var almRenderResultsText = function almRenderResultsText(el, page, pages, post_count, total_posts) {
|
5346 |
+
|
5347 |
+
el.forEach(function (result) {
|
5348 |
+
|
5349 |
+
pages = parseInt(pages);
|
5350 |
+
var text = pages > 0 ? alm_localize.results_text : alm_localize.no_results_text;
|
5351 |
+
|
5352 |
+
if (pages > 0) {
|
5353 |
+
text = text.replace('{num}', '<span class="alm-results-num">' + page + '</span>'); // Deprecated
|
5354 |
+
text = text.replace('{page}', '<span class="alm-results-page">' + page + '</span>');
|
5355 |
+
text = text.replace('{total}', '<span class="alm-results-total">' + pages + '</span>'); // Deprecated
|
5356 |
+
text = text.replace('{pages}', '<span class="alm-results-pages">' + pages + '</span>');
|
5357 |
+
text = text.replace('{post_count}', '<span class="alm-results-post_count">' + post_count + '</span>');
|
5358 |
+
text = text.replace('{total_posts}', '<span class="alm-results-total_posts">' + total_posts + '</span>');
|
5359 |
+
result.innerHTML = text;
|
5360 |
+
} else {
|
5361 |
+
result.innerHTML = text;
|
5362 |
+
}
|
5363 |
+
});
|
5364 |
+
};
|
5365 |
+
|
5366 |
/***/ }),
|
5367 |
|
5368 |
+
/***/ "./core/src/js/modules/setFocus.js":
|
5369 |
+
/*!*****************************************!*\
|
5370 |
+
!*** ./core/src/js/modules/setFocus.js ***!
|
5371 |
+
\*****************************************/
|
5372 |
/*! no static exports found */
|
5373 |
/***/ (function(module, exports, __webpack_require__) {
|
5374 |
|
5378 |
Object.defineProperty(exports, "__esModule", {
|
5379 |
value: true
|
5380 |
});
|
5381 |
+
/**
|
5382 |
+
* setFocus
|
5383 |
+
* Set user focus to improve accessibility after load events
|
5384 |
+
*
|
5385 |
+
* @param {Object} alm
|
5386 |
+
* @param {HTMLElement} preloaded
|
5387 |
+
* @param {Number} total
|
5388 |
+
* @param {Boolean} is_filtering
|
5389 |
+
* @since 5.1
|
5390 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
5391 |
|
5392 |
+
var setFocus = function setFocus(alm) {
|
5393 |
+
var element = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
5394 |
+
var total = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
5395 |
+
var is_filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5396 |
|
5397 |
+
if (!alm_localize.a11y_focus) {
|
5398 |
+
return false;
|
5399 |
+
}
|
5400 |
|
5401 |
+
// WooCommerce Add-on
|
5402 |
+
if (alm.addons.woocommerce) {
|
5403 |
+
moveFocus(false, false, element, false, alm.isSafari);
|
5404 |
+
return;
|
5405 |
+
}
|
5406 |
|
5407 |
+
// Has Total
|
5408 |
+
if (alm.transition_container && total > 0) {
|
5409 |
+
if (alm.addons.paging) {
|
5410 |
+
// Paging
|
5411 |
+
moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
|
5412 |
+
} else if (alm.addons.single_post || alm.addons.nextpage) {
|
5413 |
+
// Single Posts OR Next Page, set `init` to false to trigger focus
|
5414 |
+
moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
5415 |
+
} else {
|
5416 |
+
// Standard ALM
|
5417 |
+
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
5418 |
+
}
|
5419 |
+
} else if (!alm.transition_container) {
|
5420 |
+
// Table Layout, no transition container
|
5421 |
+
moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
|
5422 |
+
}
|
5423 |
+
};
|
5424 |
+
exports.default = setFocus;
|
5425 |
|
5426 |
+
/**
|
5427 |
+
* moveFocus
|
5428 |
+
* Move user focus to alm-reveal div
|
5429 |
+
*
|
5430 |
+
* @param {Boolean} init
|
5431 |
+
* @param {String} preloaded
|
5432 |
+
* @param {HTMLElement} element
|
5433 |
+
* @param {Boolean} is_filtering
|
5434 |
+
* @param {Boolean} isSafari
|
5435 |
+
* @since 5.1
|
5436 |
*/
|
|
|
5437 |
|
5438 |
+
var moveFocus = function moveFocus() {
|
5439 |
+
var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
5440 |
+
var preloaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'false';
|
5441 |
+
var element = arguments[2];
|
5442 |
+
var is_filtering = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
5443 |
+
var isSafari = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
5444 |
+
|
5445 |
+
if (!is_filtering) {
|
5446 |
+
if ((init || !element) && preloaded !== 'true') {
|
5447 |
+
return false; // Exit if first run
|
5448 |
}
|
5449 |
+
}
|
|
|
5450 |
|
5451 |
+
// Check if element is an array.
|
5452 |
+
// If `transition_container="false"`, `element` will be an array.
|
5453 |
+
/*
|
5454 |
+
let is_array = Array.isArray(element);
|
5455 |
+
element = (is_array) ? element[0] : element;
|
5456 |
+
*/
|
5457 |
|
5458 |
+
// Set tabIndex and style on element
|
5459 |
+
element.setAttribute('tabIndex', '-1');
|
5460 |
+
element.style.outline = 'none';
|
5461 |
|
5462 |
+
// Get Parent container
|
5463 |
+
// If `.alm-listing` set parent to element
|
5464 |
+
var parent = !element.classList.contains('alm-listing') ? element.parentNode : element;
|
5465 |
|
5466 |
+
// Scroll Container
|
5467 |
+
var scrollContainer = parent.dataset.scrollContainer;
|
5468 |
+
|
5469 |
+
// If scroll container, move it, not the window.
|
5470 |
+
if (scrollContainer) {
|
5471 |
+
var container = document.querySelector(scrollContainer);
|
5472 |
+
if (container) {
|
5473 |
+
//let left = container.scrollLeft;
|
5474 |
+
//let top = container.scrollTop;
|
5475 |
+
//element.focus();
|
5476 |
+
//container.scrollLeft = left;
|
5477 |
+
//container.scrollTop = top;
|
5478 |
+
setTimeout(function () {
|
5479 |
+
element.focus({ preventScroll: true });
|
5480 |
+
}, 50);
|
5481 |
+
}
|
5482 |
}
|
5483 |
|
5484 |
+
// Move window
|
5485 |
+
else {
|
5486 |
|
5487 |
+
setTimeout(function () {
|
5488 |
+
element.focus({ preventScroll: true });
|
5489 |
+
}, 50);
|
|
|
|
|
|
|
|
|
|
|
5490 |
|
5491 |
+
//let x = window.scrollX;
|
5492 |
+
//let y = window.scrollY;
|
|
|
5493 |
|
5494 |
+
// Safari fix for window movement if Y = 0
|
5495 |
+
//if(isSafari){
|
5496 |
+
//window.scrollTo(x, y);
|
5497 |
+
//y = (y === 0) ? 1 : y;
|
5498 |
+
//}
|
5499 |
+
//element.focus();
|
5500 |
+
//window.scrollTo(x, y);
|
5501 |
+
}
|
5502 |
+
};
|
5503 |
|
5504 |
+
/***/ }),
|
|
|
5505 |
|
5506 |
+
/***/ "./core/src/js/modules/setLocalizedVars.js":
|
5507 |
+
/*!*************************************************!*\
|
5508 |
+
!*** ./core/src/js/modules/setLocalizedVars.js ***!
|
5509 |
+
\*************************************************/
|
5510 |
+
/*! no static exports found */
|
5511 |
+
/***/ (function(module, exports, __webpack_require__) {
|
|
|
5512 |
|
5513 |
+
"use strict";
|
|
|
|
|
5514 |
|
|
|
|
|
5515 |
|
5516 |
+
Object.defineProperty(exports, "__esModule", {
|
5517 |
+
value: true
|
5518 |
+
});
|
5519 |
|
5520 |
+
var _resultsText = __webpack_require__(/*! ./resultsText */ "./core/src/js/modules/resultsText.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
5521 |
|
5522 |
+
var resultsText = _interopRequireWildcard(_resultsText);
|
5523 |
+
|
5524 |
+
function _interopRequireWildcard(obj) {
|
5525 |
+
if (obj && obj.__esModule) {
|
5526 |
+
return obj;
|
5527 |
+
} else {
|
5528 |
+
var newObj = {};if (obj != null) {
|
5529 |
+
for (var key in obj) {
|
5530 |
+
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
|
5531 |
+
}
|
5532 |
+
}newObj.default = obj;return newObj;
|
5533 |
}
|
5534 |
}
|
5535 |
|
5536 |
/**
|
5537 |
+
* Set localized variables
|
|
|
5538 |
*
|
5539 |
+
* @param {object} alm Global alm object
|
5540 |
+
* @since 4.1
|
|
|
|
|
5541 |
*/
|
|
|
|
|
5542 |
|
5543 |
+
var setLocalizedVars = function setLocalizedVars(alm) {
|
|
|
|
|
5544 |
|
5545 |
return new Promise(function (resolve) {
|
5546 |
|
5547 |
+
var type = 'standard';
|
|
|
|
|
5548 |
|
5549 |
+
// Current Page `page`
|
5550 |
|
5551 |
+
// nextpage
|
5552 |
+
if (alm.addons.nextpage) {
|
5553 |
+
type = 'nextpage';
|
5554 |
+
if (alm.addons.paging) {
|
5555 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
5556 |
+
} else {
|
5557 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1);
|
5558 |
+
}
|
5559 |
+
}
|
5560 |
+
// woocommerce
|
5561 |
+
else if (alm.addons.woocommerce) {
|
5562 |
+
type = 'woocommerce';
|
5563 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
5564 |
+
} else {
|
5565 |
+
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
5566 |
+
}
|
5567 |
|
5568 |
+
// Total Posts `total_posts`.
|
5569 |
+
// Only update if !preloaded && !nextpage && !woocommerce
|
5570 |
+
if (alm.addons.preloaded !== 'true' && !alm.addons.nextpage && !alm.addons.woocommerce) {
|
5571 |
+
alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);
|
5572 |
+
}
|
|
|
|
|
|
|
5573 |
|
5574 |
+
// Viewing
|
5575 |
+
alm.AjaxLoadMore.setLocalizedVar('post_count', almSetPostCount(alm));
|
5576 |
|
5577 |
+
// Set Results Text (if required)
|
5578 |
+
resultsText.almResultsText(alm, type);
|
5579 |
+
|
5580 |
+
resolve(true);
|
|
|
|
|
|
|
|
|
|
|
|
|
5581 |
});
|
5582 |
+
};
|
5583 |
+
|
5584 |
+
exports.default = setLocalizedVars;
|
5585 |
|
5586 |
/**
|
5587 |
+
* almSetViewing
|
5588 |
+
* Get total post_count
|
|
|
|
|
|
|
|
|
|
|
|
|
5589 |
*/
|
|
|
5590 |
|
5591 |
+
function almSetPostCount(alm) {
|
5592 |
+
var pc = parseInt(alm.posts);
|
5593 |
+
var pa = parseInt(alm.addons.preloaded_amount);
|
5594 |
+
var count = pc + pa;
|
5595 |
+
count = alm.start_page > 1 ? count - pa : count; // SEO
|
5596 |
+
count = alm.addons.filters_startpage > 1 ? count - pa : count; // Filters
|
5597 |
+
count = alm.addons.single_post ? count + 1 : count; // Single Posts
|
5598 |
+
count = alm.addons.nextpage ? count + 1 : count; // Next Page
|
5599 |
|
5600 |
+
return count;
|
5601 |
+
}
|
|
|
5602 |
|
5603 |
+
/***/ }),
|
5604 |
|
5605 |
+
/***/ "./core/src/js/modules/tableofcontents.js":
|
5606 |
+
/*!************************************************!*\
|
5607 |
+
!*** ./core/src/js/modules/tableofcontents.js ***!
|
5608 |
+
\************************************************/
|
5609 |
+
/*! no static exports found */
|
5610 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5611 |
|
5612 |
+
"use strict";
|
|
|
|
|
|
|
|
|
5613 |
|
|
|
|
|
|
|
5614 |
|
5615 |
+
Object.defineProperty(exports, "__esModule", {
|
5616 |
+
value: true
|
5617 |
+
});
|
5618 |
+
exports.tableOfContents = tableOfContents;
|
5619 |
+
exports.clearTOC = clearTOC;
|
5620 |
|
5621 |
+
var _ajaxLoadMore = __webpack_require__(/*! ../ajax-load-more */ "./core/src/js/ajax-load-more.js");
|
|
|
5622 |
|
5623 |
+
var _setFocus = __webpack_require__(/*! ./setFocus */ "./core/src/js/modules/setFocus.js");
|
5624 |
+
|
5625 |
+
var _setFocus2 = _interopRequireDefault(_setFocus);
|
5626 |
+
|
5627 |
+
function _interopRequireDefault(obj) {
|
5628 |
+
return obj && obj.__esModule ? obj : { default: obj };
|
5629 |
+
}
|
5630 |
+
|
5631 |
+
/**
|
5632 |
+
* Create a numbered table of contents navigation
|
5633 |
+
*
|
5634 |
+
* @param {object} alm
|
5635 |
+
* @param {boolean} init
|
5636 |
+
* @since 5.2
|
5637 |
+
*/
|
5638 |
+
function tableOfContents(alm) {
|
5639 |
+
var init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
5640 |
+
var from_preloaded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
5641 |
|
5642 |
+
var totalPosts = alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;
|
5643 |
+
if (totalPosts == 0 && !alm.addons.single_post) {
|
5644 |
+
// Exit if zero posts and not single posts
|
5645 |
+
return false;
|
5646 |
+
}
|
5647 |
|
5648 |
+
if (alm && alm.tableofcontents && alm.transition_container && alm.transition !== 'masonry') {
|
|
|
5649 |
|
5650 |
+
var offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;
|
5651 |
+
var startPage = alm.start_page ? parseInt(alm.start_page) : 0;
|
5652 |
+
var filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;
|
5653 |
+
var nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;
|
5654 |
+
var page = parseInt(alm.page);
|
5655 |
+
var preloaded = alm.addons.preloaded === 'true' ? true : false;
|
5656 |
|
5657 |
+
// Exit if Paging or Next Page
|
5658 |
+
if (alm.addons.paging || alm.addons.nextpage) {
|
5659 |
+
return false;
|
5660 |
+
}
|
5661 |
|
5662 |
+
// Init
|
5663 |
|
5664 |
+
if (init) {
|
5665 |
+
setTimeout(function () {
|
5666 |
+
// Paged results
|
5667 |
+
if (alm.addons.seo && startPage > 1 || alm.addons.filters && filterStartPage > 1 || alm.addons.nextpage && nextpageStartPage > 1) {
|
5668 |
+
// SEO
|
5669 |
+
if (alm.addons.seo && startPage > 1) {
|
5670 |
+
for (var i = 0; i < startPage; i++) {
|
5671 |
+
createTOCButton(alm, i, offset);
|
5672 |
}
|
5673 |
+
}
|
5674 |
+
// Filters
|
5675 |
+
if (alm.addons.filters && filterStartPage > 1) {
|
5676 |
+
for (var _i = 0; _i < filterStartPage; _i++) {
|
5677 |
+
createTOCButton(alm, _i, offset);
|
5678 |
+
}
|
5679 |
+
}
|
5680 |
+
// Nextpage
|
5681 |
+
if (alm.addons.nextpage && nextpageStartPage > 1) {
|
5682 |
+
for (var _i2 = 0; _i2 < nextpageStartPage; _i2++) {
|
5683 |
+
createTOCButton(alm, _i2, offset);
|
5684 |
+
}
|
5685 |
+
}
|
5686 |
+
} else {
|
5687 |
+
if (!from_preloaded && preloaded) {
|
5688 |
+
page = page + 1;
|
5689 |
+
}
|
5690 |
+
createTOCButton(alm, page, offset);
|
5691 |
+
}
|
5692 |
+
}, 100);
|
5693 |
+
} else {
|
5694 |
|
5695 |
+
// Preloaded
|
5696 |
+
if (preloaded) {
|
5697 |
+
if (alm.addons.seo && startPage > 0) {
|
5698 |
+
page = page;
|
5699 |
+
} else if (alm.addons.filters && filterStartPage > 0) {
|
5700 |
+
page = page;
|
5701 |
+
} else {
|
5702 |
+
page = page + 1;
|
5703 |
}
|
5704 |
}
|
5705 |
+
|
5706 |
+
createTOCButton(alm, page, offset);
|
5707 |
}
|
5708 |
+
}
|
5709 |
+
}
|
5710 |
|
5711 |
+
// Clear table of contents
|
5712 |
+
function clearTOC() {
|
5713 |
+
var toc = document.querySelector('.alm-toc');
|
5714 |
+
if (toc) {
|
5715 |
+
toc.innerHTML = '';
|
5716 |
+
}
|
5717 |
+
}
|
5718 |
|
5719 |
+
// Create Standard Page Button
|
5720 |
+
function createTOCButton(alm, page, offset) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5721 |
|
5722 |
+
if (!alm.tableofcontents) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5723 |
return false;
|
5724 |
}
|
5725 |
|
5726 |
+
var button = document.createElement('button');
|
5727 |
+
button.type = "button";
|
|
|
5728 |
|
5729 |
+
page = parseInt(page) + 1;
|
5730 |
+
button.innerHTML = getTOCLabel(alm, page);
|
5731 |
+
button.dataset.page = page;
|
5732 |
+
alm.tableofcontents.appendChild(button);
|
5733 |
+
|
5734 |
+
button.addEventListener('click', function (e) {
|
5735 |
+
var page = this.dataset.page;
|
5736 |
+
var target = document.querySelector('.alm-reveal:nth-child(' + page + ')') || document.querySelector('.alm-nextpage:nth-child(' + page + ')');
|
5737 |
+
if (!target) {
|
5738 |
+
return false;
|
5739 |
+
}
|
5740 |
+
var top = typeof _ajaxLoadMore.getOffset === 'function' ? (0, _ajaxLoadMore.getOffset)(target).top : target.offsetTop;
|
5741 |
+
(0, _ajaxLoadMore.almScroll)(top - offset);
|
5742 |
+
|
5743 |
+
// Set Focus for A11y
|
5744 |
+
setTimeout(function () {
|
5745 |
+
(0, _setFocus2.default)(alm, target, page, false);
|
5746 |
+
}, 1000);
|
5747 |
+
});
|
5748 |
}
|
5749 |
|
5750 |
+
// Get Button Label
|
5751 |
+
function getTOCLabel(alm, page) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5752 |
|
5753 |
+
var label = page;
|
5754 |
+
|
5755 |
+
// Single Posts
|
5756 |
+
if (alm.addons.single_post) {
|
5757 |
+
var element = document.querySelector('.alm-reveal.alm-single-post[data-page="' + (page - 1) + '"]');
|
5758 |
+
label = element ? element.dataset.title : label;
|
|
|
|
|
|
|
|
|
|
|
5759 |
}
|
|
|
5760 |
|
5761 |
+
// Dynamic function name
|
5762 |
+
var funcName = 'almTOCLabel_' + alm.id;
|
5763 |
+
if (typeof window[funcName] === 'function') {
|
5764 |
+
label = window[funcName](page, label);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5765 |
}
|
5766 |
+
|
5767 |
+
return label;
|
5768 |
}
|
5769 |
|
5770 |
/***/ }),
|
17136 |
}));
|
17137 |
|
17138 |
|
17139 |
+
/***/ }),
|
17140 |
+
|
17141 |
+
/***/ "./node_modules/focus-options-polyfill/index.js":
|
17142 |
+
/*!******************************************************!*\
|
17143 |
+
!*** ./node_modules/focus-options-polyfill/index.js ***!
|
17144 |
+
\******************************************************/
|
17145 |
+
/*! no static exports found */
|
17146 |
+
/***/ (function(module, exports) {
|
17147 |
+
|
17148 |
+
// focus - focusOptions - preventScroll polyfill
|
17149 |
+
(function() {
|
17150 |
+
if (
|
17151 |
+
typeof window === "undefined" ||
|
17152 |
+
typeof document === "undefined" ||
|
17153 |
+
typeof HTMLElement === "undefined"
|
17154 |
+
) {
|
17155 |
+
return;
|
17156 |
+
}
|
17157 |
+
|
17158 |
+
var supportsPreventScrollOption = false;
|
17159 |
+
try {
|
17160 |
+
var focusElem = document.createElement("div");
|
17161 |
+
focusElem.addEventListener(
|
17162 |
+
"focus",
|
17163 |
+
function(event) {
|
17164 |
+
event.preventDefault();
|
17165 |
+
event.stopPropagation();
|
17166 |
+
},
|
17167 |
+
true
|
17168 |
+
);
|
17169 |
+
focusElem.focus(
|
17170 |
+
Object.defineProperty({}, "preventScroll", {
|
17171 |
+
get: function() {
|
17172 |
+
supportsPreventScrollOption = true;
|
17173 |
+
}
|
17174 |
+
})
|
17175 |
+
);
|
17176 |
+
} catch (e) {}
|
17177 |
+
|
17178 |
+
if (
|
17179 |
+
HTMLElement.prototype.nativeFocus === undefined &&
|
17180 |
+
!supportsPreventScrollOption
|
17181 |
+
) {
|
17182 |
+
HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;
|
17183 |
+
|
17184 |
+
var calcScrollableElements = function(element) {
|
17185 |
+
var parent = element.parentNode;
|
17186 |
+
var scrollableElements = [];
|
17187 |
+
var rootScrollingElement =
|
17188 |
+
document.scrollingElement || document.documentElement;
|
17189 |
+
|
17190 |
+
while (parent && parent !== rootScrollingElement) {
|
17191 |
+
if (
|
17192 |
+
parent.offsetHeight < parent.scrollHeight ||
|
17193 |
+
parent.offsetWidth < parent.scrollWidth
|
17194 |
+
) {
|
17195 |
+
scrollableElements.push([
|
17196 |
+
parent,
|
17197 |
+
parent.scrollTop,
|
17198 |
+
parent.scrollLeft
|
17199 |
+
]);
|
17200 |
+
}
|
17201 |
+
parent = parent.parentNode;
|
17202 |
+
}
|
17203 |
+
parent = rootScrollingElement;
|
17204 |
+
scrollableElements.push([parent, parent.scrollTop, parent.scrollLeft]);
|
17205 |
+
|
17206 |
+
return scrollableElements;
|
17207 |
+
};
|
17208 |
+
|
17209 |
+
var restoreScrollPosition = function(scrollableElements) {
|
17210 |
+
for (var i = 0; i < scrollableElements.length; i++) {
|
17211 |
+
scrollableElements[i][0].scrollTop = scrollableElements[i][1];
|
17212 |
+
scrollableElements[i][0].scrollLeft = scrollableElements[i][2];
|
17213 |
+
}
|
17214 |
+
scrollableElements = [];
|
17215 |
+
};
|
17216 |
+
|
17217 |
+
var patchedFocus = function(args) {
|
17218 |
+
if (args && args.preventScroll) {
|
17219 |
+
var evScrollableElements = calcScrollableElements(this);
|
17220 |
+
this.nativeFocus();
|
17221 |
+
restoreScrollPosition(evScrollableElements);
|
17222 |
+
}
|
17223 |
+
else {
|
17224 |
+
this.nativeFocus();
|
17225 |
+
}
|
17226 |
+
};
|
17227 |
+
|
17228 |
+
HTMLElement.prototype.focus = patchedFocus;
|
17229 |
+
}
|
17230 |
+
})();
|
17231 |
+
|
17232 |
+
|
17233 |
/***/ }),
|
17234 |
|
17235 |
/***/ "./node_modules/imagesloaded/imagesloaded.js":
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e,n){var r=n(1),o=n(9),a=n(15),i=n(10),s=n(22),c=function(t,e,n){var l,u,d,f,p=t&c.F,g=t&c.G,h=t&c.S,m=t&c.P,v=t&c.B,y=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,_=g?o:o[e]||(o[e]={}),b=_.prototype||(_.prototype={});for(l in g&&(n=e),n)d=((u=!p&&y&&void 0!==y[l])?y:n)[l],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&i(y,l,d,t&c.U),_[l]!=d&&a(_,l,f),m&&b[l]!=d&&(b[l]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(49)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(18),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3),o=n(102),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(177),c=(""+s).split("toString");n(9).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(a(n,i)||o(n,i,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||s.call(this)})},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";var r=n(94),o=n(136),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===a.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(44),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(45),o=n(29),a=n(16),i=n(27),s=n(14),c=n(102),l=Object.getOwnPropertyDescriptor;e.f=n(8)?l:function(t,e){if(t=a(t),e=i(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(9),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},function(t,e,n){var r=n(22),o=n(44),a=n(11),i=n(6),s=n(267);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),y=o(v),_=r(s,g,3),b=i(y.length),w=0,x=n?p(e,b):c?p(e,0):void 0;b>w;w++)if((f||w in y)&&(m=_(h=y[w],w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(u)return!1;return d?-1:l||u?u:x}}},function(t,e,n){var r=n(23);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(60),c=n(92),l=n(22),u=n(42),d=n(29),f=n(15),p=n(43),g=n(18),h=n(6),m=n(128),v=n(33),y=n(27),_=n(14),b=n(46),w=n(4),x=n(11),S=n(84),A=n(34),j=n(36),L=n(35).f,P=n(86),E=n(30),O=n(5),M=n(21),T=n(50),I=n(47),C=n(88),F=n(39),N=n(53),k=n(41),R=n(87),q=n(119),D=n(7),z=n(19),B=D.f,U=z.f,W=o.RangeError,H=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=c.ArrayBuffer,X=c.DataView,Q=M(0),$=M(2),K=M(3),J=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=C.values,ot=C.keys,at=C.entries,it=G.lastIndexOf,st=G.reduce,ct=G.reduceRight,lt=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=O("iterator"),ht=O("toStringTag"),mt=E("typed_constructor"),vt=E("def_constructor"),yt=s.CONSTR,_t=s.TYPED,bt=s.VIEW,wt=M(1,function(t,e){return Lt(I(t,t[vt]),e)}),xt=a(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),St=!!V&&!!V.prototype.set&&a(function(){new V(1).set({})}),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(w(t)&&_t in t)return t;throw H(t+" is not a typed array!")},Lt=function(t,e){if(!(w(t)&&mt in t))throw H("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Et(I(t,t[vt]),e)},Et=function(t,e){for(var n=0,r=e.length,o=Lt(t,r);r>n;)o[n]=e[n++];return o},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=x(t),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=P(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&c>2&&(u=l(u,arguments[2],2)),e=0,n=h(s.length),o=Lt(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Lt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a(function(){pt.call(new V(1))}),Ct=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ft={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Pt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return ct.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Pt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=y(e,!0))?d(2,t[e]):U(t,e)},zt=function(t,e,n){return!(qt(t,e=y(e,!0))&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};yt||(z.f=Dt,D.f=zt),i(i.S+i.F*!yt,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a(function(){ft.call({})})&&(ft=pt=function(){return lt.call(this)});var Bt=p({},Ft);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ct}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,ht,{get:function(){return this[_t]}}),t.exports=function(t,e,n,c){var l=t+((c=!!c)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[l],v=g||{},y=g&&j(g),_=!g||!s.ABV,x={},S=g&&g.prototype,P=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};_?(g=n(function(t,n,r,o){u(t,g,l,"_d");var a,i,s,c,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=b(n))||"SharedArrayBuffer"==c))return _t in n?Et(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=h(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)P(t,d++)}),S=g.prototype=A(Bt),f(S,"constructor",g)):a(function(){g(1)})&&a(function(){new g(-1)})&&N(function(t){new g,new g(null),new g(1.5),new g(t)},!0)||(g=n(function(t,n,r,o){var a;return u(t,g,l),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):_t in n?Et(g,n):Mt.call(g,n):new v(m(n))}),Q(y!==Function.prototype?L(v).concat(L(y)):L(v),function(t){t in g||f(g,t,v[t])}),g.prototype=S,r||(S.constructor=g));var E=S[gt],O=!!E&&("values"==E.name||null==E.name),M=Rt.values;f(g,mt,!0),f(S,_t,l),f(S,bt,!0),f(S,vt,g),(c?new g(1)[ht]==l:ht in S)||B(S,ht,{get:function(){return l}}),x[l]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,l,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a(function(){v.of.call(g,1)}),l,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,l,Ft),k(l),i(i.P+i.F*St,l,{set:kt}),i(i.P+i.F*!O,l,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a(function(){new g(1).slice()}),l,{slice:Nt}),i(i.P+i.F*(a(function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()})||!a(function(){S.toLocaleString.call([1,2])})),l,{toLocaleString:Ct}),F[l]=O?E:M,r||O||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(7).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(2)(function(){return c(Object.preventExtensions({}))}),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return l&&d.NEED&&c(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(104),o=n(70);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(18),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(105),a=n(70),i=n(69)("IE_PROTO"),s=function(){},c=function(){var t,e=n(67)("iframe"),r=a.length;for(e.style.display="none",n(72).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[a[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(104),o=n(70).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(11),a=n(69)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(7).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(1),o=n(7),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(23),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval(function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1},e);t.style.height="auto"}}},function(t,e,n){var r=n(9),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,c=r(e),l=o(c.length),u=a(i,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(74),s="["+i+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a(function(){return!!i[t]()||"
"!="
"[t]()}),c=o[t]=s?e(d):i[t];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(46),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(121);var r=n(10),o=n(15),a=n(2),i=n(25),s=n(5),c=n(89),l=s("species"),u=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),g=p?!a(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!e}):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],function(t,e,n,r,o){return e.exec===c?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],y=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(22),o=n(117),a=n(84),i=n(3),s=n(6),c=n(86),l={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:c(t),y=r(n,d,e?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>_;_++)if((m=e?y(i(g=t[_])[0],g[1]):y(t[_]))===l||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,y,g.value,e))===l||m===u)return m}).BREAK=l,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(10),i=n(43),s=n(28),c=n(57),l=n(42),u=n(4),d=n(2),f=n(53),p=n(38),g=n(75);t.exports=function(t,e,n,h,m,v){var y=r[t],_=y,b=m?"set":"add",w=_&&_.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(v||w.forEach&&!d(function(){(new _).entries().next()}))){var A=new _,j=A[b](v?{}:-0,1)!=A,L=d(function(){A.has(1)}),P=f(function(t){new _(t)}),E=!v&&d(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});P||((_=e(function(e,n){l(e,_,t);var r=g(new y,e,_);return null!=n&&c(n,m,r[b],r),r})).prototype=w,w.constructor=_),(L||E)&&(S("delete"),S("has"),m&&S("get")),(E||j)&&S(b),v&&w.clear&&delete w.clear}else _=h.getConstructor(e,t,m,b),i(_.prototype,n),s.NEED=!0;return p(_,t),x[t]=_,o(o.G+o.W+o.F*(_!=y),x),v||h.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),c=i("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(139),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=n(95):void 0!==e&&(s=n(95)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(a)}),t.exports=c}).call(this,n(138))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=(new DOMParser).parseFromString(t,e);return n?Array.prototype.slice.call(n.body.childNodes):n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||"table"!==t.container_type||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var a=(n.classList.contains("alm-listing")?n:n.parentNode).dataset.scrollContainer;if(a){var i=document.querySelector(a);if(i){var s=i.scrollLeft,c=i.scrollTop;n.focus(),i.scrollLeft=s,i.scrollTop=c}}else{var l=window.scrollX,u=window.scrollY;o&&(window.scrollTo(l,u),u=0===u?1:u),n.focus(),window.scrollTo(l,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
@@ -9,11 +9,11 @@ var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;
|
|
9 |
* JavaScript is all like "You images are done yet or what?"
|
10 |
* MIT License
|
11 |
*/
|
12 |
-
!function(a,i){"use strict";r=[n(165)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var c=t;"string"==typeof t&&(c=document.querySelectorAll(t)),c?(this.elements=function(t){if(Array.isArray(t))return t;if("object"==typeof t&&"number"==typeof t.length)return a.call(t);return[t]}(c),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function c(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new l(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout(function(){t.progress(e,n,r)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(c.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval(function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1},e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(49)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(22)(Function.call,n(19).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(73).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(18),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(18),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),c=r(n),l=s.length;return c<0||c>=l?t?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(i=s.charCodeAt(c+1))<56320||i>57343?t?s.charAt(c):a:t?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(10),i=n(15),s=n(39),c=n(116),l=n(38),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){c(n,e,g);var y,_,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,L=j[d]||j["@@iterator"]||h&&j[h],P=L||w(h),E=h?S?w("entries"):P:void 0,O="Array"==e&&j.entries||L;if(O&&(b=u(O.call(new t)))!==Object.prototype&&b.next&&(l(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&L&&"values"!==L.name&&(A=!0,P=function(){return L.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,P),s[e]=P,s[x]=p,h)if(y={values:S?P:w("values"),keys:m?P:w("keys"),entries:E},v)for(_ in y)_ in j||a(j,_,y[_]);else o(o.P+o.F*(f||A),e,y);return y}},function(t,e,n){var r=n(82),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(39),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(7),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(46),o=n(5)("iterator"),a=n(39);t.exports=n(9).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(11),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(40),o=n(120),a=n(39),i=n(16);t.exports=n(80)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(54),i=RegExp.prototype.exec,s=String.prototype.replace,c=i,l=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,o,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",a.call(c))),l&&(e=c.lastIndex),r=i.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,e,n){"use strict";var r=n(79)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(22),s=n(110),c=n(72),l=n(67),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(y,t,1))}:h&&h.now?r=function(t){h.now(i(y,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=_,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(i(y,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(60),s=n(15),c=n(43),l=n(2),u=n(42),d=n(18),f=n(6),p=n(128),g=n(35).f,h=n(7).f,m=n(87),v=n(38),y="prototype",_="Wrong index!",b=r.ArrayBuffer,w=r.DataView,x=r.Math,S=r.RangeError,A=r.Infinity,j=b,L=x.abs,P=x.pow,E=x.floor,O=x.log,M=x.LN2,T=o?"_b":"buffer",I=o?"_l":"byteLength",C=o?"_o":"byteOffset";function F(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,c=(1<<s)-1,l=c>>1,u=23===e?P(2,-24)-P(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=L(t))!=t||t===A?(o=t!=t?1:0,r=c):(r=E(O(t)/M),t*(a=P(2,-r))<1&&(r--,a*=2),(t+=r+l>=1?u/a:u*P(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(t*a-1)*P(2,e),r+=l):(o=t*P(2,l-1)*P(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function N(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;s>0;u=256*u+t[c],c--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[c],c--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:l?-A:A;r+=P(2,e),u-=i}return(l?-1:1)*r*P(2,u-e)}function k(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function q(t){return[255&t,t>>8&255]}function D(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return F(t,52,8)}function B(t){return F(t,23,4)}function U(t,e,n){h(t[y],e,{get:function(){return this[n]}})}function W(t,e,n,r){var o=p(+n);if(o+e>t[I])throw S(_);var a=t[T]._b,i=o+t[C],s=a.slice(i,i+e);return r?s:s.reverse()}function H(t,e,n,r,o,a){var i=p(+n);if(i+e>t[I])throw S(_);for(var s=t[T]._b,c=i+t[C],l=r(+o),u=0;u<e;u++)s[c+u]=l[a?u:e-u-1]}if(i.ABV){if(!l(function(){b(1)})||!l(function(){new b(-1)})||l(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var V,G=(b=function(t){return u(this,b),new j(p(t))})[y]=j[y],Y=g(j),X=0;Y.length>X;)(V=Y[X++])in b||s(b,V,j[V]);a||(G.constructor=b)}var Q=new w(new b(2)),$=w[y].setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||c(w[y],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else b=function(t){u(this,b,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[I]=e},w=function(t,e,n){u(this,w,"DataView"),u(t,b,"DataView");var r=t[I],o=d(e);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw S("Wrong length!");this[T]=t,this[C]=o,this[I]=n},o&&(U(b,"byteLength","_l"),U(w,"buffer","_b"),U(w,"byteLength","_l"),U(w,"byteOffset","_o")),c(w[y],{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return k(W(this,4,t,arguments[1]))},getUint32:function(t){return k(W(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return N(W(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return N(W(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){H(this,1,t,R,e)},setUint8:function(t,e){H(this,1,t,R,e)},setInt16:function(t,e){H(this,2,t,q,e,arguments[2])},setUint16:function(t,e){H(this,2,t,q,e,arguments[2])},setInt32:function(t,e){H(this,4,t,D,e,arguments[2])},setUint32:function(t,e){H(this,4,t,D,e,arguments[2])},setFloat32:function(t,e){H(this,4,t,B,e,arguments[2])},setFloat64:function(t,e){H(this,8,t,z,e,arguments[2])}});v(b,"ArrayBuffer"),v(w,"DataView"),s(w[y],i.VIEW,!0),e.ArrayBuffer=b,e.DataView=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.filter=void 0;var r=O(n(134)),o=O(n(154));n(155);var a=O(n(156)),i=O(n(99)),s=O(n(158)),c=O(n(159)),l=O(n(62)),u=O(n(160)),d=E(n(161)),f=E(n(100)),p=n(101),g=O(n(162)),h=O(n(163)),m=O(n(63)),v=O(n(164)),y=O(n(48)),_=O(n(66)),b=O(n(166)),w=O(n(167)),x=O(n(168)),S=O(n(169)),A=O(n(64)),j=n(170),L=n(171),P=O(n(172));function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function M(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}n(173),n(340);var T=n(341),I=n(65);o.default.polyfill();var C=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.main=t,n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.addons.woocommerce=!!n.localize.woocommerce,n.addons.woocommerce&&(n.addons.woocommerce_columns=n.localize.woocommerce.columns?parseInt(n.localize.woocommerce.columns):3,n.addons.woocommerce_paged=n.localize.woocommerce.paged?parseInt(n.localize.woocommerce.paged):1,n.addons.woocommerce_paged_urls=n.localize.woocommerce.paged_urls,n.addons.woocommerce_pages=parseInt(n.localize.woocommerce.pages),n.addons.woocommerce_classes={},n.addons.woocommerce_classes.container=n.localize.woocommerce.container,n.addons.woocommerce_classes.products=n.localize.woocommerce.products,n.addons.woocommerce_classes.results=n.localize.woocommerce.results,n.addons.woocommerce_results_text=document.querySelectorAll(n.addons.woocommerce_classes.results),n.addons.woocommerce_settings=n.localize.woocommerce.settings,n.page=parseInt(n.page)+n.addons.woocommerce_paged),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in,n.addons.cta=n.listing.dataset.cta,n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater,n.addons.nextpage=n.listing.dataset.nextpage,n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage,n.addons.single_post=n.listing.dataset.singlePost,n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget,n.addons.comments=n.listing.dataset.comments,n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback,n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.paging=n.listing.dataset.paging,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var b=(0,a.default)("pg");n.addons.filters_startpage=null!==b?parseInt(b):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var E=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=E?E.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",E){var O=document.querySelector(".alm-tab-nav li .active");O&&O.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":"",n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1):n.addons.nextpage=!1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="250:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug=""):n.addons.single_post=!1,void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls,(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,S.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Older Posts":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.addons.paging)n.main.classList.add("loading");else{var F=t.childNodes;if(F){var N=Array.prototype.slice.call(F).filter(function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")});n.button=N?N[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach(function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")}):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,j.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,c.default)(n);t?r.default.get(t).then(function(t){n.AjaxLoadMore.success(t.data,!0)}).catch(function(t){n.AjaxLoadMore.ajax("standard")}):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return T.stringify(t,{arrayFormat:"brackets",encode:!1})},t});var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink,a=""),t.addons.woocommerce&&(o=(0,L.wooGetURL)(t),a=""),r.default.get(o,{params:a}).then(function(e){var r="";r=t.addons.single_post&&t.addons.single_post_target?(0,P.default)(e,t.addons.single_post_target):t.addons.woocommerce?(0,L.wooGetContent)(e,t):e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)}).catch(function(e){t.AjaxLoadMore.error(e,"adminajax")})},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return T.stringify(t,{arrayFormat:"brackets",encode:!1})},t}),r.default.get(e,{params:n}).then(function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)}).catch(function(e){t.AjaxLoadMore.error(e,"restapi")})},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return T.stringify(t,{arrayFormat:"brackets",encode:!1})},t}),r.default.get(a,{params:i}).then(function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,c=i.totalposts,l=0;l<a.length;l++){var u=a[l];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:c}};t.AjaxLoadMore.success(d,!1)}).catch(function(e){t.AjaxLoadMore.error(e,"restapi")})},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,c="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=c,c.style.opacity=0,c.style.height=0,c.style.outline="none";var d,f,b,S=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,b=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,b=r?(0,l.default)(d).length:b,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&b>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===b&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout(function(){(0,w.default)(n.content,n.no_results)},n.speed+10)),n.isPaged&&(n.posts_per_page=n.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,x.default)(n),M(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}},t,o)}))(),b>0){if(n.addons.paging)n.init?setTimeout(function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)},n.speed):S&&((0,_.default)(S,n.speed),S.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout(function(){S.style.opacity=0,S.innerHTML=n.html,I(S,function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(S,n.speed),setTimeout(function(){S.style.opacity="",h.default.init(S)},parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)})},parseInt(n.speed)+25));else{if(n.addons.single_post)c.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),c.dataset.url=n.addons.single_post_permalink,c.dataset.page=n.page,c.dataset.id=n.addons.single_post_id,c.dataset.title=n.addons.single_post_title,c.innerHTML=n.html;else if(n.transition_container){var j=void 0,P=window.location.search,E=n.addons.seo?" alm-seo":"",O=n.addons.filters?" alm-filters":"",T=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var F=[],N=[],k=parseInt(n.posts_per_page),R=Math.ceil(b/k);a=!0,"true"===n.addons.cta&&(k+=1,R=Math.ceil(b/k),b=R+b);for(var q=(0,u.default)((0,l.default)(n.html,"text/html")),D=0;D<b;D+=k)F.push(q.slice(D,k+D));for(var z=0;z<F.length;z++){var B="true"===n.addons.preloaded?1:0,U=document.createElement("div");z>0||"true"===n.addons.preloaded?(j=z+1+B,n.addons.seo&&("default"===n.addons.seo_permalink?(U.setAttribute("class","alm-reveal"+E+n.tcc),U.dataset.url=n.canonical_url+P+"&paged="+j,U.dataset.page=j):(U.setAttribute("class","alm-reveal"+E+n.tcc),U.dataset.url=n.canonical_url+n.addons.seo_leading_slash+"page/"+j+n.addons.seo_trailing_slash+P,U.dataset.page=j)),n.addons.filters&&(U.setAttribute("class","alm-reveal"+O+n.tcc),U.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(P,j),U.dataset.page=j)):(n.addons.seo&&(U.setAttribute("class","alm-reveal"+E+n.tcc),U.dataset.url=n.canonical_url+P,U.dataset.page="1"),n.addons.filters&&(U.setAttribute("class","alm-reveal"+O+T+n.tcc),U.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(P,0),U.dataset.page="1")),(0,i.default)(U,F[z]),(0,A.default)(U,n.ua),N.push(U)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,N),c=n.listing,n.el=c}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var W="true"===n.addons.preloaded?1:0;j=n.page+1+W,n.addons.seo?"default"===n.addons.seo_permalink?(c.setAttribute("class","alm-reveal"+E+n.tcc),c.dataset.url=n.canonical_url+P+"&paged="+j,c.dataset.page=j):(c.setAttribute("class","alm-reveal"+E+n.tcc),c.dataset.url=n.canonical_url+n.addons.seo_leading_slash+"page/"+j+n.addons.seo_trailing_slash+P,c.dataset.page=j):n.addons.filters?(c.setAttribute("class","alm-reveal"+O+n.tcc),c.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(P,j),c.dataset.page=j):c.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(c.setAttribute("class","alm-reveal"+O+n.tcc),c.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(P,parseInt(n.page)+1),c.dataset.page=parseInt(n.page)+1):n.addons.seo?(c.setAttribute("class","alm-reveal"+E+n.tcc),c.dataset.url=n.canonical_url+P,c.dataset.page="1"):c.setAttribute("class","alm-reveal"+n.tcc);c.innerHTML=n.html}}else n.el=n.html,c="table"===n.container_type?(0,s.default)(n.html):(0,l.default)(n.html,"text/html");if(n.addons.woocommerce)return M(regeneratorRuntime.mark(function t(){var r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,L.woocommerce)(c,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log(t),console.log("There was an error loading woocommerce products")}),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(c):"true"===n.images_loaded?I(c,function(){(0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)}):((0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,M(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,n.init,C);case 2:n.masonry_init=!1,n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 5:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log("There was an error with ALM Masonry")})):"none"===n.transition?"true"===n.images_loaded?I(c,function(){(0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()}):((0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?I(c,function(){n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()}):(n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&I(c,function(){(0,y.default)(n.listing,n.speed),setTimeout(function(){window.almTabsSetHeight(n)},n.speed)})}I(c,function(){n.AjaxLoadMore.nested(c),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),C&&n.addons.filters&&("function"==typeof almFilterComplete&&window.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),C=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n),n.addons.cache?b<n.posts_per_page&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})}else n.addons.paging||(setTimeout(function(){n.button.classList.remove("loading"),n.button.classList.add("done")},n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),C&&n.addons.filters&&("function"==typeof almFilterComplete&&almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),C=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),n.AjaxLoadMore.triggerDone();if(void 0!==n.destroy_after&&""!==n.destroy_after){var H=n.page+1;(H="true"===n.addons.preloaded?H++:H)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),(0,m.default)(n,c,b,C),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,w.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),c=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),l=r.offsetHeight;n.listing.style.height=l+s+c+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout(function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")},n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach(function(t){window.almInit(t)})},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then(function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1}).catch(function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1})},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,n.addons.paging||(n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout(function(){window.almDone(n),(0,j.hidePlaceholder)(n)},n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts())},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc){var k=void 0;n.window.onresize=function(){clearTimeout(k),k=setTimeout(function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,S.default)(n))},n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout(function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window)e=n.window.querySelector(".ajax-load-more-wrap").offsetHeight<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance);!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override?n.button.click():!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause&&n.button.click()}},25)},n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()}),n.window.addEventListener("keyup",function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})),n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout(function(){n.loading=!1},3*n.speed)},100),(0,j.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.getQueryVariable=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1},n.AjaxLoadMore.buildFilterURL=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t;return n.addons.filters_paging&&(r=e>1?r?n.AjaxLoadMore.getQueryVariable("pg")?t.replace(/(pg=)[^\&]+/,"$1"+e):t+"&pg="+e:"?pg="+e:"&"===(r="?"===(r=t.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout(function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)},n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout(function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,w.default)(n.content,n.no_results))},n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,L.wooInit)(n),n.resultsText,n.addons.woocommerce_paged>=parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",function(){n.is_masonry_preloaded&&M(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log("There was an error with ALM Masonry")}),"function"==typeof almOnLoad&&window.almOnLoad(n)})},n.AjaxLoadMore.init(),setTimeout(function(){n.proceed=!0},n.speed),window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()}};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach(function(e,n){new t(e,n)})}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;C=!0,(0,b.default)(t,e,n,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],alm_localize.speed?parseInt(alm_localize.speed):200);if(!t)return!1;C=!0,(0,b.default)("fade",e,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(140),a=n(142),i=n(143),s=n(144),c=n(96),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(145);t.exports=function(t){return new Promise(function(e,u){var d=t.data,f=t.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest,g="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(t.url)||(p=new window.XDomainRequest,g="onload",h=!0,p.onprogress=function(){},p.ontimeout=function(){}),t.auth){var m=t.auth.username||"",v=t.auth.password||"";f.Authorization="Basic "+l(m+":"+v)}if(p.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p[g]=function(){if(p&&(4===p.readyState||h)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:t,request:p};o(e,u,r),p=null}},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){u(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(146),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(f[t.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(f,function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){p&&(p.abort(),u(t),p=null)}),void 0===d&&(d=null),p.send(d)})}},function(t,e,n){"use strict";var r=n(141);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(157),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,c=!!t.addons.paging,l=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/l),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=c?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;r(t,"nextpage"===e||"woocommerce"===e?e:"standard")},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach(function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==(t.localize.post_count?parseInt(t.localize.post_count):0)&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var r=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,o=t.start_page?parseInt(t.start_page):0,a=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,i=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),l="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout(function(){if(t.addons.seo&&o>1||t.addons.filters&&a>1||t.addons.nextpage&&i>1){if(t.addons.seo&&o>1)for(var e=0;e<o;e++)s(t,e,r);if(t.addons.filters&&a>1)for(var u=0;u<a;u++)s(t,u,r);if(t.addons.nextpage&&i>1)for(var d=0;d<i;d++)s(t,d,r)}else!n&&l&&(c+=1),s(t,c,r)},100):(l&&(t.addons.seo&&o>0?c=c:t.addons.filters&&a>0?c=c:c+=1),s(t,c,r))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(93),a=n(63),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=document.querySelector('.alm-reveal.alm-single-post[data-page="'+(e-1)+'"]');n=r?r.dataset.title:n}var o="almTOCLabel_"+t.id;"function"==typeof window[o]&&(n=window[o](e,n));return n}(t,e),r.dataset.page=e,t.tableofcontents.appendChild(r),r.addEventListener("click",function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout(function(){(0,i.default)(t,a,r,!1)},1e3)})}},function(t,e,n){t.exports=!n(8)&&!n(2)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(9),a=n(31),i=n(68),s=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(50)(!1),i=n(69)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,l=[];for(n in s)n!=i&&r(s,n)&&l.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~a(l,n)||l.push(n));return l}},function(t,e,n){var r=n(7),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,c=0;s>c;)r.f(t,n=i[c++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(32),o=n(51),a=n(45),i=n(11),s=n(44),c=Object.assign;t.exports=!c||n(2)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=i(t),c=arguments.length,l=1,u=o.f,d=a.f;c>l;)for(var f,p=s(arguments[l++]),g=u?r(p).concat(u(p)):r(p),h=g.length,m=0;h>m;)d.call(p,f=g[m++])&&(n[f]=p[f]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(23),o=n(4),a=n(110),i=[].slice,s={};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),c=function(){var r=n.concat(i.call(arguments));return this instanceof c?function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)}(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(52).trim,a=n(74),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(52).trim;t.exports=1/r(n(74)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(38),i={};n(15)(i,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(23),o=n(11),a=n(44),i=n(6);t.exports=function(t,e,n,s,c){r(e);var l=o(t),u=a(l),d=i(l.length),f=c?d-1:0,p=c?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,l));return s}},function(t,e,n){"use strict";var r=n(11),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),c=o(e,i),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?i:o(l,i))-c,i-s),d=1;for(c<s&&s<c+u&&(d=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(89);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(54)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),c=n(1),l=n(22),u=n(46),d=n(0),f=n(4),p=n(23),g=n(42),h=n(57),m=n(47),v=n(91).set,y=n(288)(),_=n(124),b=n(289),w=n(58),x=n(125),S=c.TypeError,A=c.process,j=A&&A.versions,L=j&&j.v8||"",P=c.Promise,E="process"==u(A),O=function(){},M=o=_.f,T=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(O,O)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==L.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},C=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?l(S("Promise-chain cycle")):(a=I(n))?a.call(n,c,l):c(n)):l(r)}catch(t){u&&!i&&u.exit(),l(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){v.call(c,function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b(function(){E?A.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=E||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(c,function(){var e;E?A.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),C(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(q,r,1),l(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,C(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(P=function(t){g(this,P,"Promise","_h"),p(t),r.call(this);try{t(l(q,this,1),l(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(43)(P.prototype,{then:function(t,e){var n=M(m(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=l(q,t,1),this.reject=l(R,t,1)},_.f=M=function(t){return t===P||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:P}),n(38)(P,"Promise"),n(41)("Promise"),i=n(9).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?P:this,t)}}),d(d.S+d.F*!(T&&n(53)(function(t){P.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=b(function(){var n=[],a=0,i=1;h(t,!1,function(t){var s=a++,c=!1;n.push(void 0),i++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--i||r(n))},o)}),--i||r(n)});return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=b(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(23);function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(124);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(7).f,o=n(34),a=n(43),i=n(22),s=n(42),c=n(57),l=n(80),u=n(120),d=n(41),f=n(8),p=n(28).fastKey,g=n(37),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t(function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&c(r,n,t[l],t)});return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=g(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(43),o=n(28).getWeak,a=n(3),i=n(4),s=n(42),c=n(57),l=n(21),u=n(14),d=n(37),f=l(5),p=l(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&c(r,n,t[a],t)});return r(l.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(18),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(51),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(76),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),c=s.length,l=void 0===n?" ":String(n),u=r(e);if(u<=c||""==l)return s;var d=u-c,f=o.call(l,Math.ceil(d/l.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(32),o=n(16),a=n(45).f;t.exports=function(t){return function(e){for(var n,i=o(e),s=r(i),c=s.length,l=0,u=[];c>l;)a.call(i,n=s[l++])&&u.push(t?[n,i[n]]:i[n]);return u}}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(Array.isArray(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r="string"==typeof t?t:String(t);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var a="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=r.charAt(i):s<128?a+=o[s]:s<2048?a+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?a+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),a+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return a},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var i=e;return Array.isArray(e)&&!Array.isArray(n)&&(i=a(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t(e[a],n,o):e.push(n):e[a]=n}),e):Object.keys(n).reduce(function(e,a){var i=n[a];return r.call(e,a)?e[a]=t(e[a],i,o):e[a]=i,e},i)}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(t,e,n){t.exports=n(135)},function(t,e,n){"use strict";var r=n(13),o=n(94),a=n(137),i=n(61);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var c=s(i);c.Axios=a,c.create=function(t){return s(r.merge(i,t))},c.Cancel=n(98),c.CancelToken=n(152),c.isCancel=n(97),c.all=function(t){return Promise.all(t)},c.spread=n(153),t.exports=c,t.exports.default=c},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
|
13 |
/*!
|
14 |
* Determine if an object is a Buffer
|
15 |
*
|
16 |
* @author Feross Aboukhadijeh <https://feross.org>
|
17 |
* @license MIT
|
18 |
*/
|
19 |
-
t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(61),o=n(13),a=n(147),i=n(148);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(96);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))}))}),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}}),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,a=String(t),i="",s=0,c=r;a.charAt(0|s)||(c="=",s%1);i+=c.charAt(63&e>>8-s%1*8)){if((n=a.charCodeAt(s+=.75))>255)throw new o;e=e<<8|n}return i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(149),a=n(97),i=n(61),s=n(150),c=n(151);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||i.adapter)(t).then(function(e){return l(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(l(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(98);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,r=t.HTMLElement||t.Element,o=468,a={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||c,scrollIntoView:r.prototype.scrollIntoView},i=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):a.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?a.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){var n;do{n=(t=t.parentNode)===e.body}while(!1===n&&!1===f(t));return n=null,t}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function d(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function f(t){var e=u(t,"Y")&&d(t,"Y"),n=u(t,"X")&&d(t,"X");return e||n}function p(e){var n,r,a,s,c=(i()-e.startTime)/o;s=c=c>1?1:c,n=.5*(1-Math.cos(Math.PI*s)),r=e.startX+(e.x-e.startX)*n,a=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,a),r===e.x&&a===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,o){var s,l,u,d,f=i();n===e.body?(s=t,l=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=a.scroll):(s=n,l=n.scrollLeft,u=n.scrollTop,d=c),p({scrollable:s,method:d,startTime:f,startX:l,startY:u,x:r,y:o})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!o(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var a,s=i(e.length),c=o(this)?Object(new this(s)):new Array(s),l=0;l<s;)a=e[l],c[l]=r?void 0===n?r(a,l):r.call(n,a,l):a,l+=1;return c.length=s,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");return e.innerHTML=t,[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e="",n=".html";if(t.init&&t.addons.seo&&t.isPaged)e=t.addons.cache_path+t.addons.cache_id+"/page-1-"+t.start_page+n;else if(t.addons.nextpage){var r=void 0;t.addons.paging?r=parseInt(t.page)+1:(r=parseInt(t.page)+2,t.isPaged&&(r=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=t.addons.cache_path+t.addons.cache_id+"/page-"+r+n}else t.addons.single_post?e=t.addons.cache_path+t.addons.cache_id+"/"+t.addons.single_post_id+n:t.addons.filters?console.log(t):e=t.addons.cache_path+t.addons.cache_id+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"];return t.filter(function(t){return-1===e.indexOf(t.nodeName.toLowerCase())})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=t.listing.dataset.customArgs);return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(100));e.default=function(t){return new Promise(function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(62);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(48)),o=s(n(99)),a=s(n(62)),i=s(n(64));function s(t){return t&&t.__esModule?t:{default:t}}var c=n(65);e.default=function t(e,n,s){return new Promise(function(l){var u=e.listing,d=e.html,f=e.masonry_selector,p=e.masonry_columnwidth,g=e.masonry_animation,h=e.masonry_horizontalorder,m=e.speed,v=e.masonry_init,y=(m+100)/1e3+"s",_="scale(0.5)",b="scale(1)";if("zoom-out"===g&&(_="translateY(-20px) scale(1.25)",b="translateY(0) scale(1)"),"slide-up"===g&&(_="translateY(50px)",b="translateY(0)"),"slide-down"===g&&(_="translateY(-50px)",b="translateY(0)"),"none"===g&&(_="translateY(0)",b="translateY(0)"),p?isNaN(p)||(p=parseInt(p)):p=f,h="true"===h,s)u.parentNode.style.opacity=0,t(e,!0,!1),l(!0);else if(v&&n)(0,i.default)(u,e.ua),c(u,function(){var t={itemSelector:f,transitionDuration:y,columnWidth:p,horizontalOrder:h,hiddenStyle:{transform:_,opacity:0},visibleStyle:{transform:b,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),setTimeout(function(){e.msnry=new Masonry(u,t),(0,r.default)(u.parentNode,m),l(!0)},25)});else{var w=(0,a.default)(d,"text/html");w&&((0,o.default)(e.listing,w,"masonry"),(0,i.default)(u,e.ua),c(u,function(){e.msnry.appended(w),l(!0)}))}})}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=s(n(48)),a=s(n(66)),i=n(101);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";n.target?document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]').forEach(function(o){c(t,e,n,o,r)}):document.querySelectorAll(".ajax-load-more-wrap").forEach(function(o){c(t,e,n,o,r)});(0,i.clearTOC)()};var c=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout(function(){l(e,n,r,o)},e)}else r.classList.add("alm-is-filtering"),l(e,n,r,o)},l=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach(function(t){t.innerHTML=""});var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,c=!1,l=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){c=!0,l=t}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout(function(){t.placeholder.style.display="none"},75))};var r=a(n(48)),o=a(n(66));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_classes.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_results_text){var n=t.querySelector(e.addons.woocommerce_classes.results);if(n){var r=n.innerHTML;e.addons.woocommerce_results_text.forEach(function(t){e.localize.woocommerce.settings.previous_page_link&&(r+=e.localize.woocommerce.settings.previous_page_link),t.innerHTML=r})}}}(r,e)}return n},e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_paged+1;var e=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_classes.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_classes.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_paged>1&&function(t){if(t&&t.addons.woocommerce_results_text){var e=document.querySelectorAll(t.addons.woocommerce_classes.results);if(e.length<1)return!1;e.forEach(function(e){if(t.localize.woocommerce.settings.previous_page_link){var n=e.innerHTML;n+=t.localize.woocommerce.settings.previous_page_link,e.innerHTML=n}})}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise(function(r){var o=document.querySelector(e.addons.woocommerce_classes.container),a=t.querySelectorAll(e.addons.woocommerce_classes.products),s=e.addons.woocommerce_columns;o&&a&&(a=Array.prototype.slice.call(a),i(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(o,a,s,e,n);case 2:r(!0);case 3:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log(t,"There was an error with WooCommerce")}))})},e.wooGetURL=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button").dataset.url;return e||""};var r=a(n(64)),o=a(n(63));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}var s=n(65);var c=function(t,e,n,r,a){return new Promise(function(n){var s=e.length,c=0,u=1;!function d(){u<=s?i(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e[c].style.opacity=0,1==u&&(e[c].classList.add("alm-woocommerce"),e[c].dataset.url=r.addons.woocommerce_paged_urls[r.page],e[c].dataset.page=r.page+1,e[c].dataset.pageTitle=a),n.next=4,l(t,e[c],r.ua);case 4:u++,c++,d();case 7:case"end":return n.stop()}},n,this)}))().catch(function(t){console.log("There was an error with WooCommerce")}):(n(!0),e.map(function(t){t.style.opacity=1}),e[0]&&(0,o.default)(r,e[0],null,!1))}()})},l=function(t,e,n){return new Promise(function(o){s(e,function(){e.style.transition="all 0.3s ease",t.appendChild(e),(0,r.default)(e,n),o(!0)})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}},function(t,e,n){n(174)},function(t,e,n){"use strict";n(175),n(319),n(321),n(323),n(325),n(327),n(329),n(331),n(333),n(335),n(339)},function(t,e,n){n(176),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(88),n(282),n(121),n(283),n(122),n(284),n(285),n(286),n(287),n(123),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),t.exports=n(9)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(10),c=n(28).KEY,l=n(2),u=n(49),d=n(38),f=n(30),p=n(5),g=n(68),h=n(103),m=n(178),v=n(71),y=n(3),_=n(4),b=n(16),w=n(27),x=n(29),S=n(34),A=n(106),j=n(19),L=n(7),P=n(32),E=j.f,O=L.f,M=A.f,T=r.Symbol,I=r.JSON,C=I&&I.stringify,F=p("_hidden"),N=p("toPrimitive"),k={}.propertyIsEnumerable,R=u("symbol-registry"),q=u("symbols"),D=u("op-symbols"),z=Object.prototype,B="function"==typeof T,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,H=a&&l(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(z,e);r&&delete z[e],O(t,e,n),r&&t!==z&&O(z,e,r)}:O,V=function(t){var e=q[t]=S(T.prototype);return e._k=t,e},G=B&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,n){return t===z&&Y(D,e,n),y(t),e=w(e,!0),y(n),o(q,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:x(0,!1)})):(o(t,F)||O(t,F,x(1,{})),t[F][e]=!0),H(t,e,n)):O(t,e,n)},X=function(t,e){y(t);for(var n,r=m(e=b(e)),o=0,a=r.length;a>o;)Y(t,n=r[o++],e[n]);return t},Q=function(t){var e=k.call(this,t=w(t,!0));return!(this===z&&o(q,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,F)&&this[F][t])||e)},$=function(t,e){if(t=b(t),e=w(e,!0),t!==z||!o(q,e)||o(D,e)){var n=E(t,e);return!n||!o(q,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=M(b(t)),r=[],a=0;n.length>a;)o(q,e=n[a++])||e==F||e==c||r.push(e);return r},J=function(t){for(var e,n=t===z,r=M(n?D:b(t)),a=[],i=0;r.length>i;)!o(q,e=r[i++])||n&&!o(z,e)||a.push(q[e]);return a};B||(s((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(D,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),H(this,t,x(1,n))};return a&&W&&H(z,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),j.f=$,L.f=Y,n(35).f=A.f=K,n(45).f=Q,n(51).f=J,a&&!n(31)&&s(z,"propertyIsEnumerable",Q,!0),g.f=function(t){return V(p(t))}),i(i.G+i.W+i.F*!B,{Symbol:T});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)p(Z[tt++]);for(var et=P(p.store),nt=0;et.length>nt;)h(et[nt++]);i(i.S+i.F*!B,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),i(i.S+i.F*!B,"Object",{create:function(t,e){return void 0===e?S(t):X(S(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:J}),I&&i(i.S+i.F*(!B||l(function(){var t=T();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!G(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,C.apply(I,r)}}),T.prototype[N]||n(15)(T.prototype,N,T.prototype.valueOf),d(T,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(49)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(51),a=n(45);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),c=a.f,l=0;s.length>l;)c.call(t,i=s[l++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(105)})},function(t,e,n){var r=n(16),o=n(19).f;n(20)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(11),o=n(36);n(20)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(11),o=n(32);n(20)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(20)("getOwnPropertyNames",function(){return n(106).f})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4);n(20)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(20)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(20)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(107)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(108)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(73).set})},function(t,e,n){"use strict";var r=n(46),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(10)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(109)})},function(t,e,n){var r=n(7).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(7).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(111);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(112);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(75),s=n(27),c=n(2),l=n(35).f,u=n(19).f,d=n(7).f,f=n(52).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,c=e.slice(2),l=0,u=c.length;l<u;l++)if((i=c.charCodeAt(l))<48||i>o)return NaN;return parseInt(c,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?c(function(){h.valueOf.call(n)}):"Number"!=a(n))?i(new g(y(e)),n,p):y(e)};for(var _,b=n(8)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,_=b[w])&&!o(p,_)&&d(p,_,u(g,_));p.prototype=h,h.constructor=p,n(10)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(18),a=n(113),i=n(76),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=c(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=c(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,r,s,c=a(this,u),l=o(t),h="",m="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(h="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*g(2,69,1))-69)<0?c*g(2,-e,1):c/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",l);return m=l>0?h+((s=m.length)<=l?"0."+i.call("0",l-s)+m:m.slice(0,s-l)+"."+m.slice(s-l)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(113),i=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==i.call(1,void 0)})||!o(function(){i.call({})})),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(114),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(112);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(111);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(115),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(77);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(221)})},function(t,e,n){var r=n(77),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),l=r(t);return o<c?l*(o/c/i+1/a-1/a)*c*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,c=0;i<s;)c<(n=o(arguments[i++]))?(a=a*(r=c/n)*r+1,c=n):a+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(115)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(77)})},function(t,e,n){var r=n(0),o=n(78),a=Math.exp;r(r.S+r.F*n(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(78),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(52)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(79)(!0);n(80)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(79)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(81),i="".endsWith;r(r.P+r.F*n(83)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),c=String(t);return i?i.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(81);r(r.P+r.F*n(83)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(76)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(81),i="".startsWith;r(r.P+r.F*n(83)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(12)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(12)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(12)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(11),a=n(27);r(r.P+r.F*n(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(256);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(10)(r,"toString",function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(259))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(22),o=n(0),a=n(11),i=n(117),s=n(84),c=n(6),l=n(85),u=n(86);o(o.S+o.F*!n(53)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,y=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=c(f.length));e>v;v++)l(n,v,m?h(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(o=d.next()).done;v++)l(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(85);r(r.S+r.F*n(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(44)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(72),a=n(24),i=n(33),s=n(6),c=[].slice;r(r.P+r.F*n(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=i(t,n),l=i(e,n),u=s(l-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(23),a=n(11),i=n(2),s=[].sort,c=[1,2,3];r(r.P+r.F*(i(function(){c.sort(void 0)})||!i(function(){c.sort(null)})||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(268);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(4),o=n(71),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(21)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(118);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(118);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(50)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(18),i=n(6),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(17)(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(119)}),n(40)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(87)}),n(40)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(21)(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("find")},function(t,e,n){"use strict";var r=n(0),o=n(21)(6),a="findIndex",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)(a)},function(t,e,n){n(41)("Array")},function(t,e,n){var r=n(1),o=n(75),a=n(7).f,i=n(35).f,s=n(82),c=n(54),l=r.RegExp,u=l,d=l.prototype,f=/a/g,p=/a/g,g=new l(f)!==f;if(n(8)&&(!g||n(2)(function(){return p[n(5)("match")]=!1,l(f)!=f||l(p)==p||"/a/i"!=l(f,"i")}))){l=function(t,e){var n=this instanceof l,r=s(t),a=void 0===e;return!n&&r&&t.constructor===l&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof l)?t.source:t,r&&a?c.call(t):e),n?this:d,l)};for(var h=function(t){t in l||a(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=l,l.prototype=d,n(10)(r,"RegExp",l)}n(41)("RegExp")},function(t,e,n){"use strict";n(122);var r=n(3),o=n(54),a=n(8),i=/./.toString,s=function(t){n(10)(RegExp.prototype,"toString",t,!0)};n(2)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=i.name&&s(function(){return i.call(this)})},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(90),i=n(55);n(56)("match",1,function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return i(c,l);var u=c.unicode;c.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(c,l));){var g=String(d[0]);f[p]=g,""===g&&(c.lastIndex=a(l,o(c.lastIndex),u)),p++}return 0===p?null:f}]})},function(t,e,n){"use strict";var r=n(3),o=n(11),a=n(6),i=n(18),s=n(90),c=n(55),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(56)("replace",2,function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var _=c(d,f);if(null===_)break;if(y.push(_),!m)break;""===String(_[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<y.length;S++){_=y[S];for(var A=String(_[0]),j=l(u(i(_.index),f.length),0),L=[],P=1;P<_.length;P++)L.push(void 0===(b=_[P])?b:String(b));var E=_.groups;if(p){var O=[A].concat(L,j,f);void 0!==E&&O.push(E);var M=String(e.apply(void 0,O))}else M=h(A,f,j,L,E,e);j>=x&&(w+=f.slice(x,j)+M,x=j+A.length)}return w+f.slice(x)}];function h(t,e,r,a,i,s){var c=r+t.length,l=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s})}})},function(t,e,n){"use strict";var r=n(3),o=n(108),a=n(55);n(56)("search",1,function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),l=s.lastIndex;o(l,0)||(s.lastIndex=0);var u=a(s,c);return o(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]})},function(t,e,n){"use strict";var r=n(82),o=n(3),a=n(47),i=n(90),s=n(6),c=n(55),l=n(89),u=n(2),d=Math.min,f=[].push,p=!u(function(){RegExp(4294967295,"y")});n(56)("split",2,function(t,e,n,u){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,u+"g");(a=l.call(g,o))&&!((i=g.lastIndex)>d&&(c.push(o.slice(d,a.index)),a.length>1&&a.index<o.length&&f.apply(c,a.slice(1)),s=a[0].length,d=i,c.length>=p));)g.lastIndex===a.index&&g.lastIndex++;return d===o.length?!s&&g.test("")||c.push(""):c.push(o.slice(d)),c.length>p?c.slice(0,p):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):g.call(String(o),n,r)},function(t,e){var r=u(g,t,this,e,g!==n);if(r.done)return r.value;var l=o(t),f=String(this),h=a(l,RegExp),m=l.unicode,v=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),y=new h(p?l:"^(?:"+l.source+")",v),_=void 0===e?4294967295:e>>>0;if(0===_)return[];if(0===f.length)return null===c(y,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){y.lastIndex=p?w:0;var S,A=c(y,p?f:f.slice(w));if(null===A||(S=d(s(y.lastIndex+(p?0:w)),f.length))===b)w=i(f,w,m);else{if(x.push(f.slice(b,w)),x.length===_)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===_)return x;w=b=S}}return x.push(f.slice(b)),x}]})},function(t,e,n){var r=n(1),o=n(91).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,c="process"==n(24)(i);t.exports=function(){var t,e,n,l=function(){var r,o;for(c&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){i.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var d=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(126),o=n(37);t.exports=n(59)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(126),o=n(37);t.exports=n(59)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(21)(0),i=n(10),s=n(28),c=n(107),l=n(127),u=n(4),d=n(37),f=n(37),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=l.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(d(this,"WeakMap"),t,e)}},_=t.exports=n(59)("WeakMap",v,y,l,!0,!0);f&&p&&(c((r=l.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,a(["delete","has","get","set"],function(t){var e=_.prototype,n=e[t];i(e,t,function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(127),o=n(37);n(59)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(60),a=n(92),i=n(3),s=n(33),c=n(6),l=n(4),u=n(1).ArrayBuffer,d=n(47),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||l(t)&&m in t}}),r(r.P+r.U+r.F*n(2)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(c(o-r)),l=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,l.getUint8(r++));return a}}),n(41)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(60).ABV,{DataView:n(92).DataView})},function(t,e,n){n(26)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(26)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),o=n(23),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)(function(){i(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),c=a(n);return i?i(r,e,c):s.call(r,e,c)}})},function(t,e,n){var r=n(0),o=n(34),a=n(23),i=n(3),s=n(4),c=n(2),l=n(109),u=(n(1).Reflect||{}).construct,d=c(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),f=!c(function(){u(function(){})});r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var c=n.prototype,p=o(s(c)?c:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(7),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(19).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(116)(a,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(19),o=n(36),a=n(14),i=n(0),s=n(4),c=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,l,u=arguments.length<3?e:arguments[2];return c(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(l=o(e))?t(l,n,u):void 0}})},function(t,e,n){var r=n(19),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(129)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(7),o=n(19),a=n(36),i=n(14),s=n(0),c=n(29),l=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(l(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=c(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,c(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(73);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(320),t.exports=n(9).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(50)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("includes")},function(t,e,n){n(322),t.exports=n(9).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(130),a=n(58),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(324),t.exports=n(9).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(130),a=n(58),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(326),t.exports=n(68).f("asyncIterator")},function(t,e,n){n(103)("asyncIterator")},function(t,e,n){n(328),t.exports=n(9).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(129),a=n(16),i=n(19),s=n(85);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),c=i.f,l=o(r),u={},d=0;l.length>d;)void 0!==(n=c(r,e=l[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(330),t.exports=n(9).Object.values},function(t,e,n){var r=n(0),o=n(131)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(332),t.exports=n(9).Object.entries},function(t,e,n){var r=n(0),o=n(131)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(123),n(334),t.exports=n(9).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(9),a=n(1),i=n(47),s=n(125);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(336),n(337),n(338),t.exports=n(9)},function(t,e,n){var r=n(1),o=n(0),a=n(58),i=[].slice,s=/MSIE .\./.test(a),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),o=n(91);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(88),o=n(32),a=n(10),i=n(1),s=n(15),c=n(39),l=n(5),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],y=p[v],_=i[v],b=_&&_.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),c[v]=f,y))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"==typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{(u=e.regeneratorRuntime=l?t.exports:{}).wrap=b;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",h={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(T([])));y&&y!==r&&o.call(y,i)&&(m=y);var _=A.prototype=x.prototype=Object.create(m);S.prototype=_.constructor=A,A.constructor=S,A[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(_),t},u.awrap=function(t){return{__await:t}},j(L.prototype),L.prototype[s]=function(){return this},u.AsyncIterator=L,u.async=function(t,e,n,r){var o=new L(b(t,e,n,r));return u.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(_),_[c]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=T,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return s.type="throw",s.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),h}}}function b(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new M(r||[]);return a._invoke=function(t,e,n){var r=d;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return I()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=P(i,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=w(t,e,n);if("normal"===c.type){if(r=n.done?g:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=g,n.method="throw",n.arg=c.arg)}}}(t,n,i),a}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function S(){}function A(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(n,r){function a(){return new Promise(function(e,a){!function e(n,r,a,i){var s=w(t[n],t,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(l).then(function(t){c.value=t,a(c)},function(t){return e("throw",t,a,i)})}i(s.arg)}(n,r,e,a)})}return e=e?e.then(a,a):a()}}function P(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=w(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,e,n){"use strict";var r,o,a,i,s,c;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,c=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",c.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),c.call(n,"get")||c.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return c.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)c.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var l={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,c=function(t){return t.charAt(1).toUpperCase()},l=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",function(){}),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,c);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:l.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",l)}catch(t){l.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",l)}}},function(t,e,n){"use strict";var r=n(342),o=n(343),a=n(133);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(132),o=n(133),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,s=Array.prototype.push,c=function(t,e){s.apply(t,i(e)?e:[e])},l=Date.prototype.toISOString,u={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,o,a,i,s,l,d,f,p,g,h,m){var v=e;if("function"==typeof l?v=l(n,v):v instanceof Date&&(v=p(v)),null===v){if(a)return s&&!h?s(n,u.encoder,m):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return s?[g(h?n:s(n,u.encoder,m))+"="+g(s(v,u.encoder,m))]:[g(n)+"="+g(String(v))];var y,_=[];if(void 0===v)return _;if(Array.isArray(l))y=l;else{var b=Object.keys(v);y=d?b.sort(d):b}for(var w=0;w<y.length;++w){var x=y[w];i&&null===v[x]||(Array.isArray(v)?c(_,t(v[x],o(n,x),o,a,i,s,l,d,f,p,g,h,m)):c(_,t(v[x],n+(f?"."+x:"["+x+"]"),o,a,i,s,l,d,f,p,g,h,m)))}return _};t.exports=function(t,e){var n=t,i=e?r.assign({},e):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var s=void 0===i.delimiter?u.delimiter:i.delimiter,l="boolean"==typeof i.strictNullHandling?i.strictNullHandling:u.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:u.skipNulls,p="boolean"==typeof i.encode?i.encode:u.encode,g="function"==typeof i.encoder?i.encoder:u.encoder,h="function"==typeof i.sort?i.sort:null,m=void 0===i.allowDots?u.allowDots:!!i.allowDots,v="function"==typeof i.serializeDate?i.serializeDate:u.serializeDate,y="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:u.encodeValuesOnly,_=i.charset||u.charset;if(void 0!==i.charset&&"utf-8"!==i.charset&&"iso-8859-1"!==i.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===i.format)i.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var b,w,x=o.formatters[i.format];"function"==typeof i.filter?n=(w=i.filter)("",n):Array.isArray(i.filter)&&(b=w=i.filter);var S,A=[];if("object"!=typeof n||null===n)return"";S=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var j=a[S];b||(b=Object.keys(n)),h&&b.sort(h);for(var L=0;L<b.length;++L){var P=b[L];f&&null===n[P]||c(A,d(n[P],P,j,l,f,p?g:null,w,h,m,v,x,y,_))}var E=A.join(s),O=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&(O+="iso-8859-1"===_?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),E.length>0?O+E:""}},function(t,e,n){"use strict";var r=n(132),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},s=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,c=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(i=a.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(i[1])}return i&&c.push("["+r.slice(i.index)+"]"),function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var a,i=t[o];if("[]"===i&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=r:a[s]=r:a={0:r}}r=a}return r}(c,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots=void 0===n.allowDots?a.allowDots:!!n.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,void 0!==n.charset&&"utf-8"!==n.charset&&"iso-8859-1"!==n.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===n.charset&&(n.charset=a.charset),""===t||null==t)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var n,s={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,u=c.split(e.delimiter,l),d=-1,f=e.charset;if(e.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?f="utf-8":"utf8=%26%2310003%3B"===u[n]&&(f="iso-8859-1"),d=n,n=u.length);for(n=0;n<u.length;++n)if(n!==d){var p,g,h=u[n],m=h.indexOf("]="),v=-1===m?h.indexOf("="):m+1;-1===v?(p=e.decoder(h,a.decoder,f),g=e.strictNullHandling?null:""):(p=e.decoder(h.slice(0,v),a.decoder,f),g=e.decoder(h.slice(v+1),a.decoder,f)),g&&e.interpretNumericEntities&&"iso-8859-1"===f&&(g=i(g)),o.call(s,p)?s[p]=r.combine(s[p],g):s[p]=g}return s}(t,n):t,l=n.plainObjects?Object.create(null):{},u=Object.keys(c),d=0;d<u.length;++d){var f=u[d],p=s(f,c[f],n);l=r.merge(l,p,n)}return r.compact(l)}}]);
|
1 |
+
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e,n){var r=n(1),o=n(9),a=n(15),i=n(10),s=n(22),c=function(t,e,n){var l,u,d,f,p=t&c.F,g=t&c.G,h=t&c.S,m=t&c.P,v=t&c.B,y=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,_=g?o:o[e]||(o[e]={}),w=_.prototype||(_.prototype={});for(l in g&&(n=e),n)d=((u=!p&&y&&void 0!==y[l])?y:n)[l],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&i(y,l,d,t&c.U),_[l]!=d&&a(_,l,f),m&&w[l]!=d&&(w[l]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(50)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(18),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(3),o=n(105),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(178),c=(""+s).split("toString");n(9).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(l&&(a(n,i)||o(n,i,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||s.call(this)})},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";var r=n(95),o=n(138),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Function]"===a.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(44),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(45),o=n(29),a=n(16),i=n(27),s=n(14),c=n(105),l=Object.getOwnPropertyDescriptor;e.f=n(8)?l:function(t,e){if(t=a(t),e=i(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(9),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},function(t,e,n){var r=n(22),o=n(44),a=n(11),i=n(6),s=n(268);t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),y=o(v),_=r(s,g,3),w=i(y.length),b=0,x=n?p(e,w):c?p(e,0):void 0;w>b;b++)if((f||b in y)&&(m=_(h=y[b],b,v),t))if(n)x[b]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:x.push(h)}else if(u)return!1;return d?-1:l||u?u:x}}},function(t,e,n){var r=n(23);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(61),c=n(92),l=n(22),u=n(42),d=n(29),f=n(15),p=n(43),g=n(18),h=n(6),m=n(131),v=n(33),y=n(27),_=n(14),w=n(46),b=n(4),x=n(11),S=n(84),A=n(34),j=n(36),E=n(35).f,L=n(86),P=n(30),O=n(5),M=n(21),T=n(51),I=n(47),F=n(88),C=n(39),N=n(54),k=n(41),R=n(87),D=n(122),q=n(7),z=n(19),B=q.f,U=z.f,W=o.RangeError,H=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=c.ArrayBuffer,X=c.DataView,Q=M(0),$=M(2),K=M(3),J=M(4),Z=M(5),tt=M(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,ct=G.reduceRight,lt=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=O("iterator"),ht=O("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),yt=s.CONSTR,_t=s.TYPED,wt=s.VIEW,bt=M(1,function(t,e){return Et(I(t,t[vt]),e)}),xt=a(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),St=!!V&&!!V.prototype.set&&a(function(){new V(1).set({})}),At=function(t,e){var n=g(t);if(n<0||n%e)throw W("Wrong offset!");return n},jt=function(t){if(b(t)&&_t in t)return t;throw H(t+" is not a typed array!")},Et=function(t,e){if(!(b(t)&&mt in t))throw H("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(I(t,t[vt]),e)},Pt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Ot=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Mt=function(t){var e,n,r,o,a,i,s=x(t),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=L(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&c>2&&(u=l(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a(function(){pt.call(new V(1))}),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return D.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Lt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return bt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return ct.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Lt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw W("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},Dt=function(t,e){return b(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},qt=function(t,e){return Dt(t,e=y(e,!0))?d(2,t[e]):U(t,e)},zt=function(t,e,n){return!(Dt(t,e=y(e,!0))&&b(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};yt||(z.f=qt,q.f=zt),i(i.S+i.F*!yt,"Object",{getOwnPropertyDescriptor:qt,defineProperty:zt}),a(function(){ft.call({})})&&(ft=pt=function(){return lt.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Ot(Bt,"buffer","b"),Ot(Bt,"byteOffset","o"),Ot(Bt,"byteLength","l"),Ot(Bt,"length","e"),B(Bt,ht,{get:function(){return this[_t]}}),t.exports=function(t,e,n,c){var l=t+((c=!!c)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[l],v=g||{},y=g&&j(g),_=!g||!s.ABV,x={},S=g&&g.prototype,L=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};_?(g=n(function(t,n,r,o){u(t,g,l,"_d");var a,i,s,c,d=0,p=0;if(b(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return _t in n?Pt(g,n):Mt.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw W("Wrong length!");if((i=v-p)<0)throw W("Wrong length!")}else if((i=h(o)*e)+p>v)throw W("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)L(t,d++)}),S=g.prototype=A(Bt),f(S,"constructor",g)):a(function(){g(1)})&&a(function(){new g(-1)})&&N(function(t){new g,new g(null),new g(1.5),new g(t)},!0)||(g=n(function(t,n,r,o){var a;return u(t,g,l),b(n)?n instanceof Y||"ArrayBuffer"==(a=w(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):_t in n?Pt(g,n):Mt.call(g,n):new v(m(n))}),Q(y!==Function.prototype?E(v).concat(E(y)):E(v),function(t){t in g||f(g,t,v[t])}),g.prototype=S,r||(S.constructor=g));var P=S[gt],O=!!P&&("values"==P.name||null==P.name),M=Rt.values;f(g,mt,!0),f(S,_t,l),f(S,wt,!0),f(S,vt,g),(c?new g(1)[ht]==l:ht in S)||B(S,ht,{get:function(){return l}}),x[l]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,l,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a(function(){v.of.call(g,1)}),l,{from:Mt,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,l,Ct),k(l),i(i.P+i.F*St,l,{set:kt}),i(i.P+i.F*!O,l,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a(function(){new g(1).slice()}),l,{slice:Nt}),i(i.P+i.F*(a(function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()})||!a(function(){S.toLocaleString.call([1,2])})),l,{toLocaleString:Ft}),C[l]=O?P:M,r||O||f(S,gt,M)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(7).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(2)(function(){return c(Object.preventExtensions({}))}),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return l&&d.NEED&&c(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(107),o=n(70);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(18),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(108),a=n(70),i=n(69)("IE_PROTO"),s=function(){},c=function(){var t,e=n(67)("iframe"),r=a.length;for(e.style.display="none",n(72).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[a[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(107),o=n(70).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(11),a=n(69)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(7).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(1),o=n(7),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(23),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=(n.classList.contains("alm-listing")?n:n.parentNode).dataset.scrollContainer;o?document.querySelector(o)&&setTimeout(function(){n.focus({preventScroll:!0})},50):setTimeout(function(){n.focus({preventScroll:!0})},50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval(function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1},e);t.style.height="auto"}}},function(t,e,n){var r=n(9),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,c=r(e),l=o(c.length),u=a(i,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(74),s="["+i+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a(function(){return!!i[t]()||"
"!="
"[t]()}),c=o[t]=s?e(d):i[t];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(46),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(124);var r=n(10),o=n(15),a=n(2),i=n(25),s=n(5),c=n(89),l=s("species"),u=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),g=p?!a(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!e}):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],function(t,e,n,r,o){return e.exec===c?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),v=m[0],y=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var r=n(22),o=n(120),a=n(84),i=n(3),s=n(6),c=n(86),l={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:c(t),y=r(n,d,e?2:1),_=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>_;_++)if((m=e?y(i(g=t[_])[0],g[1]):y(t[_]))===l||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,y,g.value,e))===l||m===u)return m}).BREAK=l,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(10),i=n(43),s=n(28),c=n(58),l=n(42),u=n(4),d=n(2),f=n(54),p=n(38),g=n(75);t.exports=function(t,e,n,h,m,v){var y=r[t],_=y,w=m?"set":"add",b=_&&_.prototype,x={},S=function(t){var e=b[t];a(b,t,"delete"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(v||b.forEach&&!d(function(){(new _).entries().next()}))){var A=new _,j=A[w](v?{}:-0,1)!=A,E=d(function(){A.has(1)}),L=f(function(t){new _(t)}),P=!v&&d(function(){for(var t=new _,e=5;e--;)t[w](e,e);return!t.has(-0)});L||((_=e(function(e,n){l(e,_,t);var r=g(new y,e,_);return null!=n&&c(n,m,r[w],r),r})).prototype=b,b.constructor=_),(E||P)&&(S("delete"),S("has"),m&&S("get")),(P||j)&&S(w),v&&b.clear&&delete b.clear}else _=h.getConstructor(e,t,m,w),i(_.prototype,n),s.NEED=!0;return p(_,t),x[t]=_,o(o.G+o.W+o.F*(_!=y),x),v||h.setStrong(_,t,m),_}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),c=i("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(141),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:("undefined"!=typeof XMLHttpRequest?s=n(96):void 0!==e&&(s=n(96)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){c.headers[t]={}}),r.forEach(["post","put","patch"],function(t){c.headers[t]=r.merge(a)}),t.exports=c}).call(this,n(140))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=(new DOMParser).parseFromString(t,e);return n?Array.prototype.slice.call(n.body.childNodes):n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
9 |
* JavaScript is all like "You images are done yet or what?"
|
10 |
* MIT License
|
11 |
*/
|
12 |
+
!function(a,i){"use strict";r=[n(166)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var c=t;"string"==typeof t&&(c=document.querySelectorAll(t)),c?(this.elements=function(t){if(Array.isArray(t))return t;if("object"==typeof t&&"number"==typeof t.length)return a.call(t);return[t]}(c),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function c(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new l(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout(function(){t.progress(e,n,r)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(c.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval(function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1},e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(50)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(22)(Function.call,n(19).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(73).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(18),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(18),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),c=r(n),l=s.length;return c<0||c>=l?t?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(i=s.charCodeAt(c+1))<56320||i>57343?t?s.charAt(c):a:t?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(10),i=n(15),s=n(39),c=n(119),l=n(38),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){c(n,e,g);var y,_,w,b=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],L=E||b(h),P=h?S?b("entries"):L:void 0,O="Array"==e&&j.entries||E;if(O&&(w=u(O.call(new t)))!==Object.prototype&&w.next&&(l(w,x,!0),r||"function"==typeof w[d]||i(w,d,p)),S&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,L),s[e]=L,s[x]=p,h)if(y={values:S?L:b("values"),keys:m?L:b("keys"),entries:P},v)for(_ in y)_ in j||a(j,_,y[_]);else o(o.P+o.F*(f||A),e,y);return y}},function(t,e,n){var r=n(82),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(39),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(7),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(46),o=n(5)("iterator"),a=n(39);t.exports=n(9).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(11),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);l>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(40),o=n(123),a=n(39),i=n(16);t.exports=n(80)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(55),i=RegExp.prototype.exec,s=String.prototype.replace,c=i,l=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,r,o,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",a.call(c))),l&&(e=c.lastIndex),r=i.call(c,t),l&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,e,n){"use strict";var r=n(79)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(22),s=n(113),c=n(72),l=n(67),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(y,t,1))}:h&&h.now?r=function(t){h.now(i(y,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=_,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(i(y,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(61),s=n(15),c=n(43),l=n(2),u=n(42),d=n(18),f=n(6),p=n(131),g=n(35).f,h=n(7).f,m=n(87),v=n(38),y="prototype",_="Wrong index!",w=r.ArrayBuffer,b=r.DataView,x=r.Math,S=r.RangeError,A=r.Infinity,j=w,E=x.abs,L=x.pow,P=x.floor,O=x.log,M=x.LN2,T=o?"_b":"buffer",I=o?"_l":"byteLength",F=o?"_o":"byteOffset";function C(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,c=(1<<s)-1,l=c>>1,u=23===e?L(2,-24)-L(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===A?(o=t!=t?1:0,r=c):(r=P(O(t)/M),t*(a=L(2,-r))<1&&(r--,a*=2),(t+=r+l>=1?u/a:u*L(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(t*a-1)*L(2,e),r+=l):(o=t*L(2,l-1)*L(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function N(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;s>0;u=256*u+t[c],c--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[c],c--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:l?-A:A;r+=L(2,e),u-=i}return(l?-1:1)*r*L(2,u-e)}function k(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function D(t){return[255&t,t>>8&255]}function q(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return C(t,52,8)}function B(t){return C(t,23,4)}function U(t,e,n){h(t[y],e,{get:function(){return this[n]}})}function W(t,e,n,r){var o=p(+n);if(o+e>t[I])throw S(_);var a=t[T]._b,i=o+t[F],s=a.slice(i,i+e);return r?s:s.reverse()}function H(t,e,n,r,o,a){var i=p(+n);if(i+e>t[I])throw S(_);for(var s=t[T]._b,c=i+t[F],l=r(+o),u=0;u<e;u++)s[c+u]=l[a?u:e-u-1]}if(i.ABV){if(!l(function(){w(1)})||!l(function(){new w(-1)})||l(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var V,G=(w=function(t){return u(this,w),new j(p(t))})[y]=j[y],Y=g(j),X=0;Y.length>X;)(V=Y[X++])in w||s(w,V,j[V]);a||(G.constructor=w)}var Q=new b(new w(2)),$=b[y].setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||c(b[y],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[I]=e},b=function(t,e,n){u(this,b,"DataView"),u(t,w,"DataView");var r=t[I],o=d(e);if(o<0||o>r)throw S("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw S("Wrong length!");this[T]=t,this[F]=o,this[I]=n},o&&(U(w,"byteLength","_l"),U(b,"buffer","_b"),U(b,"byteLength","_l"),U(b,"byteOffset","_o")),c(b[y],{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return k(W(this,4,t,arguments[1]))},getUint32:function(t){return k(W(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return N(W(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return N(W(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){H(this,1,t,R,e)},setUint8:function(t,e){H(this,1,t,R,e)},setInt16:function(t,e){H(this,2,t,D,e,arguments[2])},setUint16:function(t,e){H(this,2,t,D,e,arguments[2])},setInt32:function(t,e){H(this,4,t,q,e,arguments[2])},setUint32:function(t,e){H(this,4,t,q,e,arguments[2])},setFloat32:function(t,e){H(this,4,t,B,e,arguments[2])},setFloat64:function(t,e){H(this,8,t,z,e,arguments[2])}});v(w,"ArrayBuffer"),v(b,"DataView"),s(b[y],i.VIEW,!0),e.ArrayBuffer=w,e.DataView=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.filter=void 0;var r=M(n(94)),o=M(n(156));n(157);var a=M(n(158)),i=M(n(100)),s=M(n(160)),c=M(n(161)),l=M(n(63)),u=M(n(101)),d=O(n(162)),f=O(n(102)),p=n(103),g=M(n(163)),h=M(n(164)),m=M(n(48)),v=M(n(165)),y=M(n(49)),_=M(n(66)),w=M(n(167)),b=M(n(168)),x=M(n(169)),S=M(n(170)),A=M(n(64)),j=n(171),E=n(172),L=n(173),P=n(104);function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function M(t){return t&&t.__esModule?t:{default:t}}function T(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}n(174),n(341),n(342);var I=n(343),F=n(65);o.default.polyfill();var C=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.main=t,n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.addons.woocommerce=!(!n.localize||!n.localize.woocommerce),n.addons.woocommerce&&(n.addons.woocommerce_columns=n.localize.woocommerce.columns?parseInt(n.localize.woocommerce.columns):3,n.addons.woocommerce_paged=n.localize.woocommerce.paged?parseInt(n.localize.woocommerce.paged):1,n.addons.woocommerce_paged_urls=n.localize.woocommerce.paged_urls,n.addons.woocommerce_pages=parseInt(n.localize.woocommerce.pages),n.addons.woocommerce_classes={},n.addons.woocommerce_classes.container=n.localize.woocommerce.container,n.addons.woocommerce_classes.products=n.localize.woocommerce.products,n.addons.woocommerce_classes.results=n.localize.woocommerce.results,n.addons.woocommerce_results_text=document.querySelectorAll(n.addons.woocommerce_classes.results),n.addons.woocommerce_settings=n.localize.woocommerce.settings,n.page=parseInt(n.page)+n.addons.woocommerce_paged),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var w=(0,a.default)("pg");n.addons.filters_startpage=null!==w?parseInt(w):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var O=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=O?O.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",O){var M=document.querySelector(".alm-tab-nav li .active");M&&M.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":"",n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1):n.addons.nextpage=!1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0),"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug=""):n.addons.single_post=!1,void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls,(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,S.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Older Posts":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.addons.paging)n.main.classList.add("loading");else{var N=t.childNodes;if(N){var k=Array.prototype.slice.call(N).filter(function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")});n.button=k?k[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach(function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")}):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,j.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,c.default)(n);t?r.default.get(t).then(function(t){n.AjaxLoadMore.success(t.data,!0)}).catch(function(t){n.AjaxLoadMore.ajax("standard")}):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return I.stringify(t,{arrayFormat:"brackets",encode:!1})},t});var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink,a=""),t.addons.woocommerce&&(o=(0,L.wooGetURL)(t),a=""),r.default.get(o,{params:a}).then(function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,E.singlePostHTML)(e,t.addons.single_post_target),(0,E.singlePostCache)(t,r.html)):r=t.addons.woocommerce?(0,L.wooGetContent)(e,t):e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)}).catch(function(e){t.AjaxLoadMore.error(e,"adminajax")})},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return I.stringify(t,{arrayFormat:"brackets",encode:!1})},t}),r.default.get(e,{params:n}).then(function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)}).catch(function(e){t.AjaxLoadMore.error(e,"restapi")})},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use(function(t){return t.paramsSerializer=function(t){return I.stringify(t,{arrayFormat:"brackets",encode:!1})},t}),r.default.get(a,{params:i}).then(function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,c=i.totalposts,l=0;l<a.length;l++){var u=a[l];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:c}};t.AjaxLoadMore.success(d,!1)}).catch(function(e){t.AjaxLoadMore.error(e,"restapi")})},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,c="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=c,c.style.opacity=0,c.style.height=0,c.style.outline="none";var d,f,w,S=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,w=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,w=r?(0,l.default)(d).length:w,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&w>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===w&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout(function(){(0,b.default)(n.content,n.no_results)},n.speed+10)),n.isPaged&&(n.posts_per_page=n.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,x.default)(n),T(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}},t,o)}))(),w>0){if(n.addons.paging)n.init?setTimeout(function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)},n.speed):S&&((0,_.default)(S,n.speed),S.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout(function(){S.style.opacity=0,S.innerHTML=n.html,F(S,function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(S,n.speed),setTimeout(function(){S.style.opacity="",h.default.init(S)},parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)})},parseInt(n.speed)+25));else{if(n.addons.single_post)c.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),c.dataset.url=n.addons.single_post_permalink,c.dataset.page=n.page,c.dataset.id=n.addons.single_post_id,c.dataset.title=n.addons.single_post_title,c.innerHTML=n.html;else if(n.transition_container){var j=void 0,E=window.location.search,O=n.addons.seo?" alm-seo":"",M=n.addons.filters?" alm-filters":"",I=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var N=[],k=[],R=parseInt(n.posts_per_page),D=Math.ceil(w/R);a=!0,"true"===n.addons.cta&&(R+=1,D=Math.ceil(w/R),w=D+w);for(var q=(0,u.default)((0,l.default)(n.html,"text/html")),z=0;z<w;z+=R)N.push(q.slice(z,R+z));for(var B=0;B<N.length;B++){var U="true"===n.addons.preloaded?1:0,W=document.createElement("div");B>0||"true"===n.addons.preloaded?(j=B+1+U,n.addons.seo&&(W=(0,P.createSEOAttributes)(n,W,E,O,j)),n.addons.filters&&(W.setAttribute("class","alm-reveal"+M+n.tcc),W.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(E,j),W.dataset.page=j)):(n.addons.seo&&(W=(0,P.createSEOAttributes)(n,W,E,O,1)),n.addons.filters&&(W.setAttribute("class","alm-reveal"+M+I+n.tcc),W.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(E,0),W.dataset.page="1")),(0,i.default)(W,N[B]),(0,A.default)(W,n.ua),k.push(W)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),c=n.listing,n.el=c}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var H="true"===n.addons.preloaded?1:0;j=n.page+1+H,n.addons.seo?c=(0,P.createSEOAttributes)(n,c,E,O,j):n.addons.filters?(c.setAttribute("class","alm-reveal"+M+n.tcc),c.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(E,j),c.dataset.page=j):c.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(c.setAttribute("class","alm-reveal"+M+n.tcc),c.dataset.url=n.canonical_url+n.AjaxLoadMore.buildFilterURL(E,parseInt(n.page)+1),c.dataset.page=parseInt(n.page)+1):n.addons.seo?c=(0,P.createSEOAttributes)(n,c,E,O,1):c.setAttribute("class","alm-reveal"+n.tcc);c.innerHTML=n.html}}else n.el=n.html,c="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,l.default)(n.html,"text/html"));if(n.addons.woocommerce)return T(regeneratorRuntime.mark(function t(){var r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,L.woocommerce)(c,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log(t),console.log("There was an error loading woocommerce products")}),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(c):"true"===n.images_loaded?F(c,function(){(0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)}):((0,i.default)(n.listing,c),(0,A.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,T(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,n.init,C);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log("There was an error with ALM Masonry")})):"none"===n.transition?"true"===n.images_loaded?F(c,function(){(0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()}):((0,y.default)(c,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?F(c,function(){n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()}):(n.transition_container&&(0,y.default)(c,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&F(c,function(){(0,y.default)(n.listing,n.speed),setTimeout(function(){window.almTabsSetHeight(n)},n.speed)})}F(c,function(){n.AjaxLoadMore.nested(c),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),C&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),C=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n),n.addons.cache?w<n.posts_per_page&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var V=n.page+1;(V="true"===n.addons.preloaded?V++:V)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,c,w,C),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout(function(){n.button.classList.remove("loading"),n.button.classList.add("done")},n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),C&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),C=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,b.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),c=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),l=r.offsetHeight;n.listing.style.height=l+s+c+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout(function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")},n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach(function(t){window.almInit(t)})},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then(function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1}).catch(function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1})},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,n.addons.paging||(n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout(function(){window.almDone(n),(0,j.hidePlaceholder)(n)},n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts())},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc){var R=void 0;n.window.onresize=function(){clearTimeout(R),R=setTimeout(function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,S.default)(n))},n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout(function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window)e=n.window.querySelector(".ajax-load-more-wrap").offsetHeight<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance);!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override?n.button.click():!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause&&n.button.click()}},25)},n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()}),n.window.addEventListener("keyup",function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})),n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout(function(){n.loading=!1},3*n.speed)},100),(0,j.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.getQueryVariable=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1},n.AjaxLoadMore.buildFilterURL=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t;return n.addons.filters_paging&&(r=e>1?r?n.AjaxLoadMore.getQueryVariable("pg")?t.replace(/(pg=)[^\&]+/,"$1"+e):t+"&pg="+e:"?pg="+e:"&"===(r="?"===(r=t.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout(function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)},n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout(function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,b.default)(n.content,n.no_results))},n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,L.wooInit)(n),n.resultsText,n.addons.woocommerce_paged>=parseInt(n.addons.woocommerce_pages)&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",function(){n.is_masonry_preloaded&&T(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log("There was an error with ALM Masonry")}),"function"==typeof almOnLoad&&window.almOnLoad(n)})},n.AjaxLoadMore.init(),setTimeout(function(){n.proceed=!0},n.speed),window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()}};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach(function(e,n){new t(e,n)})}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;C=!0,(0,w.default)(t,e,n,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],alm_localize.speed?parseInt(alm_localize.speed):200);if(!t)return!1;C=!0,(0,w.default)("fade",e,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return!1}},function(t,e,n){t.exports=n(137)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(142),a=n(144),i=n(145),s=n(146),c=n(97),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(147);t.exports=function(t){return new Promise(function(e,u){var d=t.data,f=t.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest,g="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||s(t.url)||(p=new window.XDomainRequest,g="onload",h=!0,p.onprogress=function(){},p.ontimeout=function(){}),t.auth){var m=t.auth.username||"",v=t.auth.password||"";f.Authorization="Basic "+l(m+":"+v)}if(p.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p[g]=function(){if(p&&(4===p.readyState||h)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:t,request:p};o(e,u,r),p=null}},p.onerror=function(){u(c("Network Error",t,null,p)),p=null},p.ontimeout=function(){u(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(148),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(f[t.xsrfHeaderName]=_)}if("setRequestHeader"in p&&r.forEach(f,function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){p&&(p.abort(),u(t),p=null)}),void 0===d&&(d=null),p.send(d)})}},function(t,e,n){"use strict";var r=n(143);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(159),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"];return t.filter(function(t){return-1===e.indexOf(t.nodeName.toLowerCase())})}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,c=!!t.addons.paging,l=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/l),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=c?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;r(t,"nextpage"===e||"woocommerce"===e?e:"standard")},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach(function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0==(t.localize.post_count?parseInt(t.localize.post_count):0)&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var r=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,o=t.start_page?parseInt(t.start_page):0,a=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,i=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),l="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout(function(){if(t.addons.seo&&o>1||t.addons.filters&&a>1||t.addons.nextpage&&i>1){if(t.addons.seo&&o>1)for(var e=0;e<o;e++)s(t,e,r);if(t.addons.filters&&a>1)for(var u=0;u<a;u++)s(t,u,r);if(t.addons.nextpage&&i>1)for(var d=0;d<i;d++)s(t,d,r)}else!n&&l&&(c+=1),s(t,c,r)},100):(l&&(t.addons.seo&&o>0?c=c:t.addons.filters&&a>0?c=c:c+=1),s(t,c,r))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(93),a=n(48),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=document.querySelector('.alm-reveal.alm-single-post[data-page="'+(e-1)+'"]');n=r?r.dataset.title:n}var o="almTOCLabel_"+t.id;"function"==typeof window[o]&&(n=window[o](e,n));return n}(t,e),r.dataset.page=e,t.tableofcontents.appendChild(r),r.addEventListener("click",function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout(function(){(0,i.default)(t,a,r,!1)},1e3)})}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=(Math.ceil(e.length/parseInt(i)),[]),c=0;c<e.length;c+=i)s.push(e.slice(c,i+c));for(var l=0;l<s.length;l++){var u=l>0?l*i:0;n=l+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){t.exports=!n(8)&&!n(2)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(9),a=n(31),i=n(68),s=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(51)(!1),i=n(69)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,l=[];for(n in s)n!=i&&r(s,n)&&l.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~a(l,n)||l.push(n));return l}},function(t,e,n){var r=n(7),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,c=0;s>c;)r.f(t,n=i[c++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(32),o=n(52),a=n(45),i=n(11),s=n(44),c=Object.assign;t.exports=!c||n(2)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=i(t),c=arguments.length,l=1,u=o.f,d=a.f;c>l;)for(var f,p=s(arguments[l++]),g=u?r(p).concat(u(p)):r(p),h=g.length,m=0;h>m;)d.call(p,f=g[m++])&&(n[f]=p[f]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(23),o=n(4),a=n(113),i=[].slice,s={};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),c=function(){var r=n.concat(i.call(arguments));return this instanceof c?function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)}(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(53).trim,a=n(74),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(53).trim;t.exports=1/r(n(74)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(38),i={};n(15)(i,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(23),o=n(11),a=n(44),i=n(6);t.exports=function(t,e,n,s,c){r(e);var l=o(t),u=a(l),d=i(l.length),f=c?d-1:0,p=c?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,l));return s}},function(t,e,n){"use strict";var r=n(11),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),c=o(e,i),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?i:o(l,i))-c,i-s),d=1;for(c<s&&s<c+u&&(d=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(89);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(55)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),c=n(1),l=n(22),u=n(46),d=n(0),f=n(4),p=n(23),g=n(42),h=n(58),m=n(47),v=n(91).set,y=n(289)(),_=n(127),w=n(290),b=n(59),x=n(128),S=c.TypeError,A=c.process,j=A&&A.versions,E=j&&j.v8||"",L=c.Promise,P="process"==u(A),O=function(){},M=o=_.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(O,O)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==E.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?l(S("Promise-chain cycle")):(a=I(n))?a.call(n,c,l):c(n)):l(r)}catch(t){u&&!i&&u.exit(),l(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)})}},C=function(t){v.call(c,function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=w(function(){P?A.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=P||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(c,function(){var e;P?A.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,l(D,r,1),l(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){g(this,L,"Promise","_h"),p(t),r.call(this);try{t(l(D,this,1),l(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(43)(L.prototype,{then:function(t,e){var n=M(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=l(D,t,1),this.reject=l(R,t,1)},_.f=M=function(t){return t===L||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:L}),n(38)(L,"Promise"),n(41)("Promise"),i=n(9).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?L:this,t)}}),d(d.S+d.F*!(T&&n(54)(function(t){L.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,a=w(function(){var n=[],a=0,i=1;h(t,!1,function(t){var s=a++,c=!1;n.push(void 0),i++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--i||r(n))},o)}),--i||r(n)});return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=w(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(23);function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(127);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(7).f,o=n(34),a=n(43),i=n(22),s=n(42),c=n(58),l=n(80),u=n(123),d=n(41),f=n(8),p=n(28).fastKey,g=n(37),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t(function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&c(r,n,t[l],t)});return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=g(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(43),o=n(28).getWeak,a=n(3),i=n(4),s=n(42),c=n(58),l=n(21),u=n(14),d=n(37),f=l(5),p=l(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&c(r,n,t[a],t)});return r(l.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(18),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(52),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(76),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),c=s.length,l=void 0===n?" ":String(n),u=r(e);if(u<=c||""==l)return s;var d=u-c,f=o.call(l,Math.ceil(d/l.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(32),o=n(16),a=n(45).f;t.exports=function(t){return function(e){for(var n,i=o(e),s=r(i),c=s.length,l=0,u=[];c>l;)a.call(i,n=s[l++])&&u.push(t?[n,i[n]]:i[n]);return u}}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(Array.isArray(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r="string"==typeof t?t:String(t);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var a="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=r.charAt(i):s<128?a+=o[s]:s<2048?a+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?a+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),a+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return a},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var i=e;return Array.isArray(e)&&!Array.isArray(n)&&(i=a(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t(e[a],n,o):e.push(n):e[a]=n}),e):Object.keys(n).reduce(function(e,a){var i=n[a];return r.call(e,a)?e[a]=t(e[a],i,o):e[a]=i,e},i)}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(t,e,n){"use strict";var r=n(13),o=n(95),a=n(139),i=n(62);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var c=s(i);c.Axios=a,c.create=function(t){return s(r.merge(i,t))},c.Cancel=n(99),c.CancelToken=n(154),c.isCancel=n(98),c.all=function(t){return Promise.all(t)},c.spread=n(155),t.exports=c,t.exports.default=c},function(t,e){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}
|
13 |
/*!
|
14 |
* Determine if an object is a Buffer
|
15 |
*
|
16 |
* @author Feross Aboukhadijeh <https://feross.org>
|
17 |
* @license MIT
|
18 |
*/
|
19 |
+
t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(62),o=n(13),a=n(149),i=n(150);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(97);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))}))}),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}}),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,a=String(t),i="",s=0,c=r;a.charAt(0|s)||(c="=",s%1);i+=c.charAt(63&e>>8-s%1*8)){if((n=a.charCodeAt(s+=.75))>255)throw new o;e=e<<8|n}return i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(151),a=n(98),i=n(62),s=n(152),c=n(153);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||i.adapter)(t).then(function(e){return l(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(l(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(99);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var n,r=t.HTMLElement||t.Element,o=468,a={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||c,scrollIntoView:r.prototype.scrollIntoView},i=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,s=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):a.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?a.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(t){var n;do{n=(t=t.parentNode)===e.body}while(!1===n&&!1===f(t));return n=null,t}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(t,e){return"Y"===e?t.clientHeight+s<t.scrollHeight:"X"===e?t.clientWidth+s<t.scrollWidth:void 0}function d(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function f(t){var e=u(t,"Y")&&d(t,"Y"),n=u(t,"X")&&d(t,"X");return e||n}function p(e){var n,r,a,s,c=(i()-e.startTime)/o;s=c=c>1?1:c,n=.5*(1-Math.cos(Math.PI*s)),r=e.startX+(e.x-e.startX)*n,a=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,a),r===e.x&&a===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,o){var s,l,u,d,f=i();n===e.body?(s=t,l=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=a.scroll):(s=n,l=n.scrollLeft,u=n.scrollTop,d=c),p({scrollable:s,method:d,startTime:f,startX:l,startY:u,x:r,y:o})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!o(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var a,s=i(e.length),c=o(this)?Object(new this(s)):new Array(s),l=0;l<s;)a=e[l],c[l]=r?void 0===n?r(a,l):r.call(n,a,l):a,l+=1;return c.length=s,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");return e.innerHTML=t,[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e="",n=".html";if(t.init&&t.addons.seo&&t.isPaged)e=t.addons.cache_path+t.addons.cache_id+"/page-1-"+t.start_page+n;else if(t.addons.nextpage){var r=void 0;t.addons.paging?r=parseInt(t.page)+1:(r=parseInt(t.page)+2,t.isPaged&&(r=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=t.addons.cache_path+t.addons.cache_id+"/page-"+r+n}else t.addons.single_post?e=t.addons.cache_path+t.addons.cache_id+"/"+t.addons.single_post_id+n:t.addons.filters?console.log(t):e=t.addons.cache_path+t.addons.cache_id+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=t.listing.dataset.customArgs);return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(102));e.default=function(t){return new Promise(function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(63);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(49)),o=u(n(100)),a=u(n(63)),i=u(n(64)),s=u(n(101)),c=n(104),l=u(n(48));function u(t){return t&&t.__esModule?t:{default:t}}var d=n(65);e.default=function t(e,n,u){return new Promise(function(f){var p=e.listing,g=e.html,h=e.masonry_selector,m=e.masonry_columnwidth,v=e.masonry_animation,y=e.masonry_horizontalorder,_=e.speed,w=e.masonry_init,b=(_+100)/1e3+"s",x="scale(0.5)",S="scale(1)";if("zoom-out"===v&&(x="translateY(-20px) scale(1.25)",S="translateY(0) scale(1)"),"slide-up"===v&&(x="translateY(50px)",S="translateY(0)"),"slide-down"===v&&(x="translateY(-50px)",S="translateY(0)"),"none"===v&&(x="translateY(0)",S="translateY(0)"),m?isNaN(m)||(m=parseInt(m)):m=h,y="true"===y,u)p.parentNode.style.opacity=0,t(e,!0,!1),f(!0);else if(w&&n)(0,i.default)(p,e.ua),d(p,function(){var t={itemSelector:h,transitionDuration:b,columnWidth:m,horizontalOrder:y,hiddenStyle:{transform:x,opacity:0},visibleStyle:{transform:S,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach(function(e){t[e]=n[e]});var o=p.querySelectorAll(h);o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o)),setTimeout(function(){e.msnry=new Masonry(p,t),(0,r.default)(p.parentNode,_),f(!0)},25)});else{var A=(0,s.default)((0,a.default)(g,"text/html"));A&&((0,o.default)(e.listing,A,"masonry"),(0,i.default)(p,e.ua),d(p,function(){e.msnry.appended(A),(0,l.default)(e,A,A.length,!1),(0,c.createMasonrySEOPage)(e,A[0]),f(!0)}))}})}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=s(n(49)),a=s(n(66)),i=n(103);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";n.target?document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]').forEach(function(o){c(t,e,n,o,r)}):document.querySelectorAll(".ajax-load-more-wrap").forEach(function(o){c(t,e,n,o,r)});(0,i.clearTOC)()};var c=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout(function(){l(e,n,r,o)},e)}else r.classList.add("alm-is-filtering"),l(e,n,r,o)},l=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach(function(t){t.innerHTML=""});var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,c=!1,l=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){c=!0,l=t}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout(function(){t.placeholder.style.display="none"},75))};var r=a(n(49)),o=a(n(66));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=i,e.singlePostCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name",t.addons.single_post_id),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then(function(t){console.log(t)})};var r,o=n(94),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_classes.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_results_text){var n=t.querySelector(e.addons.woocommerce_classes.results);if(n){var r=n.innerHTML;e.addons.woocommerce_results_text.forEach(function(t){e.localize.woocommerce.settings.previous_page_link&&(r+=e.localize.woocommerce.settings.previous_page_link),t.innerHTML=r})}}}(r,e)}return n},e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_paged+1;var e=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_classes.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_classes.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_paged_urls[t.addons.woocommerce_paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_paged>1&&function(t){if(t&&t.addons.woocommerce_results_text){var e=document.querySelectorAll(t.addons.woocommerce_classes.results);if(e.length<1)return!1;e.forEach(function(e){if(t.localize.woocommerce.settings.previous_page_link){var n=e.innerHTML;n+=t.localize.woocommerce.settings.previous_page_link,e.innerHTML=n}})}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise(function(r){var o=document.querySelector(e.addons.woocommerce_classes.container),a=t.querySelectorAll(e.addons.woocommerce_classes.products),s=e.addons.woocommerce_columns;o&&a&&(a=Array.prototype.slice.call(a),i(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c(o,a,s,e,n);case 2:r(!0);case 3:case"end":return t.stop()}},t,this)}))().catch(function(t){console.log(t,"There was an error with WooCommerce")}))})},e.wooGetURL=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button").dataset.url;return e||""};var r=a(n(64)),o=a(n(48));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}var s=n(65);var c=function(t,e,n,r,a){return new Promise(function(n){var s=e.length,c=0,u=1;!function d(){u<=s?i(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e[c].style.opacity=0,1==u&&(e[c].classList.add("alm-woocommerce"),e[c].dataset.url=r.addons.woocommerce_paged_urls[r.page],e[c].dataset.page=r.page+1,e[c].dataset.pageTitle=a),n.next=4,l(t,e[c],r.ua);case 4:u++,c++,d();case 7:case"end":return n.stop()}},n,this)}))().catch(function(t){console.log("There was an error with WooCommerce")}):(n(!0),e.map(function(t){t.style.opacity=1}),e[0]&&(0,o.default)(r,e[0],null,!1))}()})},l=function(t,e,n){return new Promise(function(o){s(e,function(){e.style.transition="all 0.3s ease",t.appendChild(e),(0,r.default)(e,n),o(!0)})})}},function(t,e,n){n(175)},function(t,e,n){"use strict";n(176),n(320),n(322),n(324),n(326),n(328),n(330),n(332),n(334),n(336),n(340)},function(t,e,n){n(177),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(258),n(259),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(88),n(283),n(124),n(284),n(125),n(285),n(286),n(287),n(288),n(126),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),t.exports=n(9)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(10),c=n(28).KEY,l=n(2),u=n(50),d=n(38),f=n(30),p=n(5),g=n(68),h=n(106),m=n(179),v=n(71),y=n(3),_=n(4),w=n(16),b=n(27),x=n(29),S=n(34),A=n(109),j=n(19),E=n(7),L=n(32),P=j.f,O=E.f,M=A.f,T=r.Symbol,I=r.JSON,F=I&&I.stringify,C=p("_hidden"),N=p("toPrimitive"),k={}.propertyIsEnumerable,R=u("symbol-registry"),D=u("symbols"),q=u("op-symbols"),z=Object.prototype,B="function"==typeof T,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,H=a&&l(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(z,e);r&&delete z[e],O(t,e,n),r&&t!==z&&O(z,e,r)}:O,V=function(t){var e=D[t]=S(T.prototype);return e._k=t,e},G=B&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,n){return t===z&&Y(q,e,n),y(t),e=b(e,!0),y(n),o(D,e)?(n.enumerable?(o(t,C)&&t[C][e]&&(t[C][e]=!1),n=S(n,{enumerable:x(0,!1)})):(o(t,C)||O(t,C,x(1,{})),t[C][e]=!0),H(t,e,n)):O(t,e,n)},X=function(t,e){y(t);for(var n,r=m(e=w(e)),o=0,a=r.length;a>o;)Y(t,n=r[o++],e[n]);return t},Q=function(t){var e=k.call(this,t=b(t,!0));return!(this===z&&o(D,t)&&!o(q,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,C)&&this[C][t])||e)},$=function(t,e){if(t=w(t),e=b(e,!0),t!==z||!o(D,e)||o(q,e)){var n=P(t,e);return!n||!o(D,e)||o(t,C)&&t[C][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=M(w(t)),r=[],a=0;n.length>a;)o(D,e=n[a++])||e==C||e==c||r.push(e);return r},J=function(t){for(var e,n=t===z,r=M(n?q:w(t)),a=[],i=0;r.length>i;)!o(D,e=r[i++])||n&&!o(z,e)||a.push(D[e]);return a};B||(s((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(q,n),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),H(this,t,x(1,n))};return a&&W&&H(z,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),j.f=$,E.f=Y,n(35).f=A.f=K,n(45).f=Q,n(52).f=J,a&&!n(31)&&s(z,"propertyIsEnumerable",Q,!0),g.f=function(t){return V(p(t))}),i(i.G+i.W+i.F*!B,{Symbol:T});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)p(Z[tt++]);for(var et=L(p.store),nt=0;et.length>nt;)h(et[nt++]);i(i.S+i.F*!B,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),i(i.S+i.F*!B,"Object",{create:function(t,e){return void 0===e?S(t):X(S(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:J}),I&&i(i.S+i.F*(!B||l(function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(_(e)||void 0!==t)&&!G(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,F.apply(I,r)}}),T.prototype[N]||n(15)(T.prototype,N,T.prototype.valueOf),d(T,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(50)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(52),a=n(45);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),c=a.f,l=0;s.length>l;)c.call(t,i=s[l++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(108)})},function(t,e,n){var r=n(16),o=n(19).f;n(20)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(11),o=n(36);n(20)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(11),o=n(32);n(20)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){n(20)("getOwnPropertyNames",function(){return n(109).f})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(20)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(4);n(20)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(20)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(20)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(110)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(111)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(73).set})},function(t,e,n){"use strict";var r=n(46),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(10)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(112)})},function(t,e,n){var r=n(7).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(7).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(114);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(115);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(75),s=n(27),c=n(2),l=n(35).f,u=n(19).f,d=n(7).f,f=n(53).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,c=e.slice(2),l=0,u=c.length;l<u;l++)if((i=c.charCodeAt(l))<48||i>o)return NaN;return parseInt(c,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?c(function(){h.valueOf.call(n)}):"Number"!=a(n))?i(new g(y(e)),n,p):y(e)};for(var _,w=n(8)?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),b=0;w.length>b;b++)o(g,_=w[b])&&!o(p,_)&&d(p,_,u(g,_));p.prototype=h,h.constructor=p,n(10)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(18),a=n(116),i=n(76),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*l[n],l[n]=r%1e7,r=c(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=c(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,r,s,c=a(this,u),l=o(t),h="",m="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(h="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*g(2,69,1))-69)<0?c*g(2,-e,1):c/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=l;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",l);return m=l>0?h+((s=m.length)<=l?"0."+i.call("0",l-s)+m:m.slice(0,s-l)+"."+m.slice(s-l)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(116),i=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==i.call(1,void 0)})||!o(function(){i.call({})})),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(117)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(117),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(115);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(114);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(118),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(77);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(78);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(222)})},function(t,e,n){var r=n(77),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),l=r(t);return o<c?l*(o/c/i+1/a-1/a)*c*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?l*(1/0):l*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,c=0;i<s;)c<(n=o(arguments[i++]))?(a=a*(r=c/n)*r+1,c=n):a+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(118)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(77)})},function(t,e,n){var r=n(0),o=n(78),a=Math.exp;r(r.S+r.F*n(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(78),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(53)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(79)(!0);n(80)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(79)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(81),i="".endsWith;r(r.P+r.F*n(83)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),c=String(t);return i?i.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,n){"use strict";var r=n(0),o=n(81);r(r.P+r.F*n(83)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(76)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(81),i="".startsWith;r(r.P+r.F*n(83)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(12)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(12)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(12)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(11),a=n(27);r(r.P+r.F*n(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(257);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(10)(r,"toString",function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(260))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(71)})},function(t,e,n){"use strict";var r=n(22),o=n(0),a=n(11),i=n(120),s=n(84),c=n(6),l=n(85),u=n(86);o(o.S+o.F*!n(54)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,y=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=c(f.length));e>v;v++)l(n,v,m?h(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(o=d.next()).done;v++)l(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(85);r(r.S+r.F*n(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(44)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(72),a=n(24),i=n(33),s=n(6),c=[].slice;r(r.P+r.F*n(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=i(t,n),l=i(e,n),u=s(l-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(23),a=n(11),i=n(2),s=[].sort,c=[1,2,3];r(r.P+r.F*(i(function(){c.sort(void 0)})||!i(function(){c.sort(null)})||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(269);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(4),o=n(71),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(21)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(21)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(121);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(121);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(51)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(18),i=n(6),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(17)(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(122)}),n(40)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(87)}),n(40)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(21)(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("find")},function(t,e,n){"use strict";var r=n(0),o=n(21)(6),a="findIndex",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)(a)},function(t,e,n){n(41)("Array")},function(t,e,n){var r=n(1),o=n(75),a=n(7).f,i=n(35).f,s=n(82),c=n(55),l=r.RegExp,u=l,d=l.prototype,f=/a/g,p=/a/g,g=new l(f)!==f;if(n(8)&&(!g||n(2)(function(){return p[n(5)("match")]=!1,l(f)!=f||l(p)==p||"/a/i"!=l(f,"i")}))){l=function(t,e){var n=this instanceof l,r=s(t),a=void 0===e;return!n&&r&&t.constructor===l&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof l)?t.source:t,r&&a?c.call(t):e),n?this:d,l)};for(var h=function(t){t in l||a(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=l,l.prototype=d,n(10)(r,"RegExp",l)}n(41)("RegExp")},function(t,e,n){"use strict";n(125);var r=n(3),o=n(55),a=n(8),i=/./.toString,s=function(t){n(10)(RegExp.prototype,"toString",t,!0)};n(2)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?s(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=i.name&&s(function(){return i.call(this)})},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(90),i=n(56);n(57)("match",1,function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return i(c,l);var u=c.unicode;c.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(c,l));){var g=String(d[0]);f[p]=g,""===g&&(c.lastIndex=a(l,o(c.lastIndex),u)),p++}return 0===p?null:f}]})},function(t,e,n){"use strict";var r=n(3),o=n(11),a=n(6),i=n(18),s=n(90),c=n(56),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(57)("replace",2,function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var _=c(d,f);if(null===_)break;if(y.push(_),!m)break;""===String(_[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var w,b="",x=0,S=0;S<y.length;S++){_=y[S];for(var A=String(_[0]),j=l(u(i(_.index),f.length),0),E=[],L=1;L<_.length;L++)E.push(void 0===(w=_[L])?w:String(w));var P=_.groups;if(p){var O=[A].concat(E,j,f);void 0!==P&&O.push(P);var M=String(e.apply(void 0,O))}else M=h(A,f,j,E,P,e);j>=x&&(b+=f.slice(x,j)+M,x=j+A.length)}return b+f.slice(x)}];function h(t,e,r,a,i,s){var c=r+t.length,l=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s})}})},function(t,e,n){"use strict";var r=n(3),o=n(111),a=n(56);n(57)("search",1,function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),c=String(this),l=s.lastIndex;o(l,0)||(s.lastIndex=0);var u=a(s,c);return o(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]})},function(t,e,n){"use strict";var r=n(82),o=n(3),a=n(47),i=n(90),s=n(6),c=n(56),l=n(89),u=n(2),d=Math.min,f=[].push,p=!u(function(){RegExp(4294967295,"y")});n(57)("split",2,function(t,e,n,u){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,u+"g");(a=l.call(g,o))&&!((i=g.lastIndex)>d&&(c.push(o.slice(d,a.index)),a.length>1&&a.index<o.length&&f.apply(c,a.slice(1)),s=a[0].length,d=i,c.length>=p));)g.lastIndex===a.index&&g.lastIndex++;return d===o.length?!s&&g.test("")||c.push(""):c.push(o.slice(d)),c.length>p?c.slice(0,p):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):g.call(String(o),n,r)},function(t,e){var r=u(g,t,this,e,g!==n);if(r.done)return r.value;var l=o(t),f=String(this),h=a(l,RegExp),m=l.unicode,v=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),y=new h(p?l:"^(?:"+l.source+")",v),_=void 0===e?4294967295:e>>>0;if(0===_)return[];if(0===f.length)return null===c(y,f)?[f]:[];for(var w=0,b=0,x=[];b<f.length;){y.lastIndex=p?b:0;var S,A=c(y,p?f:f.slice(b));if(null===A||(S=d(s(y.lastIndex+(p?0:b)),f.length))===w)b=i(f,b,m);else{if(x.push(f.slice(w,b)),x.length===_)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===_)return x;b=w=S}}return x.push(f.slice(w)),x}]})},function(t,e,n){var r=n(1),o=n(91).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,c="process"==n(24)(i);t.exports=function(){var t,e,n,l=function(){var r,o;for(c&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){i.nextTick(l)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var d=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(129),o=n(37);t.exports=n(60)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(129),o=n(37);t.exports=n(60)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(21)(0),i=n(10),s=n(28),c=n(110),l=n(130),u=n(4),d=n(37),f=n(37),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=l.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(d(this,"WeakMap"),t,e)}},_=t.exports=n(60)("WeakMap",v,y,l,!0,!0);f&&p&&(c((r=l.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,a(["delete","has","get","set"],function(t){var e=_.prototype,n=e[t];i(e,t,function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)})}))},function(t,e,n){"use strict";var r=n(130),o=n(37);n(60)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(61),a=n(92),i=n(3),s=n(33),c=n(6),l=n(4),u=n(1).ArrayBuffer,d=n(47),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||l(t)&&m in t}}),r(r.P+r.U+r.F*n(2)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(c(o-r)),l=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,l.getUint8(r++));return a}}),n(41)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(61).ABV,{DataView:n(92).DataView})},function(t,e,n){n(26)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(26)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(26)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(0),o=n(23),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)(function(){i(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),c=a(n);return i?i(r,e,c):s.call(r,e,c)}})},function(t,e,n){var r=n(0),o=n(34),a=n(23),i=n(3),s=n(4),c=n(2),l=n(112),u=(n(1).Reflect||{}).construct,d=c(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),f=!c(function(){u(function(){})});r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var c=n.prototype,p=o(s(c)?c:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(7),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(19).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(119)(a,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(19),o=n(36),a=n(14),i=n(0),s=n(4),c=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,l,u=arguments.length<3?e:arguments[2];return c(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(l=o(e))?t(l,n,u):void 0}})},function(t,e,n){var r=n(19),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(132)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(7),o=n(19),a=n(36),i=n(14),s=n(0),c=n(29),l=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(l(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=c(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,c(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(73);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(321),t.exports=n(9).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(51)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(40)("includes")},function(t,e,n){n(323),t.exports=n(9).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(133),a=n(59),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(325),t.exports=n(9).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(133),a=n(59),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(327),t.exports=n(68).f("asyncIterator")},function(t,e,n){n(106)("asyncIterator")},function(t,e,n){n(329),t.exports=n(9).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(132),a=n(16),i=n(19),s=n(85);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),c=i.f,l=o(r),u={},d=0;l.length>d;)void 0!==(n=c(r,e=l[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(331),t.exports=n(9).Object.values},function(t,e,n){var r=n(0),o=n(134)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(333),t.exports=n(9).Object.entries},function(t,e,n){var r=n(0),o=n(134)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(126),n(335),t.exports=n(9).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(9),a=n(1),i=n(47),s=n(128);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(337),n(338),n(339),t.exports=n(9)},function(t,e,n){var r=n(1),o=n(0),a=n(59),i=[].slice,s=/MSIE .\./.test(a),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){var r=n(0),o=n(91);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(88),o=n(32),a=n(10),i=n(1),s=n(15),c=n(39),l=n(5),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],y=p[v],_=i[v],w=_&&_.prototype;if(w&&(w[u]||s(w,u,f),w[d]||s(w,d,v),c[v]=f,y))for(m in r)w[m]||a(w,m,r[m],!0)}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"==typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{(u=e.regeneratorRuntime=l?t.exports:{}).wrap=w;var d="suspendedStart",f="suspendedYield",p="executing",g="completed",h={},m={};m[i]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(T([])));y&&y!==r&&o.call(y,i)&&(m=y);var _=A.prototype=x.prototype=Object.create(m);S.prototype=_.constructor=A,A.constructor=S,A[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(_),t},u.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[s]=function(){return this},u.AsyncIterator=E,u.async=function(t,e,n,r){var o=new E(w(t,e,n,r));return u.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(_),_[c]="Generator",_[i]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=T,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return s.type="throw",s.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),h}}}function w(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new M(r||[]);return a._invoke=function(t,e,n){var r=d;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return I()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=L(i,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=b(t,e,n);if("normal"===c.type){if(r=n.done?g:f,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=g,n.method="throw",n.arg=c.arg)}}}(t,n,i),a}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function x(){}function S(){}function A(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,r){function a(){return new Promise(function(e,a){!function e(n,r,a,i){var s=b(t[n],t,r);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&o.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(l).then(function(t){c.value=t,a(c)},function(t){return e("throw",t,a,i)})}i(s.arg)}(n,r,e,a)})}return e=e?e.then(a,a):a()}}function L(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,L(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=b(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",function(t){t.preventDefault(),t.stopPropagation()},!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);this.nativeFocus(),function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]}(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,c;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,c=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",c.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),c.call(n,"get")||c.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return c.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)c.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var l={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,c=function(t){return t.charAt(1).toUpperCase()},l=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",function(){}),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,c);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:l.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",l)}catch(t){l.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",l)}}},function(t,e,n){"use strict";var r=n(344),o=n(345),a=n(136);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(135),o=n(136),a={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},i=Array.isArray,s=Array.prototype.push,c=function(t,e){s.apply(t,i(e)?e:[e])},l=Date.prototype.toISOString,u={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,o,a,i,s,l,d,f,p,g,h,m){var v=e;if("function"==typeof l?v=l(n,v):v instanceof Date&&(v=p(v)),null===v){if(a)return s&&!h?s(n,u.encoder,m):n;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||r.isBuffer(v))return s?[g(h?n:s(n,u.encoder,m))+"="+g(s(v,u.encoder,m))]:[g(n)+"="+g(String(v))];var y,_=[];if(void 0===v)return _;if(Array.isArray(l))y=l;else{var w=Object.keys(v);y=d?w.sort(d):w}for(var b=0;b<y.length;++b){var x=y[b];i&&null===v[x]||(Array.isArray(v)?c(_,t(v[x],o(n,x),o,a,i,s,l,d,f,p,g,h,m)):c(_,t(v[x],n+(f?"."+x:"["+x+"]"),o,a,i,s,l,d,f,p,g,h,m)))}return _};t.exports=function(t,e){var n=t,i=e?r.assign({},e):{};if(null!==i.encoder&&void 0!==i.encoder&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var s=void 0===i.delimiter?u.delimiter:i.delimiter,l="boolean"==typeof i.strictNullHandling?i.strictNullHandling:u.strictNullHandling,f="boolean"==typeof i.skipNulls?i.skipNulls:u.skipNulls,p="boolean"==typeof i.encode?i.encode:u.encode,g="function"==typeof i.encoder?i.encoder:u.encoder,h="function"==typeof i.sort?i.sort:null,m=void 0===i.allowDots?u.allowDots:!!i.allowDots,v="function"==typeof i.serializeDate?i.serializeDate:u.serializeDate,y="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:u.encodeValuesOnly,_=i.charset||u.charset;if(void 0!==i.charset&&"utf-8"!==i.charset&&"iso-8859-1"!==i.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===i.format)i.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,i.format))throw new TypeError("Unknown format option provided.");var w,b,x=o.formatters[i.format];"function"==typeof i.filter?n=(b=i.filter)("",n):Array.isArray(i.filter)&&(w=b=i.filter);var S,A=[];if("object"!=typeof n||null===n)return"";S=i.arrayFormat in a?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var j=a[S];w||(w=Object.keys(n)),h&&w.sort(h);for(var E=0;E<w.length;++E){var L=w[E];f&&null===n[L]||c(A,d(n[L],L,j,l,f,p?g:null,b,h,m,v,x,y,_))}var P=A.join(s),O=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&(O+="iso-8859-1"===_?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),P.length>0?O+P:""}},function(t,e,n){"use strict";var r=n(135),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},s=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,c=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(i=a.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,i[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(i[1])}return i&&c.push("["+r.slice(i.index)+"]"),function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var a,i=t[o];if("[]"===i&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=r:a[s]=r:a={0:r}}r=a}return r}(c,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots=void 0===n.allowDots?a.allowDots:!!n.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,void 0!==n.charset&&"utf-8"!==n.charset&&"iso-8859-1"!==n.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0===n.charset&&(n.charset=a.charset),""===t||null==t)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var n,s={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,u=c.split(e.delimiter,l),d=-1,f=e.charset;if(e.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?f="utf-8":"utf8=%26%2310003%3B"===u[n]&&(f="iso-8859-1"),d=n,n=u.length);for(n=0;n<u.length;++n)if(n!==d){var p,g,h=u[n],m=h.indexOf("]="),v=-1===m?h.indexOf("="):m+1;-1===v?(p=e.decoder(h,a.decoder,f),g=e.strictNullHandling?null:""):(p=e.decoder(h.slice(0,v),a.decoder,f),g=e.decoder(h.slice(v+1),a.decoder,f)),g&&e.interpretNumericEntities&&"iso-8859-1"===f&&(g=i(g)),o.call(s,p)?s[p]=r.combine(s[p],g):s[p]=g}return s}(t,n):t,l=n.plainObjects?Object.create(null):{},u=Object.keys(c),d=0;d<u.length;++d){var f=u[d],p=s(f,c[f],n);l=r.merge(l,p,n)}return r.compact(l)}}]);
|
core/functions.php
CHANGED
File without changes
|
core/src/js/addons/seo.js
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
/**
|
3 |
+
* createMasonrySEOPage
|
4 |
+
* Create data attributes for SEO paged results
|
5 |
+
*
|
6 |
+
* @param {Object} alm
|
7 |
+
* @param {Array} elements
|
8 |
+
* @since 5.3.1
|
9 |
+
*/
|
10 |
+
export function createMasonrySEOPage(alm, element){
|
11 |
+
|
12 |
+
if(!alm.addons.seo){
|
13 |
+
return element;
|
14 |
+
}
|
15 |
+
|
16 |
+
let querystring = window.location.search;
|
17 |
+
let seo_class = 'alm-seo';
|
18 |
+
let page = alm.page + 1;
|
19 |
+
page = (alm.addons.preloaded === 'true') ? page + 1 : page;
|
20 |
+
element = createMasonryDataAtts(alm, element, querystring, seo_class, page);
|
21 |
+
|
22 |
+
return element;
|
23 |
+
}
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
/**
|
28 |
+
* createMasonrySEOPages
|
29 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
30 |
+
*
|
31 |
+
* @param {Object} alm
|
32 |
+
* @param {Array} elements
|
33 |
+
* @since 5.3.1
|
34 |
+
*/
|
35 |
+
export function createMasonrySEOPages( alm, elements ){
|
36 |
+
|
37 |
+
if(!alm.addons.seo){
|
38 |
+
return elements
|
39 |
+
}
|
40 |
+
|
41 |
+
let pagenum = 1;
|
42 |
+
let page = alm.page;
|
43 |
+
let seo_class = 'alm-seo';
|
44 |
+
let querystring = window.location.search;
|
45 |
+
|
46 |
+
if(alm.start_page > 1){
|
47 |
+
// Create pages
|
48 |
+
let posts_per_page = parseInt(alm.posts_per_page);
|
49 |
+
let pages = Math.ceil(elements.length / parseInt(posts_per_page));
|
50 |
+
let return_data = [];
|
51 |
+
|
52 |
+
// Slice data array into individual pages
|
53 |
+
for (let i = 0; i < elements.length; i += posts_per_page) {
|
54 |
+
return_data.push(elements.slice(i, posts_per_page + i));
|
55 |
+
}
|
56 |
+
|
57 |
+
// Loop new data array
|
58 |
+
for (let k = 0; k < return_data.length; k++) {
|
59 |
+
let target = (k > 0) ? k * posts_per_page : 0;
|
60 |
+
pagenum = k + 1;
|
61 |
+
if(elements[target]){
|
62 |
+
elements[target] = createMasonryDataAtts(alm, elements[target], querystring, seo_class, pagenum);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
+
else {
|
67 |
+
pagenum = page;
|
68 |
+
elements[0] = createMasonryDataAtts(alm, elements[0], querystring, seo_class, pagenum);
|
69 |
+
|
70 |
+
}
|
71 |
+
|
72 |
+
return elements;
|
73 |
+
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
// Create the attributes (page, url, classes) for the masonry items
|
78 |
+
function createMasonryDataAtts( alm, element, querystring, seo_class, pagenum ){
|
79 |
+
|
80 |
+
element.classList.add(seo_class);
|
81 |
+
element.dataset.page = pagenum;
|
82 |
+
|
83 |
+
if (alm.addons.seo_permalink === 'default') {
|
84 |
+
|
85 |
+
// Default Permalinks
|
86 |
+
if(pagenum > 1){
|
87 |
+
element.dataset.url = alm.canonical_url + querystring + '&paged=' + pagenum;
|
88 |
+
} else {
|
89 |
+
element.dataset.url = alm.canonical_url + querystring;
|
90 |
+
}
|
91 |
+
|
92 |
+
} else {
|
93 |
+
|
94 |
+
// Pretty Permalinks
|
95 |
+
if(pagenum > 1){
|
96 |
+
element.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
97 |
+
} else {
|
98 |
+
element.dataset.url = alm.canonical_url + querystring;
|
99 |
+
}
|
100 |
+
|
101 |
+
}
|
102 |
+
|
103 |
+
return element;
|
104 |
+
}
|
105 |
+
|
106 |
+
|
107 |
+
|
108 |
+
/**
|
109 |
+
* createSEOAttributes
|
110 |
+
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
111 |
+
*
|
112 |
+
* @param {Object} alm
|
113 |
+
* @param {Array} elements
|
114 |
+
* ...
|
115 |
+
* @since 5.3.1
|
116 |
+
*/
|
117 |
+
export function createSEOAttributes( alm, element, querystring, seo_class, pagenum ){
|
118 |
+
|
119 |
+
element.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
120 |
+
element.dataset.page = pagenum;
|
121 |
+
|
122 |
+
if (alm.addons.seo_permalink === 'default') {
|
123 |
+
// Default Permalinks
|
124 |
+
element.dataset.url = (pagenum > 1) ? alm.canonical_url + querystring + '&paged=' + pagenum : alm.canonical_url + querystring;
|
125 |
+
} else {
|
126 |
+
// Pretty Permalinks
|
127 |
+
element.dataset.url = (pagenum > 1) ? alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring : alm.canonical_url + querystring;
|
128 |
+
}
|
129 |
+
|
130 |
+
return element;
|
131 |
+
}
|
132 |
+
|
core/src/js/addons/singleposts.js
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import axios from 'axios';
|
2 |
+
|
3 |
+
|
4 |
+
/**
|
5 |
+
* singlePostHTML
|
6 |
+
* Create the HTML for loading Single Posts
|
7 |
+
*
|
8 |
+
* @param {Object} response Query response
|
9 |
+
* @param {HTMLElement} target The target div
|
10 |
+
* @since 5.1.8.1
|
11 |
+
*/
|
12 |
+
export function singlePostHTML(response, target = null){
|
13 |
+
let data = {
|
14 |
+
html: '',
|
15 |
+
meta: {
|
16 |
+
postcount: 1,
|
17 |
+
totalposts: 1,
|
18 |
+
debug: 'Single Posts Query',
|
19 |
+
}
|
20 |
+
}
|
21 |
+
if(response.status === 200 && response.data && target){
|
22 |
+
let div = document.createElement("div");
|
23 |
+
div.innerHTML = response.data;
|
24 |
+
let htmlTarget = div.querySelector(target);
|
25 |
+
if(htmlTarget){
|
26 |
+
data.html = htmlTarget.innerHTML;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
return data;
|
30 |
+
}
|
31 |
+
|
32 |
+
export default singlePostHTML;
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
/**
|
37 |
+
* singlePostCache
|
38 |
+
* Create a single post cache file
|
39 |
+
*
|
40 |
+
* @param {Object} alm
|
41 |
+
* @param {String} content
|
42 |
+
* @since 5.3.1
|
43 |
+
*/
|
44 |
+
export function singlePostCache(alm, content){
|
45 |
+
|
46 |
+
if(alm.addons.cache !== 'true' || !content || content === ''){
|
47 |
+
return false;
|
48 |
+
}
|
49 |
+
|
50 |
+
let formData = new FormData();
|
51 |
+
formData.append('action', 'alm_cache_from_html');
|
52 |
+
formData.append('security', alm_localize.alm_nonce);
|
53 |
+
formData.append('cache_id', alm.addons.cache_id);
|
54 |
+
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
55 |
+
formData.append('canonical_url', alm.canonical_url);
|
56 |
+
formData.append('name', alm.addons.single_post_id);
|
57 |
+
formData.append('html', content.trim());
|
58 |
+
|
59 |
+
axios.post(alm_localize.ajaxurl, formData)
|
60 |
+
.then(function(response){
|
61 |
+
console.log(response);
|
62 |
+
});
|
63 |
+
|
64 |
+
}
|
core/src/js/{modules → addons}/woocommerce.js
RENAMED
@@ -1,11 +1,8 @@
|
|
1 |
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
2 |
-
import setFocus from '
|
3 |
let imagesLoaded = require('imagesloaded');
|
4 |
|
5 |
|
6 |
-
// Set variables
|
7 |
-
|
8 |
-
|
9 |
|
10 |
/**
|
11 |
* wooGetContent
|
1 |
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
2 |
+
import setFocus from '../modules/setFocus';
|
3 |
let imagesLoaded = require('imagesloaded');
|
4 |
|
5 |
|
|
|
|
|
|
|
6 |
|
7 |
/**
|
8 |
* wooGetContent
|
core/src/js/ajax-load-more.js
CHANGED
@@ -8,7 +8,8 @@
|
|
8 |
|
9 |
|
10 |
// Polyfills
|
11 |
-
require(
|
|
|
12 |
require('./helpers/polyfills.js');
|
13 |
|
14 |
|
@@ -44,8 +45,9 @@ import almDebug from './modules/almDebug';
|
|
44 |
import getScrollPercentage from './modules/getScrollPercentage';
|
45 |
import srcsetPolyfill from './helpers/srcsetPolyfill';
|
46 |
import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
|
47 |
-
import {
|
48 |
-
import
|
|
|
49 |
|
50 |
|
51 |
// Global filtering var
|
@@ -103,7 +105,6 @@ let alm_is_filtering = false;
|
|
103 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
104 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
105 |
|
106 |
-
|
107 |
// Main ALM Containers
|
108 |
alm.main = el; // Top level DOM element
|
109 |
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
@@ -160,9 +161,10 @@ let alm_is_filtering = false;
|
|
160 |
alm.integration.woocommerce = (alm.listing.dataset.woocommerce) ? alm.listing.dataset.woocommerce : false;
|
161 |
alm.integration.woocommerce = (alm.integration.woocommerce === 'true') ? true : false;
|
162 |
|
163 |
-
|
164 |
// Addon Shortcode Params
|
165 |
-
|
|
|
|
|
166 |
if(alm.addons.woocommerce){
|
167 |
alm.addons.woocommerce_columns = (alm.localize.woocommerce.columns) ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
|
168 |
alm.addons.woocommerce_paged = (alm.localize.woocommerce.paged) ? parseInt(alm.localize.woocommerce.paged) : 1; // Woocommerce Paged
|
@@ -178,56 +180,70 @@ let alm_is_filtering = false;
|
|
178 |
|
179 |
}
|
180 |
|
181 |
-
|
182 |
-
alm.addons.cache = alm.listing.dataset.cache;
|
183 |
alm.addons.cache = (alm.addons.cache === undefined) ? false : alm.addons.cache;
|
184 |
-
alm.addons.
|
185 |
-
|
186 |
-
|
187 |
-
|
|
|
|
|
188 |
|
189 |
-
|
190 |
-
alm.addons.
|
191 |
-
alm.addons.
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
alm.addons.
|
199 |
-
alm.addons.
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
alm.addons.
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
alm.addons.tabs = alm.listing.dataset.tabs;
|
220 |
|
221 |
alm.addons.filters = alm.listing.dataset.filters;
|
222 |
|
223 |
-
alm.addons.seo = alm.listing.dataset.seo;
|
224 |
-
|
|
|
225 |
alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
226 |
alm.addons.preloaded_amount = (alm.listing.dataset.preloadedAmount) ? alm.listing.dataset.preloadedAmount : 0;
|
227 |
alm.is_preloaded = (alm.listing.dataset.isPreloaded === 'true') ? true : false;
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
alm.addons.users = (alm.listing.dataset.users === 'true') ? true : false; // Users add-on
|
232 |
if (alm.addons.users) { // Override paging params for users
|
233 |
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
@@ -253,13 +269,15 @@ let alm_is_filtering = false;
|
|
253 |
alm.extensions.acf = false;
|
254 |
}
|
255 |
|
|
|
256 |
alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
|
257 |
alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
|
258 |
alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
|
259 |
alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
|
260 |
alm.extensions.term_query = (alm.extensions.term_query === 'true') ? true : false;
|
261 |
|
262 |
-
|
|
|
263 |
if (alm.addons.paging === 'true') {
|
264 |
alm.addons.paging = true;
|
265 |
alm.addons.paging_init = true;
|
@@ -273,6 +291,9 @@ let alm_is_filtering = false;
|
|
273 |
alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
|
274 |
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
275 |
|
|
|
|
|
|
|
276 |
// If preloaded, pause ALM
|
277 |
alm.pause = (alm.addons.preloaded === 'true') ? true : alm.pause;
|
278 |
} else {
|
@@ -404,7 +425,7 @@ let alm_is_filtering = false;
|
|
404 |
alm.addons.nextpage_urls = 'true';
|
405 |
}
|
406 |
if (alm.addons.nextpage_scroll === undefined) {
|
407 |
-
alm.addons.nextpage_scroll = '
|
408 |
}
|
409 |
if (alm.addons.nextpage_pageviews === undefined) {
|
410 |
alm.addons.nextpage_pageviews = 'true';
|
@@ -555,6 +576,7 @@ let alm_is_filtering = false;
|
|
555 |
|
556 |
// Reset button state
|
557 |
alm.button.disabled = false;
|
|
|
558 |
}
|
559 |
|
560 |
|
@@ -828,7 +850,7 @@ let alm_is_filtering = false;
|
|
828 |
if(alm.addons.single_post && alm.addons.single_post_target){
|
829 |
// Single Posts
|
830 |
data = singlePostHTML(response, alm.addons.single_post_target);
|
831 |
-
|
832 |
}
|
833 |
else if(alm.addons.woocommerce){
|
834 |
// WooCommerce
|
@@ -1150,8 +1172,8 @@ let alm_is_filtering = false;
|
|
1150 |
if (!alm.transition_container) { // No transition container
|
1151 |
|
1152 |
alm.el = alm.html;
|
1153 |
-
reveal = (alm.container_type === 'table') ? tableWrap(alm.html) : almDomParser(alm.html, 'text/html');
|
1154 |
-
|
1155 |
} else { // Standard container
|
1156 |
|
1157 |
let pagenum;
|
@@ -1161,7 +1183,7 @@ let alm_is_filtering = false;
|
|
1161 |
let preloaded_class = (alm.is_preloaded) ? ' alm-preloaded' : '';
|
1162 |
|
1163 |
|
1164 |
-
// SEO and Filter Paged
|
1165 |
if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
|
1166 |
// loop through items and break into separate .alm-reveal divs for paging
|
1167 |
|
@@ -1185,12 +1207,12 @@ let alm_is_filtering = false;
|
|
1185 |
|
1186 |
|
1187 |
// Slice data array into individual pages (array)
|
1188 |
-
for (
|
1189 |
return_data.push(data.slice(i, posts_per_page + i));
|
1190 |
}
|
1191 |
|
1192 |
// Loop return_data array to build .alm-reveal containers
|
1193 |
-
for (
|
1194 |
|
1195 |
let p = (alm.addons.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
|
1196 |
let alm_reveal = document.createElement('div');
|
@@ -1200,17 +1222,8 @@ let alm_is_filtering = false;
|
|
1200 |
pagenum = (k + 1 + p); // > Paged
|
1201 |
|
1202 |
if(alm.addons.seo){ // SEO
|
1203 |
-
|
1204 |
-
|
1205 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1206 |
-
alm_reveal.dataset.url = alm.canonical_url + querystring + '&paged=' + pagenum;
|
1207 |
-
alm_reveal.dataset.page = pagenum;
|
1208 |
-
} else {
|
1209 |
-
// Pretty Permalinks
|
1210 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1211 |
-
alm_reveal.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
1212 |
-
alm_reveal.dataset.page = pagenum;
|
1213 |
-
}
|
1214 |
}
|
1215 |
|
1216 |
if(alm.addons.filters){ // Filters
|
@@ -1222,15 +1235,11 @@ let alm_is_filtering = false;
|
|
1222 |
} else {
|
1223 |
|
1224 |
// First Page
|
1225 |
-
if(alm.addons.seo){
|
1226 |
-
|
1227 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1228 |
-
alm_reveal.dataset.url = alm.canonical_url + querystring;
|
1229 |
-
alm_reveal.dataset.page = '1';
|
1230 |
|
1231 |
}
|
1232 |
-
if(alm.addons.filters){
|
1233 |
-
// Filters
|
1234 |
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
1235 |
alm_reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, 0);
|
1236 |
alm_reveal.dataset.page = '1';
|
@@ -1276,20 +1285,8 @@ let alm_is_filtering = false;
|
|
1276 |
pagenum = (alm.page + 1 + p2);
|
1277 |
|
1278 |
if (alm.addons.seo) {
|
1279 |
-
|
1280 |
-
|
1281 |
-
// Default Permalinks
|
1282 |
-
reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1283 |
-
reveal.dataset.url = alm.canonical_url + querystring + '&paged=' + pagenum;
|
1284 |
-
reveal.dataset.page = pagenum;
|
1285 |
-
|
1286 |
-
} else {
|
1287 |
-
// Pretty Permalinks
|
1288 |
-
reveal.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
1289 |
-
reveal.dataset.url = alm.canonical_url + alm.addons.seo_leading_slash + 'page/' + pagenum + alm.addons.seo_trailing_slash + querystring;
|
1290 |
-
reveal.dataset.page = pagenum;
|
1291 |
-
|
1292 |
-
}
|
1293 |
|
1294 |
} else if (alm.addons.filters) {
|
1295 |
// Filters
|
@@ -1313,15 +1310,14 @@ let alm_is_filtering = false;
|
|
1313 |
} else {
|
1314 |
|
1315 |
if (alm.addons.seo) {
|
1316 |
-
|
1317 |
-
reveal
|
1318 |
-
reveal.dataset.url = alm.canonical_url + querystring;
|
1319 |
-
reveal.dataset.page = '1';
|
1320 |
|
1321 |
}
|
1322 |
else {
|
1323 |
// Basic ALM
|
1324 |
-
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
|
|
1325 |
}
|
1326 |
|
1327 |
}
|
@@ -1345,12 +1341,8 @@ let alm_is_filtering = false;
|
|
1345 |
let nextPageNum = alm.page + 2;
|
1346 |
|
1347 |
// Set button data attributes
|
1348 |
-
|
1349 |
-
//
|
1350 |
-
alm.button.dataset.page = nextPageNum;
|
1351 |
-
|
1352 |
-
// URL
|
1353 |
-
let nextPage = alm.addons.woocommerce_paged_urls[nextPageNum - 1];
|
1354 |
alm.button.dataset.url = (nextPage) ? nextPage : '';
|
1355 |
|
1356 |
alm.AjaxLoadMore.transitionEnd();
|
@@ -1363,9 +1355,7 @@ let alm_is_filtering = false;
|
|
1363 |
// ALM Done
|
1364 |
if (nextPageNum > parseInt(alm.addons.woocommerce_pages)) {
|
1365 |
alm.AjaxLoadMore.triggerDone();
|
1366 |
-
|
1367 |
}
|
1368 |
-
|
1369 |
|
1370 |
})().catch((e) => {
|
1371 |
console.log(e);
|
@@ -1424,9 +1414,10 @@ let alm_is_filtering = false;
|
|
1424 |
(async function() {
|
1425 |
await almMasonry(alm, alm.init, alm_is_filtering);
|
1426 |
alm.masonry_init = false;
|
|
|
1427 |
alm.AjaxLoadMore.transitionEnd();
|
1428 |
if (typeof almComplete === 'function') {
|
1429 |
-
window.almComplete(alm);
|
1430 |
}
|
1431 |
})().catch((e) => {
|
1432 |
console.log('There was an error with ALM Masonry');
|
@@ -1448,7 +1439,7 @@ let alm_is_filtering = false;
|
|
1448 |
}
|
1449 |
}
|
1450 |
|
1451 |
-
// Default
|
1452 |
else {
|
1453 |
if (alm.images_loaded === 'true') {
|
1454 |
imagesLoaded( reveal, function() {
|
@@ -1532,7 +1523,7 @@ let alm_is_filtering = false;
|
|
1532 |
// Nested
|
1533 |
alm.AjaxLoadMore.nested(reveal);
|
1534 |
|
1535 |
-
// Insert Script
|
1536 |
insertScript.init(alm.el);
|
1537 |
|
1538 |
// almComplete
|
@@ -1540,14 +1531,8 @@ let alm_is_filtering = false;
|
|
1540 |
window.almComplete(alm);
|
1541 |
}
|
1542 |
|
1543 |
-
|
1544 |
-
if(alm_is_filtering && alm.addons.filters){
|
1545 |
-
// Filters Complete
|
1546 |
-
if (typeof almFilterComplete === 'function') { // Standard Filtering
|
1547 |
-
window.almFilterComplete();
|
1548 |
-
}
|
1549 |
-
|
1550 |
-
// Filter Add-on Complete
|
1551 |
if (typeof almFiltersAddonComplete === "function") { // Filters Add-on
|
1552 |
window.almFiltersAddonComplete(el);
|
1553 |
}
|
@@ -1577,7 +1562,7 @@ let alm_is_filtering = false;
|
|
1577 |
alm.AjaxLoadMore.triggerDone();
|
1578 |
}
|
1579 |
}
|
1580 |
-
// End ALM Done
|
1581 |
|
1582 |
});
|
1583 |
// End ALM Loaded
|
@@ -1590,43 +1575,7 @@ let alm_is_filtering = false;
|
|
1590 |
*/
|
1591 |
else {
|
1592 |
|
1593 |
-
|
1594 |
-
// Add .done class, reset btn text
|
1595 |
-
setTimeout(function() {
|
1596 |
-
alm.button.classList.remove('loading');
|
1597 |
-
alm.button.classList.add('done');
|
1598 |
-
}, alm.speed);
|
1599 |
-
alm.AjaxLoadMore.resetBtnText();
|
1600 |
-
}
|
1601 |
-
|
1602 |
-
// almComplete
|
1603 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1604 |
-
window.almComplete(alm);
|
1605 |
-
}
|
1606 |
-
|
1607 |
-
// Filters Complete
|
1608 |
-
if(alm_is_filtering && alm.addons.filters){
|
1609 |
-
// Filters Complete
|
1610 |
-
if (typeof almFilterComplete === 'function') { // Standard Filtering
|
1611 |
-
almFilterComplete();
|
1612 |
-
}
|
1613 |
-
|
1614 |
-
// Filter Add-on Complete
|
1615 |
-
if (typeof almFiltersAddonComplete === "function") { // Filters Add-on
|
1616 |
-
almFiltersAddonComplete(el);
|
1617 |
-
}
|
1618 |
-
alm_is_filtering = false;
|
1619 |
-
}
|
1620 |
-
|
1621 |
-
// Tabs Complete
|
1622 |
-
if(alm.addons.tabs){
|
1623 |
-
// Tabs Complete
|
1624 |
-
if (typeof almTabsComplete === 'function') { // Standard Filtering
|
1625 |
-
almTabsComplete();
|
1626 |
-
}
|
1627 |
-
}
|
1628 |
-
|
1629 |
-
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
1630 |
|
1631 |
}
|
1632 |
|
@@ -1648,11 +1597,9 @@ let alm_is_filtering = false;
|
|
1648 |
|
1649 |
|
1650 |
// Set Focus for A11y
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
// Comment Reply Fix
|
1655 |
-
// commentReplyFix(alm.addons.comments, alm.listing);
|
1656 |
|
1657 |
|
1658 |
// Remove filtering class
|
@@ -1665,6 +1612,50 @@ let alm_is_filtering = false;
|
|
1665 |
alm.init = false;
|
1666 |
|
1667 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1668 |
|
1669 |
|
1670 |
|
@@ -1783,6 +1774,7 @@ let alm_is_filtering = false;
|
|
1783 |
};
|
1784 |
|
1785 |
|
|
|
1786 |
/**
|
1787 |
* nested
|
1788 |
* Automatically trigger nested ALM instances (Requies `.alm-reveal` container
|
@@ -2052,12 +2044,31 @@ let alm_is_filtering = false;
|
|
2052 |
*
|
2053 |
* @since 2.1.2
|
2054 |
*/
|
2055 |
-
|
2056 |
alm.AjaxLoadMore.isVisible = function() {
|
2057 |
// Check for a width and height to determine visibility
|
2058 |
alm.visible = (alm.main.clientWidth > 0 && alm.main.clientHeight > 0) ? true : false;
|
2059 |
return alm.visible;
|
2060 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2061 |
|
2062 |
|
2063 |
|
8 |
|
9 |
|
10 |
// Polyfills
|
11 |
+
require('@babel/polyfill/noConflict');
|
12 |
+
require('focus-options-polyfill');
|
13 |
require('./helpers/polyfills.js');
|
14 |
|
15 |
|
45 |
import getScrollPercentage from './modules/getScrollPercentage';
|
46 |
import srcsetPolyfill from './helpers/srcsetPolyfill';
|
47 |
import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
|
48 |
+
import { singlePostHTML, singlePostCache } from './addons/singleposts';
|
49 |
+
import { wooGetURL, wooGetContent, wooInit, woocommerce } from './addons/woocommerce';
|
50 |
+
import { createSEOAttributes } from './addons/seo';
|
51 |
|
52 |
|
53 |
// Global filtering var
|
105 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
106 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
107 |
|
|
|
108 |
// Main ALM Containers
|
109 |
alm.main = el; // Top level DOM element
|
110 |
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
161 |
alm.integration.woocommerce = (alm.listing.dataset.woocommerce) ? alm.listing.dataset.woocommerce : false;
|
162 |
alm.integration.woocommerce = (alm.integration.woocommerce === 'true') ? true : false;
|
163 |
|
|
|
164 |
// Addon Shortcode Params
|
165 |
+
|
166 |
+
// Woocommerce add-on
|
167 |
+
alm.addons.woocommerce = (alm.localize && alm.localize.woocommerce) ? true : false;
|
168 |
if(alm.addons.woocommerce){
|
169 |
alm.addons.woocommerce_columns = (alm.localize.woocommerce.columns) ? parseInt(alm.localize.woocommerce.columns) : 3; // Woocommerce columns
|
170 |
alm.addons.woocommerce_paged = (alm.localize.woocommerce.paged) ? parseInt(alm.localize.woocommerce.paged) : 1; // Woocommerce Paged
|
180 |
|
181 |
}
|
182 |
|
183 |
+
// Cache add-on
|
184 |
+
alm.addons.cache = alm.listing.dataset.cache;
|
185 |
alm.addons.cache = (alm.addons.cache === undefined) ? false : alm.addons.cache;
|
186 |
+
if(alm.addons.cache === 'true'){
|
187 |
+
alm.addons.cache_id = alm.listing.dataset.cacheId;
|
188 |
+
alm.addons.cache_path = alm.listing.dataset.cachePath;
|
189 |
+
alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
190 |
+
alm.addons.cache_logged_in = (alm.addons.cache_logged_in === undefined) ? false : alm.addons.cache_logged_in;
|
191 |
+
}
|
192 |
|
193 |
+
// CTA add-on
|
194 |
+
alm.addons.cta = alm.listing.dataset.cta;
|
195 |
+
if(alm.addons.cta === 'true'){
|
196 |
+
alm.addons.cta_position = alm.listing.dataset.ctaPosition;
|
197 |
+
alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
|
198 |
+
alm.addons.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
199 |
+
}
|
200 |
+
|
201 |
+
// Nextpage add-on
|
202 |
+
alm.addons.nextpage = alm.listing.dataset.nextpage;
|
203 |
+
if(alm.addons.nextpage === 'true'){
|
204 |
+
alm.addons.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
205 |
+
alm.addons.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
206 |
+
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
207 |
+
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
208 |
+
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
209 |
+
}
|
210 |
+
|
211 |
+
// Single Posts add-on
|
212 |
+
alm.addons.single_post = alm.listing.dataset.singlePost;
|
213 |
+
if(alm.addons.single_post === 'true'){
|
214 |
+
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
215 |
+
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
216 |
+
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
217 |
+
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
218 |
+
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
219 |
+
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
|
220 |
+
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
|
221 |
+
}
|
222 |
+
|
223 |
+
// Comments add-on
|
224 |
+
alm.addons.comments = alm.listing.dataset.comments;
|
225 |
+
if(alm.addons.comments === 'true'){
|
226 |
+
alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
227 |
+
alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
|
228 |
+
alm.addons.comments_per_page = (alm.addons.comments_per_page === undefined) ? '5' : alm.addons.comments_per_page;
|
229 |
+
alm.addons.comments_type = alm.listing.dataset.comments_type;
|
230 |
+
alm.addons.comments_style = alm.listing.dataset.comments_style;
|
231 |
+
alm.addons.comments_template = alm.listing.dataset.comments_template;
|
232 |
+
alm.addons.comments_callback = alm.listing.dataset.comments_callback;
|
233 |
+
}
|
234 |
|
235 |
alm.addons.tabs = alm.listing.dataset.tabs;
|
236 |
|
237 |
alm.addons.filters = alm.listing.dataset.filters;
|
238 |
|
239 |
+
alm.addons.seo = alm.listing.dataset.seo;
|
240 |
+
|
241 |
+
// Preloaded
|
242 |
alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
243 |
alm.addons.preloaded_amount = (alm.listing.dataset.preloadedAmount) ? alm.listing.dataset.preloadedAmount : 0;
|
244 |
alm.is_preloaded = (alm.listing.dataset.isPreloaded === 'true') ? true : false;
|
245 |
+
|
246 |
+
// Users
|
|
|
247 |
alm.addons.users = (alm.listing.dataset.users === 'true') ? true : false; // Users add-on
|
248 |
if (alm.addons.users) { // Override paging params for users
|
249 |
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
269 |
alm.extensions.acf = false;
|
270 |
}
|
271 |
|
272 |
+
// Term Query
|
273 |
alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
|
274 |
alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
|
275 |
alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
|
276 |
alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
|
277 |
alm.extensions.term_query = (alm.extensions.term_query === 'true') ? true : false;
|
278 |
|
279 |
+
// Paging
|
280 |
+
alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
|
281 |
if (alm.addons.paging === 'true') {
|
282 |
alm.addons.paging = true;
|
283 |
alm.addons.paging_init = true;
|
291 |
alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
|
292 |
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
293 |
|
294 |
+
alm.addons.paging_scroll = (alm.listing.dataset.pagingScroll) ? alm.listing.dataset.pagingScroll : false;
|
295 |
+
alm.addons.paging_scrolltop = (alm.listing.dataset.pagingScrolltop) ? parseInt(alm.listing.dataset.pagingScrolltop) : 100;
|
296 |
+
|
297 |
// If preloaded, pause ALM
|
298 |
alm.pause = (alm.addons.preloaded === 'true') ? true : alm.pause;
|
299 |
} else {
|
425 |
alm.addons.nextpage_urls = 'true';
|
426 |
}
|
427 |
if (alm.addons.nextpage_scroll === undefined) {
|
428 |
+
alm.addons.nextpage_scroll = 'false:30';
|
429 |
}
|
430 |
if (alm.addons.nextpage_pageviews === undefined) {
|
431 |
alm.addons.nextpage_pageviews = 'true';
|
576 |
|
577 |
// Reset button state
|
578 |
alm.button.disabled = false;
|
579 |
+
alm.button.style.display = '';
|
580 |
}
|
581 |
|
582 |
|
850 |
if(alm.addons.single_post && alm.addons.single_post_target){
|
851 |
// Single Posts
|
852 |
data = singlePostHTML(response, alm.addons.single_post_target);
|
853 |
+
singlePostCache(alm, data.html);
|
854 |
}
|
855 |
else if(alm.addons.woocommerce){
|
856 |
// WooCommerce
|
1172 |
if (!alm.transition_container) { // No transition container
|
1173 |
|
1174 |
alm.el = alm.html;
|
1175 |
+
reveal = (alm.container_type === 'table') ? tableWrap(alm.html) : stripEmptyNodes(almDomParser(alm.html, 'text/html'));
|
1176 |
+
|
1177 |
} else { // Standard container
|
1178 |
|
1179 |
let pagenum;
|
1183 |
let preloaded_class = (alm.is_preloaded) ? ' alm-preloaded' : '';
|
1184 |
|
1185 |
|
1186 |
+
// Init, SEO and Filter Paged
|
1187 |
if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
|
1188 |
// loop through items and break into separate .alm-reveal divs for paging
|
1189 |
|
1207 |
|
1208 |
|
1209 |
// Slice data array into individual pages (array)
|
1210 |
+
for (let i = 0; i < total; i += posts_per_page) {
|
1211 |
return_data.push(data.slice(i, posts_per_page + i));
|
1212 |
}
|
1213 |
|
1214 |
// Loop return_data array to build .alm-reveal containers
|
1215 |
+
for (let k = 0; k < return_data.length; k++) {
|
1216 |
|
1217 |
let p = (alm.addons.preloaded === 'true') ? 1 : 0; // Add 1 page if items are preloaded.
|
1218 |
let alm_reveal = document.createElement('div');
|
1222 |
pagenum = (k + 1 + p); // > Paged
|
1223 |
|
1224 |
if(alm.addons.seo){ // SEO
|
1225 |
+
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, pagenum);
|
1226 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1227 |
}
|
1228 |
|
1229 |
if(alm.addons.filters){ // Filters
|
1235 |
} else {
|
1236 |
|
1237 |
// First Page
|
1238 |
+
if(alm.addons.seo){ // SEO
|
1239 |
+
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, 1);
|
|
|
|
|
|
|
1240 |
|
1241 |
}
|
1242 |
+
if(alm.addons.filters){ // Filters
|
|
|
1243 |
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
1244 |
alm_reveal.dataset.url = alm.canonical_url + alm.AjaxLoadMore.buildFilterURL(querystring, 0);
|
1245 |
alm_reveal.dataset.page = '1';
|
1285 |
pagenum = (alm.page + 1 + p2);
|
1286 |
|
1287 |
if (alm.addons.seo) {
|
1288 |
+
// SEO
|
1289 |
+
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, pagenum);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1290 |
|
1291 |
} else if (alm.addons.filters) {
|
1292 |
// Filters
|
1310 |
} else {
|
1311 |
|
1312 |
if (alm.addons.seo) {
|
1313 |
+
// SEO [Page 1]
|
1314 |
+
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, 1);
|
|
|
|
|
1315 |
|
1316 |
}
|
1317 |
else {
|
1318 |
// Basic ALM
|
1319 |
+
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1320 |
+
|
1321 |
}
|
1322 |
|
1323 |
}
|
1341 |
let nextPageNum = alm.page + 2;
|
1342 |
|
1343 |
// Set button data attributes
|
1344 |
+
alm.button.dataset.page = nextPageNum; // Page
|
1345 |
+
let nextPage = alm.addons.woocommerce_paged_urls[nextPageNum - 1]; // URL
|
|
|
|
|
|
|
|
|
1346 |
alm.button.dataset.url = (nextPage) ? nextPage : '';
|
1347 |
|
1348 |
alm.AjaxLoadMore.transitionEnd();
|
1355 |
// ALM Done
|
1356 |
if (nextPageNum > parseInt(alm.addons.woocommerce_pages)) {
|
1357 |
alm.AjaxLoadMore.triggerDone();
|
|
|
1358 |
}
|
|
|
1359 |
|
1360 |
})().catch((e) => {
|
1361 |
console.log(e);
|
1414 |
(async function() {
|
1415 |
await almMasonry(alm, alm.init, alm_is_filtering);
|
1416 |
alm.masonry_init = false;
|
1417 |
+
alm.AjaxLoadMore.triggerWindowResize();
|
1418 |
alm.AjaxLoadMore.transitionEnd();
|
1419 |
if (typeof almComplete === 'function') {
|
1420 |
+
window.almComplete(alm);
|
1421 |
}
|
1422 |
})().catch((e) => {
|
1423 |
console.log('There was an error with ALM Masonry');
|
1439 |
}
|
1440 |
}
|
1441 |
|
1442 |
+
// Default(Fade)
|
1443 |
else {
|
1444 |
if (alm.images_loaded === 'true') {
|
1445 |
imagesLoaded( reveal, function() {
|
1523 |
// Nested
|
1524 |
alm.AjaxLoadMore.nested(reveal);
|
1525 |
|
1526 |
+
// Insert Script
|
1527 |
insertScript.init(alm.el);
|
1528 |
|
1529 |
// almComplete
|
1531 |
window.almComplete(alm);
|
1532 |
}
|
1533 |
|
1534 |
+
// Filters Add-on Complete
|
1535 |
+
if(alm_is_filtering && alm.addons.filters){
|
|
|
|
|
|
|
|
|
|
|
|
|
1536 |
if (typeof almFiltersAddonComplete === "function") { // Filters Add-on
|
1537 |
window.almFiltersAddonComplete(el);
|
1538 |
}
|
1562 |
alm.AjaxLoadMore.triggerDone();
|
1563 |
}
|
1564 |
}
|
1565 |
+
// End ALM Done
|
1566 |
|
1567 |
});
|
1568 |
// End ALM Loaded
|
1575 |
*/
|
1576 |
else {
|
1577 |
|
1578 |
+
alm.AjaxLoadMore.noresults();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1579 |
|
1580 |
}
|
1581 |
|
1597 |
|
1598 |
|
1599 |
// Set Focus for A11y
|
1600 |
+
if (alm.transition !== 'masonry') {
|
1601 |
+
setFocus(alm, reveal, total, alm_is_filtering);
|
1602 |
+
}
|
|
|
|
|
1603 |
|
1604 |
|
1605 |
// Remove filtering class
|
1612 |
alm.init = false;
|
1613 |
|
1614 |
};
|
1615 |
+
|
1616 |
+
|
1617 |
+
|
1618 |
+
/**
|
1619 |
+
* noresults
|
1620 |
+
* Functions run when no results are returned.
|
1621 |
+
*
|
1622 |
+
* @since 5.3.1
|
1623 |
+
*/
|
1624 |
+
alm.AjaxLoadMore.noresults = function(){
|
1625 |
+
|
1626 |
+
if (!alm.addons.paging) {
|
1627 |
+
// Add .done class, reset btn text
|
1628 |
+
setTimeout(function() {
|
1629 |
+
alm.button.classList.remove('loading');
|
1630 |
+
alm.button.classList.add('done');
|
1631 |
+
}, alm.speed);
|
1632 |
+
alm.AjaxLoadMore.resetBtnText();
|
1633 |
+
}
|
1634 |
+
|
1635 |
+
// almComplete
|
1636 |
+
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1637 |
+
window.almComplete(alm);
|
1638 |
+
}
|
1639 |
+
|
1640 |
+
// Filters Add-on Complete
|
1641 |
+
if(alm_is_filtering && alm.addons.filters){
|
1642 |
+
if (typeof almFiltersAddonComplete === "function") { // Filters Add-on
|
1643 |
+
almFiltersAddonComplete(el);
|
1644 |
+
}
|
1645 |
+
alm_is_filtering = false;
|
1646 |
+
}
|
1647 |
+
|
1648 |
+
// Tabs Complete
|
1649 |
+
if(alm.addons.tabs){
|
1650 |
+
// Tabs Complete
|
1651 |
+
if (typeof almTabsComplete === 'function') { // Standard Filtering
|
1652 |
+
almTabsComplete();
|
1653 |
+
}
|
1654 |
+
}
|
1655 |
+
|
1656 |
+
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
1657 |
+
|
1658 |
+
};
|
1659 |
|
1660 |
|
1661 |
|
1774 |
};
|
1775 |
|
1776 |
|
1777 |
+
|
1778 |
/**
|
1779 |
* nested
|
1780 |
* Automatically trigger nested ALM instances (Requies `.alm-reveal` container
|
2044 |
*
|
2045 |
* @since 2.1.2
|
2046 |
*/
|
|
|
2047 |
alm.AjaxLoadMore.isVisible = function() {
|
2048 |
// Check for a width and height to determine visibility
|
2049 |
alm.visible = (alm.main.clientWidth > 0 && alm.main.clientHeight > 0) ? true : false;
|
2050 |
return alm.visible;
|
2051 |
};
|
2052 |
+
|
2053 |
+
|
2054 |
+
|
2055 |
+
/**
|
2056 |
+
* triggerWindowResize
|
2057 |
+
* Trigger a window resize browser function
|
2058 |
+
*
|
2059 |
+
* @since 5.3.1
|
2060 |
+
*/
|
2061 |
+
alm.AjaxLoadMore.triggerWindowResize = function(){
|
2062 |
+
if (typeof (Event) === 'function') {
|
2063 |
+
// modern browsers
|
2064 |
+
window.dispatchEvent(new Event('resize'));
|
2065 |
+
} else {
|
2066 |
+
//This will be executed on old browsers and especially IE
|
2067 |
+
var resizeEvent = window.document.createEvent('UIEvents');
|
2068 |
+
resizeEvent.initUIEvent('resize', true, false, window, 0);
|
2069 |
+
window.dispatchEvent(resizeEvent);
|
2070 |
+
}
|
2071 |
+
}
|
2072 |
|
2073 |
|
2074 |
|
core/src/js/helpers/almAppendChild.js
CHANGED
File without changes
|
core/src/js/helpers/almAppendChildren.js
CHANGED
File without changes
|
core/src/js/helpers/polyfills.js
CHANGED
File without changes
|
core/src/js/helpers/srcsetPolyfill.js
CHANGED
File without changes
|
core/src/js/helpers/tableWrap.js
CHANGED
File without changes
|
core/src/js/modules/fadeIn.js
CHANGED
File without changes
|
core/src/js/modules/fadeOut.js
CHANGED
File without changes
|
core/src/js/modules/insertScript.js
CHANGED
File without changes
|
core/src/js/modules/masonry.js
CHANGED
@@ -2,6 +2,9 @@ import almFadeIn from './fadeIn';
|
|
2 |
import almAppendChildren from '../helpers/almAppendChildren';
|
3 |
import almDomParser from '../helpers/almDomParser';
|
4 |
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
|
|
|
|
|
|
5 |
let imagesLoaded = require('imagesloaded');
|
6 |
|
7 |
/**
|
@@ -95,6 +98,11 @@ let almMasonry = (alm, init, filtering) => {
|
|
95 |
defaults[key] = alm_masonry_vars[key];
|
96 |
});
|
97 |
}
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
// Init Masonry, delay to allow time for items to be added to the page
|
100 |
setTimeout(function(){
|
@@ -112,7 +120,7 @@ let almMasonry = (alm, init, filtering) => {
|
|
112 |
else{
|
113 |
|
114 |
// Loop all items and create array of node elements
|
115 |
-
let data = almDomParser(html, 'text/html');
|
116 |
|
117 |
if(data){
|
118 |
|
@@ -122,9 +130,17 @@ let almMasonry = (alm, init, filtering) => {
|
|
122 |
// Run srcSet polyfill
|
123 |
srcsetPolyfill(container, alm.ua);
|
124 |
|
125 |
-
//
|
126 |
imagesLoaded( container, function() {
|
|
|
127 |
alm.msnry.appended( data );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
resolve(true);
|
129 |
});
|
130 |
|
2 |
import almAppendChildren from '../helpers/almAppendChildren';
|
3 |
import almDomParser from '../helpers/almDomParser';
|
4 |
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
5 |
+
import stripEmptyNodes from '../helpers/stripEmptyNodes';
|
6 |
+
import { createMasonrySEOPages, createMasonrySEOPage } from '../addons/seo';
|
7 |
+
import setFocus from './setFocus';
|
8 |
let imagesLoaded = require('imagesloaded');
|
9 |
|
10 |
/**
|
98 |
defaults[key] = alm_masonry_vars[key];
|
99 |
});
|
100 |
}
|
101 |
+
|
102 |
+
|
103 |
+
// Create SEO URL, if available
|
104 |
+
let data = container.querySelectorAll(selector);
|
105 |
+
data = createMasonrySEOPages(alm, Array.prototype.slice.call(data));
|
106 |
|
107 |
// Init Masonry, delay to allow time for items to be added to the page
|
108 |
setTimeout(function(){
|
120 |
else{
|
121 |
|
122 |
// Loop all items and create array of node elements
|
123 |
+
let data = stripEmptyNodes(almDomParser(html, 'text/html'));
|
124 |
|
125 |
if(data){
|
126 |
|
130 |
// Run srcSet polyfill
|
131 |
srcsetPolyfill(container, alm.ua);
|
132 |
|
133 |
+
// imagesLoaded & append
|
134 |
imagesLoaded( container, function() {
|
135 |
+
|
136 |
alm.msnry.appended( data );
|
137 |
+
|
138 |
+
// Set Focus
|
139 |
+
setFocus(alm, data, data.length, false);
|
140 |
+
|
141 |
+
// Create SEO URL, if required
|
142 |
+
createMasonrySEOPage(alm, data[0]);
|
143 |
+
|
144 |
resolve(true);
|
145 |
});
|
146 |
|
core/src/js/modules/setFocus.js
CHANGED
@@ -15,12 +15,14 @@ let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
|
|
15 |
return false;
|
16 |
}
|
17 |
|
|
|
18 |
// WooCommerce Add-on
|
19 |
if(alm.addons.woocommerce){
|
20 |
moveFocus(false, false, element, false, alm.isSafari);
|
21 |
return;
|
22 |
}
|
23 |
|
|
|
24 |
// Has Total
|
25 |
if(alm.transition_container && total > 0){
|
26 |
if(alm.addons.paging){
|
@@ -35,9 +37,9 @@ let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
|
|
35 |
// Standard ALM
|
36 |
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
37 |
}
|
38 |
-
|
39 |
-
|
40 |
-
// Table Layout
|
41 |
moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
|
42 |
}
|
43 |
}
|
@@ -71,10 +73,11 @@ let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false
|
|
71 |
element = (is_array) ? element[0] : element;
|
72 |
*/
|
73 |
|
74 |
-
// Set tabIndex on
|
75 |
element.setAttribute('tabIndex', '-1');
|
76 |
element.style.outline = 'none';
|
77 |
|
|
|
78 |
// Get Parent container
|
79 |
// If `.alm-listing` set parent to element
|
80 |
let parent = (!element.classList.contains('alm-listing')) ? element.parentNode : element;
|
@@ -86,24 +89,33 @@ let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false
|
|
86 |
if(scrollContainer){
|
87 |
let container = document.querySelector(scrollContainer);
|
88 |
if(container){
|
89 |
-
let left = container.scrollLeft;
|
90 |
-
let top = container.scrollTop;
|
91 |
-
element.focus();
|
92 |
-
container.scrollLeft = left;
|
93 |
-
container.scrollTop = top;
|
|
|
|
|
|
|
94 |
}
|
95 |
}
|
96 |
|
97 |
// Move window
|
98 |
else {
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
// Safari fix for window movement if Y = 0
|
102 |
-
if(isSafari){
|
103 |
-
window.scrollTo(x, y);
|
104 |
-
y = (y === 0) ? 1 : y;
|
105 |
-
}
|
106 |
-
element.focus();
|
107 |
-
window.scrollTo(x, y);
|
108 |
}
|
109 |
}
|
15 |
return false;
|
16 |
}
|
17 |
|
18 |
+
|
19 |
// WooCommerce Add-on
|
20 |
if(alm.addons.woocommerce){
|
21 |
moveFocus(false, false, element, false, alm.isSafari);
|
22 |
return;
|
23 |
}
|
24 |
|
25 |
+
|
26 |
// Has Total
|
27 |
if(alm.transition_container && total > 0){
|
28 |
if(alm.addons.paging){
|
37 |
// Standard ALM
|
38 |
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
39 |
}
|
40 |
+
|
41 |
+
} else if(!alm.transition_container){
|
42 |
+
// Table Layout, no transition container
|
43 |
moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
|
44 |
}
|
45 |
}
|
73 |
element = (is_array) ? element[0] : element;
|
74 |
*/
|
75 |
|
76 |
+
// Set tabIndex and style on element
|
77 |
element.setAttribute('tabIndex', '-1');
|
78 |
element.style.outline = 'none';
|
79 |
|
80 |
+
|
81 |
// Get Parent container
|
82 |
// If `.alm-listing` set parent to element
|
83 |
let parent = (!element.classList.contains('alm-listing')) ? element.parentNode : element;
|
89 |
if(scrollContainer){
|
90 |
let container = document.querySelector(scrollContainer);
|
91 |
if(container){
|
92 |
+
//let left = container.scrollLeft;
|
93 |
+
//let top = container.scrollTop;
|
94 |
+
//element.focus();
|
95 |
+
//container.scrollLeft = left;
|
96 |
+
//container.scrollTop = top;
|
97 |
+
setTimeout(function(){
|
98 |
+
element.focus({ preventScroll: true });
|
99 |
+
}, 50);
|
100 |
}
|
101 |
}
|
102 |
|
103 |
// Move window
|
104 |
else {
|
105 |
+
|
106 |
+
setTimeout(function(){
|
107 |
+
element.focus({ preventScroll: true });
|
108 |
+
}, 50);
|
109 |
+
|
110 |
+
//let x = window.scrollX;
|
111 |
+
//let y = window.scrollY;
|
112 |
+
|
113 |
// Safari fix for window movement if Y = 0
|
114 |
+
//if(isSafari){
|
115 |
+
//window.scrollTo(x, y);
|
116 |
+
//y = (y === 0) ? 1 : y;
|
117 |
+
//}
|
118 |
+
//element.focus();
|
119 |
+
//window.scrollTo(x, y);
|
120 |
}
|
121 |
}
|
core/src/js/modules/singleposts.js
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* singlePostHTML
|
3 |
-
* Create the HTML for loading Single Posts
|
4 |
-
*
|
5 |
-
* @param {Object} response Query response
|
6 |
-
* @param {HTMLElement} target The target div
|
7 |
-
* @since 5.1.8.1
|
8 |
-
*/
|
9 |
-
|
10 |
-
let singlePostHTML = (response, target = null) => {
|
11 |
-
let data = {
|
12 |
-
html: '',
|
13 |
-
meta: {
|
14 |
-
postcount: 1,
|
15 |
-
totalposts: 1,
|
16 |
-
debug: 'Single Posts Query',
|
17 |
-
}
|
18 |
-
}
|
19 |
-
if(response.status === 200 && response.data && target){
|
20 |
-
let div = document.createElement("div");
|
21 |
-
div.innerHTML = response.data;
|
22 |
-
let htmlTarget = div.querySelector(target);
|
23 |
-
if(htmlTarget){
|
24 |
-
data.html = htmlTarget.innerHTML;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
return data;
|
28 |
-
}
|
29 |
-
|
30 |
-
export default singlePostHTML;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js
CHANGED
File without changes
|
core/src/scss/ajax-load-more.scss
CHANGED
File without changes
|
lang/ajax-load-more.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
-
"POT-Creation-Date: 2020-
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -289,69 +289,65 @@ msgstr ""
|
|
289 |
msgid "Legacy Callbacks"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: admin/admin.php:
|
293 |
-
msgid "Top of Page"
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: admin/admin.php:1495
|
297 |
msgid "Delete on Uninstall"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: admin/admin.php:
|
301 |
msgid "Dynamic Content"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: admin/admin.php:
|
305 |
msgid "Editor Button"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: admin/admin.php:
|
309 |
msgid "Error Notices"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: admin/admin.php:
|
313 |
msgid ""
|
314 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: admin/admin.php:
|
318 |
msgid "The following settings affect the WordPress admin area only."
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: admin/admin.php:
|
322 |
msgid "I want to use my own CSS styles."
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: admin/admin.php:
|
326 |
msgid "View Ajax Load More CSS"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: admin/admin.php:
|
330 |
msgid "Hide shortcode button in WYSIWYG editor."
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: admin/admin.php:
|
334 |
msgid ""
|
335 |
"Display error messaging regarding repeater template updates in the browser "
|
336 |
"console."
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/admin.php:
|
340 |
msgid ""
|
341 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
342 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
343 |
"of categories, tags and/or authors."
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: admin/admin.php:
|
347 |
msgid "Ajax Posts Here"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: admin/admin.php:
|
351 |
msgid "You can modify the container type when building a shortcode."
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: admin/admin.php:
|
355 |
msgid ""
|
356 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
357 |
"applied globally and will appear with every instance of Ajax Load More. "
|
@@ -359,67 +355,67 @@ msgid ""
|
|
359 |
"shortcode.</span>"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: admin/admin.php:
|
363 |
msgid ""
|
364 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
365 |
"strong> or <strong>Infinite Scroll</strong>"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: admin/admin.php:
|
369 |
msgid "Button Style (Dark)"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: admin/admin.php:
|
373 |
msgid "Button Style (Light)"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: admin/admin.php:
|
377 |
msgid "Infinite Scroll (No Button)"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: admin/admin.php:
|
381 |
msgid "Click to Preview"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: admin/admin.php:
|
385 |
#: admin/shortcode-builder/shortcode-builder.php:350
|
386 |
#: core/classes/class.alm-shortcode.php:216
|
387 |
msgid "Older Posts"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: admin/admin.php:
|
391 |
msgid "Improve site performance by loading Ajax Load More CSS inline."
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: admin/admin.php:
|
395 |
msgid "Add classes to your <strong>Load More</strong> button."
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: admin/admin.php:
|
399 |
msgid ""
|
400 |
"On initial page load, move the user's browser window to the top of the "
|
401 |
"screen."
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: admin/admin.php:
|
405 |
msgid "This may help prevent the loading of unnecessary posts."
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: admin/admin.php:
|
409 |
msgid "Disable REST API."
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: admin/admin.php:
|
413 |
msgid ""
|
414 |
"Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
|
415 |
"requests."
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: admin/admin.php:
|
419 |
msgid "Load legacy JavaScript callback functions."
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: admin/admin.php:
|
423 |
msgid ""
|
424 |
"Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
|
425 |
"callback-functions/\" target=\"_blank\">callback functions</a> were updated "
|
@@ -427,13 +423,13 @@ msgid ""
|
|
427 |
"library to maintain compatibility."
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: admin/admin.php:
|
431 |
msgid ""
|
432 |
"Check this box if Ajax Load More should remove all of its data* when the "
|
433 |
"plugin is deleted."
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: admin/admin.php:
|
437 |
msgid "* Database Tables, Options and Repeater Templates"
|
438 |
msgstr ""
|
439 |
|
@@ -742,7 +738,8 @@ msgstr ""
|
|
742 |
#: admin/shortcode-builder/components/nextpage.php:15
|
743 |
#: admin/shortcode-builder/components/nextpage.php:92
|
744 |
#: admin/shortcode-builder/components/paging.php:15
|
745 |
-
#: admin/shortcode-builder/components/paging.php:
|
|
|
746 |
#: admin/shortcode-builder/components/preloaded.php:15
|
747 |
#: admin/shortcode-builder/components/rest-api.php:30
|
748 |
#: admin/shortcode-builder/components/rest-api.php:105
|
@@ -779,7 +776,8 @@ msgstr ""
|
|
779 |
#: admin/shortcode-builder/components/nextpage.php:19
|
780 |
#: admin/shortcode-builder/components/nextpage.php:93
|
781 |
#: admin/shortcode-builder/components/paging.php:19
|
782 |
-
#: admin/shortcode-builder/components/paging.php:
|
|
|
783 |
#: admin/shortcode-builder/components/preloaded.php:19
|
784 |
#: admin/shortcode-builder/components/rest-api.php:34
|
785 |
#: admin/shortcode-builder/components/rest-api.php:109
|
@@ -1140,6 +1138,7 @@ msgid ""
|
|
1140 |
msgstr ""
|
1141 |
|
1142 |
#: admin/shortcode-builder/components/filters.php:109
|
|
|
1143 |
msgid "Scroll"
|
1144 |
msgstr ""
|
1145 |
|
@@ -1153,6 +1152,7 @@ msgstr ""
|
|
1153 |
|
1154 |
#: admin/shortcode-builder/components/filters.php:131
|
1155 |
#: admin/shortcode-builder/components/nextpage.php:98
|
|
|
1156 |
msgid "Scroll Top"
|
1157 |
msgstr ""
|
1158 |
|
@@ -1195,7 +1195,7 @@ msgid ""
|
|
1195 |
msgstr ""
|
1196 |
|
1197 |
#: admin/shortcode-builder/components/nextpage.php:3
|
1198 |
-
#: admin/shortcode-builder/components/paging.php:
|
1199 |
msgid "Next Page"
|
1200 |
msgstr ""
|
1201 |
|
@@ -1246,14 +1246,15 @@ msgid "Scroll users automatically to the next page on 'Load More' action."
|
|
1246 |
msgstr ""
|
1247 |
|
1248 |
#: admin/shortcode-builder/components/nextpage.php:90
|
|
|
1249 |
#: admin/shortcode-builder/shortcode-builder.php:377
|
1250 |
msgid "Enable Scrolling"
|
1251 |
msgstr ""
|
1252 |
|
1253 |
#: admin/shortcode-builder/components/nextpage.php:99
|
1254 |
msgid ""
|
1255 |
-
"The scrolltop position of the window (used with scrolling and fwd/
|
1256 |
-
"browser buttons)."
|
1257 |
msgstr ""
|
1258 |
|
1259 |
#: admin/shortcode-builder/components/nextpage.php:108
|
@@ -1289,46 +1290,57 @@ msgid ""
|
|
1289 |
"The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
-
#: admin/shortcode-builder/components/paging.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1293 |
msgid "Controls"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
-
#: admin/shortcode-builder/components/paging.php:
|
1297 |
msgid "Show first/last and next/previous buttons in the paging navigation."
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: admin/shortcode-builder/components/paging.php:
|
1301 |
#: core/classes/class.alm-noscript.php:167
|
1302 |
msgid "First Page"
|
1303 |
msgstr ""
|
1304 |
|
1305 |
-
#: admin/shortcode-builder/components/paging.php:
|
1306 |
-
#: admin/shortcode-builder/components/paging.php:
|
1307 |
msgid "Leave empty to not render button."
|
1308 |
msgstr ""
|
1309 |
|
1310 |
-
#: admin/shortcode-builder/components/paging.php:
|
1311 |
msgid "Label for the <span>First Page</span> button."
|
1312 |
msgstr ""
|
1313 |
|
1314 |
-
#: admin/shortcode-builder/components/paging.php:
|
1315 |
#: core/classes/class.alm-noscript.php:185
|
1316 |
msgid "Last Page"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: admin/shortcode-builder/components/paging.php:
|
1320 |
msgid "Label for the <span>Last Page</span> button."
|
1321 |
msgstr ""
|
1322 |
|
1323 |
-
#: admin/shortcode-builder/components/paging.php:
|
1324 |
msgid "Previous Page"
|
1325 |
msgstr ""
|
1326 |
|
1327 |
-
#: admin/shortcode-builder/components/paging.php:
|
1328 |
msgid "Label for the <span>Previous Page</span> button."
|
1329 |
msgstr ""
|
1330 |
|
1331 |
-
#: admin/shortcode-builder/components/paging.php:
|
1332 |
msgid "Label for the <span>Next Page</span> button."
|
1333 |
msgstr ""
|
1334 |
|
@@ -2880,11 +2892,11 @@ msgstr ""
|
|
2880 |
msgid "Error creating repeater template directory"
|
2881 |
msgstr ""
|
2882 |
|
2883 |
-
#: ajax-load-more.php:
|
2884 |
msgid "Viewing {post_count} of {total_posts} results."
|
2885 |
msgstr ""
|
2886 |
|
2887 |
-
#: ajax-load-more.php:
|
2888 |
msgid "No results found."
|
2889 |
msgstr ""
|
2890 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2020-05-01 12:34-0400\n"
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
289 |
msgid "Legacy Callbacks"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: admin/admin.php:1497
|
|
|
|
|
|
|
|
|
293 |
msgid "Delete on Uninstall"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: admin/admin.php:1505
|
297 |
msgid "Dynamic Content"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: admin/admin.php:1513
|
301 |
msgid "Editor Button"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: admin/admin.php:1521
|
305 |
msgid "Error Notices"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: admin/admin.php:1605
|
309 |
msgid ""
|
310 |
"Customize the user experience of Ajax Load More by updating the fields below."
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: admin/admin.php:1618
|
314 |
msgid "The following settings affect the WordPress admin area only."
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: admin/admin.php:1649
|
318 |
msgid "I want to use my own CSS styles."
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: admin/admin.php:1649
|
322 |
msgid "View Ajax Load More CSS"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: admin/admin.php:1669
|
326 |
msgid "Hide shortcode button in WYSIWYG editor."
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: admin/admin.php:1690
|
330 |
msgid ""
|
331 |
"Display error messaging regarding repeater template updates in the browser "
|
332 |
"console."
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: admin/admin.php:1711
|
336 |
msgid ""
|
337 |
"Disable dynamic population of categories, tags and authors in the Shortcode "
|
338 |
"Builder.<span style=\"display:block\">Recommended if you have a large number "
|
339 |
"of categories, tags and/or authors."
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: admin/admin.php:1732 admin/admin.php:1735
|
343 |
msgid "Ajax Posts Here"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: admin/admin.php:1737
|
347 |
msgid "You can modify the container type when building a shortcode."
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: admin/admin.php:1754
|
351 |
msgid ""
|
352 |
"Add custom classes to the <i>.alm-listing</i> container - classes are "
|
353 |
"applied globally and will appear with every instance of Ajax Load More. "
|
355 |
"shortcode.</span>"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: admin/admin.php:1819
|
359 |
msgid ""
|
360 |
"Select an Ajax loading style - you can choose between a <strong>Button</"
|
361 |
"strong> or <strong>Infinite Scroll</strong>"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: admin/admin.php:1824 admin/shortcode-builder/shortcode-builder.php:87
|
365 |
msgid "Button Style (Dark)"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: admin/admin.php:1831 admin/shortcode-builder/shortcode-builder.php:94
|
369 |
msgid "Button Style (Light)"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: admin/admin.php:1836 admin/shortcode-builder/shortcode-builder.php:98
|
373 |
msgid "Infinite Scroll (No Button)"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: admin/admin.php:1853
|
377 |
msgid "Click to Preview"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: admin/admin.php:1854 admin/shortcode-builder/shortcode-builder.php:112
|
381 |
#: admin/shortcode-builder/shortcode-builder.php:350
|
382 |
#: core/classes/class.alm-shortcode.php:216
|
383 |
msgid "Older Posts"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: admin/admin.php:1877
|
387 |
msgid "Improve site performance by loading Ajax Load More CSS inline."
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: admin/admin.php:1897
|
391 |
msgid "Add classes to your <strong>Load More</strong> button."
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: admin/admin.php:1941
|
395 |
msgid ""
|
396 |
"On initial page load, move the user's browser window to the top of the "
|
397 |
"screen."
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: admin/admin.php:1942
|
401 |
msgid "This may help prevent the loading of unnecessary posts."
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: admin/admin.php:1965
|
405 |
msgid "Disable REST API."
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: admin/admin.php:1966
|
409 |
msgid ""
|
410 |
"Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax "
|
411 |
"requests."
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: admin/admin.php:1989
|
415 |
msgid "Load legacy JavaScript callback functions."
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: admin/admin.php:1990
|
419 |
msgid ""
|
420 |
"Ajax Load More <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/"
|
421 |
"callback-functions/\" target=\"_blank\">callback functions</a> were updated "
|
423 |
"library to maintain compatibility."
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: admin/admin.php:2013
|
427 |
msgid ""
|
428 |
"Check this box if Ajax Load More should remove all of its data* when the "
|
429 |
"plugin is deleted."
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: admin/admin.php:2014
|
433 |
msgid "* Database Tables, Options and Repeater Templates"
|
434 |
msgstr ""
|
435 |
|
738 |
#: admin/shortcode-builder/components/nextpage.php:15
|
739 |
#: admin/shortcode-builder/components/nextpage.php:92
|
740 |
#: admin/shortcode-builder/components/paging.php:15
|
741 |
+
#: admin/shortcode-builder/components/paging.php:64
|
742 |
+
#: admin/shortcode-builder/components/paging.php:90
|
743 |
#: admin/shortcode-builder/components/preloaded.php:15
|
744 |
#: admin/shortcode-builder/components/rest-api.php:30
|
745 |
#: admin/shortcode-builder/components/rest-api.php:105
|
776 |
#: admin/shortcode-builder/components/nextpage.php:19
|
777 |
#: admin/shortcode-builder/components/nextpage.php:93
|
778 |
#: admin/shortcode-builder/components/paging.php:19
|
779 |
+
#: admin/shortcode-builder/components/paging.php:65
|
780 |
+
#: admin/shortcode-builder/components/paging.php:94
|
781 |
#: admin/shortcode-builder/components/preloaded.php:19
|
782 |
#: admin/shortcode-builder/components/rest-api.php:34
|
783 |
#: admin/shortcode-builder/components/rest-api.php:109
|
1138 |
msgstr ""
|
1139 |
|
1140 |
#: admin/shortcode-builder/components/filters.php:109
|
1141 |
+
#: admin/shortcode-builder/components/paging.php:56
|
1142 |
msgid "Scroll"
|
1143 |
msgstr ""
|
1144 |
|
1152 |
|
1153 |
#: admin/shortcode-builder/components/filters.php:131
|
1154 |
#: admin/shortcode-builder/components/nextpage.php:98
|
1155 |
+
#: admin/shortcode-builder/components/paging.php:70
|
1156 |
msgid "Scroll Top"
|
1157 |
msgstr ""
|
1158 |
|
1195 |
msgstr ""
|
1196 |
|
1197 |
#: admin/shortcode-builder/components/nextpage.php:3
|
1198 |
+
#: admin/shortcode-builder/components/paging.php:147 core/functions.php:140
|
1199 |
msgid "Next Page"
|
1200 |
msgstr ""
|
1201 |
|
1246 |
msgstr ""
|
1247 |
|
1248 |
#: admin/shortcode-builder/components/nextpage.php:90
|
1249 |
+
#: admin/shortcode-builder/components/paging.php:62
|
1250 |
#: admin/shortcode-builder/shortcode-builder.php:377
|
1251 |
msgid "Enable Scrolling"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
#: admin/shortcode-builder/components/nextpage.php:99
|
1255 |
msgid ""
|
1256 |
+
"The scrolltop position of the browser window (used with scrolling and fwd/"
|
1257 |
+
"back browser buttons)."
|
1258 |
msgstr ""
|
1259 |
|
1260 |
#: admin/shortcode-builder/components/nextpage.php:108
|
1290 |
"The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
|
1291 |
msgstr ""
|
1292 |
|
1293 |
+
#: admin/shortcode-builder/components/paging.php:57
|
1294 |
+
msgid ""
|
1295 |
+
"Move users to the top of the Ajax Load More container after a paging click "
|
1296 |
+
"event."
|
1297 |
+
msgstr ""
|
1298 |
+
|
1299 |
+
#: admin/shortcode-builder/components/paging.php:71
|
1300 |
+
msgid ""
|
1301 |
+
"The scrolltop position of the browser window when scrolling back to top."
|
1302 |
+
msgstr ""
|
1303 |
+
|
1304 |
+
#: admin/shortcode-builder/components/paging.php:82
|
1305 |
msgid "Controls"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
+
#: admin/shortcode-builder/components/paging.php:83
|
1309 |
msgid "Show first/last and next/previous buttons in the paging navigation."
|
1310 |
msgstr ""
|
1311 |
|
1312 |
+
#: admin/shortcode-builder/components/paging.php:105
|
1313 |
#: core/classes/class.alm-noscript.php:167
|
1314 |
msgid "First Page"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
+
#: admin/shortcode-builder/components/paging.php:105
|
1318 |
+
#: admin/shortcode-builder/components/paging.php:119
|
1319 |
msgid "Leave empty to not render button."
|
1320 |
msgstr ""
|
1321 |
|
1322 |
+
#: admin/shortcode-builder/components/paging.php:107
|
1323 |
msgid "Label for the <span>First Page</span> button."
|
1324 |
msgstr ""
|
1325 |
|
1326 |
+
#: admin/shortcode-builder/components/paging.php:119
|
1327 |
#: core/classes/class.alm-noscript.php:185
|
1328 |
msgid "Last Page"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
+
#: admin/shortcode-builder/components/paging.php:121
|
1332 |
msgid "Label for the <span>Last Page</span> button."
|
1333 |
msgstr ""
|
1334 |
|
1335 |
+
#: admin/shortcode-builder/components/paging.php:133
|
1336 |
msgid "Previous Page"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
+
#: admin/shortcode-builder/components/paging.php:135
|
1340 |
msgid "Label for the <span>Previous Page</span> button."
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: admin/shortcode-builder/components/paging.php:149
|
1344 |
msgid "Label for the <span>Next Page</span> button."
|
1345 |
msgstr ""
|
1346 |
|
2892 |
msgid "Error creating repeater template directory"
|
2893 |
msgstr ""
|
2894 |
|
2895 |
+
#: ajax-load-more.php:399
|
2896 |
msgid "Viewing {post_count} of {total_posts} results."
|
2897 |
msgstr ""
|
2898 |
|
2899 |
+
#: ajax-load-more.php:400
|
2900 |
msgid "No results found."
|
2901 |
msgstr ""
|
2902 |
|