Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.20

Version Description

  • Added: "Get Free Ebook" page on activation.
  • Updated: jQuery upload library.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.5.20
Comparing to
See all releases

Code changes from version 1.5.18 to 1.5.20

Files changed (49) hide show
  1. admin/controllers/Uninstall.php +3 -3
  2. admin/views/Albumsgalleries.php +1 -1
  3. admin/views/Galleries.php +69 -61
  4. admin/views/LibSubscribe.php +69 -0
  5. admin/views/Options.php +256 -211
  6. admin/views/Shortcode.php +47 -116
  7. admin/views/Widget.php +3 -1
  8. css/bwg_frontend.css +3 -7
  9. css/bwg_subscribe.css +353 -0
  10. css/bwg_tables.css +90 -13
  11. css/styles.min.css +1 -1
  12. css/tw-gb/block.css +3 -2
  13. filemanager/UploadHandler.php +828 -855
  14. filemanager/controller.php +9 -1
  15. filemanager/js/default.js +9 -19
  16. filemanager/js/jq_uploader/jquery.fileupload.js +367 -108
  17. filemanager/js/jq_uploader/jquery.iframe-transport.js +57 -18
  18. filemanager/js/jq_uploader/jquery.upload-1.0.2.js +0 -133
  19. filemanager/view.php +2 -2
  20. fonts/twbb-icon.svg +19 -0
  21. fonts/twbb-icons.eot +0 -0
  22. fonts/twbb-icons.ttf +0 -0
  23. fonts/twbb-icons.woff +0 -0
  24. framework/BWGOptions.php +7 -1
  25. framework/WDWLibrary.php +164 -210
  26. framework/WDWLibraryEmbed.php +40 -42
  27. frontend/controllers/controller.php +129 -33
  28. frontend/models/BWGModelGalleryBox.php +1 -1
  29. frontend/models/model.php +38 -18
  30. frontend/views/BWGViewAlbum_compact_preview.php +21 -12
  31. frontend/views/BWGViewAlbum_extended_preview.php +19 -5
  32. frontend/views/BWGViewGalleryBox.php +26 -25
  33. frontend/views/BWGViewImage_browser.php +131 -133
  34. frontend/views/BWGViewSlideshow.php +8 -3
  35. frontend/views/BWGViewThumbnails.php +1 -2
  36. frontend/views/view.php +14 -14
  37. images/subscribe/10web-logo.svg +24 -0
  38. images/subscribe/book.png +0 -0
  39. images/subscribe/book_1024.png +0 -0
  40. images/subscribe/book_768.png +0 -0
  41. images/subscribe/square.svg +6 -0
  42. images/subscribe/transparent_title.png +0 -0
  43. images/tenweb/Photo-Gallery-logo.svg +1 -0
  44. images/tenweb/optimize_banner_bg_1024.svg +1 -0
  45. js/bwg.js +182 -4
  46. js/bwg_frontend.js +38 -32
  47. js/bwg_gallery_box.js +53 -24
  48. js/bwg_shortcode.js +181 -4
  49. js/scripts.min.js +1 -1
admin/controllers/Uninstall.php CHANGED
@@ -20,13 +20,13 @@ class UninstallController_bwg {
20
  public function __construct() {
21
  if ( !BWG()->is_pro ) {
22
  global $bwg_options;
23
- if ( !class_exists("TenWebLibConfig") ) {
24
  $plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.1', 'path' => BWG()->plugin_dir));
25
  include_once($plugin_dir['path'] . "/wd/config.php");
26
  }
27
- $config = new TenWebLibConfig();
28
  $config->set_options($bwg_options);
29
- $deactivate_reasons = new TenWebLibDeactivate($config);
30
  $deactivate_reasons->submit_and_deactivate();
31
  }
32
 
20
  public function __construct() {
21
  if ( !BWG()->is_pro ) {
22
  global $bwg_options;
23
+ if ( !class_exists("TenWebNewLibConfig") ) {
24
  $plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.1', 'path' => BWG()->plugin_dir));
25
  include_once($plugin_dir['path'] . "/wd/config.php");
26
  }
27
+ $config = new TenWebNewLibConfig();
28
  $config->set_options($bwg_options);
29
+ $deactivate_reasons = new TenWebNewLibDeactivate($config);
30
  $deactivate_reasons->submit_and_deactivate();
31
  }
32
 
admin/views/Albumsgalleries.php CHANGED
@@ -103,7 +103,7 @@ class AlbumsgalleriesView_bwg extends AdminView_bwg {
103
  <strong class="has-media-icon">
104
  <a class="wd-pointer" onclick="window.parent.bwg_add_album_gallery('<?php echo $row->id; ?>', '<?php echo htmlspecialchars(addslashes($row->is_album)); ?>', '<?php echo htmlspecialchars(addslashes($preview_image)); ?>', '<?php echo htmlspecialchars(addslashes($row->name)); ?>','<?php echo !$row->published ? 'dashicons-hidden' : 'hidden' ?>')" id="a_<?php echo $iterator; ?>">
105
  <span class="media-icon image-icon">
106
- <img class="preview-image" title="<?php echo $row->title; ?>" src="<?php echo $preview_image; ?>" width="60" height="60" />
107
  </span>
108
  <?php echo $row->name?>
109
  </a>
103
  <strong class="has-media-icon">
104
  <a class="wd-pointer" onclick="window.parent.bwg_add_album_gallery('<?php echo $row->id; ?>', '<?php echo htmlspecialchars(addslashes($row->is_album)); ?>', '<?php echo htmlspecialchars(addslashes($preview_image)); ?>', '<?php echo htmlspecialchars(addslashes($row->name)); ?>','<?php echo !$row->published ? 'dashicons-hidden' : 'hidden' ?>')" id="a_<?php echo $iterator; ?>">
105
  <span class="media-icon image-icon">
106
+ <img class="preview-image" title="<?php echo $row->name; ?>" src="<?php echo $preview_image; ?>" width="60" height="60" />
107
  </span>
108
  <?php echo $row->name?>
109
  </a>
admin/views/Galleries.php CHANGED
@@ -630,21 +630,8 @@ class GalleriesView_bwg extends AdminView_bwg {
630
  <input id="check_all" type="checkbox" />
631
  </td>
632
  <td class="col_num">#</td>
633
- <th class="column-primary"><?php _e('Image', BWG()->prefix); ?></th>
634
- <th class="col_alt"><?php _e('Alt/Title', BWG()->prefix); ?></th>
635
- <th class="col_desc"><?php _e('Description', BWG()->prefix); ?></th>
636
- <th class="col_redirect">
637
- <?php _e('Redirect URL', BWG()->prefix); ?>
638
- <i class="wd-info dashicons dashicons-info" data-id="wd-info-redirect"></i>
639
- <div id="wd-info-redirect" class="wd-hide">
640
- <p><?php
641
- $link = '<a target="_blank" href="'.add_query_arg(array('page' => 'options_bwg'), admin_url('admin.php')).'">'. __('Options > General', BWG()->prefix) . '</a>';
642
- echo sprintf(__('To activate this feature, go to %s, then set "Image click action" to "Redirect to URL". Please use absolute URLs when specifying the links.', BWG()->prefix), $link);
643
- ?>
644
- </p>
645
- </div>
646
- </th>
647
- <th class="col_tag"><?php _e('Tags', BWG()->prefix); ?></th>
648
  </thead>
649
  <tbody id="tbody_arr" data-meta="<?php echo BWG()->options->read_metadata; ?>" class="bwg-ordering">
650
  <?php
@@ -741,54 +728,75 @@ class GalleriesView_bwg extends AdminView_bwg {
741
  <span class="screen-reader-text"><?php _e('Show more details', BWG()->prefix); ?></span>
742
  </button>
743
  </td>
744
- <td data-colname="<?php _e('Alt/Title', BWG()->prefix); ?>">
745
- <textarea rows="4" id="image_alt_text_<?php echo $row->id; ?>" name="image_alt_text_<?php echo $row->id; ?>"><?php echo $row->alt; ?></textarea>
746
- </td>
747
- <td class="col_desc" data-colname="<?php _e('Description', BWG()->prefix); ?>">
748
- <textarea rows="4" id="image_description_<?php echo $row->id; ?>" name="image_description_<?php echo $row->id; ?>"><?php echo $row->description; ?></textarea>
749
- <?php
750
- if ( function_exists('BWGEC') ) {
751
- $priselist_name = $row->priselist_name ? "Pricelist: " . $row->priselist_name : "Not for sale";
752
- $unset = $priselist_name == "Not for sale" ? "" : " <span onclick='bwg_remove_pricelist(this);' data-image-id= '" . $row->id . "' data-pricelist-id='" . $row->pricelist_id . "' class ='spider_delete_img_small' style='margin-top: -2px;margin-left: 3px;'></span>";
753
- echo "<div><strong>" . $priselist_name . " </strong>" . $unset . "</div>";
754
- $not_set_text = $row->not_set_items == 1 ? __('Selected pricelist item longest dimension greater than some original images dimensions.', BWG()->prefix) : "";
755
- echo "<small id='priselist_set_error" . $row->id . "' style='color:#B41111;' >" . $not_set_text . "</small>";
756
- echo "<input type='hidden' id='pricelist_id_" . $row->id . "' value='" . $row->pricelist_id . "'>";
757
- }
758
- ?>
759
- </td>
760
- <td data-colname="<?php _e('Redirect URL', BWG()->prefix); ?>" class="redirect_cont">
761
- <textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
762
- </td>
763
- <td data-colname="<?php _e('Tags', BWG()->prefix); ?>">
764
- <div class="tags_div<?php echo count($row->tags) > 1 ? '' : ' wd-hide'; ?>" id="tags_div_<?php echo $row->id; ?>">
765
- <?php
766
- $tags_id_string = '';
767
- if ( $row->tags ) {
768
- foreach ( $row->tags as $row_tag_data ) {
769
- ?>
770
- <div class="tag_div<?php echo $row_tag_data->term_id == 'temptagid' ? ' wd-tag-template wd-hide' : ''; ?>" id="<?php echo $row->id; ?>_tag_<?php echo $row_tag_data->term_id; ?>">
771
- <span class="tag_name"><?php echo $row_tag_data->name; ?></span>
772
- <span class="dashicons dashicons-no-alt wd-delete-tag" title="<?php _e('Remove tag', BWG()->prefix); ?>" onclick="bwg_remove_tag('<?php echo $row_tag_data->term_id; ?>', '<?php echo $row->id; ?>')" />
773
- </div>
774
- <?php
775
- $tags_id_string .= ($row_tag_data->term_id == 'temptagid' ? '' : ($row_tag_data->term_id . ','));
776
  }
777
- }
778
- ?>
779
- </div>
780
- <div class="row-actions">
781
- <a onclick="jQuery('#loading_div').show();" href="<?php echo $add_tag_url; ?>" class="thickbox thickbox-preview"><?php _e('Add tag', BWG()->prefix); ?></a>
782
- </div>
783
 
784
- <input type="hidden" value="<?php echo $tags_id_string; ?>" id="tags_<?php echo $row->id; ?>" name="tags_<?php echo $row->id; ?>" />
785
- <input type="hidden" id="image_url_<?php echo $row->id; ?>" name="image_url_<?php echo $row->id; ?>" value="<?php echo $row->pure_image_url; ?>" />
786
- <input type="hidden" id="thumb_url_<?php echo $row->id; ?>" name="thumb_url_<?php echo $row->id; ?>" value="<?php echo $row->pure_thumb_url; ?>" />
787
- <input type="hidden" id="input_filename_<?php echo $row->id; ?>" name="input_filename_<?php echo $row->id; ?>" value="<?php echo $row->filename; ?>" />
788
- <input type="hidden" id="input_date_modified_<?php echo $row->id; ?>" name="input_date_modified_<?php echo $row->id; ?>" value="<?php echo $row->date; ?>" />
789
- <input type="hidden" id="input_resolution_<?php echo $row->id; ?>" name="input_resolution_<?php echo $row->id; ?>" value="<?php echo $row->resolution; ?>" />
790
- <input type="hidden" id="input_size_<?php echo $row->id; ?>" name="input_size_<?php echo $row->id; ?>" value="<?php echo $row->size; ?>" />
791
- <input type="hidden" id="input_filetype_<?php echo $row->id; ?>" name="input_filetype_<?php echo $row->id; ?>" value="<?php echo $row->filetype; ?>" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
792
  </td>
793
  </tr>
794
  <?php
630
  <input id="check_all" type="checkbox" />
631
  </td>
632
  <td class="col_num">#</td>
633
+ <th class="column-primary column-title"><?php _e('Image', BWG()->prefix); ?></th>
634
+ <th></th>
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  </thead>
636
  <tbody id="tbody_arr" data-meta="<?php echo BWG()->options->read_metadata; ?>" class="bwg-ordering">
637
  <?php
728
  <span class="screen-reader-text"><?php _e('Show more details', BWG()->prefix); ?></span>
729
  </button>
730
  </td>
731
+ <td class="column-data">
732
+ <div class="bwg-td-container">
733
+ <div class="bwg-td-item">
734
+ <label class="wd-table-label" for="image_alt_text_<?php echo $row->id; ?>"><?php _e('Alt/Title', BWG()->prefix); ?></label>
735
+ <textarea rows="4" id="image_alt_text_<?php echo $row->id; ?>" name="image_alt_text_<?php echo $row->id; ?>"><?php echo $row->alt; ?></textarea>
736
+ </div>
737
+ <div class="bwg-td-item">
738
+ <label class="wd-table-label" for="image_description_<?php echo $row->id; ?>"><?php _e('Description', BWG()->prefix); ?></label>
739
+ <textarea rows="4" id="image_description_<?php echo $row->id; ?>" name="image_description_<?php echo $row->id; ?>"><?php echo $row->description; ?></textarea>
740
+ </div>
741
+
742
+ <?php
743
+ if ( function_exists('BWGEC') ) {
744
+ $priselist_name = $row->priselist_name ? "Pricelist: " . $row->priselist_name : "Not for sale";
745
+ $unset = $priselist_name == "Not for sale" ? "" : " <span onclick='bwg_remove_pricelist(this);' data-image-id= '" . $row->id . "' data-pricelist-id='" . $row->pricelist_id . "' class ='spider_delete_img_small' style='margin-top: -2px;margin-left: 3px;'></span>";
746
+ echo "<div class=\"bwg-td-item\"><div><strong>" . $priselist_name . " </strong>" . $unset . "</div>";
747
+ $not_set_text = $row->not_set_items == 1 ? __('Selected pricelist item longest dimension greater than some original images dimensions.', BWG()->prefix) : "";
748
+ echo "<small id='priselist_set_error" . $row->id . "' style='color:#B41111;' >" . $not_set_text . "</small>";
749
+ echo "<input type='hidden' id='pricelist_id_" . $row->id . "' value='" . $row->pricelist_id . "'></div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
750
  }
751
+ ?>
 
 
 
 
 
752
 
753
+ <div class="bwg-td-item">
754
+ <label class="wd-table-label" for="redirect_url_<?php echo $row->id; ?>"><?php _e('Redirect URL', BWG()->prefix); ?></label>
755
+ <i class="wd-info dashicons dashicons-info" data-id="wd-info-redirect"></i>
756
+ <div id="wd-info-redirect" class="wd-hide">
757
+ <p><?php
758
+ $link = '<a target="_blank" href="'.add_query_arg(array('page' => 'options_bwg'), admin_url('admin.php')).'">'. __('Options > General', BWG()->prefix) . '</a>';
759
+ echo sprintf(__('To activate this feature, go to %s, then set "Image click action" to "Redirect to URL". Please use absolute URLs when specifying the links.', BWG()->prefix), $link);
760
+ ?>
761
+ </p>
762
+ </div>
763
+ <textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
764
+ </div>
765
+ <div class="bwg-td-item">
766
+ <label class="wd-table-label"><?php _e('Tags', BWG()->prefix); ?></label>
767
+ <div class="tags_div<?php echo count($row->tags) > 1 ? '' : ' tags_div_empty'; ?>">
768
+ <?php
769
+ $tags_id_string = '';
770
+ if ( $row->tags ) {
771
+ ?>
772
+ <div id="tags_div_<?php echo $row->id; ?>">
773
+ <?php
774
+ foreach ( $row->tags as $row_tag_data ) {
775
+ ?>
776
+ <div class="tag_div<?php echo $row_tag_data->term_id == 'temptagid' ? ' wd-tag-template wd-hide' : ''; ?>" id="<?php echo $row->id; ?>_tag_<?php echo $row_tag_data->term_id; ?>">
777
+ <span class="tag_name"><?php echo $row_tag_data->name; ?></span>
778
+ <span class="dashicons dashicons-no-alt wd-delete-tag" title="<?php _e('Remove tag', BWG()->prefix); ?>" onclick="bwg_remove_tag('<?php echo $row_tag_data->term_id; ?>', '<?php echo $row->id; ?>')" />
779
+ </div>
780
+ <?php
781
+ $tags_id_string .= ($row_tag_data->term_id == 'temptagid' ? '' : ($row_tag_data->term_id . ','));
782
+ }
783
+ ?>
784
+ </div>
785
+ <?php
786
+ }
787
+ ?>
788
+ <a onclick="jQuery('#loading_div').show();" href="<?php echo $add_tag_url; ?>" class="thickbox thickbox-preview"><span class="dashicons dashicons-plus"></span><?php _e('Add tag', BWG()->prefix); ?></a>
789
+ </div>
790
+ </div>
791
+ <input type="hidden" value="<?php echo $tags_id_string; ?>" id="tags_<?php echo $row->id; ?>" name="tags_<?php echo $row->id; ?>" />
792
+ <input type="hidden" id="image_url_<?php echo $row->id; ?>" name="image_url_<?php echo $row->id; ?>" value="<?php echo $row->pure_image_url; ?>" />
793
+ <input type="hidden" id="thumb_url_<?php echo $row->id; ?>" name="thumb_url_<?php echo $row->id; ?>" value="<?php echo $row->pure_thumb_url; ?>" />
794
+ <input type="hidden" id="input_filename_<?php echo $row->id; ?>" name="input_filename_<?php echo $row->id; ?>" value="<?php echo $row->filename; ?>" />
795
+ <input type="hidden" id="input_date_modified_<?php echo $row->id; ?>" name="input_date_modified_<?php echo $row->id; ?>" value="<?php echo $row->date; ?>" />
796
+ <input type="hidden" id="input_resolution_<?php echo $row->id; ?>" name="input_resolution_<?php echo $row->id; ?>" value="<?php echo $row->resolution; ?>" />
797
+ <input type="hidden" id="input_size_<?php echo $row->id; ?>" name="input_size_<?php echo $row->id; ?>" value="<?php echo $row->size; ?>" />
798
+ <input type="hidden" id="input_filetype_<?php echo $row->id; ?>" name="input_filetype_<?php echo $row->id; ?>" value="<?php echo $row->filetype; ?>" />
799
+ </div>
800
  </td>
801
  </tr>
802
  <?php
admin/views/LibSubscribe.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $admin_data = wp_get_current_user();
2
+
3
+ $user_first_name = get_user_meta($admin_data->ID, "first_name", true);
4
+ $user_last_name = get_user_meta($admin_data->ID, "last_name", true);
5
+
6
+ $name = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
7
+ ?>
8
+ <script>
9
+ jQuery(document).on("ready", function () {
10
+ jQuery("#tenweb_subscribe_submit").on("click", function () {
11
+ var error = 0;
12
+ var inputs = {
13
+ "user_name" : "<?php _e("Name is required.", BWG()->prefix); ?>",
14
+ "user_email" : "<?php _e("Please enter a valid email.", BWG()->prefix); ?>"
15
+ };
16
+ for (var i in inputs) {
17
+ var input = jQuery("#<?php echo BWG()->prefix; ?>_" + i);
18
+ if (input.val() == "" || (i == "user_email" && !tenWebSubscrineIsEmail(input.val()))) {
19
+ input.closest("p").addClass("error");
20
+ input.closest("p").find(".error_msg").html(inputs[i]);
21
+ error++;
22
+ }
23
+ else {
24
+ input.closest("p").removeClass("error");
25
+ input.closest("p").find(".error_msg").html("");
26
+ }
27
+ }
28
+ if (error == 0 ) {
29
+ jQuery(this).closest("form").submit();
30
+ } else {
31
+ return false;
32
+ }
33
+ });
34
+ });
35
+ function tenWebSubscrineIsEmail(email) {
36
+ var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
37
+ return regex.test(email);
38
+ }
39
+ </script>
40
+ <div id="tenweb_new_subscribe" class="tenweb_subscribe">
41
+ <div class="tenweb_subscribe_container">
42
+ <div class="tenweb_subscribe_content">
43
+ <a id="tenweb_logo"></a>
44
+ <h1 id="tenweb_title"><?php _e( "Get Free Ebook for Creating an Beautiful Gallery in 5 Minutes", BWG()->prefix ); ?></h1>
45
+ <p id="tenweb_description"><?php _e( "Your gallery will look beautiful, load fast <br>and attract visitors.", BWG()->prefix ); ?></p>
46
+ <div id="tablet_book">
47
+ <img src="<?php echo BWG()->plugin_url; ?>/images/subscribe/book_768.png">
48
+ </div>
49
+ <form id="tenweb_form" method="get" action="admin.php?page=<?php echo BWG()->prefix; ?>_subscribe">
50
+ <p>
51
+ <label for="user_name"><?php _e( "NAME", BWG()->prefix ); ?> <span>*</span></label>
52
+ <input type="text" name="<?php echo BWG()->prefix; ?>_user_name" id="<?php echo BWG()->prefix; ?>_user_name" placeholder="Fill Your Name" value="<?php echo $name; ?>">
53
+ <span class='error_msg'></span>
54
+ </p>
55
+ <p>
56
+ <label for="user_name"><?php _e( "EMAIL ADDRESS", BWG()->prefix ); ?> <span>*</span></label>
57
+ <input type="text" name="<?php echo BWG()->prefix; ?>_user_email" id="<?php echo BWG()->prefix; ?>_user_email" placeholder="Fill Your Email" value="<?php echo $admin_data->data->user_email; ?>">
58
+ <span class='error_msg'></span>
59
+ </p>
60
+ <div class="form_desc"><?php _e( "Submitting this form you agree that 10Web stores your name, email, and site URL. We won’t share your info with third parties. We are GDPR compliant.", BWG()->prefix ); ?></div>
61
+ <div id="form_buttons">
62
+ <input type="hidden" name="<?php echo BWG()->prefix; ?>_sub_action" value="allow">
63
+ <input type="button" id="tenweb_subscribe_submit" value="RECEIVE EBOOK">
64
+ <a href="<?php echo "admin.php?page=" . BWG()->prefix . "_subscribe&" . BWG()->prefix . "_sub_action=skip" ;?>" class="skip more" ><?php _e( "Skip", BWG()->prefix ); ?></a>
65
+ </div>
66
+ </form>
67
+ </div>
68
+ </div>
69
+ </div>
admin/views/Options.php CHANGED
@@ -301,12 +301,12 @@ class OptionsView_bwg extends AdminView_bwg {
301
  </div>
302
  <p class="description"><?php _e('Generate or edit a shortcode.', BWG()->prefix); ?></p>
303
  </div>
304
- <div class="wd-group">
305
- <label class="wd-label"><?php _e('Developer mode', BWG()->prefix); ?></label>
306
- <input type="radio" name="developer_mode" id="developer_mode_1" value="1" <?php if ($row->developer_mode) echo 'checked="checked"'; ?> /><label for="developer_mode_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
307
- <input type="radio" name="developer_mode" id="developer_mode_0" value="0" <?php if (!$row->developer_mode) echo 'checked="checked"'; ?> /><label for="developer_mode_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
308
- <p class="description"><?php _e('', BWG()->prefix); ?></p>
309
- </div>
310
  </div>
311
  <?php
312
  if ( !BWG()->is_demo ) {
@@ -603,7 +603,7 @@ class OptionsView_bwg extends AdminView_bwg {
603
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_role" id="album_role_1" value="1" <?php if ($row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
604
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_role" id="album_role_0" value="0" <?php if (!$row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
605
  </div>
606
- <p class="description"><?php _e('Enabling this option will restrict authors from modifying galleries created by other users.', BWG()->prefix); ?></p>
607
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
608
  </div>
609
  </div>
@@ -614,7 +614,7 @@ class OptionsView_bwg extends AdminView_bwg {
614
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="image_role" id="image_role_1" value="1" <?php if ($row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
615
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="image_role" id="image_role_0" value="0" <?php if (!$row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
616
  </div>
617
- <p class="description"><?php _e('Enable this setting to restrict authors from modifying galleries added by other users.', BWG()->prefix); ?></p>
618
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
619
  </div>
620
  </div>
@@ -996,21 +996,7 @@ class OptionsView_bwg extends AdminView_bwg {
996
  bwg_enable_disable(<?php echo $row->masonry_image_enable_page == '2' ? "'', 'tr_masonry_load_more_image_count', 'masonry_image_enable_page_loadmore'" : "'none', 'tr_masonry_load_more_image_count', 'masonry_image_enable_page_" . ($row->masonry_image_enable_page == '0' ? 'no' : ($row->masonry_image_enable_page == '1' ? 'yes' : 'scroll_load')) . "'"; ?>);
997
  bwg_enable_disable(<?php echo $row->mosaic_image_enable_page == '2' ? "'', 'tr_mosaic_load_more_image_count', 'mosaic_image_enable_page_loadmore'" : "'none', 'tr_mosaic_load_more_image_count', 'mosaic_image_enable_page_" . ($row->mosaic_image_enable_page == '0' ? 'no' : ($row->mosaic_image_enable_page == '1' ? 'yes' : 'scroll_load')) . "'"; ?>);
998
  bwg_enable_disable(<?php echo $row->blog_style_enable_page == '2' ? "'', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_2'" : "'none', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_" . $row->blog_style_enable_page . "'"; ?>);
999
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic', 'album_view_type_2'" : "'none', 'tr_album_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1000
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_resizable_mosaic', 'album_view_type_2'" : "'none', 'tr_album_resizable_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1001
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic_total_width', 'album_view_type_2'" : "'none', 'tr_album_mosaic_total_width', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1002
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'for_album_image_title_show_hover_0', 'album_view_type_2'" : "'', 'for_album_image_title_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1003
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'album_image_title_show_hover_0', 'album_view_type_2'" : "'', 'album_image_title_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1004
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_2'" : "'', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1005
- bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'album_ecommerce_icon_show_hover_0', 'album_view_type_2'" : "'', 'album_ecommerce_icon_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
1006
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1007
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1008
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1009
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_2'" : "'', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1010
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'album_extended_image_title_show_hover_0', 'album_extended_view_type_2'" : "'', 'album_extended_image_title_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1011
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_2'" : "'', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1012
- bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_2'" : "'', 'album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
1013
- bwg_enable_disable(<?php echo $row->masonry == 'horizontal' ? "'none', 'bwg-vertical-block-masonry', 'masonry_1'" : "'', 'bwg-vertical-block-masonry', 'masonry_0'"; ?>);
1014
  preview_watermark();
1015
  preview_built_in_watermark();
1016
  bwg_show_hide_roles();
@@ -1115,26 +1101,26 @@ class OptionsView_bwg extends AdminView_bwg {
1115
  <div class="wd-box-content wd-width-33">
1116
  <div class="wd-box-content wd-width-100">
1117
  <div class="wd-group">
1118
- <label class="wd-label" for="sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1119
- <select name="sort_by" id="sort_by">
1120
- <option value="order" <?php if ($row->sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
1121
- <option value="alt" <?php if ($row->sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1122
- <option value="date" <?php if ($row->sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1123
- <option value="filename" <?php if ($row->sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1124
- <option value="size" <?php if ($row->sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
1125
- <option value="filetype" <?php if ($row->sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
1126
- <option value="resolution" <?php if ($row->sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1127
- <option value="random" <?php if ($row->sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1128
- </select>
1129
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
1130
- </div>
1131
- </div>
1132
- <div class="wd-box-content wd-width-100">
1133
- <div class="wd-group">
1134
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
1135
- <input type="radio" name="order_by" id="order_by_1" value="asc" <?php if ($row->order_by == 'asc') echo 'checked="checked"'; ?> /><label for="order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
1136
- <input type="radio" name="order_by" id="order_by_0" value="desc" <?php if ($row->order_by == 'desc') echo 'checked="checked"'; ?> /><label for="order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
1137
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
1138
  </div>
1139
  </div>
1140
  <div class="wd-box-content wd-width-100">
@@ -1334,8 +1320,9 @@ class OptionsView_bwg extends AdminView_bwg {
1334
  <div class="wd-box-content wd-width-100">
1335
  <div class="wd-group">
1336
  <label class="wd-label" for="masonry_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1337
- <select name="masonry_sort_by" id="masonry_sort_by">
1338
- <option value="order" <?php if ($row->masonry_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
 
1339
  <option value="alt" <?php if ($row->masonry_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1340
  <option value="date" <?php if ($row->masonry_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1341
  <option value="filename" <?php if ($row->masonry_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
@@ -1344,15 +1331,14 @@ class OptionsView_bwg extends AdminView_bwg {
1344
  <option value="resolution" <?php if ($row->masonry_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1345
  <option value="random" <?php if ($row->masonry_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1346
  </select>
1347
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
1348
- </div>
1349
- </div>
1350
- <div class="wd-box-content wd-width-100">
1351
- <div class="wd-group">
1352
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
1353
- <input type="radio" name="masonry_order_by" id="masonry_order_by_1" value="asc" <?php if ($row->masonry_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="masonry_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
1354
- <input type="radio" name="masonry_order_by" id="masonry_order_by_0" value="desc" <?php if ($row->masonry_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="masonry_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
1355
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
1356
  </div>
1357
  </div>
1358
  <div class="wd-box-content wd-width-100">
@@ -1570,8 +1556,9 @@ class OptionsView_bwg extends AdminView_bwg {
1570
  <div class="wd-box-content wd-width-100">
1571
  <div class="wd-group">
1572
  <label class="wd-label" for="mosaic_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
 
1573
  <select name="mosaic_sort_by" id="mosaic_sort_by">
1574
- <option value="order" <?php if ($row->mosaic_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
1575
  <option value="alt" <?php if ($row->mosaic_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1576
  <option value="date" <?php if ($row->mosaic_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1577
  <option value="filename" <?php if ($row->mosaic_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
@@ -1580,15 +1567,14 @@ class OptionsView_bwg extends AdminView_bwg {
1580
  <option value="resolution" <?php if ($row->mosaic_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1581
  <option value="random" <?php if ($row->mosaic_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1582
  </select>
1583
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
1584
- </div>
1585
- </div>
1586
- <div class="wd-box-content wd-width-100">
1587
- <div class="wd-group">
1588
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
1589
- <input type="radio" name="mosaic_order_by" id="mosaic_order_by_1" value="asc" <?php if ($row->mosaic_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="mosaic_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
1590
- <input type="radio" name="mosaic_order_by" id="mosaic_order_by_0" value="desc" <?php if ($row->mosaic_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="mosaic_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
1591
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
1592
  </div>
1593
  </div>
1594
  <div class="wd-box-content wd-width-100">
@@ -1767,25 +1753,25 @@ class OptionsView_bwg extends AdminView_bwg {
1767
  <div class="wd-box-content wd-width-100">
1768
  <div class="wd-group">
1769
  <label class="wd-label" for="slideshow_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1770
- <select name="slideshow_sort_by" id="slideshow_sort_by">
1771
- <option value="order" <?php if ($row->slideshow_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
1772
- <option value="alt" <?php if ($row->slideshow_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1773
- <option value="date" <?php if ($row->slideshow_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1774
- <option value="filename" <?php if ($row->slideshow_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1775
- <option value="size" <?php if ($row->slideshow_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
1776
- <option value="filetype" <?php if ($row->slideshow_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
1777
- <option value="resolution" <?php if ($row->slideshow_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1778
- <option value="random" <?php if ($row->slideshow_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1779
- </select>
1780
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
1781
- </div>
1782
- </div>
1783
- <div class="wd-box-content wd-width-100">
1784
- <div class="wd-group">
1785
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
1786
- <input type="radio" name="slideshow_order_by" id="slideshow_order_by_1" value="asc" <?php if ($row->slideshow_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="slideshow_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
1787
- <input type="radio" name="slideshow_order_by" id="slideshow_order_by_0" value="desc" <?php if ($row->slideshow_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="slideshow_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
1788
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
1789
  </div>
1790
  </div>
1791
  <div class="wd-box-content wd-width-100">
@@ -2007,8 +1993,9 @@ class OptionsView_bwg extends AdminView_bwg {
2007
  <div class="wd-box-content wd-width-100">
2008
  <div class="wd-group">
2009
  <label class="wd-label" for="image_browser_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2010
- <select name="image_browser_sort_by" id="image_browser_sort_by">
2011
- <option value="order" <?php if ($row->image_browser_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
 
2012
  <option value="alt" <?php if ($row->image_browser_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2013
  <option value="date" <?php if ($row->image_browser_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2014
  <option value="filename" <?php if ($row->image_browser_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
@@ -2017,15 +2004,14 @@ class OptionsView_bwg extends AdminView_bwg {
2017
  <option value="resolution" <?php if ($row->image_browser_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2018
  <option value="random" <?php if ($row->image_browser_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2019
  </select>
2020
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
2021
- </div>
2022
- </div>
2023
- <div class="wd-box-content wd-width-100">
2024
- <div class="wd-group">
2025
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
2026
- <input type="radio" name="image_browser_order_by" id="image_browser_order_by_1" value="asc" <?php if ($row->image_browser_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="image_browser_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
2027
- <input type="radio" name="image_browser_order_by" id="image_browser_order_by_0" value="desc" <?php if ($row->image_browser_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="image_browser_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
2028
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
2029
  </div>
2030
  </div>
2031
  <div class="wd-box-content wd-width-100">
@@ -2166,25 +2152,25 @@ class OptionsView_bwg extends AdminView_bwg {
2166
  <div class="wd-box-content wd-width-100">
2167
  <div class="wd-group">
2168
  <label class="wd-label" for="blog_style_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2169
- <select name="blog_style_sort_by" id="blog_style_sort_by">
2170
- <option value="order" <?php if ($row->blog_style_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
2171
- <option value="alt" <?php if ($row->blog_style_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2172
- <option value="date" <?php if ($row->blog_style_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2173
- <option value="filename" <?php if ($row->blog_style_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2174
- <option value="size" <?php if ($row->blog_style_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2175
- <option value="filetype" <?php if ($row->blog_style_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2176
- <option value="resolution" <?php if ($row->blog_style_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2177
- <option value="random" <?php if ($row->blog_style_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2178
- </select>
2179
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
2180
- </div>
2181
- </div>
2182
- <div class="wd-box-content wd-width-100">
2183
- <div class="wd-group">
2184
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
2185
- <input type="radio" name="blog_style_order_by" id="blog_style_order_by_1" value="asc" <?php if ($row->blog_style_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="blog_style_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
2186
- <input type="radio" name="blog_style_order_by" id="blog_style_order_by_0" value="desc" <?php if ($row->blog_style_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="blog_style_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
2187
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
2188
  </div>
2189
  </div>
2190
  <div class="wd-box-content wd-width-100">
@@ -2343,25 +2329,25 @@ class OptionsView_bwg extends AdminView_bwg {
2343
  <div class="wd-box-content wd-width-100">
2344
  <div class="wd-group">
2345
  <label class="wd-label" for="carousel_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2346
- <select name="carousel_sort_by" id="carousel_sort_by">
2347
- <option value="order" <?php if ($row->carousel_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
2348
- <option value="alt" <?php if ($row->carousel_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2349
- <option value="date" <?php if ($row->carousel_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2350
- <option value="filename" <?php if ($row->carousel_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2351
- <option value="size" <?php if ($row->carousel_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2352
- <option value="filetype" <?php if ($row->carousel_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2353
- <option value="resolution" <?php if ($row->carousel_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2354
- <option value="random" <?php if ($row->carousel_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2355
- </select>
2356
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
2357
- </div>
2358
- </div>
2359
- <div class="wd-box-content wd-width-100">
2360
- <div class="wd-group">
2361
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
2362
- <input type="radio" name="carousel_order_by" id="carousel_order_by_1" value="asc" <?php if ($row->carousel_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="carousel_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
2363
- <input type="radio" name="carousel_order_by" id="carousel_order_by_0" value="desc" <?php if ($row->carousel_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="carousel_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
2364
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
2365
  </div>
2366
  </div>
2367
  <div class="wd-box-content wd-width-100">
@@ -2485,7 +2471,7 @@ class OptionsView_bwg extends AdminView_bwg {
2485
  <p class="description"><?php _e('Set the maximum number of image columns in galleries. Note, that the parent container needs to be large enough to display all columns.', BWG()->prefix); ?></p>
2486
  </div>
2487
  </div>
2488
- <div class="wd-box-content wd-width-100">
2489
  <div class="wd-group">
2490
  <label class="wd-label" for="album_image_thumb_width"><?php _e('Thumbnail dimensions', BWG()->prefix); ?></label>
2491
  <div class="bwg-flex">
@@ -2495,7 +2481,7 @@ class OptionsView_bwg extends AdminView_bwg {
2495
  <p class="description"><?php _e('The default dimensions of thumbnails which will display on published galleries.', BWG()->prefix); ?></p>
2496
  </div>
2497
  </div>
2498
- <div class="wd-box-content wd-width-100">
2499
  <div class="wd-group">
2500
  <label class="wd-label"><?php _e('Pagination', BWG()->prefix); ?></label>
2501
  <div class="bwg-flex">
@@ -2531,27 +2517,44 @@ class OptionsView_bwg extends AdminView_bwg {
2531
  </div>
2532
  <div class="wd-box-content wd-width-33">
2533
  <div class="wd-box-content wd-width-100">
2534
- <div class="wd-group">
2535
- <label class="wd-label" for="album_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2536
- <select name="album_sort_by" id="album_sort_by">
2537
- <option value="order" <?php if ($row->album_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
2538
- <option value="alt" <?php if ($row->album_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2539
- <option value="date" <?php if ($row->album_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2540
- <option value="filename" <?php if ($row->album_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2541
- <option value="size" <?php if ($row->album_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2542
- <option value="filetype" <?php if ($row->album_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2543
- <option value="resolution" <?php if ($row->album_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2544
- <option value="random" <?php if ($row->album_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2545
- </select>
2546
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
2547
- </div>
2548
- </div>
2549
- <div class="wd-box-content wd-width-100">
2550
- <div class="wd-group">
2551
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
2552
- <input type="radio" name="album_order_by" id="album_order_by_1" value="asc" <?php if ($row->album_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="album_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
2553
- <input type="radio" name="album_order_by" id="album_order_by_0" value="desc" <?php if ($row->album_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="album_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
2554
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2555
  </div>
2556
  </div>
2557
  <div class="wd-box-content wd-width-100">
@@ -2635,13 +2638,17 @@ class OptionsView_bwg extends AdminView_bwg {
2635
  </div>
2636
  <div class="wd-box-content wd-width-100">
2637
  <div class="wd-group">
2638
- <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
2639
- <div class="bwg-flex">
2640
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_1" value="thumbnail" <?php if ($row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_1');bwg_enable_disable('', 'for_album_image_title_show_hover_0', 'album_view_type_1');bwg_enable_disable('', 'album_image_title_show_hover_0', 'album_view_type_1');bwg_enable_disable('', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_1');" /><label for="album_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
2641
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_0" value="masonry" <?php if ($row->album_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_0');bwg_enable_disable('', 'for_album_image_title_show_hover_0', 'album_view_type_0');bwg_enable_disable('', 'album_image_title_show_hover_0', 'album_view_type_0');bwg_enable_disable('', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_0');" /><label for="album_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
2642
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_2" value="mosaic" <?php if ($row->album_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_resizable_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_mosaic_total_width', 'album_view_type_2');bwg_enable_disable('none', 'for_album_image_title_show_hover_0', 'album_view_type_2');bwg_enable_disable('none', 'album_image_title_show_hover_0', 'album_view_type_2');bwg_enable_disable('none', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_2');" /><label for="album_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
2643
- </div>
2644
- <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
 
 
 
 
2645
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2646
  </div>
2647
  </div>
@@ -2810,27 +2817,44 @@ class OptionsView_bwg extends AdminView_bwg {
2810
  </div>
2811
  <div class="wd-box-content wd-width-33">
2812
  <div class="wd-box-content wd-width-100">
2813
- <div class="wd-group">
2814
- <label class="wd-label" for="album_masonry_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2815
- <select name="album_masonry_sort_by" id="album_masonry_sort_by">
2816
- <option value="order" <?php if ($row->album_masonry_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
2817
- <option value="alt" <?php if ($row->album_masonry_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2818
- <option value="date" <?php if ($row->album_masonry_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2819
- <option value="filename" <?php if ($row->album_masonry_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2820
- <option value="size" <?php if ($row->album_masonry_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2821
- <option value="filetype" <?php if ($row->album_masonry_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2822
- <option value="resolution" <?php if ($row->album_masonry_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2823
- <option value="random" <?php if ($row->album_masonry_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2824
- </select>
2825
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
2826
- </div>
2827
- </div>
2828
- <div class="wd-box-content wd-width-100">
2829
- <div class="wd-group">
2830
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
2831
- <input type="radio" name="album_masonry_order_by" id="album_masonry_order_by_1" value="asc" <?php if ($row->album_masonry_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="album_masonry_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
2832
- <input type="radio" name="album_masonry_order_by" id="album_masonry_order_by_0" value="desc" <?php if ($row->album_masonry_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="album_masonry_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
2833
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2834
  </div>
2835
  </div>
2836
  <div class="wd-box-content wd-width-100">
@@ -2987,7 +3011,7 @@ class OptionsView_bwg extends AdminView_bwg {
2987
  <p class="description"><?php _e('Set the maximum number of image columns in galleries. Note, that the parent container needs to be large enough to display all columns.', BWG()->prefix); ?></p>
2988
  </div>
2989
  </div>
2990
- <div class="wd-box-content wd-width-100">
2991
  <div class="wd-group">
2992
  <label class="wd-label" for="album_extended_image_thumb_width"><?php _e('Thumbnail dimensions', BWG()->prefix); ?></label>
2993
  <div class="bwg-flex">
@@ -3033,27 +3057,44 @@ class OptionsView_bwg extends AdminView_bwg {
3033
  </div>
3034
  <div class="wd-box-content wd-width-33">
3035
  <div class="wd-box-content wd-width-100">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3036
  <div class="wd-group">
3037
- <label class="wd-label" for="album_extended_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
3038
- <select name="album_extended_sort_by" id="album_extended_sort_by">
3039
- <option value="order" <?php if ($row->album_extended_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Order', BWG()->prefix); ?></option>
3040
- <option value="alt" <?php if ($row->album_extended_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
3041
- <option value="date" <?php if ($row->album_extended_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
3042
- <option value="filename" <?php if ($row->album_extended_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
3043
- <option value="size" <?php if ($row->album_extended_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
3044
- <option value="filetype" <?php if ($row->album_extended_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
3045
- <option value="resolution" <?php if ($row->album_extended_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
3046
- <option value="random" <?php if ($row->album_extended_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
3047
- </select>
3048
- <p class="description"><?php _e("Select the parameter based on which the gallery images will sorted, e.g. Title.", BWG()->prefix); ?></p>
3049
- </div>
3050
- </div>
3051
- <div class="wd-box-content wd-width-100">
3052
- <div class="wd-group">
3053
- <label class="wd-label"><?php _e('Order direction', BWG()->prefix); ?></label>
3054
- <input type="radio" name="album_extended_order_by" id="album_extended_order_by_1" value="asc" <?php if ($row->album_extended_order_by == 'asc') echo 'checked="checked"'; ?> /><label for="album_extended_order_by_1" class="wd-radio-label"><?php _e('Ascending', BWG()->prefix); ?></label>
3055
- <input type="radio" name="album_extended_order_by" id="album_extended_order_by_0" value="desc" <?php if ($row->album_extended_order_by == 'desc') echo 'checked="checked"'; ?> /><label for="album_extended_order_by_0" class="wd-radio-label"><?php _e('Descending', BWG()->prefix); ?></label>
3056
- <p class="description"><?php _e("Set the ordering direction for gallery images, ascending or descending.", BWG()->prefix); ?></p>
3057
  </div>
3058
  </div>
3059
  <div class="wd-box-content wd-width-100">
@@ -3136,13 +3177,17 @@ class OptionsView_bwg extends AdminView_bwg {
3136
  </div>
3137
  <div class="wd-box-content wd-width-100">
3138
  <div class="wd-group">
3139
- <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
3140
- <div class="bwg-flex">
3141
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_1" value="thumbnail" <?php if ($row->album_extended_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_1');bwg_enable_disable('', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_1');bwg_enable_disable('', 'album_extended_image_title_show_hover_0', 'album_extended_view_type_1');bwg_enable_disable('', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_1');" /><label for="album_extended_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
3142
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_0" value="masonry" <?php if ($row->album_extended_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_0');bwg_enable_disable('', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_0');bwg_enable_disable('', 'album_extended_image_title_show_hover_0', 'album_extended_view_type_0');bwg_enable_disable('', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_0');" /><label for="album_extended_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
3143
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_2" value="mosaic" <?php if ($row->album_extended_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_extended_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2');bwg_enable_disable('none', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_2');bwg_enable_disable('none', 'album_extended_image_title_show_hover_0', 'album_extended_view_type_2');bwg_enable_disable('none', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_2');" /><label for="album_extended_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
3144
- </div>
3145
- <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
 
 
 
 
3146
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
3147
  </div>
3148
  </div>
301
  </div>
302
  <p class="description"><?php _e('Generate or edit a shortcode.', BWG()->prefix); ?></p>
303
  </div>
304
+ <div class="wd-group">
305
+ <label class="wd-label"><?php _e('Developer mode', BWG()->prefix); ?></label>
306
+ <input type="radio" name="developer_mode" id="developer_mode_1" value="1" <?php if ($row->developer_mode) echo 'checked="checked"'; ?> /><label for="developer_mode_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
307
+ <input type="radio" name="developer_mode" id="developer_mode_0" value="0" <?php if (!$row->developer_mode) echo 'checked="checked"'; ?> /><label for="developer_mode_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
308
+ <p class="description"><?php _e('Do not use minified JS and CSS files. Enable this option if You need to debug JS or CSS issues.', BWG()->prefix); ?></p>
309
+ </div>
310
  </div>
311
  <?php
312
  if ( !BWG()->is_demo ) {
603
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_role" id="album_role_1" value="1" <?php if ($row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
604
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_role" id="album_role_0" value="0" <?php if (!$row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
605
  </div>
606
+ <p class="description"><?php _e('Enabling this option will restrict authors from modifying galleries groups created by other users.', BWG()->prefix); ?></p>
607
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
608
  </div>
609
  </div>
614
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="image_role" id="image_role_1" value="1" <?php if ($row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
615
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="image_role" id="image_role_0" value="0" <?php if (!$row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
616
  </div>
617
+ <p class="description"><?php _e('Enable this setting to restrict authors from modifying images added by other users.', BWG()->prefix); ?></p>
618
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
619
  </div>
620
  </div>
996
  bwg_enable_disable(<?php echo $row->masonry_image_enable_page == '2' ? "'', 'tr_masonry_load_more_image_count', 'masonry_image_enable_page_loadmore'" : "'none', 'tr_masonry_load_more_image_count', 'masonry_image_enable_page_" . ($row->masonry_image_enable_page == '0' ? 'no' : ($row->masonry_image_enable_page == '1' ? 'yes' : 'scroll_load')) . "'"; ?>);
997
  bwg_enable_disable(<?php echo $row->mosaic_image_enable_page == '2' ? "'', 'tr_mosaic_load_more_image_count', 'mosaic_image_enable_page_loadmore'" : "'none', 'tr_mosaic_load_more_image_count', 'mosaic_image_enable_page_" . ($row->mosaic_image_enable_page == '0' ? 'no' : ($row->mosaic_image_enable_page == '1' ? 'yes' : 'scroll_load')) . "'"; ?>);
998
  bwg_enable_disable(<?php echo $row->blog_style_enable_page == '2' ? "'', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_2'" : "'none', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_" . $row->blog_style_enable_page . "'"; ?>);
999
+ bwg_enable_disable(<?php echo $row->masonry == 'horizontal' ? "'none', 'bwg-vertical-block-masonry', 'masonry_1'" : "'', 'bwg-vertical-block-masonry', 'masonry_0'"; ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1000
  preview_watermark();
1001
  preview_built_in_watermark();
1002
  bwg_show_hide_roles();
1101
  <div class="wd-box-content wd-width-33">
1102
  <div class="wd-box-content wd-width-100">
1103
  <div class="wd-group">
1104
+ <div class="wd-width-65">
1105
+ <label class="wd-label" for="sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1106
+ <select name="sort_by" id="sort_by">
1107
+ <option value="order" <?php if ($row->sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
1108
+ <option value="alt" <?php if ($row->sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1109
+ <option value="date" <?php if ($row->sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1110
+ <option value="filename" <?php if ($row->sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1111
+ <option value="size" <?php if ($row->sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
1112
+ <option value="filetype" <?php if ($row->sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
1113
+ <option value="resolution" <?php if ($row->sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1114
+ <option value="random" <?php if ($row->sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1115
+ </select>
1116
+ </div>
1117
+ <div class="wd-width-30">
1118
+ <select name="order_by" id="order_by">
1119
+ <option value="asc" <?php if ($row->order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
1120
+ <option value="desc" <?php if ($row->order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
1121
+ </select>
1122
+ </div>
1123
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
1124
  </div>
1125
  </div>
1126
  <div class="wd-box-content wd-width-100">
1320
  <div class="wd-box-content wd-width-100">
1321
  <div class="wd-group">
1322
  <label class="wd-label" for="masonry_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1323
+ <div class="wd-width-65">
1324
+ <select name="masonry_sort_by" id="masonry_sort_by">
1325
+ <option value="order" <?php if ($row->masonry_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
1326
  <option value="alt" <?php if ($row->masonry_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1327
  <option value="date" <?php if ($row->masonry_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1328
  <option value="filename" <?php if ($row->masonry_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1331
  <option value="resolution" <?php if ($row->masonry_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1332
  <option value="random" <?php if ($row->masonry_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1333
  </select>
1334
+ </div>
1335
+ <div class="wd-width-30">
1336
+ <select name="masonry_order_by" id="masonry_order_by">
1337
+ <option value="asc" <?php if ($row->masonry_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
1338
+ <option value="desc" <?php if ($row->masonry_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
1339
+ </select>
1340
+ </div>
1341
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
 
1342
  </div>
1343
  </div>
1344
  <div class="wd-box-content wd-width-100">
1556
  <div class="wd-box-content wd-width-100">
1557
  <div class="wd-group">
1558
  <label class="wd-label" for="mosaic_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1559
+ <div class="wd-width-65">
1560
  <select name="mosaic_sort_by" id="mosaic_sort_by">
1561
+ <option value="order" <?php if ($row->mosaic_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
1562
  <option value="alt" <?php if ($row->mosaic_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1563
  <option value="date" <?php if ($row->mosaic_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1564
  <option value="filename" <?php if ($row->mosaic_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1567
  <option value="resolution" <?php if ($row->mosaic_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1568
  <option value="random" <?php if ($row->mosaic_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1569
  </select>
1570
+ </div>
1571
+ <div class="wd-width-30">
1572
+ <select name="mosaic_order_by" id="mosaic_order_by">
1573
+ <option value="asc" <?php if ($row->mosaic_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
1574
+ <option value="desc" <?php if ($row->mosaic_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
1575
+ </select>
1576
+ </div>
1577
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
 
1578
  </div>
1579
  </div>
1580
  <div class="wd-box-content wd-width-100">
1753
  <div class="wd-box-content wd-width-100">
1754
  <div class="wd-group">
1755
  <label class="wd-label" for="slideshow_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1756
+ <div class="wd-width-65">
1757
+ <select name="slideshow_sort_by" id="slideshow_sort_by">
1758
+ <option value="order" <?php if ($row->slideshow_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
1759
+ <option value="alt" <?php if ($row->slideshow_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
1760
+ <option value="date" <?php if ($row->slideshow_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
1761
+ <option value="filename" <?php if ($row->slideshow_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
1762
+ <option value="size" <?php if ($row->slideshow_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
1763
+ <option value="filetype" <?php if ($row->slideshow_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
1764
+ <option value="resolution" <?php if ($row->slideshow_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
1765
+ <option value="random" <?php if ($row->slideshow_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
1766
+ </select>
1767
+ </div>
1768
+ <div class="wd-width-30">
1769
+ <select name="slideshow_order_by" id="slideshow_order_by">
1770
+ <option value="asc" <?php if ($row->slideshow_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
1771
+ <option value="desc" <?php if ($row->slideshow_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
1772
+ </select>
1773
+ </div>
1774
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
1775
  </div>
1776
  </div>
1777
  <div class="wd-box-content wd-width-100">
1993
  <div class="wd-box-content wd-width-100">
1994
  <div class="wd-group">
1995
  <label class="wd-label" for="image_browser_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
1996
+ <div class="wd-width-65">
1997
+ <select name="image_browser_sort_by" id="image_browser_sort_by">
1998
+ <option value="order" <?php if ($row->image_browser_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
1999
  <option value="alt" <?php if ($row->image_browser_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2000
  <option value="date" <?php if ($row->image_browser_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2001
  <option value="filename" <?php if ($row->image_browser_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2004
  <option value="resolution" <?php if ($row->image_browser_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2005
  <option value="random" <?php if ($row->image_browser_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2006
  </select>
2007
+ </div>
2008
+ <div class="wd-width-30">
2009
+ <select name="image_browser_order_by" id="image_browser_order_by">
2010
+ <option value="asc" <?php if ($row->image_browser_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2011
+ <option value="desc" <?php if ($row->image_browser_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2012
+ </select>
2013
+ </div>
2014
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
 
2015
  </div>
2016
  </div>
2017
  <div class="wd-box-content wd-width-100">
2152
  <div class="wd-box-content wd-width-100">
2153
  <div class="wd-group">
2154
  <label class="wd-label" for="blog_style_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2155
+ <div class="wd-width-65">
2156
+ <select name="blog_style_sort_by" id="blog_style_sort_by">
2157
+ <option value="order" <?php if ($row->blog_style_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2158
+ <option value="alt" <?php if ($row->blog_style_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2159
+ <option value="date" <?php if ($row->blog_style_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2160
+ <option value="filename" <?php if ($row->blog_style_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2161
+ <option value="size" <?php if ($row->blog_style_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2162
+ <option value="filetype" <?php if ($row->blog_style_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2163
+ <option value="resolution" <?php if ($row->blog_style_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2164
+ <option value="random" <?php if ($row->blog_style_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2165
+ </select>
2166
+ </div>
2167
+ <div class="wd-width-30">
2168
+ <select name="blog_style_order_by" id="blog_style_order_by">
2169
+ <option value="asc" <?php if ($row->blog_style_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2170
+ <option value="desc" <?php if ($row->blog_style_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2171
+ </select>
2172
+ </div>
2173
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2174
  </div>
2175
  </div>
2176
  <div class="wd-box-content wd-width-100">
2329
  <div class="wd-box-content wd-width-100">
2330
  <div class="wd-group">
2331
  <label class="wd-label" for="carousel_sort_by"><?php _e('Order by', BWG()->prefix); ?></label>
2332
+ <div class="wd-width-65">
2333
+ <select name="carousel_sort_by" id="carousel_sort_by">
2334
+ <option value="order" <?php if ($row->carousel_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2335
+ <option value="alt" <?php if ($row->carousel_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2336
+ <option value="date" <?php if ($row->carousel_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2337
+ <option value="filename" <?php if ($row->carousel_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2338
+ <option value="size" <?php if ($row->carousel_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2339
+ <option value="filetype" <?php if ($row->carousel_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2340
+ <option value="resolution" <?php if ($row->carousel_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2341
+ <option value="random" <?php if ($row->carousel_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2342
+ </select>
2343
+ </div>
2344
+ <div class="wd-width-30">
2345
+ <select name="carousel_order_by" id="carousel_order_by">
2346
+ <option value="asc" <?php if ($row->carousel_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2347
+ <option value="desc" <?php if ($row->carousel_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2348
+ </select>
2349
+ </div>
2350
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2351
  </div>
2352
  </div>
2353
  <div class="wd-box-content wd-width-100">
2471
  <p class="description"><?php _e('Set the maximum number of image columns in galleries. Note, that the parent container needs to be large enough to display all columns.', BWG()->prefix); ?></p>
2472
  </div>
2473
  </div>
2474
+ <div class="wd-box-content wd-width-100" id="tr_album_thumbnail_dimensions">
2475
  <div class="wd-group">
2476
  <label class="wd-label" for="album_image_thumb_width"><?php _e('Thumbnail dimensions', BWG()->prefix); ?></label>
2477
  <div class="bwg-flex">
2481
  <p class="description"><?php _e('The default dimensions of thumbnails which will display on published galleries.', BWG()->prefix); ?></p>
2482
  </div>
2483
  </div>
2484
+ <div class="wd-box-content wd-width-100" id="tr_album_pagination">
2485
  <div class="wd-group">
2486
  <label class="wd-label"><?php _e('Pagination', BWG()->prefix); ?></label>
2487
  <div class="bwg-flex">
2517
  </div>
2518
  <div class="wd-box-content wd-width-33">
2519
  <div class="wd-box-content wd-width-100">
2520
+ <div class="wd-group">
2521
+ <label class="wd-label" for="compact_album_sort_by"><?php _e('Order Gallery group by', BWG()->prefix); ?></label>
2522
+ <div class="wd-width-65">
2523
+ <select name="compact_album_sort_by" id="compact_album_sort_by">
2524
+ <option value="order" <?php if ($row->compact_album_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2525
+ <option value="name" <?php if ($row->compact_album_sort_by == 'name') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2526
+ <option value="random" <?php if ($row->compact_album_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2527
+ </select>
2528
+ </div>
2529
+ <div class="wd-width-30">
2530
+ <select name="compact_album_order_by" id="compact_album_order_by">
2531
+ <option value="asc" <?php if ($row->compact_album_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2532
+ <option value="desc" <?php if ($row->compact_album_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2533
+ </select>
2534
+ </div>
2535
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery group images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2536
+ </div>
2537
+ <div class="wd-group">
2538
+ <label class="wd-label" for="album_sort_by"><?php _e('Order images by', BWG()->prefix); ?></label>
2539
+ <div class="wd-width-65">
2540
+ <select name="album_sort_by" id="album_sort_by">
2541
+ <option value="order" <?php if ($row->album_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2542
+ <option value="alt" <?php if ($row->album_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2543
+ <option value="date" <?php if ($row->album_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2544
+ <option value="filename" <?php if ($row->album_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2545
+ <option value="size" <?php if ($row->album_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2546
+ <option value="filetype" <?php if ($row->album_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2547
+ <option value="resolution" <?php if ($row->album_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2548
+ <option value="random" <?php if ($row->album_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2549
+ </select>
2550
+ </div>
2551
+ <div class="wd-width-30">
2552
+ <select name="album_order_by" id="album_order_by">
2553
+ <option value="asc" <?php if ($row->album_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2554
+ <option value="desc" <?php if ($row->album_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2555
+ </select>
2556
+ </div>
2557
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2558
  </div>
2559
  </div>
2560
  <div class="wd-box-content wd-width-100">
2638
  </div>
2639
  <div class="wd-box-content wd-width-100">
2640
  <div class="wd-group">
2641
+ <label class="wd-label" for="album_view_type"><?php _e('Gallery view type', BWG()->prefix); ?></label>
2642
+ <select name="album_view_type" id="album_view_type" <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?>>
2643
+ <option value="thumbnail" <?php if ($row->album_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', BWG()->prefix); ?></option>
2644
+ <option value="masonry" <?php if ($row->album_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', BWG()->prefix); ?></option>
2645
+ <option value="mosaic" <?php if ($row->album_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', BWG()->prefix); ?></option>
2646
+ <option value="slideshow" <?php if ($row->album_view_type == 'slideshow') echo 'selected="selected"'; ?>><?php _e('Slideshow', BWG()->prefix); ?></option>
2647
+ <option value="image_browser" <?php if ($row->album_view_type == 'image_browser') echo 'selected="selected"'; ?>><?php _e('Image Browser', BWG()->prefix); ?></option>
2648
+ <option value="blog_style" <?php if ($row->album_view_type == 'blog_style') echo 'selected="selected"'; ?>><?php _e('Blog Style', BWG()->prefix); ?></option>
2649
+ <option value="carousel" <?php if ($row->album_view_type == 'carousel') echo 'selected="selected"'; ?>><?php _e('Carousel', BWG()->prefix); ?></option>
2650
+ </select>
2651
+ <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', BWG()->prefix); ?></p>
2652
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2653
  </div>
2654
  </div>
2817
  </div>
2818
  <div class="wd-box-content wd-width-33">
2819
  <div class="wd-box-content wd-width-100">
2820
+ <div class="wd-group">
2821
+ <label class="wd-label" for="masonry_album_sort_by"><?php _e('Order Gallery group by', BWG()->prefix); ?></label>
2822
+ <div class="wd-width-65">
2823
+ <select name="masonry_album_sort_by" id="masonry_album_sort_by">
2824
+ <option value="order" <?php if ($row->masonry_album_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2825
+ <option value="name" <?php if ($row->masonry_album_sort_by == 'name') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2826
+ <option value="random" <?php if ($row->masonry_album_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2827
+ </select>
2828
+ </div>
2829
+ <div class="wd-width-30">
2830
+ <select name="masonry_album_order_by" id="masonry_album_order_by">
2831
+ <option value="asc" <?php if ($row->masonry_album_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2832
+ <option value="desc" <?php if ($row->masonry_album_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2833
+ </select>
2834
+ </div>
2835
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery group images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2836
+ </div>
2837
+ <div class="wd-group">
2838
+ <label class="wd-label" for="album_masonry_sort_by"><?php _e('Order images by', BWG()->prefix); ?></label>
2839
+ <div class="wd-width-65">
2840
+ <select name="album_masonry_sort_by" id="album_masonry_sort_by">
2841
+ <option value="order" <?php if ($row->album_masonry_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
2842
+ <option value="alt" <?php if ($row->album_masonry_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
2843
+ <option value="date" <?php if ($row->album_masonry_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
2844
+ <option value="filename" <?php if ($row->album_masonry_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
2845
+ <option value="size" <?php if ($row->album_masonry_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
2846
+ <option value="filetype" <?php if ($row->album_masonry_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
2847
+ <option value="resolution" <?php if ($row->album_masonry_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
2848
+ <option value="random" <?php if ($row->album_masonry_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
2849
+ </select>
2850
+ </div>
2851
+ <div class="wd-width-30">
2852
+ <select name="album_masonry_order_by" id="album_masonry_order_by">
2853
+ <option value="asc" <?php if ($row->album_masonry_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
2854
+ <option value="desc" <?php if ($row->album_masonry_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
2855
+ </select>
2856
+ </div>
2857
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
2858
  </div>
2859
  </div>
2860
  <div class="wd-box-content wd-width-100">
3011
  <p class="description"><?php _e('Set the maximum number of image columns in galleries. Note, that the parent container needs to be large enough to display all columns.', BWG()->prefix); ?></p>
3012
  </div>
3013
  </div>
3014
+ <div class="wd-box-content wd-width-100" id="tr_album_extended_thumbnail_dimensions">
3015
  <div class="wd-group">
3016
  <label class="wd-label" for="album_extended_image_thumb_width"><?php _e('Thumbnail dimensions', BWG()->prefix); ?></label>
3017
  <div class="bwg-flex">
3057
  </div>
3058
  <div class="wd-box-content wd-width-33">
3059
  <div class="wd-box-content wd-width-100">
3060
+ <div class="wd-group">
3061
+ <label class="wd-label" for="extended_album_sort_by"><?php _e('Order Gallery group by', BWG()->prefix); ?></label>
3062
+ <div class="wd-width-65">
3063
+ <select name="extended_album_sort_by" id="extended_album_sort_by">
3064
+ <option value="order" <?php if ($row->extended_album_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
3065
+ <option value="name" <?php if ($row->extended_album_sort_by == 'name') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
3066
+ <option value="random" <?php if ($row->extended_album_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
3067
+ </select>
3068
+ </div>
3069
+ <div class="wd-width-30">
3070
+ <select name="extended_album_order_by" id="extended_album_order_by">
3071
+ <option value="asc" <?php if ($row->extended_album_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
3072
+ <option value="desc" <?php if ($row->extended_album_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
3073
+ </select>
3074
+ </div>
3075
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery group images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
3076
+ </div>
3077
  <div class="wd-group">
3078
+ <div class="wd-width-65">
3079
+ <label class="wd-label" for="album_extended_sort_by"><?php _e('Order images by', BWG()->prefix); ?></label>
3080
+ <select name="album_extended_sort_by" id="album_extended_sort_by">
3081
+ <option value="order" <?php if ($row->album_extended_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', BWG()->prefix); ?></option>
3082
+ <option value="alt" <?php if ($row->album_extended_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', BWG()->prefix); ?></option>
3083
+ <option value="date" <?php if ($row->album_extended_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', BWG()->prefix); ?></option>
3084
+ <option value="filename" <?php if ($row->album_extended_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', BWG()->prefix); ?></option>
3085
+ <option value="size" <?php if ($row->album_extended_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', BWG()->prefix); ?></option>
3086
+ <option value="filetype" <?php if ($row->album_extended_sort_by == 'filetype') echo 'selected="selected"'; ?>><?php _e('Type', BWG()->prefix); ?></option>
3087
+ <option value="resolution" <?php if ($row->album_extended_sort_by == 'resolution') echo 'selected="selected"'; ?>><?php _e('Resolution', BWG()->prefix); ?></option>
3088
+ <option value="random" <?php if ($row->album_extended_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', BWG()->prefix); ?></option>
3089
+ </select>
3090
+ </div>
3091
+ <div class="wd-width-30">
3092
+ <select name="album_extended_order_by" id="album_extended_order_by">
3093
+ <option value="asc" <?php if ($row->album_extended_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', BWG()->prefix); ?></option>
3094
+ <option value="desc" <?php if ($row->album_extended_order_by == 'desc') echo 'selected="selected"'; ?>><?php _e('Descending', BWG()->prefix); ?></option>
3095
+ </select>
3096
+ </div>
3097
+ <p class="description"><?php _e("Select the parameter and order direction to sort the gallery images with. E.g. Title and Ascending.", BWG()->prefix); ?></p>
3098
  </div>
3099
  </div>
3100
  <div class="wd-box-content wd-width-100">
3177
  </div>
3178
  <div class="wd-box-content wd-width-100">
3179
  <div class="wd-group">
3180
+ <label class="wd-label" for="album_extended_view_type"><?php _e('Gallery view type', BWG()->prefix); ?></label>
3181
+ <select name="album_extended_view_type" id="album_extended_view_type" <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?>>
3182
+ <option value="thumbnail" <?php if ($row->album_extended_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', BWG()->prefix); ?></option>
3183
+ <option value="masonry" <?php if ($row->album_extended_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', BWG()->prefix); ?></option>
3184
+ <option value="mosaic" <?php if ($row->album_extended_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', BWG()->prefix); ?></option>
3185
+ <option value="slideshow" <?php if ($row->album_extended_view_type == 'slideshow') echo 'selected="selected"'; ?>><?php _e('Slideshow', BWG()->prefix); ?></option>
3186
+ <option value="image_browser" <?php if ($row->album_extended_view_type == 'image_browser') echo 'selected="selected"'; ?>><?php _e('Image Browser', BWG()->prefix); ?></option>
3187
+ <option value="blog_style" <?php if ($row->album_extended_view_type == 'blog_style') echo 'selected="selected"'; ?>><?php _e('Blog Style', BWG()->prefix); ?></option>
3188
+ <option value="carousel" <?php if ($row->album_extended_view_type == 'carousel') echo 'selected="selected"'; ?>><?php _e('Carousel', BWG()->prefix); ?></option>
3189
+ </select>
3190
+ <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', BWG()->prefix); ?></p>
3191
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
3192
  </div>
3193
  </div>
admin/views/Shortcode.php CHANGED
@@ -50,7 +50,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
50
  <input type="hidden" id="currrent_id" name="currrent_id" value="" />
51
  <input type="hidden" id="title" name="title" value="" />
52
  <input type="hidden" id="bwg_insert" name="bwg_insert" value="" />
53
- <div>
54
  <div class="bwg_tabs meta-box-sortables">
55
  <ul class="bwg-tabs">
56
  <li class="tabs">
@@ -610,12 +610,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
610
  jQuery("#images_per_page").val(short_code['images_per_page']);
611
  jQuery("#load_more_image_count").val(short_code['load_more_image_count']);
612
  jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
613
- if (short_code['order_by'] == 'asc') {
614
- jQuery("#order_by_1").attr('checked', 'checked');
615
- }
616
- else {
617
- jQuery("#order_by_0").attr('checked', 'checked');
618
- }
619
  if (short_code['show_search_box'] == 1) {
620
  jQuery("#show_search_box_1").attr('checked', 'checked');
621
  }
@@ -729,12 +724,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
729
  jQuery("#masonry_images_per_page").val(short_code['images_per_page']);
730
  jQuery("#masonry_load_more_image_count").val(short_code['load_more_image_count']);
731
  jQuery("select[id=masonry_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
732
- if (short_code['order_by'] == 'asc') {
733
- jQuery("#masonry_order_by_1").attr('checked', 'checked');
734
- }
735
- else {
736
- jQuery("#masonry_order_by_0").attr('checked', 'checked');
737
- }
738
  if (short_code['show_search_box'] == 1) {
739
  jQuery("#masonry_show_search_box_1").attr('checked', 'checked');
740
  }
@@ -825,12 +815,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
825
  jQuery("#mosaic_images_per_page").val(short_code['images_per_page']);
826
  jQuery("#mosaic_load_more_image_count").val(short_code['load_more_image_count']);
827
  jQuery("select[id=mosaic_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
828
- if (short_code['order_by'] == 'asc') {
829
- jQuery("#mosaic_order_by_1").attr('checked', 'checked');
830
- }
831
- else {
832
- jQuery("#mosaic_order_by_0").attr('checked', 'checked');
833
- }
834
  if (short_code['show_search_box'] == 1) {
835
  jQuery("#mosaic_show_search_box_1").attr('checked', 'checked');
836
  }
@@ -902,12 +887,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
902
  jQuery("#slideshow_width").val(short_code['slideshow_width']);
903
  jQuery("#slideshow_height").val(short_code['slideshow_height']);
904
  jQuery("select[id=slideshow_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
905
- if (short_code['order_by'] == 'asc') {
906
- jQuery("#slideshow_order_by_1").attr('checked', 'checked');
907
- }
908
- else {
909
- jQuery("#slideshow_order_by_0").attr('checked', 'checked');
910
- }
911
  if (short_code['enable_slideshow_autoplay'] == 1) {
912
  jQuery("#slideshow_enable_autoplay_yes").attr('checked', 'checked');
913
  }
@@ -989,12 +969,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
989
  jQuery("#image_browser_description_enable_" + short_code['image_browser_description_enable']).attr('checked', 'checked');
990
  }
991
  jQuery("select[id=image_browser_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
992
- if (short_code['order_by'] == 'asc') {
993
- jQuery("#image_browser_order_by_1").attr('checked', 'checked');
994
- }
995
- else {
996
- jQuery("#image_browser_order_by_0").attr('checked', 'checked');
997
- }
998
  if (short_code['showthumbs_name'] == 1) {
999
  jQuery("#image_browser_thumb_name_yes").attr('checked', 'checked');
1000
  }
@@ -1063,13 +1038,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
1063
  jQuery("#blog_style_description_enable_0").attr('checked', 'checked');
1064
  }
1065
  jQuery("select[id=blog_style_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1066
- if (short_code['order_by'] == 'asc') {
1067
- jQuery("#blog_style_order_by_1").attr('checked', 'checked');
1068
- }
1069
- else {
1070
- jQuery("#blog_style_order_by_0").attr('checked', 'checked');
1071
- }
1072
- if (short_code['showthumbs_name'] == 1) {
1073
  jQuery("#blog_style_thumb_name_yes").attr('checked', 'checked');
1074
  }
1075
  else {
@@ -1151,12 +1121,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1151
  jQuery("#carousel_play_pause_butt_no").attr('checked', 'checked');
1152
  }
1153
  jQuery("select[id=carousel_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1154
- if (short_code['order_by'] == 'asc') {
1155
- jQuery("#carousel_order_by_1").attr('checked', 'checked');
1156
- }
1157
- else {
1158
- jQuery("#carousel_order_by_0").attr('checked', 'checked');
1159
- }
1160
  if (short_code['gallery_download'] == 1) {
1161
  jQuery("#carousel_gallery_download_1").attr('checked', 'checked');
1162
  }
@@ -1177,13 +1142,11 @@ class ShortcodeView_bwg extends AdminView_bwg {
1177
  }
1178
  jQuery("#albums_per_page").val(short_code['compuct_albums_per_page']);
1179
  jQuery("#album_images_per_page").val(short_code['compuct_album_images_per_page']);
1180
- jQuery("select[id=album_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1181
- if (short_code['order_by'] == 'asc') {
1182
- jQuery("#album_order_by_1").attr('checked', 'checked');
1183
- }
1184
- else {
1185
- jQuery("#album_order_by_0").attr('checked', 'checked');
1186
- }
1187
  if (short_code['show_search_box'] == 1) {
1188
  jQuery("#album_show_search_box_1").attr('checked', 'checked');
1189
  }
@@ -1221,21 +1184,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
1221
  jQuery("#album_show_gallery_description_0").attr('checked', 'checked');
1222
  }
1223
  jQuery("input[name=album_title_show_hover][value=" + short_code['compuct_album_title'] + "]").attr('checked', 'checked');
1224
- if (short_code['compuct_album_view_type'] == 'thumbnail') {
1225
- jQuery("#album_view_type_1").attr('checked', 'checked');
1226
- jQuery("#for_album_image_title_show_hover_0").show();
1227
- jQuery("#for_album_ecommerce_icon_show_hover_0").show();
1228
- }
1229
- else if (short_code['compuct_album_view_type'] == 'masonry') {
1230
- jQuery("#album_view_type_0").attr('checked', 'checked');
1231
- jQuery("#for_album_image_title_show_hover_0").show();
1232
- jQuery("#for_album_ecommerce_icon_show_hover_0").show();
1233
- }
1234
- else {
1235
- jQuery("#album_view_type_2").attr('checked', 'checked');
1236
- jQuery("#for_album_image_title_show_hover_0").hide();
1237
- jQuery("#for_album_ecommerce_icon_show_hover_0").hide();
1238
- }
1239
  jQuery("input[name='album_image_title_show_hover'][value='" + short_code['compuct_album_image_title'] + "']").attr('checked', 'checked');
1240
  if (short_code['compuct_album_mosaic_hor_ver'] == "vertical") {
1241
  jQuery("#album_mosaic_0").attr('checked', 'checked');
@@ -1283,13 +1233,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
1283
  }
1284
  jQuery("#albums_masonry_per_page").val(short_code['masonry_albums_per_page']);
1285
  jQuery("#album_masonry_images_per_page").val(short_code['masonry_album_images_per_page']);
 
 
1286
  jQuery("select[id=album_masonry_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1287
- if (short_code['order_by'] == 'asc') {
1288
- jQuery("#album_masonry_order_by_1").attr('checked', 'checked');
1289
- }
1290
- else {
1291
- jQuery("#album_masonry_order_by_0").attr('checked', 'checked');
1292
- }
1293
  if (short_code['show_search_box'] == 1) {
1294
  jQuery("#album_masonry_show_search_box_1").attr('checked', 'checked');
1295
  }
@@ -1354,13 +1301,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
1354
  }
1355
  jQuery("#albums_extended_per_page").val(short_code['extended_albums_per_page']);
1356
  jQuery("#album_extended_images_per_page").val(short_code['extended_album_images_per_page']);
 
 
1357
  jQuery("select[id=album_extended_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1358
- if (short_code['order_by'] == 'asc') {
1359
- jQuery("#album_extended_order_by_1").attr('checked', 'checked');
1360
- }
1361
- else {
1362
- jQuery("#album_extended_order_by_0").attr('checked', 'checked');
1363
- }
1364
  if (short_code['show_search_box'] == 1) {
1365
  jQuery("#album_extended_show_search_box_1").attr('checked', 'checked');
1366
  }
@@ -1403,21 +1347,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
1403
  else {
1404
  jQuery("#album_extended_show_gallery_description_0").attr('checked', 'checked');
1405
  }
1406
- if (short_code['extended_album_view_type'] == 'thumbnail') {
1407
- jQuery("#album_extended_view_type_1").attr('checked', 'checked');
1408
- jQuery("#for_album_extended_image_title_show_hover_0").show();
1409
- jQuery("#for_album_extended_ecommerce_icon_show_hover_0").show();
1410
- }
1411
- else if (short_code['extended_album_view_type'] == 'masonry') {
1412
- jQuery("#album_extended_view_type_0").attr('checked', 'checked');
1413
- jQuery("#for_album_extended_image_title_show_hover_0").show();
1414
- jQuery("#for_album_extended_ecommerce_icon_show_hover_0").show();
1415
- }
1416
- else {
1417
- jQuery("#album_extended_view_type_2").attr('checked', 'checked');
1418
- jQuery("#for_album_extended_image_title_show_hover_0").hide();
1419
- jQuery("#for_album_extended_ecommerce_icon_show_hover_0").hide();
1420
- }
1421
  jQuery("input[name='album_extended_image_title_show_hover'][value='" + short_code['extended_album_image_title'] + "']").attr('checked', 'checked');
1422
  if (short_code['extended_album_mosaic_hor_ver'] == "vertical") {
1423
  jQuery("#album_extended_mosaic_0").attr('checked', 'checked');
@@ -1788,7 +1719,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1788
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1789
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1790
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
1791
-
1792
  tagtext += ' thumb_width="' + jQuery("#thumb_width").val() + '"';
1793
  tagtext += ' thumb_height="' + jQuery("#thumb_height").val() + '"';
1794
  tagtext += ' image_column_number="' + jQuery("#image_column_number").val() + '"';
@@ -1796,7 +1726,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1796
  tagtext += ' images_per_page="' + jQuery("#images_per_page").val() + '"';
1797
  tagtext += ' load_more_image_count="' + jQuery("#load_more_image_count").val() + '"';
1798
  tagtext += ' sort_by="' + jQuery("#sort_by").val() + '"';
1799
- tagtext += ' order_by="' + jQuery("input[name=order_by]:checked").val() + '"';
1800
  tagtext += ' show_search_box="' + jQuery("input[name=show_search_box]:checked").val() + '"';
1801
  tagtext += ' placeholder="' + jQuery("#placeholder").val() + '"';
1802
  tagtext += ' search_box_width="' + jQuery("#search_box_width").val() + '"';
@@ -1814,7 +1744,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1814
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1815
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1816
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
1817
-
1818
  tagtext += ' masonry_hor_ver="' + jQuery("input[name=masonry]:checked").val() + '"';
1819
  tagtext += ' show_masonry_thumb_description="' + jQuery("input[name=show_masonry_thumb_description]:checked").val() + '"';
1820
  tagtext += ' thumb_width="' + jQuery("#masonry_thumb_size").val() + '"';
@@ -1824,7 +1753,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1824
  tagtext += ' images_per_page="' + jQuery("#masonry_images_per_page").val() + '"';
1825
  tagtext += ' load_more_image_count="' + jQuery("#masonry_load_more_image_count").val() + '"';
1826
  tagtext += ' sort_by="' + jQuery("#masonry_sort_by").val() + '"';
1827
- tagtext += ' order_by="' + jQuery("input[name=masonry_order_by]:checked").val() + '"';
1828
  tagtext += ' show_search_box="' + jQuery("input[name=masonry_show_search_box]:checked").val() + '"';
1829
  tagtext += ' placeholder="' + jQuery("#masonry_placeholder").val() + '"';
1830
  tagtext += ' search_box_width="' + jQuery("#masonry_search_box_width").val() + '"';
@@ -1832,7 +1761,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1832
  tagtext += ' show_tag_box="' + jQuery("input[name=masonry_show_tag_box]:checked").val() + '"';
1833
  tagtext += ' showthumbs_name="' + jQuery("input[name=masonry_show_gallery_title]:checked").val() + '"';
1834
  tagtext += ' image_title="' + jQuery("input[name=masonry_image_title]:checked").val() + '"';
1835
- tagtext += ' show_gallery_description="' + jQuery("input[name=masonry_show_gallery_description]:checked").val() + '"';
1836
  tagtext += ' play_icon="' + jQuery("input[name=masonry_play_icon]:checked").val() + '"';
1837
  tagtext += ' gallery_download="' + jQuery("input[name=masonry_gallery_download]:checked").val() + '"';
1838
  tagtext += ' ecommerce_icon="' + jQuery("input[name=masonry_ecommerce_icon_show_hover]:checked").val() + '"';
@@ -1842,7 +1771,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1842
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1843
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1844
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
1845
-
1846
  tagtext += ' mosaic_hor_ver="' + jQuery("input[name=mosaic]:checked").val() + '"';
1847
  tagtext += ' resizable_mosaic="' + jQuery("input[name=resizable_mosaic]:checked").val() + '"';
1848
  tagtext += ' mosaic_total_width="' + jQuery("#mosaic_total_width").val() + '"';
@@ -1852,7 +1780,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1852
  tagtext += ' images_per_page="' + jQuery("#mosaic_images_per_page").val() + '"';
1853
  tagtext += ' load_more_image_count="' + jQuery("#mosaic_load_more_image_count").val() + '"';
1854
  tagtext += ' sort_by="' + jQuery("#mosaic_sort_by").val() + '"';
1855
- tagtext += ' order_by="' + jQuery("input[name=mosaic_order_by]:checked").val() + '"';
1856
  tagtext += ' show_search_box="' + jQuery("input[name=mosaic_show_search_box]:checked").val() + '"';
1857
  tagtext += ' placeholder="' + jQuery("#mosaic_placeholder").val() + '"';
1858
  tagtext += ' search_box_width="' + jQuery("#mosaic_search_box_width").val() + '"';
@@ -1875,7 +1803,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1875
  tagtext += ' slideshow_width="' + jQuery("#slideshow_width").val() + '"';
1876
  tagtext += ' slideshow_height="' + jQuery("#slideshow_height").val() + '"';
1877
  tagtext += ' sort_by="' + jQuery("#slideshow_sort_by").val() + '"';
1878
- tagtext += ' order_by="' + jQuery("input[name=slideshow_order_by]:checked").val() + '"';
1879
  tagtext += ' enable_slideshow_autoplay="' + jQuery("input[name=slideshow_enable_autoplay]:checked").val() + '"';
1880
  tagtext += ' enable_slideshow_shuffle="' + jQuery("input[name=slideshow_enable_shuffle]:checked").val() + '"';
1881
  tagtext += ' enable_slideshow_ctrl="' + jQuery("input[name=slideshow_enable_ctrl]:checked").val() + '"';
@@ -1902,7 +1830,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1902
  tagtext += ' image_browser_title_enable="' + jQuery("input[name=image_browser_title_enable]:checked").val() + '"';
1903
  tagtext += ' image_browser_description_enable="' + jQuery("input[name=image_browser_description_enable]:checked").val() + '"';
1904
  tagtext += ' sort_by="' + jQuery("#image_browser_sort_by").val() + '"';
1905
- tagtext += ' order_by="' + jQuery("input[name=image_browser_order_by]:checked").val() + '"';
1906
  tagtext += ' showthumbs_name="' + jQuery("input[name=image_browser_show_gallery_title]:checked").val() + '"';
1907
  tagtext += ' show_gallery_description="' + jQuery("input[name=image_browser_show_gallery_description]:checked").val() + '"';
1908
  tagtext += ' show_search_box="' + jQuery("input[name=image_browser_show_search_box]:checked").val() + '"';
@@ -1917,7 +1845,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1917
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1918
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1919
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
1920
-
1921
  tagtext += ' blog_style_width="' + jQuery("#blog_style_width").val() + '"';
1922
  tagtext += ' blog_style_title_enable="' + jQuery("input[name=blog_style_title_enable]:checked").val() + '"';
1923
  tagtext += ' blog_style_images_per_page="' + jQuery("#blog_style_images_per_page").val() + '"';
@@ -1925,7 +1852,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1925
  tagtext += ' blog_style_enable_page="' + jQuery("input[name=blog_style_enable_page]:checked").val() + '"';
1926
  tagtext += ' blog_style_description_enable="' + jQuery("input[name=blog_style_description_enable]:checked").val() + '"';
1927
  tagtext += ' sort_by="' + jQuery("#blog_style_sort_by").val() + '"';
1928
- tagtext += ' order_by="' + jQuery("input[name=blog_style_order_by]:checked").val() + '"';
1929
  tagtext += ' showthumbs_name="' + jQuery("input[name=blog_style_show_gallery_title]:checked").val() + '"';
1930
  tagtext += ' show_gallery_description="' + jQuery("input[name=blog_style_show_gallery_description]:checked").val() + '"';
1931
  tagtext += ' show_search_box="' + jQuery("input[name=blog_style_show_search_box]:checked").val() + '"';
@@ -1940,7 +1867,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1940
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1941
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1942
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
1943
-
1944
  tagtext += ' carousel_interval="' + jQuery("#carousel_interval").val() + '"';
1945
  tagtext += ' carousel_width="' + jQuery("#carousel_width").val() + '"';
1946
  tagtext += ' carousel_height="' + jQuery("#carousel_height").val() + '"';
@@ -1953,7 +1879,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1953
  tagtext += ' carousel_prev_next_butt="' + jQuery("input[name=carousel_prev_next_butt]:checked").val() + '"';
1954
  tagtext += ' carousel_play_pause_butt="' + jQuery("input[name=carousel_play_pause_butt]:checked").val() + '"';
1955
  tagtext += ' sort_by="' + jQuery("#carousel_sort_by").val() + '"';
1956
- tagtext += ' order_by="' + jQuery("input[name=carousel_order_by]:checked").val() + '"';
1957
  tagtext += ' gallery_download="' + jQuery("input[name=carousel_gallery_download]:checked").val() + '"';
1958
  break;
1959
  }
@@ -1970,8 +1896,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
1970
  tagtext += ' compuct_album_enable_page="' + jQuery("input[name=album_enable_page]:checked").val() + '"';
1971
  tagtext += ' compuct_albums_per_page="' + jQuery("#albums_per_page").val() + '"';
1972
  tagtext += ' compuct_album_images_per_page="' + jQuery("#album_images_per_page").val() + '"';
1973
- tagtext += ' sort_by="' + jQuery("#album_sort_by").val() + '"';
1974
- tagtext += ' order_by="' + jQuery("input[name=album_order_by]:checked").val() + '"';
 
 
1975
  tagtext += ' show_search_box="' + jQuery("input[name=album_show_search_box]:checked").val() + '"';
1976
  tagtext += ' placeholder="' + jQuery("#album_placeholder").val() + '"';
1977
  tagtext += ' search_box_width="' + jQuery("#album_search_box_width").val() + '"';
@@ -1980,7 +1908,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1980
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
1981
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_show_gallery_description]:checked").val() + '"';
1982
  tagtext += ' compuct_album_title="' + jQuery("input[name=album_title_show_hover]:checked").val() + '"';
1983
- tagtext += ' compuct_album_view_type="' + jQuery("input[name=album_view_type]:checked").val() + '"';
1984
  tagtext += ' compuct_album_image_title="' + jQuery("input[name=album_image_title_show_hover]:checked").val() + '"';
1985
  tagtext += ' compuct_album_mosaic_hor_ver="' + jQuery("input[name=album_mosaic]:checked").val() + '"';
1986
  tagtext += ' compuct_album_resizable_mosaic="' + jQuery("input[name=album_resizable_mosaic]:checked").val() + '"';
@@ -1993,7 +1921,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
1993
  case 'album_masonry_preview' : {
1994
  title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
1995
  tagtext += ' album_id="' + jQuery("#album").val() + '"';
1996
-
1997
  tagtext += ' masonry_album_column_number="' + jQuery("#album_masonry_column_number").val() + '"';
1998
  tagtext += ' masonry_album_thumb_width="' + jQuery("#album_masonry_thumb_width").val() + '"';
1999
  tagtext += ' masonry_album_image_column_number="' + jQuery("#album_masonry_image_column_number").val() + '"';
@@ -2001,8 +1928,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
2001
  tagtext += ' masonry_album_enable_page="' + jQuery("input[name=album_masonry_enable_page]:checked").val() + '"';
2002
  tagtext += ' masonry_albums_per_page="' + jQuery("#albums_masonry_per_page").val() + '"';
2003
  tagtext += ' masonry_album_images_per_page="' + jQuery("#album_masonry_images_per_page").val() + '"';
2004
- tagtext += ' sort_by="' + jQuery("#album_masonry_sort_by").val() + '"';
2005
- tagtext += ' order_by="' + jQuery("input[name=album_masonry_order_by]:checked").val() + '"';
 
 
2006
  tagtext += ' show_search_box="' + jQuery("input[name=album_masonry_show_search_box]:checked").val() + '"';
2007
  tagtext += ' placeholder="' + jQuery("#album_masonry_placeholder").val() + '"';
2008
  tagtext += ' search_box_width="' + jQuery("#album_masonry_search_box_width").val() + '"';
@@ -2028,17 +1957,19 @@ class ShortcodeView_bwg extends AdminView_bwg {
2028
  tagtext += ' extended_album_enable_page="' + jQuery("input[name=album_extended_enable_page]:checked").val() + '"';
2029
  tagtext += ' extended_albums_per_page="' + jQuery("#albums_extended_per_page").val() + '"';
2030
  tagtext += ' extended_album_images_per_page="' + jQuery("#album_extended_images_per_page").val() + '"';
2031
- tagtext += ' sort_by="' + jQuery("#album_extended_sort_by").val() + '"';
2032
- tagtext += ' order_by="' + jQuery("input[name=album_extended_order_by]:checked").val() + '"';
 
 
2033
  tagtext += ' show_search_box="' + jQuery("input[name=album_extended_show_search_box]:checked").val() + '"';
2034
  tagtext += ' placeholder="' + jQuery("#album_extended_placeholder").val() + '"';
2035
  tagtext += ' search_box_width="' + jQuery("#album_extended_search_box_width").val() + '"';
2036
  tagtext += ' show_sort_images="' + jQuery("input[name=album_extended_show_sort_images]:checked").val() + '"';
2037
  tagtext += ' show_tag_box="' + jQuery("input[name=album_extended_show_tag_box]:checked").val() + '"';
2038
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_extended_name]:checked").val() + '"';
2039
- tagtext += ' extended_album_description_enable="' + jQuery("input[name=extended_album_description_enable]:checked").val() + '"';
2040
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_extended_show_gallery_description]:checked").val() + '"';
2041
- tagtext += ' extended_album_view_type="' + jQuery("input[name=album_extended_view_type]:checked").val() + '"';
2042
  tagtext += ' extended_album_image_title="' + jQuery("input[name=album_extended_image_title_show_hover]:checked").val() + '"';
2043
  tagtext += ' extended_album_mosaic_hor_ver="' + jQuery("input[name=album_extended_mosaic]:checked").val() + '"';
2044
  tagtext += ' extended_album_resizable_mosaic="' + jQuery("input[name=album_extended_resizable_mosaic]:checked").val() + '"';
50
  <input type="hidden" id="currrent_id" name="currrent_id" value="" />
51
  <input type="hidden" id="title" name="title" value="" />
52
  <input type="hidden" id="bwg_insert" name="bwg_insert" value="" />
53
+ <div class="<?php echo (isset($_GET['callback']) && $_GET['callback']=='wdg_cb_tw/bwg') ? 'bwg_tw-container' : '' ?>">
54
  <div class="bwg_tabs meta-box-sortables">
55
  <ul class="bwg-tabs">
56
  <li class="tabs">
610
  jQuery("#images_per_page").val(short_code['images_per_page']);
611
  jQuery("#load_more_image_count").val(short_code['load_more_image_count']);
612
  jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
613
+ jQuery("select[id=order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
614
  if (short_code['show_search_box'] == 1) {
615
  jQuery("#show_search_box_1").attr('checked', 'checked');
616
  }
724
  jQuery("#masonry_images_per_page").val(short_code['images_per_page']);
725
  jQuery("#masonry_load_more_image_count").val(short_code['load_more_image_count']);
726
  jQuery("select[id=masonry_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
727
+ jQuery("select[id=masonry_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
728
  if (short_code['show_search_box'] == 1) {
729
  jQuery("#masonry_show_search_box_1").attr('checked', 'checked');
730
  }
815
  jQuery("#mosaic_images_per_page").val(short_code['images_per_page']);
816
  jQuery("#mosaic_load_more_image_count").val(short_code['load_more_image_count']);
817
  jQuery("select[id=mosaic_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
818
+ jQuery("select[id=mosaic_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
819
  if (short_code['show_search_box'] == 1) {
820
  jQuery("#mosaic_show_search_box_1").attr('checked', 'checked');
821
  }
887
  jQuery("#slideshow_width").val(short_code['slideshow_width']);
888
  jQuery("#slideshow_height").val(short_code['slideshow_height']);
889
  jQuery("select[id=slideshow_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
890
+ jQuery("select[id=slideshow_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
891
  if (short_code['enable_slideshow_autoplay'] == 1) {
892
  jQuery("#slideshow_enable_autoplay_yes").attr('checked', 'checked');
893
  }
969
  jQuery("#image_browser_description_enable_" + short_code['image_browser_description_enable']).attr('checked', 'checked');
970
  }
971
  jQuery("select[id=image_browser_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
972
+ jQuery("select[id=image_browser_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
973
  if (short_code['showthumbs_name'] == 1) {
974
  jQuery("#image_browser_thumb_name_yes").attr('checked', 'checked');
975
  }
1038
  jQuery("#blog_style_description_enable_0").attr('checked', 'checked');
1039
  }
1040
  jQuery("select[id=blog_style_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1041
+ jQuery("select[id=blog_style_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
1042
+ if (short_code['showthumbs_name'] == 1) {
 
 
 
 
 
1043
  jQuery("#blog_style_thumb_name_yes").attr('checked', 'checked');
1044
  }
1045
  else {
1121
  jQuery("#carousel_play_pause_butt_no").attr('checked', 'checked');
1122
  }
1123
  jQuery("select[id=carousel_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1124
+ jQuery("select[id=carousel_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
1125
  if (short_code['gallery_download'] == 1) {
1126
  jQuery("#carousel_gallery_download_1").attr('checked', 'checked');
1127
  }
1142
  }
1143
  jQuery("#albums_per_page").val(short_code['compuct_albums_per_page']);
1144
  jQuery("#album_images_per_page").val(short_code['compuct_album_images_per_page']);
1145
+ jQuery("select[id=compact_album_sort_by] option[value='" + short_code['all_album_sort_by'] + "']").attr('selected', 'selected');
1146
+ jQuery("select[id=compact_album_order_by] option[value='" + short_code['all_album_order_by'] + "']").attr('selected', 'selected');
1147
+ jQuery("select[id=album_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1148
+ jQuery("select[id=album_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
1149
+
 
 
1150
  if (short_code['show_search_box'] == 1) {
1151
  jQuery("#album_show_search_box_1").attr('checked', 'checked');
1152
  }
1184
  jQuery("#album_show_gallery_description_0").attr('checked', 'checked');
1185
  }
1186
  jQuery("input[name=album_title_show_hover][value=" + short_code['compuct_album_title'] + "]").attr('checked', 'checked');
1187
+ jQuery('#album_view_type').find('option').removeAttr("selected");
1188
+ jQuery("#album_view_type option[value='"+ short_code['compuct_album_view_type'] +"']").attr('selected', 'selected');
 
 
 
 
 
 
 
 
 
 
 
 
 
1189
  jQuery("input[name='album_image_title_show_hover'][value='" + short_code['compuct_album_image_title'] + "']").attr('checked', 'checked');
1190
  if (short_code['compuct_album_mosaic_hor_ver'] == "vertical") {
1191
  jQuery("#album_mosaic_0").attr('checked', 'checked');
1233
  }
1234
  jQuery("#albums_masonry_per_page").val(short_code['masonry_albums_per_page']);
1235
  jQuery("#album_masonry_images_per_page").val(short_code['masonry_album_images_per_page']);
1236
+ jQuery("select[id=masonry_album_sort_by] option[value='" + short_code['all_album_sort_by'] + "']").attr('selected', 'selected');
1237
+ jQuery("select[id=masonry_album_order_by] option[value='" + short_code['all_album_order_by'] + "']").attr('selected', 'selected');
1238
  jQuery("select[id=album_masonry_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1239
+ jQuery("select[id=album_masonry_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
1240
  if (short_code['show_search_box'] == 1) {
1241
  jQuery("#album_masonry_show_search_box_1").attr('checked', 'checked');
1242
  }
1301
  }
1302
  jQuery("#albums_extended_per_page").val(short_code['extended_albums_per_page']);
1303
  jQuery("#album_extended_images_per_page").val(short_code['extended_album_images_per_page']);
1304
+ jQuery("select[id=extended_album_sort_by] option[value='" + short_code['all_album_sort_by'] + "']").attr('selected', 'selected');
1305
+ jQuery("select[id=extended_album_order_by] option[value='" + short_code['all_album_order_by'] + "']").attr('selected', 'selected');
1306
  jQuery("select[id=album_extended_sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
1307
+ jQuery("select[id=album_extended_order_by] option[value='" + short_code['order_by'] + "']").attr('selected', 'selected');
 
 
 
 
 
1308
  if (short_code['show_search_box'] == 1) {
1309
  jQuery("#album_extended_show_search_box_1").attr('checked', 'checked');
1310
  }
1347
  else {
1348
  jQuery("#album_extended_show_gallery_description_0").attr('checked', 'checked');
1349
  }
1350
+ jQuery('#album_extended_view_type').find('option').removeAttr("selected");
1351
+ jQuery("#album_extended_view_type option[value='"+ short_code['extended_album_view_type'] +"']").attr('selected', 'selected');
 
 
 
 
 
 
 
 
 
 
 
 
 
1352
  jQuery("input[name='album_extended_image_title_show_hover'][value='" + short_code['extended_album_image_title'] + "']").attr('checked', 'checked');
1353
  if (short_code['extended_album_mosaic_hor_ver'] == "vertical") {
1354
  jQuery("#album_extended_mosaic_0").attr('checked', 'checked');
1719
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1720
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1721
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
 
1722
  tagtext += ' thumb_width="' + jQuery("#thumb_width").val() + '"';
1723
  tagtext += ' thumb_height="' + jQuery("#thumb_height").val() + '"';
1724
  tagtext += ' image_column_number="' + jQuery("#image_column_number").val() + '"';
1726
  tagtext += ' images_per_page="' + jQuery("#images_per_page").val() + '"';
1727
  tagtext += ' load_more_image_count="' + jQuery("#load_more_image_count").val() + '"';
1728
  tagtext += ' sort_by="' + jQuery("#sort_by").val() + '"';
1729
+ tagtext += ' order_by="' + jQuery("#order_by").val() + '"';
1730
  tagtext += ' show_search_box="' + jQuery("input[name=show_search_box]:checked").val() + '"';
1731
  tagtext += ' placeholder="' + jQuery("#placeholder").val() + '"';
1732
  tagtext += ' search_box_width="' + jQuery("#search_box_width").val() + '"';
1744
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1745
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1746
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
 
1747
  tagtext += ' masonry_hor_ver="' + jQuery("input[name=masonry]:checked").val() + '"';
1748
  tagtext += ' show_masonry_thumb_description="' + jQuery("input[name=show_masonry_thumb_description]:checked").val() + '"';
1749
  tagtext += ' thumb_width="' + jQuery("#masonry_thumb_size").val() + '"';
1753
  tagtext += ' images_per_page="' + jQuery("#masonry_images_per_page").val() + '"';
1754
  tagtext += ' load_more_image_count="' + jQuery("#masonry_load_more_image_count").val() + '"';
1755
  tagtext += ' sort_by="' + jQuery("#masonry_sort_by").val() + '"';
1756
+ tagtext += ' order_by="' + jQuery("#masonry_order_by").val() + '"';
1757
  tagtext += ' show_search_box="' + jQuery("input[name=masonry_show_search_box]:checked").val() + '"';
1758
  tagtext += ' placeholder="' + jQuery("#masonry_placeholder").val() + '"';
1759
  tagtext += ' search_box_width="' + jQuery("#masonry_search_box_width").val() + '"';
1761
  tagtext += ' show_tag_box="' + jQuery("input[name=masonry_show_tag_box]:checked").val() + '"';
1762
  tagtext += ' showthumbs_name="' + jQuery("input[name=masonry_show_gallery_title]:checked").val() + '"';
1763
  tagtext += ' image_title="' + jQuery("input[name=masonry_image_title]:checked").val() + '"';
1764
+ tagtext += ' show_gallery_description="' + jQuery("input[name=masonry_show_gallery_description]:checked").val() + '"';
1765
  tagtext += ' play_icon="' + jQuery("input[name=masonry_play_icon]:checked").val() + '"';
1766
  tagtext += ' gallery_download="' + jQuery("input[name=masonry_gallery_download]:checked").val() + '"';
1767
  tagtext += ' ecommerce_icon="' + jQuery("input[name=masonry_ecommerce_icon_show_hover]:checked").val() + '"';
1771
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1772
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1773
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
 
1774
  tagtext += ' mosaic_hor_ver="' + jQuery("input[name=mosaic]:checked").val() + '"';
1775
  tagtext += ' resizable_mosaic="' + jQuery("input[name=resizable_mosaic]:checked").val() + '"';
1776
  tagtext += ' mosaic_total_width="' + jQuery("#mosaic_total_width").val() + '"';
1780
  tagtext += ' images_per_page="' + jQuery("#mosaic_images_per_page").val() + '"';
1781
  tagtext += ' load_more_image_count="' + jQuery("#mosaic_load_more_image_count").val() + '"';
1782
  tagtext += ' sort_by="' + jQuery("#mosaic_sort_by").val() + '"';
1783
+ tagtext += ' order_by="' + jQuery("#mosaic_order_by").val() + '"';
1784
  tagtext += ' show_search_box="' + jQuery("input[name=mosaic_show_search_box]:checked").val() + '"';
1785
  tagtext += ' placeholder="' + jQuery("#mosaic_placeholder").val() + '"';
1786
  tagtext += ' search_box_width="' + jQuery("#mosaic_search_box_width").val() + '"';
1803
  tagtext += ' slideshow_width="' + jQuery("#slideshow_width").val() + '"';
1804
  tagtext += ' slideshow_height="' + jQuery("#slideshow_height").val() + '"';
1805
  tagtext += ' sort_by="' + jQuery("#slideshow_sort_by").val() + '"';
1806
+ tagtext += ' order_by="' + jQuery("#slideshow_order_by").val() + '"';
1807
  tagtext += ' enable_slideshow_autoplay="' + jQuery("input[name=slideshow_enable_autoplay]:checked").val() + '"';
1808
  tagtext += ' enable_slideshow_shuffle="' + jQuery("input[name=slideshow_enable_shuffle]:checked").val() + '"';
1809
  tagtext += ' enable_slideshow_ctrl="' + jQuery("input[name=slideshow_enable_ctrl]:checked").val() + '"';
1830
  tagtext += ' image_browser_title_enable="' + jQuery("input[name=image_browser_title_enable]:checked").val() + '"';
1831
  tagtext += ' image_browser_description_enable="' + jQuery("input[name=image_browser_description_enable]:checked").val() + '"';
1832
  tagtext += ' sort_by="' + jQuery("#image_browser_sort_by").val() + '"';
1833
+ tagtext += ' order_by="' + jQuery("#image_browser_order_by").val() + '"';
1834
  tagtext += ' showthumbs_name="' + jQuery("input[name=image_browser_show_gallery_title]:checked").val() + '"';
1835
  tagtext += ' show_gallery_description="' + jQuery("input[name=image_browser_show_gallery_description]:checked").val() + '"';
1836
  tagtext += ' show_search_box="' + jQuery("input[name=image_browser_show_search_box]:checked").val() + '"';
1845
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1846
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1847
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
 
1848
  tagtext += ' blog_style_width="' + jQuery("#blog_style_width").val() + '"';
1849
  tagtext += ' blog_style_title_enable="' + jQuery("input[name=blog_style_title_enable]:checked").val() + '"';
1850
  tagtext += ' blog_style_images_per_page="' + jQuery("#blog_style_images_per_page").val() + '"';
1852
  tagtext += ' blog_style_enable_page="' + jQuery("input[name=blog_style_enable_page]:checked").val() + '"';
1853
  tagtext += ' blog_style_description_enable="' + jQuery("input[name=blog_style_description_enable]:checked").val() + '"';
1854
  tagtext += ' sort_by="' + jQuery("#blog_style_sort_by").val() + '"';
1855
+ tagtext += ' order_by="' + jQuery("#blog_style_order_by").val() + '"';
1856
  tagtext += ' showthumbs_name="' + jQuery("input[name=blog_style_show_gallery_title]:checked").val() + '"';
1857
  tagtext += ' show_gallery_description="' + jQuery("input[name=blog_style_show_gallery_description]:checked").val() + '"';
1858
  tagtext += ' show_search_box="' + jQuery("input[name=blog_style_show_search_box]:checked").val() + '"';
1867
  title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
1868
  tagtext += ' gallery_id="' + jQuery("#gallery").val() + '"';
1869
  tagtext += ' tag="' + jQuery("#tag").val() + '"';
 
1870
  tagtext += ' carousel_interval="' + jQuery("#carousel_interval").val() + '"';
1871
  tagtext += ' carousel_width="' + jQuery("#carousel_width").val() + '"';
1872
  tagtext += ' carousel_height="' + jQuery("#carousel_height").val() + '"';
1879
  tagtext += ' carousel_prev_next_butt="' + jQuery("input[name=carousel_prev_next_butt]:checked").val() + '"';
1880
  tagtext += ' carousel_play_pause_butt="' + jQuery("input[name=carousel_play_pause_butt]:checked").val() + '"';
1881
  tagtext += ' sort_by="' + jQuery("#carousel_sort_by").val() + '"';
1882
+ tagtext += ' order_by="' + jQuery("#carousel_order_by").val() + '"';
1883
  tagtext += ' gallery_download="' + jQuery("input[name=carousel_gallery_download]:checked").val() + '"';
1884
  break;
1885
  }
1896
  tagtext += ' compuct_album_enable_page="' + jQuery("input[name=album_enable_page]:checked").val() + '"';
1897
  tagtext += ' compuct_albums_per_page="' + jQuery("#albums_per_page").val() + '"';
1898
  tagtext += ' compuct_album_images_per_page="' + jQuery("#album_images_per_page").val() + '"';
1899
+ tagtext += ' all_album_sort_by="' + jQuery("#compact_album_sort_by").val() + '"';
1900
+ tagtext += ' all_album_order_by="' + jQuery("#compact_album_order_by").val() + '"';
1901
+ tagtext += ' sort_by="' + jQuery("#album_sort_by").val() + '"';
1902
+ tagtext += ' order_by="' + jQuery("#album_order_by").val() + '"';
1903
  tagtext += ' show_search_box="' + jQuery("input[name=album_show_search_box]:checked").val() + '"';
1904
  tagtext += ' placeholder="' + jQuery("#album_placeholder").val() + '"';
1905
  tagtext += ' search_box_width="' + jQuery("#album_search_box_width").val() + '"';
1908
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
1909
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_show_gallery_description]:checked").val() + '"';
1910
  tagtext += ' compuct_album_title="' + jQuery("input[name=album_title_show_hover]:checked").val() + '"';
1911
+ tagtext += ' compuct_album_view_type="' + jQuery('#album_view_type option:selected').val() + '"';
1912
  tagtext += ' compuct_album_image_title="' + jQuery("input[name=album_image_title_show_hover]:checked").val() + '"';
1913
  tagtext += ' compuct_album_mosaic_hor_ver="' + jQuery("input[name=album_mosaic]:checked").val() + '"';
1914
  tagtext += ' compuct_album_resizable_mosaic="' + jQuery("input[name=album_resizable_mosaic]:checked").val() + '"';
1921
  case 'album_masonry_preview' : {
1922
  title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
1923
  tagtext += ' album_id="' + jQuery("#album").val() + '"';
 
1924
  tagtext += ' masonry_album_column_number="' + jQuery("#album_masonry_column_number").val() + '"';
1925
  tagtext += ' masonry_album_thumb_width="' + jQuery("#album_masonry_thumb_width").val() + '"';
1926
  tagtext += ' masonry_album_image_column_number="' + jQuery("#album_masonry_image_column_number").val() + '"';
1928
  tagtext += ' masonry_album_enable_page="' + jQuery("input[name=album_masonry_enable_page]:checked").val() + '"';
1929
  tagtext += ' masonry_albums_per_page="' + jQuery("#albums_masonry_per_page").val() + '"';
1930
  tagtext += ' masonry_album_images_per_page="' + jQuery("#album_masonry_images_per_page").val() + '"';
1931
+ tagtext += ' all_album_sort_by="' + jQuery("#masonry_album_sort_by").val() + '"';
1932
+ tagtext += ' all_album_order_by="' + jQuery("#masonry_album_order_by").val() + '"';
1933
+ tagtext += ' sort_by="' + jQuery("#album_masonry_sort_by").val() + '"';
1934
+ tagtext += ' order_by="' + jQuery("#album_masonry_order_by").val() + '"';
1935
  tagtext += ' show_search_box="' + jQuery("input[name=album_masonry_show_search_box]:checked").val() + '"';
1936
  tagtext += ' placeholder="' + jQuery("#album_masonry_placeholder").val() + '"';
1937
  tagtext += ' search_box_width="' + jQuery("#album_masonry_search_box_width").val() + '"';
1957
  tagtext += ' extended_album_enable_page="' + jQuery("input[name=album_extended_enable_page]:checked").val() + '"';
1958
  tagtext += ' extended_albums_per_page="' + jQuery("#albums_extended_per_page").val() + '"';
1959
  tagtext += ' extended_album_images_per_page="' + jQuery("#album_extended_images_per_page").val() + '"';
1960
+ tagtext += ' all_album_sort_by="' + jQuery("#extended_album_sort_by").val() + '"';
1961
+ tagtext += ' all_album_order_by="' + jQuery("#extended_album_order_by").val() + '"';
1962
+ tagtext += ' sort_by="' + jQuery("#album_extended_sort_by").val() + '"';
1963
+ tagtext += ' order_by="' + jQuery("#album_extended_order_by").val() + '"';
1964
  tagtext += ' show_search_box="' + jQuery("input[name=album_extended_show_search_box]:checked").val() + '"';
1965
  tagtext += ' placeholder="' + jQuery("#album_extended_placeholder").val() + '"';
1966
  tagtext += ' search_box_width="' + jQuery("#album_extended_search_box_width").val() + '"';
1967
  tagtext += ' show_sort_images="' + jQuery("input[name=album_extended_show_sort_images]:checked").val() + '"';
1968
  tagtext += ' show_tag_box="' + jQuery("input[name=album_extended_show_tag_box]:checked").val() + '"';
1969
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_extended_name]:checked").val() + '"';
1970
+ tagtext += ' extended_album_description_enable="' + jQuery("input[name=extended_album_description_enable]:checked").val() + '"';
1971
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_extended_show_gallery_description]:checked").val() + '"';
1972
+ tagtext += ' extended_album_view_type="' + jQuery('#album_extended_view_type option:selected').val() + '"';
1973
  tagtext += ' extended_album_image_title="' + jQuery("input[name=album_extended_image_title_show_hover]:checked").val() + '"';
1974
  tagtext += ' extended_album_mosaic_hor_ver="' + jQuery("input[name=album_extended_mosaic]:checked").val() + '"';
1975
  tagtext += ' extended_album_resizable_mosaic="' + jQuery("input[name=album_extended_resizable_mosaic]:checked").val() + '"';
admin/views/Widget.php CHANGED
@@ -74,10 +74,12 @@ class WidgetView_bwg {
74
  $params['compuct_album_thumb_height'] = $height;
75
  $params['compuct_album_image_thumb_width'] = $width;
76
  $params['compuct_album_image_thumb_height'] = $height;
 
 
77
  $params['compuct_album_enable_page'] = 0;
78
  }
79
  $controller = new $controller_class($view);
80
- $bwg = WDWLibrary::unique_number();
81
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
82
  $controller->execute($pairs, 1, $bwg);
83
  // After widget.
74
  $params['compuct_album_thumb_height'] = $height;
75
  $params['compuct_album_image_thumb_width'] = $width;
76
  $params['compuct_album_image_thumb_height'] = $height;
77
+ $params['all_album_sort_by'] = $sort_by;
78
+ $params['all_album_order_by'] = $order_by;
79
  $params['compuct_album_enable_page'] = 0;
80
  }
81
  $controller = new $controller_class($view);
82
+ $bwg = WDWLibrary::unique_number();
83
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
84
  $controller->execute($pairs, 1, $bwg);
85
  // After widget.
css/bwg_frontend.css CHANGED
@@ -954,13 +954,6 @@ margin-right: 10px;
954
  line-height: 30px;
955
  }
956
 
957
- .bwg_thumbnail.bwg_container .search_line .SumoSelect > .CaptionCont > label > i.closed:before {
958
- content: "\e904";
959
- }
960
- .bwg_thumbnail.bwg_container .search_line .SumoSelect > .CaptionCont > label > i.opened:before {
961
- content: "\e905";
962
- }
963
-
964
  .bwg_thumbnail.bwg_container .search_line .bwg_reset {
965
  position: absolute;
966
  }
@@ -1610,6 +1603,7 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoS
1610
  cursor: pointer;
1611
  font-size: 15px;
1612
  width: 100%;
 
1613
  }
1614
 
1615
  .bwg_comments , .bwg_ecommerce_panel{
@@ -1867,6 +1861,7 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoS
1867
 
1868
  .bwg_star {
1869
  display: inline-block;
 
1870
  }
1871
 
1872
  .bwg_image_count_container {
@@ -1982,6 +1977,7 @@ div[id^='bwg_container1_'] div[id^='bwg_container2_'] div[class^='bwg_slideshow_
1982
  display: table;
1983
  position: relative;
1984
  text-align: center;
 
1985
  }
1986
 
1987
  div[id^='bwg_container1_'] div[id^='bwg_container2_'] img[class^='bwg_slideshow_image_'] {
954
  line-height: 30px;
955
  }
956
 
 
 
 
 
 
 
 
957
  .bwg_thumbnail.bwg_container .search_line .bwg_reset {
958
  position: absolute;
959
  }
1603
  cursor: pointer;
1604
  font-size: 15px;
1605
  width: 100%;
1606
+ margin-bottom: 5px;
1607
  }
1608
 
1609
  .bwg_comments , .bwg_ecommerce_panel{
1861
 
1862
  .bwg_star {
1863
  display: inline-block;
1864
+ width: unset !important;
1865
  }
1866
 
1867
  .bwg_image_count_container {
1977
  display: table;
1978
  position: relative;
1979
  text-align: center;
1980
+ margin: auto;
1981
  }
1982
 
1983
  div[id^='bwg_container1_'] div[id^='bwg_container2_'] img[class^='bwg_slideshow_image_'] {
css/bwg_subscribe.css ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #tenweb_new_subscribe{
2
+ box-shadow: 2px 5px 19px rgba(0, 0, 0, 0.13);
3
+ border-radius: 10px;
4
+ text-align: left;
5
+ color: #333B46;
6
+ background-image: url(../images/subscribe/transparent_title.png);
7
+ background-repeat: no-repeat;
8
+ background-position: left bottom;
9
+ padding: 40px 0 0 40px;
10
+ background-size: contain;
11
+ position: relative;
12
+ }
13
+ #tenweb_new_subscribe:before{
14
+ content:"";
15
+ background-image: url(../images/subscribe/square.svg);
16
+ position: absolute;
17
+ top:0;
18
+ left:0;
19
+ width: 100%;
20
+ height: 100%;
21
+ opacity: 0.4;
22
+ }
23
+ #tenweb_new_subscribe .tenweb_subscribe_container{
24
+ background-image: url(../images/subscribe/book.png);
25
+ background-repeat: no-repeat;
26
+ background-position: right 134px;
27
+ background-size: 654px;
28
+ padding: 0 0 67px 0;
29
+ z-index: 1;
30
+ position: relative;
31
+ }
32
+ #tenweb_new_subscribe a#tenweb_logo {
33
+ width: 147px;
34
+ height: 40px;
35
+ background-image: url(../images/subscribe/10web-logo.svg);
36
+ display: inline-block;
37
+ background-repeat: no-repeat;
38
+ }
39
+ #tenweb_new_subscribe #tenweb_title {
40
+ font-weight: 700;
41
+ color: #333B46;
42
+ font-size: 40px;
43
+ line-height: 54px;
44
+ margin: 40px 0 30px;
45
+ }
46
+ #tenweb_new_subscribe #tenweb_description {
47
+ font-weight: 200;
48
+ margin: 0 0 30px;
49
+ font-size: 30px;
50
+ line-height: 46px;
51
+ }
52
+ #tenweb_new_subscribe #tenweb_form {
53
+ max-width: 100%;
54
+ font-size: 14px;
55
+ line-height: 18px;
56
+ width: 520px;
57
+ }
58
+ #tenweb_new_subscribe #tenweb_form input[type="text"]{
59
+ font-size: 16px;
60
+ line-height: 22px;
61
+ width:100%;
62
+ background: #FAFAFA;
63
+ border: 1px solid rgba(0, 0, 0, 0.15);
64
+ border-radius: 32px;
65
+ padding: 11px 20px;
66
+ color: #72777c;
67
+ font-weight: 600;
68
+ box-shadow: none;
69
+ }
70
+ #tenweb_new_subscribe #tenweb_form input[type="button"]{
71
+ font-size: 20px;
72
+ line-height: 27px;
73
+ width: 100%;
74
+ background: #F8C332;
75
+ border-radius: 32px;
76
+ padding: 17px;
77
+ color: #ffffff;
78
+ font-weight: 600;
79
+ border:0;
80
+ cursor: pointer;
81
+ margin-bottom: 10px;
82
+ }
83
+ #tenweb_new_subscribe #tenweb_form input[type="text"]:focus,
84
+ #tenweb_new_subscribe #tenweb_form input[type="button"]{
85
+ outline: none;
86
+ }
87
+ #tenweb_new_subscribe #form_buttons{
88
+ width: 296px;
89
+ max-width: 100%;
90
+ text-align: center;
91
+ }
92
+ #tenweb_new_subscribe #form_buttons .skip{
93
+ line-height: 20px;
94
+ font-weight: 600;
95
+ color: rgba(51, 59, 70, 0.7);
96
+ text-transform: none;
97
+ letter-spacing: 0;
98
+ margin: 0;
99
+ display: inline-block;
100
+ text-decoration: none;
101
+ font-size: 15px;
102
+ }
103
+ #tenweb_new_subscribe #tenweb_form input[type="text"]::placeholder {
104
+ color: rgba(51, 59, 70, 0.5) !important;
105
+ }
106
+
107
+ #tenweb_new_subscribe #tenweb_form input[type="text"]::-webkit-input-placeholder {
108
+ color: rgba(51, 59, 70, 0.5);
109
+ }
110
+
111
+ #tenweb_new_subscribe #tenweb_form input[type="text"]:-moz-placeholder { /* Firefox 18- */
112
+ color: rgba(51, 59, 70, 0.5);
113
+ }
114
+
115
+ #tenweb_new_subscribe #tenweb_form input[type="text"]::-moz-placeholder { /* Firefox 19+ */
116
+ color: rgba(51, 59, 70, 0.5);
117
+ }
118
+
119
+ #tenweb_new_subscribe #tenweb_form input[type="text"]:-ms-input-placeholder {
120
+ color: rgba(51, 59, 70, 0.5);
121
+ }
122
+ #tenweb_new_subscribe #tenweb_form p{
123
+ margin: 0 0 19px 0;
124
+ }
125
+ #tenweb_new_subscribe label {
126
+ font-size: 15px;
127
+ line-height: 20px;
128
+ font-weight: 600;
129
+ margin: 0 0 14px 20px;
130
+ display: inline-block;
131
+ }
132
+ #tenweb_new_subscribe label span {
133
+ color: #FD3C31;
134
+ }
135
+ #tenweb_new_subscribe .form_desc {
136
+ margin: 0 0 30px 20px;
137
+ }
138
+ #tenweb_new_subscribe .tenweb_subscribe_content {
139
+ width: 584px;
140
+ max-width: 100%;
141
+ }
142
+ #tenweb_new_subscribe #tablet_book {
143
+ display: none;
144
+ }
145
+ #tenweb_new_subscribe span.error_msg {
146
+ color: #e95e5b;
147
+ font-size: 13px;
148
+ margin-left: 20px;
149
+ display:none;
150
+ }
151
+ #tenweb_new_subscribe .error span.error_msg {
152
+ display: inline-block;
153
+ }
154
+ #tenweb_new_subscribe #tenweb_form .error input[type="text"]{
155
+ border-color: #e95e5b;
156
+ }
157
+ @media screen and (min-width: 1840px){
158
+ #tenweb_new_subscribe .tenweb_subscribe_container{
159
+ background-size: 970px;
160
+ }
161
+ }
162
+ @media screen and (min-width: 1620px){
163
+ #tenweb_new_subscribe .tenweb_subscribe_container{
164
+ background-size: 970px;
165
+ background-position: right top;
166
+ padding: 0 0 82px 0;
167
+ }
168
+ #tenweb_new_subscribe .tenweb_subscribe_content {
169
+ width: 763px;
170
+ }
171
+ #tenweb_new_subscribe #tenweb_title {
172
+ font-size: 50px;
173
+ line-height: 64px;
174
+ margin: 30px 0;
175
+ }
176
+ #tenweb_new_subscribe #tenweb_description {
177
+ font-size: 36px;
178
+ line-height: 50px;
179
+ }
180
+ #tenweb_new_subscribe #form_buttons {
181
+ width: 296px;
182
+ }
183
+ #tenweb_new_subscribe #form_buttons .skip {
184
+ font-size: 18px;
185
+ }
186
+ #tenweb_new_subscribe #tenweb_form input[type="button"] {
187
+ margin-bottom: 14px;
188
+ }
189
+ #tenweb_new_subscribe {
190
+ padding: 70px 0 0 70px;
191
+ }
192
+ #tenweb_new_subscribe .form_desc {
193
+ margin: 0 0 40px 20px;
194
+ }
195
+ }
196
+ @media screen and (max-width: 1420px){
197
+ #tenweb_new_subscribe {
198
+ padding: 30px 0 0 30px;
199
+ }
200
+ #tenweb_new_subscribe #tenweb_title {
201
+ font-size: 36px;
202
+ line-height: 50px;
203
+ margin: 25px 0 10px;
204
+ }
205
+ #tenweb_new_subscribe #tenweb_description {
206
+ font-size: 26px;
207
+ line-height: 42px;
208
+ }
209
+ #tenweb_new_subscribe #tenweb_form {
210
+ font-size: 13px;
211
+ }
212
+ #tenweb_new_subscribe #form_buttons {
213
+ width: 270px;
214
+ }
215
+ #tenweb_new_subscribe #tenweb_form input[type="button"] {
216
+ padding: 14px;
217
+ }
218
+ #tenweb_new_subscribe .tenweb_subscribe_container {
219
+ background-position: right 108px;
220
+ background-size: 570px;
221
+ padding: 0 0 27px 0;
222
+ }
223
+ }
224
+ @media screen and (max-width: 1320px){
225
+ #tenweb_new_subscribe #tenweb_form {
226
+ width: 460px;
227
+ }
228
+ }
229
+ @media screen and (max-width: 1279px){
230
+ #tenweb_new_subscribe #tenweb_title {
231
+ font-size: 32px;
232
+ line-height: 45px;
233
+ margin: 29px 0 20px;
234
+ }
235
+ #tenweb_new_subscribe #tenweb_description {
236
+ font-size: 22px;
237
+ line-height: 34px;
238
+ margin: 0 0 60px;
239
+ }
240
+ #tenweb_new_subscribe #tenweb_form {
241
+ width: 400px;
242
+ }
243
+ #tenweb_new_subscribe label {
244
+ font-size: 14px;
245
+ line-height: 19px;
246
+ margin: 0 0 12px 20px;
247
+ }
248
+ #tenweb_new_subscribe #form_buttons {
249
+ width: 245px;
250
+ }
251
+ #tenweb_new_subscribe #tenweb_form input[type="button"] {
252
+ font-size: 16px;
253
+ line-height: 22px;
254
+ }
255
+ #tenweb_new_subscribe {
256
+ padding: 38px 0 0 30px;
257
+ }
258
+ #tenweb_new_subscribe .tenweb_subscribe_container {
259
+ background-position: right 184px;
260
+ background-size: 409px;
261
+ background-image: url(../images/subscribe/book_1024.png);
262
+ }
263
+ }
264
+ @media screen and (max-width: 1023px){
265
+ #tenweb_new_subscribe #tablet_book {
266
+ display: block;
267
+ text-align: right;
268
+ }
269
+ #tenweb_new_subscribe #tablet_book img {
270
+ max-width:100%;
271
+ }
272
+ #tenweb_new_subscribe .tenweb_subscribe_container {
273
+ background-image: none;
274
+ padding: 0 0 30px 0;
275
+ }
276
+ #tenweb_new_subscribe {
277
+ padding: 30px 0 0 0;
278
+ text-align: center;
279
+ width: calc(100% - 10px);
280
+ }
281
+ #tenweb_new_subscribe .tenweb_subscribe_content {
282
+ width: 600px;
283
+ margin: 0 auto;
284
+ }
285
+ #tenweb_new_subscribe #tenweb_title {
286
+ margin: 20px 0;
287
+ }
288
+ #tenweb_new_subscribe #tenweb_description br{
289
+ display:none;
290
+ }
291
+ #tenweb_new_subscribe #tenweb_description {
292
+ margin: 0 0 20px;
293
+ }
294
+ #tenweb_new_subscribe #tenweb_form {
295
+ text-align: left;
296
+ margin: 0 auto;
297
+ }
298
+ #tenweb_new_subscribe .form_desc {
299
+ margin: 0 0 40px 0;
300
+ text-align: center;
301
+ }
302
+ #tenweb_new_subscribe #form_buttons{
303
+ margin: 0 auto;
304
+ }
305
+ }
306
+ @media screen and (max-width: 767px){
307
+ #tenweb_new_subscribe #tablet_book {
308
+ display: none;
309
+ }
310
+ #tenweb_new_subscribe {
311
+ padding: 20px 10px 0;
312
+ }
313
+ #tenweb_new_subscribe a#tenweb_logo {
314
+ width: 110px;
315
+ height: 30px;
316
+ }
317
+ #tenweb_new_subscribe #tenweb_title {
318
+ font-size: 22px;
319
+ line-height: 32px;
320
+ }
321
+ #tenweb_new_subscribe #tenweb_title {
322
+ margin: 27px 0 10px;
323
+ }
324
+ #tenweb_new_subscribe #tenweb_description {
325
+ font-size: 18px;
326
+ line-height: 32px;
327
+ margin: 0 0 40px;
328
+ }
329
+ #tenweb_new_subscribe #tenweb_form input[type="text"] {
330
+ font-size: 14px;
331
+ line-height: 19px;
332
+ padding: 8px 14px 9px;
333
+ }
334
+ #tenweb_new_subscribe .form_desc {
335
+ margin: 0 0 30px 0;
336
+ }
337
+ #tenweb_new_subscribe .tenweb_subscribe_container {
338
+ padding: 0 0 50px 0;
339
+ }
340
+
341
+ #tenweb_new_subscribe:before{
342
+ content:"";
343
+ background-size: 70px;
344
+ }
345
+ #tenweb_new_subscribe label {
346
+ font-size: 13px;
347
+ line-height: 18px;
348
+ margin: 0 0 10px 14px;
349
+ }
350
+ #tenweb_new_subscribe #tenweb_form {
351
+ font-size: 12px;
352
+ }
353
+ }
css/bwg_tables.css CHANGED
@@ -576,18 +576,26 @@
576
 
577
  .tag_div {
578
  background-clip: padding-box;
579
- background-color: #F3F3F3;
580
- border: 1px solid #AAAAAA;
581
- border-radius: 3px 3px 3px 3px;
582
  color: #666666;
583
  line-height: 20px;
584
  margin: 2px 0;
585
- padding: 0 5px;
586
  }
587
 
588
  .tags_div {
589
  overflow-y: auto;
590
- max-height: 75px;
 
 
 
 
 
 
 
 
 
591
  }
592
 
593
  .tag_name {
@@ -1620,6 +1628,7 @@ textarea.bwg_popup_input {
1620
  .images_table textarea {
1621
  width: 100%;
1622
  resize: vertical;
 
1623
  }
1624
  .images_table.media .column-title .media-icon {
1625
  max-height: 90px;
@@ -1629,7 +1638,7 @@ textarea.bwg_popup_input {
1629
  border: 1px solid #e5e5e5;
1630
  }
1631
  .images_table.media .column-title .media-icon img {
1632
- max-width: 120px;
1633
  position: absolute;
1634
  left: 50%;
1635
  top: 50%;
@@ -1651,7 +1660,7 @@ textarea.bwg_popup_input {
1651
  }
1652
 
1653
  .images_table .media-icon {
1654
- width: 122px;
1655
  }
1656
 
1657
  .gallery_image_thumb {
@@ -1664,6 +1673,7 @@ textarea.bwg_popup_input {
1664
  }
1665
 
1666
  .wd-delete-tag {
 
1667
  border: medium none;
1668
  cursor: pointer;
1669
  display: inline-block;
@@ -1671,6 +1681,9 @@ textarea.bwg_popup_input {
1671
  vertical-align: middle;
1672
  width: 20px;
1673
  float: right;
 
 
 
1674
  }
1675
 
1676
  @media screen and (max-width: 1280px) {
@@ -1885,7 +1898,10 @@ li.tabs {
1885
  width: initial;
1886
  }
1887
  /* End tabs */
1888
-
 
 
 
1889
  .wd-width-33 {
1890
  display: inline-block;
1891
  padding: 4px;
@@ -1896,6 +1912,10 @@ li.tabs {
1896
  padding: 4px;
1897
  width: 50%;
1898
  }
 
 
 
 
1899
  .wd-width-100 {
1900
  display: inline-block;
1901
  padding: 10px 5px;
@@ -2150,13 +2170,70 @@ li.tabs {
2150
  color:#FFFFFF;
2151
  }
2152
 
2153
- @media screen and (min-width: 768px) {
2154
- #images_table .column-primary {
2155
- width: 360px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2156
  }
2157
  }
2158
 
2159
- #wd_tenweb_notice_cont {
2160
- display: inline-block!important;
 
 
 
 
 
 
 
 
 
 
 
 
2161
  }
2162
 
 
 
 
 
 
 
 
576
 
577
  .tag_div {
578
  background-clip: padding-box;
579
+ background-color: #EDEDED;
580
+ border-radius: 14px;
 
581
  color: #666666;
582
  line-height: 20px;
583
  margin: 2px 0;
584
+ padding: 2px 10px;
585
  }
586
 
587
  .tags_div {
588
  overflow-y: auto;
589
+ height: 100px;
590
+ }
591
+
592
+ .tags_div_empty {
593
+ display: flex;
594
+ flex-direction: column;
595
+ justify-content: space-between;
596
+ border: 1px dashed #E5E5E5;
597
+ border-radius: 4px;
598
+ justify-content: center;
599
  }
600
 
601
  .tag_name {
1628
  .images_table textarea {
1629
  width: 100%;
1630
  resize: vertical;
1631
+ border-radius: 4px;
1632
  }
1633
  .images_table.media .column-title .media-icon {
1634
  max-height: 90px;
1638
  border: 1px solid #e5e5e5;
1639
  }
1640
  .images_table.media .column-title .media-icon img {
1641
+ max-width: 130px;
1642
  position: absolute;
1643
  left: 50%;
1644
  top: 50%;
1660
  }
1661
 
1662
  .images_table .media-icon {
1663
+ width: 132px;
1664
  }
1665
 
1666
  .gallery_image_thumb {
1673
  }
1674
 
1675
  .wd-delete-tag {
1676
+ color: #000000;
1677
  border: medium none;
1678
  cursor: pointer;
1679
  display: inline-block;
1681
  vertical-align: middle;
1682
  width: 20px;
1683
  float: right;
1684
+ font-size: 15px;
1685
+ line-height: 22px;
1686
+ font-weight: bold;
1687
  }
1688
 
1689
  @media screen and (max-width: 1280px) {
1898
  width: initial;
1899
  }
1900
  /* End tabs */
1901
+ .wd-width-30 {
1902
+ display: inline-block;
1903
+ width: 30%;
1904
+ }
1905
  .wd-width-33 {
1906
  display: inline-block;
1907
  padding: 4px;
1912
  padding: 4px;
1913
  width: 50%;
1914
  }
1915
+ .wd-width-65 {
1916
+ display: inline-block;
1917
+ width: 65%;
1918
+ }
1919
  .wd-width-100 {
1920
  display: inline-block;
1921
  padding: 10px 5px;
2170
  color:#FFFFFF;
2171
  }
2172
 
2173
+ #wd_tenweb_notice_cont {
2174
+ display: inline-block!important;
2175
+ }
2176
+
2177
+ .bwg-td-container {
2178
+ display: flex;
2179
+ flex-wrap: wrap;
2180
+ }
2181
+ .bwg-td-item {
2182
+ flex: 1;
2183
+ padding: 0 8px;
2184
+ min-width: 200px;
2185
+ }
2186
+ .images_table thead tr td {
2187
+ vertical-align: middle;
2188
+ }
2189
+ .wd-table-label {
2190
+ font-size: 14px;
2191
+ font-weight: 500;
2192
+ line-height: 20px;
2193
+ margin: 10px;
2194
+ padding: 0;
2195
+ }
2196
+ .tags_div.tags_div_empty a {
2197
+ text-align: center;
2198
+ }
2199
+ .tags_div a {
2200
+ text-align: left;
2201
+ font-weight: 500;
2202
+ }
2203
+ .tags_div a .dashicons-plus {
2204
+ font-size: 12px;
2205
+ line-height: 22px;
2206
+ }
2207
+ .column-data {
2208
+ padding: 3px 8px 3px 3px !important;
2209
+ }
2210
+
2211
+ @media screen and (min-width: 1152px) {
2212
+ .column-title {
2213
+ width: 280px;
2214
  }
2215
  }
2216
 
2217
+ @media screen and (min-width: 1280px) {
2218
+ .column-title {
2219
+ width: 400px;
2220
+ }
2221
+ }
2222
+
2223
+ @media screen and (min-width: 1600px) {
2224
+ .column-title {
2225
+ width: 500px;
2226
+ }
2227
+ }
2228
+
2229
+ .wrap.wd-wrap-ajax .bwg_tw-container .media-frame-toolbar .media-toolbar {
2230
+ bottom: -55px;
2231
  }
2232
 
2233
+ .wd-info {
2234
+ cursor: pointer;
2235
+ }
2236
+
2237
+ #wpbody-content>div:not(.wrap), .wrap .notice:not(.wd-notice) {
2238
+ display: none;
2239
+ }
css/styles.min.css CHANGED
@@ -1 +1 @@
1
- .SumoSelect p{margin:0}.SumoSelect{width:200px}.SelectBox{padding:5px 8px}.sumoStopScroll{overflow:hidden}.SumoSelect .hidden{display:none}.SumoSelect .search-txt{display:none;outline:0}.SumoSelect .no-match{display:none;padding:6px}.SumoSelect.open .search-txt{display:inline-block;position:absolute;top:0;left:0;width:100%;margin:0;padding:4px 8px;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:5px}.SelectClass,.SumoUnder,.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{position:absolute;height:100%;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-khtml-opacity:0;top:0;left:0;right:0}.SumoSelect.open>.search>label,.SumoSelect.open>.search>span{visibility:hidden}.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{width:100%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass,.SumoUnder{display:inline-block;width:102%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass{z-index:1}.SumoSelect .select-all>label,.SumoSelect>.CaptionCont,.SumoSelect>.optWrapper>.options li.opt label{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none}.SumoSelect{display:inline-block;position:relative;outline:0}.SumoSelect.open>.CaptionCont,.SumoSelect:focus>.CaptionCont,.SumoSelect:hover>.CaptionCont{box-shadow:0 0 2px #7799d0;border-color:#7799d0}.SumoSelect>.CaptionCont{position:relative;border:1px solid #a4a4a4;min-height:14px;background-color:#fff;border-radius:2px;margin:0}.SumoSelect>.CaptionCont>span{display:block;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:default}.SumoSelect>.CaptionCont>span.placeholder{color:#000}.SumoSelect>.CaptionCont>label{position:absolute;top:0;right:0;bottom:0;width:30px}.bwg_thumbnail .SumoSelect>.CaptionCont>label>i{background-image:none;bottom:0;background-position:center center;width:16px;height:16px;display:block;position:absolute;top:0;left:0;right:0;margin:auto;background-repeat:no-repeat;opacity:.8}.SumoSelect>.optWrapper{display:none;z-index:1000;top:30px;width:100%;position:absolute;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:2px 3px 3px rgba(0,0,0,.11);border-radius:15px;overflow:hidden}.SumoSelect.open>.optWrapper{top:35px;display:block}.SumoSelect.open>.optWrapper.up{top:auto;bottom:100%;margin-bottom:5px}.SumoSelect>.optWrapper ul{list-style:none;display:block;padding:0;margin:0;overflow:auto}.SumoSelect>.optWrapper>.options{border-radius:2px;position:relative;max-height:250px}.SumoSelect>.optWrapper>.options li.group.disabled>label{opacity:.5}.SumoSelect>.optWrapper>.options li ul li.opt{padding-left:22px}.SumoSelect>.optWrapper.multiple>.options li ul li.opt{padding-left:50px}.SumoSelect>.optWrapper.isFloating>.options{max-height:100%;box-shadow:0 0 100px #595959}.SumoSelect>.optWrapper>.options li.opt{padding:6px;position:relative}.SumoSelect>.optWrapper>.options>li.opt:first-child{border-radius:2px 2px 0 0}.SumoSelect>.optWrapper>.options>li.opt:last-child{border-radius:0 0 2px 2px;border-bottom:none}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt>label:hover{color:#323a45;opacity:.7}.SumoSelect>.optWrapper>.options li.opt:hover{background-color:#e4e4e4}.SumoSelect>.optWrapper>.options li.opt.sel{background-color:#a1c0e4;border-bottom:1px solid #a1c0e4}.SumoSelect>.optWrapper>.options li label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;cursor:pointer}.SumoSelect>.optWrapper>.options li span{display:none}.SumoSelect>.optWrapper>.options li.group>label{cursor:default;padding:8px 6px;font-weight:700}.SumoSelect>.optWrapper.isFloating{position:fixed;top:0;left:0;right:0;width:90%;bottom:0;margin:auto;max-height:90%}.SumoSelect>.optWrapper>.options li.opt.disabled{background-color:inherit;pointer-events:none}.SumoSelect>.optWrapper>.options li.opt.disabled *{-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}.SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:35px;cursor:pointer}.SumoSelect .select-all>span,.SumoSelect>.optWrapper.multiple>.options li.opt span{position:absolute;display:block;width:30px;top:0;bottom:0;margin-left:-35px}.SumoSelect .select-all>span i,.SumoSelect>.optWrapper.multiple>.options li.opt span i{position:absolute;margin:auto;left:0;right:0;top:0;bottom:0;width:14px;height:14px;border:1px solid #aeaeae;border-radius:2px;box-shadow:inset 0 1px 3px rgba(0,0,0,.15);background-color:#fff}.SumoSelect>.optWrapper>.MultiControls{display:none;border-top:1px solid #ddd;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,.13);border-radius:0 0 3px 3px}.SumoSelect>.optWrapper.multiple.isFloating>.MultiControls{display:block;margin-top:5px;position:absolute;bottom:0;width:100%}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls{display:block}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls>p{padding:6px}.SumoSelect>.optWrapper.multiple>.MultiControls>p{display:inline-block;cursor:pointer;padding:12px;width:50%;box-sizing:border-box;text-align:center}.SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background-color:#f1f1f1}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{border-right:1px solid #dbdbdb;border-radius:0 0 0 3px}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel{border-radius:0 0 3px}.bwg_thumbnail .SumoSelect>.optWrapper.isFloating>.options li.opt{padding:0}.SumoSelect>.optWrapper.isFloating>.options li.opt{padding:12px 6px}.SumoSelect>.optWrapper.multiple.isFloating>.options li.opt{padding-left:35px}.SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:43px}.SumoSelect .select-all.partial>span i,.SumoSelect .select-all.selected>span i,.SumoSelect>.optWrapper.multiple>.options li.opt.selected span i{background-color:#11a911;box-shadow:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACzSURBVChTY/wPBAwkACYS1IKVEqWhfflFBsvczWANjISc1L/mEkP5wjsMv3/+ZVhTZcDAANKAC/StvvSf1WctGIPYYMNBhEXOpv9tyy6g6OtbfRFJ8UW4HMOa/bf+M7iugpoCkcClGCQH9kP/mstAd95mYGdlYvAyEmDYdu4Dw8/f/xg641UZCkN0UQMSZhfMVKnozSi2ofsPxdMgTQx2y8BOwgUwQunYpSf4Ag7iB1JiGwAouCBFqHEGogAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center center}.SumoSelect.disabled{opacity:.7;cursor:not-allowed}.SumoSelect.disabled>.CaptionCont{border-color:#ccc;box-shadow:none}.SumoSelect .select-all{border-radius:3px 3px 0 0;position:relative;border-bottom:1px solid #ddd;background-color:#fff;padding:8px 0 3px 35px;height:20px;cursor:pointer}.SumoSelect .select-all>label,.SumoSelect .select-all>span i{cursor:pointer}.SumoSelect .select-all.partial>span i{background-color:#ccc}.SumoSelect>.optWrapper>.options li.optGroup{padding-left:5px;text-decoration:underline}.mCSB_container{width:auto;margin-right:15px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCS_destroyed>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar{margin-right:15px}.mCustomScrollBox>.mCSB_scrollTools{width:16px;height:100%;top:0;right:0;opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:20px 0}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonUp{display:block;position:relative;height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{top:100%;margin-top:-40px}.mCSB_horizontal>.mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCS_destroyed>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-right:0;margin-bottom:30px}.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal>.mCSB_scrollTools a+.mCSB_draggerContainer{margin:0 20px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{display:block;position:relative;width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{margin-left:-40px;float:right}.mCustomScrollBox{-ms-touch-action:none}.mCustomScrollBox:hover>.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=100)";-ms-filter:"alpha(opacity=100)"}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.4);filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#fff;background:rgba(255,255,255,.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp{background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover,.mCSB_scrollTools .mCSB_buttonUp:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active,.mCSB_scrollTools .mCSB_buttonUp:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCS-dark>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#000;background:rgba(0,0,0,.75)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-light-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px 0}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -20px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -40px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -56px}.mCS-dark-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px 0}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -20px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -40px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -56px}.mCS-light-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px 0}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -20px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -40px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -56px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px 0}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -20px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -40px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -56px}.mCS-light-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#fff;background:rgba(255,255,255,.1)}.mCS-light-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px;background:#000;background:rgba(0,0,0,.75)}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container a{border:none;box-shadow:none!important;outline:0;font-size:0;cursor:pointer;text-decoration:none}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;filter:Alpha(opacity=100);z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;filter:Alpha(opacity=100);text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important;filter:Alpha(opacity=100)!important}.bwg-play-icon1{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95;filter:Alpha(opacity=95)}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px 0}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-color:#fff;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;margin-bottom:10px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before{content:"\e904"}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{content:"\e905"}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 5px}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;filter:Alpha(opacity=0);opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{filter:Alpha(opacity=1);opacity:1}.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:inline-table;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:table-cell;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{vertical-align:middle;display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_google:hover{color:#dd4b39}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_thumbnail_img{display:block;opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;filter:Alpha(opacity=100);position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;filter:Alpha(opacity=100);padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;filter:Alpha(opacity=100);position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center;left:0}
1
+ .SumoSelect p{margin:0}.SumoSelect{width:200px}.SelectBox{padding:5px 8px}.sumoStopScroll{overflow:hidden}.SumoSelect .hidden{display:none}.SumoSelect .search-txt{display:none;outline:0}.SumoSelect .no-match{display:none;padding:6px}.SumoSelect.open .search-txt{display:inline-block;position:absolute;top:0;left:0;width:100%;margin:0;padding:4px 8px;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:5px}.SelectClass,.SumoUnder,.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{position:absolute;height:100%;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-khtml-opacity:0;top:0;left:0;right:0}.SumoSelect.open>.search>label,.SumoSelect.open>.search>span{visibility:hidden}.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{width:100%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass,.SumoUnder{display:inline-block;width:102%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass{z-index:1}.SumoSelect .select-all>label,.SumoSelect>.CaptionCont,.SumoSelect>.optWrapper>.options li.opt label{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none}.SumoSelect{display:inline-block;position:relative;outline:0}.SumoSelect.open>.CaptionCont,.SumoSelect:focus>.CaptionCont,.SumoSelect:hover>.CaptionCont{box-shadow:0 0 2px #7799d0;border-color:#7799d0}.SumoSelect>.CaptionCont{position:relative;border:1px solid #a4a4a4;min-height:14px;background-color:#fff;border-radius:2px;margin:0}.SumoSelect>.CaptionCont>span{display:block;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:default}.SumoSelect>.CaptionCont>span.placeholder{color:#000}.SumoSelect>.CaptionCont>label{position:absolute;top:0;right:0;bottom:0;width:30px}.bwg_thumbnail .SumoSelect>.CaptionCont>label>i{background-image:none;bottom:0;background-position:center center;width:16px;height:16px;display:block;position:absolute;top:0;left:0;right:0;margin:auto;background-repeat:no-repeat;opacity:.8}.SumoSelect>.optWrapper{display:none;z-index:1000;top:30px;width:100%;position:absolute;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:2px 3px 3px rgba(0,0,0,.11);border-radius:15px;overflow:hidden}.SumoSelect.open>.optWrapper{top:35px;display:block}.SumoSelect.open>.optWrapper.up{top:auto;bottom:100%;margin-bottom:5px}.SumoSelect>.optWrapper ul{list-style:none;display:block;padding:0;margin:0;overflow:auto}.SumoSelect>.optWrapper>.options{border-radius:2px;position:relative;max-height:250px}.SumoSelect>.optWrapper>.options li.group.disabled>label{opacity:.5}.SumoSelect>.optWrapper>.options li ul li.opt{padding-left:22px}.SumoSelect>.optWrapper.multiple>.options li ul li.opt{padding-left:50px}.SumoSelect>.optWrapper.isFloating>.options{max-height:100%;box-shadow:0 0 100px #595959}.SumoSelect>.optWrapper>.options li.opt{padding:6px;position:relative}.SumoSelect>.optWrapper>.options>li.opt:first-child{border-radius:2px 2px 0 0}.SumoSelect>.optWrapper>.options>li.opt:last-child{border-radius:0 0 2px 2px;border-bottom:none}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt>label:hover{color:#323a45;opacity:.7}.SumoSelect>.optWrapper>.options li.opt:hover{background-color:#e4e4e4}.SumoSelect>.optWrapper>.options li.opt.sel{background-color:#a1c0e4;border-bottom:1px solid #a1c0e4}.SumoSelect>.optWrapper>.options li label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;cursor:pointer}.SumoSelect>.optWrapper>.options li span{display:none}.SumoSelect>.optWrapper>.options li.group>label{cursor:default;padding:8px 6px;font-weight:700}.SumoSelect>.optWrapper.isFloating{position:fixed;top:0;left:0;right:0;width:90%;bottom:0;margin:auto;max-height:90%}.SumoSelect>.optWrapper>.options li.opt.disabled{background-color:inherit;pointer-events:none}.SumoSelect>.optWrapper>.options li.opt.disabled *{-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}.SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:35px;cursor:pointer}.SumoSelect .select-all>span,.SumoSelect>.optWrapper.multiple>.options li.opt span{position:absolute;display:block;width:30px;top:0;bottom:0;margin-left:-35px}.SumoSelect .select-all>span i,.SumoSelect>.optWrapper.multiple>.options li.opt span i{position:absolute;margin:auto;left:0;right:0;top:0;bottom:0;width:14px;height:14px;border:1px solid #aeaeae;border-radius:2px;box-shadow:inset 0 1px 3px rgba(0,0,0,.15);background-color:#fff}.SumoSelect>.optWrapper>.MultiControls{display:none;border-top:1px solid #ddd;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,.13);border-radius:0 0 3px 3px}.SumoSelect>.optWrapper.multiple.isFloating>.MultiControls{display:block;margin-top:5px;position:absolute;bottom:0;width:100%}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls{display:block}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls>p{padding:6px}.SumoSelect>.optWrapper.multiple>.MultiControls>p{display:inline-block;cursor:pointer;padding:12px;width:50%;box-sizing:border-box;text-align:center}.SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background-color:#f1f1f1}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{border-right:1px solid #dbdbdb;border-radius:0 0 0 3px}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel{border-radius:0 0 3px}.bwg_thumbnail .SumoSelect>.optWrapper.isFloating>.options li.opt{padding:0}.SumoSelect>.optWrapper.isFloating>.options li.opt{padding:12px 6px}.SumoSelect>.optWrapper.multiple.isFloating>.options li.opt{padding-left:35px}.SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:43px}.SumoSelect .select-all.partial>span i,.SumoSelect .select-all.selected>span i,.SumoSelect>.optWrapper.multiple>.options li.opt.selected span i{background-color:#11a911;box-shadow:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACzSURBVChTY/wPBAwkACYS1IKVEqWhfflFBsvczWANjISc1L/mEkP5wjsMv3/+ZVhTZcDAANKAC/StvvSf1WctGIPYYMNBhEXOpv9tyy6g6OtbfRFJ8UW4HMOa/bf+M7iugpoCkcClGCQH9kP/mstAd95mYGdlYvAyEmDYdu4Dw8/f/xg641UZCkN0UQMSZhfMVKnozSi2ofsPxdMgTQx2y8BOwgUwQunYpSf4Ag7iB1JiGwAouCBFqHEGogAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center center}.SumoSelect.disabled{opacity:.7;cursor:not-allowed}.SumoSelect.disabled>.CaptionCont{border-color:#ccc;box-shadow:none}.SumoSelect .select-all{border-radius:3px 3px 0 0;position:relative;border-bottom:1px solid #ddd;background-color:#fff;padding:8px 0 3px 35px;height:20px;cursor:pointer}.SumoSelect .select-all>label,.SumoSelect .select-all>span i{cursor:pointer}.SumoSelect .select-all.partial>span i{background-color:#ccc}.SumoSelect>.optWrapper>.options li.optGroup{padding-left:5px;text-decoration:underline}.mCSB_container{width:auto;margin-right:15px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCS_destroyed>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar{margin-right:15px}.mCustomScrollBox>.mCSB_scrollTools{width:16px;height:100%;top:0;right:0;opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:20px 0}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonUp{display:block;position:relative;height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{top:100%;margin-top:-40px}.mCSB_horizontal>.mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCS_destroyed>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-right:0;margin-bottom:30px}.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal>.mCSB_scrollTools a+.mCSB_draggerContainer{margin:0 20px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{display:block;position:relative;width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{margin-left:-40px;float:right}.mCustomScrollBox{-ms-touch-action:none}.mCustomScrollBox:hover>.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=100)";-ms-filter:"alpha(opacity=100)"}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.4);filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#fff;background:rgba(255,255,255,.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp{background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover,.mCSB_scrollTools .mCSB_buttonUp:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active,.mCSB_scrollTools .mCSB_buttonUp:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCS-dark>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#000;background:rgba(0,0,0,.75)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-light-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px 0}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -20px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -40px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -56px}.mCS-dark-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px 0}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -20px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -40px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -56px}.mCS-light-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px 0}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -20px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -40px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -56px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px 0}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -20px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -40px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -56px}.mCS-light-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#fff;background:rgba(255,255,255,.1)}.mCS-light-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px;background:#000;background:rgba(0,0,0,.75)}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container a{border:none;box-shadow:none!important;outline:0;font-size:0;cursor:pointer;text-decoration:none}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;filter:Alpha(opacity=100);z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;filter:Alpha(opacity=100);text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important;filter:Alpha(opacity=100)!important}.bwg-play-icon1{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95;filter:Alpha(opacity=95)}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px 0}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-color:#fff;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;margin-bottom:10px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 5px}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;filter:Alpha(opacity=0);opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{filter:Alpha(opacity=1);opacity:1}.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:inline-table;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:table-cell;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{vertical-align:middle;display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%;margin-bottom:5px}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_google:hover{color:#dd4b39}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_thumbnail_img{display:block;opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;filter:Alpha(opacity=100);position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block;width:unset!important}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center;margin:auto}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;filter:Alpha(opacity=100);padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;filter:Alpha(opacity=100);position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center;left:0}
css/tw-gb/block.css CHANGED
@@ -5,12 +5,13 @@
5
 
6
  .tw-container {
7
  position: fixed;
8
- top: 30px;
9
  left: 0;
10
  right: 0;
11
  bottom: 0;
12
  z-index: 9999999;
13
  background: rgba(0,0,0,0.7);
 
14
  }
15
 
16
  .tw-container .tw-container-wrap {
@@ -55,4 +56,4 @@
55
  .tw-gb-select {
56
  width: 100%;
57
  height: auto !important;
58
- }
5
 
6
  .tw-container {
7
  position: fixed;
8
+ top: 0;
9
  left: 0;
10
  right: 0;
11
  bottom: 0;
12
  z-index: 9999999;
13
  background: rgba(0,0,0,0.7);
14
+ height: 100%;
15
  }
16
 
17
  .tw-container .tw-container-wrap {
56
  .tw-gb-select {
57
  width: 100%;
58
  height: auto !important;
59
+ }
filemanager/UploadHandler.php CHANGED
@@ -9,1004 +9,976 @@
9
  * Licensed under the MIT license:
10
  * http://www.opensource.org/licenses/MIT
11
  */
12
-
13
- if (function_exists('current_user_can')) {
14
-
15
- if (!current_user_can(BWG()->options->permissions)) {
16
  die('Access Denied');
17
  }
18
  }
19
  else {
20
  die('Access Denied');
21
  }
22
-
23
  require_once(BWG()->plugin_dir . '/filemanager/controller.php');
24
  $controller = new FilemanagerController();
25
-
26
  $upload_handler = new bwg_UploadHandler(array(
27
- 'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : '/'),
28
- 'upload_url' => $controller->uploads_url,
29
- 'accept_file_types' => '/\.(gif|jpe?g|png|aac|m4a|f4a|oga|ogg|mp3|zip)$/i'
30
- ));
31
 
32
  class bwg_UploadHandler {
33
- protected $options;
34
- // PHP File Upload error message codes:
35
- // http://php.net/manual/en/features.file-upload.errors.php
36
- protected $error_messages = array(
37
- 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini',
38
- 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form',
39
- 3 => 'The uploaded file was only partially uploaded',
40
- 4 => 'No file was uploaded',
41
- 6 => 'Missing a temporary folder',
42
- 7 => 'Failed to write file to disk',
43
- 8 => 'A PHP extension stopped the file upload',
44
- 'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini',
45
- 'max_file_size' => 'File is too big',
46
- 'min_file_size' => 'File is too small',
47
- 'accept_file_types' => 'Filetype not allowed',
48
- 'max_number_of_files' => 'Maximum number of files exceeded',
49
- 'max_width' => 'Image exceeds maximum width',
50
- 'min_width' => 'Image requires a minimum width',
51
- 'max_height' => 'Image exceeds maximum height',
52
- 'min_height' => 'Image requires a minimum height'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  );
54
-
55
- function __construct($options = null, $initialize = true, $error_messages = null) {
56
-
57
- $this->options = array(
58
- 'media_library_folder' => 'imported_from_media_libray' . '/',
59
- 'script_url' => $this->get_full_url() . '/',
60
- 'upload_dir' => dirname($_SERVER['SCRIPT_FILENAME']) . '/files/',
61
- 'upload_url' => $this->get_full_url() . '/files/',
62
- 'user_dirs' => false,
63
- 'mkdir_mode' => 0755,
64
- 'param_name' => 'files',
65
- // Set the following option to 'POST', if your server does not support
66
- // DELETE requests. This is a parameter sent to the client:
67
- 'delete_type' => 'DELETE',
68
- 'access_control_allow_origin' => '*',
69
- 'access_control_allow_credentials' => false,
70
- 'access_control_allow_methods' => array(
71
- 'OPTIONS',
72
- 'HEAD',
73
- 'GET',
74
- 'POST',
75
- 'PUT',
76
- 'PATCH',
77
- 'DELETE'
78
- ),
79
- 'access_control_allow_headers' => array(
80
- 'Content-Type',
81
- 'Content-Range',
82
- 'Content-Disposition'
83
- ),
84
- // Enable to provide file downloads via GET requests to the PHP script:
85
- 'download_via_php' => false,
86
- // Defines which files can be displayed inline when downloaded:
87
- 'inline_file_types' => '/\.(gif|jpe?g|png)$/i',
88
- // Defines which files (based on their names) are accepted for upload:
89
- 'accept_file_types' => '/.+$/i',
90
- // The php.ini settings upload_max_filesize and post_max_size
91
- // take precedence over the following max_file_size setting:
92
- 'max_file_size' => null,
93
- 'min_file_size' => 1,
94
- // The maximum number of files for the upload directory:
95
- 'max_number_of_files' => null,
96
- // Image resolution restrictions:
97
- 'max_width' => (isset($_POST['upload_img_width']) ? (int) $_POST['upload_img_width'] : BWG()->options->upload_img_width),
98
- 'max_height' => (isset($_POST['upload_img_height']) ? (int) $_POST['upload_img_height'] : BWG()->options->upload_img_height),
99
- 'min_width' => 1,
100
- 'min_height' => 1,
101
- // Set the following option to false to enable resumable uploads:
102
- 'discard_aborted_uploads' => true,
103
- // Set to true to rotate images based on EXIF meta data, if available:
104
- 'orient_image' => false,
105
- );
106
- if (!$this->options['max_width'] || !$this->options['max_height']) {
107
- $this->options['max_width'] = NULL;
108
- $this->options['max_height'] = NULL;
109
- }
110
- $this->options += array(
111
- 'image_versions' => array(
112
- '.original' => array(
113
- 'max_width' => NULL,
114
- 'max_height' => NULL,
115
- 'jpeg_quality' => BWG()->options->jpeg_quality
116
- ),
117
- '' => array(
118
- 'max_width' => $this->options['max_width'],
119
- 'max_height' => $this->options['max_height'],
120
- 'jpeg_quality' => BWG()->options->jpeg_quality
121
- ),
122
- 'thumb' => array(
123
- 'max_width' => ((isset($_POST['upload_thumb_width']) && (int) $_POST['upload_thumb_width']) ? (int) $_POST['upload_thumb_width'] : BWG()->options->upload_thumb_width),
124
- 'max_height' => ((isset($_POST['upload_thumb_height']) && (int) $_POST['upload_thumb_height']) ? (int) $_POST['upload_thumb_height'] : BWG()->options->upload_thumb_height),
125
- 'jpeg_quality' => BWG()->options->jpeg_quality
126
- ),
127
- )
128
- );
129
  $this->options['max_width'] = NULL;
130
  $this->options['max_height'] = NULL;
131
- if ($options) {
132
- $this->options = array_merge($this->options, $options);
133
- }
134
- if ($error_messages) {
135
- $this->error_messages = array_merge($this->error_messages, $error_messages);
136
- }
137
- if ($initialize) {
138
- $this->initialize();
139
- }
140
  }
141
-
142
- protected function initialize() {
143
- switch ($_SERVER['REQUEST_METHOD']) {
144
- case 'OPTIONS':
145
- case 'HEAD':
146
- $this->head();
147
- break;
148
- case 'GET':
149
- $this->get();
150
- break;
151
- case 'PATCH':
152
- case 'PUT':
153
- case 'POST':
154
- $this->post();
155
- break;
156
- case 'DELETE':
157
- $this->delete();
158
- break;
159
- default:
160
- $this->header('HTTP/1.1 405 Method Not Allowed');
161
- }
 
 
162
  }
163
-
164
- protected function get_full_url() {
165
- $https = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off';
166
- return
167
- ($https ? 'https://' : 'http://').
168
- (!empty($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'].'@' : '').
169
- (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ($_SERVER['SERVER_NAME'].
170
- ($https && $_SERVER['SERVER_PORT'] === 443 ||
171
- $_SERVER['SERVER_PORT'] === 80 ? '' : ':'.$_SERVER['SERVER_PORT']))).
172
- substr($_SERVER['SCRIPT_NAME'],0, strrpos($_SERVER['SCRIPT_NAME'], '/'));
173
  }
174
-
175
- protected function get_user_id() {
176
- WDWLibrary::bwg_session_start();
177
- return session_id();
178
  }
 
179
 
180
- protected function get_user_path() {
181
- if ($this->options['user_dirs']) {
182
- return $this->get_user_id().'/';
183
- }
184
- return '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  }
 
186
 
187
- protected function get_upload_path($file_name = null, $version = null) {
188
- $file_name = $file_name ? $file_name : '';
189
- $version_path = empty($version) ? '' : $version.'/';
190
- $media_library_folder = (isset($_REQUEST['import']) && $_REQUEST['import'] == 1) ? $this->options['media_library_folder'] : '';
191
 
192
- return $this->options['upload_dir'] . $media_library_folder . $this->get_user_path() . $version_path . $file_name;
193
- }
194
 
195
- protected function get_query_separator($url) {
196
- return strpos($url, '?') === false ? '?' : '&';
197
- }
198
 
199
- protected function get_download_url($file, $version = null) {
200
- if ($this->options['download_via_php']) {
201
- $url = $this->options['script_url'] . $this->get_query_separator($this->options['script_url']) . 'file='.rawurlencode($file->name);
202
- if ($version) {
203
- $url .= '&version='.rawurlencode($version);
204
- }
205
- return $url.'&download=1';
206
- }
207
- $version_path = empty($version) ? '' : rawurlencode($version).'/';
208
- $file_path = !empty($file->path) ? $file->path : '';
209
- $url = $this->options['upload_url'].$this->get_user_path() . $file_path . $version_path . rawurlencode($file->name);
210
- return $url;
211
  }
212
 
213
- protected function set_file_delete_properties($file) {
214
- $file->delete_url = $this->options['script_url']
215
- .$this->get_query_separator($this->options['script_url'])
216
- .'file='.rawurlencode($file->name);
217
- $file->delete_type = $this->options['delete_type'];
218
- if ($file->delete_type !== 'DELETE') {
219
- $file->delete_url .= '&_method=DELETE';
220
- }
221
- if ($this->options['access_control_allow_credentials']) {
222
- $file->delete_with_credentials = true;
 
 
 
 
 
 
 
 
 
 
223
  }
 
 
224
  }
 
 
 
225
 
226
- // Fix for overflowing signed 32 bit integers,
227
- // works for sizes up to 2^32-1 bytes (4 GiB - 1):
228
- protected function fix_integer_overflow($size) {
229
- if ($size < 0) {
230
- $size += 2.0 * (PHP_INT_MAX + 1);
231
- }
232
- return $size;
 
 
 
 
233
  }
 
234
 
235
- protected function get_file_size($file_path, $clear_stat_cache = false) {
236
- /*if ($clear_stat_cache) {
237
- clearstatcache(true, $file_path);
238
- }*/
239
- return $this->fix_integer_overflow(filesize($file_path));
240
  }
241
 
242
- protected function is_valid_file_object($file_name) {
243
- $file_path = $this->get_upload_path($file_name);
244
- if (is_file($file_path) && $file_name[0] !== '.') {
245
- return true;
246
- }
247
- return false;
 
 
 
 
 
 
 
 
248
  }
249
 
250
- protected function get_file_object($file_name) {
251
- if ($this->is_valid_file_object($file_name)) {
252
- $file = new stdClass();
253
- $file->name = $file_name;
254
- $file->size = $this->get_file_size(
255
- $this->get_upload_path($file_name)
256
- );
257
- $file->url = $this->get_download_url($file);
258
- foreach($this->options['image_versions'] as $version => $options) {
259
- if (!empty($version)) {
260
- if (is_file($this->get_upload_path($file_name, $version))) {
261
- $file->{$version.'_url'} = $this->get_download_url(
262
- $file,
263
- $version
264
- );
265
- }
266
  }
267
  }
268
- $this->set_file_delete_properties($file);
269
- return $file;
270
  }
271
- return null;
 
 
272
  }
273
 
274
- protected function get_file_objects($iteration_method = 'get_file_object') {
275
- $upload_dir = $this->get_upload_path();
276
- if (!is_dir($upload_dir)) {
277
- return array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  }
279
- return array_values(array_filter(array_map(
280
- array($this, $iteration_method),
281
- scandir($upload_dir)
282
- )));
283
  }
 
 
 
 
284
 
285
- protected function count_file_objects() {
286
- return count($this->get_file_objects('is_valid_file_object'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  }
288
 
289
- protected function create_scaled_image($file_name, $version, $options) {
290
- $file_path = $this->get_upload_path($file_name);
291
- if (!empty($version) && ($version != 'main')) {
292
- $version_dir = $this->get_upload_path(null, $version);
293
- if (!is_dir($version_dir)) {
294
- mkdir($version_dir, $this->options['mkdir_mode'], true);
295
- }
296
- $new_file_path = $version_dir.'/'.$file_name;
297
- } else {
298
- $new_file_path = $file_path;
299
- }
300
- $success = WDWLibrary::resize_image($file_path, $new_file_path, $options['max_width'], $options['max_height']);
301
 
302
- return $success;
303
  }
 
 
 
 
304
 
305
- protected function get_error_message($error) {
306
- return array_key_exists($error, $this->error_messages) ? $this->error_messages[$error] : $error;
307
  }
 
 
308
 
309
- function get_config_bytes($val) {
310
- $val = trim($val);
311
- $int_val = intval($val);
312
- $last = strtolower($val[strlen($val)-1]);
313
- switch($last) {
314
- case 'g':
315
- $int_val *= 1024;
316
- case 'm':
317
- $int_val *= 1024;
318
- case 'k':
319
- $int_val *= 1024;
320
- }
321
- return $this->fix_integer_overflow($int_val);
322
  }
 
 
 
 
 
323
 
324
- protected function validate($uploaded_file, $file, $error, $index) {
325
- if ($error) {
326
- $file->error = $this->get_error_message($error);
327
- return false;
328
- }
329
- $content_length = $this->fix_integer_overflow(intval($_SERVER['CONTENT_LENGTH']));
330
- $post_max_size = $this->get_config_bytes(ini_get('post_max_size'));
331
- if ($post_max_size && ($content_length > $post_max_size)) {
332
- $file->error = $this->get_error_message('post_max_size');
333
- return false;
334
- }
335
- if (!preg_match($this->options['accept_file_types'], $file->name)) {
336
- $file->error = $this->get_error_message('accept_file_types');
337
- return false;
338
- }
339
- if ($uploaded_file && is_uploaded_file($uploaded_file)) {
340
- $file_size = $this->get_file_size($uploaded_file);
341
- }
342
- else {
343
- $file_size = $content_length;
344
- }
345
- if ($this->options['max_file_size'] && (
346
- $file_size > $this->options['max_file_size'] ||
347
- $file->size > $this->options['max_file_size'])
348
- ) {
349
- $file->error = $this->get_error_message('max_file_size');
350
- return false;
351
- }
352
- if ($this->options['min_file_size'] &&
353
- $file_size < $this->options['min_file_size']) {
354
- $file->error = $this->get_error_message('min_file_size');
355
- return false;
356
- }
357
- if (is_int($this->options['max_number_of_files']) && (
358
- $this->count_file_objects() >= $this->options['max_number_of_files'])
359
- ) {
360
- $file->error = $this->get_error_message('max_number_of_files');
361
- return false;
362
- }
363
- list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($uploaded_file, ENT_COMPAT | ENT_QUOTES));
364
- if (is_int($img_width)) {
365
- // if ($this->options['max_width'] && $img_width > $this->options['max_width']) {
366
- // $file->error = $this->get_error_message('max_width');
367
- // return false;
368
- // }
369
- // if ($this->options['max_height'] && $img_height > $this->options['max_height']) {
370
- // $file->error = $this->get_error_message('max_height');
371
- // return false;
372
- // }
373
- if ($this->options['min_width'] && $img_width < $this->options['min_width']) {
374
- $file->error = $this->get_error_message('min_width');
375
- return false;
376
- }
377
- if ($this->options['min_height'] && $img_height < $this->options['min_height']) {
378
- $file->error = $this->get_error_message('min_height');
379
- return false;
380
- }
381
- }
382
- return true;
383
  }
 
 
384
 
385
- protected function upcount_name_callback($matches) {
386
- $index = isset($matches[1]) ? intval($matches[1]) + 1 : 1;
387
- $ext = isset($matches[2]) ? $matches[2] : '';
388
- return ' ('.$index.')'.$ext;
389
  }
 
 
390
 
391
- protected function upcount_name($name) {
392
- return preg_replace_callback(
393
- '/(?:(?: \(([\d]+)\))?(\.[^.]+))?$/',
394
- array($this, 'upcount_name_callback'),
395
- $name,
396
- 1
397
- );
398
  }
 
 
 
 
 
 
 
 
 
 
 
 
399
 
400
- protected function get_unique_filename($name, $type, $index, $content_range) {
401
- while(is_dir($this->get_upload_path($name))) {
402
- $name = $this->upcount_name($name);
403
  }
404
- // Keep an existing filename if this is part of a chunked upload:
405
- $uploaded_bytes = $this->fix_integer_overflow(intval(isset($content_range[1]) ? $content_range[1] : 0));
406
- while(is_file($this->get_upload_path($name))) {
407
- if ($uploaded_bytes === $this->get_file_size($this->get_upload_path($name))) {
408
- break;
409
- }
410
- $name = $this->upcount_name($name);
411
  }
412
- return $name;
413
  }
414
 
415
- protected function trim_file_name($name, $type, $index, $content_range) {
416
- // Remove path information and dots around the filename, to prevent uploading
417
- // into different directories or replacing hidden system files.
418
- // Also remove control characters and spaces (\x00..\x20) around the filename:
419
- $name = trim(stripslashes($name), ".\x00..\x20");
420
- $name = str_replace(array(" ",'%','&'), array("_",'',''), $name);
421
- $tempname = explode(".", $name);
422
-
423
- if ( $tempname[0] == '' ) {
424
- $tempname[0] = 'unnamed-file';
425
- $name = $tempname[0].".".$tempname[1];
426
- }
427
- // Use a timestamp for empty filenames:
428
- if (!$name) {
429
- $name = str_replace('.', '-', microtime(true));
430
- }
431
- // Add missing file extension for known image types:
432
- if (strpos($name, '.') === false &&
433
- preg_match('/^image\/(gif|jpe?g|png)/', $type, $matches)) {
434
- $name .= '.' . $matches[1];
 
 
 
 
 
 
435
  }
436
- return $name;
437
  }
438
 
439
- protected function get_file_name($name, $type, $index, $content_range) {
440
- return $this->get_unique_filename(
441
- $this->trim_file_name($name, $type, $index, $content_range),
442
- $type,
443
- $index,
444
- $content_range
445
- );
446
- }
447
 
448
- protected function handle_form_data($file, $index) {
449
- // Handle form data, e.g. $_REQUEST['description'][$index]
 
 
 
 
 
 
 
 
450
  }
451
-
452
- protected function orient_image($file_path) {
453
- if (!function_exists('exif_read_data')) {
454
- return false;
455
- }
456
- $exif = @exif_read_data($file_path);
457
- if ($exif === false) {
458
- return false;
459
- }
460
- $orientation = intval(@$exif['Orientation']);
461
- if (!in_array($orientation, array(3, 6, 8))) {
462
- return false;
463
- }
464
- @ini_set('memory_limit', '-1');
465
- $image = @imagecreatefromjpeg($file_path);
466
- switch ($orientation) {
467
- case 3:
468
- $image = @imagerotate($image, 180, 0);
469
- break;
470
- case 6:
471
- $image = @imagerotate($image, 270, 0);
472
- break;
473
- case 8:
474
- $image = @imagerotate($image, 90, 0);
475
- break;
476
- default:
477
- return false;
478
- }
479
- $success = imagejpeg($image, $file_path);
480
- // Free up memory (imagedestroy does not delete files):
481
- @imagedestroy($image);
482
- @ini_restore('memory_limit');
483
- return $success;
484
  }
485
 
486
- protected function handle_image_file($file_path, $file) {
487
- if ($this->options['orient_image']) {
488
- $this->orient_image($file_path);
489
- }
490
- $failed_versions = array();
491
- foreach($this->options['image_versions'] as $version => $options) {
492
- if ($this->create_scaled_image($file->name, $version, $options)) {
493
- if (!empty($version)) {
494
- $file->{$version.'_url'} = $this->get_download_url($file, $version);
495
- }
496
- else {
497
- $file->size = $this->get_file_size($file_path, true);
498
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  }
500
  else {
501
- $failed_versions[] = $version;
502
  }
503
  }
504
- switch (count($failed_versions)) {
505
- case 0:
506
- break;
507
- case 1:
508
- $file->error = 'Failed to create scaled version: ' .$failed_versions[0];
509
- break;
510
- default:
511
- $file->error = 'Failed to create scaled versions: ' .implode($failed_versions,', ');
512
  }
513
  }
 
 
 
 
 
 
 
 
 
 
514
 
515
- protected function handle_zip_file($file_path, $file) {
516
- $zip = new ZipArchive;
517
- $res = $zip->open($file_path);
518
- if ($res === TRUE) {
519
- $allow_extract = true;
520
- for($i = 0; $i < $zip->numFiles; $i++) {
521
- $OnlyFileName = $zip->getNameIndex($i);
522
- $FullFileName = $zip->statIndex($i);
523
- if (!($FullFileName['name'][strlen($FullFileName['name']) - 1] == "/")) {
524
- if (!preg_match('#\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|ini|txt)$#i', $OnlyFileName)) {
525
- $allow_extract = false;
526
- }
527
  }
528
  }
529
- if ($allow_extract) {
530
- $target_dir = substr($file_path, 0, strlen($file_path) - 4);
531
- if (!is_dir($target_dir)) {
532
- mkdir($target_dir, 0755);
533
- }
534
- $zip->extractTo($target_dir);
535
- }
536
- else {
537
- $file->error = 'Zip file should contain only image files.';
538
- }
539
- $zip->close();
540
- if ($allow_extract) {
541
- $this->handle_directory($target_dir);
542
  }
 
 
 
 
 
 
 
 
543
  }
544
- unlink($file_path);
545
- return $file->error;
546
  }
 
 
 
 
547
 
548
- protected function handle_directory($target_dir) {
549
- $extracted_files = scandir($target_dir);
550
- if ($extracted_files) {
551
- $temp_upload_dir = $this->options['upload_dir'];
552
- $this->options['upload_dir'] = $target_dir . '/';
553
- foreach ($extracted_files as $ex_file) {
554
- if ($ex_file != '.' && $ex_file != '..') {
555
- $ex_file = $target_dir . '/' . $ex_file;
556
- rename($ex_file, str_replace(array( " ", "%" ), array( "_", "" ), $ex_file));
557
- $ex_file = str_replace(array( " ", "%" ), array( "_", "" ), $ex_file);
558
- if (is_file($ex_file)) {
559
- $type = filetype($ex_file);
560
- $name = basename($ex_file);
561
- $extension = explode(".", $name);
562
- $extension = end($extension);
563
- $name = str_replace('.' . $extension, strtolower('.' . $extension), $name);
564
- $index = null;
565
- $content_range = null;
566
- $size = $this->get_file_size($ex_file);
567
- $file = new stdClass();
568
- $file->name = $name;
569
- $file->size = $this->fix_integer_overflow(intval($size));
570
- $file->type = $type;
571
- $file->url = $this->get_download_url($file);
572
- list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($ex_file, ENT_COMPAT | ENT_QUOTES));
573
- if ($this->options['max_width'] && $this->options['max_height']) {
574
- // Zip Upload.
575
- $this->create_scaled_image($file->name, 'main', $this->options);
576
- }
577
- if (is_int($img_width)) {
578
- $this->handle_image_file($ex_file, $file);
579
- }
580
  }
581
- elseif (is_dir($ex_file)) {
582
- $this->handle_directory($ex_file);
583
  }
584
  }
 
 
 
585
  }
586
- $this->options['upload_dir'] = $temp_upload_dir;
587
  }
 
588
  }
 
589
 
590
- protected function handle_file_import($uploaded_file, $name) {
591
- $parent_dir = wp_upload_dir();
592
- $basedir = $parent_dir['basedir'];
593
- $file_type_array = explode('.', $name);
594
- $type = strtolower(end($file_type_array));
595
- $file = new stdClass();
596
- if ( WDWLibrary::allowed_upload_types($type) ) {
597
- $file->error = false;
598
- $file->name = $this->get_file_name($name, $type, 0, "");
599
- $file->type = $type;
600
- $this->handle_form_data($file, 0);
601
- $upload_dir = $this->get_upload_path();
602
- if ( !is_dir($upload_dir) ) {
603
- mkdir($upload_dir, $this->options['mkdir_mode'], true);
604
- }
605
- $file_path = $this->get_upload_path($file->name);
606
- copy($basedir . '/' . $uploaded_file, $file_path);
607
-
608
- if ( $this->options['max_width'] && $this->options['max_height'] ) {
609
- // Media library Upload.
610
- $this->create_scaled_image($file->name, 'main', $this->options);
611
- }
612
- list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
613
- if ( is_int($img_width) ) {
614
- $this->handle_image_file($file_path, $file);
615
- }
616
- $this->set_file_delete_properties($file);
617
- // Additional information.
618
- $file->path = '/' . $this->options['media_library_folder'];
619
- $file->filetype = $type;
620
- $file->filename = str_replace('.' . $file->filetype, '', $file->name);
621
- $file->alt = $file->filename;
622
- $file->reliative_url = $this->options['upload_url'] . '/' . $this->options['media_library_folder'] . $file->name;
623
- $file->url = '/' . $this->options['media_library_folder'] . $file->name;
624
- $file->thumb = $this->options['upload_url'] . '/' . $this->options['media_library_folder'] . 'thumb/' . $file->name;
625
- $file->thumb_url = '/' . $this->options['media_library_folder'] . 'thumb/' . $file->name;
626
- $file_size_kb = (int)(filesize($file_path) / 1024);
627
- $file->size = $file_size_kb . ' KB';
628
- $file->date_modified = date('Y-m-d H:i:s', filemtime($file_path));
629
- $image_info = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
630
- $file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
631
- if ( BWG()->options->read_metadata ) {
632
- $meta = WDWLibrary::read_image_metadata($upload_dir . '.original/' . $file->name);
633
- $file->credit = $meta['credit'];
634
- $file->aperture = $meta['aperture'];
635
- $file->camera = $meta['camera'];
636
- $file->caption = $meta['caption'];
637
- $file->iso = $meta['iso'];
638
- $file->orientation = $meta['orientation'];
639
- $file->copyright = $meta['copyright'];
640
- $file->alt = $meta['title'] ? $meta['title'] : $file->filename;
641
- $file->tags = $meta['tags'];
642
- }
643
- }
644
- else {
645
- $file->error = true;
646
- }
647
- return $file;
648
- }
649
-
650
- protected function handle_file_upload($uploaded_file, $name, $size, $type, $error, $index = null, $content_range = null, $path = '') {
651
- $file = new stdClass();
652
- $file->dir = $this->get_upload_path();
653
- $file->path = $path;
654
- $file->name = $this->get_file_name($name, $type, $index, $content_range);
655
- $file->size = $this->fix_integer_overflow(intval($size));
656
  $file->type = $type;
657
- if ( $this->validate($uploaded_file, $file, $error, $index) ) {
658
- $this->handle_form_data($file, $index);
659
- $upload_dir = $this->get_upload_path();
660
- if (!is_dir($upload_dir)) {
661
- mkdir($upload_dir, $this->options['mkdir_mode'], true);
662
- }
663
- $file_path = $this->get_upload_path($file->name);
664
- $append_file = $content_range && is_file($file_path) &&
665
- $file->size = $this->get_file_size($file_path);
666
- if ($uploaded_file && is_uploaded_file($uploaded_file)) {
667
- // multipart/formdata uploads (POST method uploads)
668
- if ($append_file) {
669
- file_put_contents(
670
- $file_path,
671
- fopen($uploaded_file, 'r'),
672
- FILE_APPEND
673
- );
674
- }
675
- else {
676
- move_uploaded_file($uploaded_file, $file_path);
677
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
678
  }
679
  else {
680
- // Non-multipart uploads (PUT method support)
681
- file_put_contents(
682
- $file_path,
683
- fopen('php://input', 'r'),
684
- $append_file ? FILE_APPEND : 0
685
- );
686
  }
687
- $file_size = $this->get_file_size($file_path, $append_file);
688
- if ($file_size === $file->size) {
689
- if ($this->options['max_width'] && $this->options['max_height']) {
690
- // Upload.
691
- $this->create_scaled_image($file->name, 'main', $this->options);
692
- }
693
- $file->url = $this->get_download_url($file);
694
- list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
695
- if (is_int($img_width)) {
696
- $this->handle_image_file($file_path, $file);
697
- }
698
- else {
699
- $file->error = $this->handle_zip_file($file_path, $file);
700
- }
 
701
  }
702
  else {
703
- $file->size = $file_size;
704
- if (!$content_range && $this->options['discard_aborted_uploads']) {
705
- unlink($file_path);
706
- $file->error = 'abort';
707
- }
708
  }
709
-
710
- $file->filename = str_replace( "_", " ", substr($file->name, 0, strrpos($file->name, '.')) );
711
- $file_ex = explode('.', $file->name);
712
- $file->type = strtolower(end($file_ex));
713
- $file->thumb = $file->name;
714
- $file->size = (int)($file->size / 1024) . ' KB';
715
- $image_info = @getimagesize(htmlspecialchars_decode($file->url, ENT_COMPAT | ENT_QUOTES));
716
- $file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
717
- $meta = WDWLibrary::read_image_metadata( $file->dir . '/.original/' . $file->name );
718
- $file->alt = (BWG()->options->read_metadata && $meta['title']) ? $meta['title'] : str_replace("_", " ", $file->filename);
719
- $file->credit = !empty($meta['credit']) ? $meta['credit'] : '';
720
- $file->aperture = !empty($meta['aperture']) ? $meta['aperture'] : '';
721
- $file->camera = !empty($meta['camera']) ? $meta['camera'] : '';
722
- $file->caption = !empty($meta['caption']) ? $meta['caption'] : '';
723
- $file->iso = !empty($meta['iso']) ? $meta['iso'] : '';
724
- $file->orientation = !empty($meta['orientation']) ? $meta['orientation'] : '';
725
- $file->copyright = !empty($meta['copyright']) ? $meta['copyright']: '';
726
- $file->tags = !empty($meta['tags']) ? $meta['tags'] : '';
727
- $this->set_file_delete_properties($file);
728
- // $file->date_modified = date('d F Y, H:i');
729
  }
730
- return $file;
731
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
 
733
- protected function readfile($file_path) {
734
- return readfile($file_path);
735
- }
736
 
737
- protected function body($str) {
738
- echo $str;
739
- }
740
 
741
- protected function header($str) {
742
- header($str);
743
- }
744
 
745
- protected function generate_response($content, $print_response = true) {
746
- if ($print_response) {
747
- $json = json_encode($content);
748
- $redirect = isset($_REQUEST['redirect']) ? stripslashes($_REQUEST['redirect']) : null;
749
- if ($redirect) {
750
- $this->header('Location: '.sprintf($redirect, rawurlencode($json)));
751
- return;
752
- }
753
- $this->head();
754
- if (isset($_SERVER['HTTP_CONTENT_RANGE'])) {
755
- $files = isset($content[$this->options['param_name']]) ? $content[$this->options['param_name']] : null;
756
- if ($files && is_array($files) && is_object($files[0]) && $files[0]->size) {
757
- $this->header('Range: 0-'.($this->fix_integer_overflow(intval($files[0]->size)) - 1));
758
- }
759
  }
760
- $this->body($json);
761
  }
762
- return $content;
763
  }
764
 
765
- protected function get_version_param() {
766
- return isset($_GET['version']) ? basename(stripslashes($_GET['version'])) : null;
767
- }
768
 
769
- protected function get_file_name_param() {
770
- return isset($_GET['file']) ? basename(stripslashes($_GET['file'])) : null;
771
- }
772
 
773
- protected function get_file_type($file_path) {
774
- switch (strtolower(pathinfo($file_path, PATHINFO_EXTENSION))) {
775
- case 'jpeg':
776
- case 'jpg':
777
- return 'image/jpeg';
778
- case 'png':
779
- return 'image/png';
780
- case 'gif':
781
- return 'image/gif';
782
- default:
783
- return '';
784
- }
 
 
 
785
  }
 
786
 
787
- protected function download() {
788
- if (!$this->options['download_via_php']) {
789
- $this->header('HTTP/1.1 403 Forbidden');
790
- return;
791
- }
792
- $file_name = $this->get_file_name_param();
793
- if ($this->is_valid_file_object($file_name)) {
794
- $file_path = $this->get_upload_path($file_name, $this->get_version_param());
795
- if (is_file($file_path)) {
796
- if (!preg_match($this->options['inline_file_types'], $file_name)) {
797
- $this->header('Content-Description: File Transfer');
798
- $this->header('Content-Type: application/octet-stream');
799
- $this->header('Content-Disposition: attachment; filename="'.$file_name.'"');
800
- $this->header('Content-Transfer-Encoding: binary');
801
- }
802
- else {
803
- // Prevent Internet Explorer from MIME-sniffing the content-type:
804
- $this->header('X-Content-Type-Options: nosniff');
805
- $this->header('Content-Type: '.$this->get_file_type($file_path));
806
- $this->header('Content-Disposition: inline; filename="'.$file_name.'"');
807
- }
808
- $this->header('Content-Length: '.$this->get_file_size($file_path));
809
- $this->header('Last-Modified: '.gmdate('D, d M Y H:i:s T', filemtime($file_path)));
810
- $this->readfile($file_path);
811
  }
 
 
 
812
  }
813
  }
 
814
 
815
- protected function send_content_type_header() {
816
- $this->header('Vary: Accept');
817
- if (isset($_SERVER['HTTP_ACCEPT']) &&
818
- (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false)) {
819
- $this->header('Content-type: application/json');
820
- }
821
- else {
822
- $this->header('Content-type: text/plain');
823
- }
824
  }
825
-
826
- protected function send_access_control_headers() {
827
- $this->header('Access-Control-Allow-Origin: '.$this->options['access_control_allow_origin']);
828
- $this->header('Access-Control-Allow-Credentials: '
829
- .($this->options['access_control_allow_credentials'] ? 'true' : 'false'));
830
- $this->header('Access-Control-Allow-Methods: '
831
- .implode(', ', $this->options['access_control_allow_methods']));
832
- $this->header('Access-Control-Allow-Headers: '
833
- .implode(', ', $this->options['access_control_allow_headers']));
834
  }
 
835
 
836
- public function head() {
837
- $this->header('Pragma: no-cache');
838
- $this->header('Cache-Control: no-store, no-cache, must-revalidate');
839
- $this->header('Content-Disposition: inline; filename="files.json"');
840
- // Prevent Internet Explorer from MIME-sniffing the content-type:
841
- $this->header('X-Content-Type-Options: nosniff');
842
- if ($this->options['access_control_allow_origin']) {
843
- $this->send_access_control_headers();
844
- }
845
- $this->send_content_type_header();
 
 
 
 
 
846
  }
 
 
847
 
848
- public function get($print_response = true) {
849
- if ( isset($_GET['import']) && $_GET['import'] == 1 ) {
850
- $file_names = json_decode(isset($_REQUEST['file_namesML']) ? stripslashes($_REQUEST['file_namesML']) : '');
851
- $files = array();
852
- foreach ($file_names as $index => $value) {
853
- $file_name_array = explode('/', $value);
854
- $files[] = $this->handle_file_import($value, end($file_name_array));
855
- }
856
- echo json_encode($files);
857
- return;
858
  }
 
859
 
860
- if ($print_response && isset($_GET['download'])) {
861
- return $this->download();
862
- }
863
- $file_name = $this->get_file_name_param();
864
- if ($file_name) {
865
- $response = array(
866
- substr($this->options['param_name'], 0, -1) => $this->get_file_object($file_name)
867
- );
868
- }
869
- else {
870
- $response = array(
871
- $this->options['param_name'] => $this->get_file_objects()
872
- );
873
- }
874
- return $this->generate_response($response, $print_response);
875
  }
876
 
877
- public function post($print_response = true) {
878
- global $wpdb;
879
- $path = isset($_REQUEST['dir']) ? str_replace('\\', '', ($_REQUEST['dir'])) . '/' : '/';
880
- if ( isset($_REQUEST['import']) && $_REQUEST['import'] == 1 ) {
881
- $files = array();
882
- $file_names = json_decode( isset($_REQUEST['file_namesML']) ? stripslashes($_REQUEST['file_namesML']) : array() );
883
- if ( !empty($file_names) ) {
884
- // Create IMPORTED_FROM_MEDIA_LIBRAY folder.
885
- if ( !is_dir( $this->get_upload_path() ) ) {
886
- $folder = new stdClass();
887
- $folder_name = trim($this->options['media_library_folder'],'/');
888
- $folder->path = '/';
889
- $folder->name = $folder_name;
890
- $folder->filename = $folder_name;
891
- $folder->alt = $folder_name;
892
- $wpdb->insert( $wpdb->prefix . 'bwg_file_paths', $this->set_folder_info($folder) );
893
- }
894
- // Adding images on IMPORTED_FROM_MEDIA_LIBRAY folder.
895
- foreach ($file_names as $index => $value) {
896
- $file_name_array = explode('/', $value);
897
- $file_info = $this->handle_file_import($value, end($file_name_array));
898
- $files[] = $file_info;
899
- $wpdb->insert($wpdb->prefix . 'bwg_file_paths', $this->set_file_info($file_info) );
900
- }
901
- echo json_encode($files);
902
- }
903
- return;
904
- }
905
- if (isset($_REQUEST['_method']) && $_REQUEST['_method'] === 'DELETE') {
906
- return $this->delete($print_response);
907
- }
908
- $upload = isset($_FILES[$this->options['param_name']]) ? $_FILES[$this->options['param_name']] : null;
909
  $files = array();
910
- // Parse the Content-Disposition header, if available:
911
- $file_name = isset($_SERVER['HTTP_CONTENT_DISPOSITION']) ? rawurldecode(preg_replace(
912
- '/(^[^"]+")|("$)/',
913
- '',
914
- $_SERVER['HTTP_CONTENT_DISPOSITION']
915
- )) : null;
916
- // Parse the Content-Range header, which has the following form:
917
- // Content-Range: bytes 0-524287/2000000
918
- $content_range = isset($_SERVER['HTTP_CONTENT_RANGE']) ? preg_split('/[^0-9]+/', $_SERVER['HTTP_CONTENT_RANGE']) : null;
919
- $size = $content_range ? $content_range[3] : null;
920
- if ($upload && is_array($upload['tmp_name'])) {
921
- // param_name is an array identifier like "files[]",
922
- // $_FILES is a multi-dimensional array:
923
- foreach ($upload['tmp_name'] as $index => $value) {
924
- $filename = $file_name ? $file_name : $upload['name'][$index];
925
- $extension = explode(".", $filename);
926
- $extension = end($extension);
927
- $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
928
- $files[] = $this->handle_file_upload(
929
- $upload['tmp_name'][$index],
930
- $filename,
931
- $size ? $size : $upload['size'][$index],
932
- $upload['type'][$index],
933
- $upload['error'][$index],
934
- $index,
935
- $content_range,
936
- $path
937
- );
938
  }
 
 
 
 
 
 
 
 
 
 
939
  }
940
- else {
941
- $filename = $file_name ? $file_name : (isset($upload['name']) ? $upload['name'] : null);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
942
  $extension = explode(".", $filename);
943
  $extension = end($extension);
944
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
945
- // param_name is a single object identifier like "file",
946
- // $_FILES is a one-dimensional array:
947
- $files[] = $this->handle_file_upload(
948
- isset($upload['tmp_name']) ? $upload['tmp_name'] : null,
949
- $filename,
950
- $size ? $size : (isset($upload['size']) ? $upload['size'] : $_SERVER['CONTENT_LENGTH']),
951
- isset($upload['type']) ? $upload['type'] : $_SERVER['CONTENT_TYPE'],
952
- isset($upload['error']) ? $upload['error'] : null,
953
- null,
954
- $content_range,
955
- $path
956
- );
 
 
 
 
 
957
  }
958
-
959
- if ( !empty($files) ) {
960
- foreach( $files as $file ) {
961
- if ( empty($file->error) ) {
962
- $wpdb->insert($wpdb->prefix . 'bwg_file_paths', $this->set_file_info($file) );
963
- }
964
- }
965
- }
966
- return $this->generate_response( array($this->options['param_name'] => $files), $print_response);
967
  }
968
 
969
- public function delete($print_response = true) {
970
- $file_name = $this->get_file_name_param();
971
- $file_path = $this->get_upload_path($file_name);
972
- $success = is_file($file_path) && $file_name[0] !== '.' && unlink($file_path);
973
- if ($success) {
974
- foreach($this->options['image_versions'] as $version => $options) {
975
- if (!empty($version)) {
976
- $file = $this->get_upload_path($file_name, $version);
977
- if (is_file($file)) {
978
- unlink($file);
979
- }
 
 
980
  }
981
  }
982
  }
983
- return $this->generate_response(array('success' => $success), $print_response);
984
  }
985
 
 
 
 
986
  /**
987
  * Set folder info
988
  *
989
  * @param $info
 
990
  * @return mixed
991
  */
992
- private function set_folder_info( $info ) {
993
- $data['is_dir'] = 1;
994
- $data['path'] = $info->path;
995
- $data['name'] = $info->name;
996
- $data['filename'] = $info->name;
997
- $data['thumb'] = '/filemanager/images/dir.png';
998
- $data['alt'] = $info->alt;
999
- $data['date_modified'] = date("Y-m-d H:i:s");
1000
- return $data;
1001
- }
 
1002
 
1003
  /**
1004
  * Set file info.
1005
  *
1006
  * @param $info
 
1007
  * @return mixed
1008
  */
1009
  private function set_file_info( $info ) {
 
 
 
 
1010
  $data = array();
1011
  $data['is_dir'] = 0;
1012
  $data['date_modified'] = date('Y-m-d H:i:s');
@@ -1018,16 +990,17 @@ class bwg_UploadHandler {
1018
  $data['thumb'] = isset($info->name) ? 'thumb/' . $info->name : '';
1019
  $data['size'] = isset($info->size) ? $info->size : '';
1020
  $data['resolution'] = isset($info->resolution) ? $info->resolution : '';
1021
- $data['credit'] = isset($info->credit) ? iconv_mime_decode($info->credit) : '';
1022
- $data['aperture'] = isset($info->aperture) ? iconv_mime_decode($info->aperture) : '';
1023
- $data['camera'] = isset($info->camera) ? iconv_mime_decode($info->camera) : '';
1024
- $data['caption'] = isset($info->caption) ? iconv_mime_decode($info->caption) : '';
1025
- $data['iso'] = isset($info->iso) ? iconv_mime_decode($info->iso) : '';
1026
  $data['orientation'] = isset($info->orientation) ? $info->orientation : '';
1027
- $data['copyright'] = isset($info->copyright) ? iconv_mime_decode($info->copyright) : '';
1028
- $data['tags'] = isset($info->tags) ? iconv_mime_decode($info->tags) : '';
1029
 
1030
  return $data;
1031
  }
1032
  }
 
1033
  die();
9
  * Licensed under the MIT license:
10
  * http://www.opensource.org/licenses/MIT
11
  */
12
+ if ( function_exists('current_user_can') ) {
13
+
14
+ if ( !current_user_can(BWG()->options->permissions) ) {
 
15
  die('Access Denied');
16
  }
17
  }
18
  else {
19
  die('Access Denied');
20
  }
 
21
  require_once(BWG()->plugin_dir . '/filemanager/controller.php');
22
  $controller = new FilemanagerController();
 
23
  $upload_handler = new bwg_UploadHandler(array(
24
+ 'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : '/'),
25
+ 'upload_url' => $controller->uploads_url,
26
+ 'accept_file_types' => '/\.(gif|jpe?g|png|aac|m4a|f4a|oga|ogg|mp3|zip)$/i',
27
+ ));
28
 
29
  class bwg_UploadHandler {
30
+ protected $options;
31
+ // PHP File Upload error message codes:
32
+ // http://php.net/manual/en/features.file-upload.errors.php
33
+ protected $error_messages = array(
34
+ 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini',
35
+ 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form',
36
+ 3 => 'The uploaded file was only partially uploaded',
37
+ 4 => 'No file was uploaded',
38
+ 6 => 'Missing a temporary folder',
39
+ 7 => 'Failed to write file to disk',
40
+ 8 => 'A PHP extension stopped the file upload',
41
+ 'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini',
42
+ 'max_file_size' => 'File is too big',
43
+ 'min_file_size' => 'File is too small',
44
+ 'accept_file_types' => 'Filetype not allowed',
45
+ 'max_number_of_files' => 'Maximum number of files exceeded',
46
+ 'max_width' => 'Image exceeds maximum width',
47
+ 'min_width' => 'Image requires a minimum width',
48
+ 'max_height' => 'Image exceeds maximum height',
49
+ 'min_height' => 'Image requires a minimum height',
50
+ );
51
+
52
+ function __construct( $options = NULL, $initialize = TRUE, $error_messages = NULL ) {
53
+
54
+ $this->options = array(
55
+ 'media_library_folder' => 'imported_from_media_libray' . '/',
56
+ 'script_url' => $this->get_full_url() . '/',
57
+ 'upload_dir' => dirname($_SERVER['SCRIPT_FILENAME']) . '/files/',
58
+ 'upload_url' => $this->get_full_url() . '/files/',
59
+ 'user_dirs' => FALSE,
60
+ 'mkdir_mode' => 0755,
61
+ 'param_name' => 'files',
62
+ // Set the following option to 'POST', if your server does not support
63
+ // DELETE requests. This is a parameter sent to the client:
64
+ 'delete_type' => 'DELETE',
65
+ 'access_control_allow_origin' => '*',
66
+ 'access_control_allow_credentials' => FALSE,
67
+ 'access_control_allow_methods' => array(
68
+ 'OPTIONS',
69
+ 'HEAD',
70
+ 'GET',
71
+ 'POST',
72
+ 'PUT',
73
+ 'PATCH',
74
+ 'DELETE',
75
+ ),
76
+ 'access_control_allow_headers' => array(
77
+ 'Content-Type',
78
+ 'Content-Range',
79
+ 'Content-Disposition',
80
+ ),
81
+ // Enable to provide file downloads via GET requests to the PHP script:
82
+ 'download_via_php' => FALSE,
83
+ // Defines which files can be displayed inline when downloaded:
84
+ 'inline_file_types' => '/\.(gif|jpe?g|png)$/i',
85
+ // Defines which files (based on their names) are accepted for upload:
86
+ 'accept_file_types' => '/.+$/i',
87
+ // The php.ini settings upload_max_filesize and post_max_size
88
+ // take precedence over the following max_file_size setting:
89
+ 'max_file_size' => NULL,
90
+ 'min_file_size' => 1,
91
+ // The maximum number of files for the upload directory:
92
+ 'max_number_of_files' => NULL,
93
+ // Image resolution restrictions:
94
+ 'max_width' => (isset($_POST['upload_img_width']) ? (int) $_POST['upload_img_width'] : BWG()->options->upload_img_width),
95
+ 'max_height' => (isset($_POST['upload_img_height']) ? (int) $_POST['upload_img_height'] : BWG()->options->upload_img_height),
96
+ 'min_width' => 1,
97
+ 'min_height' => 1,
98
+ // Set the following option to false to enable resumable uploads:
99
+ 'discard_aborted_uploads' => TRUE,
100
+ // Set to true to rotate images based on EXIF meta data, if available:
101
+ 'orient_image' => FALSE,
102
  );
103
+ if ( !$this->options['max_width'] || !$this->options['max_height'] ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  $this->options['max_width'] = NULL;
105
  $this->options['max_height'] = NULL;
 
 
 
 
 
 
 
 
 
106
  }
107
+ $this->options += array(
108
+ 'image_versions' => array(
109
+ '.original' => array(
110
+ 'max_width' => NULL,
111
+ 'max_height' => NULL,
112
+ 'jpeg_quality' => BWG()->options->jpeg_quality,
113
+ ),
114
+ '' => array(
115
+ 'max_width' => $this->options['max_width'],
116
+ 'max_height' => $this->options['max_height'],
117
+ 'jpeg_quality' => BWG()->options->jpeg_quality,
118
+ ),
119
+ 'thumb' => array(
120
+ 'max_width' => ((isset($_POST['upload_thumb_width']) && (int) $_POST['upload_thumb_width']) ? (int) $_POST['upload_thumb_width'] : BWG()->options->upload_thumb_width),
121
+ 'max_height' => ((isset($_POST['upload_thumb_height']) && (int) $_POST['upload_thumb_height']) ? (int) $_POST['upload_thumb_height'] : BWG()->options->upload_thumb_height),
122
+ 'jpeg_quality' => BWG()->options->jpeg_quality,
123
+ ),
124
+ ),
125
+ );
126
+ $this->options['max_width'] = NULL;
127
+ $this->options['max_height'] = NULL;
128
+ if ( $options ) {
129
+ $this->options = array_merge($this->options, $options);
130
  }
131
+ if ( $error_messages ) {
132
+ $this->error_messages = array_merge($this->error_messages, $error_messages);
 
 
 
 
 
 
 
 
133
  }
134
+ if ( $initialize ) {
135
+ $this->initialize();
 
 
136
  }
137
+ }
138
 
139
+ protected function initialize() {
140
+ switch ( $_SERVER['REQUEST_METHOD'] ) {
141
+ case 'OPTIONS':
142
+ case 'HEAD':
143
+ $this->head();
144
+ break;
145
+ case 'GET':
146
+ $this->get();
147
+ break;
148
+ case 'PATCH':
149
+ case 'PUT':
150
+ case 'POST':
151
+ $this->post();
152
+ break;
153
+ case 'DELETE':
154
+ $this->delete();
155
+ break;
156
+ default:
157
+ $this->header('HTTP/1.1 405 Method Not Allowed');
158
  }
159
+ }
160
 
161
+ protected function get_full_url() {
162
+ $https = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off';
 
 
163
 
164
+ return ($https ? 'https://' : 'http://') . (!empty($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] . '@' : '') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ($_SERVER['SERVER_NAME'] . ($https && $_SERVER['SERVER_PORT'] === 443 || $_SERVER['SERVER_PORT'] === 80 ? '' : ':' . $_SERVER['SERVER_PORT']))) . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/'));
165
+ }
166
 
167
+ protected function get_user_id() {
168
+ WDWLibrary::bwg_session_start();
 
169
 
170
+ return session_id();
171
+ }
172
+
173
+ protected function get_user_path() {
174
+ if ( $this->options['user_dirs'] ) {
175
+ return $this->get_user_id() . '/';
 
 
 
 
 
 
176
  }
177
 
178
+ return '';
179
+ }
180
+
181
+ protected function get_upload_path( $file_name = NULL, $version = NULL ) {
182
+ $file_name = $file_name ? $file_name : '';
183
+ $version_path = empty($version) ? '' : $version . '/';
184
+ $media_library_folder = (isset($_REQUEST['import']) && $_REQUEST['import'] == 1) ? $this->options['media_library_folder'] : '';
185
+
186
+ return $this->options['upload_dir'] . $media_library_folder . $this->get_user_path() . $version_path . $file_name;
187
+ }
188
+
189
+ protected function get_query_separator( $url ) {
190
+ return strpos($url, '?') === FALSE ? '?' : '&';
191
+ }
192
+
193
+ protected function get_download_url( $file, $version = NULL ) {
194
+ if ( $this->options['download_via_php'] ) {
195
+ $url = $this->options['script_url'] . $this->get_query_separator($this->options['script_url']) . 'file=' . rawurlencode($file->name);
196
+ if ( $version ) {
197
+ $url .= '&version=' . rawurlencode($version);
198
  }
199
+
200
+ return $url . '&download=1';
201
  }
202
+ $version_path = empty($version) ? '' : rawurlencode($version) . '/';
203
+ $file_path = !empty($file->path) ? $file->path : '';
204
+ $url = $this->options['upload_url'] . $this->get_user_path() . $file_path . $version_path . rawurlencode($file->name);
205
 
206
+ return $url;
207
+ }
208
+
209
+ protected function set_file_delete_properties( $file ) {
210
+ $file->delete_url = $this->options['script_url'] . $this->get_query_separator($this->options['script_url']) . 'file=' . rawurlencode($file->name);
211
+ $file->delete_type = $this->options['delete_type'];
212
+ if ( $file->delete_type !== 'DELETE' ) {
213
+ $file->delete_url .= '&_method=DELETE';
214
+ }
215
+ if ( $this->options['access_control_allow_credentials'] ) {
216
+ $file->delete_with_credentials = TRUE;
217
  }
218
+ }
219
 
220
+ // Fix for overflowing signed 32 bit integers,
221
+ // works for sizes up to 2^32-1 bytes (4 GiB - 1):
222
+ protected function fix_integer_overflow( $size ) {
223
+ if ( $size < 0 ) {
224
+ $size += 2.0 * (PHP_INT_MAX + 1);
225
  }
226
 
227
+ return $size;
228
+ }
229
+
230
+ protected function get_file_size( $file_path, $clear_stat_cache = FALSE ) {
231
+ /*if ($clear_stat_cache) {
232
+ clearstatcache(true, $file_path);
233
+ }*/
234
+ return $this->fix_integer_overflow(filesize($file_path));
235
+ }
236
+
237
+ protected function is_valid_file_object( $file_name ) {
238
+ $file_path = $this->get_upload_path($file_name);
239
+ if ( is_file($file_path) && $file_name[0] !== '.' ) {
240
+ return TRUE;
241
  }
242
 
243
+ return FALSE;
244
+ }
245
+
246
+ protected function get_file_object( $file_name ) {
247
+ if ( $this->is_valid_file_object($file_name) ) {
248
+ $file = new stdClass();
249
+ $file->name = $file_name;
250
+ $file->size = $this->get_file_size($this->get_upload_path($file_name));
251
+ $file->url = $this->get_download_url($file);
252
+ foreach ( $this->options['image_versions'] as $version => $options ) {
253
+ if ( !empty($version) ) {
254
+ if ( is_file($this->get_upload_path($file_name, $version)) ) {
255
+ $file->{$version . '_url'} = $this->get_download_url($file, $version);
 
 
 
256
  }
257
  }
 
 
258
  }
259
+ $this->set_file_delete_properties($file);
260
+
261
+ return $file;
262
  }
263
 
264
+ return NULL;
265
+ }
266
+
267
+ protected function get_file_objects( $iteration_method = 'get_file_object' ) {
268
+ $upload_dir = $this->get_upload_path();
269
+ if ( !is_dir($upload_dir) ) {
270
+ return array();
271
+ }
272
+
273
+ return array_values(array_filter(array_map(array( $this, $iteration_method ), scandir($upload_dir))));
274
+ }
275
+
276
+ protected function count_file_objects() {
277
+ return count($this->get_file_objects('is_valid_file_object'));
278
+ }
279
+
280
+ protected function create_scaled_image( $file_name, $version, $options ) {
281
+ $file_path = $this->get_upload_path($file_name);
282
+ if ( !empty($version) && ($version != 'main') ) {
283
+ $version_dir = $this->get_upload_path(NULL, $version);
284
+ if ( !is_dir($version_dir) ) {
285
+ mkdir($version_dir, $this->options['mkdir_mode'], TRUE);
286
  }
287
+ $new_file_path = $version_dir . '/' . $file_name;
 
 
 
288
  }
289
+ else {
290
+ $new_file_path = $file_path;
291
+ }
292
+ $success = WDWLibrary::resize_image($file_path, $new_file_path, $options['max_width'], $options['max_height']);
293
 
294
+ return $success;
295
+ }
296
+
297
+ protected function get_error_message( $error ) {
298
+ return array_key_exists($error, $this->error_messages) ? $this->error_messages[$error] : $error;
299
+ }
300
+
301
+ function get_config_bytes( $val ) {
302
+ $val = trim($val);
303
+ $int_val = intval($val);
304
+ $last = strtolower($val[strlen($val) - 1]);
305
+ switch ( $last ) {
306
+ case 'g':
307
+ $int_val *= 1024;
308
+ case 'm':
309
+ $int_val *= 1024;
310
+ case 'k':
311
+ $int_val *= 1024;
312
  }
313
 
314
+ return $this->fix_integer_overflow($int_val);
315
+ }
316
+
317
+ protected function validate( $uploaded_file, $file, $error, $index ) {
318
+ if ( $error ) {
319
+ $file->error = $this->get_error_message($error);
 
 
 
 
 
 
320
 
321
+ return FALSE;
322
  }
323
+ $content_length = $this->fix_integer_overflow(intval($_SERVER['CONTENT_LENGTH']));
324
+ $post_max_size = $this->get_config_bytes(ini_get('post_max_size'));
325
+ if ( $post_max_size && ($content_length > $post_max_size) ) {
326
+ $file->error = $this->get_error_message('post_max_size');
327
 
328
+ return FALSE;
 
329
  }
330
+ if ( !preg_match($this->options['accept_file_types'], $file->name) ) {
331
+ $file->error = $this->get_error_message('accept_file_types');
332
 
333
+ return FALSE;
334
+ }
335
+ if ( $uploaded_file && is_uploaded_file($uploaded_file) ) {
336
+ $file_size = $this->get_file_size($uploaded_file);
 
 
 
 
 
 
 
 
 
337
  }
338
+ else {
339
+ $file_size = $content_length;
340
+ }
341
+ if ( $this->options['max_file_size'] && ($file_size > $this->options['max_file_size'] || $file->size > $this->options['max_file_size']) ) {
342
+ $file->error = $this->get_error_message('max_file_size');
343
 
344
+ return FALSE;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  }
346
+ if ( $this->options['min_file_size'] && $file_size < $this->options['min_file_size'] ) {
347
+ $file->error = $this->get_error_message('min_file_size');
348
 
349
+ return FALSE;
 
 
 
350
  }
351
+ if ( is_int($this->options['max_number_of_files']) && ($this->count_file_objects() >= $this->options['max_number_of_files']) ) {
352
+ $file->error = $this->get_error_message('max_number_of_files');
353
 
354
+ return FALSE;
 
 
 
 
 
 
355
  }
356
+ list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($uploaded_file, ENT_COMPAT | ENT_QUOTES));
357
+ if ( is_int($img_width) ) {
358
+ // if ($this->options['max_width'] && $img_width > $this->options['max_width']) {
359
+ // $file->error = $this->get_error_message('max_width');
360
+ // return false;
361
+ // }
362
+ // if ($this->options['max_height'] && $img_height > $this->options['max_height']) {
363
+ // $file->error = $this->get_error_message('max_height');
364
+ // return false;
365
+ // }
366
+ if ( $this->options['min_width'] && $img_width < $this->options['min_width'] ) {
367
+ $file->error = $this->get_error_message('min_width');
368
 
369
+ return FALSE;
 
 
370
  }
371
+ if ( $this->options['min_height'] && $img_height < $this->options['min_height'] ) {
372
+ $file->error = $this->get_error_message('min_height');
373
+
374
+ return FALSE;
 
 
 
375
  }
 
376
  }
377
 
378
+ return TRUE;
379
+ }
380
+
381
+ protected function upcount_name_callback( $matches ) {
382
+ $index = isset($matches[1]) ? intval($matches[1]) + 1 : 1;
383
+ $ext = isset($matches[2]) ? $matches[2] : '';
384
+
385
+ return ' (' . $index . ')' . $ext;
386
+ }
387
+
388
+ protected function upcount_name( $name ) {
389
+ return preg_replace_callback('/(?:(?: \(([\d]+)\))?(\.[^.]+))?$/', array(
390
+ $this,
391
+ 'upcount_name_callback',
392
+ ), $name, 1);
393
+ }
394
+
395
+ protected function get_unique_filename( $name, $type, $index, $content_range ) {
396
+ while ( is_dir($this->get_upload_path($name)) ) {
397
+ $name = $this->upcount_name($name);
398
+ }
399
+ // Keep an existing filename if this is part of a chunked upload:
400
+ $uploaded_bytes = $this->fix_integer_overflow(intval(isset($content_range[1]) ? $content_range[1] : 0));
401
+ while ( is_file($this->get_upload_path($name)) ) {
402
+ if ( $uploaded_bytes === $this->get_file_size($this->get_upload_path($name)) ) {
403
+ break;
404
  }
405
+ $name = $this->upcount_name($name);
406
  }
407
 
408
+ return $name;
409
+ }
 
 
 
 
 
 
410
 
411
+ protected function trim_file_name( $name, $type, $index, $content_range ) {
412
+ // Remove path information and dots around the filename, to prevent uploading
413
+ // into different directories or replacing hidden system files.
414
+ // Also remove control characters and spaces (\x00..\x20) around the filename:
415
+ $name = trim(stripslashes($name), ".\x00..\x20");
416
+ $name = str_replace(array( " ", '%', '&' ), array( "_", '', '' ), $name);
417
+ $tempname = explode(".", $name);
418
+ if ( $tempname[0] == '' ) {
419
+ $tempname[0] = 'unnamed-file';
420
+ $name = $tempname[0] . "." . $tempname[1];
421
  }
422
+ // Use a timestamp for empty filenames:
423
+ if ( !$name ) {
424
+ $name = str_replace('.', '-', microtime(TRUE));
425
+ }
426
+ // Add missing file extension for known image types:
427
+ if ( strpos($name, '.') === FALSE && preg_match('/^image\/(gif|jpe?g|png)/', $type, $matches) ) {
428
+ $name .= '.' . $matches[1];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  }
430
 
431
+ return $name;
432
+ }
433
+
434
+ protected function get_file_name( $name, $type, $index, $content_range ) {
435
+ return $this->get_unique_filename($this->trim_file_name($name, $type, $index, $content_range), $type, $index, $content_range);
436
+ }
437
+
438
+ protected function handle_form_data( $file, $index ) {
439
+ // Handle form data, e.g. $_REQUEST['description'][$index]
440
+ }
441
+
442
+ protected function orient_image( $file_path ) {
443
+ if ( !function_exists('exif_read_data') ) {
444
+ return FALSE;
445
+ }
446
+ $exif = @exif_read_data($file_path);
447
+ if ( $exif === FALSE ) {
448
+ return FALSE;
449
+ }
450
+ $orientation = intval(@$exif['Orientation']);
451
+ if ( !in_array($orientation, array( 3, 6, 8 )) ) {
452
+ return FALSE;
453
+ }
454
+ @ini_set('memory_limit', '-1');
455
+ $image = @imagecreatefromjpeg($file_path);
456
+ switch ( $orientation ) {
457
+ case 3:
458
+ $image = @imagerotate($image, 180, 0);
459
+ break;
460
+ case 6:
461
+ $image = @imagerotate($image, 270, 0);
462
+ break;
463
+ case 8:
464
+ $image = @imagerotate($image, 90, 0);
465
+ break;
466
+ default:
467
+ return FALSE;
468
+ }
469
+ $success = imagejpeg($image, $file_path);
470
+ // Free up memory (imagedestroy does not delete files):
471
+ @imagedestroy($image);
472
+ @ini_restore('memory_limit');
473
+
474
+ return $success;
475
+ }
476
+
477
+ protected function handle_image_file( $file_path, $file ) {
478
+ if ( $this->options['orient_image'] ) {
479
+ $this->orient_image($file_path);
480
+ }
481
+ $failed_versions = array();
482
+ foreach ( $this->options['image_versions'] as $version => $options ) {
483
+ if ( $this->create_scaled_image($file->name, $version, $options) ) {
484
+ if ( !empty($version) ) {
485
+ $file->{$version . '_url'} = $this->get_download_url($file, $version);
486
  }
487
  else {
488
+ $file->size = $this->get_file_size($file_path, TRUE);
489
  }
490
  }
491
+ else {
492
+ $failed_versions[] = $version;
 
 
 
 
 
 
493
  }
494
  }
495
+ switch ( count($failed_versions) ) {
496
+ case 0:
497
+ break;
498
+ case 1:
499
+ $file->error = 'Failed to create scaled version: ' . $failed_versions[0];
500
+ break;
501
+ default:
502
+ $file->error = 'Failed to create scaled versions: ' . implode($failed_versions, ', ');
503
+ }
504
+ }
505
 
506
+ protected function handle_zip_file( $file_path, $file ) {
507
+ $zip = new ZipArchive;
508
+ $res = $zip->open($file_path);
509
+ if ( $res === TRUE ) {
510
+ $allow_extract = TRUE;
511
+ for ( $i = 0; $i < $zip->numFiles; $i++ ) {
512
+ $OnlyFileName = $zip->getNameIndex($i);
513
+ $FullFileName = $zip->statIndex($i);
514
+ if ( !($FullFileName['name'][strlen($FullFileName['name']) - 1] == "/") ) {
515
+ if ( !preg_match('#\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|ini|txt)$#i', $OnlyFileName) ) {
516
+ $allow_extract = FALSE;
 
517
  }
518
  }
519
+ }
520
+ if ( $allow_extract ) {
521
+ $target_dir = substr($file_path, 0, strlen($file_path) - 4);
522
+ if ( !is_dir($target_dir) ) {
523
+ mkdir($target_dir, 0755);
 
 
 
 
 
 
 
 
524
  }
525
+ $zip->extractTo($target_dir);
526
+ }
527
+ else {
528
+ $file->error = 'Zip file should contain only image files.';
529
+ }
530
+ $zip->close();
531
+ if ( $allow_extract ) {
532
+ $this->handle_directory($target_dir);
533
  }
 
 
534
  }
535
+ unlink($file_path);
536
+
537
+ return $file->error;
538
+ }
539
 
540
+ protected function handle_directory( $target_dir ) {
541
+ $extracted_files = scandir($target_dir);
542
+ if ( $extracted_files ) {
543
+ $temp_upload_dir = $this->options['upload_dir'];
544
+ $this->options['upload_dir'] = $target_dir . '/';
545
+ foreach ( $extracted_files as $ex_file ) {
546
+ if ( $ex_file != '.' && $ex_file != '..' ) {
547
+ $ex_file = $target_dir . '/' . $ex_file;
548
+ rename($ex_file, str_replace(array( " ", "%" ), array( "_", "" ), $ex_file));
549
+ $ex_file = str_replace(array( " ", "%" ), array( "_", "" ), $ex_file);
550
+ if ( is_file($ex_file) ) {
551
+ $type = filetype($ex_file);
552
+ $name = basename($ex_file);
553
+ $extension = explode(".", $name);
554
+ $extension = end($extension);
555
+ $name = str_replace('.' . $extension, strtolower('.' . $extension), $name);
556
+ $index = NULL;
557
+ $content_range = NULL;
558
+ $size = $this->get_file_size($ex_file);
559
+ $file = new stdClass();
560
+ $file->name = $name;
561
+ $file->size = $this->fix_integer_overflow(intval($size));
562
+ $file->type = $type;
563
+ $file->url = $this->get_download_url($file);
564
+ list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($ex_file, ENT_COMPAT | ENT_QUOTES));
565
+ if ( $this->options['max_width'] && $this->options['max_height'] ) {
566
+ // Zip Upload.
567
+ $this->create_scaled_image($file->name, 'main', $this->options);
 
 
 
 
568
  }
569
+ if ( is_int($img_width) ) {
570
+ $this->handle_image_file($ex_file, $file);
571
  }
572
  }
573
+ elseif ( is_dir($ex_file) ) {
574
+ $this->handle_directory($ex_file);
575
+ }
576
  }
 
577
  }
578
+ $this->options['upload_dir'] = $temp_upload_dir;
579
  }
580
+ }
581
 
582
+ protected function handle_file_import( $uploaded_file, $name ) {
583
+ $parent_dir = wp_upload_dir();
584
+ $basedir = $parent_dir['basedir'];
585
+ $file_type_array = explode('.', $name);
586
+ $type = strtolower(end($file_type_array));
587
+ $file = new stdClass();
588
+ if ( WDWLibrary::allowed_upload_types($type) ) {
589
+ $file->error = FALSE;
590
+ $file->name = $this->get_file_name($name, $type, 0, "");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
  $file->type = $type;
592
+ $this->handle_form_data($file, 0);
593
+ $upload_dir = $this->get_upload_path();
594
+ if ( !is_dir($upload_dir) ) {
595
+ mkdir($upload_dir, $this->options['mkdir_mode'], TRUE);
596
+ }
597
+ $file_path = $this->get_upload_path($file->name);
598
+ copy($basedir . '/' . $uploaded_file, $file_path);
599
+ if ( $this->options['max_width'] && $this->options['max_height'] ) {
600
+ // Media library Upload.
601
+ $this->create_scaled_image($file->name, 'main', $this->options);
602
+ }
603
+ list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
604
+ if ( is_int($img_width) ) {
605
+ $this->handle_image_file($file_path, $file);
606
+ }
607
+ $this->set_file_delete_properties($file);
608
+ // Additional information.
609
+ $file->path = '/' . $this->options['media_library_folder'];
610
+ $file->filetype = $type;
611
+ $file->filename = str_replace('.' . $file->filetype, '', $file->name);
612
+ $file->alt = $file->filename;
613
+ $file->reliative_url = $this->options['upload_url'] . '/' . $this->options['media_library_folder'] . $file->name;
614
+ $file->url = '/' . $this->options['media_library_folder'] . $file->name;
615
+ $file->thumb = $this->options['upload_url'] . '/' . $this->options['media_library_folder'] . 'thumb/' . $file->name;
616
+ $file->thumb_url = '/' . $this->options['media_library_folder'] . 'thumb/' . $file->name;
617
+ $file_size_kb = (int) (filesize($file_path) / 1024);
618
+ $file->size = $file_size_kb . ' KB';
619
+ $file->date_modified = date('Y-m-d H:i:s', filemtime($file_path));
620
+ $image_info = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
621
+ $file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
622
+ if ( BWG()->options->read_metadata ) {
623
+ $meta = WDWLibrary::read_image_metadata($upload_dir . '.original/' . $file->name);
624
+ $file->credit = $meta['credit'];
625
+ $file->aperture = $meta['aperture'];
626
+ $file->camera = $meta['camera'];
627
+ $file->caption = $meta['caption'];
628
+ $file->iso = $meta['iso'];
629
+ $file->orientation = $meta['orientation'];
630
+ $file->copyright = $meta['copyright'];
631
+ $file->alt = $meta['title'] ? $meta['title'] : $file->filename;
632
+ $file->tags = $meta['tags'];
633
+ }
634
+ }
635
+ else {
636
+ $file->error = TRUE;
637
+ }
638
+
639
+ return $file;
640
+ }
641
+
642
+ protected function handle_file_upload( $uploaded_file, $name, $size, $type, $error, $index = NULL, $content_range = NULL, $path = '' ) {
643
+ $file = new stdClass();
644
+ $file->dir = $this->get_upload_path();
645
+ $file->path = $path;
646
+ $file->name = $this->get_file_name($name, $type, $index, $content_range);
647
+ $file->size = $this->fix_integer_overflow(intval($size));
648
+ $file->type = $type;
649
+ if ( $this->validate($uploaded_file, $file, $error, $index) ) {
650
+ $this->handle_form_data($file, $index);
651
+ $upload_dir = $this->get_upload_path();
652
+ if ( !is_dir($upload_dir) ) {
653
+ mkdir($upload_dir, $this->options['mkdir_mode'], TRUE);
654
+ }
655
+ $file_path = $this->get_upload_path($file->name);
656
+ $append_file = $content_range && is_file($file_path) && $file->size = $this->get_file_size($file_path);
657
+ if ( $uploaded_file && is_uploaded_file($uploaded_file) ) {
658
+ // multipart/formdata uploads (POST method uploads)
659
+ if ( $append_file ) {
660
+ file_put_contents($file_path, fopen($uploaded_file, 'r'), FILE_APPEND);
661
  }
662
  else {
663
+ move_uploaded_file($uploaded_file, $file_path);
 
 
 
 
 
664
  }
665
+ }
666
+ else {
667
+ // Non-multipart uploads (PUT method support)
668
+ file_put_contents($file_path, fopen('php://input', 'r'), $append_file ? FILE_APPEND : 0);
669
+ }
670
+ $file_size = $this->get_file_size($file_path, $append_file);
671
+ if ( $file_size === $file->size ) {
672
+ if ( $this->options['max_width'] && $this->options['max_height'] ) {
673
+ // Upload.
674
+ $this->create_scaled_image($file->name, 'main', $this->options);
675
+ }
676
+ $file->url = $this->get_download_url($file);
677
+ list($img_width, $img_height) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
678
+ if ( is_int($img_width) ) {
679
+ $this->handle_image_file($file_path, $file);
680
  }
681
  else {
682
+ $file->error = $this->handle_zip_file($file_path, $file);
 
 
 
 
683
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
684
  }
685
+ else {
686
+ $file->size = $file_size;
687
+ if ( !$content_range && $this->options['discard_aborted_uploads'] ) {
688
+ unlink($file_path);
689
+ $file->error = 'abort';
690
+ }
691
+ }
692
+ $file->filename = str_replace("_", " ", substr($file->name, 0, strrpos($file->name, '.')));
693
+ $file_ex = explode('.', $file->name);
694
+ $file->type = strtolower(end($file_ex));
695
+ $file->thumb = $file->name;
696
+ $file->size = (int) ($file->size / 1024) . ' KB';
697
+ // ini_set('allow_url_fopen',1);
698
+ $image_info = @getimagesize(htmlspecialchars_decode($file->url, ENT_COMPAT | ENT_QUOTES));
699
+ $file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
700
+ $meta = WDWLibrary::read_image_metadata($file->dir . '/.original/' . $file->name);
701
+ $file->alt = (BWG()->options->read_metadata && $meta['title']) ? $meta['title'] : str_replace("_", " ", $file->filename);
702
+ $file->credit = !empty($meta['credit']) ? $meta['credit'] : '';
703
+ $file->aperture = !empty($meta['aperture']) ? $meta['aperture'] : '';
704
+ $file->camera = !empty($meta['camera']) ? $meta['camera'] : '';
705
+ $file->caption = !empty($meta['caption']) ? $meta['caption'] : '';
706
+ $file->iso = !empty($meta['iso']) ? $meta['iso'] : '';
707
+ $file->orientation = !empty($meta['orientation']) ? $meta['orientation'] : '';
708
+ $file->copyright = !empty($meta['copyright']) ? $meta['copyright'] : '';
709
+ $file->tags = !empty($meta['tags']) ? $meta['tags'] : '';
710
+ $this->set_file_delete_properties($file);
711
+ }
712
+
713
+ return $file;
714
+ }
715
 
716
+ protected function readfile( $file_path ) {
717
+ return readfile($file_path);
718
+ }
719
 
720
+ protected function body( $str ) {
721
+ echo $str;
722
+ }
723
 
724
+ protected function header( $str ) {
725
+ header($str);
726
+ }
727
 
728
+ protected function generate_response( $content, $print_response = TRUE ) {
729
+ if ( $print_response ) {
730
+ $json = json_encode($content);
731
+ $redirect = isset($_REQUEST['redirect']) ? stripslashes($_REQUEST['redirect']) : NULL;
732
+ if ( $redirect ) {
733
+ $this->header('Location: ' . sprintf($redirect, rawurlencode($json)));
734
+
735
+ return;
736
+ }
737
+ $this->head();
738
+ if ( isset($_SERVER['HTTP_CONTENT_RANGE']) ) {
739
+ $files = isset($content[$this->options['param_name']]) ? $content[$this->options['param_name']] : NULL;
740
+ if ( $files && is_array($files) && is_object($files[0]) && $files[0]->size ) {
741
+ $this->header('Range: 0-' . ($this->fix_integer_overflow(intval($files[0]->size)) - 1));
742
  }
 
743
  }
744
+ $this->body($json);
745
  }
746
 
747
+ return $content;
748
+ }
 
749
 
750
+ protected function get_version_param() {
751
+ return isset($_GET['version']) ? basename(stripslashes($_GET['version'])) : NULL;
752
+ }
753
 
754
+ protected function get_file_name_param() {
755
+ return isset($_GET['file']) ? basename(stripslashes($_GET['file'])) : NULL;
756
+ }
757
+
758
+ protected function get_file_type( $file_path ) {
759
+ switch ( strtolower(pathinfo($file_path, PATHINFO_EXTENSION)) ) {
760
+ case 'jpeg':
761
+ case 'jpg':
762
+ return 'image/jpeg';
763
+ case 'png':
764
+ return 'image/png';
765
+ case 'gif':
766
+ return 'image/gif';
767
+ default:
768
+ return '';
769
  }
770
+ }
771
 
772
+ protected function download() {
773
+ if ( !$this->options['download_via_php'] ) {
774
+ $this->header('HTTP/1.1 403 Forbidden');
775
+
776
+ return;
777
+ }
778
+ $file_name = $this->get_file_name_param();
779
+ if ( $this->is_valid_file_object($file_name) ) {
780
+ $file_path = $this->get_upload_path($file_name, $this->get_version_param());
781
+ if ( is_file($file_path) ) {
782
+ if ( !preg_match($this->options['inline_file_types'], $file_name) ) {
783
+ $this->header('Content-Description: File Transfer');
784
+ $this->header('Content-Type: application/octet-stream');
785
+ $this->header('Content-Disposition: attachment; filename="' . $file_name . '"');
786
+ $this->header('Content-Transfer-Encoding: binary');
787
+ }
788
+ else {
789
+ // Prevent Internet Explorer from MIME-sniffing the content-type:
790
+ $this->header('X-Content-Type-Options: nosniff');
791
+ $this->header('Content-Type: ' . $this->get_file_type($file_path));
792
+ $this->header('Content-Disposition: inline; filename="' . $file_name . '"');
 
 
 
793
  }
794
+ $this->header('Content-Length: ' . $this->get_file_size($file_path));
795
+ $this->header('Last-Modified: ' . gmdate('D, d M Y H:i:s T', filemtime($file_path)));
796
+ $this->readfile($file_path);
797
  }
798
  }
799
+ }
800
 
801
+ protected function send_content_type_header() {
802
+ $this->header('Vary: Accept');
803
+ if ( isset($_SERVER['HTTP_ACCEPT']) && (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== FALSE) ) {
804
+ $this->header('Content-type: application/json');
 
 
 
 
 
805
  }
806
+ else {
807
+ $this->header('Content-type: text/plain');
 
 
 
 
 
 
 
808
  }
809
+ }
810
 
811
+ protected function send_access_control_headers() {
812
+ $this->header('Access-Control-Allow-Origin: ' . $this->options['access_control_allow_origin']);
813
+ $this->header('Access-Control-Allow-Credentials: ' . ($this->options['access_control_allow_credentials'] ? 'true' : 'false'));
814
+ $this->header('Access-Control-Allow-Methods: ' . implode(', ', $this->options['access_control_allow_methods']));
815
+ $this->header('Access-Control-Allow-Headers: ' . implode(', ', $this->options['access_control_allow_headers']));
816
+ }
817
+
818
+ public function head() {
819
+ $this->header('Pragma: no-cache');
820
+ $this->header('Cache-Control: no-store, no-cache, must-revalidate');
821
+ $this->header('Content-Disposition: inline; filename="files.json"');
822
+ // Prevent Internet Explorer from MIME-sniffing the content-type:
823
+ $this->header('X-Content-Type-Options: nosniff');
824
+ if ( $this->options['access_control_allow_origin'] ) {
825
+ $this->send_access_control_headers();
826
  }
827
+ $this->send_content_type_header();
828
+ }
829
 
830
+ public function get( $print_response = TRUE ) {
831
+ if ( isset($_GET['import']) && $_GET['import'] == 1 ) {
832
+ $file_names = json_decode(isset($_REQUEST['file_namesML']) ? stripslashes($_REQUEST['file_namesML']) : '');
833
+ $files = array();
834
+ foreach ( $file_names as $index => $value ) {
835
+ $file_name_array = explode('/', $value);
836
+ $files[] = $this->handle_file_import($value, end($file_name_array));
 
 
 
837
  }
838
+ echo json_encode($files);
839
 
840
+ return;
841
+ }
842
+ if ( $print_response && isset($_GET['download']) ) {
843
+ return $this->download();
844
+ }
845
+ $file_name = $this->get_file_name_param();
846
+ if ( $file_name ) {
847
+ $response = array(
848
+ substr($this->options['param_name'], 0, -1) => $this->get_file_object($file_name),
849
+ );
850
+ }
851
+ else {
852
+ $response = array(
853
+ $this->options['param_name'] => $this->get_file_objects(),
854
+ );
855
  }
856
 
857
+ return $this->generate_response($response, $print_response);
858
+ }
859
+
860
+ public function post( $print_response = TRUE ) {
861
+ global $wpdb;
862
+ $path = isset($_REQUEST['dir']) ? str_replace('\\', '', ($_REQUEST['dir'])) . '/' : '/';
863
+ if ( isset($_REQUEST['import']) && $_REQUEST['import'] == 1 ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
864
  $files = array();
865
+ $file_names = json_decode(isset($_REQUEST['file_namesML']) ? stripslashes($_REQUEST['file_namesML']) : array());
866
+ if ( !empty($file_names) ) {
867
+ // Create IMPORTED_FROM_MEDIA_LIBRAY folder.
868
+ if ( !is_dir($this->get_upload_path()) ) {
869
+ $folder = new stdClass();
870
+ $folder_name = trim($this->options['media_library_folder'], '/');
871
+ $folder->path = '/';
872
+ $folder->name = $folder_name;
873
+ $folder->filename = $folder_name;
874
+ $folder->alt = $folder_name;
875
+ $wpdb->insert($wpdb->prefix . 'bwg_file_paths', $this->set_folder_info($folder));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
876
  }
877
+ // Adding images on IMPORTED_FROM_MEDIA_LIBRAY folder.
878
+ foreach ( $file_names as $index => $value ) {
879
+ $file_name_array = explode('/', $value);
880
+ $file_info = $this->handle_file_import($value, end($file_name_array));
881
+ $files[] = $file_info;
882
+ if ( empty($file_info->error) ) {
883
+ $wpdb->insert($wpdb->prefix . 'bwg_file_paths', $this->set_file_info($file_info));
884
+ }
885
+ }
886
+ echo json_encode($files);
887
  }
888
+
889
+ return;
890
+ }
891
+ if ( isset($_REQUEST['_method']) && $_REQUEST['_method'] === 'DELETE' ) {
892
+ return $this->delete($print_response);
893
+ }
894
+ $upload = isset($_FILES[$this->options['param_name']]) ? $_FILES[$this->options['param_name']] : NULL;
895
+ $files = array();
896
+ // Parse the Content-Disposition header, if available:
897
+ $file_name = isset($_SERVER['HTTP_CONTENT_DISPOSITION']) ? rawurldecode(preg_replace('/(^[^"]+")|("$)/', '', $_SERVER['HTTP_CONTENT_DISPOSITION'])) : NULL;
898
+ // Parse the Content-Range header, which has the following form:
899
+ // Content-Range: bytes 0-524287/2000000
900
+ $content_range = isset($_SERVER['HTTP_CONTENT_RANGE']) ? preg_split('/[^0-9]+/', $_SERVER['HTTP_CONTENT_RANGE']) : NULL;
901
+ $size = $content_range ? $content_range[3] : NULL;
902
+ if ( $upload && is_array($upload['tmp_name']) ) {
903
+ // param_name is an array identifier like "files[]",
904
+ // $_FILES is a multi-dimensional array:
905
+ foreach ( $upload['tmp_name'] as $index => $value ) {
906
+ $filename = $file_name ? $file_name : $upload['name'][$index];
907
  $extension = explode(".", $filename);
908
  $extension = end($extension);
909
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
910
+ $files[] = $this->handle_file_upload($upload['tmp_name'][$index], $filename, $size ? $size : $upload['size'][$index], $upload['type'][$index], $upload['error'][$index], $index, $content_range, $path);
911
+ }
912
+ }
913
+ else {
914
+ $filename = $file_name ? $file_name : (isset($upload['name']) ? $upload['name'] : NULL);
915
+ $extension = explode(".", $filename);
916
+ $extension = end($extension);
917
+ $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
918
+ // param_name is a single object identifier like "file",
919
+ // $_FILES is a one-dimensional array:
920
+ $files[] = $this->handle_file_upload(isset($upload['tmp_name']) ? $upload['tmp_name'] : NULL, $filename, $size ? $size : (isset($upload['size']) ? $upload['size'] : $_SERVER['CONTENT_LENGTH']), isset($upload['type']) ? $upload['type'] : $_SERVER['CONTENT_TYPE'], isset($upload['error']) ? $upload['error'] : NULL, NULL, $content_range, $path);
921
+ }
922
+ if ( !empty($files) ) {
923
+ foreach ( $files as $file ) {
924
+ if ( empty($file->error) ) {
925
+ $wpdb->insert($wpdb->prefix . 'bwg_file_paths', $this->set_file_info($file));
926
+ }
927
  }
 
 
 
 
 
 
 
 
 
928
  }
929
 
930
+ return $this->generate_response(array( $this->options['param_name'] => $files ), $print_response);
931
+ }
932
+
933
+ public function delete( $print_response = TRUE ) {
934
+ $file_name = $this->get_file_name_param();
935
+ $file_path = $this->get_upload_path($file_name);
936
+ $success = is_file($file_path) && $file_name[0] !== '.' && unlink($file_path);
937
+ if ( $success ) {
938
+ foreach ( $this->options['image_versions'] as $version => $options ) {
939
+ if ( !empty($version) ) {
940
+ $file = $this->get_upload_path($file_name, $version);
941
+ if ( is_file($file) ) {
942
+ unlink($file);
943
  }
944
  }
945
  }
 
946
  }
947
 
948
+ return $this->generate_response(array( 'success' => $success ), $print_response);
949
+ }
950
+
951
  /**
952
  * Set folder info
953
  *
954
  * @param $info
955
+ *
956
  * @return mixed
957
  */
958
+ private function set_folder_info( $info ) {
959
+ $data['is_dir'] = 1;
960
+ $data['path'] = $info->path;
961
+ $data['name'] = $info->name;
962
+ $data['filename'] = $info->name;
963
+ $data['thumb'] = '/filemanager/images/dir.png';
964
+ $data['alt'] = $info->alt;
965
+ $data['date_modified'] = date("Y-m-d H:i:s");
966
+
967
+ return $data;
968
+ }
969
 
970
  /**
971
  * Set file info.
972
  *
973
  * @param $info
974
+ *
975
  * @return mixed
976
  */
977
  private function set_file_info( $info ) {
978
+ $iconv_mime_decode_function = '';
979
+ if ( function_exists('iconv_mime_decode') ) {
980
+ $iconv_mime_decode_function = 'iconv_mime_decode';
981
+ }
982
  $data = array();
983
  $data['is_dir'] = 0;
984
  $data['date_modified'] = date('Y-m-d H:i:s');
990
  $data['thumb'] = isset($info->name) ? 'thumb/' . $info->name : '';
991
  $data['size'] = isset($info->size) ? $info->size : '';
992
  $data['resolution'] = isset($info->resolution) ? $info->resolution : '';
993
+ $data['credit'] = isset($info->credit) ? $iconv_mime_decode_function($info->credit) : '';
994
+ $data['aperture'] = isset($info->aperture) ? $iconv_mime_decode_function($info->aperture) : '';
995
+ $data['camera'] = isset($info->camera) ? $iconv_mime_decode_function($info->camera) : '';
996
+ $data['caption'] = isset($info->caption) ? $iconv_mime_decode_function($info->caption) : '';
997
+ $data['iso'] = isset($info->iso) ? $iconv_mime_decode_function($info->iso) : '';
998
  $data['orientation'] = isset($info->orientation) ? $info->orientation : '';
999
+ $data['copyright'] = isset($info->copyright) ? $iconv_mime_decode_function($info->copyright) : '';
1000
+ $data['tags'] = isset($info->tags) ? $iconv_mime_decode_function($info->tags) : '';
1001
 
1002
  return $data;
1003
  }
1004
  }
1005
+
1006
  die();
filemanager/controller.php CHANGED
@@ -160,7 +160,15 @@ class FilemanagerController {
160
 
161
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
162
 
163
- $new_dir_path_name = isset($_REQUEST['new_dir_name']) ? stripslashes(esc_html(sanitize_file_name($_REQUEST['new_dir_name']))) : '';
 
 
 
 
 
 
 
 
164
  $new_dir_path = $cur_dir_path . '/' . $new_dir_path_name;
165
  $new_dir_path = htmlspecialchars_decode($new_dir_path, ENT_COMPAT | ENT_QUOTES);
166
  $new_dir_path = $this->esc_dir($new_dir_path);
160
 
161
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
162
 
163
+ $new_dir_path_name = isset($_REQUEST['new_dir_name']) ? stripslashes(esc_html($_REQUEST['new_dir_name'])) : '';
164
+
165
+ // Do not sanitize folder name, if it contents mime types in name
166
+ $mime_types = wp_get_mime_types();
167
+ $filetype = wp_check_filetype( 'test.' . $new_dir_path_name, $mime_types );
168
+ if ( $filetype['ext'] !== $new_dir_path_name && '.' . $filetype['ext'] !== $new_dir_path_name ) {
169
+ $new_dir_path_name = sanitize_file_name($new_dir_path_name);
170
+ }
171
+
172
  $new_dir_path = $cur_dir_path . '/' . $new_dir_path_name;
173
  $new_dir_path = htmlspecialchars_decode($new_dir_path, ENT_COMPAT | ENT_QUOTES);
174
  $new_dir_path = $this->esc_dir($new_dir_path);
filemanager/js/default.js CHANGED
@@ -376,14 +376,14 @@ function onBtnBackClick(event, obj) {
376
  }
377
 
378
  function onPathComponentClick(event, obj, key) {
379
- if (typeof key != "undefined" && key == 0) {
380
- path = "";
381
- }
382
- else {
383
- path = jQuery(obj).html();
384
- path = path.trim();
385
- }
386
- submit("", null, null, null, path, null, null, null, null, null, null);
387
  }
388
 
389
  function onBtnShowImportClick(event, obj) {
@@ -410,17 +410,7 @@ function onKeyDown(e) {
410
  var e = e || window.event;
411
  var chCode1 = e.which || e.paramlist_keyCode;
412
  if ((e.ctrlKey || e.metaKey) && chCode1 == 65) {
413
- all_files_selected = true;
414
- jQuery(".explorer_item").addClass("explorer_item_select");
415
- jQuery(".importer_item").addClass("importer_item_select");
416
- filesSelected = [];
417
- jQuery(".explorer_item").each(function() {
418
- var objName = jQuery(this).attr("name");
419
- if (filesSelected.indexOf(objName) == -1) {
420
- filesSelected.push(objName);
421
- keyFileSelected = this;
422
- }
423
- });
424
  e.preventDefault();
425
  }
426
  }
376
  }
377
 
378
  function onPathComponentClick(event, obj, key) {
379
+ var path = '';
380
+ var pathArr = [];
381
+ jQuery("#path .path_dir").each( function( i,v ) {
382
+ path += ( i == 0 ) ? '' : '/' + jQuery(v).text().trim();
383
+ pathArr[i] = path;
384
+ });
385
+ var path = ( pathArr[key] ) ? pathArr[key] : '';
386
+ submit('display', null, null, null, path, null, null, null, null, null, null);
387
  }
388
 
389
  function onBtnShowImportClick(event, obj) {
410
  var e = e || window.event;
411
  var chCode1 = e.which || e.paramlist_keyCode;
412
  if ((e.ctrlKey || e.metaKey) && chCode1 == 65) {
413
+ onBtnSelectAllClick(dir + DS);
 
 
 
 
 
 
 
 
 
 
414
  e.preventDefault();
415
  }
416
  }
filemanager/js/jq_uploader/jquery.fileupload.js CHANGED
@@ -1,25 +1,31 @@
1
  /*
2
- * jQuery File Upload Plugin 5.28.8
3
  * https://github.com/blueimp/jQuery-File-Upload
4
  *
5
  * Copyright 2010, Sebastian Tschan
6
  * https://blueimp.net
7
  *
8
  * Licensed under the MIT license:
9
- * http://www.opensource.org/licenses/MIT
10
  */
11
 
12
- /*jslint nomen: true, unparam: true, regexp: true */
13
- /*global define, window, document, File, Blob, FormData, location */
14
 
15
- (function (factory) {
16
  'use strict';
17
  if (typeof define === 'function' && define.amd) {
18
  // Register as an anonymous AMD module:
19
  define([
20
  'jquery',
21
- 'jquery.ui.widget.js'
22
  ], factory);
 
 
 
 
 
 
23
  } else {
24
  // Browser globals:
25
  factory(window.jQuery);
@@ -27,12 +33,49 @@
27
  }(function ($) {
28
  'use strict';
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  // The FileReader API is not actually used, but works as feature detection,
31
- // as e.g. Safari supports XHR file uploads via the FormData API,
32
- // but not non-multipart XHR file uploads:
33
- $.support.xhrFileUpload = !!(window.XMLHttpRequestUpload && window.FileReader);
 
 
34
  $.support.xhrFormDataFileUpload = !!window.FormData;
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  // The fileupload widget listens for change events on file input fields defined
37
  // via fileInput setting and paste or drop events of the given dropZone.
38
  // In addition to the default jQuery Widget methods, the fileupload widget
@@ -47,9 +90,9 @@
47
  // The drop target element(s), by the default the complete document.
48
  // Set to null to disable drag & drop support:
49
  dropZone: $(document),
50
- // The paste target element(s), by the default the complete document.
51
- // Set to null to disable paste support:
52
- pasteZone: $(document),
53
  // The file input field(s), that are listened to for change events.
54
  // If undefined, it is set to the file input fields inside
55
  // of the widget element on plugin initialization.
@@ -72,6 +115,14 @@
72
  // To limit the number of files uploaded with one XHR request,
73
  // set the following option to an integer greater than 0:
74
  limitMultiFileUploads: undefined,
 
 
 
 
 
 
 
 
75
  // Set the following option to true to issue all file upload requests
76
  // in a sequential order:
77
  sequentialUploads: false,
@@ -115,6 +166,23 @@
115
  // By default, uploads are started automatically when adding files:
116
  autoUpload: true,
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  // Additional form data to be sent along with the file uploads can be set
119
  // using this option, which accepts an array of objects with name and
120
  // value properties, a function returning such an array, a FormData
@@ -127,21 +195,28 @@
127
  // The add callback is invoked as soon as files are added to the fileupload
128
  // widget (via file input selection, drag & drop, paste or add API call).
129
  // If the singleFileUploads option is enabled, this callback will be
130
- // called once for each file in the selection for XHR file uplaods, else
131
  // once for each file selection.
 
132
  // The upload starts when the submit method is invoked on the data parameter.
133
  // The data object contains a files property holding the added files
134
- // and allows to override plugin options as well as define ajax settings.
 
135
  // Listeners for this callback can also be bound the following way:
136
  // .bind('fileuploadadd', func);
 
137
  // data.submit() returns a Promise object and allows to attach additional
138
  // handlers using jQuery's Deferred callbacks:
139
  // data.submit().done(func).fail(func).always(func);
140
  add: function (e, data) {
 
 
 
141
  if (data.autoUpload || (data.autoUpload !== false &&
142
- ($(this).data('blueimp-fileupload') ||
143
- $(this).data('fileupload')).options.autoUpload)) {
144
- data.submit();
 
145
  }
146
  },
147
 
@@ -186,6 +261,9 @@
186
  // Callback for dragover events of the dropZone(s):
187
  // dragover: function (e) {}, // .bind('fileuploaddragover', func);
188
 
 
 
 
189
  // Callback for the start of each chunk upload request:
190
  // chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
191
 
@@ -202,11 +280,13 @@
202
  // The following are jQuery ajax settings required for the file uploads:
203
  processData: false,
204
  contentType: false,
205
- cache: false
 
206
  },
207
 
208
- // A list of options that require a refresh after assigning a new value:
209
- _refreshOptionsList: [
 
210
  'fileInput',
211
  'dropZone',
212
  'pasteZone',
@@ -214,6 +294,11 @@
214
  'forceIframeTransport'
215
  ],
216
 
 
 
 
 
 
217
  _BitrateTimer: function () {
218
  this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
219
  this.loaded = 0;
@@ -237,7 +322,7 @@
237
 
238
  _getFormData: function (options) {
239
  var formData;
240
- if (typeof options.formData === 'function') {
241
  return options.formData(options.form);
242
  }
243
  if ($.isArray(options.formData)) {
@@ -317,10 +402,18 @@
317
  // Trigger a custom progress event with a total data property set
318
  // to the file size(s) of the current upload and a loaded data
319
  // property calculated accordingly:
320
- this._trigger('progress', e, data);
 
 
 
 
321
  // Trigger a global progress event for all current file uploads,
322
  // including ajax calls queued for sequential file uploads:
323
- this._trigger('progressall', e, this._progress);
 
 
 
 
324
  }
325
  },
326
 
@@ -344,6 +437,13 @@
344
  }
345
  },
346
 
 
 
 
 
 
 
 
347
  _isInstanceOf: function (type, obj) {
348
  // Cross-frame instanceof check
349
  return Object.prototype.toString.call(obj) === '[object ' + type + ']';
@@ -355,15 +455,18 @@
355
  file = options.files[0],
356
  // Ignore non-multipart setting if not supported:
357
  multipart = options.multipart || !$.support.xhrFileUpload,
358
- paramName = options.paramName[0];
359
- options.headers = options.headers || {};
 
360
  if (options.contentRange) {
361
  options.headers['Content-Range'] = options.contentRange;
362
  }
363
- if (!multipart) {
364
  options.headers['Content-Disposition'] = 'attachment; filename="' +
365
- encodeURI(file.name) + '"';
366
- options.contentType = file.type;
 
 
367
  options.data = options.blob || file;
368
  } else if ($.support.xhrFormDataFileUpload) {
369
  if (options.postMessage) {
@@ -380,7 +483,8 @@
380
  } else {
381
  $.each(options.files, function (index, file) {
382
  formData.push({
383
- name: options.paramName[index] || paramName,
 
384
  value: file
385
  });
386
  });
@@ -395,9 +499,11 @@
395
  });
396
  }
397
  if (options.blob) {
398
- options.headers['Content-Disposition'] = 'attachment; filename="' +
399
- encodeURI(file.name) + '"';
400
- formData.append(paramName, options.blob, file.name);
 
 
401
  } else {
402
  $.each(options.files, function (index, file) {
403
  // This check allows the tests to run with
@@ -405,9 +511,10 @@
405
  if (that._isInstanceOf('File', file) ||
406
  that._isInstanceOf('Blob', file)) {
407
  formData.append(
408
- options.paramName[index] || paramName,
 
409
  file,
410
- file.name
411
  );
412
  }
413
  });
@@ -420,13 +527,13 @@
420
  },
421
 
422
  _initIframeSettings: function (options) {
 
423
  // Setting the dataType to iframe enables the iframe transport:
424
  options.dataType = 'iframe ' + (options.dataType || '');
425
  // The iframe transport accepts a serialized array as form data:
426
  options.formData = this._getFormData(options);
427
  // Add redirect url to form data on cross-domain uploads:
428
- if (options.redirect && $('<a></a>').prop('href', options.url)
429
- .prop('host') !== location.host) {
430
  options.formData.push({
431
  name: options.redirectParamName || 'redirect',
432
  value: options.redirect
@@ -491,8 +598,10 @@
491
  options.url = options.form.prop('action') || location.href;
492
  }
493
  // The HTTP request method must be "POST" or "PUT":
494
- options.type = (options.type || options.form.prop('method') || '')
495
- .toUpperCase();
 
 
496
  if (options.type !== 'POST' && options.type !== 'PUT' &&
497
  options.type !== 'PATCH') {
498
  options.type = 'POST';
@@ -548,14 +657,35 @@
548
  return this._enhancePromise(promise);
549
  },
550
 
551
- // Adds convenience methods to the callback arguments:
552
  _addConvenienceMethods: function (e, data) {
553
- var that = this;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
554
  data.submit = function () {
555
  if (this.state() !== 'pending') {
556
  data.jqXHR = this.jqXHR =
557
- (that._trigger('submit', e, this) !== false) &&
558
- that._onSend(e, this);
 
 
 
559
  }
560
  return this.jqXHR || that._getXHRPromise();
561
  };
@@ -563,12 +693,21 @@
563
  if (this.jqXHR) {
564
  return this.jqXHR.abort();
565
  }
566
- return that._getXHRPromise();
 
 
567
  };
568
  data.state = function () {
569
  if (this.jqXHR) {
570
  return that._getDeferredState(this.jqXHR);
571
  }
 
 
 
 
 
 
 
572
  };
573
  data.progress = function () {
574
  return this._progress;
@@ -594,17 +733,18 @@
594
  // should be uploaded in chunks, but does not invoke any
595
  // upload requests:
596
  _chunkedUpload: function (options, testOnly) {
 
597
  var that = this,
598
  file = options.files[0],
599
  fs = file.size,
600
- ub = options.uploadedBytes = options.uploadedBytes || 0,
601
  mcs = options.maxChunkSize || fs,
602
- slice = file.slice || file.webkitSlice || file.mozSlice,
603
  dfd = $.Deferred(),
604
  promise = dfd.promise(),
605
  jqXHR,
606
  upload;
607
- if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
608
  options.data) {
609
  return false;
610
  }
@@ -612,7 +752,7 @@
612
  return true;
613
  }
614
  if (ub >= fs) {
615
- file.error = 'Uploaded bytes exceed file size';
616
  return this._getXHRPromise(
617
  false,
618
  options.context,
@@ -627,7 +767,7 @@
627
  o.blob = slice.call(
628
  file,
629
  ub,
630
- ub + mcs,
631
  file.type
632
  );
633
  // Store the current chunk size, as the blob itself
@@ -636,6 +776,8 @@
636
  // Expose the chunk bytes position range:
637
  o.contentRange = 'bytes ' + ub + '-' +
638
  (ub + o.chunkSize - 1) + '/' + fs;
 
 
639
  // Process the upload data (the blob and potential form data):
640
  that._initXHRData(o);
641
  // Add progress listeners for this chunk upload:
@@ -648,7 +790,7 @@
648
  // Create a progress event if no final progress event
649
  // with loaded equaling total has been triggered
650
  // for this chunk:
651
- if (o._progress.loaded === currentLoaded) {
652
  that._onProgress($.Event('progress', {
653
  lengthComputable: true,
654
  loaded: ub - o.uploadedBytes,
@@ -682,6 +824,9 @@
682
  o.context,
683
  [jqXHR, textStatus, errorThrown]
684
  );
 
 
 
685
  });
686
  };
687
  this._enhancePromise(promise);
@@ -771,7 +916,11 @@
771
  // Set timer for bitrate progress calculation:
772
  options._bitrateTimer = new that._BitrateTimer();
773
  jqXHR = jqXHR || (
774
- ((aborted || that._trigger('send', e, options) === false) &&
 
 
 
 
775
  that._getXHRPromise(false, options.context, aborted)) ||
776
  that._chunkedUpload(options) || $.ajax(options)
777
  ).done(function (result, textStatus, jqXHR) {
@@ -779,6 +928,7 @@
779
  }).fail(function (jqXHR, textStatus, errorThrown) {
780
  that._onFail(jqXHR, textStatus, errorThrown, options);
781
  }).always(function (jqXHRorResult, textStatus, jqXHRorError) {
 
782
  that._onAlways(
783
  jqXHRorResult,
784
  textStatus,
@@ -815,9 +965,10 @@
815
  if (this.options.limitConcurrentUploads > 1) {
816
  slot = $.Deferred();
817
  this._slots.push(slot);
818
- pipe = slot.pipe(send);
819
  } else {
820
- pipe = (this._sequence = this._sequence.pipe(send, send));
 
821
  }
822
  // Return the piped Promise object, enhanced with an abort method,
823
  // which is delegated to the jqXHR object of the current upload,
@@ -841,50 +992,93 @@
841
  var that = this,
842
  result = true,
843
  options = $.extend({}, this.options, data),
 
 
844
  limit = options.limitMultiFileUploads,
 
 
 
845
  paramName = this._getParamName(options),
846
  paramNameSet,
847
  paramNameSlice,
848
  fileSet,
849
- i;
850
- if (!(options.singleFileUploads || limit) ||
 
 
 
 
 
 
 
851
  !this._isXHRUpload(options)) {
852
- fileSet = [data.files];
853
  paramNameSet = [paramName];
854
- } else if (!options.singleFileUploads && limit) {
855
  fileSet = [];
856
  paramNameSet = [];
857
- for (i = 0; i < data.files.length; i += limit) {
858
- fileSet.push(data.files.slice(i, i + limit));
859
  paramNameSlice = paramName.slice(i, i + limit);
860
  if (!paramNameSlice.length) {
861
  paramNameSlice = paramName;
862
  }
863
  paramNameSet.push(paramNameSlice);
864
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
865
  } else {
866
  paramNameSet = paramName;
867
  }
868
- data.originalFiles = data.files;
869
- $.each(fileSet || data.files, function (index, element) {
870
  var newData = $.extend({}, data);
871
  newData.files = fileSet ? element : [element];
872
  newData.paramName = paramNameSet[index];
873
  that._initResponseObject(newData);
874
  that._initProgressObject(newData);
875
  that._addConvenienceMethods(e, newData);
876
- result = that._trigger('add', e, newData);
 
 
 
 
877
  return result;
878
  });
879
  return result;
880
  },
881
 
882
- _replaceFileInput: function (input) {
883
- var inputClone = input.clone(true);
 
 
 
 
884
  $('<form></form>').append(inputClone)[0].reset();
885
  // Detaching allows to insert the fileInput on another form
886
  // without loosing the file input value:
887
  input.after(inputClone).detach();
 
 
 
 
 
888
  // Avoid memory leaks with the detached file input:
889
  $.cleanData(input.unbind('remove'));
890
  // Replace the original file input element in the fileInput
@@ -906,6 +1100,8 @@
906
  _handleFileTreeEntry: function (entry, path) {
907
  var that = this,
908
  dfd = $.Deferred(),
 
 
909
  errorHandler = function (e) {
910
  if (e && !e.entry) {
911
  e.entry = entry;
@@ -916,7 +1112,24 @@
916
  // to be returned together in one set:
917
  dfd.resolve([e]);
918
  },
919
- dirReader;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
920
  path = path || '';
921
  if (entry.isFile) {
922
  if (entry._file) {
@@ -931,16 +1144,9 @@
931
  }
932
  } else if (entry.isDirectory) {
933
  dirReader = entry.createReader();
934
- dirReader.readEntries(function (entries) {
935
- that._handleFileTreeEntries(
936
- entries,
937
- path + entry.name + '/'
938
- ).done(function (files) {
939
- dfd.resolve(files);
940
- }).fail(errorHandler);
941
- }, errorHandler);
942
  } else {
943
- // Return an empy list for file system items
944
  // other than files or directories:
945
  dfd.resolve([]);
946
  }
@@ -954,7 +1160,7 @@
954
  $.map(entries, function (entry) {
955
  return that._handleFileTreeEntry(entry, path);
956
  })
957
- ).pipe(function () {
958
  return Array.prototype.concat.apply(
959
  [],
960
  arguments
@@ -1023,7 +1229,7 @@
1023
  return $.when.apply(
1024
  $,
1025
  $.map(fileInput, this._getSingleFileInputFiles)
1026
- ).pipe(function () {
1027
  return Array.prototype.concat.apply(
1028
  [],
1029
  arguments
@@ -1040,9 +1246,13 @@
1040
  this._getFileInputFiles(data.fileInput).always(function (files) {
1041
  data.files = files;
1042
  if (that.options.replaceFileInput) {
1043
- that._replaceFileInput(data.fileInput);
1044
  }
1045
- if (that._trigger('change', e, data) !== false) {
 
 
 
 
1046
  that._onAdd(e, data);
1047
  }
1048
  });
@@ -1059,71 +1269,80 @@
1059
  data.files.push(file);
1060
  }
1061
  });
1062
- if (this._trigger('paste', e, data) === false ||
1063
- this._onAdd(e, data) === false) {
1064
- return false;
 
 
 
1065
  }
1066
  }
1067
  },
1068
 
1069
  _onDrop: function (e) {
 
1070
  var that = this,
1071
- dataTransfer = e.dataTransfer = e.originalEvent &&
1072
- e.originalEvent.dataTransfer,
1073
  data = {};
1074
  if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
1075
  e.preventDefault();
1076
  this._getDroppedFiles(dataTransfer).always(function (files) {
1077
  data.files = files;
1078
- if (that._trigger('drop', e, data) !== false) {
 
 
 
 
1079
  that._onAdd(e, data);
1080
  }
1081
  });
1082
  }
1083
  },
1084
 
1085
- _onDragOver: function (e) {
1086
- var dataTransfer = e.dataTransfer = e.originalEvent &&
1087
- e.originalEvent.dataTransfer;
1088
- if (dataTransfer) {
1089
- if (this._trigger('dragover', e) === false) {
1090
- return false;
1091
- }
1092
- if ($.inArray('Files', dataTransfer.types) !== -1) {
1093
- dataTransfer.dropEffect = 'copy';
1094
- e.preventDefault();
1095
- }
1096
- }
1097
- },
1098
 
1099
  _initEventHandlers: function () {
1100
  if (this._isXHRUpload(this.options)) {
1101
  this._on(this.options.dropZone, {
1102
  dragover: this._onDragOver,
1103
- drop: this._onDrop
 
 
 
 
1104
  });
1105
  this._on(this.options.pasteZone, {
1106
  paste: this._onPaste
1107
  });
1108
  }
1109
- this._on(this.options.fileInput, {
1110
- change: this._onChange
1111
- });
 
 
1112
  },
1113
 
1114
  _destroyEventHandlers: function () {
1115
- this._off(this.options.dropZone, 'dragover drop');
1116
  this._off(this.options.pasteZone, 'paste');
1117
  this._off(this.options.fileInput, 'change');
1118
  },
1119
 
 
 
 
 
1120
  _setOption: function (key, value) {
1121
- var refresh = $.inArray(key, this._refreshOptionsList) !== -1;
1122
- if (refresh) {
1123
  this._destroyEventHandlers();
1124
  }
1125
  this._super(key, value);
1126
- if (refresh) {
1127
  this._initSpecialOptions();
1128
  this._initEventHandlers();
1129
  }
@@ -1145,10 +1364,45 @@
1145
  }
1146
  },
1147
 
1148
- _create: function () {
1149
- var options = this.options;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1150
  // Initialize options set via HTML5 data-attributes:
1151
- $.extend(options, $(this.element[0].cloneNode(false)).data());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1152
  this._initSpecialOptions();
1153
  this._slots = [];
1154
  this._sequence = this._getXHRPromise(true);
@@ -1217,8 +1471,13 @@
1217
  if (aborted) {
1218
  return;
1219
  }
 
 
 
 
1220
  data.files = files;
1221
- jqXHR = that._onSend(null, data).then(
 
1222
  function (result, textStatus, jqXHR) {
1223
  dfd.resolve(result, textStatus, jqXHR);
1224
  },
1
  /*
2
+ * jQuery File Upload Plugin
3
  * https://github.com/blueimp/jQuery-File-Upload
4
  *
5
  * Copyright 2010, Sebastian Tschan
6
  * https://blueimp.net
7
  *
8
  * Licensed under the MIT license:
9
+ * https://opensource.org/licenses/MIT
10
  */
11
 
12
+ /* jshint nomen:false */
13
+ /* global define, require, window, document, location, Blob, FormData */
14
 
15
+ ;(function (factory) {
16
  'use strict';
17
  if (typeof define === 'function' && define.amd) {
18
  // Register as an anonymous AMD module:
19
  define([
20
  'jquery',
21
+ 'jquery-ui/ui/widget'
22
  ], factory);
23
+ } else if (typeof exports === 'object') {
24
+ // Node/CommonJS:
25
+ factory(
26
+ require('jquery'),
27
+ require('./vendor/jquery.ui.widget')
28
+ );
29
  } else {
30
  // Browser globals:
31
  factory(window.jQuery);
33
  }(function ($) {
34
  'use strict';
35
 
36
+ // Detect file input support, based on
37
+ // http://viljamis.com/blog/2012/file-upload-support-on-mobile/
38
+ $.support.fileInput = !(new RegExp(
39
+ // Handle devices which give false positives for the feature detection:
40
+ '(Android (1\\.[0156]|2\\.[01]))' +
41
+ '|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)' +
42
+ '|(w(eb)?OSBrowser)|(webOS)' +
43
+ '|(Kindle/(1\\.0|2\\.[05]|3\\.0))'
44
+ ).test(window.navigator.userAgent) ||
45
+ // Feature detection for all other devices:
46
+ $('<input type="file"/>').prop('disabled'));
47
+
48
  // The FileReader API is not actually used, but works as feature detection,
49
+ // as some Safari versions (5?) support XHR file uploads via the FormData API,
50
+ // but not non-multipart XHR file uploads.
51
+ // window.XMLHttpRequestUpload is not available on IE10, so we check for
52
+ // window.ProgressEvent instead to detect XHR2 file upload capability:
53
+ $.support.xhrFileUpload = !!(window.ProgressEvent && window.FileReader);
54
  $.support.xhrFormDataFileUpload = !!window.FormData;
55
 
56
+ // Detect support for Blob slicing (required for chunked uploads):
57
+ $.support.blobSlice = window.Blob && (Blob.prototype.slice ||
58
+ Blob.prototype.webkitSlice || Blob.prototype.mozSlice);
59
+
60
+ // Helper function to create drag handlers for dragover/dragenter/dragleave:
61
+ function getDragHandler(type) {
62
+ var isDragOver = type === 'dragover';
63
+ return function (e) {
64
+ e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
65
+ var dataTransfer = e.dataTransfer;
66
+ if (dataTransfer && $.inArray('Files', dataTransfer.types) !== -1 &&
67
+ this._trigger(
68
+ type,
69
+ $.Event(type, {delegatedEvent: e})
70
+ ) !== false) {
71
+ e.preventDefault();
72
+ if (isDragOver) {
73
+ dataTransfer.dropEffect = 'copy';
74
+ }
75
+ }
76
+ };
77
+ }
78
+
79
  // The fileupload widget listens for change events on file input fields defined
80
  // via fileInput setting and paste or drop events of the given dropZone.
81
  // In addition to the default jQuery Widget methods, the fileupload widget
90
  // The drop target element(s), by the default the complete document.
91
  // Set to null to disable drag & drop support:
92
  dropZone: $(document),
93
+ // The paste target element(s), by the default undefined.
94
+ // Set to a DOM node or jQuery object to enable file pasting:
95
+ pasteZone: undefined,
96
  // The file input field(s), that are listened to for change events.
97
  // If undefined, it is set to the file input fields inside
98
  // of the widget element on plugin initialization.
115
  // To limit the number of files uploaded with one XHR request,
116
  // set the following option to an integer greater than 0:
117
  limitMultiFileUploads: undefined,
118
+ // The following option limits the number of files uploaded with one
119
+ // XHR request to keep the request size under or equal to the defined
120
+ // limit in bytes:
121
+ limitMultiFileUploadSize: undefined,
122
+ // Multipart file uploads add a number of bytes to each uploaded file,
123
+ // therefore the following option adds an overhead for each file used
124
+ // in the limitMultiFileUploadSize configuration:
125
+ limitMultiFileUploadSizeOverhead: 512,
126
  // Set the following option to true to issue all file upload requests
127
  // in a sequential order:
128
  sequentialUploads: false,
166
  // By default, uploads are started automatically when adding files:
167
  autoUpload: true,
168
 
169
+ // Error and info messages:
170
+ messages: {
171
+ uploadedBytes: 'Uploaded bytes exceed file size'
172
+ },
173
+
174
+ // Translation function, gets the message key to be translated
175
+ // and an object with context specific data as arguments:
176
+ i18n: function (message, context) {
177
+ message = this.messages[message] || message.toString();
178
+ if (context) {
179
+ $.each(context, function (key, value) {
180
+ message = message.replace('{' + key + '}', value);
181
+ });
182
+ }
183
+ return message;
184
+ },
185
+
186
  // Additional form data to be sent along with the file uploads can be set
187
  // using this option, which accepts an array of objects with name and
188
  // value properties, a function returning such an array, a FormData
195
  // The add callback is invoked as soon as files are added to the fileupload
196
  // widget (via file input selection, drag & drop, paste or add API call).
197
  // If the singleFileUploads option is enabled, this callback will be
198
+ // called once for each file in the selection for XHR file uploads, else
199
  // once for each file selection.
200
+ //
201
  // The upload starts when the submit method is invoked on the data parameter.
202
  // The data object contains a files property holding the added files
203
+ // and allows you to override plugin options as well as define ajax settings.
204
+ //
205
  // Listeners for this callback can also be bound the following way:
206
  // .bind('fileuploadadd', func);
207
+ //
208
  // data.submit() returns a Promise object and allows to attach additional
209
  // handlers using jQuery's Deferred callbacks:
210
  // data.submit().done(func).fail(func).always(func);
211
  add: function (e, data) {
212
+ if (e.isDefaultPrevented()) {
213
+ return false;
214
+ }
215
  if (data.autoUpload || (data.autoUpload !== false &&
216
+ $(this).fileupload('option', 'autoUpload'))) {
217
+ data.process().done(function () {
218
+ data.submit();
219
+ });
220
  }
221
  },
222
 
261
  // Callback for dragover events of the dropZone(s):
262
  // dragover: function (e) {}, // .bind('fileuploaddragover', func);
263
 
264
+ // Callback before the start of each chunk upload request (before form data initialization):
265
+ // chunkbeforesend: function (e, data) {}, // .bind('fileuploadchunkbeforesend', func);
266
+
267
  // Callback for the start of each chunk upload request:
268
  // chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
269
 
280
  // The following are jQuery ajax settings required for the file uploads:
281
  processData: false,
282
  contentType: false,
283
+ cache: false,
284
+ timeout: 0
285
  },
286
 
287
+ // A list of options that require reinitializing event listeners and/or
288
+ // special initialization code:
289
+ _specialOptions: [
290
  'fileInput',
291
  'dropZone',
292
  'pasteZone',
294
  'forceIframeTransport'
295
  ],
296
 
297
+ _blobSlice: $.support.blobSlice && function () {
298
+ var slice = this.slice || this.webkitSlice || this.mozSlice;
299
+ return slice.apply(this, arguments);
300
+ },
301
+
302
  _BitrateTimer: function () {
303
  this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
304
  this.loaded = 0;
322
 
323
  _getFormData: function (options) {
324
  var formData;
325
+ if ($.type(options.formData) === 'function') {
326
  return options.formData(options.form);
327
  }
328
  if ($.isArray(options.formData)) {
402
  // Trigger a custom progress event with a total data property set
403
  // to the file size(s) of the current upload and a loaded data
404
  // property calculated accordingly:
405
+ this._trigger(
406
+ 'progress',
407
+ $.Event('progress', {delegatedEvent: e}),
408
+ data
409
+ );
410
  // Trigger a global progress event for all current file uploads,
411
  // including ajax calls queued for sequential file uploads:
412
+ this._trigger(
413
+ 'progressall',
414
+ $.Event('progressall', {delegatedEvent: e}),
415
+ this._progress
416
+ );
417
  }
418
  },
419
 
437
  }
438
  },
439
 
440
+ _deinitProgressListener: function (options) {
441
+ var xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
442
+ if (xhr.upload) {
443
+ $(xhr.upload).unbind('progress');
444
+ }
445
+ },
446
+
447
  _isInstanceOf: function (type, obj) {
448
  // Cross-frame instanceof check
449
  return Object.prototype.toString.call(obj) === '[object ' + type + ']';
455
  file = options.files[0],
456
  // Ignore non-multipart setting if not supported:
457
  multipart = options.multipart || !$.support.xhrFileUpload,
458
+ paramName = $.type(options.paramName) === 'array' ?
459
+ options.paramName[0] : options.paramName;
460
+ options.headers = $.extend({}, options.headers);
461
  if (options.contentRange) {
462
  options.headers['Content-Range'] = options.contentRange;
463
  }
464
+ if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
465
  options.headers['Content-Disposition'] = 'attachment; filename="' +
466
+ encodeURI(file.uploadName || file.name) + '"';
467
+ }
468
+ if (!multipart) {
469
+ options.contentType = file.type || 'application/octet-stream';
470
  options.data = options.blob || file;
471
  } else if ($.support.xhrFormDataFileUpload) {
472
  if (options.postMessage) {
483
  } else {
484
  $.each(options.files, function (index, file) {
485
  formData.push({
486
+ name: ($.type(options.paramName) === 'array' &&
487
+ options.paramName[index]) || paramName,
488
  value: file
489
  });
490
  });
499
  });
500
  }
501
  if (options.blob) {
502
+ formData.append(
503
+ paramName,
504
+ options.blob,
505
+ file.uploadName || file.name
506
+ );
507
  } else {
508
  $.each(options.files, function (index, file) {
509
  // This check allows the tests to run with
511
  if (that._isInstanceOf('File', file) ||
512
  that._isInstanceOf('Blob', file)) {
513
  formData.append(
514
+ ($.type(options.paramName) === 'array' &&
515
+ options.paramName[index]) || paramName,
516
  file,
517
+ file.uploadName || file.name
518
  );
519
  }
520
  });
527
  },
528
 
529
  _initIframeSettings: function (options) {
530
+ var targetHost = $('<a></a>').prop('href', options.url).prop('host');
531
  // Setting the dataType to iframe enables the iframe transport:
532
  options.dataType = 'iframe ' + (options.dataType || '');
533
  // The iframe transport accepts a serialized array as form data:
534
  options.formData = this._getFormData(options);
535
  // Add redirect url to form data on cross-domain uploads:
536
+ if (options.redirect && targetHost && targetHost !== location.host) {
 
537
  options.formData.push({
538
  name: options.redirectParamName || 'redirect',
539
  value: options.redirect
598
  options.url = options.form.prop('action') || location.href;
599
  }
600
  // The HTTP request method must be "POST" or "PUT":
601
+ options.type = (options.type ||
602
+ ($.type(options.form.prop('method')) === 'string' &&
603
+ options.form.prop('method')) || ''
604
+ ).toUpperCase();
605
  if (options.type !== 'POST' && options.type !== 'PUT' &&
606
  options.type !== 'PATCH') {
607
  options.type = 'POST';
657
  return this._enhancePromise(promise);
658
  },
659
 
660
+ // Adds convenience methods to the data callback argument:
661
  _addConvenienceMethods: function (e, data) {
662
+ var that = this,
663
+ getPromise = function (args) {
664
+ return $.Deferred().resolveWith(that, args).promise();
665
+ };
666
+ data.process = function (resolveFunc, rejectFunc) {
667
+ if (resolveFunc || rejectFunc) {
668
+ data._processQueue = this._processQueue =
669
+ (this._processQueue || getPromise([this])).then(
670
+ function () {
671
+ if (data.errorThrown) {
672
+ return $.Deferred()
673
+ .rejectWith(that, [data]).promise();
674
+ }
675
+ return getPromise(arguments);
676
+ }
677
+ ).then(resolveFunc, rejectFunc);
678
+ }
679
+ return this._processQueue || getPromise([this]);
680
+ };
681
  data.submit = function () {
682
  if (this.state() !== 'pending') {
683
  data.jqXHR = this.jqXHR =
684
+ (that._trigger(
685
+ 'submit',
686
+ $.Event('submit', {delegatedEvent: e}),
687
+ this
688
+ ) !== false) && that._onSend(e, this);
689
  }
690
  return this.jqXHR || that._getXHRPromise();
691
  };
693
  if (this.jqXHR) {
694
  return this.jqXHR.abort();
695
  }
696
+ this.errorThrown = 'abort';
697
+ that._trigger('fail', null, this);
698
+ return that._getXHRPromise(false);
699
  };
700
  data.state = function () {
701
  if (this.jqXHR) {
702
  return that._getDeferredState(this.jqXHR);
703
  }
704
+ if (this._processQueue) {
705
+ return that._getDeferredState(this._processQueue);
706
+ }
707
+ };
708
+ data.processing = function () {
709
+ return !this.jqXHR && this._processQueue && that
710
+ ._getDeferredState(this._processQueue) === 'pending';
711
  };
712
  data.progress = function () {
713
  return this._progress;
733
  // should be uploaded in chunks, but does not invoke any
734
  // upload requests:
735
  _chunkedUpload: function (options, testOnly) {
736
+ options.uploadedBytes = options.uploadedBytes || 0;
737
  var that = this,
738
  file = options.files[0],
739
  fs = file.size,
740
+ ub = options.uploadedBytes,
741
  mcs = options.maxChunkSize || fs,
742
+ slice = this._blobSlice,
743
  dfd = $.Deferred(),
744
  promise = dfd.promise(),
745
  jqXHR,
746
  upload;
747
+ if (!(this._isXHRUpload(options) && slice && (ub || ($.type(mcs) === 'function' ? mcs(options) : mcs) < fs)) ||
748
  options.data) {
749
  return false;
750
  }
752
  return true;
753
  }
754
  if (ub >= fs) {
755
+ file.error = options.i18n('uploadedBytes');
756
  return this._getXHRPromise(
757
  false,
758
  options.context,
767
  o.blob = slice.call(
768
  file,
769
  ub,
770
+ ub + ($.type(mcs) === 'function' ? mcs(o) : mcs),
771
  file.type
772
  );
773
  // Store the current chunk size, as the blob itself
776
  // Expose the chunk bytes position range:
777
  o.contentRange = 'bytes ' + ub + '-' +
778
  (ub + o.chunkSize - 1) + '/' + fs;
779
+ // Trigger chunkbeforesend to allow form data to be updated for this chunk
780
+ that._trigger('chunkbeforesend', null, o);
781
  // Process the upload data (the blob and potential form data):
782
  that._initXHRData(o);
783
  // Add progress listeners for this chunk upload:
790
  // Create a progress event if no final progress event
791
  // with loaded equaling total has been triggered
792
  // for this chunk:
793
+ if (currentLoaded + o.chunkSize - o._progress.loaded) {
794
  that._onProgress($.Event('progress', {
795
  lengthComputable: true,
796
  loaded: ub - o.uploadedBytes,
824
  o.context,
825
  [jqXHR, textStatus, errorThrown]
826
  );
827
+ })
828
+ .always(function () {
829
+ that._deinitProgressListener(o);
830
  });
831
  };
832
  this._enhancePromise(promise);
916
  // Set timer for bitrate progress calculation:
917
  options._bitrateTimer = new that._BitrateTimer();
918
  jqXHR = jqXHR || (
919
+ ((aborted || that._trigger(
920
+ 'send',
921
+ $.Event('send', {delegatedEvent: e}),
922
+ options
923
+ ) === false) &&
924
  that._getXHRPromise(false, options.context, aborted)) ||
925
  that._chunkedUpload(options) || $.ajax(options)
926
  ).done(function (result, textStatus, jqXHR) {
928
  }).fail(function (jqXHR, textStatus, errorThrown) {
929
  that._onFail(jqXHR, textStatus, errorThrown, options);
930
  }).always(function (jqXHRorResult, textStatus, jqXHRorError) {
931
+ that._deinitProgressListener(options);
932
  that._onAlways(
933
  jqXHRorResult,
934
  textStatus,
965
  if (this.options.limitConcurrentUploads > 1) {
966
  slot = $.Deferred();
967
  this._slots.push(slot);
968
+ pipe = slot.then(send);
969
  } else {
970
+ this._sequence = this._sequence.then(send, send);
971
+ pipe = this._sequence;
972
  }
973
  // Return the piped Promise object, enhanced with an abort method,
974
  // which is delegated to the jqXHR object of the current upload,
992
  var that = this,
993
  result = true,
994
  options = $.extend({}, this.options, data),
995
+ files = data.files,
996
+ filesLength = files.length,
997
  limit = options.limitMultiFileUploads,
998
+ limitSize = options.limitMultiFileUploadSize,
999
+ overhead = options.limitMultiFileUploadSizeOverhead,
1000
+ batchSize = 0,
1001
  paramName = this._getParamName(options),
1002
  paramNameSet,
1003
  paramNameSlice,
1004
  fileSet,
1005
+ i,
1006
+ j = 0;
1007
+ if (!filesLength) {
1008
+ return false;
1009
+ }
1010
+ if (limitSize && files[0].size === undefined) {
1011
+ limitSize = undefined;
1012
+ }
1013
+ if (!(options.singleFileUploads || limit || limitSize) ||
1014
  !this._isXHRUpload(options)) {
1015
+ fileSet = [files];
1016
  paramNameSet = [paramName];
1017
+ } else if (!(options.singleFileUploads || limitSize) && limit) {
1018
  fileSet = [];
1019
  paramNameSet = [];
1020
+ for (i = 0; i < filesLength; i += limit) {
1021
+ fileSet.push(files.slice(i, i + limit));
1022
  paramNameSlice = paramName.slice(i, i + limit);
1023
  if (!paramNameSlice.length) {
1024
  paramNameSlice = paramName;
1025
  }
1026
  paramNameSet.push(paramNameSlice);
1027
  }
1028
+ } else if (!options.singleFileUploads && limitSize) {
1029
+ fileSet = [];
1030
+ paramNameSet = [];
1031
+ for (i = 0; i < filesLength; i = i + 1) {
1032
+ batchSize += files[i].size + overhead;
1033
+ if (i + 1 === filesLength ||
1034
+ ((batchSize + files[i + 1].size + overhead) > limitSize) ||
1035
+ (limit && i + 1 - j >= limit)) {
1036
+ fileSet.push(files.slice(j, i + 1));
1037
+ paramNameSlice = paramName.slice(j, i + 1);
1038
+ if (!paramNameSlice.length) {
1039
+ paramNameSlice = paramName;
1040
+ }
1041
+ paramNameSet.push(paramNameSlice);
1042
+ j = i + 1;
1043
+ batchSize = 0;
1044
+ }
1045
+ }
1046
  } else {
1047
  paramNameSet = paramName;
1048
  }
1049
+ data.originalFiles = files;
1050
+ $.each(fileSet || files, function (index, element) {
1051
  var newData = $.extend({}, data);
1052
  newData.files = fileSet ? element : [element];
1053
  newData.paramName = paramNameSet[index];
1054
  that._initResponseObject(newData);
1055
  that._initProgressObject(newData);
1056
  that._addConvenienceMethods(e, newData);
1057
+ result = that._trigger(
1058
+ 'add',
1059
+ $.Event('add', {delegatedEvent: e}),
1060
+ newData
1061
+ );
1062
  return result;
1063
  });
1064
  return result;
1065
  },
1066
 
1067
+ _replaceFileInput: function (data) {
1068
+ var input = data.fileInput,
1069
+ inputClone = input.clone(true),
1070
+ restoreFocus = input.is(document.activeElement);
1071
+ // Add a reference for the new cloned file input to the data argument:
1072
+ data.fileInputClone = inputClone;
1073
  $('<form></form>').append(inputClone)[0].reset();
1074
  // Detaching allows to insert the fileInput on another form
1075
  // without loosing the file input value:
1076
  input.after(inputClone).detach();
1077
+ // If the fileInput had focus before it was detached,
1078
+ // restore focus to the inputClone.
1079
+ if (restoreFocus) {
1080
+ inputClone.focus();
1081
+ }
1082
  // Avoid memory leaks with the detached file input:
1083
  $.cleanData(input.unbind('remove'));
1084
  // Replace the original file input element in the fileInput
1100
  _handleFileTreeEntry: function (entry, path) {
1101
  var that = this,
1102
  dfd = $.Deferred(),
1103
+ entries = [],
1104
+ dirReader,
1105
  errorHandler = function (e) {
1106
  if (e && !e.entry) {
1107
  e.entry = entry;
1112
  // to be returned together in one set:
1113
  dfd.resolve([e]);
1114
  },
1115
+ successHandler = function (entries) {
1116
+ that._handleFileTreeEntries(
1117
+ entries,
1118
+ path + entry.name + '/'
1119
+ ).done(function (files) {
1120
+ dfd.resolve(files);
1121
+ }).fail(errorHandler);
1122
+ },
1123
+ readEntries = function () {
1124
+ dirReader.readEntries(function (results) {
1125
+ if (!results.length) {
1126
+ successHandler(entries);
1127
+ } else {
1128
+ entries = entries.concat(results);
1129
+ readEntries();
1130
+ }
1131
+ }, errorHandler);
1132
+ };
1133
  path = path || '';
1134
  if (entry.isFile) {
1135
  if (entry._file) {
1144
  }
1145
  } else if (entry.isDirectory) {
1146
  dirReader = entry.createReader();
1147
+ readEntries();
 
 
 
 
 
 
 
1148
  } else {
1149
+ // Return an empty list for file system items
1150
  // other than files or directories:
1151
  dfd.resolve([]);
1152
  }
1160
  $.map(entries, function (entry) {
1161
  return that._handleFileTreeEntry(entry, path);
1162
  })
1163
+ ).then(function () {
1164
  return Array.prototype.concat.apply(
1165
  [],
1166
  arguments
1229
  return $.when.apply(
1230
  $,
1231
  $.map(fileInput, this._getSingleFileInputFiles)
1232
+ ).then(function () {
1233
  return Array.prototype.concat.apply(
1234
  [],
1235
  arguments
1246
  this._getFileInputFiles(data.fileInput).always(function (files) {
1247
  data.files = files;
1248
  if (that.options.replaceFileInput) {
1249
+ that._replaceFileInput(data);
1250
  }
1251
+ if (that._trigger(
1252
+ 'change',
1253
+ $.Event('change', {delegatedEvent: e}),
1254
+ data
1255
+ ) !== false) {
1256
  that._onAdd(e, data);
1257
  }
1258
  });
1269
  data.files.push(file);
1270
  }
1271
  });
1272
+ if (this._trigger(
1273
+ 'paste',
1274
+ $.Event('paste', {delegatedEvent: e}),
1275
+ data
1276
+ ) !== false) {
1277
+ this._onAdd(e, data);
1278
  }
1279
  }
1280
  },
1281
 
1282
  _onDrop: function (e) {
1283
+ e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
1284
  var that = this,
1285
+ dataTransfer = e.dataTransfer,
 
1286
  data = {};
1287
  if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
1288
  e.preventDefault();
1289
  this._getDroppedFiles(dataTransfer).always(function (files) {
1290
  data.files = files;
1291
+ if (that._trigger(
1292
+ 'drop',
1293
+ $.Event('drop', {delegatedEvent: e}),
1294
+ data
1295
+ ) !== false) {
1296
  that._onAdd(e, data);
1297
  }
1298
  });
1299
  }
1300
  },
1301
 
1302
+ _onDragOver: getDragHandler('dragover'),
1303
+
1304
+ _onDragEnter: getDragHandler('dragenter'),
1305
+
1306
+ _onDragLeave: getDragHandler('dragleave'),
 
 
 
 
 
 
 
 
1307
 
1308
  _initEventHandlers: function () {
1309
  if (this._isXHRUpload(this.options)) {
1310
  this._on(this.options.dropZone, {
1311
  dragover: this._onDragOver,
1312
+ drop: this._onDrop,
1313
+ // event.preventDefault() on dragenter is required for IE10+:
1314
+ dragenter: this._onDragEnter,
1315
+ // dragleave is not required, but added for completeness:
1316
+ dragleave: this._onDragLeave
1317
  });
1318
  this._on(this.options.pasteZone, {
1319
  paste: this._onPaste
1320
  });
1321
  }
1322
+ if ($.support.fileInput) {
1323
+ this._on(this.options.fileInput, {
1324
+ change: this._onChange
1325
+ });
1326
+ }
1327
  },
1328
 
1329
  _destroyEventHandlers: function () {
1330
+ this._off(this.options.dropZone, 'dragenter dragleave dragover drop');
1331
  this._off(this.options.pasteZone, 'paste');
1332
  this._off(this.options.fileInput, 'change');
1333
  },
1334
 
1335
+ _destroy: function () {
1336
+ this._destroyEventHandlers();
1337
+ },
1338
+
1339
  _setOption: function (key, value) {
1340
+ var reinit = $.inArray(key, this._specialOptions) !== -1;
1341
+ if (reinit) {
1342
  this._destroyEventHandlers();
1343
  }
1344
  this._super(key, value);
1345
+ if (reinit) {
1346
  this._initSpecialOptions();
1347
  this._initEventHandlers();
1348
  }
1364
  }
1365
  },
1366
 
1367
+ _getRegExp: function (str) {
1368
+ var parts = str.split('/'),
1369
+ modifiers = parts.pop();
1370
+ parts.shift();
1371
+ return new RegExp(parts.join('/'), modifiers);
1372
+ },
1373
+
1374
+ _isRegExpOption: function (key, value) {
1375
+ return key !== 'url' && $.type(value) === 'string' &&
1376
+ /^\/.*\/[igm]{0,3}$/.test(value);
1377
+ },
1378
+
1379
+ _initDataAttributes: function () {
1380
+ var that = this,
1381
+ options = this.options,
1382
+ data = this.element.data();
1383
  // Initialize options set via HTML5 data-attributes:
1384
+ $.each(
1385
+ this.element[0].attributes,
1386
+ function (index, attr) {
1387
+ var key = attr.name.toLowerCase(),
1388
+ value;
1389
+ if (/^data-/.test(key)) {
1390
+ // Convert hyphen-ated key to camelCase:
1391
+ key = key.slice(5).replace(/-[a-z]/g, function (str) {
1392
+ return str.charAt(1).toUpperCase();
1393
+ });
1394
+ value = data[key];
1395
+ if (that._isRegExpOption(key, value)) {
1396
+ value = that._getRegExp(value);
1397
+ }
1398
+ options[key] = value;
1399
+ }
1400
+ }
1401
+ );
1402
+ },
1403
+
1404
+ _create: function () {
1405
+ this._initDataAttributes();
1406
  this._initSpecialOptions();
1407
  this._slots = [];
1408
  this._sequence = this._getXHRPromise(true);
1471
  if (aborted) {
1472
  return;
1473
  }
1474
+ if (!files.length) {
1475
+ dfd.reject();
1476
+ return;
1477
+ }
1478
  data.files = files;
1479
+ jqXHR = that._onSend(null, data);
1480
+ jqXHR.then(
1481
  function (result, textStatus, jqXHR) {
1482
  dfd.resolve(result, textStatus, jqXHR);
1483
  },
filemanager/js/jq_uploader/jquery.iframe-transport.js CHANGED
@@ -1,22 +1,24 @@
1
  /*
2
- * jQuery Iframe Transport Plugin 1.6.1
3
  * https://github.com/blueimp/jQuery-File-Upload
4
  *
5
  * Copyright 2011, Sebastian Tschan
6
  * https://blueimp.net
7
  *
8
  * Licensed under the MIT license:
9
- * http://www.opensource.org/licenses/MIT
10
  */
11
 
12
- /*jslint unparam: true, nomen: true */
13
- /*global define, window, document */
14
 
15
- (function (factory) {
16
  'use strict';
17
  if (typeof define === 'function' && define.amd) {
18
  // Register as an anonymous AMD module:
19
  define(['jquery'], factory);
 
 
 
20
  } else {
21
  // Browser globals:
22
  factory(window.jQuery);
@@ -25,9 +27,16 @@
25
  'use strict';
26
 
27
  // Helper variable to create unique names for the transport iframes:
28
- var counter = 0;
 
 
29
 
30
- // The iframe transport accepts three additional options:
 
 
 
 
 
31
  // options.fileInput: a jQuery collection of file input fields
32
  // options.paramName: the parameter name for the file form data,
33
  // overrides the name property of the file input field(s),
@@ -35,9 +44,16 @@
35
  // options.formData: an array of objects with name and value properties,
36
  // equivalent to the return data of .serializeArray(), e.g.:
37
  // [{name: 'a', value: 1}, {name: 'b', value: 2}]
 
 
38
  $.ajaxTransport('iframe', function (options) {
39
  if (options.async) {
40
- var form,
 
 
 
 
 
41
  iframe,
42
  addParamChar;
43
  return {
@@ -56,14 +72,13 @@
56
  options.url = options.url + addParamChar + '_method=PATCH';
57
  options.type = 'POST';
58
  }
59
- // javascript:false as initial iframe src
60
- // prevents warning popups on HTTPS in IE6.
61
  // IE versions below IE8 cannot set the name property of
62
  // elements that have already been added to the DOM,
63
  // so we set the name along with the iframe HTML markup:
 
64
  iframe = $(
65
- '<iframe src="javascript:false;" name="iframe-transport-' +
66
- (counter += 1) + '"></iframe>'
67
  ).bind('load', function () {
68
  var fileInputClones,
69
  paramNames = $.isArray(options.paramName) ?
@@ -94,9 +109,14 @@
94
  );
95
  // Fix for IE endless progress bar activity bug
96
  // (happens on form submits to iframe targets):
97
- $('<iframe src="javascript:false;"></iframe>')
98
  .appendTo(form);
99
- form.remove();
 
 
 
 
 
100
  });
101
  form
102
  .prop('target', iframe.prop('name'))
@@ -132,6 +152,8 @@
132
  .prop('enctype', 'multipart/form-data')
133
  // enctype must be set as encoding for IE:
134
  .prop('encoding', 'multipart/form-data');
 
 
135
  }
136
  form.submit();
137
  // Insert the file input fields at their original location
@@ -139,7 +161,10 @@
139
  if (fileInputClones && fileInputClones.length) {
140
  options.fileInput.each(function (index, input) {
141
  var clone = $(fileInputClones[index]);
142
- $(input).prop('name', clone.prop('name'));
 
 
 
143
  clone.replaceWith(input);
144
  });
145
  }
@@ -153,7 +178,7 @@
153
  // concat is used to avoid the "Script URL" JSLint error:
154
  iframe
155
  .unbind('load')
156
- .prop('src', 'javascript'.concat(':false;'));
157
  }
158
  if (form) {
159
  form.remove();
@@ -164,18 +189,32 @@
164
  });
165
 
166
  // The iframe transport returns the iframe content document as response.
167
- // The following adds converters from iframe to text, json, html, and script:
 
 
 
 
 
 
 
 
168
  $.ajaxSetup({
169
  converters: {
170
  'iframe text': function (iframe) {
171
  return iframe && $(iframe[0].body).text();
172
  },
173
  'iframe json': function (iframe) {
174
- return iframe && $.parseJSON($(iframe[0].body).text());
175
  },
176
  'iframe html': function (iframe) {
177
  return iframe && $(iframe[0].body).html();
178
  },
 
 
 
 
 
 
179
  'iframe script': function (iframe) {
180
  return iframe && $.globalEval($(iframe[0].body).text());
181
  }
1
  /*
2
+ * jQuery Iframe Transport Plugin
3
  * https://github.com/blueimp/jQuery-File-Upload
4
  *
5
  * Copyright 2011, Sebastian Tschan
6
  * https://blueimp.net
7
  *
8
  * Licensed under the MIT license:
9
+ * https://opensource.org/licenses/MIT
10
  */
11
 
12
+ /* global define, require, window, document, JSON */
 
13
 
14
+ ;(function (factory) {
15
  'use strict';
16
  if (typeof define === 'function' && define.amd) {
17
  // Register as an anonymous AMD module:
18
  define(['jquery'], factory);
19
+ } else if (typeof exports === 'object') {
20
+ // Node/CommonJS:
21
+ factory(require('jquery'));
22
  } else {
23
  // Browser globals:
24
  factory(window.jQuery);
27
  'use strict';
28
 
29
  // Helper variable to create unique names for the transport iframes:
30
+ var counter = 0,
31
+ jsonAPI = $,
32
+ jsonParse = 'parseJSON';
33
 
34
+ if ('JSON' in window && 'parse' in JSON) {
35
+ jsonAPI = JSON;
36
+ jsonParse = 'parse';
37
+ }
38
+
39
+ // The iframe transport accepts four additional options:
40
  // options.fileInput: a jQuery collection of file input fields
41
  // options.paramName: the parameter name for the file form data,
42
  // overrides the name property of the file input field(s),
44
  // options.formData: an array of objects with name and value properties,
45
  // equivalent to the return data of .serializeArray(), e.g.:
46
  // [{name: 'a', value: 1}, {name: 'b', value: 2}]
47
+ // options.initialIframeSrc: the URL of the initial iframe src,
48
+ // by default set to "javascript:false;"
49
  $.ajaxTransport('iframe', function (options) {
50
  if (options.async) {
51
+ // javascript:false as initial iframe src
52
+ // prevents warning popups on HTTPS in IE6:
53
+ /*jshint scripturl: true */
54
+ var initialIframeSrc = options.initialIframeSrc || 'javascript:false;',
55
+ /*jshint scripturl: false */
56
+ form,
57
  iframe,
58
  addParamChar;
59
  return {
72
  options.url = options.url + addParamChar + '_method=PATCH';
73
  options.type = 'POST';
74
  }
 
 
75
  // IE versions below IE8 cannot set the name property of
76
  // elements that have already been added to the DOM,
77
  // so we set the name along with the iframe HTML markup:
78
+ counter += 1;
79
  iframe = $(
80
+ '<iframe src="' + initialIframeSrc +
81
+ '" name="iframe-transport-' + counter + '"></iframe>'
82
  ).bind('load', function () {
83
  var fileInputClones,
84
  paramNames = $.isArray(options.paramName) ?
109
  );
110
  // Fix for IE endless progress bar activity bug
111
  // (happens on form submits to iframe targets):
112
+ $('<iframe src="' + initialIframeSrc + '"></iframe>')
113
  .appendTo(form);
114
+ window.setTimeout(function () {
115
+ // Removing the form in a setTimeout call
116
+ // allows Chrome's developer tools to display
117
+ // the response result
118
+ form.remove();
119
+ }, 0);
120
  });
121
  form
122
  .prop('target', iframe.prop('name'))
152
  .prop('enctype', 'multipart/form-data')
153
  // enctype must be set as encoding for IE:
154
  .prop('encoding', 'multipart/form-data');
155
+ // Remove the HTML5 form attribute from the input(s):
156
+ options.fileInput.removeAttr('form');
157
  }
158
  form.submit();
159
  // Insert the file input fields at their original location
161
  if (fileInputClones && fileInputClones.length) {
162
  options.fileInput.each(function (index, input) {
163
  var clone = $(fileInputClones[index]);
164
+ // Restore the original name and form properties:
165
+ $(input)
166
+ .prop('name', clone.prop('name'))
167
+ .attr('form', clone.attr('form'));
168
  clone.replaceWith(input);
169
  });
170
  }
178
  // concat is used to avoid the "Script URL" JSLint error:
179
  iframe
180
  .unbind('load')
181
+ .prop('src', initialIframeSrc);
182
  }
183
  if (form) {
184
  form.remove();
189
  });
190
 
191
  // The iframe transport returns the iframe content document as response.
192
+ // The following adds converters from iframe to text, json, html, xml
193
+ // and script.
194
+ // Please note that the Content-Type for JSON responses has to be text/plain
195
+ // or text/html, if the browser doesn't include application/json in the
196
+ // Accept header, else IE will show a download dialog.
197
+ // The Content-Type for XML responses on the other hand has to be always
198
+ // application/xml or text/xml, so IE properly parses the XML response.
199
+ // See also
200
+ // https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation
201
  $.ajaxSetup({
202
  converters: {
203
  'iframe text': function (iframe) {
204
  return iframe && $(iframe[0].body).text();
205
  },
206
  'iframe json': function (iframe) {
207
+ return iframe && jsonAPI[jsonParse]($(iframe[0].body).text());
208
  },
209
  'iframe html': function (iframe) {
210
  return iframe && $(iframe[0].body).html();
211
  },
212
+ 'iframe xml': function (iframe) {
213
+ var xmlDoc = iframe && iframe[0];
214
+ return xmlDoc && $.isXMLDoc(xmlDoc) ? xmlDoc :
215
+ $.parseXML((xmlDoc.XMLDocument && xmlDoc.XMLDocument.xml) ||
216
+ $(xmlDoc.body).html());
217
+ },
218
  'iframe script': function (iframe) {
219
  return iframe && $.globalEval($(iframe[0].body).text());
220
  }
filemanager/js/jq_uploader/jquery.upload-1.0.2.js DELETED
@@ -1,133 +0,0 @@
1
- /*
2
- * jQuery.upload v1.0.2
3
- *
4
- * Copyright (c) 2010 lagos
5
- * Dual licensed under the MIT and GPL licenses.
6
- *
7
- * http://lagoscript.org
8
- */
9
- (function($) {
10
-
11
- var uuid = 0;
12
-
13
- $.fn.upload = function(url, data, callback, type) {
14
- var self = this, inputs, checkbox, checked,
15
- iframeName = 'jquery_upload' + ++uuid,
16
- iframe = $('<iframe name="' + iframeName + '" style="position:absolute;top:-9999px" />').appendTo('body'),
17
- form = '<form target="' + iframeName + '" method="post" enctype="multipart/form-data" />';
18
-
19
- if ($.isFunction(data)) {
20
- type = callback;
21
- callback = data;
22
- data = {};
23
- }
24
-
25
- checkbox = $('input:checkbox', this);
26
- checked = $('input:checked', this);
27
- form = self.wrapAll(form).parent('form').attr('action', url);
28
-
29
- // Make sure radios and checkboxes keep original values
30
- // (IE resets checkd attributes when appending)
31
- checkbox.removeAttr('checked');
32
- checked.attr('checked', true);
33
-
34
- inputs = createInputs(data);
35
- inputs = inputs ? $(inputs).appendTo(form) : null;
36
-
37
- form.submit(function() {
38
- iframe.load(function() {
39
- var data = handleData(this, type),
40
- checked = $('input:checked', self);
41
-
42
- form.after(self).remove();
43
- checkbox.removeAttr('checked');
44
- checked.attr('checked', true);
45
- if (inputs) {
46
- inputs.remove();
47
- }
48
-
49
- setTimeout(function() {
50
- iframe.remove();
51
- if (type === 'script') {
52
- $.globalEval(data);
53
- }
54
- if (callback) {
55
- callback.call(self, data);
56
- }
57
- }, 0);
58
- });
59
- }).submit();
60
-
61
- return this;
62
- };
63
-
64
- function createInputs(data) {
65
- return $.map(param(data), function(param) {
66
- return '<input type="hidden" name="' + param.name + '" value="' + param.value + '"/>';
67
- }).join('');
68
- }
69
-
70
- function param(data) {
71
- if ($.isArray(data)) {
72
- return data;
73
- }
74
- var params = [];
75
-
76
- function add(name, value) {
77
- params.push({name:name, value:value});
78
- }
79
-
80
- if (typeof data === 'object') {
81
- $.each(data, function(name) {
82
- if ($.isArray(this)) {
83
- $.each(this, function() {
84
- add(name, this);
85
- });
86
- } else {
87
- add(name, $.isFunction(this) ? this() : this);
88
- }
89
- });
90
- } else if (typeof data === 'string') {
91
- $.each(data.split('&'), function() {
92
- var param = $.map(this.split('='), function(v) {
93
- return decodeURIComponent(v.replace(/\+/g, ' '));
94
- });
95
-
96
- add(param[0], param[1]);
97
- });
98
- }
99
-
100
- return params;
101
- }
102
-
103
- function handleData(iframe, type) {
104
- var data, contents = $(iframe).contents().get(0);
105
-
106
- if ($.isXMLDoc(contents) || contents.XMLDocument) {
107
- return contents.XMLDocument || contents;
108
- }
109
- data = $(contents).find('body').html();
110
-
111
- switch (type) {
112
- case 'xml':
113
- data = parseXml(data);
114
- break;
115
- case 'json':
116
- data = window.eval('(' + data + ')');
117
- break;
118
- }
119
- return data;
120
- }
121
-
122
- function parseXml(text) {
123
- if (window.DOMParser) {
124
- return new DOMParser().parseFromString(text, 'application/xml');
125
- } else {
126
- var xml = new ActiveXObject('Microsoft.XMLDOM');
127
- xml.async = false;
128
- xml.loadXML(text);
129
- return xml;
130
- }
131
- }
132
-
133
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
filemanager/view.php CHANGED
@@ -59,8 +59,8 @@ class FilemanagerView {
59
  wp_print_styles('wp-auth-check');
60
  wp_print_styles('wp-pointer');
61
  ?>
62
- <script src="<?php echo BWG()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
63
- <script src="<?php echo BWG()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
64
  <script>
65
  var DS = "<?php echo addslashes('/'); ?>";
66
  var demo_message = "<?php echo addslashes(__('This option is disabled in demo.', BWG()->prefix)); ?>";
59
  wp_print_styles('wp-auth-check');
60
  wp_print_styles('wp-pointer');
61
  ?>
62
+ <script src="<?php echo BWG()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js?v=9.25.1"></script>
63
+ <script src="<?php echo BWG()->plugin_url; ?>/filemanager/js/jq_uploader/jquery.fileupload.js?v=9.25.1"></script>
64
  <script>
65
  var DS = "<?php echo addslashes('/'); ?>";
66
  var demo_message = "<?php echo addslashes(__('This option is disabled in demo.', BWG()->prefix)); ?>";
fonts/twbb-icon.svg ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="twbb-icons" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe900;" glyph-name="share-buttons" horiz-adv-x="663" d="M420.793 222.473c-7.286 3.871-15.914 6.184-25.074 6.285h-0.032c-15.75-1.033-29.684-8.054-39.692-18.785l-0.032-0.035-50.176 29.272c3.967 7.634 6.293 16.668 6.293 26.245 0 0.332-0.003 0.663-0.008 0.994l0.001-0.050c-0.199 8.291-1.709 16.165-4.33 23.512l0.163-0.525 50.176 29.272c9.006-11.070 22.431-18.245 37.547-18.818l0.094-0.003c9.191 0.104 17.819 2.417 25.409 6.431l-0.303-0.146c10.769 6.738 18.873 16.877 22.877 28.89l0.11 0.382c1.319 4.179 2.078 8.986 2.078 13.969 0 8.704-2.317 16.866-6.368 23.904l0.124-0.233c-8.559 14.651-23.969 24.485-41.722 25.103l-0.086 0.002c-9.191-0.099-17.82-2.413-25.408-6.431l0.302 0.146c-10.771-6.736-18.876-16.876-22.877-28.891l-0.11-0.382c-0.933-3.708-1.468-7.965-1.468-12.347 0-6.838 1.304-13.371 3.676-19.365l-0.124 0.356-50.176-29.272c-11.552 16.494-30.468 27.145-51.872 27.145-34.716 0-62.888-28.021-63.133-62.679v-0.023c0.864-34.301 28.445-61.883 62.665-62.745l0.081-0.002c20.353 0.442 38.361 10.106 50.070 24.966l0.106 0.139 52.259-29.272c-2.081-5.29-3.287-11.416-3.287-17.824 0-18.073 9.596-33.906 23.971-42.679l0.22-0.125c7.285-3.872 15.914-6.186 25.074-6.285h0.031c18.32 1.091 34.186 10.709 43.798 24.906l0.128 0.2c2.599 5.983 4.111 12.952 4.111 20.275 0 18.78-9.947 35.237-24.859 44.39l-0.227 0.129zM362.249 358.382c2.498 9.148 8.557 16.567 16.557 20.816l0.18 0.087c4.899 2.247 10.593 3.739 16.582 4.158l0.155 0.009c0.139 0.002 0.304 0.003 0.469 0.003 12.875 0 24.208-6.6 30.801-16.602l0.086-0.138c3.139-5.567 4.988-12.222 4.988-19.309 0-2.789-0.286-5.511-0.831-8.138l0.045 0.258c-2.493-9.15-8.554-16.571-16.557-20.817l-0.18-0.087c-5.137-3.229-11.382-5.145-18.075-5.145-12.847 0-24.045 7.058-29.928 17.508l-0.089 0.172c-3.896 4.559-6.267 10.524-6.267 17.043 0 3.689 0.759 7.201 2.131 10.388l-0.065-0.171zM247.243 216.188c-27.711 0-50.176 22.465-50.176 50.176s22.465 50.176 50.176 50.176c27.711 0 50.176-22.465 50.176-50.176v0c-0.411-27.537-22.636-49.749-50.139-50.14h-0.037zM427.079 161.81c-5.972-10.622-17.171-17.68-30.017-17.68-6.693 0-12.939 1.916-18.218 5.229l0.143-0.084c-10.538 6.1-17.514 17.321-17.514 30.171 0 6.62 1.852 12.808 5.065 18.074l-0.087-0.153c6.678 10.14 18.012 16.74 30.887 16.74 0.165 0 0.33-0.001 0.494-0.003h-0.025c0.104 0.001 0.228 0.002 0.351 0.002 18.858 0 34.145-15.287 34.145-34.145 0-6.729-1.946-13.003-5.307-18.29l0.082 0.139zM496.040 960h-496.040v-1024h662.599v836.22zM499.571 928.221l131.107-155.895h-131.072zM646.638-42.814h-628.983v985.159h460.694v-187.78h159.462l5.332-797.237zM46.045 758.060h325.985v-21.257h-325.985v21.257zM46.045 843.087h191.347v-21.257h-191.347v21.257zM46.045 683.626h435.836v-21.257h-435.836v21.257zM46.045 612.793h566.908v-21.257h-566.908v21.257zM46.045 474.589v-418.11h566.908v418.11zM591.695 453.402v-375.596h-524.465v375.596z" />
11
+ <glyph unicode="&#xe901;" glyph-name="pricing-table" horiz-adv-x="1439" d="M1439.214 175.298v0 721.355h-457.587v63.347h-524.182v-66.842h-457.446v-890.315h457.446v-66.842h524.182v66.842h457.587zM28.142 175.298h429.303v-147.809h-429.197zM1414.603 200.015h-432.975v668.495h429.444v-668.601zM482.092 935.283h475.065v-756.489h-475.065v756.489zM457.375 199.839h-429.127v668.672h429.197v-668.601zM482.092 2.772v0 151.411h475.065v-193.465h-475.065zM981.628 175.298h429.444v-147.809h-429.444zM70.374 769.995h337.814v-21.116h-337.814v21.116zM87.993 678.471h302.61v-21.116h-302.61v21.116zM133.72 590.513h211.121v-21.116h-211.121v21.116zM1027.531 769.995h337.814v-21.116h-337.814v21.116zM1045.116 678.471h302.61v-21.116h-302.61v21.116zM1090.878 590.513h211.121v-21.116h-211.121v21.116zM548.935 850.926h337.814v-21.116h-337.814v21.116zM566.554 759.437h302.61v-21.116h-302.61v21.116zM612.281 674.975h211.121v-21.116h-211.121v21.116zM1104.967 122.509h182.978v-45.762h-182.978v45.762zM147.809 122.509h182.978v-45.762h-182.978v45.762zM626.37 69.72h182.978v-45.762h-182.978v45.762zM711.362 382.146c1.126-0.11 2.433-0.173 3.756-0.173 7.739 0 14.975 2.152 21.143 5.89l-0.182-0.102c4.305 3.206 7.063 8.281 7.063 14 0 0.044 0 0.087 0 0.13v-0.007c0.005 0.17 0.008 0.369 0.008 0.569 0 3.871-1.149 7.474-3.125 10.485l0.045-0.073c-2.221 3.186-4.958 5.844-8.115 7.911l-0.112 0.069c-3.405 2.27-7.31 4.343-11.419 6.019l-0.446 0.161q-6.744 2.754-13.806 5.261t-13.594 5.614c-4.586 2.096-8.538 4.623-12.082 7.619l0.076-0.063c-3.471 2.929-6.341 6.441-8.487 10.404l-0.094 0.189c-2.104 4.202-3.336 9.155-3.336 14.396 0 0.364 0.006 0.726 0.018 1.088l-0.001-0.053c-0.018 0.43-0.028 0.935-0.028 1.442 0 9.712 3.699 18.56 9.765 25.212l-0.027-0.030c7.375 7.25 17.167 12.062 28.058 13.12l0.19 0.015v26.271h18.962v-25.6c6.794-0.274 13.226-1.173 19.437-2.644l-0.687 0.137c5.548-1.249 10.131-2.585 14.602-4.161l-0.901 0.277-4.343-17.655q-5.473 2.048-13.7 4.237c-5.638 1.381-12.111 2.173-18.769 2.173-0.627 0-1.252-0.007-1.875-0.021l0.093 0.002c-0.678 0.045-1.47 0.071-2.267 0.071-6.999 0-13.534-1.985-19.073-5.422l0.155 0.089c-4.513-3.129-7.432-8.283-7.432-14.118 0-0.263 0.006-0.525 0.018-0.785l-0.001 0.037c-0.006-0.166-0.009-0.362-0.009-0.558 0-3.062 0.802-5.937 2.207-8.426l-0.044 0.086c1.635-2.617 3.738-4.786 6.209-6.449l0.076-0.048c2.797-1.93 5.994-3.66 9.373-5.034l0.337-0.121q5.614-2.295 12.465-4.802 8.898-3.531 16.914-7.062c5.396-2.429 10.047-5.372 14.218-8.869l-0.094 0.076c3.959-3.364 7.214-7.42 9.606-11.997l0.105-0.22c2.243-4.63 3.554-10.070 3.554-15.817 0-0.46-0.008-0.919-0.025-1.375l0.002 0.066c0.022-0.473 0.035-1.027 0.035-1.584 0-9.54-3.753-18.204-9.864-24.595l0.013 0.013c-8.107-7.183-18.642-11.791-30.233-12.458l-0.134-0.006v-29.484h-18.962v28.778c-9.285 0.037-18.254 1.324-26.768 3.7l0.709-0.169c-5.813 1.654-10.817 3.638-15.566 6.051l0.488-0.225 5.72 17.126c4.552-2.129 10.018-4.152 15.666-5.742l0.789-0.19c6.458-1.7 13.872-2.676 21.514-2.676 0.779 0 1.555 0.010 2.329 0.030l-0.114-0.002zM233.225 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002zM1197.374 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002z" />
12
+ <glyph unicode="&#xe902;" glyph-name="posts" horiz-adv-x="670" d="M496.040 573.775h173.621v-46.045h-173.621v46.045zM248.020 605.661h226.763v-21.257h-226.763v21.257zM248.020 665.9h421.641v-21.257h-421.641v21.257zM248.020 548.988h226.763v-21.257h-226.763v21.257zM3.531 662.369v0l-3.531-138.169h152.364v138.169zM24.717 545.457v95.726h109.85v-95.656zM496.040 867.875h173.621v-46.045h-173.621v46.045zM248.020 903.292h226.763v-21.257h-226.763v21.257zM248.020 960h421.641v-21.257h-421.641v21.257zM248.020 843.087h226.763v-21.257h-226.763v21.257zM3.531 818.264h152.364v141.736h-152.364zM134.638 938.743v-95.656h-109.921v95.726zM496.040 279.711h173.621v-46.045h-173.621v46.045zM248.020 311.596h226.763v-21.257h-226.763v21.257zM248.020 371.836h421.641v-21.257h-421.641v21.257zM248.020 254.888h226.763v-21.257h-226.763v21.257zM3.531 368.269v0l-3.531-138.169h152.364v138.169zM24.717 251.357v95.726h109.85v-95.656zM496.040-14.389h173.621v-46.045h-173.621v46.045zM248.020 17.496h226.763v-21.257h-226.763v21.257zM248.020 77.736h421.641v-21.257h-421.641v21.257zM248.020-39.212h226.763v-21.257h-226.763v21.257zM3.531 74.169v0l-3.531-138.169h152.364v138.169zM24.717-42.743v95.726h109.85v-95.656z" />
13
+ <glyph unicode="&#xe903;" glyph-name="flip-box" horiz-adv-x="663" d="M499.606 960h-499.606v-1024h662.599v832.653zM637.775 750.963v-790.246h-620.12v978.097h460.694v-187.851zM499.606 772.149v156.072l131.107-155.895zM347.242 414.349h53.142v-17.726h-53.142v17.726zM449.995 414.349h53.142v-17.726h-53.142v17.726zM152.364 414.349h53.142v-17.726h-53.142v17.726zM109.85 414.349h17.726v-17.726h-17.726v17.726zM527.96 414.349h21.257v-17.726h-21.257v17.726zM248.020 414.349h53.142v-17.726h-53.142v17.726zM325.985 354.11l-223.232-205.506-3.531-3.531h457.092l-230.294 209.037zM155.895 169.86l170.090 155.895 170.090-155.895zM106.284 658.838l219.666-201.975 205.506 187.78 21.186 21.186-446.358-6.991zM325.95 485.217l-170.055 155.966h340.145z" />
14
+ <glyph unicode="&#xe904;" glyph-name="countdown" horiz-adv-x="3050" d="M1491.957 558.108h60.559v-44.043h-60.559v44.043zM1491.957 381.935h60.559v-44.043h-60.559v44.043zM44.043 514.065h44.043v-132.129h-44.043v132.129zM589.075 514.065h44.043v-132.129h-44.043v132.129zM765.247 514.065h44.043v-132.129h-44.043v132.129zM1310.28 514.065h44.043v-132.129h-44.043v132.129zM1690.151 514.065h44.043v-132.129h-44.043v132.129zM2235.183 514.065h44.043v-132.129h-44.043v132.129zM2416.86 514.065h44.043v-132.129h-44.043v132.129zM2961.892 514.065h44.043v-132.129h-44.043v132.129zM649.634-41.978h-627.613v467.957h-22.022v-489.978h666.151v489.978h-16.516v-467.957zM22.022 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM1370.839-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM743.226 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2301.247-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM1679.14 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2400.344 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM3022.452-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM22.022 470.022h627.613v-44.043h-627.613v44.043zM2400.344 470.022h627.613v-44.043h-627.613v44.043zM743.226 470.022h627.613v-44.043h-627.613v44.043zM1679.14 470.022h627.613v-44.043h-627.613v44.043zM924.903 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM1194.667 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM1849.806 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2119.57 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM2576.516 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2846.28 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM313.806 409.462h71.57v-291.785h-71.57v291.785zM297.29 706.753c5.505 5.505 16.516 11.011 22.022 16.516 0-33.032-5.505-71.57-5.505-104.602v-132.129h71.57v313.806h-60.559l-165.161-126.624 38.538-49.548c29.979 29.099 62.32 56.2 96.552 80.838l2.545 1.743z" />
15
+ <glyph unicode="&#xe905;" glyph-name="call-to-action" horiz-adv-x="665" d="M0 960v-1024h665.070v1024zM21.186-39.283v974.566h619.343v-974.566h-619.343zM112.605 643.302h429.303v-21.116h-429.303v21.116zM112.605 544.786h429.303v-21.116h-429.303v21.116zM112.605 432.181h429.303v-21.116h-429.303v21.116zM214.652 769.995h232.236v-21.116h-232.236v21.116zM239.298 168.271h175.951v-45.762h-175.951v45.762zM555.502 100.97l-209.178 109.003 61.864-226.834 38.276 61.864 47.139-58.933 41.242 32.415-47.139 58.933zM511.294 21.416l-17.655-14.724-52.966 64.794-29.449-50.070-41.242 159.073 147.315-76.588-55.967-17.655zM369.876 180.524l147.279-76.588-55.967-17.655 50.070-64.83-17.655-14.724-50.070 64.794-32.38-50.070z" />
16
+ <glyph unicode="&#xe906;" glyph-name="photo-gallery" horiz-adv-x="1209" d="M120.139 1.925c-0.597-0.011-1.301-0.017-2.007-0.017-65.153 0-117.97 52.817-117.97 117.97 0 1.264 0.020 2.524 0.059 3.779l-0.005-0.183v484.080c-0.13 2.562-0.204 5.564-0.204 8.583 0 91.281 67.543 166.787 155.377 179.266l0.963 0.112 4.879 0.976c4.494 0.581 8.573 1.762 12.363 3.472l-0.274-0.11c0.564 1.459 0.891 3.148 0.891 4.913 0 0.677-0.048 1.342-0.141 1.993l0.009-0.075c-0.083 0.834-0.13 1.802-0.13 2.781 0 7.761 2.976 14.826 7.848 20.118l-0.019-0.021c6.765 5.9 15.672 9.498 25.419 9.498 1.934 0 3.836-0.142 5.694-0.415l-0.211 0.025h126.59c2.184 0.32 4.706 0.503 7.271 0.503 12.394 0 23.79-4.274 32.793-11.429l-0.108 0.083c7.257-7.803 11.711-18.299 11.711-29.834 0-0.051 0-0.103 0-0.154v0.008c3.376-0.834 7.252-1.312 11.239-1.312 10.56 0 20.337 3.355 28.323 9.057l-0.148-0.101c20.039 25.414 39.526 53.938 57.042 83.76l1.944 3.58c21.248 40.183 62.778 67.098 110.594 67.098 2.786 0 5.55-0.091 8.291-0.271l-0.372 0.020c108.429-0.867 224.773-0.922 336.454 0 2.578 0.201 5.584 0.315 8.615 0.315 46.146 0 86.101-26.507 105.468-65.126l0.309-0.68c13.228-27.107 33.288-66.738 52.967-105.718 35.619-70.479 52.967-104.959 59.636-122.85v-0.325c6.126-16.264 3.036-18.812-3.036-23.15-2.668-1.9-5.994-3.037-9.586-3.037-4.599 0-8.762 1.865-11.775 4.881v0c-0.457 0.493-0.901 1.023-1.318 1.575l-0.038 0.052c-87.298 113.335-223.049 185.641-375.687 185.641-108.035 0-207.61-36.222-287.242-97.184l1.135 0.834q-17.728-13.499-34.101-28.625c-161.017-155.975-212.412-446.401 9.921-676.757 2.812-2.919 4.544-6.896 4.544-11.277 0-8.979-7.276-16.259-16.254-16.264h-0.001zM206.882 806.302c0.027-0.552 0.043-1.198 0.043-1.848 0-21.823-17.52-39.555-39.262-39.897h-0.032l-5.421-1.030c-73.56-10.028-129.64-72.444-129.64-147.958 0-2.553 0.064-5.091 0.191-7.612l-0.014 0.354v-484.893c-0.053-1.124-0.083-2.441-0.083-3.765 0-47.098 38.181-85.279 85.279-85.279 0.716 0 1.429 0.009 2.14 0.026l-0.105-0.002h291.022c-82.729 88.69-133.517 208.111-133.517 339.394 0 139.474 57.322 265.559 149.693 355.982l0.088 0.086c11.981 10.843 24.071 21.252 36.757 30.848 83.952 64.372 190.475 103.155 306.055 103.155 125.606 0 240.514-45.802 328.933-121.615l-0.681 0.57-15.505 30.74c-19.68 39.089-39.793 78.936-52.967 105.772-14.17 28.685-43.222 48.067-76.8 48.067-2.297 0-4.573-0.091-6.825-0.269l0.297 0.019h-1.898c-111.953-1.084-228.784-1.084-337.864 0-1.63 0.1-3.535 0.157-5.453 0.157-35.95 0-67.221-20.029-83.265-49.537l-0.248-0.498c-20.363-35.081-40.784-65.041-63.1-93.442l1.296 1.711c-13.752-13.38-32.554-21.63-53.283-21.63-7.734 0-15.2 1.149-22.237 3.285l0.541-0.141c-12.154 2.439-21.362 12.494-22.491 24.884l-0.008 0.109c0.109 0.828 0.172 1.786 0.172 2.758 0 3.619-0.865 7.035-2.399 10.054l0.058-0.126c-3.693 1.137-7.939 1.792-12.338 1.792-1.536 0-3.053-0.080-4.547-0.235l0.187 0.016h-124.097c-3.578 0-6.723 0-8.945 0zM771.253-64h-4.283c-239.762 1.124-433.692 195.748-433.692 435.666 0 240.614 195.056 435.671 435.671 435.671 0.696 0 1.391-0.002 2.086-0.005h3.037c169.409-0.715 315.772-98.666 386.23-240.897l1.131-2.525c1.046-2.089 1.659-4.551 1.659-7.156 0-8.983-7.282-16.264-16.264-16.264-0.011 0-0.023 0-0.034 0h-263.588c-0.080-0.001-0.175-0.002-0.27-0.002-4.047 0-7.749 1.478-10.595 3.924l0.022-0.018c-23.665 20.668-54.836 33.272-88.95 33.272-2.599 0-5.181-0.073-7.744-0.218l0.355 0.016c-1.903 0.065-4.14 0.102-6.385 0.102-54.786 0-104.428-22.023-140.556-57.698l0.021 0.021c-38.484-37.259-62.373-89.392-62.373-147.106 0-111.972 89.922-202.942 201.49-204.635l0.159-0.002h7.427c3.639-0.262 7.885-0.412 12.166-0.412 53.089 0 100.808 22.991 133.744 59.56l0.143 0.162h-148.439c-8.983 0-16.264 7.282-16.264 16.264v0 179.992c0 8.983 7.282 16.264 16.264 16.264v0h418.426c0.012 0 0.026 0 0.040 0 4.522 0 8.612-1.845 11.56-4.824l0.001-0.001c5.421-5.421 5.421-5.421 4.879-68.147v0c-3.181-238.713-197.437-431.004-436.606-431.004-0.165 0-0.33 0-0.495 0h0.025zM770.928 774.804c-221.776-1.031-401.161-181.052-401.161-402.971 0-222.557 180.418-402.975 402.975-402.975 220.974 0 400.406 177.86 402.948 398.231l0.002 0.24v40.119h-386.060v-147.463h164.757c8.982-0.001 16.263-7.282 16.263-16.264 0-3.172-0.908-6.132-2.478-8.634l0.040 0.068c-37.923-60.404-104.174-99.969-179.667-99.969-4.749 0-9.462 0.157-14.133 0.465l0.635-0.034h-7.102c-129.427 2.041-233.563 107.439-233.563 237.16 0 66.854 27.659 127.249 72.159 170.363l0.062 0.060c43.026 41.346 101.581 66.808 166.084 66.808 0.982 0 1.963-0.006 2.943-0.018l-0.149 0.001c2.639 0.149 5.728 0.234 8.836 0.234 39.808 0 76.363-13.93 105.055-37.182l-0.312 0.245h230.682c-70.048 120.854-198.577 200.971-345.863 201.514h-0.078z" />
17
+ <glyph unicode="&#xe907;" glyph-name="slider-wd" horiz-adv-x="1481" d="M370.188 316.518c-0.153-0.006-0.333-0.009-0.514-0.009-7.749 0-14.032 6.282-14.032 14.032 0 7.569 5.992 13.738 13.492 14.021l0.026 0.001c24.603 4.927 44.377 21.855 53.209 44.289l0.169 0.488c6.59 24.726-15.705 45.946-35.57 59.408-31.27 21.174-45.759 43.89-43.282 67.26 4.347 39.356 56.463 60.763 62.399 63.334 1.43 0.538 3.082 0.85 4.807 0.85 7.744 0 14.022-6.278 14.022-14.022 0-5.767-3.481-10.72-8.456-12.874l-0.091-0.035c-10.937-4.347-42.721-21.174-44.825-40.478-1.636-15.144 16.032-30.475 31.129-40.711 49.639-33.56 52.957-67.354 46.741-89.836-12.12-34.32-41.691-59.595-77.773-65.363l-0.565-0.074zM580.896 316.518h-98.156c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v-221.552h84.134c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM621.654 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v0-235.574c0-7.744-6.278-14.022-14.022-14.022v0zM674.892 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0.051 4.084 1.84 7.741 4.661 10.271l0.013 0.012c2.631 2.33 6.113 3.753 9.926 3.753 0.224 0 0.447-0.005 0.669-0.015l-0.032 0.001c71.039-2.285 127.768-60.388 127.836-131.756v-0.007c-1.042-70.859-56.999-128.315-127.152-131.751l-0.31-0.012zM688.914 549.708v-202.528c49.372 7.858 86.658 50.13 86.658 101.111 0 0.013 0 0.026 0 0.039v-0.002c0.007 0.452 0.011 0.985 0.011 1.518 0 50.699-37.404 92.661-86.122 99.797l-0.547 0.066zM965.948 316.518h-1.449c-0.643-0.012-1.4-0.019-2.16-0.019-65.891 0-119.632 52.019-122.396 117.229l-0.008 0.25v132.137c0 7.744 6.278 14.022 14.022 14.022v0h112.178c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022h-98.156v-118.395c0-3.459 0-79.132 99.371-89.228 7.446-0.384 13.339-6.515 13.339-14.022 0-7.754-6.286-14.040-14.040-14.040-0.247 0-0.492 0.006-0.735 0.019l0.034-0.001zM965.901 482.448h-142.046c-7.744 0-14.022 6.278-14.022 14.022s6.278 14.022 14.022 14.022h142.046c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM1113.976 315.957c-36.605 0.871-68.526 20.142-86.964 48.888l-0.254 0.423v-34.729c0-7.744-6.278-14.022-14.022-14.022s-14.022 6.278-14.022 14.022v0 235.574c0 0.033 0 0.072 0 0.111 0 4.147 1.8 7.873 4.661 10.44l0.013 0.012c2.398 2.162 5.591 3.485 9.091 3.485 0.634 0 1.259-0.043 1.87-0.127l-0.071 0.008c37.393-4.674 108.579-32.999 109.841-104.232 0.038-0.992 0.059-2.158 0.059-3.328 0-44.864-31.604-82.346-73.763-91.398l-0.614-0.11c13.635-22.201 37.784-36.785 65.339-36.785 2.487 0 4.946 0.119 7.372 0.351l-0.309-0.024c0.561 0.082 1.208 0.128 1.866 0.128 7.155 0 13.024-5.506 13.602-12.512l0.003-0.049c0.050-0.445 0.079-0.961 0.079-1.484 0-7.212-5.445-13.153-12.448-13.935l-0.064-0.006c-3.419-0.428-7.395-0.682-11.426-0.701h-0.026zM1026.758 548.727v-143.448h0.654c2.851 0 70.111 6.404 68.99 70.111-0.841 47.255-45.152 66.325-69.644 73.336zM740.75-64c-0.028 0-0.060 0-0.093 0-282.77 0-512 229.23-512 512s229.23 512 512 512c282.77 0 512-229.23 512-512 0-0.016 0-0.033 0-0.049v0.002c-0.026-282.717-229.193-511.9-511.901-511.953h-0.005zM740.75 932.002c-0.042 0-0.091 0-0.14 0-267.307 0-484.002-216.695-484.002-484.002s216.695-484.002 484.002-484.002c267.307 0 484.002 216.695 484.002 484.002 0 0.016 0 0.033 0 0.049v-0.002c-0.026 267.237-216.632 483.876-483.854 483.955h-0.008zM1217.601 124.74c-7.739 0.007-14.011 6.282-14.011 14.022 0 3.193 1.067 6.137 2.865 8.494l-0.025-0.034c63.267 82.503 101.383 187.189 101.383 300.778s-38.117 218.274-102.257 301.965l0.873-1.187c-1.778 2.325-2.849 5.274-2.849 8.472 0 7.744 6.278 14.022 14.022 14.022 1.009 0 1.992-0.106 2.941-0.309l-0.092 0.016c150.228-33.093 260.97-165.092 260.97-322.956s-110.742-289.863-258.778-322.55l-2.192-0.406c-0.856-0.208-1.839-0.327-2.85-0.327-0.001 0-0.001 0-0.002 0v0zM1251.768 733.073c52.728-80.52 84.099-179.156 84.099-285.12s-31.371-204.6-85.332-287.129l1.233 2.010c118.558 42.685 201.8 154.181 201.8 285.12s-83.242 242.435-199.694 284.456l-2.106 0.664zM263.899 124.74c-0.014 0-0.031 0-0.048 0-1.011 0-1.994 0.119-2.936 0.345l0.086-0.017c-150.228 33.093-260.97 165.092-260.97 322.956s110.742 289.863 258.778 322.55l2.192 0.406c0.856 0.186 1.84 0.292 2.849 0.292 7.744 0 14.022-6.278 14.022-14.022 0-3.198-1.071-6.147-2.874-8.506l0.025 0.034c-63.267-82.503-101.383-187.189-101.383-300.778s38.117-218.274 102.257-301.965l-0.873 1.187c1.772-2.323 2.84-5.267 2.84-8.46 0-7.74-6.271-14.016-14.010-14.022h-0.001zM229.685 733.073c-118.558-42.685-201.8-154.181-201.8-285.12s83.242-242.435 199.694-284.456l2.106-0.664c-52.728 80.52-84.099 179.156-84.099 285.12s31.371 204.6 85.332 287.129l-1.233-2.010zM1380.306 480.204l-9.348-9.348 28.045-23.37-28.045-23.37 9.348-9.348 37.393 32.719zM66.419 448.047l37.393-32.719 9.348 9.348-28.045 23.37 28.045 23.37-9.348 9.348z" />
18
+ <glyph unicode="&#xe908;" glyph-name="form-maker" horiz-adv-x="1101" d="M385.133 479.717h-267.327v249.204h262.796v-249.204zM140.46 502.372h222.018v203.894h-222.018v-203.894zM987.752 348.319h-869.947v95.15h869.947v-95.15zM140.46 370.973h824.637v45.31h-824.637v-45.31zM987.752 99.115h-869.947v212.956h869.947v-212.956zM140.46 121.77h824.637v167.646h-824.637v-167.646zM987.752 620.177h-262.796v108.743h267.327v-108.743zM747.611 642.832h222.018v63.434h-222.018v-63.434zM693.239 620.177h-267.327v108.743h267.327v-108.743zM448.566 642.832h222.018v63.434h-222.018v-63.434zM987.752 479.717h-262.796v99.681h267.327v-99.681zM747.611 502.372h222.018v54.372h-222.018v-54.372zM693.239 479.717h-267.327v99.681h267.327v-99.681zM448.566 502.372h222.018v54.372h-222.018v-54.372zM22.655 3.965h1055.717v838.23h-1055.717v-838.23zM1046.655 810.478v-774.796h-992.283v774.796h992.283z" />
19
+ </font></defs></svg>
fonts/twbb-icons.eot ADDED
Binary file
fonts/twbb-icons.ttf ADDED
Binary file
fonts/twbb-icons.woff ADDED
Binary file
framework/BWGOptions.php CHANGED
@@ -171,7 +171,9 @@ class WD_BWG_Options {
171
  public $album_image_thumb_height = 140;
172
  public $album_enable_page = 1;
173
  public $albums_per_page = 30;
174
- public $album_images_per_page = 30;
 
 
175
  public $album_sort_by = 'order';
176
  public $album_order_by = 'asc';
177
  public $album_show_search_box = 0;
@@ -199,6 +201,8 @@ class WD_BWG_Options {
199
  public $album_masonry_enable_page = 1;
200
  public $albums_masonry_per_page = 30;
201
  public $album_masonry_images_per_page = 30;
 
 
202
  public $album_masonry_sort_by = 'order';
203
  public $album_masonry_order_by = 'asc';
204
  public $album_masonry_show_search_box = 0;
@@ -223,6 +227,8 @@ class WD_BWG_Options {
223
  public $album_extended_enable_page = 1;
224
  public $albums_extended_per_page = 30;
225
  public $album_extended_images_per_page = 30;
 
 
226
  public $album_extended_sort_by = 'order';
227
  public $album_extended_order_by = 'asc';
228
  public $album_extended_show_search_box = 0;
171
  public $album_image_thumb_height = 140;
172
  public $album_enable_page = 1;
173
  public $albums_per_page = 30;
174
+ public $album_images_per_page = 30;
175
+ public $compact_album_sort_by = 'order';
176
+ public $compact_album_order_by = 'asc';
177
  public $album_sort_by = 'order';
178
  public $album_order_by = 'asc';
179
  public $album_show_search_box = 0;
201
  public $album_masonry_enable_page = 1;
202
  public $albums_masonry_per_page = 30;
203
  public $album_masonry_images_per_page = 30;
204
+ public $masonry_album_sort_by = 'order';
205
+ public $masonry_album_order_by = 'asc';
206
  public $album_masonry_sort_by = 'order';
207
  public $album_masonry_order_by = 'asc';
208
  public $album_masonry_show_search_box = 0;
227
  public $album_extended_enable_page = 1;
228
  public $albums_extended_per_page = 30;
229
  public $album_extended_images_per_page = 30;
230
+ public $extended_album_sort_by = 'order';
231
+ public $extended_album_order_by = 'asc';
232
  public $album_extended_sort_by = 'order';
233
  public $album_extended_order_by = 'asc';
234
  public $album_extended_show_search_box = 0;
framework/WDWLibrary.php CHANGED
@@ -1,6 +1,8 @@
1
  <?php
2
 
3
  class WDWLibrary {
 
 
4
  /**
5
  * Get request value.
6
  *
@@ -983,6 +985,7 @@ class WDWLibrary {
983
  if (!$post) {
984
  // Insert shortcode data.
985
  $shortecode_id = self::create_shortcode($params);
 
986
  $custom_post_shortecode = '[Best_Wordpress_Gallery id="' . $shortecode_id . '" gal_title="' . $title . '"]';
987
  $post = array(
988
  'post_name' => $slug,
@@ -1007,6 +1010,7 @@ class WDWLibrary {
1007
  $post->post_title = $title;
1008
  wp_update_post($post);
1009
  }
 
1010
  $post = get_page_by_path($slug, OBJECT, $post_type);
1011
 
1012
  return $post;
@@ -1245,66 +1249,6 @@ class WDWLibrary {
1245
  return array( 'images' => $images, 'page_nav' => $page_nav );
1246
  }
1247
 
1248
- public static function get_album_row_data( $id, $from ) {
1249
- global $wpdb;
1250
- if( $id == 0 ) {
1251
- $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1');
1252
- } else {
1253
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_album WHERE published=1 AND id="%d"', $id));
1254
- }
1255
-
1256
- if ( $row ) {
1257
- if ( $from ) {
1258
- $row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'album' ));
1259
- }
1260
- if ( !empty($row->preview_image) ) {
1261
- $row->preview_image = self::image_url_version($row->preview_image, $row->modified_date);
1262
- }
1263
- if ( !empty($row->random_preview_image) ) {
1264
- $row->random_preview_image = self::image_url_version($row->random_preview_image, $row->modified_date);
1265
- }
1266
- }
1267
- return $row;
1268
- }
1269
-
1270
- public static function get_alb_gals_row( $bwg, $id, $albums_per_page, $sort_by, $pagination_type = 0 ) {
1271
- global $wpdb;
1272
- if ( $sort_by == 'random' || $sort_by == 'RAND()' ) {
1273
- $order_by = 'ORDER BY RAND()';
1274
- } else {
1275
- $order_by = 'ORDER BY `order` ASC';
1276
- }
1277
- $limit = 0;
1278
- if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
1279
- $limit = ((int)$_REQUEST[ 'page_number_' . $bwg ] - 1) * $albums_per_page;
1280
- }
1281
- $limit_str = '';
1282
- if ( $albums_per_page ) {
1283
- $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
1284
- }
1285
- if ( isset( $_REQUEST[ 'action_' . $bwg ] ) && $_REQUEST[ 'action_' . $bwg ] == 'back' && ($pagination_type == 2 || $pagination_type == 3) ) {
1286
- if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
1287
- $limit = $albums_per_page * $_REQUEST[ 'page_number_' . $bwg ];
1288
- $limit_str = 'LIMIT 0,' . $limit;
1289
- }
1290
- }
1291
-
1292
- // Select all galleries
1293
- if ( $id == 0 ) {
1294
- $row = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE `published` = 1 ' . $order_by . ' ' . $limit_str );
1295
- $total = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery WHERE `published` = 1' );
1296
- } else {
1297
- $row = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE `album_id`="%d" ' . $order_by . ' ' . $limit_str, $id ) );
1298
- $total = $wpdb->get_var( $wpdb->prepare( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE `album_id`="%d"', $id ) );
1299
- }
1300
- $page_nav[ 'total' ] = $total;
1301
- $page_nav[ 'limit' ] = 1;
1302
- if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
1303
- $page_nav[ 'limit' ] = (int)$_REQUEST[ 'page_number_' . $bwg ];
1304
- }
1305
- return array( 'rows' => $row, 'page_nav' => $page_nav );
1306
- }
1307
-
1308
  /**
1309
  * Image set watermark.
1310
  *
@@ -1873,7 +1817,7 @@ class WDWLibrary {
1873
  $defaults['popup_enable_ecommerce'] = self::get_option_value('popup_enable_ecommerce', 'popup_enable_ecommerce', 'popup_enable_ecommerce', $from || $use_option_defaults, $params);
1874
 
1875
  switch ($params['gallery_type']) {
1876
- case 'thumbnails':
1877
  $defaults['thumb_width'] = self::get_option_value('thumb_width', 'thumb_width', 'thumb_width', $use_option_defaults, $params);
1878
  $defaults['thumb_height'] = self::get_option_value('thumb_height', 'thumb_height', 'thumb_height', $use_option_defaults, $params);
1879
  $defaults['image_column_number'] = abs(intval(self::get_option_value('image_column_number', 'image_column_number', 'image_column_number', $use_option_defaults, $params)));
@@ -1893,8 +1837,9 @@ class WDWLibrary {
1893
  $defaults['play_icon'] = self::get_option_value('play_icon', 'play_icon', 'play_icon', $use_option_defaults, $params);
1894
  $defaults['gallery_download'] = self::get_option_value('gallery_download', 'gallery_download', 'gallery_download', $use_option_defaults, $params);
1895
  $defaults['ecommerce_icon'] = self::get_option_value('ecommerce_icon_show_hover', 'ecommerce_icon', 'ecommerce_icon_show_hover', $use_option_defaults, $params);
1896
- break;
1897
- case 'thumbnails_masonry':
 
1898
  $defaults['masonry_hor_ver'] = self::get_option_value('masonry_hor_ver', 'masonry_hor_ver', 'masonry', $use_option_defaults, $params);
1899
  $defaults['show_masonry_thumb_description'] = self::get_option_value('show_masonry_thumb_description', 'show_masonry_thumb_description', 'show_masonry_thumb_description', $use_option_defaults, $params);
1900
  $defaults['thumb_width'] = self::get_option_value('masonry_thumb_size', 'thumb_width', 'masonry_thumb_size', $use_option_defaults, $params);
@@ -1916,8 +1861,9 @@ class WDWLibrary {
1916
  $defaults['play_icon'] = self::get_option_value('masonry_play_icon', 'play_icon', 'masonry_play_icon', $use_option_defaults, $params);
1917
  $defaults['gallery_download'] = self::get_option_value('masonry_gallery_download', 'gallery_download', 'masonry_gallery_download', $use_option_defaults, $params);
1918
  $defaults['ecommerce_icon'] = self::get_option_value('masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
1919
- break;
1920
- case 'thumbnails_mosaic':
 
1921
  $defaults['mosaic_hor_ver'] = self::get_option_value('mosaic_hor_ver', 'mosaic_hor_ver', 'mosaic', $use_option_defaults, $params);
1922
  $defaults['resizable_mosaic'] = self::get_option_value('resizable_mosaic', 'resizable_mosaic', 'resizable_mosaic', $use_option_defaults, $params);
1923
  $defaults['mosaic_total_width'] = self::get_option_value('mosaic_total_width', 'mosaic_total_width', 'mosaic_total_width', $use_option_defaults, $params);
@@ -1939,8 +1885,9 @@ class WDWLibrary {
1939
  $defaults['play_icon'] = self::get_option_value('mosaic_play_icon', 'play_icon', 'mosaic_play_icon', $use_option_defaults, $params);
1940
  $defaults['gallery_download'] = self::get_option_value('mosaic_gallery_download', 'gallery_download', 'mosaic_gallery_download', $use_option_defaults, $params);
1941
  $defaults['ecommerce_icon'] = self::get_option_value('mosaic_ecommerce_icon_show_hover', 'ecommerce_icon', 'mosaic_ecommerce_icon_show_hover', $use_option_defaults, $params);
1942
- break;
1943
- case 'slideshow':
 
1944
  $defaults['slideshow_effect'] = self::get_option_value('slideshow_effect', 'slideshow_effect', 'slideshow_type', $use_option_defaults, $params);
1945
  $defaults['slideshow_interval'] = self::get_option_value('slideshow_interval', 'slideshow_interval', 'slideshow_interval', $use_option_defaults, $params);
1946
  $defaults['slideshow_width'] = self::get_option_value('slideshow_width', 'slideshow_width', 'slideshow_width', $use_option_defaults, $params);
@@ -1963,8 +1910,9 @@ class WDWLibrary {
1963
  $defaults['slideshow_effect_duration'] = self::get_option_value('slideshow_effect_duration', 'slideshow_effect_duration', 'slideshow_effect_duration', $use_option_defaults, $params);
1964
  $defaults['slideshow_interval'] = self::get_option_value('slideshow_interval', 'slideshow_interval', 'slideshow_interval', $use_option_defaults, $params);
1965
  $defaults['gallery_download'] = self::get_option_value('slideshow_gallery_download', 'gallery_download', 'slideshow_gallery_download', $use_option_defaults, $params);
1966
- break;
1967
- case 'image_browser':
 
1968
  $defaults['image_browser_width'] = self::get_option_value('image_browser_width', 'image_browser_width', 'image_browser_width', $use_option_defaults, $params);
1969
  $defaults['image_browser_title_enable'] = self::get_option_value('image_browser_title_enable', 'image_browser_title_enable', 'image_browser_title_enable', $use_option_defaults, $params);
1970
  $defaults['image_browser_description_enable'] = self::get_option_value('image_browser_description_enable', 'image_browser_description_enable', 'image_browser_description_enable', $use_option_defaults, $params);
@@ -1978,8 +1926,9 @@ class WDWLibrary {
1978
  $defaults['placeholder'] = self::get_option_value('image_browser_placeholder', 'placeholder', 'image_browser_placeholder', $use_option_defaults, $params);
1979
  $defaults['search_box_width'] = self::get_option_value('image_browser_search_box_width', 'search_box_width', 'image_browser_search_box_width', $use_option_defaults, $params);
1980
  $defaults['gallery_download'] = self::get_option_value('image_browser_gallery_download', 'gallery_download', 'image_browser_gallery_download', $use_option_defaults, $params);
1981
- break;
1982
- case 'blog_style':
 
1983
  $defaults['blog_style_width'] = self::get_option_value('blog_style_width', 'blog_style_width', 'blog_style_width', $use_option_defaults, $params);
1984
  $defaults['blog_style_title_enable'] = self::get_option_value('blog_style_title_enable', 'blog_style_title_enable', 'blog_style_title_enable', $use_option_defaults, $params);
1985
  $defaults['blog_style_images_per_page'] = self::get_option_value('blog_style_images_per_page', 'blog_style_images_per_page', 'blog_style_images_per_page', $use_option_defaults, $params);
@@ -1996,8 +1945,9 @@ class WDWLibrary {
1996
  $defaults['show_sort_images'] = self::get_option_value('blog_style_show_sort_images', 'show_sort_images', 'blog_style_show_sort_images', $use_option_defaults, $params);
1997
  $defaults['show_tag_box'] = self::get_option_value('blog_style_show_tag_box', 'show_tag_box', 'blog_style_show_tag_box', $use_option_defaults, $params);
1998
  $defaults['gallery_download'] = self::get_option_value('blog_style_gallery_download', 'gallery_download', 'blog_style_gallery_download', $use_option_defaults, $params);
1999
- break;
2000
- case 'carousel':
 
2001
  $defaults['carousel_interval'] = self::get_option_value('carousel_interval', 'carousel_interval', 'carousel_interval', $use_option_defaults, $params);
2002
  $defaults['carousel_width'] = self::get_option_value('carousel_width', 'carousel_width', 'carousel_width', $use_option_defaults, $params);
2003
  $defaults['carousel_height'] = self::get_option_value('carousel_height', 'carousel_height', 'carousel_height', $use_option_defaults, $params);
@@ -2012,8 +1962,9 @@ class WDWLibrary {
2012
  $defaults['sort_by'] = self::get_option_value('carousel_sort_by', 'sort_by', 'carousel_sort_by', $use_option_defaults, $params);
2013
  $defaults['order_by'] = self::get_option_value('carousel_order_by', 'order_by', 'carousel_order_by', $use_option_defaults, $params);
2014
  $defaults['gallery_download'] = self::get_option_value('carousel_gallery_download', 'gallery_download', 'carousel_gallery_download', $use_option_defaults, $params);
2015
- break;
2016
- case 'album_compact_preview':
 
2017
  $defaults['compuct_album_column_number'] = self::get_option_value('compuct_album_column_number', 'compuct_album_column_number', 'album_column_number', $use_option_defaults, $params);
2018
  $defaults['compuct_album_thumb_width'] = self::get_option_value('compuct_album_thumb_width', 'compuct_album_thumb_width', 'album_thumb_width', $use_option_defaults, $params);
2019
  $defaults['compuct_album_thumb_height'] = self::get_option_value('compuct_album_thumb_height', 'compuct_album_thumb_height', 'album_thumb_height', $use_option_defaults, $params);
@@ -2023,9 +1974,11 @@ class WDWLibrary {
2023
  $defaults['compuct_album_enable_page'] = self::get_option_value('compuct_album_enable_page', 'compuct_album_enable_page', 'album_enable_page', $use_option_defaults, $params);
2024
  $defaults['compuct_albums_per_page'] = self::get_option_value('compuct_albums_per_page', 'compuct_albums_per_page', 'albums_per_page', $use_option_defaults, $params);
2025
  $defaults['compuct_album_images_per_page'] = self::get_option_value('compuct_album_images_per_page', 'compuct_album_images_per_page', 'album_images_per_page', $use_option_defaults, $params);
2026
- $defaults['sort_by'] = self::get_option_value('album_sort_by', 'sort_by', 'album_sort_by', $use_option_defaults, $params);
 
 
2027
  $defaults['order_by'] = self::get_option_value('album_order_by', 'order_by', 'album_order_by', $use_option_defaults, $params);
2028
- $defaults['show_search_box'] = self::get_option_value('album_show_search_box', 'show_search_box', 'album_show_search_box', $use_option_defaults, $params);
2029
  $defaults['placeholder'] = self::get_option_value('album_placeholder', 'placeholder', 'album_placeholder', $use_option_defaults, $params);
2030
  $defaults['search_box_width'] = self::get_option_value('album_search_box_width', 'search_box_width', 'album_search_box_width', $use_option_defaults, $params);
2031
  $defaults['show_sort_images'] = self::get_option_value('album_show_sort_images', 'show_sort_images', 'album_show_sort_images', $use_option_defaults, $params);
@@ -2041,8 +1994,9 @@ class WDWLibrary {
2041
  $defaults['play_icon'] = self::get_option_value('album_play_icon', 'play_icon', 'album_play_icon', $use_option_defaults, $params);
2042
  $defaults['gallery_download'] = self::get_option_value('album_gallery_download', 'gallery_download', 'album_gallery_download', $use_option_defaults, $params);
2043
  $defaults['ecommerce_icon'] = self::get_option_value('album_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_ecommerce_icon_show_hover', $use_option_defaults, $params);
2044
- break;
2045
- case 'album_masonry_preview':
 
2046
  $defaults['masonry_album_column_number'] = self::get_option_value('masonry_album_column_number', 'masonry_album_column_number', 'album_masonry_column_number', $use_option_defaults, $params);
2047
  $defaults['masonry_album_thumb_width'] = self::get_option_value('masonry_album_thumb_width', 'masonry_album_thumb_width', 'album_masonry_thumb_width', $use_option_defaults, $params);
2048
  $defaults['masonry_album_image_column_number'] = self::get_option_value('masonry_album_image_column_number', 'masonry_album_image_column_number', 'album_masonry_image_column_number', $use_option_defaults, $params);
@@ -2050,9 +2004,11 @@ class WDWLibrary {
2050
  $defaults['masonry_album_enable_page'] = self::get_option_value('masonry_album_enable_page', 'masonry_album_enable_page', 'album_masonry_enable_page', $use_option_defaults, $params);
2051
  $defaults['masonry_albums_per_page'] = self::get_option_value('masonry_albums_per_page', 'masonry_albums_per_page', 'albums_masonry_per_page', $use_option_defaults, $params);
2052
  $defaults['masonry_album_images_per_page'] = self::get_option_value('masonry_album_images_per_page', 'masonry_album_images_per_page', 'album_masonry_images_per_page', $use_option_defaults, $params);
2053
- $defaults['sort_by'] = self::get_option_value('album_masonry_sort_by', 'sort_by', 'album_masonry_sort_by', $use_option_defaults, $params);
 
 
2054
  $defaults['order_by'] = self::get_option_value('album_masonry_order_by', 'order_by', 'album_masonry_order_by', $use_option_defaults, $params);
2055
- $defaults['show_search_box'] = self::get_option_value('album_masonry_show_search_box', 'show_search_box', 'album_masonry_show_search_box', $use_option_defaults, $params);
2056
  $defaults['placeholder'] = self::get_option_value('album_masonry_placeholder', 'placeholder', 'album_masonry_placeholder', $use_option_defaults, $params);
2057
  $defaults['search_box_width'] = self::get_option_value('album_masonry_search_box_width', 'search_box_width', 'album_masonry_search_box_width', $use_option_defaults, $params);
2058
  $defaults['show_sort_images'] = self::get_option_value('album_masonry_show_sort_images', 'show_sort_images', 'album_masonry_show_sort_images', $use_option_defaults, $params);
@@ -2062,8 +2018,9 @@ class WDWLibrary {
2062
  $defaults['image_title'] = self::get_option_value('album_image_title', 'image_title', 'album_masonry_image_title', $use_option_defaults, $params);
2063
  $defaults['gallery_download'] = self::get_option_value('album_masonry_gallery_download', 'gallery_download', 'album_masonry_gallery_download', $use_option_defaults, $params);
2064
  $defaults['ecommerce_icon'] = self::get_option_value('album_masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
2065
- break;
2066
- case 'album_extended_preview':
 
2067
  $defaults['extended_album_height'] = self::get_option_value('extended_album_height', 'extended_album_height', 'extended_album_height', $use_option_defaults, $params);
2068
  $defaults['extended_album_column_number'] = self::get_option_value('extended_album_column_number', 'extended_album_column_number', 'extended_album_column_number', $use_option_defaults, $params);
2069
  $defaults['extended_album_thumb_width'] = self::get_option_value('extended_album_thumb_width', 'extended_album_thumb_width', 'album_extended_thumb_width', $use_option_defaults, $params);
@@ -2074,9 +2031,11 @@ class WDWLibrary {
2074
  $defaults['extended_album_enable_page'] = self::get_option_value('extended_album_enable_page', 'extended_album_enable_page', 'album_extended_enable_page', $use_option_defaults, $params);
2075
  $defaults['extended_albums_per_page'] = self::get_option_value('extended_albums_per_page', 'extended_albums_per_page', 'albums_extended_per_page', $use_option_defaults, $params);
2076
  $defaults['extended_album_images_per_page'] = self::get_option_value('extended_album_images_per_page', 'extended_album_images_per_page', 'album_extended_images_per_page', $use_option_defaults, $params);
2077
- $defaults['sort_by'] = self::get_option_value('album_extended_sort_by', 'sort_by', 'album_extended_sort_by', $use_option_defaults, $params);
 
 
2078
  $defaults['order_by'] = self::get_option_value('album_extended_order_by', 'order_by', 'album_extended_order_by', $use_option_defaults, $params);
2079
- $defaults['show_search_box'] = self::get_option_value('album_extended_show_search_box', 'show_search_box', 'album_extended_show_search_box', $use_option_defaults, $params);
2080
  $defaults['placeholder'] = self::get_option_value('album_extended_placeholder', 'placeholder', 'album_extended_placeholder', $use_option_defaults, $params);
2081
  $defaults['search_box_width'] = self::get_option_value('album_extended_search_box_width', 'search_box_width', 'album_extended_search_box_width', $use_option_defaults, $params);
2082
  $defaults['show_sort_images'] = self::get_option_value('album_extended_show_sort_images', 'show_sort_images', 'album_extended_show_sort_images', $use_option_defaults, $params);
@@ -2092,9 +2051,9 @@ class WDWLibrary {
2092
  $defaults['play_icon'] = self::get_option_value('album_extended_play_icon', 'play_icon', 'album_extended_play_icon', $use_option_defaults, $params);
2093
  $defaults['gallery_download'] = self::get_option_value('album_extended_gallery_download', 'gallery_download', 'album_extended_gallery_download', $use_option_defaults, $params);
2094
  $defaults['ecommerce_icon'] = self::get_option_value('album_extended_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_extended_ecommerce_icon_show_hover', $use_option_defaults, $params);
2095
- break;
 
2096
  }
2097
-
2098
  return array_merge($params, $defaults);
2099
  }
2100
 
@@ -2107,11 +2066,11 @@ class WDWLibrary {
2107
  * @return mixed
2108
  */
2109
  public static function get_option_value($name, $inherit_from, $option_name, $use_option_defaults, $params) {
2110
- if (!$use_option_defaults) {
2111
- if(isset($params[$name])) {
2112
  return $params[$name];
2113
  }
2114
- else if(isset($params[$inherit_from])) {
2115
  return $params[$inherit_from];
2116
  }
2117
  }
@@ -2674,7 +2633,7 @@ class WDWLibrary {
2674
  $post_id = get_option( 'wp_page_for_privacy_policy' );
2675
  if ( $post_id ) {
2676
  $post = get_post( $post_id, OBJECT );
2677
- if ( !is_null($post) && $post->post_status == 'publish' ) {
2678
  $permalink = get_permalink( $post_id );
2679
  }
2680
  }
@@ -2812,129 +2771,124 @@ class WDWLibrary {
2812
  }
2813
  }
2814
 
2815
- public static function twbb_install_button() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2816
  $prefix = BWG()->prefix;
2817
  $slug = '10web-manager';
2818
  $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
2819
- $activation_url = na_action_link($slug.'/10web-manager.php', 'activate');
2820
- $tenweb_url = admin_url( 'admin.php?page=tenweb_menu' );
2821
- $plugin_dir = WP_PLUGIN_DIR . '/10web-manager/';
2822
  $dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
2823
- if ( is_dir($plugin_dir) && !is_plugin_active( '10web-manager/manager.php' ) ) {
2824
- ?>
2825
- <a class="button tenweb_activaion" id="activate_now" data-tenweb-url="<?php echo $tenweb_url; ?>" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>">
2826
- <?php _e("ACTIVATION", $prefix); ?>
2827
- <span class="spinner" id="loading"></span>
2828
- </a>
2829
- <span class="error_activate hide"><?php _e("Activation failed, please try again.", $prefix); ?></span>
2830
- <?php
2831
- } else if( ! is_dir($plugin_dir) ) {
2832
- ?>
2833
- <a class="button tenweb_activaion" id="install_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Install Free", $prefix); ?>
2834
- <span class="spinner" id="loading"></span>
2835
- </a>
2836
- <a class="button tenweb_activaion hide" id="activate_now" data-tenweb-url="<?php echo $tenweb_url; ?>" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activation", $prefix); ?>
2837
- <span class="spinner" id="loading"></span>
2838
- </a>
2839
-
2840
- <span class="error_install hide tenweb_active"><?php _e("Installation failed, please try again.", $prefix); ?></span>
2841
- <?php
2842
- }
2843
- ?>
2844
- <script>
2845
- var url = jQuery(".tenweb_activaion").attr("data-install-url");
2846
- var activate_url = jQuery(".tenweb_activaion").attr("data-activate-url");
2847
-
2848
- function install_tenweb_plugin() {
2849
- jQuery("#loading").addClass('is-active');
2850
- jQuery(this).prop('disable',true);
2851
- var io_plugin_url = '<?php echo plugins_url('10web-manager/10web-manager.php');?>'; // Getting 10web manager plugin url
2852
-
2853
- jQuery.ajax({
2854
- method: "POST",
2855
- url: url,
2856
- }).done(function() {
2857
- // Check if plugin installed
2858
- jQuery.ajax({
2859
- type: 'POST',
2860
- dataType: 'json',
2861
- url: jQuery("#verifyUrl").attr('data-url'),
2862
- error: function()
2863
- {
2864
- jQuery("#loading").removeClass('is-active');
2865
- jQuery(".error_install").show();
2866
- },
2867
- success: function(response)
2868
- {
2869
- if ( response.status_install == 1 ) {
2870
- jQuery('#install_now').addClass('hide');
2871
- jQuery('#activate_now').removeClass('hide');
2872
-
2873
- activate_tenweb_plugin();
2874
- }
2875
- else {
2876
- jQuery("#loading").removeClass('is-active');
2877
- jQuery(".error_install").removeClass('hide');
2878
- }
2879
- }
2880
- });
2881
- })
2882
- .fail(function() {
2883
- jQuery("#loading").removeClass('is-active');
2884
- jQuery(".error_install").removeClass('hide');
2885
- });
2886
- }
2887
-
2888
- function activate_tenweb_plugin() {
2889
- jQuery("#activate_now #loading").addClass('is-active');
2890
- jQuery.ajax({
2891
- method: "POST",
2892
- url: activate_url,
2893
- }).done(function() {
2894
- jQuery("#loading").removeClass('is-active');
2895
- var data_tenweb_url = '';
2896
- // Check if plugin installed
2897
- jQuery.ajax({
2898
- type: 'POST',
2899
- dataType: 'json',
2900
- url: jQuery("#verifyUrl").attr('data-url'),
2901
- error: function()
2902
- {
2903
- jQuery("#loading").removeClass('is-active');
2904
- jQuery(".error_activate").removeClass('hide');
2905
- },
2906
- success: function(response)
2907
- {
2908
- if ( response.status_active == 0 ) {
2909
- jQuery('#install_now').addClass('hide');
2910
- data_tenweb_url = jQuery('#activate_now').attr('data-tenweb-url');
2911
- jQuery.post('<?php echo $dismiss_url; ?>');
2912
- }
2913
- else {
2914
- jQuery("#loading").removeClass('is-active');
2915
- jQuery(".error_activate").removeClass('hide');
2916
- }
2917
- },
2918
- complete : function() {
2919
- if ( data_tenweb_url != '' ) {
2920
- window.location.href = data_tenweb_url;
2921
- }
2922
- }
2923
- });
2924
- })
2925
- .fail(function() {
2926
- jQuery("#loading").removeClass('is-active');
2927
- });
2928
- }
2929
-
2930
- jQuery("#install_now").on("click",function(){
2931
- install_tenweb_plugin();
2932
- });
2933
- jQuery("#activate_now").on("click",function(){
2934
- activate_tenweb_plugin();
2935
- });
2936
- </script>
2937
 
2938
- <?php
2939
  }
2940
  }
1
  <?php
2
 
3
  class WDWLibrary {
4
+ public static $shortcode_ids = array();
5
+
6
  /**
7
  * Get request value.
8
  *
985
  if (!$post) {
986
  // Insert shortcode data.
987
  $shortecode_id = self::create_shortcode($params);
988
+ self::$shortcode_ids[] = $shortecode_id;
989
  $custom_post_shortecode = '[Best_Wordpress_Gallery id="' . $shortecode_id . '" gal_title="' . $title . '"]';
990
  $post = array(
991
  'post_name' => $slug,
1010
  $post->post_title = $title;
1011
  wp_update_post($post);
1012
  }
1013
+
1014
  $post = get_page_by_path($slug, OBJECT, $post_type);
1015
 
1016
  return $post;
1249
  return array( 'images' => $images, 'page_nav' => $page_nav );
1250
  }
1251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1252
  /**
1253
  * Image set watermark.
1254
  *
1817
  $defaults['popup_enable_ecommerce'] = self::get_option_value('popup_enable_ecommerce', 'popup_enable_ecommerce', 'popup_enable_ecommerce', $from || $use_option_defaults, $params);
1818
 
1819
  switch ($params['gallery_type']) {
1820
+ case 'thumbnails': {
1821
  $defaults['thumb_width'] = self::get_option_value('thumb_width', 'thumb_width', 'thumb_width', $use_option_defaults, $params);
1822
  $defaults['thumb_height'] = self::get_option_value('thumb_height', 'thumb_height', 'thumb_height', $use_option_defaults, $params);
1823
  $defaults['image_column_number'] = abs(intval(self::get_option_value('image_column_number', 'image_column_number', 'image_column_number', $use_option_defaults, $params)));
1837
  $defaults['play_icon'] = self::get_option_value('play_icon', 'play_icon', 'play_icon', $use_option_defaults, $params);
1838
  $defaults['gallery_download'] = self::get_option_value('gallery_download', 'gallery_download', 'gallery_download', $use_option_defaults, $params);
1839
  $defaults['ecommerce_icon'] = self::get_option_value('ecommerce_icon_show_hover', 'ecommerce_icon', 'ecommerce_icon_show_hover', $use_option_defaults, $params);
1840
+ }
1841
+ break;
1842
+ case 'thumbnails_masonry': {
1843
  $defaults['masonry_hor_ver'] = self::get_option_value('masonry_hor_ver', 'masonry_hor_ver', 'masonry', $use_option_defaults, $params);
1844
  $defaults['show_masonry_thumb_description'] = self::get_option_value('show_masonry_thumb_description', 'show_masonry_thumb_description', 'show_masonry_thumb_description', $use_option_defaults, $params);
1845
  $defaults['thumb_width'] = self::get_option_value('masonry_thumb_size', 'thumb_width', 'masonry_thumb_size', $use_option_defaults, $params);
1861
  $defaults['play_icon'] = self::get_option_value('masonry_play_icon', 'play_icon', 'masonry_play_icon', $use_option_defaults, $params);
1862
  $defaults['gallery_download'] = self::get_option_value('masonry_gallery_download', 'gallery_download', 'masonry_gallery_download', $use_option_defaults, $params);
1863
  $defaults['ecommerce_icon'] = self::get_option_value('masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
1864
+ }
1865
+ break;
1866
+ case 'thumbnails_mosaic': {
1867
  $defaults['mosaic_hor_ver'] = self::get_option_value('mosaic_hor_ver', 'mosaic_hor_ver', 'mosaic', $use_option_defaults, $params);
1868
  $defaults['resizable_mosaic'] = self::get_option_value('resizable_mosaic', 'resizable_mosaic', 'resizable_mosaic', $use_option_defaults, $params);
1869
  $defaults['mosaic_total_width'] = self::get_option_value('mosaic_total_width', 'mosaic_total_width', 'mosaic_total_width', $use_option_defaults, $params);
1885
  $defaults['play_icon'] = self::get_option_value('mosaic_play_icon', 'play_icon', 'mosaic_play_icon', $use_option_defaults, $params);
1886
  $defaults['gallery_download'] = self::get_option_value('mosaic_gallery_download', 'gallery_download', 'mosaic_gallery_download', $use_option_defaults, $params);
1887
  $defaults['ecommerce_icon'] = self::get_option_value('mosaic_ecommerce_icon_show_hover', 'ecommerce_icon', 'mosaic_ecommerce_icon_show_hover', $use_option_defaults, $params);
1888
+ }
1889
+ break;
1890
+ case 'slideshow': {
1891
  $defaults['slideshow_effect'] = self::get_option_value('slideshow_effect', 'slideshow_effect', 'slideshow_type', $use_option_defaults, $params);
1892
  $defaults['slideshow_interval'] = self::get_option_value('slideshow_interval', 'slideshow_interval', 'slideshow_interval', $use_option_defaults, $params);
1893
  $defaults['slideshow_width'] = self::get_option_value('slideshow_width', 'slideshow_width', 'slideshow_width', $use_option_defaults, $params);
1910
  $defaults['slideshow_effect_duration'] = self::get_option_value('slideshow_effect_duration', 'slideshow_effect_duration', 'slideshow_effect_duration', $use_option_defaults, $params);
1911
  $defaults['slideshow_interval'] = self::get_option_value('slideshow_interval', 'slideshow_interval', 'slideshow_interval', $use_option_defaults, $params);
1912
  $defaults['gallery_download'] = self::get_option_value('slideshow_gallery_download', 'gallery_download', 'slideshow_gallery_download', $use_option_defaults, $params);
1913
+ }
1914
+ break;
1915
+ case 'image_browser': {
1916
  $defaults['image_browser_width'] = self::get_option_value('image_browser_width', 'image_browser_width', 'image_browser_width', $use_option_defaults, $params);
1917
  $defaults['image_browser_title_enable'] = self::get_option_value('image_browser_title_enable', 'image_browser_title_enable', 'image_browser_title_enable', $use_option_defaults, $params);
1918
  $defaults['image_browser_description_enable'] = self::get_option_value('image_browser_description_enable', 'image_browser_description_enable', 'image_browser_description_enable', $use_option_defaults, $params);
1926
  $defaults['placeholder'] = self::get_option_value('image_browser_placeholder', 'placeholder', 'image_browser_placeholder', $use_option_defaults, $params);
1927
  $defaults['search_box_width'] = self::get_option_value('image_browser_search_box_width', 'search_box_width', 'image_browser_search_box_width', $use_option_defaults, $params);
1928
  $defaults['gallery_download'] = self::get_option_value('image_browser_gallery_download', 'gallery_download', 'image_browser_gallery_download', $use_option_defaults, $params);
1929
+ }
1930
+ break;
1931
+ case 'blog_style': {
1932
  $defaults['blog_style_width'] = self::get_option_value('blog_style_width', 'blog_style_width', 'blog_style_width', $use_option_defaults, $params);
1933
  $defaults['blog_style_title_enable'] = self::get_option_value('blog_style_title_enable', 'blog_style_title_enable', 'blog_style_title_enable', $use_option_defaults, $params);
1934
  $defaults['blog_style_images_per_page'] = self::get_option_value('blog_style_images_per_page', 'blog_style_images_per_page', 'blog_style_images_per_page', $use_option_defaults, $params);
1945
  $defaults['show_sort_images'] = self::get_option_value('blog_style_show_sort_images', 'show_sort_images', 'blog_style_show_sort_images', $use_option_defaults, $params);
1946
  $defaults['show_tag_box'] = self::get_option_value('blog_style_show_tag_box', 'show_tag_box', 'blog_style_show_tag_box', $use_option_defaults, $params);
1947
  $defaults['gallery_download'] = self::get_option_value('blog_style_gallery_download', 'gallery_download', 'blog_style_gallery_download', $use_option_defaults, $params);
1948
+ }
1949
+ break;
1950
+ case 'carousel': {
1951
  $defaults['carousel_interval'] = self::get_option_value('carousel_interval', 'carousel_interval', 'carousel_interval', $use_option_defaults, $params);
1952
  $defaults['carousel_width'] = self::get_option_value('carousel_width', 'carousel_width', 'carousel_width', $use_option_defaults, $params);
1953
  $defaults['carousel_height'] = self::get_option_value('carousel_height', 'carousel_height', 'carousel_height', $use_option_defaults, $params);
1962
  $defaults['sort_by'] = self::get_option_value('carousel_sort_by', 'sort_by', 'carousel_sort_by', $use_option_defaults, $params);
1963
  $defaults['order_by'] = self::get_option_value('carousel_order_by', 'order_by', 'carousel_order_by', $use_option_defaults, $params);
1964
  $defaults['gallery_download'] = self::get_option_value('carousel_gallery_download', 'gallery_download', 'carousel_gallery_download', $use_option_defaults, $params);
1965
+ }
1966
+ break;
1967
+ case 'album_compact_preview': {
1968
  $defaults['compuct_album_column_number'] = self::get_option_value('compuct_album_column_number', 'compuct_album_column_number', 'album_column_number', $use_option_defaults, $params);
1969
  $defaults['compuct_album_thumb_width'] = self::get_option_value('compuct_album_thumb_width', 'compuct_album_thumb_width', 'album_thumb_width', $use_option_defaults, $params);
1970
  $defaults['compuct_album_thumb_height'] = self::get_option_value('compuct_album_thumb_height', 'compuct_album_thumb_height', 'album_thumb_height', $use_option_defaults, $params);
1974
  $defaults['compuct_album_enable_page'] = self::get_option_value('compuct_album_enable_page', 'compuct_album_enable_page', 'album_enable_page', $use_option_defaults, $params);
1975
  $defaults['compuct_albums_per_page'] = self::get_option_value('compuct_albums_per_page', 'compuct_albums_per_page', 'albums_per_page', $use_option_defaults, $params);
1976
  $defaults['compuct_album_images_per_page'] = self::get_option_value('compuct_album_images_per_page', 'compuct_album_images_per_page', 'album_images_per_page', $use_option_defaults, $params);
1977
+ $defaults['album_sort_by'] = self::get_option_value('compact_album_sort_by', 'all_album_sort_by', 'compact_album_sort_by', $use_option_defaults, $params);
1978
+ $defaults['album_order_by'] = self::get_option_value('compact_album_order_by', 'all_album_order_by', 'compact_album_order_by', $use_option_defaults, $params);
1979
+ $defaults['sort_by'] = self::get_option_value('album_sort_by', 'sort_by', 'album_sort_by', $use_option_defaults, $params);
1980
  $defaults['order_by'] = self::get_option_value('album_order_by', 'order_by', 'album_order_by', $use_option_defaults, $params);
1981
+ $defaults['show_search_box'] = self::get_option_value('album_show_search_box', 'show_search_box', 'album_show_search_box', $use_option_defaults, $params);
1982
  $defaults['placeholder'] = self::get_option_value('album_placeholder', 'placeholder', 'album_placeholder', $use_option_defaults, $params);
1983
  $defaults['search_box_width'] = self::get_option_value('album_search_box_width', 'search_box_width', 'album_search_box_width', $use_option_defaults, $params);
1984
  $defaults['show_sort_images'] = self::get_option_value('album_show_sort_images', 'show_sort_images', 'album_show_sort_images', $use_option_defaults, $params);
1994
  $defaults['play_icon'] = self::get_option_value('album_play_icon', 'play_icon', 'album_play_icon', $use_option_defaults, $params);
1995
  $defaults['gallery_download'] = self::get_option_value('album_gallery_download', 'gallery_download', 'album_gallery_download', $use_option_defaults, $params);
1996
  $defaults['ecommerce_icon'] = self::get_option_value('album_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_ecommerce_icon_show_hover', $use_option_defaults, $params);
1997
+ }
1998
+ break;
1999
+ case 'album_masonry_preview': {
2000
  $defaults['masonry_album_column_number'] = self::get_option_value('masonry_album_column_number', 'masonry_album_column_number', 'album_masonry_column_number', $use_option_defaults, $params);
2001
  $defaults['masonry_album_thumb_width'] = self::get_option_value('masonry_album_thumb_width', 'masonry_album_thumb_width', 'album_masonry_thumb_width', $use_option_defaults, $params);
2002
  $defaults['masonry_album_image_column_number'] = self::get_option_value('masonry_album_image_column_number', 'masonry_album_image_column_number', 'album_masonry_image_column_number', $use_option_defaults, $params);
2004
  $defaults['masonry_album_enable_page'] = self::get_option_value('masonry_album_enable_page', 'masonry_album_enable_page', 'album_masonry_enable_page', $use_option_defaults, $params);
2005
  $defaults['masonry_albums_per_page'] = self::get_option_value('masonry_albums_per_page', 'masonry_albums_per_page', 'albums_masonry_per_page', $use_option_defaults, $params);
2006
  $defaults['masonry_album_images_per_page'] = self::get_option_value('masonry_album_images_per_page', 'masonry_album_images_per_page', 'album_masonry_images_per_page', $use_option_defaults, $params);
2007
+ $defaults['album_sort_by'] = self::get_option_value('masonry_album_sort_by', 'all_album_sort_by', 'masonry_album_sort_by', $use_option_defaults, $params);
2008
+ $defaults['album_order_by'] = self::get_option_value('masonry_album_order_by', 'all_album_order_by', 'masonry_album_order_by', $use_option_defaults, $params);
2009
+ $defaults['sort_by'] = self::get_option_value('album_masonry_sort_by', 'sort_by', 'album_masonry_sort_by', $use_option_defaults, $params);
2010
  $defaults['order_by'] = self::get_option_value('album_masonry_order_by', 'order_by', 'album_masonry_order_by', $use_option_defaults, $params);
2011
+ $defaults['show_search_box'] = self::get_option_value('album_masonry_show_search_box', 'show_search_box', 'album_masonry_show_search_box', $use_option_defaults, $params);
2012
  $defaults['placeholder'] = self::get_option_value('album_masonry_placeholder', 'placeholder', 'album_masonry_placeholder', $use_option_defaults, $params);
2013
  $defaults['search_box_width'] = self::get_option_value('album_masonry_search_box_width', 'search_box_width', 'album_masonry_search_box_width', $use_option_defaults, $params);
2014
  $defaults['show_sort_images'] = self::get_option_value('album_masonry_show_sort_images', 'show_sort_images', 'album_masonry_show_sort_images', $use_option_defaults, $params);
2018
  $defaults['image_title'] = self::get_option_value('album_image_title', 'image_title', 'album_masonry_image_title', $use_option_defaults, $params);
2019
  $defaults['gallery_download'] = self::get_option_value('album_masonry_gallery_download', 'gallery_download', 'album_masonry_gallery_download', $use_option_defaults, $params);
2020
  $defaults['ecommerce_icon'] = self::get_option_value('album_masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
2021
+ }
2022
+ break;
2023
+ case 'album_extended_preview': {
2024
  $defaults['extended_album_height'] = self::get_option_value('extended_album_height', 'extended_album_height', 'extended_album_height', $use_option_defaults, $params);
2025
  $defaults['extended_album_column_number'] = self::get_option_value('extended_album_column_number', 'extended_album_column_number', 'extended_album_column_number', $use_option_defaults, $params);
2026
  $defaults['extended_album_thumb_width'] = self::get_option_value('extended_album_thumb_width', 'extended_album_thumb_width', 'album_extended_thumb_width', $use_option_defaults, $params);
2031
  $defaults['extended_album_enable_page'] = self::get_option_value('extended_album_enable_page', 'extended_album_enable_page', 'album_extended_enable_page', $use_option_defaults, $params);
2032
  $defaults['extended_albums_per_page'] = self::get_option_value('extended_albums_per_page', 'extended_albums_per_page', 'albums_extended_per_page', $use_option_defaults, $params);
2033
  $defaults['extended_album_images_per_page'] = self::get_option_value('extended_album_images_per_page', 'extended_album_images_per_page', 'album_extended_images_per_page', $use_option_defaults, $params);
2034
+ $defaults['album_sort_by'] = self::get_option_value('extended_album_sort_by', 'all_album_sort_by', 'extended_album_sort_by', $use_option_defaults, $params);
2035
+ $defaults['album_order_by'] = self::get_option_value('extended_album_order_by', 'all_album_order_by', 'extended_album_order_by', $use_option_defaults, $params);
2036
+ $defaults['sort_by'] = self::get_option_value('album_extended_sort_by', 'sort_by', 'album_extended_sort_by', $use_option_defaults, $params);
2037
  $defaults['order_by'] = self::get_option_value('album_extended_order_by', 'order_by', 'album_extended_order_by', $use_option_defaults, $params);
2038
+ $defaults['show_search_box'] = self::get_option_value('album_extended_show_search_box', 'show_search_box', 'album_extended_show_search_box', $use_option_defaults, $params);
2039
  $defaults['placeholder'] = self::get_option_value('album_extended_placeholder', 'placeholder', 'album_extended_placeholder', $use_option_defaults, $params);
2040
  $defaults['search_box_width'] = self::get_option_value('album_extended_search_box_width', 'search_box_width', 'album_extended_search_box_width', $use_option_defaults, $params);
2041
  $defaults['show_sort_images'] = self::get_option_value('album_extended_show_sort_images', 'show_sort_images', 'album_extended_show_sort_images', $use_option_defaults, $params);
2051
  $defaults['play_icon'] = self::get_option_value('album_extended_play_icon', 'play_icon', 'album_extended_play_icon', $use_option_defaults, $params);
2052
  $defaults['gallery_download'] = self::get_option_value('album_extended_gallery_download', 'gallery_download', 'album_extended_gallery_download', $use_option_defaults, $params);
2053
  $defaults['ecommerce_icon'] = self::get_option_value('album_extended_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_extended_ecommerce_icon_show_hover', $use_option_defaults, $params);
2054
+ }
2055
+ break;
2056
  }
 
2057
  return array_merge($params, $defaults);
2058
  }
2059
 
2066
  * @return mixed
2067
  */
2068
  public static function get_option_value($name, $inherit_from, $option_name, $use_option_defaults, $params) {
2069
+ if ( !$use_option_defaults ) {
2070
+ if ( isset($params[$name]) ) {
2071
  return $params[$name];
2072
  }
2073
+ else if ( isset($params[$inherit_from]) ) {
2074
  return $params[$inherit_from];
2075
  }
2076
  }
2633
  $post_id = get_option( 'wp_page_for_privacy_policy' );
2634
  if ( $post_id ) {
2635
  $post = get_post( $post_id, OBJECT );
2636
+ if ( !empty($post) && $post->post_status == 'publish' ) {
2637
  $permalink = get_permalink( $post_id );
2638
  }
2639
  }
2771
  }
2772
  }
2773
 
2774
+ /**
2775
+ * Is plugin active.
2776
+ *
2777
+ * @param $plugin_name
2778
+ *
2779
+ * @return bool
2780
+ */
2781
+ public static function is_plugin_installed($plugin_name) {
2782
+ if ( is_dir(WP_PLUGIN_DIR . '/' . $plugin_name . '/') ) {
2783
+ return TRUE;
2784
+ }
2785
+
2786
+ return FALSE;
2787
+ }
2788
+
2789
+ public static function twbb_install_button($v) {
2790
  $prefix = BWG()->prefix;
2791
  $slug = '10web-manager';
2792
  $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
2793
+ $activation_url = na_action_link($slug . '/10web-manager.php', 'activate');
2794
+ $tenweb_url = admin_url('admin.php?page=tenweb_menu');
 
2795
  $dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
2796
+ $activate = WDWLibrary::is_plugin_installed($slug) && !is_plugin_active('10web-manager/manager.php') ? TRUE : FALSE;
2797
+ ?>
2798
+ <a class="button<?php echo($v == 2 ? ' button-primary' : ''); ?> tenweb_activaion"
2799
+ id="<?php echo $activate ? 'activate_now' : 'install_now'; ?>"
2800
+ data-activation="<?php _e("Activation", $prefix); ?>"
2801
+ data-tenweb-url="<?php echo $tenweb_url; ?>"
2802
+ data-install-url="<?php echo $install_url; ?>"
2803
+ data-activate-url="<?php echo $activation_url; ?>">
2804
+ <span class="tenweb_activaion_text"><?php echo $activate ? __("Activate", $prefix) : __("Install", $prefix); ?></span>
2805
+ <span class="spinner" id="loading"></span>
2806
+ </a>
2807
+ <span class="hide <?php echo $activate ? 'error_activate' : 'error_install tenweb_active'; ?> ">
2808
+ <?php echo $activate ? __("Activation failed, please try again.", $prefix) : __("Installation failed, please try again.", $prefix); ?>
2809
+ </span>
2810
+ <script>
2811
+ var url = jQuery(".tenweb_activaion").attr("data-install-url");
2812
+ var activate_url = jQuery(".tenweb_activaion").attr("data-activate-url");
2813
+
2814
+ function install_tenweb_plugin() {
2815
+ jQuery("#loading").addClass('is-active');
2816
+ jQuery(this).prop('disable', true);
2817
+ jQuery.ajax({
2818
+ method: "POST",
2819
+ url: url,
2820
+ }).done(function () {
2821
+ /* Check if plugin installed.*/
2822
+ jQuery.ajax({
2823
+ type: 'POST',
2824
+ dataType: 'json',
2825
+ url: jQuery("#verifyUrl").attr('data-url'),
2826
+ error: function () {
2827
+ jQuery("#loading").removeClass('is-active');
2828
+ jQuery(".error_install").show();
2829
+ },
2830
+ success: function (response) {
2831
+ if (response.status_install == 1) {
2832
+ jQuery('#install_now .tenweb_activaion_text').text(jQuery("#install_now").data("activation"));
2833
+ activate_tenweb_plugin();
2834
+ }
2835
+ else {
2836
+ jQuery("#loading").removeClass('is-active');
2837
+ jQuery(".error_install").removeClass('hide');
2838
+ }
2839
+ }
2840
+ });
2841
+ }).fail(function () {
2842
+ jQuery("#loading").removeClass('is-active');
2843
+ jQuery(".error_install").removeClass('hide');
2844
+ });
2845
+ }
2846
+ function activate_tenweb_plugin() {
2847
+ jQuery("#activate_now #loading").addClass('is-active');
2848
+ jQuery.ajax({
2849
+ method: "POST",
2850
+ url: activate_url,
2851
+ }).done(function () {
2852
+ jQuery("#loading").removeClass('is-active');
2853
+ var data_tenweb_url = '';
2854
+ /* Check if plugin installed.*/
2855
+ jQuery.ajax({
2856
+ type: 'POST',
2857
+ dataType: 'json',
2858
+ url: jQuery("#verifyUrl").attr('data-url'),
2859
+ error: function () {
2860
+ jQuery("#loading").removeClass('is-active');
2861
+ jQuery(".error_activate").removeClass('hide');
2862
+ },
2863
+ success: function (response) {
2864
+ if (response.status_active == 0) {
2865
+ //jQuery('#install_now').addClass('hide');
2866
+ data_tenweb_url = jQuery('.tenweb_activaion').attr('data-tenweb-url');
2867
+ jQuery.post('<?php echo $dismiss_url; ?>');
2868
+ }
2869
+ else {
2870
+ jQuery("#loading").removeClass('is-active');
2871
+ jQuery(".error_activate").removeClass('hide');
2872
+ }
2873
+ },
2874
+ complete: function () {
2875
+ if (data_tenweb_url != '') {
2876
+ window.location.href = data_tenweb_url;
2877
+ }
2878
+ }
2879
+ });
2880
+ }).fail(function () {
2881
+ jQuery("#loading").removeClass('is-active');
2882
+ });
2883
+ }
2884
+ jQuery("#install_now").on("click", function () {
2885
+ install_tenweb_plugin();
2886
+ });
2887
+ jQuery("#activate_now").on("click", function () {
2888
+ activate_tenweb_plugin();
2889
+ });
2890
+ </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2891
 
2892
+ <?php
2893
  }
2894
  }
framework/WDWLibraryEmbed.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Class for handling embedded media in gallery
5
  *
@@ -98,20 +97,20 @@ class WDWLibraryEmbed {
98
  //sixth is for video's fbid if url is video url
99
  $sixth = strtok('/');
100
  if ( $second_token === 'www.facebook.com') {
101
- $json_data = array("error", "Incorect url.");
102
- if ( has_filter('init_facebook_add_embed_bwg') ) {
103
- $arg = array(
104
- 'app_id' => BWG()->options->facebook_app_id,
105
- 'app_secret' => BWG()->options->facebook_app_secret,
106
- 'third_token' => $third_token,
107
- 'fourth' => $fourth,
108
- 'fifth' => $fifth,
109
- 'sixth' => $sixth,
110
- 'url' => $url
111
- );
112
- $json_data = array();
113
- $json_data = apply_filters('init_facebook_add_embed_bwg', array(), $arg);
114
- }
115
  return json_encode($json_data);
116
  }
117
 
@@ -133,14 +132,14 @@ class WDWLibraryEmbed {
133
  }
134
  }
135
  /*
136
- * Wordpress oembed not recognize instagram post url,
137
- * so we check manually.
138
- */
139
- if ( !$host ) {
140
- $parse = parse_url($url);
141
- $host = ($parse['host'] == "www.instagram.com") ? 'INSTAGRAM' : false;
142
- }
143
- /*return json_encode($host); for test*/
144
  /*handling oembed cases*/
145
  if ( $host ) {
146
  /*instagram is exception*/
@@ -216,7 +215,7 @@ class WDWLibraryEmbed {
216
  'thumb' => 'https://instagram.com/p/' . $thumb_filename . '/media/?size=m',
217
  'size' => '',
218
  'filetype' => $embed_type,
219
- 'date_modified' => date('d F Y, H:i'),
220
  'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
221
  'redirect_url' => '');
222
  if ($instagram_data->type == 'video') {
@@ -268,7 +267,7 @@ class WDWLibraryEmbed {
268
  'thumb' => 'https://instagram.com/p/' . $filename . '/media/?size=m',
269
  'size' => '',
270
  'filetype' => $embed_type,
271
- 'date_modified' => date('d F Y, H:i'),
272
  'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
273
  'redirect_url' => '');
274
 
@@ -283,7 +282,7 @@ class WDWLibraryEmbed {
283
  else { /*one of known oembed types*/
284
  $embed_type = 'EMBED_OEMBED_'.$host;
285
  switch ($embed_type) {
286
- case 'EMBED_OEMBED_YOUTUBE':
287
  $youtube_regex = "#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#";
288
  $matches = array();
289
  preg_match($youtube_regex , $url , $matches);
@@ -299,15 +298,13 @@ class WDWLibraryEmbed {
299
  'thumb' => $result->thumbnail_url,
300
  'size' => '',
301
  'filetype' => $embed_type."_VIDEO",
302
- 'date_modified' => date('d F Y, H:i'),
303
  'resolution' => $result->width." x ".$result->height." px",
304
  'redirect_url' => '');
305
-
306
  return json_encode($embedData);
 
307
  break;
308
-
309
- case 'EMBED_OEMBED_VIMEO':
310
-
311
  $embedData = array(
312
  'name' => '',
313
  'description' => htmlspecialchars($result->title),
@@ -318,14 +315,14 @@ class WDWLibraryEmbed {
318
  'thumb' => $result->thumbnail_url,
319
  'size' => '',
320
  'filetype' => $embed_type."_VIDEO",
321
- 'date_modified' => date('d F Y, H:i'),
322
  'resolution' => $result->width." x ".$result->height." px",
323
  'redirect_url' => '');
324
 
325
  return json_encode($embedData);
 
326
  break;
327
-
328
- case 'EMBED_OEMBED_FLICKR':
329
  $matches = preg_match('~^.+/(\d+)~',$url,$matches);
330
  $filename = $matches[1];
331
  /*if($result->type =='photo')
@@ -345,15 +342,14 @@ class WDWLibraryEmbed {
345
  'thumb' => $result->thumbnail_url,
346
  'size' => '',
347
  'filetype' => $embed_type,
348
- 'date_modified' => date('d F Y, H:i'),
349
  'resolution' => $result->width." x ".$result->height." px",
350
  'redirect_url' => '');
351
-
352
  return json_encode($embedData);
 
353
  break;
354
- case 'EMBED_OEMBED_DAILYMOTION':
355
  $filename = strtok(basename($url), '_');
356
-
357
  $embedData = array(
358
  'name' => '',
359
  'description' => htmlspecialchars($result->title),
@@ -364,14 +360,15 @@ class WDWLibraryEmbed {
364
  'thumb' => $result->thumbnail_url,
365
  'size' => '',
366
  'filetype' => $embed_type."_VIDEO",
367
- 'date_modified' => date('d F Y, H:i'),
368
  'resolution' => $result->width." x ".$result->height." px",
369
  'redirect_url' => '');
370
 
371
  return json_encode($embedData);
 
372
  break;
373
- case 'EMBED_OEMBED_GETTYIMAGES':
374
- /*not working yet*/
375
  $filename = strtok(basename($url), '_');
376
 
377
  $embedData = array(
@@ -384,11 +381,12 @@ class WDWLibraryEmbed {
384
  'thumb' => $result->thumbnail_url,
385
  'size' => '',
386
  'filetype' => $embed_type,
387
- 'date_modified' => date('d F Y, H:i'),
388
  'resolution' => $result->width." x ".$result->height." px",
389
  'redirect_url' => '');
390
 
391
  return json_encode($embedData);
 
392
  default:
393
  return json_encode( array("error", __('The entered URL is incorrect. Please check the URL and try again.', BWG()->prefix) ) );
394
  break;
1
  <?php
 
2
  /**
3
  * Class for handling embedded media in gallery
4
  *
97
  //sixth is for video's fbid if url is video url
98
  $sixth = strtok('/');
99
  if ( $second_token === 'www.facebook.com') {
100
+ $json_data = array("error", "Incorect url.");
101
+ if ( has_filter('init_facebook_add_embed_bwg') ) {
102
+ $arg = array(
103
+ 'app_id' => BWG()->options->facebook_app_id,
104
+ 'app_secret' => BWG()->options->facebook_app_secret,
105
+ 'third_token' => $third_token,
106
+ 'fourth' => $fourth,
107
+ 'fifth' => $fifth,
108
+ 'sixth' => $sixth,
109
+ 'url' => $url
110
+ );
111
+ $json_data = array();
112
+ $json_data = apply_filters('init_facebook_add_embed_bwg', array(), $arg);
113
+ }
114
  return json_encode($json_data);
115
  }
116
 
132
  }
133
  }
134
  /*
135
+ * Wordpress oembed not recognize instagram post url,
136
+ * so we check manually.
137
+ */
138
+ if ( !$host ) {
139
+ $parse = parse_url($url);
140
+ $host = ($parse['host'] == "www.instagram.com") ? 'INSTAGRAM' : FALSE;
141
+ }
142
+ /*return json_encode($host); for test*/
143
  /*handling oembed cases*/
144
  if ( $host ) {
145
  /*instagram is exception*/
215
  'thumb' => 'https://instagram.com/p/' . $thumb_filename . '/media/?size=m',
216
  'size' => '',
217
  'filetype' => $embed_type,
218
+ 'date_modified' => date("Y-m-d H:i:s"),
219
  'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
220
  'redirect_url' => '');
221
  if ($instagram_data->type == 'video') {
267
  'thumb' => 'https://instagram.com/p/' . $filename . '/media/?size=m',
268
  'size' => '',
269
  'filetype' => $embed_type,
270
+ 'date_modified' => date("Y-m-d H:i:s"),
271
  'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
272
  'redirect_url' => '');
273
 
282
  else { /*one of known oembed types*/
283
  $embed_type = 'EMBED_OEMBED_'.$host;
284
  switch ($embed_type) {
285
+ case 'EMBED_OEMBED_YOUTUBE': {
286
  $youtube_regex = "#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#";
287
  $matches = array();
288
  preg_match($youtube_regex , $url , $matches);
298
  'thumb' => $result->thumbnail_url,
299
  'size' => '',
300
  'filetype' => $embed_type."_VIDEO",
301
+ 'date_modified' => date("Y-m-d H:i:s"),
302
  'resolution' => $result->width." x ".$result->height." px",
303
  'redirect_url' => '');
 
304
  return json_encode($embedData);
305
+ }
306
  break;
307
+ case 'EMBED_OEMBED_VIMEO': {
 
 
308
  $embedData = array(
309
  'name' => '',
310
  'description' => htmlspecialchars($result->title),
315
  'thumb' => $result->thumbnail_url,
316
  'size' => '',
317
  'filetype' => $embed_type."_VIDEO",
318
+ 'date_modified' => date("Y-m-d H:i:s"),
319
  'resolution' => $result->width." x ".$result->height." px",
320
  'redirect_url' => '');
321
 
322
  return json_encode($embedData);
323
+ }
324
  break;
325
+ case 'EMBED_OEMBED_FLICKR': {
 
326
  $matches = preg_match('~^.+/(\d+)~',$url,$matches);
327
  $filename = $matches[1];
328
  /*if($result->type =='photo')
342
  'thumb' => $result->thumbnail_url,
343
  'size' => '',
344
  'filetype' => $embed_type,
345
+ 'date_modified' => date("Y-m-d H:i:s"),
346
  'resolution' => $result->width." x ".$result->height." px",
347
  'redirect_url' => '');
 
348
  return json_encode($embedData);
349
+ }
350
  break;
351
+ case 'EMBED_OEMBED_DAILYMOTION': {
352
  $filename = strtok(basename($url), '_');
 
353
  $embedData = array(
354
  'name' => '',
355
  'description' => htmlspecialchars($result->title),
360
  'thumb' => $result->thumbnail_url,
361
  'size' => '',
362
  'filetype' => $embed_type."_VIDEO",
363
+ 'date_modified' => date("Y-m-d H:i:s"),
364
  'resolution' => $result->width." x ".$result->height." px",
365
  'redirect_url' => '');
366
 
367
  return json_encode($embedData);
368
+ }
369
  break;
370
+ case 'EMBED_OEMBED_GETTYIMAGES': {
371
+ /*not working yet*/
372
  $filename = strtok(basename($url), '_');
373
 
374
  $embedData = array(
381
  'thumb' => $result->thumbnail_url,
382
  'size' => '',
383
  'filetype' => $embed_type,
384
+ 'date_modified' => date("Y-m-d H:i:s"),
385
  'resolution' => $result->width." x ".$result->height." px",
386
  'redirect_url' => '');
387
 
388
  return json_encode($embedData);
389
+ }
390
  default:
391
  return json_encode( array("error", __('The entered URL is incorrect. Please check the URL and try again.', BWG()->prefix) ) );
392
  break;
frontend/controllers/controller.php CHANGED
@@ -18,6 +18,7 @@ class BWGControllerSite {
18
  public function execute( $params = array(), $from_shortcode = 0, $bwg = 0 ) {
19
  $theme_id = $params['theme_id'];
20
  $theme_row = $this->model->get_theme_row_data($theme_id);
 
21
 
22
  if ( !isset($params['type']) ) {
23
  $params['type'] = '';
@@ -36,7 +37,7 @@ class BWGControllerSite {
36
  }
37
 
38
  if ( strpos($params['gallery_type'], 'album') !== FALSE ) { //Album views (compact/masonry/extended).
39
- // View type.
40
  $params['view_type'] = 'album';
41
 
42
  // Type in album view (album or gallery).
@@ -83,26 +84,36 @@ class BWGControllerSite {
83
  }
84
 
85
  $params['showthumbs_name'] = $params['show_album_name'];
86
-
87
  if ( $params['album_view_type'] == 'album' ) { // Album in album.
88
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
89
- $album_row = $this->model->get_album_row_data($params['album_gallery_id'], $from === "widget");
90
  $params['album_row'] = $album_row;
91
  if ( isset($album_row->published) && $album_row->published == 0 ) {
92
  return;
93
  }
94
  if ( !$params['album_row'] ) {
95
  echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
96
-
97
  return;
98
  }
99
 
100
  // Disable features for album.
101
  $params['gallery_download'] = FALSE;
102
- $params['show_search_box'] = FALSE;
103
  $params['show_sort_images'] = FALSE;
104
  $params['show_tag_box'] = FALSE;
105
  $params['gallery_id'] = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
  if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
108
  $params['image_enable_page'] = $params['compuct_album_enable_page'];
@@ -130,25 +141,12 @@ class BWGControllerSite {
130
  $params['album_gallery_div_class'] = 'bwg_album_thumbnails_' . $bwg;
131
  $params['load_more_image_count'] = $params['images_per_page'];
132
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
133
-
134
- $album_gallery_rows = $this->model->get_alb_gals_row($bwg, $params['album_gallery_id'], $params['images_per_page'], $params['sort_by'], $params['image_enable_page'], $from);
135
- $params['album_gallery_rows'] = $album_gallery_rows;
136
- }
137
- else { // Gallery views (thumbnail/masonry/mosaic).
138
- if ( $params['gallery_view_type'] == 'masonry' ) {
139
- $params['gallery_type'] = 'thumbnails_masonry';
140
- }
141
- elseif ( $params['gallery_view_type'] == 'mosaic' ) {
142
- $params['gallery_type'] = 'thumbnails_mosaic';
143
- }
144
- else {
145
- $params['gallery_type'] = 'thumbnails';
146
- }
147
-
148
- $params['gallery_id'] = $params['album_gallery_id'];
149
- $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
150
-
151
- /* Set parameters for gallery view from album shortcode.*/
152
  if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
153
  $params['thumb_width'] = $params['compuct_album_image_thumb_width'];
154
  $params['thumb_height'] = $params['compuct_album_image_thumb_height'];
@@ -160,6 +158,8 @@ class BWGControllerSite {
160
  $params['mosaic_hor_ver'] = $params['compuct_album_mosaic_hor_ver'];
161
  $params['resizable_mosaic'] = $params['compuct_album_resizable_mosaic'];
162
  $params['mosaic_total_width'] = $params['compuct_album_mosaic_total_width'];
 
 
163
  }
164
  elseif ( isset($params['extended_album_image_thumb_width']) ) { // Extended album view.
165
  $params['thumb_width'] = $params['extended_album_image_thumb_width'];
@@ -180,6 +180,103 @@ class BWGControllerSite {
180
  $params['play_icon'] = BWG()->options->masonry_play_icon;
181
  }
182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  $params['masonry_hor_ver'] = BWG()->options->masonry;
184
  $params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
185
 
@@ -193,12 +290,8 @@ class BWGControllerSite {
193
  $params['gallery_row'] = $gallery_row;
194
  }
195
 
196
- $params['load_more_image_count'] = $params['images_per_page'];
197
- $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
198
-
199
- $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
200
-
201
- // Disable Jetpack Photon module for gallery images.
202
  $this->thumb_urls = $params['image_rows']['thumb_urls'];
203
  if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
204
  add_filter( 'jetpack_photon_skip_image', array($this, 'disable_jetpack'), 11, 3 );
@@ -210,9 +303,11 @@ class BWGControllerSite {
210
  else { // View type gallery.
211
  $params['view_type'] = 'gallery';
212
  $params['album_view_type'] = '';
 
213
  $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
214
  $params['cur_alb_gal_id'] = 0;
215
- $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
 
216
  if( !empty($gallery_row) && isset($gallery_row->published) && $gallery_row->published == 0 ) {
217
  return;
218
  }
@@ -226,7 +321,8 @@ class BWGControllerSite {
226
 
227
  $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
228
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
229
- if ( $params['gallery_type'] == 'image_browser' ) {
 
230
  $params['image_enable_page'] = 1;
231
  $params['images_per_page'] = 1;
232
  $params['load_more_image_count'] = 1;
@@ -237,8 +333,8 @@ class BWGControllerSite {
237
  $params['load_more_image_count'] = (isset($params['blog_style_load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['blog_style_load_more_image_count'] : $params['images_per_page'];
238
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
239
  }
240
- $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
241
 
 
242
  // Disable Jetpack Photon module for gallery images.
243
  $this->thumb_urls = $params['image_rows']['thumb_urls'];
244
  if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
18
  public function execute( $params = array(), $from_shortcode = 0, $bwg = 0 ) {
19
  $theme_id = $params['theme_id'];
20
  $theme_row = $this->model->get_theme_row_data($theme_id);
21
+ $params['pagination_default_style'] = 0;
22
 
23
  if ( !isset($params['type']) ) {
24
  $params['type'] = '';
37
  }
38
 
39
  if ( strpos($params['gallery_type'], 'album') !== FALSE ) { //Album views (compact/masonry/extended).
40
+ // View type.
41
  $params['view_type'] = 'album';
42
 
43
  // Type in album view (album or gallery).
84
  }
85
 
86
  $params['showthumbs_name'] = $params['show_album_name'];
 
87
  if ( $params['album_view_type'] == 'album' ) { // Album in album.
88
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
89
+ $album_row = $this->model->get_album_row_data( $params['album_gallery_id'], $from === "widget");
90
  $params['album_row'] = $album_row;
91
  if ( isset($album_row->published) && $album_row->published == 0 ) {
92
  return;
93
  }
94
  if ( !$params['album_row'] ) {
95
  echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
 
96
  return;
97
  }
98
 
99
  // Disable features for album.
100
  $params['gallery_download'] = FALSE;
 
101
  $params['show_sort_images'] = FALSE;
102
  $params['show_tag_box'] = FALSE;
103
  $params['gallery_id'] = 0;
104
+ if ( $params['gallery_view_type'] == 'slideshow' ) {
105
+ $params['gallery_type'] = 'slideshow';
106
+ }
107
+ elseif ( $params['gallery_view_type'] == 'image_browser' ) {
108
+ $params['gallery_type'] = 'image_browser';
109
+ $params['pagination_default_style'] = 1;
110
+ }
111
+ elseif ( $params['gallery_view_type'] == 'blog_style' ) {
112
+ $params['gallery_type'] = 'blog_style';
113
+ }
114
+ elseif ( $params['gallery_view_type'] == 'carousel' ) {
115
+ $params['gallery_type'] = 'carousel';
116
+ }
117
 
118
  if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
119
  $params['image_enable_page'] = $params['compuct_album_enable_page'];
141
  $params['album_gallery_div_class'] = 'bwg_album_thumbnails_' . $bwg;
142
  $params['load_more_image_count'] = $params['images_per_page'];
143
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
144
+ $album_gallery_rows = $this->model->get_alb_gals_row($bwg, $params['album_gallery_id'], $params['images_per_page'], $params['album_sort_by'], $params['album_order_by'], $params['image_enable_page'], $from);
145
+ $params['album_gallery_rows'] = $album_gallery_rows;
146
+ }
147
+ else { // Gallery views (thumbnail/masonry/mosaic).
148
+ /* Set parameters for gallery view from album shortcode.*/
149
+ /* album used all parmas for view */
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
151
  $params['thumb_width'] = $params['compuct_album_image_thumb_width'];
152
  $params['thumb_height'] = $params['compuct_album_image_thumb_height'];
158
  $params['mosaic_hor_ver'] = $params['compuct_album_mosaic_hor_ver'];
159
  $params['resizable_mosaic'] = $params['compuct_album_resizable_mosaic'];
160
  $params['mosaic_total_width'] = $params['compuct_album_mosaic_total_width'];
161
+
162
+ $params['items_col_num'] = $params['compuct_album_column_number'];
163
  }
164
  elseif ( isset($params['extended_album_image_thumb_width']) ) { // Extended album view.
165
  $params['thumb_width'] = $params['extended_album_image_thumb_width'];
180
  $params['play_icon'] = BWG()->options->masonry_play_icon;
181
  }
182
 
183
+ $params['gallery_type'] = 'thumbnails';
184
+ if ( $params['gallery_view_type'] == 'slideshow' ) {
185
+ $params['gallery_type'] = 'slideshow';
186
+ $params['slideshow_effect'] = BWG()->options->slideshow_type;
187
+ $params['slideshow_interval'] = BWG()->options->slideshow_interval;
188
+ $params['slideshow_width'] = BWG()->options->slideshow_width;
189
+ $params['slideshow_height'] = BWG()->options->slideshow_height;
190
+ $params['slideshow_sort_by'] = BWG()->options->slideshow_sort_by;
191
+ $params['slideshow_order_by'] = BWG()->options->slideshow_order_by;
192
+ $params['enable_slideshow_autoplay'] = BWG()->options->slideshow_enable_autoplay;
193
+ $params['enable_slideshow_shuffle'] = BWG()->options->slideshow_enable_shuffle;
194
+ $params['enable_slideshow_ctrl'] = BWG()->options->slideshow_enable_ctrl;
195
+ $params['autohide_slideshow_navigation'] = BWG()->options->autohide_slideshow_navigation;
196
+ $params['enable_slideshow_filmstrip'] = BWG()->options->slideshow_enable_filmstrip;
197
+ $params['slideshow_filmstrip_height'] = BWG()->options->slideshow_filmstrip_height;
198
+ $params['slideshow_enable_title'] = BWG()->options->slideshow_enable_title;
199
+ $params['slideshow_title_position'] = BWG()->options->slideshow_title_position;
200
+ $params['slideshow_title_full_width'] = BWG()->options->slideshow_title_full_width;
201
+ $params['slideshow_enable_description'] = BWG()->options->slideshow_enable_description;
202
+ $params['slideshow_description_position'] = BWG()->options->slideshow_description_position;
203
+ $params['enable_slideshow_music'] = BWG()->options->slideshow_enable_music;
204
+ $params['slideshow_music_url'] = BWG()->options->slideshow_audio_url;
205
+ $params['slideshow_effect_duration'] = BWG()->options->slideshow_effect_duration;
206
+ $params['slideshow_gallery_download'] = BWG()->options->slideshow_gallery_download;
207
+ $params['image_column_number'] = 0;
208
+ $params['images_per_page'] = 0;
209
+ }
210
+ if ( $params['gallery_view_type'] == 'image_browser' ) {
211
+ $params['gallery_type'] = 'image_browser';
212
+ $params['image_enable_page'] = BWG()->options->image_enable_page;
213
+ $params['image_browser_width'] = BWG()->options->image_browser_width;
214
+ $params['image_browser_title_enable'] = BWG()->options->image_browser_title_enable;
215
+ $params['image_browser_description_enable'] = BWG()->options->image_browser_description_enable;
216
+ $params['image_browser_sort_by'] = BWG()->options->image_browser_sort_by;
217
+ $params['image_browser_order_by'] = BWG()->options->image_browser_order_by;
218
+ $params['image_browser_show_gallery_title'] = BWG()->options->image_browser_show_gallery_title;
219
+ $params['image_browser_show_gallery_description'] = BWG()->options->image_browser_show_gallery_description;
220
+ $params['image_browser_show_search_box'] = BWG()->options->image_browser_show_search_box;
221
+ $params['image_browser_show_sort_images'] = BWG()->options->image_browser_show_sort_images;
222
+ $params['image_browser_show_tag_box'] = BWG()->options->image_browser_show_tag_box;
223
+ $params['image_browser_placeholder'] = BWG()->options->image_browser_placeholder;
224
+ $params['image_browser_search_box_width'] = BWG()->options->image_browser_search_box_width;
225
+ $params['image_browser_gallery_download'] = BWG()->options->image_browser_gallery_download;
226
+ $params['compuct_album_image_column_number'] = 1;
227
+ $params['compuct_album_images_per_page'] = 1;
228
+ $params['extended_album_image_column_number'] = 1;
229
+ $params['extended_album_images_per_page'] = 1;
230
+ $params['load_more_image_count'] = 1;
231
+ $params['images_per_page'] = 1;
232
+ }
233
+ if ( $params['gallery_view_type'] == 'blog_style' ) {
234
+ $params['gallery_type'] = 'blog_style';
235
+ $params['blog_style_width'] = BWG()->options->blog_style_width;
236
+ $params['blog_style_title_enable'] = BWG()->options->blog_style_title_enable;
237
+ $params['blog_style_images_per_page'] = BWG()->options->blog_style_images_per_page;
238
+ $params['blog_style_load_more_image_count'] = BWG()->options->blog_style_load_more_image_count;
239
+ $params['blog_style_enable_page'] = BWG()->options->blog_style_enable_page;
240
+ $params['blog_style_description_enable'] = BWG()->options->blog_style_description_enable;
241
+ $params['blog_style_sort_by'] = BWG()->options->blog_style_sort_by;
242
+ $params['blog_style_order_by'] = BWG()->options->blog_style_order_by;
243
+ $params['blog_style_show_gallery_title'] = BWG()->options->blog_style_show_gallery_title;
244
+ $params['blog_style_show_gallery_description'] = BWG()->options->blog_style_show_gallery_description;
245
+ $params['blog_style_show_search_box'] = BWG()->options->blog_style_show_search_box;
246
+ $params['blog_style_placeholder'] = BWG()->options->blog_style_placeholder;
247
+ $params['blog_style_search_box_width'] = BWG()->options->blog_style_search_box_width;
248
+ $params['blog_style_show_sort_images'] = BWG()->options->blog_style_show_sort_images;
249
+ $params['blog_style_show_tag_box'] = BWG()->options->blog_style_show_tag_box;
250
+ $params['blog_style_gallery_download'] = BWG()->options->blog_style_gallery_download;
251
+ }
252
+ if ( $params['gallery_view_type'] == 'carousel' ) {
253
+ $params['gallery_type'] = 'carousel';
254
+ $params['carousel_interval'] = BWG()->options->carousel_interval;
255
+ $params['carousel_width'] = BWG()->options->carousel_width;
256
+ $params['carousel_height'] = BWG()->options->carousel_height;
257
+ $params['carousel_image_column_number'] = BWG()->options->carousel_image_column_number;
258
+ $params['carousel_image_par'] = BWG()->options->carousel_image_par;
259
+ $params['enable_carousel_title'] = BWG()->options->carousel_enable_title;
260
+ $params['enable_carousel_autoplay'] = BWG()->options->carousel_enable_autoplay;
261
+ $params['carousel_r_width'] = BWG()->options->carousel_r_width;
262
+ $params['carousel_fit_containerWidth'] = BWG()->options->carousel_fit_containerWidth;
263
+ $params['carousel_prev_next_butt'] = BWG()->options->carousel_prev_next_butt;
264
+ $params['carousel_play_pause_butt'] = BWG()->options->carousel_play_pause_butt;
265
+ $params['image_column_number'] = 0;
266
+ $params['images_per_page'] = 0;
267
+ }
268
+ if ( $params['gallery_view_type'] == 'masonry' ) {
269
+ $params['gallery_type'] = 'thumbnails_masonry';
270
+ }
271
+ if ( $params['gallery_view_type'] == 'mosaic' ) {
272
+ $params['gallery_type'] = 'thumbnails_mosaic';
273
+ }
274
+
275
+ $params['gallery_id'] = $params['album_gallery_id'];
276
+ $params['load_more_image_count'] = $params['images_per_page'];
277
+ $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
278
+
279
+ $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
280
  $params['masonry_hor_ver'] = BWG()->options->masonry;
281
  $params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
282
 
290
  $params['gallery_row'] = $gallery_row;
291
  }
292
 
293
+ $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
294
+ // Disable Jetpack Photon module for gallery images.
 
 
 
 
295
  $this->thumb_urls = $params['image_rows']['thumb_urls'];
296
  if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
297
  add_filter( 'jetpack_photon_skip_image', array($this, 'disable_jetpack'), 11, 3 );
303
  else { // View type gallery.
304
  $params['view_type'] = 'gallery';
305
  $params['album_view_type'] = '';
306
+ $params['album_gallery_id'] = 0;
307
  $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
308
  $params['cur_alb_gal_id'] = 0;
309
+ $gallery_row = $this->model->get_gallery_row_data( $params['gallery_id'] );
310
+
311
  if( !empty($gallery_row) && isset($gallery_row->published) && $gallery_row->published == 0 ) {
312
  return;
313
  }
321
 
322
  $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
323
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
324
+
325
+ if ( $params['gallery_type'] == 'image_browser' ) {
326
  $params['image_enable_page'] = 1;
327
  $params['images_per_page'] = 1;
328
  $params['load_more_image_count'] = 1;
333
  $params['load_more_image_count'] = (isset($params['blog_style_load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['blog_style_load_more_image_count'] : $params['images_per_page'];
334
  $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
335
  }
 
336
 
337
+ $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
338
  // Disable Jetpack Photon module for gallery images.
339
  $this->thumb_urls = $params['image_rows']['thumb_urls'];
340
  if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -89,7 +89,7 @@ class BWGModelGalleryBox {
89
  $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
90
  }
91
 
92
- $rows = $wpdb->get_results('SELECT image.*, rates.rate FROM ' . $wpdb->prefix . 'bwg_image as image LEFT JOIN (SELECT rate, image_id FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE ip="' . $_SERVER['REMOTE_ADDR'] . '") as rates ON image.id=rates.image_id ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $order_by);
93
 
94
  $images = array();
95
  if ( !empty($rows) ) {
89
  $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
90
  }
91
 
92
+ $rows = $wpdb->get_results('SELECT image.*, rates.rate FROM ' . $wpdb->prefix . 'bwg_image as image LEFT JOIN (SELECT rate, image_id FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE ip="' . $_SERVER['REMOTE_ADDR'] . '") as rates ON image.id=rates.image_id ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ', image.id ' . $order_by);
93
 
94
  $images = array();
95
  if ( !empty($rows) ) {
frontend/models/model.php CHANGED
@@ -126,8 +126,8 @@ class BWGModelSite {
126
  }
127
  $join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON gallery.id = image.gallery_id';
128
  $where .= ' AND gallery.published = 1 ';
129
- $query = 'SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $sort_direction . ' ' . $limit_str;
130
- $rows = $wpdb->get_results($query);
131
  $total = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where);
132
  $page_nav['total'] = $total;
133
  $page_nav['limit'] = 1;
@@ -142,7 +142,7 @@ class BWGModelSite {
142
  $row->image_url = WDWLibrary::image_url_version($row->image_url, $row->modified_date);
143
  $row->thumb_url = WDWLibrary::image_url_version($row->thumb_url, $row->modified_date);
144
  // To disable Jetpack Photon module.
145
- $thumb_urls[] = BWG()->upload_url . $row->thumb_url;
146
  }
147
  else {
148
  // To disable Jetpack Photon module.
@@ -160,17 +160,32 @@ class BWGModelSite {
160
  return $row;
161
  }
162
 
163
- public function get_alb_gals_row( $bwg, $id, $albums_per_page, $sort_by, $pagination_type = 0, $from = '' ) {
164
- if ( $albums_per_page < 0 ) {
165
  $albums_per_page = 0;
166
  }
167
  global $wpdb;
168
- if ( $sort_by == 'random' || $sort_by == 'RAND()' ) {
169
- $order_by = 'ORDER BY RAND()';
170
- } else {
171
- $order_by = 'ORDER BY `order` ASC';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  }
173
- $limit = 0;
174
  if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
175
  $limit = ((int) $_REQUEST[ 'page_number_' . $bwg ] - 1) * $albums_per_page;
176
  }
@@ -188,22 +203,27 @@ class BWGModelSite {
188
  }
189
  // Select all galleries.
190
  if ( $id == 0 ) {
191
- $query = 'SELECT * FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1';
192
  $limitation = ' ' . $order_by . ' ' . $limit_str;
193
- $rows = $wpdb->get_results( $query . $limitation );
194
- $total = $wpdb->get_var('SELECT count(*) FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1');
 
195
  }
196
  else {
197
- $query = 'SELECT t.*, t1.preview_image, t1.random_preview_image, t1.name, t1.description, t1.slug, t1.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
198
  $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_album` as t1 ON (t.is_album=1 AND t.alb_gal_id = t1.id)';
199
  $query .= ' WHERE t.album_id="' . $id . '"';
200
- $query .= ' AND t1.published=1';
201
- $query .= ' UNION SELECT t.*, t2.preview_image, t2.random_preview_image, t2.name, t2.description, t2.slug, t2.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
 
 
202
  $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_gallery` as t2 ON (t.is_album=0 AND t.alb_gal_id = t2.id)';
203
  $query .= ' WHERE t.album_id="' . $id . '"';
204
- $query .= ' AND t2.published=1';
 
205
  $limitation = ' ' . $order_by . ' ' . $limit_str;
206
- $rows = $wpdb->get_results($query . $limitation);
 
207
  $total = count($wpdb->get_results($query));
208
  }
209
  if ( $rows ) {
126
  }
127
  $join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON gallery.id = image.gallery_id';
128
  $where .= ' AND gallery.published = 1 ';
129
+ $query = 'SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $sort_direction . ', image.id ' . $limit_str;
130
+ $rows = $wpdb->get_results($query);
131
  $total = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where);
132
  $page_nav['total'] = $total;
133
  $page_nav['limit'] = 1;
142
  $row->image_url = WDWLibrary::image_url_version($row->image_url, $row->modified_date);
143
  $row->thumb_url = WDWLibrary::image_url_version($row->thumb_url, $row->modified_date);
144
  // To disable Jetpack Photon module.
145
+ $thumb_urls[] = BWG()->upload_url . $row->thumb_url;
146
  }
147
  else {
148
  // To disable Jetpack Photon module.
160
  return $row;
161
  }
162
 
163
+ public function get_alb_gals_row( $bwg, $id, $albums_per_page, $sort_by, $order_by, $pagination_type = 0, $from = '' ) {
164
+ if ( $albums_per_page < 0 ) {
165
  $albums_per_page = 0;
166
  }
167
  global $wpdb;
168
+ $order_by = 'ORDER BY `' . ( (!empty($from) && $from === 'widget') ? 'id' : $sort_by ) . '` ' . $order_by;
169
+ if( $sort_by == 'random' || $sort_by == 'RAND()' ) {
170
+ $order_by = 'ORDER BY RAND()';
171
+ }
172
+ $search_value = !empty($_REQUEST['bwg_search_' . $bwg]) ? trim( esc_html($_REQUEST['bwg_search_' . $bwg]) ) : '';
173
+ $search_where = '';
174
+ if ( !empty($search_value) ) {
175
+ $search_keys = explode(' ', $search_value);
176
+ $alt_search = '(';
177
+ $description_search = '(';
178
+ foreach( $search_keys as $search_key) {
179
+ $alt_search .= '`{{table}}`.`name` LIKE "%' . trim($search_key) . '%" AND ';
180
+ $description_search .= '`{{table}}`.`description` LIKE "%' . trim($search_key) . '%" AND ';
181
+ }
182
+ $alt_search = rtrim($alt_search, 'AND ');
183
+ $alt_search .= ')';
184
+ $description_search = rtrim($description_search, 'AND ');
185
+ $description_search .= ')';
186
+ $search_where = ' AND (' . $alt_search . ' OR ' . $description_search . ')';
187
  }
188
+ $limit = 0;
189
  if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
190
  $limit = ((int) $_REQUEST[ 'page_number_' . $bwg ] - 1) * $albums_per_page;
191
  }
203
  }
204
  // Select all galleries.
205
  if ( $id == 0 ) {
206
+ $query = 'SELECT * FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1' . str_replace('{{table}}', $wpdb->prefix . 'bwg_gallery', $search_where);
207
  $limitation = ' ' . $order_by . ' ' . $limit_str;
208
+ $sql = $query . $limitation;
209
+ $rows = $wpdb->get_results( $sql );
210
+ $total = $wpdb->get_var('SELECT count(*) FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1' . str_replace('{{table}}', $wpdb->prefix . 'bwg_gallery', $search_where) );
211
  }
212
  else {
213
+ $query = '( SELECT t.*, t1.preview_image, t1.random_preview_image, t1.name, t1.description, t1.slug, t1.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
214
  $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_album` as t1 ON (t.is_album=1 AND t.alb_gal_id = t1.id)';
215
  $query .= ' WHERE t.album_id="' . $id . '"';
216
+ $query .= ' AND t1.published=1' . str_replace('{{table}}', 't1', $search_where);
217
+ $query .= ') ';
218
+ $query .= ' UNION ';
219
+ $query .= '( SELECT t.*, t2.preview_image, t2.random_preview_image, t2.name, t2.description, t2.slug, t2.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
220
  $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_gallery` as t2 ON (t.is_album=0 AND t.alb_gal_id = t2.id)';
221
  $query .= ' WHERE t.album_id="' . $id . '"';
222
+ $query .= ' AND t2.published=1' . str_replace('{{table}}', 't2', $search_where);
223
+ $query .= ')';
224
  $limitation = ' ' . $order_by . ' ' . $limit_str;
225
+ $sql = $query . $limitation;
226
+ $rows = $wpdb->get_results($sql);
227
  $total = count($wpdb->get_results($query));
228
  }
229
  if ( $rows ) {
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -5,14 +5,24 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
5
 
6
  public function display($params = array(), $bwg = 0) {
7
  /* Gallery view class.*/
8
- if ( $params['gallery_view_type'] == 'masonry' ) {
 
9
  $gallery_type = 'Thumbnails_masonry';
10
  }
11
  elseif ( $params['gallery_view_type'] == 'mosaic' ) {
12
  $gallery_type = 'Thumbnails_mosaic';
13
  }
14
- else {
15
- $gallery_type = 'Thumbnails';
 
 
 
 
 
 
 
 
 
16
  }
17
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
18
  $view_class = 'BWGView' . $gallery_type;
@@ -34,15 +44,14 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
34
  $theme_row->thumb_gal_title_shadow = $theme_row->album_compact_gal_title_shadow;
35
  $theme_row->thumb_gal_title_margin = $theme_row->album_compact_gal_title_margin;
36
  $theme_row->thumb_gal_title_align = $theme_row->album_compact_gal_title_align;
37
-
38
  $inline_style = $this->inline_styles($bwg, $theme_row, $params);
39
  if ( !WDWLibrary::elementor_is_active() ) {
40
  if ( !$params['ajax'] ) {
41
  if ( BWG()->options->use_inline_stiles_and_scripts ) {
42
- wp_add_inline_style('bwg_frontend', $inline_style);
43
  }
44
  else {
45
- echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
46
  }
47
  }
48
  }
@@ -65,14 +74,15 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
65
  class="bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails <?php echo $params['album_gallery_div_class']; ?>">
66
  <?php
67
  if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
68
- echo WDWLibrary::message(__('Album is empty.', BWG()->prefix), 'wd_error');
69
  }
70
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
71
  $href = add_query_arg(array(
72
  "type_" . $bwg => $row->def_type,
73
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
 
74
  ), $_SERVER['REQUEST_URI']);
75
- $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? $row->name : '&nbsp;') . '</div></div>';
76
  ?>
77
  <div class="bwg-item">
78
  <a class="<?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo $bwg; ?>"
@@ -113,9 +123,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
113
  ?>
114
  <input type="hidden" id="bwg_album_breadcrumb_<?php echo $bwg; ?>" name="bwg_album_breadcrumb_<?php echo $bwg; ?>" value='<?php echo $breadcrumb; ?>' />
115
  <?php
116
-
117
  $content = ob_get_clean();
118
-
119
  if ( $params['ajax'] ) {/* Ajax response after ajax call for filters and pagination.*/
120
  if ( $params['album_view_type'] != 'gallery' ) {
121
  parent::ajax_content($params, $bwg, $content);
@@ -364,8 +372,9 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
364
 
365
  $theme_row->thumb_title_shadow = $theme_row->album_compact_title_shadow;
366
  $theme_row->mosaic_thumb_title_shadow = $theme_row->album_compact_title_shadow;
367
-
368
- echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
 
369
  }
370
 
371
  return ob_get_clean();
5
 
6
  public function display($params = array(), $bwg = 0) {
7
  /* Gallery view class.*/
8
+ $gallery_type = 'Thumbnails';
9
+ if ( $params['gallery_view_type'] == 'masonry' ) {
10
  $gallery_type = 'Thumbnails_masonry';
11
  }
12
  elseif ( $params['gallery_view_type'] == 'mosaic' ) {
13
  $gallery_type = 'Thumbnails_mosaic';
14
  }
15
+ elseif ( $params['gallery_view_type'] == 'slideshow' ) {
16
+ $gallery_type = 'Slideshow';
17
+ }
18
+ elseif ( $params['gallery_view_type'] == 'image_browser' ) {
19
+ $gallery_type = 'Image_browser';
20
+ }
21
+ elseif ( $params['gallery_view_type'] == 'blog_style' ) {
22
+ $gallery_type = 'Blog_style';
23
+ }
24
+ elseif ( $params['gallery_view_type'] == 'carousel' ) {
25
+ $gallery_type = 'Carousel';
26
  }
27
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
28
  $view_class = 'BWGView' . $gallery_type;
44
  $theme_row->thumb_gal_title_shadow = $theme_row->album_compact_gal_title_shadow;
45
  $theme_row->thumb_gal_title_margin = $theme_row->album_compact_gal_title_margin;
46
  $theme_row->thumb_gal_title_align = $theme_row->album_compact_gal_title_align;
 
47
  $inline_style = $this->inline_styles($bwg, $theme_row, $params);
48
  if ( !WDWLibrary::elementor_is_active() ) {
49
  if ( !$params['ajax'] ) {
50
  if ( BWG()->options->use_inline_stiles_and_scripts ) {
51
+ wp_add_inline_style('bwg_frontend', $inline_style);
52
  }
53
  else {
54
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
55
  }
56
  }
57
  }
74
  class="bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails <?php echo $params['album_gallery_div_class']; ?>">
75
  <?php
76
  if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
77
+ echo WDWLibrary::message(__('No results found.', BWG()->prefix), 'wd_error');
78
  }
79
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
80
  $href = add_query_arg(array(
81
  "type_" . $bwg => $row->def_type,
82
  "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
83
+ "bwg_search_" . $bwg => $search_value = !empty($_REQUEST['bwg_search_' . $bwg]) ? trim( esc_html($_REQUEST['bwg_search_' . $bwg]) ) : '',
84
  ), $_SERVER['REQUEST_URI']);
85
+ $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? htmlspecialchars_decode($row->name, ENT_COMPAT | ENT_QUOTES) : '&nbsp;') . '</div></div>';
86
  ?>
87
  <div class="bwg-item">
88
  <a class="<?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo $bwg; ?>"
123
  ?>
124
  <input type="hidden" id="bwg_album_breadcrumb_<?php echo $bwg; ?>" name="bwg_album_breadcrumb_<?php echo $bwg; ?>" value='<?php echo $breadcrumb; ?>' />
125
  <?php
 
126
  $content = ob_get_clean();
 
127
  if ( $params['ajax'] ) {/* Ajax response after ajax call for filters and pagination.*/
128
  if ( $params['album_view_type'] != 'gallery' ) {
129
  parent::ajax_content($params, $bwg, $content);
372
 
373
  $theme_row->thumb_title_shadow = $theme_row->album_compact_title_shadow;
374
  $theme_row->mosaic_thumb_title_shadow = $theme_row->album_compact_title_shadow;
375
+ if ( !in_array( $params['gallery_type'], array('slideshow', 'image_browser', 'blog_style', 'carousel') ) ) {
376
+ echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
377
+ }
378
  }
379
 
380
  return ob_get_clean();
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -5,14 +5,27 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
5
 
6
  public function display( $params = array(), $bwg = 0 ) {
7
  /* Gallery view class.*/
 
8
  if ( $params['gallery_view_type'] == 'masonry' ) {
9
  $gallery_type = 'Thumbnails_masonry';
10
  }
11
  elseif ( $params['gallery_view_type'] == 'mosaic' ) {
12
  $gallery_type = 'Thumbnails_mosaic';
13
  }
14
- else {
15
- $gallery_type = 'Thumbnails';
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
18
  $view_class = 'BWGView' . $gallery_type;
@@ -71,7 +84,7 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
71
  class="bwg-album-extended bwg-border-box bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails bwg_album_extended_thumbnails_<?php echo $bwg; ?>">
72
  <?php
73
  if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
74
- echo WDWLibrary::message(__('Album is empty.', BWG()->prefix), 'wd_error');
75
  }
76
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
77
  $href = add_query_arg(array(
@@ -348,8 +361,9 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
348
  $params['mosaic_hor_ver'] = $params['extended_album_mosaic_hor_ver'];
349
  $params['resizable_mosaic'] = $params['extended_album_resizable_mosaic'];
350
  $params['mosaic_total_width'] = $params['extended_album_mosaic_total_width'];
351
-
352
- echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
 
353
  }
354
 
355
  return ob_get_clean();
5
 
6
  public function display( $params = array(), $bwg = 0 ) {
7
  /* Gallery view class.*/
8
+ $gallery_type = 'Thumbnails';
9
  if ( $params['gallery_view_type'] == 'masonry' ) {
10
  $gallery_type = 'Thumbnails_masonry';
11
  }
12
  elseif ( $params['gallery_view_type'] == 'mosaic' ) {
13
  $gallery_type = 'Thumbnails_mosaic';
14
  }
15
+ elseif ( $params['gallery_view_type'] == 'mosaic' ) {
16
+ $gallery_type = 'Thumbnails_mosaic';
17
+ }
18
+ elseif ( $params['gallery_view_type'] == 'slideshow' ) {
19
+ $gallery_type = 'Slideshow';
20
+ }
21
+ elseif ( $params['gallery_view_type'] == 'image_browser' ) {
22
+ $gallery_type = 'Image_browser';
23
+ }
24
+ elseif ( $params['gallery_view_type'] == 'blog_style' ) {
25
+ $gallery_type = 'Blog_style';
26
+ }
27
+ elseif ( $params['gallery_view_type'] == 'carousel' ) {
28
+ $gallery_type = 'Carousel';
29
  }
30
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
31
  $view_class = 'BWGView' . $gallery_type;
84
  class="bwg-album-extended bwg-border-box bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails bwg_album_extended_thumbnails_<?php echo $bwg; ?>">
85
  <?php
86
  if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
87
+ echo WDWLibrary::message(__('No results found.', BWG()->prefix), 'wd_error');
88
  }
89
  foreach ( $params['album_gallery_rows']['rows'] as $row ) {
90
  $href = add_query_arg(array(
361
  $params['mosaic_hor_ver'] = $params['extended_album_mosaic_hor_ver'];
362
  $params['resizable_mosaic'] = $params['extended_album_resizable_mosaic'];
363
  $params['mosaic_total_width'] = $params['extended_album_mosaic_total_width'];
364
+ if ( !in_array( $params['gallery_type'], array('slideshow', 'image_browser', 'blog_style', 'carousel') ) ) {
365
+ echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
366
+ }
367
  }
368
 
369
  return ob_get_clean();
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -112,6 +112,7 @@ class BWGViewGalleryBox {
112
  'thumb_width' => $thumb_width,
113
  'thumb_height' => $thumb_height,
114
  'open_with_fullscreen' => $open_with_fullscreen,
 
115
  'image_width' => $image_width,
116
  'image_height' => $image_height,
117
  'image_effect' => $image_effect,
@@ -465,7 +466,7 @@ class BWGViewGalleryBox {
465
  .bwg_comments_close , .bwg_ecommerce_close{
466
  text-align: <?php echo (($theme_row->lightbox_comment_pos == 'left') ? 'right' : 'left'); ?>!important;
467
  }
468
- .bwg_rate:hover {
469
  color: #<?php echo $theme_row->lightbox_rate_color; ?>;
470
  }
471
  .bwg_facebook,
@@ -569,10 +570,10 @@ class BWGViewGalleryBox {
569
  background: rgba(<?php echo $rgb_bwg_image_hit_bg_color['red']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['green']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_hit_bg_transparent / 100, 2, ".", ""); ?>);
570
  border: <?php echo $theme_row->lightbox_hit_border_width; ?>px <?php echo $theme_row->lightbox_hit_border_style; ?> #<?php echo $theme_row->lightbox_hit_border_color; ?>;
571
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
572
- <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
573
  margin: <?php echo $theme_row->lightbox_hit_margin; ?>;
574
  padding: <?php echo $theme_row->lightbox_hit_padding; ?>;
575
- <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_hit_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
576
  }
577
  .bwg_image_hits,
578
  .bwg_image_hits * {
@@ -617,9 +618,9 @@ class BWGViewGalleryBox {
617
  vertical-align: <?php echo $theme_row->lightbox_rate_pos; ?>;
618
  }
619
  .bwg_image_rate {
620
- <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_rate_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
621
  padding: <?php echo $theme_row->lightbox_rate_padding; ?>;
622
- <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_rate_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
623
  }
624
  #bwg_rate_form .bwg_hint,
625
  #bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>,
@@ -670,7 +671,7 @@ class BWGViewGalleryBox {
670
  }
671
 
672
 
673
- $data[$key] = [];
674
  $data[$key]["number"] = $key + 1;
675
  $data[$key]["id"] = $image_row->id;
676
  $data[$key]["alt"] = htmlspecialchars(str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->alt), ENT_COMPAT | ENT_QUOTES);
@@ -714,7 +715,7 @@ class BWGViewGalleryBox {
714
  $current_pos = 0;
715
  if ( $enable_image_filmstrip ) {
716
  ?>
717
- <div class="bwg_filmstrip_container">
718
  <div class="bwg_filmstrip_left"><i class="<?php echo ($filmstrip_direction == 'horizontal'? 'bwg-icon-angle-left-sm' : 'bwg-icon-angle-up-sm'); ?> "></i></div>
719
  <div class="bwg_filmstrip">
720
  <div class="bwg_filmstrip_thumbnails" data-all-images-right-left-space="<?php echo $all_images_right_left_space; ?>" data-all-images-top-bottom-space="<?php echo $all_images_top_bottom_space; ?>">
@@ -727,12 +728,7 @@ class BWGViewGalleryBox {
727
 
728
  $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true : false;
729
  $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype ) == 1 ? true : false;
730
- if ( !$is_embed ) {
731
- $thumb_path_url = htmlspecialchars_decode(BWG()->upload_dir . $image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
732
- $thumb_path_url = explode('?bwg', $thumb_path_url);
733
- list($image_thumb_width, $image_thumb_height) = getimagesize($thumb_path_url[0]);
734
- }
735
- else {
736
  if ($image_row->resolution != '') {
737
  if (!$is_embed_instagram) {
738
  $resolution_arr = explode(" ", $image_row->resolution);
@@ -758,20 +754,22 @@ class BWGViewGalleryBox {
758
  $image_thumb_width = $image_filmstrip_width;
759
  $image_thumb_height = $image_filmstrip_height;
760
  }
 
 
 
 
 
 
 
 
 
761
  }
762
 
763
- $_image_filmstrip_width = $image_filmstrip_width - $filmstrip_thumb_right_left_space;
764
- $_image_filmstrip_height = $image_filmstrip_height - $filmstrip_thumb_top_bottom_space;
765
- $scale = max($image_filmstrip_width / $image_thumb_width, $image_filmstrip_height / $image_thumb_height);
766
- $image_thumb_width *= $scale;
767
- $image_thumb_height *= $scale;
768
- $thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
769
- $thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
770
  ?>
771
  <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
772
  <div class="bwg_filmstrip_thumbnail_img_wrap">
773
- <img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" class="bwg_filmstrip_thumbnail_img hidden" data-url="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" src="" onclick='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>", <?php echo json_encode($data) ?>)' ontouchend='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>", <?php echo json_encode($data) ?>, "")' image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
774
- </div>
775
  </div>
776
  <?php
777
  }
@@ -842,7 +840,7 @@ class BWGViewGalleryBox {
842
  <?php } if ($enable_comment_social) { ?>
843
  <i title="<?php echo __('Show comments', BWG()->prefix); ?>" class="bwg-icon-comment-square bwg_ctrl_btn bwg_comment"></i>
844
  <?php } if ($popup_enable_rate) { ?>
845
- <i title="<?php echo __('Show rating', BWG()->prefix); ?>" class="bwg-icon-star bwg_ctrl_btn bwg_rate"></i>
846
  <?php }
847
  $is_embed = preg_match('/EMBED/', $current_filetype) == 1 ? TRUE : FALSE;
848
  $share_image_url = str_replace('%252F', '%2F', urlencode( $is_embed ? $current_thumb_url : BWG()->upload_url . rawurlencode($current_image_url)));
@@ -1383,6 +1381,7 @@ class BWGViewGalleryBox {
1383
  'bwg_share_image_url' => urlencode(BWG()->upload_url),
1384
  'slideshow_interval' => $slideshow_interval,
1385
  'open_with_fullscreen' => $open_with_fullscreen,
 
1386
  'event_stack' => array(),
1387
  'bwg_playInterval' => 0,
1388
  'data' => $data,
@@ -1400,11 +1399,13 @@ class BWGViewGalleryBox {
1400
  'bwg_ctrl_btn_container_height' => $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top,
1401
  'filmstrip_thumb_right_left_space' => $filmstrip_thumb_right_left_space,
1402
  'all_images_right_left_space' => $all_images_right_left_space,
 
 
 
1403
  );
1404
  $gallery_box_data = json_encode( $bwg_gallery_box_params );
1405
  ?>
1406
- <input type="hidden" id="gallery_box_data" value='<?php echo $gallery_box_data ?>'>
1407
-
1408
  <?php
1409
  die();
1410
  }
112
  'thumb_width' => $thumb_width,
113
  'thumb_height' => $thumb_height,
114
  'open_with_fullscreen' => $open_with_fullscreen,
115
+ 'open_with_autoplay' => $open_with_autoplay,
116
  'image_width' => $image_width,
117
  'image_height' => $image_height,
118
  'image_effect' => $image_effect,
466
  .bwg_comments_close , .bwg_ecommerce_close{
467
  text-align: <?php echo (($theme_row->lightbox_comment_pos == 'left') ? 'right' : 'left'); ?>!important;
468
  }
469
+ #bwg_rate_form .bwg_rate:hover {
470
  color: #<?php echo $theme_row->lightbox_rate_color; ?>;
471
  }
472
  .bwg_facebook,
570
  background: rgba(<?php echo $rgb_bwg_image_hit_bg_color['red']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['green']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_hit_bg_transparent / 100, 2, ".", ""); ?>);
571
  border: <?php echo $theme_row->lightbox_hit_border_width; ?>px <?php echo $theme_row->lightbox_hit_border_style; ?> #<?php echo $theme_row->lightbox_hit_border_color; ?>;
572
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
573
+ <?php echo ($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
574
  margin: <?php echo $theme_row->lightbox_hit_margin; ?>;
575
  padding: <?php echo $theme_row->lightbox_hit_padding; ?>;
576
+ <?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_hit_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
577
  }
578
  .bwg_image_hits,
579
  .bwg_image_hits * {
618
  vertical-align: <?php echo $theme_row->lightbox_rate_pos; ?>;
619
  }
620
  .bwg_image_rate {
621
+ <?php echo ($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_rate_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
622
  padding: <?php echo $theme_row->lightbox_rate_padding; ?>;
623
+ <?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_rate_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
624
  }
625
  #bwg_rate_form .bwg_hint,
626
  #bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>,
671
  }
672
 
673
 
674
+ $data[$key] = array();
675
  $data[$key]["number"] = $key + 1;
676
  $data[$key]["id"] = $image_row->id;
677
  $data[$key]["alt"] = htmlspecialchars(str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->alt), ENT_COMPAT | ENT_QUOTES);
715
  $current_pos = 0;
716
  if ( $enable_image_filmstrip ) {
717
  ?>
718
+ <div class="bwg_filmstrip_container" data-direction="<?php echo $filmstrip_direction; ?>">
719
  <div class="bwg_filmstrip_left"><i class="<?php echo ($filmstrip_direction == 'horizontal'? 'bwg-icon-angle-left-sm' : 'bwg-icon-angle-up-sm'); ?> "></i></div>
720
  <div class="bwg_filmstrip">
721
  <div class="bwg_filmstrip_thumbnails" data-all-images-right-left-space="<?php echo $all_images_right_left_space; ?>" data-all-images-top-bottom-space="<?php echo $all_images_top_bottom_space; ?>">
728
 
729
  $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true : false;
730
  $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype ) == 1 ? true : false;
731
+ if ( $is_embed ) {
 
 
 
 
 
732
  if ($image_row->resolution != '') {
733
  if (!$is_embed_instagram) {
734
  $resolution_arr = explode(" ", $image_row->resolution);
754
  $image_thumb_width = $image_filmstrip_width;
755
  $image_thumb_height = $image_filmstrip_height;
756
  }
757
+
758
+ $_image_filmstrip_width = $image_filmstrip_width - $filmstrip_thumb_right_left_space;
759
+ $_image_filmstrip_height = $image_filmstrip_height - $filmstrip_thumb_top_bottom_space;
760
+ $scale = max($image_filmstrip_width / $image_thumb_width, $image_filmstrip_height / $image_thumb_height);
761
+ $image_thumb_width *= $scale;
762
+ $image_thumb_height *= $scale;
763
+ $thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
764
+ $thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
765
+
766
  }
767
 
 
 
 
 
 
 
 
768
  ?>
769
  <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
770
  <div class="bwg_filmstrip_thumbnail_img_wrap">
771
+ <img <?php if( $is_embed ) { ?> style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" <?php } ?> class="bwg_filmstrip_thumbnail_img hidden" data-url="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" src="" onclick='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")' ontouchend='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")' image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
772
+ </div>
773
  </div>
774
  <?php
775
  }
840
  <?php } if ($enable_comment_social) { ?>
841
  <i title="<?php echo __('Show comments', BWG()->prefix); ?>" class="bwg-icon-comment-square bwg_ctrl_btn bwg_comment"></i>
842
  <?php } if ($popup_enable_rate) { ?>
843
+ <i title="<?php echo __('Show rating', BWG()->prefix); ?>" class="bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?> bwg_ctrl_btn bwg_rate"></i>
844
  <?php }
845
  $is_embed = preg_match('/EMBED/', $current_filetype) == 1 ? TRUE : FALSE;
846
  $share_image_url = str_replace('%252F', '%2F', urlencode( $is_embed ? $current_thumb_url : BWG()->upload_url . rawurlencode($current_image_url)));
1381
  'bwg_share_image_url' => urlencode(BWG()->upload_url),
1382
  'slideshow_interval' => $slideshow_interval,
1383
  'open_with_fullscreen' => $open_with_fullscreen,
1384
+ 'open_with_autoplay' => $open_with_autoplay,
1385
  'event_stack' => array(),
1386
  'bwg_playInterval' => 0,
1387
  'data' => $data,
1399
  'bwg_ctrl_btn_container_height' => $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top,
1400
  'filmstrip_thumb_right_left_space' => $filmstrip_thumb_right_left_space,
1401
  'all_images_right_left_space' => $all_images_right_left_space,
1402
+ 'image_right_click' => $image_right_click,
1403
+ 'open_comment' => $open_comment,
1404
+ 'open_ecommerce' => $open_ecommerce,
1405
  );
1406
  $gallery_box_data = json_encode( $bwg_gallery_box_params );
1407
  ?>
1408
+ <script>var gallery_box_data = JSON.parse( '<?php echo $gallery_box_data; ?>' );</script>
 
1409
  <?php
1410
  die();
1411
  }
frontend/views/BWGViewImage_browser.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Class BWGViewImage_browser
5
  */
@@ -11,10 +10,9 @@ class BWGViewImage_browser extends BWGViewSite {
11
  * @param array $params
12
  * @param int $bwg
13
  */
14
- public function display( $params = array(), $bwg = 0) {
15
  $theme_row = $params['theme_row'];
16
  $image_rows = $params['image_rows'];
17
-
18
  $image_title = $params['image_browser_title_enable'];
19
  $enable_image_description = $params['image_browser_description_enable'];
20
  $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
@@ -48,7 +46,6 @@ class BWGViewImage_browser extends BWGViewSite {
48
  $params['watermark_font_size'] = '';
49
  }
50
  $image_browser_image_title_align = (isset($theme_row->image_browser_image_title_align)) ? $theme_row->image_browser_image_title_align : 'top';
51
-
52
  $inline_style = $this->inline_styles($bwg, $theme_row, $params, $text_align, $vertical_align);
53
  if ( !WDWLibrary::elementor_is_active() ) {
54
  if ( !$params['ajax'] ) {
@@ -58,6 +55,9 @@ class BWGViewImage_browser extends BWGViewSite {
58
  else {
59
  echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
60
  }
 
 
 
61
  }
62
  }
63
  else {
@@ -76,7 +76,7 @@ class BWGViewImage_browser extends BWGViewSite {
76
  $bwg_params = json_encode($bwg_param);
77
  ob_start();
78
  ?>
79
- <div id="bwg_<?php echo $params['gallery_type'] . '_' . $bwg ?>" class="image_browser_images_conteiner_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params ?>'>
80
  <div class="image_browser_images_<?php echo $bwg; ?>">
81
  <?php
82
  foreach ( $images as $image_row ) {
@@ -211,7 +211,6 @@ class BWGViewImage_browser extends BWGViewSite {
211
  $theme_row->thumb_gal_title_shadow = $theme_row->image_browser_gal_title_shadow;
212
  $theme_row->thumb_gal_title_margin = $theme_row->image_browser_gal_title_margin;
213
  $theme_row->thumb_gal_title_align = $theme_row->image_browser_gal_title_align;
214
-
215
  if ( $params['ajax'] ) { /* Ajax response after ajax call for filters and pagination.*/
216
  parent::ajax_content($params, $bwg, $content);
217
  }
@@ -230,7 +229,7 @@ class BWGViewImage_browser extends BWGViewSite {
230
  * @param $vertical_align
231
  * @return string
232
  */
233
- private function inline_styles($bwg, $theme_row, $params, $text_align, $vertical_align) {
234
  ob_start();
235
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
236
  $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
@@ -240,99 +239,98 @@ class BWGViewImage_browser extends BWGViewSite {
240
  box-sizing: border-box;
241
  }
242
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?>{
243
- background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
244
- text-align: center;
245
- width: 100%;
246
- border-style: <?php echo $theme_row->image_browser_full_border_style;?>;
247
- border-width: <?php echo $theme_row->image_browser_full_border_width;?>px;
248
- border-color: #<?php echo $theme_row->image_browser_full_border_color;?>;
249
- padding: <?php echo $theme_row->image_browser_full_padding; ?>;
250
- border-radius: <?php echo $theme_row->image_browser_full_border_radius; ?>;
251
- position:relative;
252
  }
253
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_<?php echo $bwg; ?> {
254
- display: inline-block;
255
- -moz-box-sizing: border-box;
256
- box-sizing: border-box;
257
- font-size: 0;
258
- text-align: center;
259
- max-width: 100%;
260
- width: <?php echo $params['image_browser_width']; ?>px;
261
  }
262
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_conteiner_<?php echo $bwg; ?> {
263
- text-align: <?php echo $theme_row->image_browser_align; ?>;
264
  }
265
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_<?php echo $bwg; ?> {
266
- display: inline-block;
267
- width:100%;
268
  }
269
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
270
  background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
271
- text-align: center;
272
- display: inline-block;
273
- vertical-align: middle;
274
- margin: <?php echo $theme_row->image_browser_margin; ?>;
275
- padding: <?php echo $theme_row->image_browser_padding; ?>;
276
- border-radius: <?php echo $theme_row->image_browser_border_radius; ?>;
277
- border: <?php echo $theme_row->image_browser_border_width; ?>px <?php echo $theme_row->image_browser_border_style; ?> #<?php echo $theme_row->image_browser_border_color; ?>;
278
- box-shadow: <?php echo $theme_row->image_browser_box_shadow; ?>;
279
- /*z-index: 100;*/
280
- position: relative;
281
  }
282
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?>{
283
- display: table;
284
- width: 100%;
285
- font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
286
- font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
287
- color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
288
- text-align:<?php echo $theme_row->image_browser_image_description_align; ?>;
289
- padding-left: 8px;
290
  word-break: break-word;
291
  }
292
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_img_<?php echo $bwg; ?> {
293
  padding: 0 !important;
294
- max-width: 100% !important;
295
- height: inherit !important;
296
- width: 100%;
297
  }
298
  @media only screen and (max-width : 320px) {
299
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
300
- display: none;
301
- }
302
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?> {
303
- font-size: 10px !important;
304
- }
305
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
306
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
307
- font-size: 10px !important;
308
- text-decoration: none;
309
- margin: 4px;
310
- font-family: <?php echo $params['watermark_font']; ?>;
311
- color: #<?php echo $params['watermark_color']; ?> !important;
312
- opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
313
- filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
314
- text-decoration: none;
315
- position: relative;
316
- z-index: 10141;
317
- }
318
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
319
- color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
320
- display: table;
321
- width: 100%;
322
- text-align: left;
323
- font-size: 8px !important;
324
- font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
325
- padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
326
- /*word-break: break-all;*/
327
- border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
328
- background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
329
- border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
330
- border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
331
- }
332
-
333
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
334
- font-size: 10px !important;
335
- }
336
  }
337
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
338
  display: table;
@@ -343,17 +341,17 @@ class BWGViewImage_browser extends BWGViewSite {
343
  }
344
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
345
  color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
346
- display: table;
347
- width: 100%;
348
- text-align: left;
349
- font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
350
- font-family: <?php echo$theme_row->image_browser_img_font_family; ?>;
351
- padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
352
- word-break: break-word;
353
- border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
354
- background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
355
- border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
356
- border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
357
  }
358
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_alt_<?php echo $bwg; ?> {
359
  display:table;
@@ -365,60 +363,60 @@ class BWGViewImage_browser extends BWGViewSite {
365
  /*watermark*/
366
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
367
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
368
- text-decoration: none;
369
- margin: 4px;
370
- font-size: <?php echo $params['watermark_font_size']; ?>px;
371
- font-family: <?php echo $params['watermark_font']; ?>;
372
- color: #<?php echo $params['watermark_color']; ?> !important;
373
- opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
374
- filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
375
- position: relative;
376
- z-index: 10141;
377
  }
378
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_contain_<?php echo $bwg; ?>{
379
- position: absolute;
380
- text-align: center;
381
- vertical-align: middle;
382
- width: 100%;
383
- height: 100%;
384
- cursor: pointer;
385
  }
386
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_contain_<?php echo $bwg; ?>{
387
  display: table;
388
- vertical-align: middle;
389
- width: 100%;
390
- height: 100%;
391
  }
392
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_cont_<?php echo $bwg; ?>{
393
  display: table-cell;
394
- text-align: <?php echo $text_align; ?>;
395
- position: relative;
396
- vertical-align: <?php echo $vertical_align; ?>;
397
  }
398
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_<?php echo $bwg; ?>{
399
- display: inline-block;
400
- overflow: hidden;
401
- position: relative;
402
- vertical-align: middle;
403
- z-index: 10140;
404
- width: <?php echo $params['watermark_width'];?>px;
405
- max-width: <?php echo (($params['watermark_width']) / ($params['image_browser_width'])) * 100 ; ?>%;
406
- margin: 10px 10px 10px 10px ;
407
  }
408
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_text_<?php echo $bwg; ?>{
409
  display: inline-block;
410
- overflow: hidden;
411
- position: relative;
412
- vertical-align: middle;
413
- z-index: 10140;
414
- margin: 10px 10px 10px 10px ;
415
  }
416
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
417
- max-width: 100%;
418
- opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
419
- filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
420
- position: relative;
421
- z-index: 10141;
422
  }
423
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_none_selectable {
424
  -webkit-touch-callout: none;
1
  <?php
 
2
  /**
3
  * Class BWGViewImage_browser
4
  */
10
  * @param array $params
11
  * @param int $bwg
12
  */
13
+ public function display( $params = array(), $bwg = 0, $ajax = FALSE) {
14
  $theme_row = $params['theme_row'];
15
  $image_rows = $params['image_rows'];
 
16
  $image_title = $params['image_browser_title_enable'];
17
  $enable_image_description = $params['image_browser_description_enable'];
18
  $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
46
  $params['watermark_font_size'] = '';
47
  }
48
  $image_browser_image_title_align = (isset($theme_row->image_browser_image_title_align)) ? $theme_row->image_browser_image_title_align : 'top';
 
49
  $inline_style = $this->inline_styles($bwg, $theme_row, $params, $text_align, $vertical_align);
50
  if ( !WDWLibrary::elementor_is_active() ) {
51
  if ( !$params['ajax'] ) {
55
  else {
56
  echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
57
  }
58
+ }
59
+ else {
60
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
61
  }
62
  }
63
  else {
76
  $bwg_params = json_encode($bwg_param);
77
  ob_start();
78
  ?>
79
+ <div id="bwg_<?php echo $params['gallery_type'] . '_' . $bwg ?>" class="image_browser_images_conteiner_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params ?>'>
80
  <div class="image_browser_images_<?php echo $bwg; ?>">
81
  <?php
82
  foreach ( $images as $image_row ) {
211
  $theme_row->thumb_gal_title_shadow = $theme_row->image_browser_gal_title_shadow;
212
  $theme_row->thumb_gal_title_margin = $theme_row->image_browser_gal_title_margin;
213
  $theme_row->thumb_gal_title_align = $theme_row->image_browser_gal_title_align;
 
214
  if ( $params['ajax'] ) { /* Ajax response after ajax call for filters and pagination.*/
215
  parent::ajax_content($params, $bwg, $content);
216
  }
229
  * @param $vertical_align
230
  * @return string
231
  */
232
+ public function inline_styles($bwg, $theme_row, $params, $text_align = '', $vertical_align ='') {
233
  ob_start();
234
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
235
  $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
239
  box-sizing: border-box;
240
  }
241
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?>{
242
+ background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
243
+ text-align: center;
244
+ width: 100%;
245
+ border-style: <?php echo $theme_row->image_browser_full_border_style;?>;
246
+ border-width: <?php echo $theme_row->image_browser_full_border_width;?>px;
247
+ border-color: #<?php echo $theme_row->image_browser_full_border_color;?>;
248
+ padding: <?php echo $theme_row->image_browser_full_padding; ?>;
249
+ border-radius: <?php echo $theme_row->image_browser_full_border_radius; ?>;
250
+ position:relative;
251
  }
252
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_<?php echo $bwg; ?> {
253
+ display: inline-block;
254
+ -moz-box-sizing: border-box;
255
+ box-sizing: border-box;
256
+ font-size: 0;
257
+ text-align: center;
258
+ max-width: 100%;
259
+ width: <?php echo $params['image_browser_width']; ?>px;
260
  }
261
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_conteiner_<?php echo $bwg; ?> {
262
+ text-align: <?php echo $theme_row->image_browser_align; ?>;
263
  }
264
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_<?php echo $bwg; ?> {
265
+ display: inline-block;
266
+ width:100%;
267
  }
268
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
269
  background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
270
+ text-align: center;
271
+ display: inline-block;
272
+ vertical-align: middle;
273
+ margin: <?php echo $theme_row->image_browser_margin; ?>;
274
+ padding: <?php echo $theme_row->image_browser_padding; ?>;
275
+ border-radius: <?php echo $theme_row->image_browser_border_radius; ?>;
276
+ border: <?php echo $theme_row->image_browser_border_width; ?>px <?php echo $theme_row->image_browser_border_style; ?> #<?php echo $theme_row->image_browser_border_color; ?>;
277
+ box-shadow: <?php echo $theme_row->image_browser_box_shadow; ?>;
278
+ /*z-index: 100;*/
279
+ position: relative;
280
  }
281
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?>{
282
+ display: table;
283
+ width: 100%;
284
+ font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
285
+ font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
286
+ color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
287
+ text-align:<?php echo $theme_row->image_browser_image_description_align; ?>;
288
+ padding-left: 8px;
289
  word-break: break-word;
290
  }
291
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_img_<?php echo $bwg; ?> {
292
  padding: 0 !important;
293
+ max-width: 100% !important;
294
+ height: inherit !important;
295
+ width: 100%;
296
  }
297
  @media only screen and (max-width : 320px) {
298
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
299
+ display: none;
300
+ }
301
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?> {
302
+ font-size: 10px !important;
303
+ }
304
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
305
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
306
+ font-size: 10px !important;
307
+ text-decoration: none;
308
+ margin: 4px;
309
+ font-family: <?php echo $params['watermark_font']; ?>;
310
+ color: #<?php echo $params['watermark_color']; ?> !important;
311
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
312
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
313
+ text-decoration: none;
314
+ position: relative;
315
+ z-index: 10141;
316
+ }
317
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
318
+ color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
319
+ display: table;
320
+ width: 100%;
321
+ text-align: left;
322
+ font-size: 8px !important;
323
+ font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
324
+ padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
325
+ /*word-break: break-all;*/
326
+ border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
327
+ background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
328
+ border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
329
+ border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
330
+ }
331
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
332
+ font-size: 10px !important;
333
+ }
 
334
  }
335
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
336
  display: table;
341
  }
342
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
343
  color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
344
+ display: table;
345
+ width: 100%;
346
+ text-align: left;
347
+ font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
348
+ font-family: <?php echo$theme_row->image_browser_img_font_family; ?>;
349
+ padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
350
+ word-break: break-word;
351
+ border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
352
+ background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
353
+ border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
354
+ border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
355
  }
356
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_alt_<?php echo $bwg; ?> {
357
  display:table;
363
  /*watermark*/
364
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
365
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
366
+ text-decoration: none;
367
+ margin: 4px;
368
+ font-size: <?php echo $params['watermark_font_size']; ?>px;
369
+ font-family: <?php echo $params['watermark_font']; ?>;
370
+ color: #<?php echo $params['watermark_color']; ?> !important;
371
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
372
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
373
+ position: relative;
374
+ z-index: 10141;
375
  }
376
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_contain_<?php echo $bwg; ?>{
377
+ position: absolute;
378
+ text-align: center;
379
+ vertical-align: middle;
380
+ width: 100%;
381
+ height: 100%;
382
+ cursor: pointer;
383
  }
384
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_contain_<?php echo $bwg; ?>{
385
  display: table;
386
+ vertical-align: middle;
387
+ width: 100%;
388
+ height: 100%;
389
  }
390
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_cont_<?php echo $bwg; ?>{
391
  display: table-cell;
392
+ text-align: <?php echo $text_align; ?>;
393
+ position: relative;
394
+ vertical-align: <?php echo $vertical_align; ?>;
395
  }
396
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_<?php echo $bwg; ?>{
397
+ display: inline-block;
398
+ overflow: hidden;
399
+ position: relative;
400
+ vertical-align: middle;
401
+ z-index: 10140;
402
+ width: <?php echo $params['watermark_width'];?>px;
403
+ max-width: <?php echo (($params['watermark_width']) / ($params['image_browser_width'])) * 100 ; ?>%;
404
+ margin: 10px 10px 10px 10px ;
405
  }
406
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_text_<?php echo $bwg; ?>{
407
  display: inline-block;
408
+ overflow: hidden;
409
+ position: relative;
410
+ vertical-align: middle;
411
+ z-index: 10140;
412
+ margin: 10px 10px 10px 10px;
413
  }
414
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
415
+ max-width: 100%;
416
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
417
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
418
+ position: relative;
419
+ z-index: 10141;
420
  }
421
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_none_selectable {
422
  -webkit-touch-callout: none;
frontend/views/BWGViewSlideshow.php CHANGED
@@ -501,14 +501,19 @@ public function display($params = array(), $bwg = 0) {
501
  $content = ob_get_clean();
502
  }
503
 
504
- parent::container($params, $bwg, $content);
 
 
 
 
 
505
  }
506
 
507
- private function inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, $options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $enable_slideshow_filmstrip) {
508
  ob_start();
509
  ?>
510
  #bwg_container1_<?php echo $bwg; ?> {
511
- /*visibility: hidden;*/
512
  }
513
  #bwg_container1_<?php echo $bwg; ?> * {
514
  -moz-user-select: none;
501
  $content = ob_get_clean();
502
  }
503
 
504
+ if ( $params['ajax'] ) { /* Ajax response after ajax call for filters and pagination.*/
505
+ parent::ajax_content($params, $bwg, $content);
506
+ }
507
+ else {
508
+ parent::container($params, $bwg, $content);
509
+ }
510
  }
511
 
512
+ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, $options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $enable_slideshow_filmstrip) {
513
  ob_start();
514
  ?>
515
  #bwg_container1_<?php echo $bwg; ?> {
516
+ /*visibility: hidden;*/
517
  }
518
  #bwg_container1_<?php echo $bwg; ?> * {
519
  -moz-user-select: none;
frontend/views/BWGViewThumbnails.php CHANGED
@@ -4,7 +4,6 @@ class BWGViewThumbnails extends BWGViewSite {
4
  $theme_row = $params['theme_row'];
5
  $image_rows = $params['image_rows'];
6
  $image_rows = $image_rows['images'];
7
-
8
  $inline_style = $this->inline_styles($bwg, $theme_row, $params);
9
  if ( !WDWLibrary::elementor_is_active() ) {
10
  if ( !$ajax ) {
@@ -40,7 +39,7 @@ class BWGViewThumbnails extends BWGViewSite {
40
  $class = '';
41
  $data_image_id = '';
42
  $href = '';
43
- $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($image_row->alt ? $image_row->alt : '&nbsp;') . '</div></div>';
44
  $play_icon = '<div class="bwg-play-icon1"><i title="' . __('Play', BWG()->prefix) . '" class="bwg-icon-play bwg-title2 bwg-play-icon2"></i></div>';
45
  $ecommerce_icon = '<div class="bwg-ecommerce1"><div class="bwg-ecommerce2">';
46
  if ( $image_row->pricelist_id ) {
4
  $theme_row = $params['theme_row'];
5
  $image_rows = $params['image_rows'];
6
  $image_rows = $image_rows['images'];
 
7
  $inline_style = $this->inline_styles($bwg, $theme_row, $params);
8
  if ( !WDWLibrary::elementor_is_active() ) {
9
  if ( !$ajax ) {
39
  $class = '';
40
  $data_image_id = '';
41
  $href = '';
42
+ $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($image_row->alt ? htmlspecialchars_decode($image_row->alt, ENT_COMPAT | ENT_QUOTES) : '&nbsp;') . '</div></div>';
43
  $play_icon = '<div class="bwg-play-icon1"><i title="' . __('Play', BWG()->prefix) . '" class="bwg-icon-play bwg-title2 bwg-play-icon2"></i></div>';
44
  $ecommerce_icon = '<div class="bwg-ecommerce1"><div class="bwg-ecommerce2">';
45
  if ( $image_row->pricelist_id ) {
frontend/views/view.php CHANGED
@@ -140,7 +140,7 @@ class BWGViewSite {
140
  }
141
 
142
  public function ajax_content($params, $bwg, $content) {
143
- if ( isset($params['breadcrumb_arr']) && count($params['breadcrumb_arr']) > 1 ) { /* If not first album.*/
144
  $this->back($params, $bwg);
145
  }
146
 
@@ -162,7 +162,6 @@ class BWGViewSite {
162
  <?php
163
  }
164
 
165
-
166
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
167
  if ( $params['tag'] ) {
168
  echo WDWLibrary::message(__('There are no images.', BWG()->prefix), 'wd_error');
@@ -171,10 +170,9 @@ class BWGViewSite {
171
  echo WDWLibrary::message(__('No Images found.', BWG()->prefix), 'wd_error');
172
  }
173
  }
174
-
175
  if ( $params['album_view_type'] == 'album' || isset($params['image_rows']) && count($params['image_rows']['images']) ) {
176
  $pagination_style = $params['gallery_type'] == 'image_browser' ? 'image_browser' : 'simple';
177
- $this->ajax_html_frontend_page_nav($params['theme_row'], 'top', $params, $bwg, $pagination_style);
178
  echo $content;
179
  $this->ajax_html_frontend_page_nav($params['theme_row'], 'bottom', $params, $bwg, $pagination_style);
180
  $this->download_button($params, $bwg);
@@ -313,13 +311,17 @@ class BWGViewSite {
313
  $search_box_width = $params['search_box_width'];
314
  $placeholder = $params['placeholder'];
315
  $album_gallery_id = 0;
316
- $bwg_search = ((isset($_POST['bwg_search_' . $current_view]) && esc_html($_POST['bwg_search_' . $current_view]) != '') ? esc_html($_POST['bwg_search_' . $current_view]) : '');
317
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : ($album_gallery_id ? 'gallery' : 'album'));
318
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : ($album_gallery_id ? $album_gallery_id : 0));
 
 
 
 
 
319
  ob_start();
320
  ?>
321
  #bwg_search_container_1_<?php echo $current_view; ?> {
322
- max-width: <?php echo $search_box_width; ?>px;
323
  }
324
  <?php
325
  $inline_style = ob_get_clean();
@@ -443,7 +445,6 @@ class BWGViewSite {
443
  $type = $params['album_view_type'];
444
  $enable_seo = BWG()->options->enable_seo;
445
  $pagination = $params['image_enable_page'];
446
-
447
  if ( isset($params['image_enable_page'])
448
  && isset($params['images_per_page'])
449
  && $params['image_enable_page']
@@ -510,7 +511,7 @@ class BWGViewSite {
510
  <?php echo ($theme_row->page_nav_button_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
511
  }
512
  <?php
513
- if ($pagination_style == 'image_browser') {
514
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
515
  ?>
516
  #bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.next-page:hover,
@@ -629,15 +630,14 @@ class BWGViewSite {
629
  <?php
630
  }
631
  elseif ($pagination == 2) {
632
- if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
633
- ?>
634
-
635
- <div id="bwg_load_<?php echo $current_view; ?>" class="tablenav-pages_<?php echo $current_view; ?>">
636
  <a class="bwg_load_btn_<?php echo $current_view; ?> bwg_load_btn" href="javascript:void(0);"><?php echo __('Load More...', BWG()->prefix); ?></a>
637
  <input type="hidden" id="bwg_load_more_<?php echo $current_view; ?>" name="bwg_load_more_<?php echo $current_view; ?>" value="on" />
638
  </div>
639
  <?php
640
- }
641
  }
642
  elseif ($pagination == 3) {
643
  if ($count_items > $limit * $page_number) {
140
  }
141
 
142
  public function ajax_content($params, $bwg, $content) {
143
+ if ( isset($params['breadcrumb_arr']) && count($params['breadcrumb_arr']) > 1 ) { /* If not first album.*/
144
  $this->back($params, $bwg);
145
  }
146
 
162
  <?php
163
  }
164
 
 
165
  if ( isset($params['image_rows']) && !count($params['image_rows']['images']) ) {
166
  if ( $params['tag'] ) {
167
  echo WDWLibrary::message(__('There are no images.', BWG()->prefix), 'wd_error');
170
  echo WDWLibrary::message(__('No Images found.', BWG()->prefix), 'wd_error');
171
  }
172
  }
 
173
  if ( $params['album_view_type'] == 'album' || isset($params['image_rows']) && count($params['image_rows']['images']) ) {
174
  $pagination_style = $params['gallery_type'] == 'image_browser' ? 'image_browser' : 'simple';
175
+ $this->ajax_html_frontend_page_nav($params['theme_row'], 'top', $params, $bwg, $pagination_style);
176
  echo $content;
177
  $this->ajax_html_frontend_page_nav($params['theme_row'], 'bottom', $params, $bwg, $pagination_style);
178
  $this->download_button($params, $bwg);
311
  $search_box_width = $params['search_box_width'];
312
  $placeholder = $params['placeholder'];
313
  $album_gallery_id = 0;
 
314
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : ($album_gallery_id ? 'gallery' : 'album'));
315
+ if ( $type == 'album' ) {
316
+ $bwg_search = ( (isset($_POST['bwg_album_search_' . $current_view]) && esc_html($_POST['bwg_album_search_' . $current_view]) != '') ? esc_html($_POST['bwg_album_search_' . $current_view]) : '');
317
+ } else {
318
+ $bwg_search = ( (isset($_POST['bwg_search_' . $current_view]) && esc_html($_POST['bwg_search_' . $current_view]) != '') ? esc_html($_POST['bwg_search_' . $current_view]) : '');
319
+ }
320
+ $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : ($album_gallery_id ? $album_gallery_id : $params['album_gallery_id'] ));
321
  ob_start();
322
  ?>
323
  #bwg_search_container_1_<?php echo $current_view; ?> {
324
+ max-width: <?php echo $search_box_width; ?>px;
325
  }
326
  <?php
327
  $inline_style = ob_get_clean();
445
  $type = $params['album_view_type'];
446
  $enable_seo = BWG()->options->enable_seo;
447
  $pagination = $params['image_enable_page'];
 
448
  if ( isset($params['image_enable_page'])
449
  && isset($params['images_per_page'])
450
  && $params['image_enable_page']
511
  <?php echo ($theme_row->page_nav_button_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
512
  }
513
  <?php
514
+ if ( !$params['pagination_default_style'] && $pagination_style == 'image_browser' ) {
515
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
516
  ?>
517
  #bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.next-page:hover,
630
  <?php
631
  }
632
  elseif ($pagination == 2) {
633
+ if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
634
+ ?>
635
+ <div id="bwg_load_<?php echo $current_view; ?>" class="tablenav-pages_<?php echo $current_view; ?>">
 
636
  <a class="bwg_load_btn_<?php echo $current_view; ?> bwg_load_btn" href="javascript:void(0);"><?php echo __('Load More...', BWG()->prefix); ?></a>
637
  <input type="hidden" id="bwg_load_more_<?php echo $current_view; ?>" name="bwg_load_more_<?php echo $current_view; ?>" value="on" />
638
  </div>
639
  <?php
640
+ }
641
  }
642
  elseif ($pagination == 3) {
643
  if ($count_items > $limit * $page_number) {
images/subscribe/10web-logo.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 182.84 50">
2
+ <defs>
3
+ <style>
4
+ .cls-1 {
5
+ fill: #333b46;
6
+ }
7
+ </style>
8
+ </defs>
9
+ <g id="Group_164" data-name="Group 164" transform="translate(-1682.75 -377.15)">
10
+ <g id="Group_162" data-name="Group 162" transform="translate(1744.58 384.252)">
11
+ <path id="Path_73" data-name="Path 73" class="cls-1" d="M1715.4,388.192c.758-.189,1.515-.758,2.272-.947.757-.379,1.515-.758,2.462-1.326a15.767,15.767,0,0,0,2.273-1.515,17.051,17.051,0,0,0,1.894-1.7h4.166v26.894h-5.87V390.086a15.657,15.657,0,0,1-2.462,1.326l-2.84,1.136Z" transform="translate(-1715.4 -379.291)"/>
12
+ <path id="Path_74" data-name="Path 74" class="cls-1" d="M1745.537,396.126c0,4.545-.758,7.955-2.462,10.417a8.621,8.621,0,0,1-14.013,0c-1.7-2.462-2.462-5.871-2.462-10.417a18.419,18.419,0,0,1,.757-5.871,23.189,23.189,0,0,1,1.894-4.356,8.108,8.108,0,0,1,3.03-2.652,8.8,8.8,0,0,1,3.977-.947,7.921,7.921,0,0,1,7.007,3.6C1744.78,387.982,1745.537,391.77,1745.537,396.126Zm-6.06,0a21.769,21.769,0,0,0-.189-3.6,12.548,12.548,0,0,0-.568-2.841,6.305,6.305,0,0,0-1.136-1.894,2.893,2.893,0,0,0-1.894-.758,2.431,2.431,0,0,0-1.894.758,5.469,5.469,0,0,0-1.136,1.894,10.726,10.726,0,0,0-.569,2.841,34.357,34.357,0,0,0,0,7.2,10.715,10.715,0,0,0,.569,2.841,6.3,6.3,0,0,0,1.136,1.894,2.891,2.891,0,0,0,1.894.758,2.432,2.432,0,0,0,1.894-.758,5.476,5.476,0,0,0,1.136-1.894q.284-1.136.568-2.841A19.559,19.559,0,0,0,1739.477,396.126Z" transform="translate(-1705.391 -379.648)"/>
13
+ <path id="Path_75" data-name="Path 75" class="cls-1" d="M1757.964,385.351c.189.947.757,2.273.946,3.6.379,1.326.757,2.651,1.136,4.167a35.376,35.376,0,0,0,1.326,4.167c.568,1.326.757,2.652,1.326,3.977.189-1.326.757-2.651.947-4.167s.757-3.03.947-4.735.568-3.22.757-4.924.568-3.22.757-4.735h6.25c-.757,4.545-1.893,9.091-3.03,13.636-1.136,4.735-2.462,8.9-3.787,13.258h-5.492c-.757-2.462-1.894-5.114-2.651-7.765s-1.7-5.3-2.462-8.144c-.757,2.652-1.7,5.3-2.462,8.144s-1.7,5.3-2.462,7.765h-5.492c-1.326-4.167-2.651-8.523-3.787-13.258s-2.273-9.28-3.03-13.636h6.438c.189,1.515.569,3.03.758,4.735a45.231,45.231,0,0,0,.947,4.924c.189,1.7.757,3.22.947,4.735a22.01,22.01,0,0,0,1.136,4.167c.379-1.326.758-2.462,1.326-3.977a35.261,35.261,0,0,1,1.326-4.167,34.047,34.047,0,0,0,1.136-4.167c.189-1.326.758-2.462.947-3.6Z" transform="translate(-1695.471 -379.291)"/>
14
+ <path id="Path_76" data-name="Path 76" class="cls-1" d="M1756.9,396.6a11.829,11.829,0,0,1,.758-4.735,14.843,14.843,0,0,1,2.083-3.409,8.246,8.246,0,0,1,3.03-1.894,12.223,12.223,0,0,1,3.6-.758c2.841,0,5.113.758,6.818,2.652,1.7,1.7,2.462,4.356,2.462,7.765v1.136a2.4,2.4,0,0,1-.19,1.136h-13.066a4.49,4.49,0,0,0,1.7,2.841,6.215,6.215,0,0,0,3.977.947c.947,0,2.083-.189,3.03-.189a4.739,4.739,0,0,0,2.462-.758l.757,4.735c-.189.189-.757.189-1.326.379s-1.136.189-1.7.379a6.435,6.435,0,0,1-1.893.189,7.77,7.77,0,0,1-2.083.189,11.833,11.833,0,0,1-4.734-.758,10.743,10.743,0,0,1-3.409-2.273,8.437,8.437,0,0,1-1.894-3.409A16.251,16.251,0,0,1,1756.9,396.6Zm13.445-2.273c0-.379-.19-.947-.19-1.326a10.86,10.86,0,0,0-.758-1.326,1.557,1.557,0,0,0-1.136-.758,4.2,4.2,0,0,0-1.7-.189c-.757,0-1.136.189-1.7.189-.378.189-.758.568-1.136.758a8.259,8.259,0,0,0-.758,1.326,12.061,12.061,0,0,1-.378,1.326Z" transform="translate(-1678.311 -376.52)"/>
15
+ <path id="Path_77" data-name="Path 77" class="cls-1" d="M1788.237,400.786a11.109,11.109,0,0,1-.757,4.356,7.925,7.925,0,0,1-2.083,3.409,7.3,7.3,0,0,1-3.219,2.083,16.275,16.275,0,0,1-4.545.758,7.767,7.767,0,0,1-2.083-.189,9.219,9.219,0,0,0-2.272-.189c-.757-.189-1.326-.189-2.083-.379s-1.325-.189-1.894-.379V381.847l5.87-.947v10.038a19.613,19.613,0,0,0,1.894-.758,7.8,7.8,0,0,1,2.273-.189,8.479,8.479,0,0,1,3.787.758,15.683,15.683,0,0,1,2.841,2.083,8.254,8.254,0,0,1,1.7,3.409A17.615,17.615,0,0,1,1788.237,400.786Zm-5.871-.189c0-3.6-1.325-5.492-4.166-5.492-.568,0-1.136.189-1.7.189a1.719,1.719,0,0,0-1.325.568v10.417c.189,0,.757.189,1.136.189h1.326a4.848,4.848,0,0,0,3.6-1.515A7.844,7.844,0,0,0,1782.367,400.6Z" transform="translate(-1667.229 -380.9)"/>
16
+ </g>
17
+ <g id="Group_163" data-name="Group 163" transform="translate(1682.75 377.15)">
18
+ <path id="Path_78" data-name="Path 78" class="cls-1" d="M1686.879,394.1l16.665-16.667a1.152,1.152,0,0,1,1.515,0l24.05,24.242a1.152,1.152,0,0,1,0,1.515l-.189.189a5.268,5.268,0,0,1-7.2,0l-17.043-17.046a1.152,1.152,0,0,0-1.515,0l-9.468,9.47a5.267,5.267,0,0,1-7.2,0h0A2.547,2.547,0,0,1,1686.879,394.1Z" transform="translate(-1679.399 -377.15)"/>
19
+ <path id="Path_79" data-name="Path 79" class="cls-1" d="M1725.453,399.561l-16.665,16.667a1.152,1.152,0,0,1-1.515,0l-24.24-24.242a1.153,1.153,0,0,1,0-1.515h0a5.268,5.268,0,0,1,7.2,0l16.854,16.856a1.152,1.152,0,0,0,1.515,0l9.469-9.47a5.267,5.267,0,0,1,7.2,0h0A1.217,1.217,0,0,1,1725.453,399.561Z" transform="translate(-1682.75 -366.512)"/>
20
+ <path id="Path_80" data-name="Path 80" class="cls-1" d="M1699.268,394.681l-4.166-4.167a3.207,3.207,0,0,1,0-4.356l.189-.189a2.882,2.882,0,0,1,4.356,0l8.522,8.523a1.152,1.152,0,0,1,0,1.515l-8.143,8.144a2.882,2.882,0,0,1-4.356,0h0a2.883,2.883,0,0,1,0-4.356l3.787-3.788A1.2,1.2,0,0,0,1699.268,394.681Z" transform="translate(-1672.472 -370.155)"/>
21
+ <path id="Path_81" data-name="Path 81" class="cls-1" d="M1697.284,390.9l-1.326-1.326a2.882,2.882,0,0,0-4.355,0h0a3.207,3.207,0,0,0,0,4.356h0a2.882,2.882,0,0,0,4.355,0l1.326-1.326A1.065,1.065,0,0,0,1697.284,390.9Z" transform="translate(-1675.6 -366.937)"/>
22
+ </g>
23
+ </g>
24
+ </svg>
images/subscribe/book.png ADDED
Binary file
images/subscribe/book_1024.png ADDED
Binary file
images/subscribe/book_768.png ADDED
Binary file
images/subscribe/square.svg ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="200.5" height="200.5" viewBox="0 0 200.5 200.5">
2
+ <g id="Group_62640" data-name="Group 62640" transform="translate(974.5 -2252.5)">
3
+ <line id="Line_77" data-name="Line 77" y2="200" transform="translate(-774.5 2252.5)" fill="none" stroke="#ddd" stroke-width="1"/>
4
+ <line id="Line_78" data-name="Line 78" x1="200" transform="translate(-974.5 2452.5)" fill="none" stroke="#ddd" stroke-width="1"/>
5
+ </g>
6
+ </svg>
images/subscribe/transparent_title.png ADDED
Binary file
images/tenweb/Photo-Gallery-logo.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="35.626" height="30" viewBox="0 0 35.626 30"><defs><style>.a{fill:#004274;}.b{fill:#006e9e;}</style></defs><path class="a" d="M34.609,8.727A14.805,14.805,0,0,0,12.791,6.818c-5.291,5.127-6.491,14.236.3,21.273l-1.527-.055H3.136A2.849,2.849,0,0,1,0,24.845V10.173A5.025,5.025,0,0,1,4.309,4.964c.518-.109.982-.109.955-.845-.027-.518.409-.464.764-.464H9.518c.627,0,1.309-.191,1.336.9.027.518,1.609.518,2.073-.082a23.415,23.415,0,0,0,1.827-2.7A3.338,3.338,0,0,1,17.891,0c3.3.027,6.845.027,10.227,0a2.959,2.959,0,0,1,3.027,1.718C32.073,3.955,34.8,8.918,34.609,8.727Z" transform="translate(0 0)"/><path class="b" d="M62.679,29.527v.218A12.7,12.7,0,0,1,37.288,29.5,12.692,12.692,0,0,1,61.37,23.991H53.379a4.656,4.656,0,0,0-3.273-1.118,6.7,6.7,0,1,0,.027,13.391,5.9,5.9,0,0,0,5.4-2.782H50.052V28.027H62.734c.027,0-.027.245,0,.491C62.761,28.927,62.679,29.118,62.679,29.527Z" transform="translate(-27.116 -12.291)"/></svg>
images/tenweb/optimize_banner_bg_1024.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="748" height="135" viewBox="0 0 748 135"><defs><style>.a{fill:#fff;}.b{clip-path:url(#a);}.c{clip-path:url(#b);}.d{fill:none;}.e{fill:#e4e4e4;}.f{fill:#d7dbd8;}.g,.i{fill:#edf0f5;}.h{fill:#f9f9f9;}.i{opacity:0.39;}.j{fill:url(#c);}.k{fill:url(#d);}</style><clipPath id="a"><rect class="a" width="748" height="135" rx="16" transform="translate(-679 -3282)"/></clipPath><clipPath id="b"><path class="a" d="M0,0H1626.629V137.535H0Z"/></clipPath><linearGradient id="c" x1="0.5" x2="0.5" y2="1.324" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fff" stop-opacity="0.478"/><stop offset="0.547" stop-color="#fff" stop-opacity="0.902"/><stop offset="0.7" stop-color="#fff" stop-opacity="0.906"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient id="d" x1="0.5" x2="0.5" y2="0.959" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fff" stop-opacity="0.478"/><stop offset="0.113" stop-color="#fff" stop-opacity="0.486"/><stop offset="0.602" stop-color="#fff" stop-opacity="0.902"/><stop offset="0.865" stop-color="#fff" stop-opacity="0.859"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><g class="b" transform="translate(679 3282)"><g class="c" transform="translate(-795.865 -3283)"><g transform="translate(-175.102 -356)"><g transform="translate(0)"><g transform="translate(0 80)"><g transform="translate(293.254 272.957) rotate(-47)"><g transform="translate(0 0)"><path class="d" d="M.292.291,33.9-.447l-.738,33.5-33.606.738Z"/><g transform="translate(2.541 0.302)"><g transform="translate(0 0)"><path class="e" d="M-.345,26.139a13.67,13.67,0,0,0,16.963,5.488,14.76,14.76,0,0,0,9.213-15.9A13.355,13.355,0,0,0,12.19,4.509l.1-4.671L5.825,6.04h0l6.193,6.288.1-4.671a10.385,10.385,0,0,1,10.6,8.719,11.477,11.477,0,0,1-7.144,12.362A10.633,10.633,0,0,1,2.383,24.506Z" transform="translate(2.501 -0.033)"/><path class="e" d="M-.075,5.71.05.016l1.837-.04A2.631,2.631,0,0,1,3.238.287a2.258,2.258,0,0,1,.916.946,2.83,2.83,0,0,1,.311,1.394l-.006.262A3.011,3.011,0,0,1,4.1,4.3a2.579,2.579,0,0,1-.958.987,2.742,2.742,0,0,1-1.348.384ZM1.4,1.051,1.325,4.657l.469-.01a1.121,1.121,0,0,0,.918-.44,2.116,2.116,0,0,0,.346-1.254L3.063,2.7a1.977,1.977,0,0,0-.291-1.236,1.041,1.041,0,0,0-.928-.4Z" transform="translate(6.733 16.52)"/><path class="e" d="M4.689,5.631l-1.368.03-1.946-3.5L1.3,5.705l-1.373.03L.05.041,1.427.011l1.941,3.5L3.447-.033l1.373-.03Z" transform="translate(11.915 16.381)"/><path class="e" d="M3.076,4.222A.534.534,0,0,0,2.87,3.76a2.519,2.519,0,0,0-.742-.329A6.889,6.889,0,0,1,1.26,3.1,1.566,1.566,0,0,1,.182,1.634,1.385,1.385,0,0,1,.477.791,1.9,1.9,0,0,1,1.272.214,3.13,3.13,0,0,1,2.434-.031a2.605,2.605,0,0,1,1.1.2,1.64,1.64,0,0,1,.759.6,1.568,1.568,0,0,1,.251.928l-1.406.031a.657.657,0,0,0-.2-.532.8.8,0,0,0-.572-.179.972.972,0,0,0-.585.176.492.492,0,0,0-.242.409.443.443,0,0,0,.225.4,2.833,2.833,0,0,0,.817.351,4.857,4.857,0,0,1,.961.385,1.541,1.541,0,0,1,.9,1.446,1.468,1.468,0,0,1-.588,1.185A2.6,2.6,0,0,1,2.3,5.826a3.007,3.007,0,0,1-1.25-.22,1.76,1.76,0,0,1-.833-.663,1.709,1.709,0,0,1-.264-.989l1.378-.03a.839.839,0,0,0,.224.667,1.087,1.087,0,0,0,.764.2.917.917,0,0,0,.542-.157A.491.491,0,0,0,3.076,4.222Z" transform="translate(17.376 16.216)"/><path class="e" d="M1.853-.024a1.739,1.739,0,0,1,1.8,1.791A1.934,1.934,0,0,1,1.772,3.638a1.739,1.739,0,0,1-1.8-1.791A1.934,1.934,0,0,1,1.853-.024Z" transform="translate(-0.106 13.45)"/><path class="e" d="M1.853-.024a1.739,1.739,0,0,1,1.8,1.791A1.934,1.934,0,0,1,1.772,3.638a1.739,1.739,0,0,1-1.8-1.791A1.934,1.934,0,0,1,1.853-.024Z" transform="translate(2.976 8.125)"/><path class="e" d="M1.853-.024a1.739,1.739,0,0,1,1.8,1.791A1.934,1.934,0,0,1,1.772,3.638a1.739,1.739,0,0,1-1.8-1.791A1.934,1.934,0,0,1,1.853-.024Z" transform="translate(-0.257 19.481)"/></g></g></g></g><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(198.066)"><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(51.151 320.51)"><path class="g" d="M128,146.7c-12.275,0-22.26-10.435-22.26-23.262s9.985-23.262,22.26-23.262,22.26,10.435,22.26,23.262S140.274,146.7,128,146.7Z" transform="translate(-105.739 -100.174)"/><path class="a" d="M162.024,200.716a9.616,9.616,0,0,0,3.641-7.587,9.078,9.078,0,1,0-18.138,0,9.616,9.616,0,0,0,3.641,7.587,22.157,22.157,0,0,0-11.859,7.914,21.641,21.641,0,0,0,34.574,0A22.157,22.157,0,0,0,162.024,200.716Z" transform="translate(-134.336 -170.729)"/></g><g transform="translate(379.257 14.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(208.939 158.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(62.808 103.748)"><path class="h" d="M4.261,0H29.853a4.36,4.36,0,0,1,4.261,4.453V28.144A4.36,4.36,0,0,1,29.853,32.6H4.261A4.36,4.36,0,0,1,0,28.144V4.453A4.36,4.36,0,0,1,4.261,0Z" transform="translate(12.007 11.382)"/><g transform="translate(14.842 19.415)"><path class="a" d="M85.16,103.749l-7.3-7.371a.8.8,0,0,0-1.124,0L72.958,100.2,66.664,93.84a.8.8,0,0,0-1.125,0l-9.809,9.909Zm0,0" transform="translate(-55.73 -85.344)"/><path class="a" d="M69.458,66.852A2.732,2.732,0,1,1,66.729,64,2.793,2.793,0,0,1,69.458,66.852Zm0,0" transform="translate(-46.325 -64)"/></g><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(45.802 21.368) rotate(-135)"/><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(12.159 33.113) rotate(45)"/></g><g transform="translate(138.975 215.384)"><path class="h" d="M2.91,0H20.388A2.978,2.978,0,0,1,23.3,3.041v16.18a2.978,2.978,0,0,1-2.91,3.041H2.91A2.978,2.978,0,0,1,0,19.221V3.041A2.978,2.978,0,0,1,2.91,0Z" transform="translate(8.201 7.773)"/><g transform="translate(10.137 13.26)"><path class="a" d="M75.829,100.534,70.846,95.5a.544.544,0,0,0-.768,0L67.5,98.109l-4.3-4.342a.547.547,0,0,0-.768,0l-6.7,6.768Zm0,0" transform="translate(-55.73 -87.965)"/><path class="a" d="M67.728,65.948A1.866,1.866,0,1,1,65.864,64,1.907,1.907,0,0,1,67.728,65.948Zm0,0" transform="translate(-51.929 -64)"/></g><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(31.281 14.593) rotate(-135)"/><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(8.304 22.615) rotate(45)"/></g><g transform="matrix(0.819, 0.574, -0.574, 0.819, 353.811, 335.256)"><path class="h" d="M2.928.037l17.738.37a3.129,3.129,0,0,1,3.015,3.06l.328,15.95a2.831,2.831,0,0,1-2.891,2.936L3.38,21.983a3.129,3.129,0,0,1-3.015-3.06L.037,2.973A2.831,2.831,0,0,1,2.928.037Z" transform="translate(8.201 7.62)"/><g transform="translate(10.358 13.165)"><path class="a" d="M20.485,7.5,15.321,2.208a.547.547,0,0,0-.779-.016L11.976,4.824,7.522.26a.549.549,0,0,0-.78-.016L.088,7.074Zm0,0" transform="translate(0.068 5.505)"/><path class="a" d="M3.807,1.983A1.813,1.813,0,0,1,1.955,3.864,2,2,0,0,1,.024,1.9,1.813,1.813,0,0,1,1.876.024,2,2,0,0,1,3.807,1.983Zm0,0" transform="translate(12.161 0.152)"/></g><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(31.739 14.842) rotate(-135)"/><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(8.582 22.194) rotate(45)"/></g><g transform="matrix(0.788, 0.616, -0.616, 0.788, 185.808, 288.981)"><path class="h" d="M2.934.038,20.711.42a3.134,3.134,0,0,1,3.023,3.055l.339,15.915a2.826,2.826,0,0,1-2.9,2.928L3.4,21.936A3.134,3.134,0,0,1,.377,18.881L.038,2.966A2.826,2.826,0,0,1,2.934.038Z" transform="translate(8.21 7.608)"/><g transform="translate(10.378 13.145)"><path class="a" d="M20.533,7.5,15.354,2.212a.55.55,0,0,0-.781-.017L12,4.82,7.537.263A.552.552,0,0,0,6.756.246L.09,7.056Zm0,0" transform="translate(0.07 5.491)"/><path class="a" d="M3.816,1.981A1.81,1.81,0,0,1,1.961,3.856,2.008,2.008,0,0,1,.024,1.9,1.81,1.81,0,0,1,1.879.024,2.008,2.008,0,0,1,3.816,1.981Zm0,0" transform="translate(12.185 0.157)"/></g><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(31.803 14.836) rotate(-135)"/><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(8.599 22.143) rotate(45)"/></g><g transform="translate(66.472 223.902) rotate(77)"><path class="h" d="M3.023.017,21.25.19a3.048,3.048,0,0,1,3.063,2.945l.153,15.517A2.909,2.909,0,0,1,21.46,21.54L3.233,21.367A3.048,3.048,0,0,1,.17,18.422L.017,2.905A2.909,2.909,0,0,1,3.023.017Z" transform="translate(8.375 7.553)"/><g transform="translate(10.484 12.877)"><path class="a" d="M21,7.112,15.754,2.018a.584.584,0,0,0-.8-.008L12.286,4.6,7.761.2A.587.587,0,0,0,6.96.2L.041,6.913Zm0,0" transform="translate(0.032 5.386)"/><path class="a" d="M3.9,1.9a1.863,1.863,0,0,1-1.925,1.85A1.952,1.952,0,0,1,.011,1.861,1.863,1.863,0,0,1,1.936.011,1.952,1.952,0,0,1,3.9,1.9Zm0,0" transform="translate(12.546 0.072)"/></g><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(32.498 14.41) rotate(-135)"/><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(8.61 21.677) rotate(45)"/></g><g transform="translate(33.291 20.44)"><path class="a" d="M20.292,0A20.292,20.292,0,1,1,0,20.292,20.292,20.292,0,0,1,20.292,0Z"/><path class="g" d="M39.711,175.008a4.439,4.439,0,1,1-8.878,0H17.519a20.279,20.279,0,0,0,7.839,11.414H45.187a20.288,20.288,0,0,0,7.84-11.414Z" transform="translate(-14.98 -149.645)"/><path class="g" d="M45.022,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,45.022,63.919Zm2.536-6.341a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,47.559,57.578Zm5.073-5.073A1.268,1.268,0,1,0,53.9,53.773,1.269,1.269,0,0,0,52.632,52.505ZM70.387,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,70.387,63.919ZM67.85,57.578a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,67.85,57.578Zm-5.073-5.073a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,62.777,52.505Z" transform="translate(-37.413 -44.896)"/><path class="g" d="M125.049,57.505c1.4,0,2.537,13.279,2.537,14.681a2.537,2.537,0,0,1-5.073,0C122.512,70.784,123.648,57.505,125.049,57.505Z" transform="translate(-104.757 -46.821)"/><path class="g" d="M20.292,0A20.292,20.292,0,1,0,40.583,20.292,20.292,20.292,0,0,0,20.292,0Zm0,36.778A16.487,16.487,0,1,1,36.779,20.292,16.506,16.506,0,0,1,20.292,36.778Z"/></g><g transform="translate(222.769 43.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(344.288 215.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(234.668 347.147) rotate(-49)"><path class="a" d="M24.863-.324A23.318,23.318,0,0,1,48.977,23.638,25.912,25.912,0,0,1,23.79,48.673,23.319,23.319,0,0,1-.324,24.711,25.913,25.913,0,0,1,24.863-.324Z" transform="translate(0 0)"/><path class="g" d="M26.953-.212a5.675,5.675,0,0,1-5.51,5.478A5.106,5.106,0,0,1,16.169.024v0L0,.375A23.083,23.083,0,0,0,9.216,13.948L33.3,13.424A25.978,25.978,0,0,0,43.13-.564Z" transform="translate(2.632 30.392)"/><path class="g" d="M1.371,13.946A1.62,1.62,0,0,0-.2,15.511a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,1.371,13.946ZM4.62,6.223A1.62,1.62,0,0,0,3.045,7.788a1.458,1.458,0,0,0,1.507,1.5A1.619,1.619,0,0,0,6.127,7.721,1.457,1.457,0,0,0,4.62,6.223Zm6.3-6.259A1.62,1.62,0,0,0,9.342,1.529a1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,10.916-.036ZM32.183,13.275a1.62,1.62,0,0,0-1.574,1.565,1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,32.183,13.275ZM29.27,5.687A1.62,1.62,0,0,0,27.7,7.251a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,29.27,5.687ZM23.241-.3a1.62,1.62,0,0,0-1.574,1.565,1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,23.241-.3Z" transform="translate(7.583 9.032)"/><path class="g" d="M3.237-.042c1.7-.037,2.73,15.965,2.693,17.657a3.24,3.24,0,0,1-3.148,3.129,2.916,2.916,0,0,1-3.014-3C-.2,16.057,1.536-.005,3.237-.042Z" transform="translate(21.344 12.617)"/><path class="g" d="M24.863-.324A25.913,25.913,0,0,0-.324,24.711,23.319,23.319,0,0,0,23.79,48.673,25.912,25.912,0,0,0,48.977,23.638,23.318,23.318,0,0,0,24.863-.324Zm-.973,44.4A18.967,18.967,0,0,1,4.3,24.61,21.078,21.078,0,0,1,24.763,4.269,18.967,18.967,0,0,1,44.355,23.738,21.078,21.078,0,0,1,23.89,44.079Z" transform="translate(0 0)"/></g></g><g transform="translate(1613.233 80)"><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(198.066)"><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(51.151 320.51)"><path class="g" d="M128,146.7c-12.275,0-22.26-10.435-22.26-23.262s9.985-23.262,22.26-23.262,22.26,10.435,22.26,23.262S140.274,146.7,128,146.7Z" transform="translate(-105.739 -100.174)"/><path class="a" d="M162.024,200.716a9.616,9.616,0,0,0,3.641-7.587,9.078,9.078,0,1,0-18.138,0,9.616,9.616,0,0,0,3.641,7.587,22.157,22.157,0,0,0-11.859,7.914,21.641,21.641,0,0,0,34.574,0A22.157,22.157,0,0,0,162.024,200.716Z" transform="translate(-134.336 -170.729)"/></g><g transform="translate(379.257 14.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(208.939 158.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(62.808 103.748)"><path class="h" d="M4.261,0H29.853a4.36,4.36,0,0,1,4.261,4.453V28.144A4.36,4.36,0,0,1,29.853,32.6H4.261A4.36,4.36,0,0,1,0,28.144V4.453A4.36,4.36,0,0,1,4.261,0Z" transform="translate(12.007 11.382)"/><g transform="translate(14.842 19.415)"><path class="a" d="M85.16,103.749l-7.3-7.371a.8.8,0,0,0-1.124,0L72.958,100.2,66.664,93.84a.8.8,0,0,0-1.125,0l-9.809,9.909Zm0,0" transform="translate(-55.73 -85.344)"/><path class="a" d="M69.458,66.852A2.732,2.732,0,1,1,66.729,64,2.793,2.793,0,0,1,69.458,66.852Zm0,0" transform="translate(-46.325 -64)"/></g><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(45.802 21.368) rotate(-135)"/><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(12.159 33.113) rotate(45)"/></g><g transform="translate(138.975 215.384)"><path class="h" d="M2.91,0H20.388A2.978,2.978,0,0,1,23.3,3.041v16.18a2.978,2.978,0,0,1-2.91,3.041H2.91A2.978,2.978,0,0,1,0,19.221V3.041A2.978,2.978,0,0,1,2.91,0Z" transform="translate(8.201 7.773)"/><g transform="translate(10.137 13.26)"><path class="a" d="M75.829,100.534,70.846,95.5a.544.544,0,0,0-.768,0L67.5,98.109l-4.3-4.342a.547.547,0,0,0-.768,0l-6.7,6.768Zm0,0" transform="translate(-55.73 -87.965)"/><path class="a" d="M67.728,65.948A1.866,1.866,0,1,1,65.864,64,1.907,1.907,0,0,1,67.728,65.948Zm0,0" transform="translate(-51.929 -64)"/></g><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(31.281 14.593) rotate(-135)"/><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(8.304 22.615) rotate(45)"/></g><g transform="matrix(0.819, 0.574, -0.574, 0.819, 353.811, 335.256)"><path class="h" d="M2.928.037l17.738.37a3.129,3.129,0,0,1,3.015,3.06l.328,15.95a2.831,2.831,0,0,1-2.891,2.936L3.38,21.983a3.129,3.129,0,0,1-3.015-3.06L.037,2.973A2.831,2.831,0,0,1,2.928.037Z" transform="translate(8.201 7.62)"/><g transform="translate(10.358 13.165)"><path class="a" d="M20.485,7.5,15.321,2.208a.547.547,0,0,0-.779-.016L11.976,4.824,7.522.26a.549.549,0,0,0-.78-.016L.088,7.074Zm0,0" transform="translate(0.068 5.505)"/><path class="a" d="M3.807,1.983A1.813,1.813,0,0,1,1.955,3.864,2,2,0,0,1,.024,1.9,1.813,1.813,0,0,1,1.876.024,2,2,0,0,1,3.807,1.983Zm0,0" transform="translate(12.161 0.152)"/></g><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(31.739 14.842) rotate(-135)"/><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(8.582 22.194) rotate(45)"/></g><g transform="matrix(0.819, 0.574, -0.574, 0.819, 323.192, 244.256)"><path class="h" d="M2.928.037l17.738.37a3.129,3.129,0,0,1,3.015,3.06l.328,15.95a2.831,2.831,0,0,1-2.891,2.936L3.38,21.983a3.129,3.129,0,0,1-3.015-3.06L.037,2.973A2.831,2.831,0,0,1,2.928.037Z" transform="translate(8.201 7.62)"/><g transform="translate(10.358 13.165)"><path class="a" d="M20.485,7.5,15.321,2.208a.547.547,0,0,0-.779-.016L11.976,4.824,7.522.26a.549.549,0,0,0-.78-.016L.088,7.074Zm0,0" transform="translate(0.068 5.505)"/><path class="a" d="M3.807,1.983A1.813,1.813,0,0,1,1.955,3.864,2,2,0,0,1,.024,1.9,1.813,1.813,0,0,1,1.876.024,2,2,0,0,1,3.807,1.983Zm0,0" transform="translate(12.161 0.152)"/></g><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(31.739 14.842) rotate(-135)"/><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(8.582 22.194) rotate(45)"/></g><g transform="matrix(0.788, 0.616, -0.616, 0.788, 185.808, 288.981)"><path class="h" d="M2.934.038,20.711.42a3.134,3.134,0,0,1,3.023,3.055l.339,15.915a2.826,2.826,0,0,1-2.9,2.928L3.4,21.936A3.134,3.134,0,0,1,.377,18.881L.038,2.966A2.826,2.826,0,0,1,2.934.038Z" transform="translate(8.21 7.608)"/><g transform="translate(10.378 13.145)"><path class="a" d="M20.533,7.5,15.354,2.212a.55.55,0,0,0-.781-.017L12,4.82,7.537.263A.552.552,0,0,0,6.756.246L.09,7.056Zm0,0" transform="translate(0.07 5.491)"/><path class="a" d="M3.816,1.981A1.81,1.81,0,0,1,1.961,3.856,2.008,2.008,0,0,1,.024,1.9,1.81,1.81,0,0,1,1.879.024,2.008,2.008,0,0,1,3.816,1.981Zm0,0" transform="translate(12.185 0.157)"/></g><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(31.803 14.836) rotate(-135)"/><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(8.599 22.143) rotate(45)"/></g><g transform="translate(66.472 223.902) rotate(77)"><path class="h" d="M3.023.017,21.25.19a3.048,3.048,0,0,1,3.063,2.945l.153,15.517A2.909,2.909,0,0,1,21.46,21.54L3.233,21.367A3.048,3.048,0,0,1,.17,18.422L.017,2.905A2.909,2.909,0,0,1,3.023.017Z" transform="translate(8.375 7.553)"/><g transform="translate(10.484 12.877)"><path class="a" d="M21,7.112,15.754,2.018a.584.584,0,0,0-.8-.008L12.286,4.6,7.761.2A.587.587,0,0,0,6.96.2L.041,6.913Zm0,0" transform="translate(0.032 5.386)"/><path class="a" d="M3.9,1.9a1.863,1.863,0,0,1-1.925,1.85A1.952,1.952,0,0,1,.011,1.861,1.863,1.863,0,0,1,1.936.011,1.952,1.952,0,0,1,3.9,1.9Zm0,0" transform="translate(12.546 0.072)"/></g><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(32.498 14.41) rotate(-135)"/><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(8.61 21.677) rotate(45)"/></g><g transform="translate(33.291 20.44)"><path class="a" d="M20.292,0A20.292,20.292,0,1,1,0,20.292,20.292,20.292,0,0,1,20.292,0Z"/><path class="g" d="M39.711,175.008a4.439,4.439,0,1,1-8.878,0H17.519a20.279,20.279,0,0,0,7.839,11.414H45.187a20.288,20.288,0,0,0,7.84-11.414Z" transform="translate(-14.98 -149.645)"/><path class="g" d="M45.022,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,45.022,63.919Zm2.536-6.341a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,47.559,57.578Zm5.073-5.073A1.268,1.268,0,1,0,53.9,53.773,1.269,1.269,0,0,0,52.632,52.505ZM70.387,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,70.387,63.919ZM67.85,57.578a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,67.85,57.578Zm-5.073-5.073a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,62.777,52.505Z" transform="translate(-37.413 -44.896)"/><path class="g" d="M125.049,57.505c1.4,0,2.537,13.279,2.537,14.681a2.537,2.537,0,0,1-5.073,0C122.512,70.784,123.648,57.505,125.049,57.505Z" transform="translate(-104.757 -46.821)"/><path class="g" d="M20.292,0A20.292,20.292,0,1,0,40.583,20.292,20.292,20.292,0,0,0,20.292,0Zm0,36.778A16.487,16.487,0,1,1,36.779,20.292,16.506,16.506,0,0,1,20.292,36.778Z"/></g><g transform="translate(222.769 43.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(344.288 215.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(289.748 122.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(234.668 347.147) rotate(-49)"><path class="a" d="M24.863-.324A23.318,23.318,0,0,1,48.977,23.638,25.912,25.912,0,0,1,23.79,48.673,23.319,23.319,0,0,1-.324,24.711,25.913,25.913,0,0,1,24.863-.324Z" transform="translate(0 0)"/><path class="g" d="M26.953-.212a5.675,5.675,0,0,1-5.51,5.478A5.106,5.106,0,0,1,16.169.024v0L0,.375A23.083,23.083,0,0,0,9.216,13.948L33.3,13.424A25.978,25.978,0,0,0,43.13-.564Z" transform="translate(2.632 30.392)"/><path class="g" d="M1.371,13.946A1.62,1.62,0,0,0-.2,15.511a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,1.371,13.946ZM4.62,6.223A1.62,1.62,0,0,0,3.045,7.788a1.458,1.458,0,0,0,1.507,1.5A1.619,1.619,0,0,0,6.127,7.721,1.457,1.457,0,0,0,4.62,6.223Zm6.3-6.259A1.62,1.62,0,0,0,9.342,1.529a1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,10.916-.036ZM32.183,13.275a1.62,1.62,0,0,0-1.574,1.565,1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,32.183,13.275ZM29.27,5.687A1.62,1.62,0,0,0,27.7,7.251a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,29.27,5.687ZM23.241-.3a1.62,1.62,0,0,0-1.574,1.565,1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,23.241-.3Z" transform="translate(7.583 9.032)"/><path class="g" d="M3.237-.042c1.7-.037,2.73,15.965,2.693,17.657a3.24,3.24,0,0,1-3.148,3.129,2.916,2.916,0,0,1-3.014-3C-.2,16.057,1.536-.005,3.237-.042Z" transform="translate(21.344 12.617)"/><path class="g" d="M24.863-.324A25.913,25.913,0,0,0-.324,24.711,23.319,23.319,0,0,0,23.79,48.673,25.912,25.912,0,0,0,48.977,23.638,23.318,23.318,0,0,0,24.863-.324Zm-.973,44.4A18.967,18.967,0,0,1,4.3,24.61,21.078,21.078,0,0,1,24.763,4.269,18.967,18.967,0,0,1,44.355,23.738,21.078,21.078,0,0,1,23.89,44.079Z" transform="translate(0 0)"/></g></g><g transform="translate(364.556 525)"><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(198.066)"><g transform="translate(0)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(57.011)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(134.52 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(112.513 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(41.469 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(62.948 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(56.033 197.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(28.934 285.528) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(27.408 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(102.042 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(73.198 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(9.068 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(212.019)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(289.528 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(267.521 304.582) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(196.477 369.926) rotate(155)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(217.956 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(193.818 144.787) rotate(90)"/><path class="f" d="M3.475-.035A3.363,3.363,0,0,1,6.867,3.457a3.649,3.649,0,0,1-3.51,3.61A3.363,3.363,0,0,1-.036,3.575,3.649,3.649,0,0,1,3.475-.035Z" transform="translate(183.942 285.528) rotate(155)"/><path class="f" d="M2.018-.021a1.953,1.953,0,0,1,1.97,2.029,2.119,2.119,0,0,1-2.039,2.1A1.953,1.953,0,0,1-.021,2.077,2.119,2.119,0,0,1,2.018-.021Z" transform="translate(147.582 329.072) rotate(155)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(182.416 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(257.05 169.111)"/><path class="g" d="M4.669.047A4.831,4.831,0,0,1,9.448,4.7,4.452,4.452,0,0,1,4.826,9.188,4.831,4.831,0,0,1,.047,4.539,4.452,4.452,0,0,1,4.669.047Z" transform="translate(228.207 273.018) rotate(65)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(164.076 89.644) rotate(90)"/></g><g transform="translate(51.151 320.51)"><path class="g" d="M128,146.7c-12.275,0-22.26-10.435-22.26-23.262s9.985-23.262,22.26-23.262,22.26,10.435,22.26,23.262S140.274,146.7,128,146.7Z" transform="translate(-105.739 -100.174)"/><path class="a" d="M162.024,200.716a9.616,9.616,0,0,0,3.641-7.587,9.078,9.078,0,1,0-18.138,0,9.616,9.616,0,0,0,3.641,7.587,22.157,22.157,0,0,0-11.859,7.914,21.641,21.641,0,0,0,34.574,0A22.157,22.157,0,0,0,162.024,200.716Z" transform="translate(-134.336 -170.729)"/></g><g transform="translate(379.257 14.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(208.939 158.011) rotate(50)"><path class="g" d="M13.649,26.354A13.869,13.869,0,0,1,.17,12.977,12.488,12.488,0,0,1,13.078.171,13.869,13.869,0,0,1,26.557,13.548,12.488,12.488,0,0,1,13.649,26.354Z" transform="translate(0 0)"/><path class="a" d="M13.548,9.8a5.064,5.064,0,0,0,2.065-4.223A5.651,5.651,0,0,0,10.122.132,5.088,5.088,0,0,0,4.863,5.349,5.584,5.584,0,0,0,7.114,9.666a12.466,12.466,0,0,0-6.932,4.3,13.859,13.859,0,0,0,10.352,5.074,12.606,12.606,0,0,0,10.14-4.631A13.967,13.967,0,0,0,13.548,9.8Z" transform="translate(3.115 7.312)"/></g><g transform="translate(62.808 103.748)"><path class="h" d="M4.261,0H29.853a4.36,4.36,0,0,1,4.261,4.453V28.144A4.36,4.36,0,0,1,29.853,32.6H4.261A4.36,4.36,0,0,1,0,28.144V4.453A4.36,4.36,0,0,1,4.261,0Z" transform="translate(12.007 11.382)"/><g transform="translate(14.842 19.415)"><path class="a" d="M85.16,103.749l-7.3-7.371a.8.8,0,0,0-1.124,0L72.958,100.2,66.664,93.84a.8.8,0,0,0-1.125,0l-9.809,9.909Zm0,0" transform="translate(-55.73 -85.344)"/><path class="a" d="M69.458,66.852A2.732,2.732,0,1,1,66.729,64,2.793,2.793,0,0,1,69.458,66.852Zm0,0" transform="translate(-46.325 -64)"/></g><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(45.802 21.368) rotate(-135)"/><path class="g" d="M6.507,17.509h0A1.67,1.67,0,0,1,4.889,15.89L4.582,5.76,2.87,7.472A1.637,1.637,0,0,1,.577,7.421h0A1.637,1.637,0,0,1,.527,5.129L5.092.563A1.375,1.375,0,0,1,6.248.089,1.584,1.584,0,0,1,7.426.615l4.558,4.558a1.637,1.637,0,0,1,.051,2.293l-.041.041A1.637,1.637,0,0,1,9.7,7.456L8,5.752l.017,10.207A1.424,1.424,0,0,1,6.507,17.509Z" transform="translate(12.159 33.113) rotate(45)"/></g><g transform="translate(138.975 215.384)"><path class="h" d="M2.91,0H20.388A2.978,2.978,0,0,1,23.3,3.041v16.18a2.978,2.978,0,0,1-2.91,3.041H2.91A2.978,2.978,0,0,1,0,19.221V3.041A2.978,2.978,0,0,1,2.91,0Z" transform="translate(8.201 7.773)"/><g transform="translate(10.137 13.26)"><path class="a" d="M75.829,100.534,70.846,95.5a.544.544,0,0,0-.768,0L67.5,98.109l-4.3-4.342a.547.547,0,0,0-.768,0l-6.7,6.768Zm0,0" transform="translate(-55.73 -87.965)"/><path class="a" d="M67.728,65.948A1.866,1.866,0,1,1,65.864,64,1.907,1.907,0,0,1,67.728,65.948Zm0,0" transform="translate(-51.929 -64)"/></g><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(31.281 14.593) rotate(-135)"/><path class="g" d="M4.444,11.958h0a1.141,1.141,0,0,1-1.106-1.106l-.21-6.919L1.96,5.1A1.118,1.118,0,0,1,.394,5.068h0A1.118,1.118,0,0,1,.36,3.5L3.478.385a.939.939,0,0,1,.79-.324,1.082,1.082,0,0,1,.8.359L8.185,3.533A1.118,1.118,0,0,1,8.22,5.1l-.028.028a1.118,1.118,0,0,1-1.566-.035L5.462,3.928,5.474,10.9A.973.973,0,0,1,4.444,11.958Z" transform="translate(8.304 22.615) rotate(45)"/></g><g transform="matrix(0.819, 0.574, -0.574, 0.819, 353.811, 335.256)"><path class="h" d="M2.928.037l17.738.37a3.129,3.129,0,0,1,3.015,3.06l.328,15.95a2.831,2.831,0,0,1-2.891,2.936L3.38,21.983a3.129,3.129,0,0,1-3.015-3.06L.037,2.973A2.831,2.831,0,0,1,2.928.037Z" transform="translate(8.201 7.62)"/><g transform="translate(10.358 13.165)"><path class="a" d="M20.485,7.5,15.321,2.208a.547.547,0,0,0-.779-.016L11.976,4.824,7.522.26a.549.549,0,0,0-.78-.016L.088,7.074Zm0,0" transform="translate(0.068 5.505)"/><path class="a" d="M3.807,1.983A1.813,1.813,0,0,1,1.955,3.864,2,2,0,0,1,.024,1.9,1.813,1.813,0,0,1,1.876.024,2,2,0,0,1,3.807,1.983Zm0,0" transform="translate(12.161 0.152)"/></g><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(31.739 14.842) rotate(-135)"/><path class="g" d="M4.384,11.675h0a1.1,1.1,0,0,1-1.112-1.068l-.11-6.775L1.95,5a1.175,1.175,0,0,1-1.6-.012h0A1.062,1.062,0,0,1,.34,3.45l3.23-3.1A1.007,1.007,0,0,1,4.382.023,1.093,1.093,0,0,1,5.2.364L8.33,3.37A1.062,1.062,0,0,1,8.342,4.9l-.029.028a1.175,1.175,0,0,1-1.6-.012L5.544,3.8l-.093,6.829A1.006,1.006,0,0,1,4.384,11.675Z" transform="translate(8.582 22.194) rotate(45)"/></g><g transform="matrix(0.788, 0.616, -0.616, 0.788, 185.808, 288.981)"><path class="h" d="M2.934.038,20.711.42a3.134,3.134,0,0,1,3.023,3.055l.339,15.915a2.826,2.826,0,0,1-2.9,2.928L3.4,21.936A3.134,3.134,0,0,1,.377,18.881L.038,2.966A2.826,2.826,0,0,1,2.934.038Z" transform="translate(8.21 7.608)"/><g transform="translate(10.378 13.145)"><path class="a" d="M20.533,7.5,15.354,2.212a.55.55,0,0,0-.781-.017L12,4.82,7.537.263A.552.552,0,0,0,6.756.246L.09,7.056Zm0,0" transform="translate(0.07 5.491)"/><path class="a" d="M3.816,1.981A1.81,1.81,0,0,1,1.961,3.856,2.008,2.008,0,0,1,.024,1.9,1.81,1.81,0,0,1,1.879.024,2.008,2.008,0,0,1,3.816,1.981Zm0,0" transform="translate(12.185 0.157)"/></g><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(31.803 14.836) rotate(-135)"/><path class="g" d="M4.365,11.662h0A1.1,1.1,0,0,1,3.254,10.6l-.1-6.77L1.944,4.991a1.177,1.177,0,0,1-1.6-.008h0A1.061,1.061,0,0,1,.337,3.451l3.24-3.1a1.013,1.013,0,0,1,.812-.33A1.09,1.09,0,0,1,5.2.356l3.127,3A1.061,1.061,0,0,1,8.34,4.885l-.029.028a1.177,1.177,0,0,1-1.6-.008L5.543,3.784l-.108,6.824A1.011,1.011,0,0,1,4.365,11.662Z" transform="translate(8.599 22.143) rotate(45)"/></g><g transform="translate(66.472 223.902) rotate(77)"><path class="h" d="M3.023.017,21.25.19a3.048,3.048,0,0,1,3.063,2.945l.153,15.517A2.909,2.909,0,0,1,21.46,21.54L3.233,21.367A3.048,3.048,0,0,1,.17,18.422L.017,2.905A2.909,2.909,0,0,1,3.023.017Z" transform="translate(8.375 7.553)"/><g transform="translate(10.484 12.877)"><path class="a" d="M21,7.112,15.754,2.018a.584.584,0,0,0-.8-.008L12.286,4.6,7.761.2A.587.587,0,0,0,6.96.2L.041,6.913Zm0,0" transform="translate(0.032 5.386)"/><path class="a" d="M3.9,1.9a1.863,1.863,0,0,1-1.925,1.85A1.952,1.952,0,0,1,.011,1.861,1.863,1.863,0,0,1,1.936.011,1.952,1.952,0,0,1,3.9,1.9Zm0,0" transform="translate(12.546 0.072)"/></g><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(32.498 14.41) rotate(-135)"/><path class="g" d="M4.059,11.737h0a1.031,1.031,0,0,1-1.071-1.05l.08-6.85L1.837,5.045a1.144,1.144,0,0,1-1.581.031h0A1.092,1.092,0,0,1,.287,3.526L3.57.305a1.041,1.041,0,0,1,.812-.354,1.012,1.012,0,0,1,.8.322L8.194,3.23A1.092,1.092,0,0,1,8.163,4.78l-.029.029a1.144,1.144,0,0,1-1.581.031L5.426,3.735l-.282,6.91A1.073,1.073,0,0,1,4.059,11.737Z" transform="translate(8.61 21.677) rotate(45)"/></g><g transform="translate(33.291 20.44)"><path class="a" d="M20.292,0A20.292,20.292,0,1,1,0,20.292,20.292,20.292,0,0,1,20.292,0Z"/><path class="g" d="M39.711,175.008a4.439,4.439,0,1,1-8.878,0H17.519a20.279,20.279,0,0,0,7.839,11.414H45.187a20.288,20.288,0,0,0,7.84-11.414Z" transform="translate(-14.98 -149.645)"/><path class="g" d="M45.022,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,45.022,63.919Zm2.536-6.341a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,47.559,57.578Zm5.073-5.073A1.268,1.268,0,1,0,53.9,53.773,1.269,1.269,0,0,0,52.632,52.505ZM70.387,63.919a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,70.387,63.919ZM67.85,57.578a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,67.85,57.578Zm-5.073-5.073a1.268,1.268,0,1,0,1.268,1.268A1.269,1.269,0,0,0,62.777,52.505Z" transform="translate(-37.413 -44.896)"/><path class="g" d="M125.049,57.505c1.4,0,2.537,13.279,2.537,14.681a2.537,2.537,0,0,1-5.073,0C122.512,70.784,123.648,57.505,125.049,57.505Z" transform="translate(-104.757 -46.821)"/><path class="g" d="M20.292,0A20.292,20.292,0,1,0,40.583,20.292,20.292,20.292,0,0,0,20.292,0Zm0,36.778A16.487,16.487,0,1,1,36.779,20.292,16.506,16.506,0,0,1,20.292,36.778Z"/></g><g transform="translate(222.769 43.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(344.288 215.757) rotate(-49)"><path class="a" d="M20.993-.274a19.689,19.689,0,0,1,20.36,20.232A21.878,21.878,0,0,1,20.087,41.1,19.689,19.689,0,0,1-.273,20.865,21.879,21.879,0,0,1,20.993-.274Z" transform="translate(0 0)"/><path class="g" d="M22.758-.179a4.792,4.792,0,0,1-4.652,4.625A4.311,4.311,0,0,1,13.652.02h0L0,.317A19.491,19.491,0,0,0,7.781,11.777l20.338-.443a21.935,21.935,0,0,0,8.3-11.811Z" transform="translate(2.222 25.661)"/><path class="g" d="M1.157,11.775A1.368,1.368,0,0,0-.172,13.1,1.231,1.231,0,0,0,1.1,14.361,1.367,1.367,0,0,0,2.43,13.04,1.23,1.23,0,0,0,1.157,11.775ZM3.9,5.255A1.368,1.368,0,0,0,2.571,6.576,1.231,1.231,0,0,0,3.844,7.84,1.367,1.367,0,0,0,5.173,6.519,1.23,1.23,0,0,0,3.9,5.255ZM9.217-.03A1.368,1.368,0,0,0,7.888,1.291,1.23,1.23,0,0,0,9.16,2.556,1.366,1.366,0,0,0,10.49,1.234,1.23,1.23,0,0,0,9.217-.03ZM27.173,11.209a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,27.173,11.209ZM24.714,4.8a1.368,1.368,0,0,0-1.329,1.321,1.231,1.231,0,0,0,1.273,1.265,1.367,1.367,0,0,0,1.329-1.321A1.23,1.23,0,0,0,24.714,4.8ZM19.624-.257a1.368,1.368,0,0,0-1.329,1.321,1.23,1.23,0,0,0,1.273,1.265A1.366,1.366,0,0,0,20.9,1.008,1.23,1.23,0,0,0,19.624-.257Z" transform="translate(6.403 7.626)"/><path class="g" d="M2.733-.036c1.436-.031,2.305,13.48,2.274,14.909a2.736,2.736,0,0,1-2.658,2.642A2.462,2.462,0,0,1-.2,14.986C-.165,13.558,1.3,0,2.733-.036Z" transform="translate(18.022 10.653)"/><path class="g" d="M20.993-.274A21.879,21.879,0,0,0-.273,20.865,19.689,19.689,0,0,0,20.087,41.1,21.878,21.878,0,0,0,41.353,19.958,19.689,19.689,0,0,0,20.993-.274Zm-.821,37.492A16.015,16.015,0,0,1,3.629,20.78,17.8,17.8,0,0,1,20.908,3.6,16.015,16.015,0,0,1,37.45,20.043,17.8,17.8,0,0,1,20.172,37.218Z" transform="translate(0 0)"/></g><g transform="translate(234.668 347.147) rotate(-49)"><path class="a" d="M24.863-.324A23.318,23.318,0,0,1,48.977,23.638,25.912,25.912,0,0,1,23.79,48.673,23.319,23.319,0,0,1-.324,24.711,25.913,25.913,0,0,1,24.863-.324Z" transform="translate(0 0)"/><path class="g" d="M26.953-.212a5.675,5.675,0,0,1-5.51,5.478A5.106,5.106,0,0,1,16.169.024v0L0,.375A23.083,23.083,0,0,0,9.216,13.948L33.3,13.424A25.978,25.978,0,0,0,43.13-.564Z" transform="translate(2.632 30.392)"/><path class="g" d="M1.371,13.946A1.62,1.62,0,0,0-.2,15.511a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,1.371,13.946ZM4.62,6.223A1.62,1.62,0,0,0,3.045,7.788a1.458,1.458,0,0,0,1.507,1.5A1.619,1.619,0,0,0,6.127,7.721,1.457,1.457,0,0,0,4.62,6.223Zm6.3-6.259A1.62,1.62,0,0,0,9.342,1.529a1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,10.916-.036ZM32.183,13.275a1.62,1.62,0,0,0-1.574,1.565,1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,32.183,13.275ZM29.27,5.687A1.62,1.62,0,0,0,27.7,7.251a1.458,1.458,0,0,0,1.507,1.5,1.619,1.619,0,0,0,1.574-1.565A1.457,1.457,0,0,0,29.27,5.687ZM23.241-.3a1.62,1.62,0,0,0-1.574,1.565,1.457,1.457,0,0,0,1.507,1.5,1.618,1.618,0,0,0,1.574-1.565A1.457,1.457,0,0,0,23.241-.3Z" transform="translate(7.583 9.032)"/><path class="g" d="M3.237-.042c1.7-.037,2.73,15.965,2.693,17.657a3.24,3.24,0,0,1-3.148,3.129,2.916,2.916,0,0,1-3.014-3C-.2,16.057,1.536-.005,3.237-.042Z" transform="translate(21.344 12.617)"/><path class="g" d="M24.863-.324A25.913,25.913,0,0,0-.324,24.711,23.319,23.319,0,0,0,23.79,48.673,25.912,25.912,0,0,0,48.977,23.638,23.318,23.318,0,0,0,24.863-.324Zm-.973,44.4A18.967,18.967,0,0,1,4.3,24.61,21.078,21.078,0,0,1,24.763,4.269,18.967,18.967,0,0,1,44.355,23.738,21.078,21.078,0,0,1,23.89,44.079Z" transform="translate(0 0)"/></g></g><g transform="translate(792.264 80)"><g transform="translate(198.066)"><g transform="translate(155.008)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(85.336 197.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(102.559 144.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><path class="f" d="M1.991.02a2.119,2.119,0,0,1,2.039,2.1,1.953,1.953,0,0,1-1.97,2.029,2.119,2.119,0,0,1-2.039-2.1A1.953,1.953,0,0,1,1.991.02Z" transform="translate(143.653 325.315) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><g transform="translate(155.008)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(85.336 197.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(102.559 144.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><path class="f" d="M1.991.02a2.119,2.119,0,0,1,2.039,2.1,1.953,1.953,0,0,1-1.97,2.029,2.119,2.119,0,0,1-2.039-2.1A1.953,1.953,0,0,1,1.991.02Z" transform="translate(143.653 325.315) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/><g transform="translate(391.922 320.51)"><path class="g" d="M128,146.7c12.275,0,22.26-10.435,22.26-23.262s-9.985-23.262-22.26-23.262-22.26,10.435-22.26,23.262S115.724,146.7,128,146.7Z" transform="translate(-105.739 -100.174)"/><path class="a" d="M151.168,200.716a9.616,9.616,0,0,1-3.641-7.587,9.078,9.078,0,1,1,18.138,0,9.616,9.616,0,0,1-3.641,7.587,22.157,22.157,0,0,1,11.859,7.914,21.641,21.641,0,0,1-34.574,0A22.157,22.157,0,0,1,151.168,200.716Z" transform="translate(-134.336 -170.729)"/></g><g transform="translate(128.174 31.101) rotate(130)"><path class="g" d="M13.307-.173A13.869,13.869,0,0,0-.172,13.2,12.488,12.488,0,0,0,12.736,26.01,13.869,13.869,0,0,0,26.215,12.633,12.488,12.488,0,0,0,13.307-.173Z" transform="translate(0 0)"/><path class="a" d="M13.3,9.1a5.064,5.064,0,0,1,2.065,4.223,5.651,5.651,0,0,1-5.491,5.45,5.088,5.088,0,0,1-5.259-5.217A5.584,5.584,0,0,1,6.867,9.243a12.466,12.466,0,0,1-6.932-4.3A13.859,13.859,0,0,1,10.287-.133,12.606,12.606,0,0,1,20.427,4.5,13.967,13.967,0,0,1,13.3,9.1Z" transform="translate(3.02 -0.039)"/></g><g transform="translate(298.491 175.101) rotate(130)"><path class="g" d="M13.307-.173A13.869,13.869,0,0,0-.172,13.2,12.488,12.488,0,0,0,12.736,26.01,13.869,13.869,0,0,0,26.215,12.633,12.488,12.488,0,0,0,13.307-.173Z" transform="translate(0 0)"/><path class="a" d="M13.3,9.1a5.064,5.064,0,0,1,2.065,4.223,5.651,5.651,0,0,1-5.491,5.45,5.088,5.088,0,0,1-5.259-5.217A5.584,5.584,0,0,1,6.867,9.243a12.466,12.466,0,0,1-6.932-4.3A13.859,13.859,0,0,1,10.287-.133,12.606,12.606,0,0,1,20.427,4.5,13.967,13.967,0,0,1,13.3,9.1Z" transform="translate(3.02 -0.039)"/></g><g transform="translate(366.825 103.748)"><path class="h" d="M29.853,0H4.261A4.36,4.36,0,0,0,0,4.453V28.144A4.36,4.36,0,0,0,4.261,32.6H29.853a4.36,4.36,0,0,0,4.261-4.453V4.453A4.36,4.36,0,0,0,29.853,0Z" transform="translate(11.84 11.382)"/><g transform="translate(13.689 19.415)"><path class="a" d="M55.73,103.749l7.3-7.371a.8.8,0,0,1,1.124,0l3.781,3.819,6.293-6.357a.8.8,0,0,1,1.125,0l9.809,9.909Zm0,0" transform="translate(-55.73 -85.344)"/><path class="a" d="M64,66.852A2.732,2.732,0,1,0,66.729,64,2.793,2.793,0,0,0,64,66.852Zm0,0" transform="translate(-57.704 -64)"/></g><path class="g" d="M6.277-.083h0A1.67,1.67,0,0,0,4.658,1.536L4.351,11.666,2.639,9.954a1.637,1.637,0,0,0-2.293.051h0A1.637,1.637,0,0,0,.3,12.3l4.565,4.565a1.375,1.375,0,0,0,1.156.474A1.584,1.584,0,0,0,7.2,16.811l4.558-4.558A1.637,1.637,0,0,0,11.8,9.961l-.041-.041a1.637,1.637,0,0,0-2.293.051l-1.7,1.7L7.784,1.467A1.424,1.424,0,0,0,6.277-.083Z" transform="translate(0 8.882) rotate(-45)"/><path class="g" d="M6.277-.083h0A1.67,1.67,0,0,0,4.658,1.536L4.351,11.666,2.639,9.954a1.637,1.637,0,0,0-2.293.051h0A1.637,1.637,0,0,0,.3,12.3l4.565,4.565a1.375,1.375,0,0,0,1.156.474A1.584,1.584,0,0,0,7.2,16.811l4.558-4.558A1.637,1.637,0,0,0,11.8,9.961l-.041-.041a1.637,1.637,0,0,0-2.293.051l-1.7,1.7L7.784,1.467A1.424,1.424,0,0,0,6.277-.083Z" transform="translate(57.961 45.599) rotate(135)"/></g><g transform="translate(309.034 215.384)"><path class="h" d="M20.388,0H2.91A2.978,2.978,0,0,0,0,3.041v16.18a2.978,2.978,0,0,0,2.91,3.041H20.388a2.978,2.978,0,0,0,2.91-3.041V3.041A2.978,2.978,0,0,0,20.388,0Z" transform="translate(8.086 7.773)"/><g transform="translate(9.349 13.26)"><path class="a" d="M55.73,100.534,60.714,95.5a.544.544,0,0,1,.768,0l2.582,2.608,4.3-4.342a.547.547,0,0,1,.768,0l6.7,6.768Zm0,0" transform="translate(-55.73 -87.965)"/><path class="a" d="M64,65.948A1.866,1.866,0,1,0,65.864,64,1.907,1.907,0,0,0,64,65.948Zm0,0" transform="translate(-59.7 -64)"/></g><path class="g" d="M4.287-.057h0A1.141,1.141,0,0,0,3.181,1.049l-.21,6.919L1.8,6.8a1.118,1.118,0,0,0-1.566.035h0A1.118,1.118,0,0,0,.2,8.4L3.32,11.517a.939.939,0,0,0,.79.324,1.082,1.082,0,0,0,.8-.359L8.027,8.368A1.118,1.118,0,0,0,8.062,6.8l-.028-.028a1.118,1.118,0,0,0-1.566.035L5.3,7.973,5.316,1A.973.973,0,0,0,4.287-.057Z" transform="translate(0 6.066) rotate(-45)"/><path class="g" d="M4.287-.057h0A1.141,1.141,0,0,0,3.181,1.049l-.21,6.919L1.8,6.8a1.118,1.118,0,0,0-1.566.035h0A1.118,1.118,0,0,0,.2,8.4L3.32,11.517a.939.939,0,0,0,.79.324,1.082,1.082,0,0,0,.8-.359L8.027,8.368A1.118,1.118,0,0,0,8.062,6.8l-.028-.028a1.118,1.118,0,0,0-1.566.035L5.3,7.973,5.316,1A.973.973,0,0,0,4.287-.057Z" transform="translate(39.585 31.142) rotate(135)"/></g><g transform="matrix(-0.819, 0.574, -0.574, -0.819, 154.37, 365.445)"><path class="h" d="M2.655,22.056l17.738-.37a3.129,3.129,0,0,0,3.015-3.06l.328-15.95A2.831,2.831,0,0,0,20.844-.26L3.106.11A3.129,3.129,0,0,0,.091,3.17L-.237,19.12A2.831,2.831,0,0,0,2.655,22.056Z" transform="translate(8.023 6.824)"/><g transform="translate(10.064 10.623)"><path class="a" d="M20.4-.255,15.231,5.037a.547.547,0,0,1-.779.016L11.887,2.421,7.433,6.985A.549.549,0,0,1,6.653,7L0,.171Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.759,1.857A1.813,1.813,0,0,0,1.907-.024,2,2,0,0,0-.024,1.936,1.813,1.813,0,0,0,1.828,3.817,2,2,0,0,0,3.759,1.857Zm0,0" transform="translate(12.05 8.759)"/></g><path class="g" d="M4.331-.019h0A1.1,1.1,0,0,0,3.219,1.048l-.11,6.775L1.9,6.661a1.175,1.175,0,0,0-1.6.012h0A1.062,1.062,0,0,0,.287,8.206l3.23,3.1a1.007,1.007,0,0,0,.811.328,1.093,1.093,0,0,0,.816-.341L8.277,8.286a1.062,1.062,0,0,0,.012-1.533L8.26,6.725a1.175,1.175,0,0,0-1.6.012L5.49,7.861,5.4,1.032A1.006,1.006,0,0,0,4.331-.019Z" transform="translate(39.491 29.975) rotate(135)"/><path class="g" d="M4.331-.019h0A1.1,1.1,0,0,0,3.219,1.048l-.11,6.775L1.9,6.661a1.175,1.175,0,0,0-1.6.012h0A1.062,1.062,0,0,0,.287,8.206l3.23,3.1a1.007,1.007,0,0,0,.811.328,1.093,1.093,0,0,0,.816-.341L8.277,8.286a1.062,1.062,0,0,0,.012-1.533L8.26,6.725a1.175,1.175,0,0,0-1.6.012L5.49,7.861,5.4,1.032A1.006,1.006,0,0,0,4.331-.019Z" transform="translate(-0.075 6.064) rotate(-45)"/></g><g transform="matrix(-0.788, 0.616, -0.616, -0.788, 323.868, 318.003)"><path class="h" d="M2.652,22.012l17.777-.382a3.134,3.134,0,0,0,3.023-3.055l.339-15.915A2.826,2.826,0,0,0,20.9-.269L3.118.113A3.134,3.134,0,0,0,.095,3.168L-.244,19.084A2.826,2.826,0,0,0,2.652,22.012Z" transform="translate(8.025 6.807)"/><g transform="translate(10.074 10.596)"><path class="a" d="M20.44-.263,15.261,5.02a.55.55,0,0,1-.781.017L11.911,2.413,7.445,6.97a.552.552,0,0,1-.782.017L0,.176Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.767,1.851A1.81,1.81,0,0,0,1.912-.025,2.008,2.008,0,0,0-.025,1.932,1.81,1.81,0,0,0,1.83,3.807,2.008,2.008,0,0,0,3.767,1.851Zm0,0" transform="translate(12.071 8.736)"/></g><path class="g" d="M4.327-.014h0A1.1,1.1,0,0,0,3.216,1.051l-.1,6.77L1.906,6.657a1.177,1.177,0,0,0-1.6.008h0A1.061,1.061,0,0,0,.3,8.2l3.24,3.1a1.013,1.013,0,0,0,.812.33,1.09,1.09,0,0,0,.816-.339l3.127-3A1.061,1.061,0,0,0,8.3,6.763l-.029-.028a1.177,1.177,0,0,0-1.6.008L5.505,7.864,5.4,1.039A1.011,1.011,0,0,0,4.327-.014Z" transform="translate(39.546 29.892) rotate(135)"/><path class="g" d="M4.327-.014h0A1.1,1.1,0,0,0,3.216,1.051l-.1,6.77L1.906,6.657a1.177,1.177,0,0,0-1.6.008h0A1.061,1.061,0,0,0,.3,8.2l3.24,3.1a1.013,1.013,0,0,0,.812.33,1.09,1.09,0,0,0,.816-.339l3.127-3A1.061,1.061,0,0,0,8.3,6.763l-.029-.028a1.177,1.177,0,0,0-1.6.008L5.505,7.864,5.4,1.039A1.011,1.011,0,0,0,4.327-.014Z" transform="translate(-0.078 6.058) rotate(-45)"/></g><g transform="translate(456.008 232.172) rotate(103)"><path class="h" d="M2.9,21.4l18.227-.173a3.048,3.048,0,0,0,3.063-2.945L24.34,2.765A2.909,2.909,0,0,0,21.335-.122L3.108.05A3.048,3.048,0,0,0,.044,3L-.109,18.513A2.909,2.909,0,0,0,2.9,21.4Z" transform="translate(8.29 6.881)"/><g transform="translate(10.346 10.597)"><path class="a" d="M20.959-.12,15.712,4.974a.584.584,0,0,1-.8.008L12.245,2.394,7.72,6.788a.587.587,0,0,1-.8.008L0,.079Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.876,1.838A1.863,1.863,0,0,0,1.951-.011,1.952,1.952,0,0,0-.011,1.875a1.863,1.863,0,0,0,1.925,1.85A1.952,1.952,0,0,0,3.876,1.838Zm0,0" transform="translate(12.495 8.57)"/></g><path class="g" d="M4.2.05h0A1.031,1.031,0,0,0,3.129,1.1l.08,6.85L1.978,6.741A1.144,1.144,0,0,0,.4,6.71h0A1.092,1.092,0,0,0,.428,8.261l3.282,3.221a1.041,1.041,0,0,0,.812.354,1.012,1.012,0,0,0,.8-.322L8.335,8.557A1.092,1.092,0,0,0,8.3,7.006l-.029-.029a1.144,1.144,0,0,0-1.581-.031L5.567,8.052l-.282-6.91A1.073,1.073,0,0,0,4.2.05Z" transform="translate(40.722 29.678) rotate(135)"/><path class="g" d="M4.2.05h0A1.031,1.031,0,0,0,3.129,1.1l.08,6.85L1.978,6.741A1.144,1.144,0,0,0,.4,6.71h0A1.092,1.092,0,0,0,.428,8.261l3.282,3.221a1.041,1.041,0,0,0,.812.354,1.012,1.012,0,0,0,.8-.322L8.335,8.557A1.092,1.092,0,0,0,8.3,7.006l-.029-.029a1.144,1.144,0,0,0-1.581-.031L5.567,8.052l-.282-6.91A1.073,1.073,0,0,0,4.2.05Z" transform="translate(-0.035 5.94) rotate(-45)"/></g><g transform="translate(413.72 20.44)"><path class="a" d="M20.292,0A20.292,20.292,0,1,0,40.583,20.292,20.292,20.292,0,0,0,20.292,0Z"/><path class="g" d="M30.835,175.008a4.439,4.439,0,1,0,8.878,0H53.027a20.279,20.279,0,0,1-7.839,11.414H25.359a20.288,20.288,0,0,1-7.84-11.414Z" transform="translate(-14.983 -149.645)"/><path class="g" d="M70.387,63.919a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,70.387,63.919ZM67.85,57.578a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,67.85,57.578Zm-5.073-5.073a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,62.777,52.505ZM45.022,63.919a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,45.022,63.919Zm2.536-6.341a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,47.559,57.578Zm5.073-5.073a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,52.632,52.505Z" transform="translate(-37.413 -44.896)"/><path class="g" d="M125.049,57.505c-1.4,0-2.537,13.279-2.537,14.681a2.537,2.537,0,0,0,5.073,0C127.585,70.784,126.449,57.505,125.049,57.505Z" transform="translate(-104.757 -46.821)"/><path class="g" d="M20.292,0A20.292,20.292,0,1,1,0,20.292,20.292,20.292,0,0,1,20.292,0Zm0,36.778A16.487,16.487,0,1,0,3.8,20.292,16.506,16.506,0,0,0,20.292,36.778Z"/></g><g transform="translate(233.961 71.307) rotate(-131)"><path class="a" d="M21.536,41.642A19.689,19.689,0,0,0,41.9,21.409,21.878,21.878,0,0,0,20.63.271,19.689,19.689,0,0,0,.27,20.5,21.879,21.879,0,0,0,21.536,41.642Z" transform="translate(0 0)"/><path class="g" d="M22.914,12.06a4.792,4.792,0,0,0-4.652-4.625,4.311,4.311,0,0,0-4.454,4.426h0l-13.656-.3A19.491,19.491,0,0,1,7.937.1L28.276.547a21.935,21.935,0,0,1,8.3,11.811Z" transform="translate(2.609 3.826)"/><path class="g" d="M1.346,2.6A1.368,1.368,0,0,1,.017,1.281,1.231,1.231,0,0,1,1.289.017,1.367,1.367,0,0,1,2.619,1.338,1.23,1.23,0,0,1,1.346,2.6ZM4.089,9.123A1.368,1.368,0,0,1,2.76,7.8,1.231,1.231,0,0,1,4.033,6.538,1.367,1.367,0,0,1,5.362,7.859,1.23,1.23,0,0,1,4.089,9.123Zm5.316,5.285a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,9.406,14.408ZM27.362,3.169a1.368,1.368,0,0,1-1.329-1.321A1.231,1.231,0,0,1,27.306.583,1.367,1.367,0,0,1,28.635,1.9,1.23,1.23,0,0,1,27.362,3.169ZM24.9,9.577a1.368,1.368,0,0,1-1.329-1.321,1.231,1.231,0,0,1,1.273-1.265,1.367,1.367,0,0,1,1.329,1.321A1.23,1.23,0,0,1,24.9,9.577Zm-5.09,5.058a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,19.812,14.635Z" transform="translate(6.757 19.363)"/><path class="g" d="M2.963,17.585C4.4,17.616,5.268,4.1,5.237,2.676A2.736,2.736,0,0,0,2.579.034,2.462,2.462,0,0,0,.034,2.563C.065,3.992,1.527,17.554,2.963,17.585Z" transform="translate(18.334 13.166)"/><path class="g" d="M21.536,41.642A21.879,21.879,0,0,1,.27,20.5,19.689,19.689,0,0,1,20.63.271,21.878,21.878,0,0,1,41.9,21.409,19.689,19.689,0,0,1,21.536,41.642ZM20.715,4.149A16.015,16.015,0,0,0,4.173,20.588,17.8,17.8,0,0,0,21.451,37.763,16.015,16.015,0,0,0,37.994,21.324,17.8,17.8,0,0,0,20.715,4.149Z" transform="translate(0 0)"/></g><g transform="translate(112.443 243.307) rotate(-131)"><path class="a" d="M21.536,41.642A19.689,19.689,0,0,0,41.9,21.409,21.878,21.878,0,0,0,20.63.271,19.689,19.689,0,0,0,.27,20.5,21.879,21.879,0,0,0,21.536,41.642Z" transform="translate(0 0)"/><path class="g" d="M22.914,12.06a4.792,4.792,0,0,0-4.652-4.625,4.311,4.311,0,0,0-4.454,4.426h0l-13.656-.3A19.491,19.491,0,0,1,7.937.1L28.276.547a21.935,21.935,0,0,1,8.3,11.811Z" transform="translate(2.609 3.826)"/><path class="g" d="M1.346,2.6A1.368,1.368,0,0,1,.017,1.281,1.231,1.231,0,0,1,1.289.017,1.367,1.367,0,0,1,2.619,1.338,1.23,1.23,0,0,1,1.346,2.6ZM4.089,9.123A1.368,1.368,0,0,1,2.76,7.8,1.231,1.231,0,0,1,4.033,6.538,1.367,1.367,0,0,1,5.362,7.859,1.23,1.23,0,0,1,4.089,9.123Zm5.316,5.285a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,9.406,14.408ZM27.362,3.169a1.368,1.368,0,0,1-1.329-1.321A1.231,1.231,0,0,1,27.306.583,1.367,1.367,0,0,1,28.635,1.9,1.23,1.23,0,0,1,27.362,3.169ZM24.9,9.577a1.368,1.368,0,0,1-1.329-1.321,1.231,1.231,0,0,1,1.273-1.265,1.367,1.367,0,0,1,1.329,1.321A1.23,1.23,0,0,1,24.9,9.577Zm-5.09,5.058a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,19.812,14.635Z" transform="translate(6.757 19.363)"/><path class="g" d="M2.963,17.585C4.4,17.616,5.268,4.1,5.237,2.676A2.736,2.736,0,0,0,2.579.034,2.462,2.462,0,0,0,.034,2.563C.065,3.992,1.527,17.554,2.963,17.585Z" transform="translate(18.334 13.166)"/><path class="g" d="M21.536,41.642A21.879,21.879,0,0,1,.27,20.5,19.689,19.689,0,0,1,20.63.271,21.878,21.878,0,0,1,41.9,21.409,19.689,19.689,0,0,1,21.536,41.642ZM20.715,4.149A16.015,16.015,0,0,0,4.173,20.588,17.8,17.8,0,0,0,21.451,37.763,16.015,16.015,0,0,0,37.994,21.324,17.8,17.8,0,0,0,20.715,4.149Z" transform="translate(0 0)"/></g><g transform="translate(216.373 379.775) rotate(-131)"><path class="a" d="M25.507,49.318A23.318,23.318,0,0,0,49.62,25.356,25.912,25.912,0,0,0,24.433.321,23.319,23.319,0,0,0,.32,24.283,25.913,25.913,0,0,0,25.507,49.318Z" transform="translate(0 0)"/><path class="g" d="M27.138,14.283a5.675,5.675,0,0,0-5.51-5.478,5.106,5.106,0,0,0-5.275,5.242v0L.18,13.7A23.083,23.083,0,0,1,9.4.123L33.488.647a25.978,25.978,0,0,1,9.826,13.988Z" transform="translate(3.09 4.531)"/><path class="g" d="M1.594,3.082A1.62,1.62,0,0,1,.02,1.518,1.458,1.458,0,0,1,1.527.02,1.619,1.619,0,0,1,3.1,1.585,1.457,1.457,0,0,1,1.594,3.082Zm3.249,7.723A1.62,1.62,0,0,1,3.269,9.241a1.458,1.458,0,0,1,1.507-1.5A1.619,1.619,0,0,1,6.35,9.308,1.457,1.457,0,0,1,4.843,10.805Zm6.3,6.259A1.62,1.62,0,0,1,9.566,15.5,1.457,1.457,0,0,1,11.073,14a1.618,1.618,0,0,1,1.574,1.565A1.457,1.457,0,0,1,11.14,17.064ZM32.407,3.753a1.62,1.62,0,0,1-1.574-1.565A1.458,1.458,0,0,1,32.34.691a1.619,1.619,0,0,1,1.574,1.565A1.457,1.457,0,0,1,32.407,3.753Zm-2.913,7.589a1.62,1.62,0,0,1-1.574-1.565,1.458,1.458,0,0,1,1.507-1.5A1.619,1.619,0,0,1,31,9.844,1.457,1.457,0,0,1,29.493,11.342Zm-6.028,5.991a1.62,1.62,0,0,1-1.574-1.565,1.457,1.457,0,0,1,1.507-1.5,1.618,1.618,0,0,1,1.574,1.565A1.457,1.457,0,0,1,23.465,17.333Z" transform="translate(8.003 22.933)"/><path class="g" d="M3.51,20.827C5.21,20.864,6.24,4.862,6.2,3.17A3.24,3.24,0,0,0,3.054.04a2.916,2.916,0,0,0-3.014,3C.077,4.727,1.809,20.79,3.51,20.827Z" transform="translate(21.715 15.593)"/><path class="g" d="M25.507,49.318A25.913,25.913,0,0,1,.32,24.283,23.319,23.319,0,0,1,24.433.321,25.912,25.912,0,0,1,49.62,25.356,23.318,23.318,0,0,1,25.507,49.318Zm-.973-44.4A18.967,18.967,0,0,0,4.942,24.383,21.078,21.078,0,0,0,25.406,44.724,18.967,18.967,0,0,0,45,25.255,21.078,21.078,0,0,0,24.534,4.914Z" transform="translate(0 0)"/></g></g><g transform="translate(1125.245 488)"><g transform="translate(198.066)"><g transform="translate(155.008)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(85.336 197.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(102.559 144.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><path class="f" d="M1.991.02a2.119,2.119,0,0,1,2.039,2.1,1.953,1.953,0,0,1-1.97,2.029,2.119,2.119,0,0,1-2.039-2.1A1.953,1.953,0,0,1,1.991.02Z" transform="translate(143.653 325.315) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><g transform="translate(155.008)"><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(85.336 197.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/></g><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(70.662)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(6.849 221.582) rotate(90)"/><ellipse class="f" cx="2.078" cy="1.989" rx="2.078" ry="1.989" transform="translate(25.986 304.582) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(95.988 363.459) rotate(25)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(64.725 75.027)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(102.559 144.787) rotate(90)"/><path class="f" d="M3.428.035a3.649,3.649,0,0,1,3.51,3.61A3.363,3.363,0,0,1,3.546,7.138a3.649,3.649,0,0,1-3.51-3.61A3.363,3.363,0,0,1,3.428.035Z" transform="translate(108.524 279.061) rotate(25)"/><path class="f" d="M1.991.02a2.119,2.119,0,0,1,2.039,2.1,1.953,1.953,0,0,1-1.97,2.029,2.119,2.119,0,0,1-2.039-2.1A1.953,1.953,0,0,1,1.991.02Z" transform="translate(143.653 325.315) rotate(25)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(98.046 110.111)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(23.413 169.111)"/><path class="g" d="M4.732-.047A4.452,4.452,0,0,1,9.355,4.445,4.831,4.831,0,0,1,4.575,9.093,4.452,4.452,0,0,1-.047,4.6,4.831,4.831,0,0,1,4.732-.047Z" transform="translate(69.566 276.966) rotate(115)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(134.52 89.644) rotate(90)"/><g transform="translate(391.922 320.51)"><path class="g" d="M128,146.7c12.275,0,22.26-10.435,22.26-23.262s-9.985-23.262-22.26-23.262-22.26,10.435-22.26,23.262S115.724,146.7,128,146.7Z" transform="translate(-105.739 -100.174)"/><path class="a" d="M151.168,200.716a9.616,9.616,0,0,1-3.641-7.587,9.078,9.078,0,1,1,18.138,0,9.616,9.616,0,0,1-3.641,7.587,22.157,22.157,0,0,1,11.859,7.914,21.641,21.641,0,0,1-34.574,0A22.157,22.157,0,0,1,151.168,200.716Z" transform="translate(-134.336 -170.729)"/></g><g transform="translate(128.174 31.101) rotate(130)"><path class="g" d="M13.307-.173A13.869,13.869,0,0,0-.172,13.2,12.488,12.488,0,0,0,12.736,26.01,13.869,13.869,0,0,0,26.215,12.633,12.488,12.488,0,0,0,13.307-.173Z" transform="translate(0 0)"/><path class="a" d="M13.3,9.1a5.064,5.064,0,0,1,2.065,4.223,5.651,5.651,0,0,1-5.491,5.45,5.088,5.088,0,0,1-5.259-5.217A5.584,5.584,0,0,1,6.867,9.243a12.466,12.466,0,0,1-6.932-4.3A13.859,13.859,0,0,1,10.287-.133,12.606,12.606,0,0,1,20.427,4.5,13.967,13.967,0,0,1,13.3,9.1Z" transform="translate(3.02 -0.039)"/></g><g transform="translate(298.491 175.101) rotate(130)"><path class="g" d="M13.307-.173A13.869,13.869,0,0,0-.172,13.2,12.488,12.488,0,0,0,12.736,26.01,13.869,13.869,0,0,0,26.215,12.633,12.488,12.488,0,0,0,13.307-.173Z" transform="translate(0 0)"/><path class="a" d="M13.3,9.1a5.064,5.064,0,0,1,2.065,4.223,5.651,5.651,0,0,1-5.491,5.45,5.088,5.088,0,0,1-5.259-5.217A5.584,5.584,0,0,1,6.867,9.243a12.466,12.466,0,0,1-6.932-4.3A13.859,13.859,0,0,1,10.287-.133,12.606,12.606,0,0,1,20.427,4.5,13.967,13.967,0,0,1,13.3,9.1Z" transform="translate(3.02 -0.039)"/></g><g transform="translate(366.825 103.748)"><path class="h" d="M29.853,0H4.261A4.36,4.36,0,0,0,0,4.453V28.144A4.36,4.36,0,0,0,4.261,32.6H29.853a4.36,4.36,0,0,0,4.261-4.453V4.453A4.36,4.36,0,0,0,29.853,0Z" transform="translate(11.84 11.382)"/><g transform="translate(13.689 19.415)"><path class="a" d="M55.73,103.749l7.3-7.371a.8.8,0,0,1,1.124,0l3.781,3.819,6.293-6.357a.8.8,0,0,1,1.125,0l9.809,9.909Zm0,0" transform="translate(-55.73 -85.344)"/><path class="a" d="M64,66.852A2.732,2.732,0,1,0,66.729,64,2.793,2.793,0,0,0,64,66.852Zm0,0" transform="translate(-57.704 -64)"/></g><path class="g" d="M6.277-.083h0A1.67,1.67,0,0,0,4.658,1.536L4.351,11.666,2.639,9.954a1.637,1.637,0,0,0-2.293.051h0A1.637,1.637,0,0,0,.3,12.3l4.565,4.565a1.375,1.375,0,0,0,1.156.474A1.584,1.584,0,0,0,7.2,16.811l4.558-4.558A1.637,1.637,0,0,0,11.8,9.961l-.041-.041a1.637,1.637,0,0,0-2.293.051l-1.7,1.7L7.784,1.467A1.424,1.424,0,0,0,6.277-.083Z" transform="translate(0 8.882) rotate(-45)"/><path class="g" d="M6.277-.083h0A1.67,1.67,0,0,0,4.658,1.536L4.351,11.666,2.639,9.954a1.637,1.637,0,0,0-2.293.051h0A1.637,1.637,0,0,0,.3,12.3l4.565,4.565a1.375,1.375,0,0,0,1.156.474A1.584,1.584,0,0,0,7.2,16.811l4.558-4.558A1.637,1.637,0,0,0,11.8,9.961l-.041-.041a1.637,1.637,0,0,0-2.293.051l-1.7,1.7L7.784,1.467A1.424,1.424,0,0,0,6.277-.083Z" transform="translate(57.961 45.599) rotate(135)"/></g><g transform="translate(309.034 215.384)"><path class="h" d="M20.388,0H2.91A2.978,2.978,0,0,0,0,3.041v16.18a2.978,2.978,0,0,0,2.91,3.041H20.388a2.978,2.978,0,0,0,2.91-3.041V3.041A2.978,2.978,0,0,0,20.388,0Z" transform="translate(8.086 7.773)"/><g transform="translate(9.349 13.26)"><path class="a" d="M55.73,100.534,60.714,95.5a.544.544,0,0,1,.768,0l2.582,2.608,4.3-4.342a.547.547,0,0,1,.768,0l6.7,6.768Zm0,0" transform="translate(-55.73 -87.965)"/><path class="a" d="M64,65.948A1.866,1.866,0,1,0,65.864,64,1.907,1.907,0,0,0,64,65.948Zm0,0" transform="translate(-59.7 -64)"/></g><path class="g" d="M4.287-.057h0A1.141,1.141,0,0,0,3.181,1.049l-.21,6.919L1.8,6.8a1.118,1.118,0,0,0-1.566.035h0A1.118,1.118,0,0,0,.2,8.4L3.32,11.517a.939.939,0,0,0,.79.324,1.082,1.082,0,0,0,.8-.359L8.027,8.368A1.118,1.118,0,0,0,8.062,6.8l-.028-.028a1.118,1.118,0,0,0-1.566.035L5.3,7.973,5.316,1A.973.973,0,0,0,4.287-.057Z" transform="translate(0 6.066) rotate(-45)"/><path class="g" d="M4.287-.057h0A1.141,1.141,0,0,0,3.181,1.049l-.21,6.919L1.8,6.8a1.118,1.118,0,0,0-1.566.035h0A1.118,1.118,0,0,0,.2,8.4L3.32,11.517a.939.939,0,0,0,.79.324,1.082,1.082,0,0,0,.8-.359L8.027,8.368A1.118,1.118,0,0,0,8.062,6.8l-.028-.028a1.118,1.118,0,0,0-1.566.035L5.3,7.973,5.316,1A.973.973,0,0,0,4.287-.057Z" transform="translate(39.585 31.142) rotate(135)"/></g><g transform="matrix(-0.819, 0.574, -0.574, -0.819, 154.37, 365.445)"><path class="h" d="M2.655,22.056l17.738-.37a3.129,3.129,0,0,0,3.015-3.06l.328-15.95A2.831,2.831,0,0,0,20.844-.26L3.106.11A3.129,3.129,0,0,0,.091,3.17L-.237,19.12A2.831,2.831,0,0,0,2.655,22.056Z" transform="translate(8.023 6.824)"/><g transform="translate(10.064 10.623)"><path class="a" d="M20.4-.255,15.231,5.037a.547.547,0,0,1-.779.016L11.887,2.421,7.433,6.985A.549.549,0,0,1,6.653,7L0,.171Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.759,1.857A1.813,1.813,0,0,0,1.907-.024,2,2,0,0,0-.024,1.936,1.813,1.813,0,0,0,1.828,3.817,2,2,0,0,0,3.759,1.857Zm0,0" transform="translate(12.05 8.759)"/></g><path class="g" d="M4.331-.019h0A1.1,1.1,0,0,0,3.219,1.048l-.11,6.775L1.9,6.661a1.175,1.175,0,0,0-1.6.012h0A1.062,1.062,0,0,0,.287,8.206l3.23,3.1a1.007,1.007,0,0,0,.811.328,1.093,1.093,0,0,0,.816-.341L8.277,8.286a1.062,1.062,0,0,0,.012-1.533L8.26,6.725a1.175,1.175,0,0,0-1.6.012L5.49,7.861,5.4,1.032A1.006,1.006,0,0,0,4.331-.019Z" transform="translate(39.491 29.975) rotate(135)"/><path class="g" d="M4.331-.019h0A1.1,1.1,0,0,0,3.219,1.048l-.11,6.775L1.9,6.661a1.175,1.175,0,0,0-1.6.012h0A1.062,1.062,0,0,0,.287,8.206l3.23,3.1a1.007,1.007,0,0,0,.811.328,1.093,1.093,0,0,0,.816-.341L8.277,8.286a1.062,1.062,0,0,0,.012-1.533L8.26,6.725a1.175,1.175,0,0,0-1.6.012L5.49,7.861,5.4,1.032A1.006,1.006,0,0,0,4.331-.019Z" transform="translate(-0.075 6.064) rotate(-45)"/></g><g transform="matrix(-0.788, 0.616, -0.616, -0.788, 323.868, 318.003)"><path class="h" d="M2.652,22.012l17.777-.382a3.134,3.134,0,0,0,3.023-3.055l.339-15.915A2.826,2.826,0,0,0,20.9-.269L3.118.113A3.134,3.134,0,0,0,.095,3.168L-.244,19.084A2.826,2.826,0,0,0,2.652,22.012Z" transform="translate(8.025 6.807)"/><g transform="translate(10.074 10.596)"><path class="a" d="M20.44-.263,15.261,5.02a.55.55,0,0,1-.781.017L11.911,2.413,7.445,6.97a.552.552,0,0,1-.782.017L0,.176Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.767,1.851A1.81,1.81,0,0,0,1.912-.025,2.008,2.008,0,0,0-.025,1.932,1.81,1.81,0,0,0,1.83,3.807,2.008,2.008,0,0,0,3.767,1.851Zm0,0" transform="translate(12.071 8.736)"/></g><path class="g" d="M4.327-.014h0A1.1,1.1,0,0,0,3.216,1.051l-.1,6.77L1.906,6.657a1.177,1.177,0,0,0-1.6.008h0A1.061,1.061,0,0,0,.3,8.2l3.24,3.1a1.013,1.013,0,0,0,.812.33,1.09,1.09,0,0,0,.816-.339l3.127-3A1.061,1.061,0,0,0,8.3,6.763l-.029-.028a1.177,1.177,0,0,0-1.6.008L5.505,7.864,5.4,1.039A1.011,1.011,0,0,0,4.327-.014Z" transform="translate(39.546 29.892) rotate(135)"/><path class="g" d="M4.327-.014h0A1.1,1.1,0,0,0,3.216,1.051l-.1,6.77L1.906,6.657a1.177,1.177,0,0,0-1.6.008h0A1.061,1.061,0,0,0,.3,8.2l3.24,3.1a1.013,1.013,0,0,0,.812.33,1.09,1.09,0,0,0,.816-.339l3.127-3A1.061,1.061,0,0,0,8.3,6.763l-.029-.028a1.177,1.177,0,0,0-1.6.008L5.505,7.864,5.4,1.039A1.011,1.011,0,0,0,4.327-.014Z" transform="translate(-0.078 6.058) rotate(-45)"/></g><g transform="translate(456.008 232.172) rotate(103)"><path class="h" d="M2.9,21.4l18.227-.173a3.048,3.048,0,0,0,3.063-2.945L24.34,2.765A2.909,2.909,0,0,0,21.335-.122L3.108.05A3.048,3.048,0,0,0,.044,3L-.109,18.513A2.909,2.909,0,0,0,2.9,21.4Z" transform="translate(8.29 6.881)"/><g transform="translate(10.346 10.597)"><path class="a" d="M20.959-.12,15.712,4.974a.584.584,0,0,1-.8.008L12.245,2.394,7.72,6.788a.587.587,0,0,1-.8.008L0,.079Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.876,1.838A1.863,1.863,0,0,0,1.951-.011,1.952,1.952,0,0,0-.011,1.875a1.863,1.863,0,0,0,1.925,1.85A1.952,1.952,0,0,0,3.876,1.838Zm0,0" transform="translate(12.495 8.57)"/></g><path class="g" d="M4.2.05h0A1.031,1.031,0,0,0,3.129,1.1l.08,6.85L1.978,6.741A1.144,1.144,0,0,0,.4,6.71h0A1.092,1.092,0,0,0,.428,8.261l3.282,3.221a1.041,1.041,0,0,0,.812.354,1.012,1.012,0,0,0,.8-.322L8.335,8.557A1.092,1.092,0,0,0,8.3,7.006l-.029-.029a1.144,1.144,0,0,0-1.581-.031L5.567,8.052l-.282-6.91A1.073,1.073,0,0,0,4.2.05Z" transform="translate(40.722 29.678) rotate(135)"/><path class="g" d="M4.2.05h0A1.031,1.031,0,0,0,3.129,1.1l.08,6.85L1.978,6.741A1.144,1.144,0,0,0,.4,6.71h0A1.092,1.092,0,0,0,.428,8.261l3.282,3.221a1.041,1.041,0,0,0,.812.354,1.012,1.012,0,0,0,.8-.322L8.335,8.557A1.092,1.092,0,0,0,8.3,7.006l-.029-.029a1.144,1.144,0,0,0-1.581-.031L5.567,8.052l-.282-6.91A1.073,1.073,0,0,0,4.2.05Z" transform="translate(-0.035 5.94) rotate(-45)"/></g><g transform="translate(413.72 20.44)"><path class="a" d="M20.292,0A20.292,20.292,0,1,0,40.583,20.292,20.292,20.292,0,0,0,20.292,0Z"/><path class="g" d="M30.835,175.008a4.439,4.439,0,1,0,8.878,0H53.027a20.279,20.279,0,0,1-7.839,11.414H25.359a20.288,20.288,0,0,1-7.84-11.414Z" transform="translate(-14.983 -149.645)"/><path class="g" d="M70.387,63.919a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,70.387,63.919ZM67.85,57.578a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,67.85,57.578Zm-5.073-5.073a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,62.777,52.505ZM45.022,63.919a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,45.022,63.919Zm2.536-6.341a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,47.559,57.578Zm5.073-5.073a1.268,1.268,0,1,1-1.268,1.268A1.269,1.269,0,0,1,52.632,52.505Z" transform="translate(-37.413 -44.896)"/><path class="g" d="M125.049,57.505c-1.4,0-2.537,13.279-2.537,14.681a2.537,2.537,0,0,0,5.073,0C127.585,70.784,126.449,57.505,125.049,57.505Z" transform="translate(-104.757 -46.821)"/><path class="g" d="M20.292,0A20.292,20.292,0,1,1,0,20.292,20.292,20.292,0,0,1,20.292,0Zm0,36.778A16.487,16.487,0,1,0,3.8,20.292,16.506,16.506,0,0,0,20.292,36.778Z"/></g><g transform="translate(233.961 71.307) rotate(-131)"><path class="a" d="M21.536,41.642A19.689,19.689,0,0,0,41.9,21.409,21.878,21.878,0,0,0,20.63.271,19.689,19.689,0,0,0,.27,20.5,21.879,21.879,0,0,0,21.536,41.642Z" transform="translate(0 0)"/><path class="g" d="M22.914,12.06a4.792,4.792,0,0,0-4.652-4.625,4.311,4.311,0,0,0-4.454,4.426h0l-13.656-.3A19.491,19.491,0,0,1,7.937.1L28.276.547a21.935,21.935,0,0,1,8.3,11.811Z" transform="translate(2.609 3.826)"/><path class="g" d="M1.346,2.6A1.368,1.368,0,0,1,.017,1.281,1.231,1.231,0,0,1,1.289.017,1.367,1.367,0,0,1,2.619,1.338,1.23,1.23,0,0,1,1.346,2.6ZM4.089,9.123A1.368,1.368,0,0,1,2.76,7.8,1.231,1.231,0,0,1,4.033,6.538,1.367,1.367,0,0,1,5.362,7.859,1.23,1.23,0,0,1,4.089,9.123Zm5.316,5.285a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,9.406,14.408ZM27.362,3.169a1.368,1.368,0,0,1-1.329-1.321A1.231,1.231,0,0,1,27.306.583,1.367,1.367,0,0,1,28.635,1.9,1.23,1.23,0,0,1,27.362,3.169ZM24.9,9.577a1.368,1.368,0,0,1-1.329-1.321,1.231,1.231,0,0,1,1.273-1.265,1.367,1.367,0,0,1,1.329,1.321A1.23,1.23,0,0,1,24.9,9.577Zm-5.09,5.058a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,19.812,14.635Z" transform="translate(6.757 19.363)"/><path class="g" d="M2.963,17.585C4.4,17.616,5.268,4.1,5.237,2.676A2.736,2.736,0,0,0,2.579.034,2.462,2.462,0,0,0,.034,2.563C.065,3.992,1.527,17.554,2.963,17.585Z" transform="translate(18.334 13.166)"/><path class="g" d="M21.536,41.642A21.879,21.879,0,0,1,.27,20.5,19.689,19.689,0,0,1,20.63.271,21.878,21.878,0,0,1,41.9,21.409,19.689,19.689,0,0,1,21.536,41.642ZM20.715,4.149A16.015,16.015,0,0,0,4.173,20.588,17.8,17.8,0,0,0,21.451,37.763,16.015,16.015,0,0,0,37.994,21.324,17.8,17.8,0,0,0,20.715,4.149Z" transform="translate(0 0)"/></g><g transform="translate(112.443 243.307) rotate(-131)"><path class="a" d="M21.536,41.642A19.689,19.689,0,0,0,41.9,21.409,21.878,21.878,0,0,0,20.63.271,19.689,19.689,0,0,0,.27,20.5,21.879,21.879,0,0,0,21.536,41.642Z" transform="translate(0 0)"/><path class="g" d="M22.914,12.06a4.792,4.792,0,0,0-4.652-4.625,4.311,4.311,0,0,0-4.454,4.426h0l-13.656-.3A19.491,19.491,0,0,1,7.937.1L28.276.547a21.935,21.935,0,0,1,8.3,11.811Z" transform="translate(2.609 3.826)"/><path class="g" d="M1.346,2.6A1.368,1.368,0,0,1,.017,1.281,1.231,1.231,0,0,1,1.289.017,1.367,1.367,0,0,1,2.619,1.338,1.23,1.23,0,0,1,1.346,2.6ZM4.089,9.123A1.368,1.368,0,0,1,2.76,7.8,1.231,1.231,0,0,1,4.033,6.538,1.367,1.367,0,0,1,5.362,7.859,1.23,1.23,0,0,1,4.089,9.123Zm5.316,5.285a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,9.406,14.408ZM27.362,3.169a1.368,1.368,0,0,1-1.329-1.321A1.231,1.231,0,0,1,27.306.583,1.367,1.367,0,0,1,28.635,1.9,1.23,1.23,0,0,1,27.362,3.169ZM24.9,9.577a1.368,1.368,0,0,1-1.329-1.321,1.231,1.231,0,0,1,1.273-1.265,1.367,1.367,0,0,1,1.329,1.321A1.23,1.23,0,0,1,24.9,9.577Zm-5.09,5.058a1.368,1.368,0,0,1-1.329-1.321,1.23,1.23,0,0,1,1.273-1.265,1.366,1.366,0,0,1,1.329,1.321A1.23,1.23,0,0,1,19.812,14.635Z" transform="translate(6.757 19.363)"/><path class="g" d="M2.963,17.585C4.4,17.616,5.268,4.1,5.237,2.676A2.736,2.736,0,0,0,2.579.034,2.462,2.462,0,0,0,.034,2.563C.065,3.992,1.527,17.554,2.963,17.585Z" transform="translate(18.334 13.166)"/><path class="g" d="M21.536,41.642A21.879,21.879,0,0,1,.27,20.5,19.689,19.689,0,0,1,20.63.271,21.878,21.878,0,0,1,41.9,21.409,19.689,19.689,0,0,1,21.536,41.642ZM20.715,4.149A16.015,16.015,0,0,0,4.173,20.588,17.8,17.8,0,0,0,21.451,37.763,16.015,16.015,0,0,0,37.994,21.324,17.8,17.8,0,0,0,20.715,4.149Z" transform="translate(0 0)"/></g><g transform="translate(216.373 379.775) rotate(-131)"><path class="a" d="M25.507,49.318A23.318,23.318,0,0,0,49.62,25.356,25.912,25.912,0,0,0,24.433.321,23.319,23.319,0,0,0,.32,24.283,25.913,25.913,0,0,0,25.507,49.318Z" transform="translate(0 0)"/><path class="g" d="M27.138,14.283a5.675,5.675,0,0,0-5.51-5.478,5.106,5.106,0,0,0-5.275,5.242v0L.18,13.7A23.083,23.083,0,0,1,9.4.123L33.488.647a25.978,25.978,0,0,1,9.826,13.988Z" transform="translate(3.09 4.531)"/><path class="g" d="M1.594,3.082A1.62,1.62,0,0,1,.02,1.518,1.458,1.458,0,0,1,1.527.02,1.619,1.619,0,0,1,3.1,1.585,1.457,1.457,0,0,1,1.594,3.082Zm3.249,7.723A1.62,1.62,0,0,1,3.269,9.241a1.458,1.458,0,0,1,1.507-1.5A1.619,1.619,0,0,1,6.35,9.308,1.457,1.457,0,0,1,4.843,10.805Zm6.3,6.259A1.62,1.62,0,0,1,9.566,15.5,1.457,1.457,0,0,1,11.073,14a1.618,1.618,0,0,1,1.574,1.565A1.457,1.457,0,0,1,11.14,17.064ZM32.407,3.753a1.62,1.62,0,0,1-1.574-1.565A1.458,1.458,0,0,1,32.34.691a1.619,1.619,0,0,1,1.574,1.565A1.457,1.457,0,0,1,32.407,3.753Zm-2.913,7.589a1.62,1.62,0,0,1-1.574-1.565,1.458,1.458,0,0,1,1.507-1.5A1.619,1.619,0,0,1,31,9.844,1.457,1.457,0,0,1,29.493,11.342Zm-6.028,5.991a1.62,1.62,0,0,1-1.574-1.565,1.457,1.457,0,0,1,1.507-1.5,1.618,1.618,0,0,1,1.574,1.565A1.457,1.457,0,0,1,23.465,17.333Z" transform="translate(8.003 22.933)"/><path class="g" d="M3.51,20.827C5.21,20.864,6.24,4.862,6.2,3.17A3.24,3.24,0,0,0,3.054.04a2.916,2.916,0,0,0-3.014,3C.077,4.727,1.809,20.79,3.51,20.827Z" transform="translate(21.715 15.593)"/><path class="g" d="M25.507,49.318A25.913,25.913,0,0,1,.32,24.283,23.319,23.319,0,0,1,24.433.321,25.912,25.912,0,0,1,49.62,25.356,23.318,23.318,0,0,1,25.507,49.318Zm-.973-44.4A18.967,18.967,0,0,0,4.942,24.383,21.078,21.078,0,0,0,25.406,44.724,18.967,18.967,0,0,0,45,25.255,21.078,21.078,0,0,0,24.534,4.914Z" transform="translate(0 0)"/></g></g><g transform="translate(840.44 80) rotate(90)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(140.588 212.018) rotate(90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(117.588 291.436) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(43.275 353.938) rotate(155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 71.789)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(58.561 189.25) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(30.174 273.182) rotate(155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 105.359)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 161.812)"/><path class="g" d="M4.6-.047A4.452,4.452,0,0,1,9.091,4.577a4.831,4.831,0,0,1-4.648,4.78A4.452,4.452,0,0,1-.047,4.733,4.831,4.831,0,0,1,4.6-.047Z" transform="translate(76.531 261.153) rotate(65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(9.477 85.775) rotate(90)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(302.588 212.018) rotate(90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(279.588 291.436) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(205.275 353.938) rotate(155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 71.789)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(202.561 138.538) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(192.174 273.182) rotate(155)"/><path class="f" d="M2.048.021a2.119,2.119,0,0,1,2.1,2.04A1.953,1.953,0,0,1,2.117,4.031a2.119,2.119,0,0,1-2.1-2.04A1.953,1.953,0,0,1,2.048.021Z" transform="translate(154.201 314.856) rotate(155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 105.359)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 161.812)"/><path class="g" d="M4.6-.047A4.452,4.452,0,0,1,9.091,4.577a4.831,4.831,0,0,1-4.648,4.78A4.452,4.452,0,0,1-.047,4.733,4.831,4.831,0,0,1,4.6-.047Z" transform="translate(238.531 261.153) rotate(65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(171.477 85.775) rotate(90)"/></g><g transform="translate(207 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(140.588 212.018) rotate(90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(117.588 291.436) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(43.275 353.938) rotate(155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 71.789)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(58.561 189.25) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(30.174 273.182) rotate(155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 105.359)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 161.812)"/><path class="g" d="M4.6-.047A4.452,4.452,0,0,1,9.091,4.577a4.831,4.831,0,0,1-4.648,4.78A4.452,4.452,0,0,1-.047,4.733,4.831,4.831,0,0,1,4.6-.047Z" transform="translate(76.531 261.153) rotate(65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(9.477 85.775) rotate(90)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(302.588 212.018) rotate(90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(279.588 291.436) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(205.275 353.938) rotate(155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 71.789)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(202.561 138.538) rotate(90)"/><path class="f" d="M3.527.036a3.649,3.649,0,0,1,3.61,3.511A3.363,3.363,0,0,1,3.645,6.94,3.649,3.649,0,0,1,.035,3.428,3.363,3.363,0,0,1,3.527.036Z" transform="translate(192.174 273.182) rotate(155)"/><path class="f" d="M2.048.021a2.119,2.119,0,0,1,2.1,2.04A1.953,1.953,0,0,1,2.117,4.031a2.119,2.119,0,0,1-2.1-2.04A1.953,1.953,0,0,1,2.048.021Z" transform="translate(154.201 314.856) rotate(155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 105.359)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 161.812)"/><path class="g" d="M4.6-.047A4.452,4.452,0,0,1,9.091,4.577a4.831,4.831,0,0,1-4.648,4.78A4.452,4.452,0,0,1-.047,4.733,4.831,4.831,0,0,1,4.6-.047Z" transform="translate(238.531 261.153) rotate(65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(171.477 85.775) rotate(90)"/></g><g transform="translate(53.459 306.677)"><path class="g" d="M23.264,44.517C10.436,44.517,0,34.532,0,22.258S10.436,0,23.264,0,46.529,9.984,46.529,22.258,36.093,44.517,23.264,44.517Z" transform="translate(0 0)"/><path class="a" d="M23.74,16.328a8.938,8.938,0,0,0,3.805-7.26A9.291,9.291,0,0,0,18.067,0,9.292,9.292,0,0,0,8.589,9.068a8.939,8.939,0,0,0,3.805,7.26A23.387,23.387,0,0,0,0,23.9a23.641,23.641,0,0,0,18.067,8.25A23.641,23.641,0,0,0,36.134,23.9,23.387,23.387,0,0,0,23.74,16.328Z" transform="translate(5.198 12.366)"/></g><g transform="translate(396.392 13.091) rotate(50)"><path class="g" d="M12.635,26.212A12.488,12.488,0,0,1-.173,13.306,13.869,13.869,0,0,1,13.206-.172,12.488,12.488,0,0,1,26.013,12.735,13.869,13.869,0,0,1,12.635,26.212Z" transform="translate(0 0)"/><path class="a" d="M13.272,9.474a5.653,5.653,0,0,0,2.235-4.35A5.088,5.088,0,0,0,10.289-.134a5.651,5.651,0,0,0-5.45,5.491A5.131,5.131,0,0,0,6.887,9.613a13.841,13.841,0,0,0-7.072,4.64A12.434,12.434,0,0,0,9.876,18.921,13.679,13.679,0,0,0,20.15,13.809,12.345,12.345,0,0,0,13.272,9.474Z" transform="translate(2.758 7.291)"/></g><g transform="translate(218.392 150.876) rotate(50)"><path class="g" d="M12.635,26.212A12.488,12.488,0,0,1-.173,13.306,13.869,13.869,0,0,1,13.206-.172,12.488,12.488,0,0,1,26.013,12.735,13.869,13.869,0,0,1,12.635,26.212Z" transform="translate(0 0)"/><path class="a" d="M13.272,9.474a5.653,5.653,0,0,0,2.235-4.35A5.088,5.088,0,0,0,10.289-.134a5.651,5.651,0,0,0-5.45,5.491A5.131,5.131,0,0,0,6.887,9.613a13.841,13.841,0,0,0-7.072,4.64A12.434,12.434,0,0,0,9.876,18.921,13.679,13.679,0,0,0,20.15,13.809,12.345,12.345,0,0,0,13.272,9.474Z" transform="translate(2.758 7.291)"/></g><g transform="translate(65.862 99.056)"><path class="h" d="M4.453,0H31.2a4.36,4.36,0,0,1,4.453,4.261V26.929A4.36,4.36,0,0,1,31.2,31.19H4.453A4.36,4.36,0,0,1,0,26.929V4.261A4.36,4.36,0,0,1,4.453,0Z" transform="translate(12.329 11.105)"/><g transform="translate(15.292 18.791)"><path class="a" d="M30.757,10.14,23.13,2.77a.86.86,0,0,0-1.175,0L18,6.588,11.427.231a.864.864,0,0,0-1.176,0L0,10.14Zm0,0" transform="translate(0 7.908)"/><path class="a" d="M5.7,2.729A2.793,2.793,0,0,1,2.852,5.458,2.793,2.793,0,0,1,0,2.729,2.793,2.793,0,0,1,2.852,0,2.793,2.793,0,0,1,5.7,2.729Zm0,0" transform="translate(18.472)"/></g><path class="g" d="M5.85,17.346h0A1.5,1.5,0,0,1,4.3,15.8L4.441,5.67,2.652,7.459A1.637,1.637,0,0,1,.359,7.51h0A1.637,1.637,0,0,1,.41,5.217L5.181.446A1.5,1.5,0,0,1,6.359-.08,1.448,1.448,0,0,1,7.515.395l4.362,4.362a1.637,1.637,0,0,1-.051,2.293l-.043.043a1.637,1.637,0,0,1-2.293.051L7.861,5.511,7.427,15.728A1.58,1.58,0,0,1,5.85,17.346Z" transform="translate(47.649 20.812) rotate(-135)"/><path class="g" d="M5.85,17.346h0A1.5,1.5,0,0,1,4.3,15.8L4.441,5.67,2.652,7.459A1.637,1.637,0,0,1,.359,7.51h0A1.637,1.637,0,0,1,.41,5.217L5.181.446A1.5,1.5,0,0,1,6.359-.08,1.448,1.448,0,0,1,7.515.395l4.362,4.362a1.637,1.637,0,0,1-.051,2.293l-.043.043a1.637,1.637,0,0,1-2.293.051L7.861,5.511,7.427,15.728A1.58,1.58,0,0,1,5.85,17.346Z" transform="translate(12.486 31.745) rotate(45)"/></g><g transform="translate(145.394 205.942)"><path class="h" d="M3.041,0H21.308a2.978,2.978,0,0,1,3.041,2.91V18.392a2.978,2.978,0,0,1-3.041,2.91H3.041A2.978,2.978,0,0,1,0,18.392V2.91A2.978,2.978,0,0,1,3.041,0Z" transform="translate(8.42 7.584)"/><g transform="translate(10.444 12.833)"><path class="a" d="M21.006,6.925,15.8,1.892a.587.587,0,0,0-.8,0L12.3,4.5,7.8.158a.59.59,0,0,0-.8,0L0,6.925Zm0,0" transform="translate(0 5.401)"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,1,1.948,3.727,1.907,1.907,0,0,1,0,1.864,1.907,1.907,0,0,1,1.948,0,1.907,1.907,0,0,1,3.9,1.864Zm0,0" transform="translate(12.616)"/></g><path class="g" d="M4,11.847H4a1.025,1.025,0,0,1-1.058-1.058l.1-6.916L1.811,5.094a1.118,1.118,0,0,1-1.566.035h0A1.118,1.118,0,0,1,.28,3.563L3.539.3a1.026,1.026,0,0,1,.8-.359.989.989,0,0,1,.79.324L8.112,3.248a1.118,1.118,0,0,1-.035,1.566l-.029.029a1.118,1.118,0,0,1-1.566.035L5.369,3.764l-.3,6.978A1.079,1.079,0,0,1,4,11.847Z" transform="translate(32.542 14.214) rotate(-135)"/><path class="g" d="M4,11.847H4a1.025,1.025,0,0,1-1.058-1.058l.1-6.916L1.811,5.094a1.118,1.118,0,0,1-1.566.035h0A1.118,1.118,0,0,1,.28,3.563L3.539.3a1.026,1.026,0,0,1,.8-.359.989.989,0,0,1,.79.324L8.112,3.248a1.118,1.118,0,0,1-.035,1.566l-.029.029a1.118,1.118,0,0,1-1.566.035L5.369,3.764l-.3,6.978A1.079,1.079,0,0,1,4,11.847Z" transform="translate(8.527 21.681) rotate(45)"/></g><g transform="matrix(0.819, 0.574, -0.574, 0.819, 369.752, 320.033)"><path class="h" d="M3.153.109,21.16-.262A2.831,2.831,0,0,1,24.1,2.63l-.328,15.711a3.129,3.129,0,0,1-3.06,3.015L2.7,21.726A2.831,2.831,0,0,1-.235,18.835L.093,3.123A3.129,3.129,0,0,1,3.153.109Z" transform="translate(8.285 7.585)"/><g transform="translate(10.22 12.925)"><path class="a" d="M20.619,6.661l-5.028-5a.567.567,0,0,0-.791.016l-2.715,2.7L7.748.061a.57.57,0,0,0-.792.016L-.089,7.087Zm0,0" transform="translate(-0.069 5.538)"/><path class="a" d="M3.817,1.828a2,2,0,0,1-1.96,1.931A1.813,1.813,0,0,1-.024,1.907,2,2,0,0,1,1.936-.024,1.813,1.813,0,0,1,3.817,1.828Zm0,0" transform="translate(12.524 -0.155)"/></g><path class="g" d="M4.056,12.131h0A1.063,1.063,0,0,1,3,11.035l0-7.06L1.821,5.2a1.062,1.062,0,0,1-1.533.012h0A1.175,1.175,0,0,1,.3,3.617L3.446.339a.958.958,0,0,1,.783-.355.978.978,0,0,1,.778.343l2.96,3.086a1.175,1.175,0,0,1-.012,1.6l-.028.029a1.062,1.062,0,0,1-1.533.012L5.287,3.9,5.1,11.019A1.044,1.044,0,0,1,4.056,12.131Z" transform="translate(32.08 13.959) rotate(-135)"/><path class="g" d="M4.056,12.131h0A1.063,1.063,0,0,1,3,11.035l0-7.06L1.821,5.2a1.062,1.062,0,0,1-1.533.012h0A1.175,1.175,0,0,1,.3,3.617L3.446.339a.958.958,0,0,1,.783-.355.978.978,0,0,1,.778.343l2.96,3.086a1.175,1.175,0,0,1-.012,1.6l-.028.029a1.062,1.062,0,0,1-1.533.012L5.287,3.9,5.1,11.019A1.044,1.044,0,0,1,4.056,12.131Z" transform="translate(8.246 22.094) rotate(45)"/></g><g transform="matrix(0.788, 0.616, -0.616, 0.788, 194.189, 275.734)"><path class="h" d="M3.151.112,21.119-.27a2.826,2.826,0,0,1,2.928,2.9l-.339,15.746A3.134,3.134,0,0,1,20.653,21.4l-17.968.382a2.826,2.826,0,0,1-2.928-2.9L.1,3.136A3.134,3.134,0,0,1,3.151.112Z" transform="translate(8.272 7.593)"/><g transform="translate(10.201 12.945)"><path class="a" d="M20.57,6.665,15.557,1.654a.564.564,0,0,0-.789.017L12.057,4.38,7.733.058a.567.567,0,0,0-.79.017L-.092,7.1Zm0,0" transform="translate(-0.072 5.552)"/><path class="a" d="M3.808,1.83A2.008,2.008,0,0,1,1.851,3.767,1.81,1.81,0,0,1-.025,1.912,2.008,2.008,0,0,1,1.932-.025,1.81,1.81,0,0,1,3.808,1.83Zm0,0" transform="translate(12.5 -0.16)"/></g><path class="g" d="M4.076,12.144h0a1.068,1.068,0,0,1-1.053-1.1L3,3.98,1.827,5.207A1.061,1.061,0,0,1,.3,5.216h0A1.177,1.177,0,0,1,.3,3.617L3.441.343A.952.952,0,0,1,4.223-.01.981.981,0,0,1,5,.334L7.965,3.429a1.177,1.177,0,0,1-.008,1.6l-.028.029A1.061,1.061,0,0,1,6.4,5.066L5.289,3.909l-.176,7.124A1.039,1.039,0,0,1,4.076,12.144Z" transform="translate(32.015 13.966) rotate(-135)"/><path class="g" d="M4.076,12.144h0a1.068,1.068,0,0,1-1.053-1.1L3,3.98,1.827,5.207A1.061,1.061,0,0,1,.3,5.216h0A1.177,1.177,0,0,1,.3,3.617L3.441.343A.952.952,0,0,1,4.223-.01.981.981,0,0,1,5,.334L7.965,3.429a1.177,1.177,0,0,1-.008,1.6l-.028.029A1.061,1.061,0,0,1,6.4,5.066L5.289,3.909l-.176,7.124A1.039,1.039,0,0,1,4.076,12.144Z" transform="translate(8.228 22.145) rotate(45)"/></g><g transform="translate(69.517 213.858) rotate(77)"><path class="h" d="M2.988.052,20.506-.12a2.909,2.909,0,0,1,2.888,3.006L23.241,19.03A3.048,3.048,0,0,1,20.3,22.093l-17.518.173A2.909,2.909,0,0,1-.11,19.26L.043,3.116A3.048,3.048,0,0,1,2.988.052Z" transform="translate(8.183 7.736)"/><g transform="translate(10.095 13.216)"><path class="a" d="M20.1,7.051l-4.945-5.2a.531.531,0,0,0-.77.008L11.775,4.6,7.51.119a.533.533,0,0,0-.77.008L-.042,7.25Zm0,0" transform="translate(-0.032 5.659)"/><path class="a" d="M3.725,1.914A1.952,1.952,0,0,1,1.839,3.876,1.863,1.863,0,0,1-.011,1.951,1.952,1.952,0,0,1,1.875-.011,1.863,1.863,0,0,1,3.725,1.914Zm0,0" transform="translate(12.139 -0.071)"/></g><path class="g" d="M4.381,12.068h0a1.135,1.135,0,0,1-1.093-1.114L3.095,3.968,1.934,5.152A1.092,1.092,0,0,1,.384,5.121h0A1.144,1.144,0,0,1,.353,3.54L3.447.384A.926.926,0,0,1,4.23.055a1.058,1.058,0,0,1,.8.361L8.1,3.551a1.144,1.144,0,0,1,.031,1.581l-.028.028a1.092,1.092,0,0,1-1.551-.031L5.405,3.957,5.4,11A.978.978,0,0,1,4.381,12.068Z" transform="translate(31.322 14.399) rotate(-135)"/><path class="g" d="M4.381,12.068h0a1.135,1.135,0,0,1-1.093-1.114L3.095,3.968,1.934,5.152A1.092,1.092,0,0,1,.384,5.121h0A1.144,1.144,0,0,1,.353,3.54L3.447.384A.926.926,0,0,1,4.23.055a1.058,1.058,0,0,1,.8.361L8.1,3.551a1.144,1.144,0,0,1,.031,1.581l-.028.028a1.092,1.092,0,0,1-1.551-.031L5.405,3.957,5.4,11A.978.978,0,0,1,4.381,12.068Z" transform="translate(8.218 22.62) rotate(45)"/></g><g transform="translate(34.793 19.558)"><path class="a" d="M21.207,0C32.92,0,42.414,9.085,42.414,20.292S32.92,40.583,21.207,40.583,0,31.5,0,20.292,9.5,0,21.207,0Z"/><path class="g" d="M23.193,0a4.547,4.547,0,0,1-4.639,4.44A4.547,4.547,0,0,1,13.915,0H0A20.29,20.29,0,0,0,8.193,11.414H28.916A20.3,20.3,0,0,0,37.11,0Z" transform="translate(2.654 25.363)"/><path class="g" d="M1.325,11.414a1.269,1.269,0,1,0,0,2.536,1.269,1.269,0,1,0,0-2.536ZM3.976,5.073a1.269,1.269,0,1,0,0,2.536,1.269,1.269,0,1,0,0-2.536ZM9.278,0A1.3,1.3,0,0,0,7.953,1.268a1.327,1.327,0,0,0,2.651,0A1.3,1.3,0,0,0,9.278,0ZM27.834,11.414a1.269,1.269,0,1,0,1.325,1.268A1.3,1.3,0,0,0,27.834,11.414ZM25.183,5.073a1.269,1.269,0,1,0,1.325,1.268A1.3,1.3,0,0,0,25.183,5.073ZM19.882,0a1.3,1.3,0,0,0-1.325,1.268,1.327,1.327,0,0,0,2.651,0A1.3,1.3,0,0,0,19.882,0Z" transform="translate(6.627 7.609)"/><path class="g" d="M2.651,0C4.114,0,5.3,13.279,5.3,14.681a2.6,2.6,0,0,1-2.651,2.536A2.6,2.6,0,0,1,0,14.681C0,13.279,1.188,0,2.651,0Z" transform="translate(18.556 10.684)"/><path class="g" d="M21.207,0C9.5,0,0,9.085,0,20.292S9.5,40.583,21.207,40.583,42.414,31.5,42.414,20.292,32.92,0,21.207,0Zm0,36.778c-9.5,0-17.231-7.4-17.231-16.487S11.706,3.8,21.207,3.8s17.231,7.4,17.231,16.487S30.708,36.778,21.207,36.778Z"/></g><g transform="translate(293.34 96.374) rotate(-49)"><path class="a" d="M20.5.27A21.878,21.878,0,0,1,41.642,21.536,19.689,19.689,0,0,1,21.41,41.9,21.879,21.879,0,0,1,.271,20.63,19.689,19.689,0,0,1,20.5.27Z" transform="translate(0 0)"/><path class="g" d="M22.622.5A4.312,4.312,0,0,1,18.2,4.951,4.791,4.791,0,0,1,13.572.3h0L0,0A22.06,22.06,0,0,0,8.246,11.882l20.214.443A19.627,19.627,0,0,0,36.2.793Z" transform="translate(2.972 25.888)"/><path class="g" d="M1.434,11.655A1.231,1.231,0,0,0,.169,12.927,1.368,1.368,0,0,0,1.49,14.256a1.23,1.23,0,0,0,1.265-1.273A1.367,1.367,0,0,0,1.434,11.655ZM3.878,5.207A1.231,1.231,0,0,0,2.613,6.48,1.368,1.368,0,0,0,3.935,7.809,1.23,1.23,0,0,0,5.2,6.537,1.367,1.367,0,0,0,3.878,5.207ZM8.936.117A1.231,1.231,0,0,0,7.671,1.39,1.367,1.367,0,0,0,8.993,2.719a1.23,1.23,0,0,0,1.265-1.272A1.367,1.367,0,0,0,8.936.117Zm18.355,12.1a1.231,1.231,0,0,0-1.265,1.272,1.368,1.368,0,0,0,1.321,1.329,1.23,1.23,0,0,0,1.265-1.273A1.367,1.367,0,0,0,27.291,12.221ZM24.564,5.661A1.231,1.231,0,0,0,23.3,6.933,1.368,1.368,0,0,0,24.62,8.262,1.23,1.23,0,0,0,25.885,6.99,1.367,1.367,0,0,0,24.564,5.661ZM19.279.344a1.231,1.231,0,0,0-1.265,1.272,1.367,1.367,0,0,0,1.321,1.329A1.23,1.23,0,0,0,20.6,1.673,1.367,1.367,0,0,0,19.279.344Z" transform="translate(6.566 7.844)"/><path class="g" d="M2.455.032C3.882.064,5.337,13.709,5.368,15.147a2.462,2.462,0,0,1-2.529,2.545A2.736,2.736,0,0,1,.2,15.033C.166,13.6,1.027,0,2.455.032Z" transform="translate(18.287 11.196)"/><path class="g" d="M20.5.27A19.689,19.689,0,0,0,.271,20.63,21.879,21.879,0,0,0,21.41,41.9a19.689,19.689,0,0,0,20.233-20.36A21.878,21.878,0,0,0,20.5.27Zm.821,37.723A17.8,17.8,0,0,1,4.149,20.715,16.015,16.015,0,0,1,20.588,4.173,17.8,17.8,0,0,1,37.763,21.451,16.015,16.015,0,0,1,21.325,37.993Z" transform="translate(0 0)"/></g><g transform="translate(360.34 206.41) rotate(-49)"><path class="a" d="M20.5.27A21.878,21.878,0,0,1,41.642,21.536,19.689,19.689,0,0,1,21.41,41.9,21.879,21.879,0,0,1,.271,20.63,19.689,19.689,0,0,1,20.5.27Z" transform="translate(0 0)"/><path class="g" d="M22.622.5A4.312,4.312,0,0,1,18.2,4.951,4.791,4.791,0,0,1,13.572.3h0L0,0A22.06,22.06,0,0,0,8.246,11.882l20.214.443A19.627,19.627,0,0,0,36.2.793Z" transform="translate(2.972 25.888)"/><path class="g" d="M1.434,11.655A1.231,1.231,0,0,0,.169,12.927,1.368,1.368,0,0,0,1.49,14.256a1.23,1.23,0,0,0,1.265-1.273A1.367,1.367,0,0,0,1.434,11.655ZM3.878,5.207A1.231,1.231,0,0,0,2.613,6.48,1.368,1.368,0,0,0,3.935,7.809,1.23,1.23,0,0,0,5.2,6.537,1.367,1.367,0,0,0,3.878,5.207ZM8.936.117A1.231,1.231,0,0,0,7.671,1.39,1.367,1.367,0,0,0,8.993,2.719a1.23,1.23,0,0,0,1.265-1.272A1.367,1.367,0,0,0,8.936.117Zm18.355,12.1a1.231,1.231,0,0,0-1.265,1.272,1.368,1.368,0,0,0,1.321,1.329,1.23,1.23,0,0,0,1.265-1.273A1.367,1.367,0,0,0,27.291,12.221ZM24.564,5.661A1.231,1.231,0,0,0,23.3,6.933,1.368,1.368,0,0,0,24.62,8.262,1.23,1.23,0,0,0,25.885,6.99,1.367,1.367,0,0,0,24.564,5.661ZM19.279.344a1.231,1.231,0,0,0-1.265,1.272,1.367,1.367,0,0,0,1.321,1.329A1.23,1.23,0,0,0,20.6,1.673,1.367,1.367,0,0,0,19.279.344Z" transform="translate(6.566 7.844)"/><path class="g" d="M2.455.032C3.882.064,5.337,13.709,5.368,15.147a2.462,2.462,0,0,1-2.529,2.545A2.736,2.736,0,0,1,.2,15.033C.166,13.6,1.027,0,2.455.032Z" transform="translate(18.287 11.196)"/><path class="g" d="M20.5.27A19.689,19.689,0,0,0,.271,20.63,21.879,21.879,0,0,0,21.41,41.9a19.689,19.689,0,0,0,20.233-20.36A21.878,21.878,0,0,0,20.5.27Zm.821,37.723A17.8,17.8,0,0,1,4.149,20.715,16.015,16.015,0,0,1,20.588,4.173,17.8,17.8,0,0,1,37.763,21.451,16.015,16.015,0,0,1,21.325,37.993Z" transform="translate(0 0)"/></g><g transform="translate(245.872 332.123) rotate(-49)"><path class="a" d="M24.283.32A25.912,25.912,0,0,1,49.319,25.506,23.318,23.318,0,0,1,25.357,49.619,25.913,25.913,0,0,1,.321,24.433,23.319,23.319,0,0,1,24.283.32Z" transform="translate(0 0)"/><path class="g" d="M26.793.587a5.107,5.107,0,0,1-5.242,5.276A5.675,5.675,0,0,1,16.075.354v0L0,0A26.126,26.126,0,0,0,9.766,14.073l23.94.524A23.245,23.245,0,0,0,42.871.939Z" transform="translate(3.52 30.66)"/><path class="g" d="M1.7,13.8A1.458,1.458,0,0,0,.2,15.31a1.62,1.62,0,0,0,1.565,1.574,1.457,1.457,0,0,0,1.5-1.507A1.619,1.619,0,0,0,1.7,13.8ZM4.593,6.167A1.458,1.458,0,0,0,3.1,7.674,1.62,1.62,0,0,0,4.66,9.249a1.457,1.457,0,0,0,1.5-1.507A1.619,1.619,0,0,0,4.593,6.167ZM10.583.139a1.458,1.458,0,0,0-1.5,1.507A1.619,1.619,0,0,0,10.65,3.22a1.456,1.456,0,0,0,1.5-1.507A1.619,1.619,0,0,0,10.583.139ZM32.322,14.474a1.458,1.458,0,0,0-1.5,1.507,1.62,1.62,0,0,0,1.565,1.574,1.457,1.457,0,0,0,1.5-1.507A1.619,1.619,0,0,0,32.322,14.474ZM29.092,6.7a1.458,1.458,0,0,0-1.5,1.507,1.62,1.62,0,0,0,1.565,1.574,1.457,1.457,0,0,0,1.5-1.507A1.619,1.619,0,0,0,29.092,6.7ZM22.833.407a1.458,1.458,0,0,0-1.5,1.507A1.619,1.619,0,0,0,22.9,3.489a1.456,1.456,0,0,0,1.5-1.507A1.619,1.619,0,0,0,22.833.407Z" transform="translate(7.776 9.29)"/><path class="g" d="M2.907.038c1.69.037,3.414,16.2,3.451,17.9a2.916,2.916,0,0,1-3,3.014A3.24,3.24,0,0,1,.233,17.8C.2,16.1,1.217,0,2.907.038Z" transform="translate(21.659 13.26)"/><path class="g" d="M24.283.32A23.319,23.319,0,0,0,.321,24.433,25.913,25.913,0,0,0,25.357,49.619,23.318,23.318,0,0,0,49.319,25.506,25.912,25.912,0,0,0,24.283.32ZM25.256,45A21.078,21.078,0,0,1,4.914,24.533,18.967,18.967,0,0,1,24.384,4.942,21.078,21.078,0,0,1,44.726,25.406,18.967,18.967,0,0,1,25.256,45Z" transform="translate(0 0)"/></g></g><g transform="translate(1254.266 509.588) rotate(-90)"><g transform="translate(0 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(207 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(53.459 21.503)"><path class="g" d="M23.264,0C10.436,0,0,9.984,0,22.258S10.436,44.517,23.264,44.517s23.264-9.984,23.264-22.258S36.093,0,23.264,0Z" transform="translate(0 0)"/><path class="a" d="M23.74,15.823a8.938,8.938,0,0,1,3.805,7.26,9.291,9.291,0,0,1-9.478,9.068,9.292,9.292,0,0,1-9.478-9.068,8.939,8.939,0,0,1,3.805-7.26A23.387,23.387,0,0,1,0,8.25,23.641,23.641,0,0,1,18.067,0,23.641,23.641,0,0,1,36.134,8.25,23.387,23.387,0,0,1,23.74,15.823Z" transform="translate(5.198 0)"/></g><g transform="translate(375.962 342.91) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(197.962 205.125) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(65.862 221.083)"><path class="h" d="M4.453,31.19H31.2a4.36,4.36,0,0,0,4.453-4.261V4.261A4.36,4.36,0,0,0,31.2,0H4.453A4.36,4.36,0,0,0,0,4.261V26.929A4.36,4.36,0,0,0,4.453,31.19Z" transform="translate(12.329 10.263)"/><g transform="translate(15.292 15.719)"><path class="a" d="M30.757,0,23.13,7.371a.86.86,0,0,1-1.175,0L18,3.552,11.427,9.909a.864.864,0,0,1-1.176,0L0,0Zm0,0"/><path class="a" d="M5.7,2.729A2.793,2.793,0,0,0,2.852,0,2.793,2.793,0,0,0,0,2.729,2.793,2.793,0,0,0,2.852,5.458,2.793,2.793,0,0,0,5.7,2.729Zm0,0" transform="translate(18.472 12.59)"/></g><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(60.134 43.905) rotate(135)"/><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(0 8.653) rotate(-45)"/></g><g transform="translate(145.394 130.86)"><path class="h" d="M3.041,21.3H21.308a2.978,2.978,0,0,0,3.041-2.91V2.91A2.978,2.978,0,0,0,21.308,0H3.041A2.978,2.978,0,0,0,0,2.91V18.392A2.978,2.978,0,0,0,3.041,21.3Z" transform="translate(8.42 7.009)"/><g transform="translate(10.444 10.735)"><path class="a" d="M21.006,0,15.8,5.034a.587.587,0,0,1-.8,0L12.3,2.426,7.8,6.768a.59.59,0,0,1-.8,0L0,0Zm0,0"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,0,1.948,0,1.907,1.907,0,0,0,0,1.864,1.907,1.907,0,0,0,1.948,3.727,1.907,1.907,0,0,0,3.9,1.864Zm0,0" transform="translate(12.616 8.599)"/></g><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(41.069 29.985) rotate(135)"/><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(0 5.909) rotate(-45)"/></g><g transform="matrix(0.819, -0.574, 0.574, 0.819, 348.409, 22.979)"><path class="h" d="M3.424,21.655l18.007.37a2.831,2.831,0,0,0,2.936-2.891L24.04,3.422A3.129,3.129,0,0,0,20.98.407L2.973.037A2.831,2.831,0,0,0,.037,2.928L.365,18.64A3.129,3.129,0,0,0,3.424,21.655Z" transform="translate(8.47 7.21)"/><g transform="translate(10.519 11.008)"><path class="a" d="M20.707.426l-5.028,5a.567.567,0,0,1-.791-.016l-2.715-2.7L7.837,7.026a.57.57,0,0,1-.792-.016L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.864,1.955A2,2,0,0,0,1.9.024,1.813,1.813,0,0,0,.024,1.876a2,2,0,0,0,1.96,1.931A1.813,1.813,0,0,0,3.864,1.955Zm0,0" transform="translate(12.635 8.998)"/></g><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(41.166 31.152) rotate(135)"/><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(0.074 5.912) rotate(-45)"/></g><g transform="matrix(0.788, -0.616, 0.616, 0.788, 171.264, 68.387)"><path class="h" d="M3.432,21.7l17.968.382a2.826,2.826,0,0,0,2.928-2.9L23.989,3.444A3.134,3.134,0,0,0,20.934.421L2.966.038a2.826,2.826,0,0,0-2.928,2.9L.377,18.68A3.134,3.134,0,0,0,3.432,21.7Z" transform="translate(8.463 7.223)"/><g transform="translate(10.51 11.03)"><path class="a" d="M20.662.44,15.649,5.451a.564.564,0,0,1-.789-.017L12.148,2.725,7.825,7.047a.567.567,0,0,1-.79-.017L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.856,1.961A2.008,2.008,0,0,0,1.9.024,1.81,1.81,0,0,0,.024,1.879,2.008,2.008,0,0,0,1.981,3.816,1.81,1.81,0,0,0,3.856,1.961Zm0,0" transform="translate(12.614 9.026)"/></g><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(41.111 31.236) rotate(135)"/><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(0.076 5.918) rotate(-45)"/></g><g transform="translate(33.171 150.667) rotate(-77)"><path class="h" d="M3.116,22.231l17.518.173A2.909,2.909,0,0,0,23.522,19.4L23.369,3.253A3.048,3.048,0,0,0,20.423.19L2.905.017A2.909,2.909,0,0,0,.017,3.023L.17,19.167A3.048,3.048,0,0,0,3.116,22.231Z" transform="translate(8.268 7.233)"/><g transform="translate(10.235 11.126)"><path class="a" d="M20.145.2,15.2,5.4a.531.531,0,0,1-.77-.008L11.816,2.646,7.551,7.131a.533.533,0,0,1-.77-.008L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.747,1.973A1.952,1.952,0,0,0,1.861.011,1.863,1.863,0,0,0,.011,1.936,1.952,1.952,0,0,0,1.9,3.9,1.863,1.863,0,0,0,3.747,1.973Zm0,0" transform="translate(12.191 9.094)"/></g><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(39.933 31.451) rotate(135)"/><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(0.035 6.035) rotate(-45)"/></g><g transform="translate(34.793 312.556)"><path class="a" d="M21.207,40.583c11.713,0,21.207-9.085,21.207-20.292S32.92,0,21.207,0,0,9.086,0,20.292,9.5,40.583,21.207,40.583Z" transform="translate(0 0)"/><path class="g" d="M23.193,11.414a4.547,4.547,0,0,0-4.639-4.44,4.547,4.547,0,0,0-4.639,4.439H0A20.29,20.29,0,0,1,8.193,0H28.916A20.3,20.3,0,0,1,37.11,11.414Z" transform="translate(2.654 3.806)"/><path class="g" d="M1.325,2.536A1.3,1.3,0,0,1,0,1.268,1.3,1.3,0,0,1,1.325,0,1.3,1.3,0,0,1,2.651,1.268,1.3,1.3,0,0,1,1.325,2.536ZM3.976,8.878a1.269,1.269,0,1,1,0-2.536,1.269,1.269,0,1,1,0,2.536Zm5.3,5.073A1.269,1.269,0,1,1,10.6,12.682,1.3,1.3,0,0,1,9.278,13.95ZM27.834,2.536a1.3,1.3,0,0,1-1.325-1.268,1.327,1.327,0,0,1,2.651,0A1.3,1.3,0,0,1,27.834,2.536ZM25.183,8.878a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,25.183,8.878Zm-5.3,5.073a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,19.882,13.95Z" transform="translate(6.627 19.023)"/><path class="g" d="M2.651,17.217C4.114,17.217,5.3,3.938,5.3,2.536A2.6,2.6,0,0,0,2.651,0,2.6,2.6,0,0,0,0,2.536C0,3.938,1.188,17.217,2.651,17.217Z" transform="translate(18.556 12.682)"/><path class="g" d="M21.207,40.583C9.5,40.583,0,31.5,0,20.292S9.5,0,21.207,0,42.414,9.085,42.414,20.292,32.92,40.583,21.207,40.583Zm0-36.778c-9.5,0-17.231,7.4-17.231,16.487s7.73,16.487,17.231,16.487,17.231-7.4,17.231-16.487S30.708,3.8,21.207,3.8Z" transform="translate(0 0)"/></g><g transform="translate(265.11 303.967) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(392.11 139.39) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(283.499 8.72) rotate(49)"><path class="a" d="M23.638,48.976A25.912,25.912,0,0,0,48.674,23.789,23.318,23.318,0,0,0,24.712-.324,25.913,25.913,0,0,0-.324,24.863,23.319,23.319,0,0,0,23.638,48.976Z" transform="translate(0 0)"/><path class="g" d="M26.608,13.57a5.107,5.107,0,0,0-5.242-5.276,5.675,5.675,0,0,0-5.477,5.51v0l-16.075.352A26.126,26.126,0,0,1,9.581.084L33.521-.44a23.245,23.245,0,0,1,9.164,13.658Z" transform="translate(3.06 4.478)"/><path class="g" d="M1.474,3.33a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,1.541.249a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,1.474,3.33Zm2.895,7.636a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,4.436,7.884a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,4.369,10.966Zm5.991,6.028a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,10.359,16.994ZM32.1,2.659a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,32.165-.422a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,32.1,2.659Zm-3.23,7.77a1.458,1.458,0,0,1-1.5-1.507,1.62,1.62,0,0,1,1.565-1.574,1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,28.868,10.429Zm-6.259,6.3a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,22.609,16.726Z" transform="translate(7.355 22.872)"/><path class="g" d="M2.634,20.874c1.69-.037,3.414-16.2,3.451-17.9a2.916,2.916,0,0,0-3-3.014A3.24,3.24,0,0,0-.041,3.108C-.078,4.81.943,20.911,2.634,20.874Z" transform="translate(21.287 15.123)"/><path class="g" d="M23.638,48.976A23.319,23.319,0,0,1-.324,24.863,25.913,25.913,0,0,1,24.712-.324,23.318,23.318,0,0,1,48.674,23.789,25.912,25.912,0,0,1,23.638,48.976ZM24.611,4.3A21.078,21.078,0,0,0,4.269,24.762a18.967,18.967,0,0,0,19.47,19.592A21.078,21.078,0,0,0,44.081,23.89,18.967,18.967,0,0,0,24.611,4.3Z" transform="translate(0 0)"/></g></g><g transform="translate(792.112 923.588) rotate(-90)"><g transform="translate(0 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(207 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(53.459 21.503)"><path class="g" d="M23.264,0C10.436,0,0,9.984,0,22.258S10.436,44.517,23.264,44.517s23.264-9.984,23.264-22.258S36.093,0,23.264,0Z" transform="translate(0 0)"/><path class="a" d="M23.74,15.823a8.938,8.938,0,0,1,3.805,7.26,9.291,9.291,0,0,1-9.478,9.068,9.292,9.292,0,0,1-9.478-9.068,8.939,8.939,0,0,1,3.805-7.26A23.387,23.387,0,0,1,0,8.25,23.641,23.641,0,0,1,18.067,0,23.641,23.641,0,0,1,36.134,8.25,23.387,23.387,0,0,1,23.74,15.823Z" transform="translate(5.198 0)"/></g><g transform="translate(375.962 342.91) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(197.962 205.125) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(65.862 221.083)"><path class="h" d="M4.453,31.19H31.2a4.36,4.36,0,0,0,4.453-4.261V4.261A4.36,4.36,0,0,0,31.2,0H4.453A4.36,4.36,0,0,0,0,4.261V26.929A4.36,4.36,0,0,0,4.453,31.19Z" transform="translate(12.329 10.263)"/><g transform="translate(15.292 15.719)"><path class="a" d="M30.757,0,23.13,7.371a.86.86,0,0,1-1.175,0L18,3.552,11.427,9.909a.864.864,0,0,1-1.176,0L0,0Zm0,0"/><path class="a" d="M5.7,2.729A2.793,2.793,0,0,0,2.852,0,2.793,2.793,0,0,0,0,2.729,2.793,2.793,0,0,0,2.852,5.458,2.793,2.793,0,0,0,5.7,2.729Zm0,0" transform="translate(18.472 12.59)"/></g><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(60.134 43.905) rotate(135)"/><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(0 8.653) rotate(-45)"/></g><g transform="translate(145.394 130.86)"><path class="h" d="M3.041,21.3H21.308a2.978,2.978,0,0,0,3.041-2.91V2.91A2.978,2.978,0,0,0,21.308,0H3.041A2.978,2.978,0,0,0,0,2.91V18.392A2.978,2.978,0,0,0,3.041,21.3Z" transform="translate(8.42 7.009)"/><g transform="translate(10.444 10.735)"><path class="a" d="M21.006,0,15.8,5.034a.587.587,0,0,1-.8,0L12.3,2.426,7.8,6.768a.59.59,0,0,1-.8,0L0,0Zm0,0"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,0,1.948,0,1.907,1.907,0,0,0,0,1.864,1.907,1.907,0,0,0,1.948,3.727,1.907,1.907,0,0,0,3.9,1.864Zm0,0" transform="translate(12.616 8.599)"/></g><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(41.069 29.985) rotate(135)"/><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(0 5.909) rotate(-45)"/></g><g transform="translate(296.394 247.595)"><path class="h" d="M3.041,21.3H21.308a2.978,2.978,0,0,0,3.041-2.91V2.91A2.978,2.978,0,0,0,21.308,0H3.041A2.978,2.978,0,0,0,0,2.91V18.392A2.978,2.978,0,0,0,3.041,21.3Z" transform="translate(8.42 7.009)"/><g transform="translate(10.444 10.735)"><path class="a" d="M21.006,0,15.8,5.034a.587.587,0,0,1-.8,0L12.3,2.426,7.8,6.768a.59.59,0,0,1-.8,0L0,0Zm0,0"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,0,1.948,0,1.907,1.907,0,0,0,0,1.864,1.907,1.907,0,0,0,1.948,3.727,1.907,1.907,0,0,0,3.9,1.864Zm0,0" transform="translate(12.616 8.599)"/></g><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(41.069 29.985) rotate(135)"/><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(0 5.909) rotate(-45)"/></g><g transform="matrix(0.819, -0.574, 0.574, 0.819, 348.409, 22.979)"><path class="h" d="M3.424,21.655l18.007.37a2.831,2.831,0,0,0,2.936-2.891L24.04,3.422A3.129,3.129,0,0,0,20.98.407L2.973.037A2.831,2.831,0,0,0,.037,2.928L.365,18.64A3.129,3.129,0,0,0,3.424,21.655Z" transform="translate(8.47 7.21)"/><g transform="translate(10.519 11.008)"><path class="a" d="M20.707.426l-5.028,5a.567.567,0,0,1-.791-.016l-2.715-2.7L7.837,7.026a.57.57,0,0,1-.792-.016L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.864,1.955A2,2,0,0,0,1.9.024,1.813,1.813,0,0,0,.024,1.876a2,2,0,0,0,1.96,1.931A1.813,1.813,0,0,0,3.864,1.955Zm0,0" transform="translate(12.635 8.998)"/></g><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(41.166 31.152) rotate(135)"/><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(0.074 5.912) rotate(-45)"/></g><g transform="matrix(0.788, -0.616, 0.616, 0.788, 171.264, 68.387)"><path class="h" d="M3.432,21.7l17.968.382a2.826,2.826,0,0,0,2.928-2.9L23.989,3.444A3.134,3.134,0,0,0,20.934.421L2.966.038a2.826,2.826,0,0,0-2.928,2.9L.377,18.68A3.134,3.134,0,0,0,3.432,21.7Z" transform="translate(8.463 7.223)"/><g transform="translate(10.51 11.03)"><path class="a" d="M20.662.44,15.649,5.451a.564.564,0,0,1-.789-.017L12.148,2.725,7.825,7.047a.567.567,0,0,1-.79-.017L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.856,1.961A2.008,2.008,0,0,0,1.9.024,1.81,1.81,0,0,0,.024,1.879,2.008,2.008,0,0,0,1.981,3.816,1.81,1.81,0,0,0,3.856,1.961Zm0,0" transform="translate(12.614 9.026)"/></g><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(41.111 31.236) rotate(135)"/><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(0.076 5.918) rotate(-45)"/></g><g transform="translate(33.171 150.667) rotate(-77)"><path class="h" d="M3.116,22.231l17.518.173A2.909,2.909,0,0,0,23.522,19.4L23.369,3.253A3.048,3.048,0,0,0,20.423.19L2.905.017A2.909,2.909,0,0,0,.017,3.023L.17,19.167A3.048,3.048,0,0,0,3.116,22.231Z" transform="translate(8.268 7.233)"/><g transform="translate(10.235 11.126)"><path class="a" d="M20.145.2,15.2,5.4a.531.531,0,0,1-.77-.008L11.816,2.646,7.551,7.131a.533.533,0,0,1-.77-.008L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.747,1.973A1.952,1.952,0,0,0,1.861.011,1.863,1.863,0,0,0,.011,1.936,1.952,1.952,0,0,0,1.9,3.9,1.863,1.863,0,0,0,3.747,1.973Zm0,0" transform="translate(12.191 9.094)"/></g><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(39.933 31.451) rotate(135)"/><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(0.035 6.035) rotate(-45)"/></g><g transform="translate(34.793 312.556)"><path class="a" d="M21.207,40.583c11.713,0,21.207-9.085,21.207-20.292S32.92,0,21.207,0,0,9.086,0,20.292,9.5,40.583,21.207,40.583Z" transform="translate(0 0)"/><path class="g" d="M23.193,11.414a4.547,4.547,0,0,0-4.639-4.44,4.547,4.547,0,0,0-4.639,4.439H0A20.29,20.29,0,0,1,8.193,0H28.916A20.3,20.3,0,0,1,37.11,11.414Z" transform="translate(2.654 3.806)"/><path class="g" d="M1.325,2.536A1.3,1.3,0,0,1,0,1.268,1.3,1.3,0,0,1,1.325,0,1.3,1.3,0,0,1,2.651,1.268,1.3,1.3,0,0,1,1.325,2.536ZM3.976,8.878a1.269,1.269,0,1,1,0-2.536,1.269,1.269,0,1,1,0,2.536Zm5.3,5.073A1.269,1.269,0,1,1,10.6,12.682,1.3,1.3,0,0,1,9.278,13.95ZM27.834,2.536a1.3,1.3,0,0,1-1.325-1.268,1.327,1.327,0,0,1,2.651,0A1.3,1.3,0,0,1,27.834,2.536ZM25.183,8.878a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,25.183,8.878Zm-5.3,5.073a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,19.882,13.95Z" transform="translate(6.627 19.023)"/><path class="g" d="M2.651,17.217C4.114,17.217,5.3,3.938,5.3,2.536A2.6,2.6,0,0,0,2.651,0,2.6,2.6,0,0,0,0,2.536C0,3.938,1.188,17.217,2.651,17.217Z" transform="translate(18.556 12.682)"/><path class="g" d="M21.207,40.583C9.5,40.583,0,31.5,0,20.292S9.5,0,21.207,0,42.414,9.085,42.414,20.292,32.92,40.583,21.207,40.583Zm0-36.778c-9.5,0-17.231,7.4-17.231,16.487s7.73,16.487,17.231,16.487,17.231-7.4,17.231-16.487S30.708,3.8,21.207,3.8Z" transform="translate(0 0)"/></g><g transform="translate(265.11 303.967) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(392.11 139.39) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(283.499 8.72) rotate(49)"><path class="a" d="M23.638,48.976A25.912,25.912,0,0,0,48.674,23.789,23.318,23.318,0,0,0,24.712-.324,25.913,25.913,0,0,0-.324,24.863,23.319,23.319,0,0,0,23.638,48.976Z" transform="translate(0 0)"/><path class="g" d="M26.608,13.57a5.107,5.107,0,0,0-5.242-5.276,5.675,5.675,0,0,0-5.477,5.51v0l-16.075.352A26.126,26.126,0,0,1,9.581.084L33.521-.44a23.245,23.245,0,0,1,9.164,13.658Z" transform="translate(3.06 4.478)"/><path class="g" d="M1.474,3.33a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,1.541.249a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,1.474,3.33Zm2.895,7.636a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,4.436,7.884a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,4.369,10.966Zm5.991,6.028a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,10.359,16.994ZM32.1,2.659a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,32.165-.422a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,32.1,2.659Zm-3.23,7.77a1.458,1.458,0,0,1-1.5-1.507,1.62,1.62,0,0,1,1.565-1.574,1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,28.868,10.429Zm-6.259,6.3a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,22.609,16.726Z" transform="translate(7.355 22.872)"/><path class="g" d="M2.634,20.874c1.69-.037,3.414-16.2,3.451-17.9a2.916,2.916,0,0,0-3-3.014A3.24,3.24,0,0,0-.041,3.108C-.078,4.81.943,20.911,2.634,20.874Z" transform="translate(21.287 15.123)"/><path class="g" d="M23.638,48.976A23.319,23.319,0,0,1-.324,24.863,25.913,25.913,0,0,1,24.712-.324,23.318,23.318,0,0,1,48.674,23.789,25.912,25.912,0,0,1,23.638,48.976ZM24.611,4.3A21.078,21.078,0,0,0,4.269,24.762a18.967,18.967,0,0,0,19.47,19.592A21.078,21.078,0,0,0,44.081,23.89,18.967,18.967,0,0,0,24.611,4.3Z" transform="translate(0 0)"/></g></g><g transform="translate(20.899 937.588) rotate(-90)"><g transform="translate(0 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(207 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(53.459 21.503)"><path class="g" d="M23.264,0C10.436,0,0,9.984,0,22.258S10.436,44.517,23.264,44.517s23.264-9.984,23.264-22.258S36.093,0,23.264,0Z" transform="translate(0 0)"/><path class="a" d="M23.74,15.823a8.938,8.938,0,0,1,3.805,7.26,9.291,9.291,0,0,1-9.478,9.068,9.292,9.292,0,0,1-9.478-9.068,8.939,8.939,0,0,1,3.805-7.26A23.387,23.387,0,0,1,0,8.25,23.641,23.641,0,0,1,18.067,0,23.641,23.641,0,0,1,36.134,8.25,23.387,23.387,0,0,1,23.74,15.823Z" transform="translate(5.198 0)"/></g><g transform="translate(375.962 342.91) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(197.962 205.125) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(65.862 221.083)"><path class="h" d="M4.453,31.19H31.2a4.36,4.36,0,0,0,4.453-4.261V4.261A4.36,4.36,0,0,0,31.2,0H4.453A4.36,4.36,0,0,0,0,4.261V26.929A4.36,4.36,0,0,0,4.453,31.19Z" transform="translate(12.329 10.263)"/><g transform="translate(15.292 15.719)"><path class="a" d="M30.757,0,23.13,7.371a.86.86,0,0,1-1.175,0L18,3.552,11.427,9.909a.864.864,0,0,1-1.176,0L0,0Zm0,0"/><path class="a" d="M5.7,2.729A2.793,2.793,0,0,0,2.852,0,2.793,2.793,0,0,0,0,2.729,2.793,2.793,0,0,0,2.852,5.458,2.793,2.793,0,0,0,5.7,2.729Zm0,0" transform="translate(18.472 12.59)"/></g><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(60.134 43.905) rotate(135)"/><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(0 8.653) rotate(-45)"/></g><g transform="translate(145.394 130.86)"><path class="h" d="M3.041,21.3H21.308a2.978,2.978,0,0,0,3.041-2.91V2.91A2.978,2.978,0,0,0,21.308,0H3.041A2.978,2.978,0,0,0,0,2.91V18.392A2.978,2.978,0,0,0,3.041,21.3Z" transform="translate(8.42 7.009)"/><g transform="translate(10.444 10.735)"><path class="a" d="M21.006,0,15.8,5.034a.587.587,0,0,1-.8,0L12.3,2.426,7.8,6.768a.59.59,0,0,1-.8,0L0,0Zm0,0"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,0,1.948,0,1.907,1.907,0,0,0,0,1.864,1.907,1.907,0,0,0,1.948,3.727,1.907,1.907,0,0,0,3.9,1.864Zm0,0" transform="translate(12.616 8.599)"/></g><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(41.069 29.985) rotate(135)"/><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(0 5.909) rotate(-45)"/></g><g transform="matrix(0.819, -0.574, 0.574, 0.819, 348.409, 22.979)"><path class="h" d="M3.424,21.655l18.007.37a2.831,2.831,0,0,0,2.936-2.891L24.04,3.422A3.129,3.129,0,0,0,20.98.407L2.973.037A2.831,2.831,0,0,0,.037,2.928L.365,18.64A3.129,3.129,0,0,0,3.424,21.655Z" transform="translate(8.47 7.21)"/><g transform="translate(10.519 11.008)"><path class="a" d="M20.707.426l-5.028,5a.567.567,0,0,1-.791-.016l-2.715-2.7L7.837,7.026a.57.57,0,0,1-.792-.016L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.864,1.955A2,2,0,0,0,1.9.024,1.813,1.813,0,0,0,.024,1.876a2,2,0,0,0,1.96,1.931A1.813,1.813,0,0,0,3.864,1.955Zm0,0" transform="translate(12.635 8.998)"/></g><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(41.166 31.152) rotate(135)"/><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(0.074 5.912) rotate(-45)"/></g><g transform="matrix(0.788, -0.616, 0.616, 0.788, 171.264, 68.387)"><path class="h" d="M3.432,21.7l17.968.382a2.826,2.826,0,0,0,2.928-2.9L23.989,3.444A3.134,3.134,0,0,0,20.934.421L2.966.038a2.826,2.826,0,0,0-2.928,2.9L.377,18.68A3.134,3.134,0,0,0,3.432,21.7Z" transform="translate(8.463 7.223)"/><g transform="translate(10.51 11.03)"><path class="a" d="M20.662.44,15.649,5.451a.564.564,0,0,1-.789-.017L12.148,2.725,7.825,7.047a.567.567,0,0,1-.79-.017L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.856,1.961A2.008,2.008,0,0,0,1.9.024,1.81,1.81,0,0,0,.024,1.879,2.008,2.008,0,0,0,1.981,3.816,1.81,1.81,0,0,0,3.856,1.961Zm0,0" transform="translate(12.614 9.026)"/></g><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(41.111 31.236) rotate(135)"/><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(0.076 5.918) rotate(-45)"/></g><g transform="translate(33.171 150.667) rotate(-77)"><path class="h" d="M3.116,22.231l17.518.173A2.909,2.909,0,0,0,23.522,19.4L23.369,3.253A3.048,3.048,0,0,0,20.423.19L2.905.017A2.909,2.909,0,0,0,.017,3.023L.17,19.167A3.048,3.048,0,0,0,3.116,22.231Z" transform="translate(8.268 7.233)"/><g transform="translate(10.235 11.126)"><path class="a" d="M20.145.2,15.2,5.4a.531.531,0,0,1-.77-.008L11.816,2.646,7.551,7.131a.533.533,0,0,1-.77-.008L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.747,1.973A1.952,1.952,0,0,0,1.861.011,1.863,1.863,0,0,0,.011,1.936,1.952,1.952,0,0,0,1.9,3.9,1.863,1.863,0,0,0,3.747,1.973Zm0,0" transform="translate(12.191 9.094)"/></g><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(39.933 31.451) rotate(135)"/><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(0.035 6.035) rotate(-45)"/></g><g transform="translate(34.793 312.556)"><path class="a" d="M21.207,40.583c11.713,0,21.207-9.085,21.207-20.292S32.92,0,21.207,0,0,9.086,0,20.292,9.5,40.583,21.207,40.583Z" transform="translate(0 0)"/><path class="g" d="M23.193,11.414a4.547,4.547,0,0,0-4.639-4.44,4.547,4.547,0,0,0-4.639,4.439H0A20.29,20.29,0,0,1,8.193,0H28.916A20.3,20.3,0,0,1,37.11,11.414Z" transform="translate(2.654 3.806)"/><path class="g" d="M1.325,2.536A1.3,1.3,0,0,1,0,1.268,1.3,1.3,0,0,1,1.325,0,1.3,1.3,0,0,1,2.651,1.268,1.3,1.3,0,0,1,1.325,2.536ZM3.976,8.878a1.269,1.269,0,1,1,0-2.536,1.269,1.269,0,1,1,0,2.536Zm5.3,5.073A1.269,1.269,0,1,1,10.6,12.682,1.3,1.3,0,0,1,9.278,13.95ZM27.834,2.536a1.3,1.3,0,0,1-1.325-1.268,1.327,1.327,0,0,1,2.651,0A1.3,1.3,0,0,1,27.834,2.536ZM25.183,8.878a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,25.183,8.878Zm-5.3,5.073a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,19.882,13.95Z" transform="translate(6.627 19.023)"/><path class="g" d="M2.651,17.217C4.114,17.217,5.3,3.938,5.3,2.536A2.6,2.6,0,0,0,2.651,0,2.6,2.6,0,0,0,0,2.536C0,3.938,1.188,17.217,2.651,17.217Z" transform="translate(18.556 12.682)"/><path class="g" d="M21.207,40.583C9.5,40.583,0,31.5,0,20.292S9.5,0,21.207,0,42.414,9.085,42.414,20.292,32.92,40.583,21.207,40.583Zm0-36.778c-9.5,0-17.231,7.4-17.231,16.487s7.73,16.487,17.231,16.487,17.231-7.4,17.231-16.487S30.708,3.8,21.207,3.8Z" transform="translate(0 0)"/></g><g transform="translate(265.11 303.967) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(392.11 139.39) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(283.499 8.72) rotate(49)"><path class="a" d="M23.638,48.976A25.912,25.912,0,0,0,48.674,23.789,23.318,23.318,0,0,0,24.712-.324,25.913,25.913,0,0,0-.324,24.863,23.319,23.319,0,0,0,23.638,48.976Z" transform="translate(0 0)"/><path class="g" d="M26.608,13.57a5.107,5.107,0,0,0-5.242-5.276,5.675,5.675,0,0,0-5.477,5.51v0l-16.075.352A26.126,26.126,0,0,1,9.581.084L33.521-.44a23.245,23.245,0,0,1,9.164,13.658Z" transform="translate(3.06 4.478)"/><path class="g" d="M1.474,3.33a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,1.541.249a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,1.474,3.33Zm2.895,7.636a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,4.436,7.884a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,4.369,10.966Zm5.991,6.028a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,10.359,16.994ZM32.1,2.659a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,32.165-.422a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,32.1,2.659Zm-3.23,7.77a1.458,1.458,0,0,1-1.5-1.507,1.62,1.62,0,0,1,1.565-1.574,1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,28.868,10.429Zm-6.259,6.3a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,22.609,16.726Z" transform="translate(7.355 22.872)"/><path class="g" d="M2.634,20.874c1.69-.037,3.414-16.2,3.451-17.9a2.916,2.916,0,0,0-3-3.014A3.24,3.24,0,0,0-.041,3.108C-.078,4.81.943,20.911,2.634,20.874Z" transform="translate(21.287 15.123)"/><path class="g" d="M23.638,48.976A23.319,23.319,0,0,1-.324,24.863,25.913,25.913,0,0,1,24.712-.324,23.318,23.318,0,0,1,48.674,23.789,25.912,25.912,0,0,1,23.638,48.976ZM24.611,4.3A21.078,21.078,0,0,0,4.269,24.762a18.967,18.967,0,0,0,19.47,19.592A21.078,21.078,0,0,0,44.081,23.89,18.967,18.967,0,0,0,24.611,4.3Z" transform="translate(0 0)"/></g></g><g transform="translate(1593.945 889.588) rotate(-90)"><g transform="translate(0 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(207 15.823)"><g transform="translate(0 0)"><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(59.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(133.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(113.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(40.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(65.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(51.403 167.624) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(27.193 89.919) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(28.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(106.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(67.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(0 271.099) rotate(-90)"/></g><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(221.582 350.025)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(295.43 144.856) rotate(-90)"/><ellipse class="f" cx="1.988" cy="2.079" rx="1.988" ry="2.079" transform="translate(275.43 65.438) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(202.293 9.163) rotate(-155)"/><ellipse class="f" cx="3.578" cy="3.424" rx="3.578" ry="3.424" transform="translate(227.787 278.236)"/><ellipse class="f" cx="3.424" cy="3.579" rx="3.424" ry="3.579" transform="translate(195.403 218.337) rotate(-90)"/><path class="f" d="M3.574-.036A3.363,3.363,0,0,1,7.066,3.357a3.649,3.649,0,0,1-3.61,3.511A3.363,3.363,0,0,1-.035,3.475,3.649,3.649,0,0,1,3.574-.036Z" transform="translate(189.193 89.919) rotate(-155)"/><path class="f" d="M2.076-.021A1.953,1.953,0,0,1,4.1,1.95a2.119,2.119,0,0,1-2.1,2.04A1.953,1.953,0,0,1-.021,2.019,2.119,2.119,0,0,1,2.076-.021Z" transform="translate(152.469 45.635) rotate(-155)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(190.645 242.448)"/><ellipse class="g" cx="4.737" cy="4.534" rx="4.737" ry="4.534" transform="translate(268.645 185.995)"/><path class="g" d="M4.538.047a4.831,4.831,0,0,1,4.648,4.78A4.452,4.452,0,0,1,4.695,9.45,4.831,4.831,0,0,1,.047,4.67,4.452,4.452,0,0,1,4.538.047Z" transform="translate(229.969 91.833) rotate(-65)"/><ellipse class="g" cx="4.533" cy="4.738" rx="4.533" ry="4.738" transform="translate(162 271.099) rotate(-90)"/></g><g transform="translate(179 318.342) rotate(45)"><path class="d" d="M.188.188,21.832-.289l-.477,21.643-21.643.477Z" transform="translate(0 0)"/><g transform="translate(0.102 2.468)"><path class="i" d="M8.329-.11A5.693,5.693,0,0,0,2.977,4.111,4.443,4.443,0,0,0-.107,8.138,3.976,3.976,0,0,0,2.72,12.093a4.459,4.459,0,0,0,4.822-1.6q.275.022.553.016a5.654,5.654,0,0,0,5.524-5.431A5.083,5.083,0,0,0,8.329-.11Z" transform="translate(6.688 4.405)"/><path class="g" d="M17.676-.195V-.234L3.449.08V.125a4.153,4.153,0,0,0-3.5,3.95A3.722,3.722,0,0,0,3.289,7.864a5.6,5.6,0,0,0,5.434,5.5A6.274,6.274,0,0,0,15.113,8.4a4.706,4.706,0,0,0,4.882-.881,4.561,4.561,0,0,0,1.4-4.7A4.278,4.278,0,0,0,17.676-.195Z" transform="translate(0 0)"/></g></g><g transform="translate(53.459 21.503)"><path class="g" d="M23.264,0C10.436,0,0,9.984,0,22.258S10.436,44.517,23.264,44.517s23.264-9.984,23.264-22.258S36.093,0,23.264,0Z" transform="translate(0 0)"/><path class="a" d="M23.74,15.823a8.938,8.938,0,0,1,3.805,7.26,9.291,9.291,0,0,1-9.478,9.068,9.292,9.292,0,0,1-9.478-9.068,8.939,8.939,0,0,1,3.805-7.26A23.387,23.387,0,0,1,0,8.25,23.641,23.641,0,0,1,18.067,0,23.641,23.641,0,0,1,36.134,8.25,23.387,23.387,0,0,1,23.74,15.823Z" transform="translate(5.198 0)"/></g><g transform="translate(375.962 342.91) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(197.962 205.125) rotate(-50)"><path class="g" d="M12.978.17A12.488,12.488,0,0,0,.171,13.077,13.869,13.869,0,0,0,13.549,26.554,12.488,12.488,0,0,0,26.356,13.648,13.869,13.869,0,0,0,12.978.17Z" transform="translate(0 0)"/><path class="a" d="M13.52,9.58a5.653,5.653,0,0,1,2.235,4.35,5.088,5.088,0,0,1-5.218,5.258A5.651,5.651,0,0,1,5.086,13.7,5.13,5.13,0,0,1,7.135,9.441,13.841,13.841,0,0,1,.062,4.8,12.434,12.434,0,0,1,10.124.133,13.679,13.679,0,0,1,20.4,5.244,12.345,12.345,0,0,1,13.52,9.58Z" transform="translate(2.854 0.037)"/></g><g transform="translate(65.862 221.083)"><path class="h" d="M4.453,31.19H31.2a4.36,4.36,0,0,0,4.453-4.261V4.261A4.36,4.36,0,0,0,31.2,0H4.453A4.36,4.36,0,0,0,0,4.261V26.929A4.36,4.36,0,0,0,4.453,31.19Z" transform="translate(12.329 10.263)"/><g transform="translate(15.292 15.719)"><path class="a" d="M30.757,0,23.13,7.371a.86.86,0,0,1-1.175,0L18,3.552,11.427,9.909a.864.864,0,0,1-1.176,0L0,0Zm0,0"/><path class="a" d="M5.7,2.729A2.793,2.793,0,0,0,2.852,0,2.793,2.793,0,0,0,0,2.729,2.793,2.793,0,0,0,2.852,5.458,2.793,2.793,0,0,0,5.7,2.729Zm0,0" transform="translate(18.472 12.59)"/></g><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(60.134 43.905) rotate(135)"/><path class="g" d="M6.081.081h0A1.5,1.5,0,0,0,4.532,1.63l.14,10.127L2.883,9.967A1.637,1.637,0,0,0,.59,9.917h0a1.637,1.637,0,0,0,.051,2.293l4.771,4.771a1.5,1.5,0,0,0,1.178.526,1.448,1.448,0,0,0,1.156-.474l4.362-4.362a1.637,1.637,0,0,0-.051-2.293l-.043-.043a1.637,1.637,0,0,0-2.293-.051L8.092,11.915,7.658,1.7A1.58,1.58,0,0,0,6.081.081Z" transform="translate(0 8.653) rotate(-45)"/></g><g transform="translate(145.394 130.86)"><path class="h" d="M3.041,21.3H21.308a2.978,2.978,0,0,0,3.041-2.91V2.91A2.978,2.978,0,0,0,21.308,0H3.041A2.978,2.978,0,0,0,0,2.91V18.392A2.978,2.978,0,0,0,3.041,21.3Z" transform="translate(8.42 7.009)"/><g transform="translate(10.444 10.735)"><path class="a" d="M21.006,0,15.8,5.034a.587.587,0,0,1-.8,0L12.3,2.426,7.8,6.768a.59.59,0,0,1-.8,0L0,0Zm0,0"/><path class="a" d="M3.9,1.864A1.907,1.907,0,0,0,1.948,0,1.907,1.907,0,0,0,0,1.864,1.907,1.907,0,0,0,1.948,3.727,1.907,1.907,0,0,0,3.9,1.864Zm0,0" transform="translate(12.616 8.599)"/></g><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(41.069 29.985) rotate(135)"/><path class="g" d="M4.153.055h0A1.025,1.025,0,0,0,3.1,1.113l.1,6.916L1.969,6.807A1.118,1.118,0,0,0,.4,6.773h0A1.118,1.118,0,0,0,.437,8.338L3.7,11.6a1.026,1.026,0,0,0,.8.359.989.989,0,0,0,.79-.324L8.269,8.653a1.118,1.118,0,0,0-.035-1.566l-.029-.029A1.118,1.118,0,0,0,6.64,7.024L5.526,8.138,5.23,1.16A1.079,1.079,0,0,0,4.153.055Z" transform="translate(0 5.909) rotate(-45)"/></g><g transform="matrix(0.819, -0.574, 0.574, 0.819, 348.409, 22.979)"><path class="h" d="M3.424,21.655l18.007.37a2.831,2.831,0,0,0,2.936-2.891L24.04,3.422A3.129,3.129,0,0,0,20.98.407L2.973.037A2.831,2.831,0,0,0,.037,2.928L.365,18.64A3.129,3.129,0,0,0,3.424,21.655Z" transform="translate(8.47 7.21)"/><g transform="translate(10.519 11.008)"><path class="a" d="M20.707.426l-5.028,5a.567.567,0,0,1-.791-.016l-2.715-2.7L7.837,7.026a.57.57,0,0,1-.792-.016L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.864,1.955A2,2,0,0,0,1.9.024,1.813,1.813,0,0,0,.024,1.876a2,2,0,0,0,1.96,1.931A1.813,1.813,0,0,0,3.864,1.955Zm0,0" transform="translate(12.635 8.998)"/></g><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(41.166 31.152) rotate(135)"/><path class="g" d="M4.11.019h0a1.063,1.063,0,0,0-1.051,1.1l0,7.06L1.876,6.946A1.062,1.062,0,0,0,.342,6.934h0a1.175,1.175,0,0,0,.012,1.6L3.5,11.811a.958.958,0,0,0,.783.355.978.978,0,0,0,.778-.343l2.96-3.086a1.175,1.175,0,0,0-.012-1.6l-.028-.029A1.062,1.062,0,0,0,6.448,7.1L5.342,8.251,5.15,1.131A1.044,1.044,0,0,0,4.11.019Z" transform="translate(0.074 5.912) rotate(-45)"/></g><g transform="matrix(0.788, -0.616, 0.616, 0.788, 171.264, 68.387)"><path class="h" d="M3.432,21.7l17.968.382a2.826,2.826,0,0,0,2.928-2.9L23.989,3.444A3.134,3.134,0,0,0,20.934.421L2.966.038a2.826,2.826,0,0,0-2.928,2.9L.377,18.68A3.134,3.134,0,0,0,3.432,21.7Z" transform="translate(8.463 7.223)"/><g transform="translate(10.51 11.03)"><path class="a" d="M20.662.44,15.649,5.451a.564.564,0,0,1-.789-.017L12.148,2.725,7.825,7.047a.567.567,0,0,1-.79-.017L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.856,1.961A2.008,2.008,0,0,0,1.9.024,1.81,1.81,0,0,0,.024,1.879,2.008,2.008,0,0,0,1.981,3.816,1.81,1.81,0,0,0,3.856,1.961Zm0,0" transform="translate(12.614 9.026)"/></g><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(41.111 31.236) rotate(135)"/><path class="g" d="M4.114.013h0a1.068,1.068,0,0,0-1.053,1.1L3.042,8.178,1.866,6.95A1.061,1.061,0,0,0,.334,6.942h0a1.177,1.177,0,0,0,.008,1.6l3.137,3.274a.952.952,0,0,0,.782.353.981.981,0,0,0,.778-.345L8,8.728A1.177,1.177,0,0,0,8,7.129L7.967,7.1a1.061,1.061,0,0,0-1.532-.008L5.327,8.248,5.151,1.124A1.039,1.039,0,0,0,4.114.013Z" transform="translate(0.076 5.918) rotate(-45)"/></g><g transform="translate(33.171 150.667) rotate(-77)"><path class="h" d="M3.116,22.231l17.518.173A2.909,2.909,0,0,0,23.522,19.4L23.369,3.253A3.048,3.048,0,0,0,20.423.19L2.905.017A2.909,2.909,0,0,0,.017,3.023L.17,19.167A3.048,3.048,0,0,0,3.116,22.231Z" transform="translate(8.268 7.233)"/><g transform="translate(10.235 11.126)"><path class="a" d="M20.145.2,15.2,5.4a.531.531,0,0,1-.77-.008L11.816,2.646,7.551,7.131a.533.533,0,0,1-.77-.008L0,0Zm0,0" transform="translate(0 0)"/><path class="a" d="M3.747,1.973A1.952,1.952,0,0,0,1.861.011,1.863,1.863,0,0,0,.011,1.936,1.952,1.952,0,0,0,1.9,3.9,1.863,1.863,0,0,0,3.747,1.973Zm0,0" transform="translate(12.191 9.094)"/></g><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(39.933 31.451) rotate(135)"/><path class="g" d="M4.239-.051h0A1.135,1.135,0,0,0,3.146,1.063L2.953,8.049,1.792,6.865A1.092,1.092,0,0,0,.242,6.9h0A1.144,1.144,0,0,0,.211,8.477L3.3,11.633a.926.926,0,0,0,.783.329,1.058,1.058,0,0,0,.8-.361L7.961,8.465a1.144,1.144,0,0,0,.031-1.581l-.028-.028a1.092,1.092,0,0,0-1.551.031L5.263,8.06l0-7.039A.978.978,0,0,0,4.239-.051Z" transform="translate(0.035 6.035) rotate(-45)"/></g><g transform="translate(34.793 312.556)"><path class="a" d="M21.207,40.583c11.713,0,21.207-9.085,21.207-20.292S32.92,0,21.207,0,0,9.086,0,20.292,9.5,40.583,21.207,40.583Z" transform="translate(0 0)"/><path class="g" d="M23.193,11.414a4.547,4.547,0,0,0-4.639-4.44,4.547,4.547,0,0,0-4.639,4.439H0A20.29,20.29,0,0,1,8.193,0H28.916A20.3,20.3,0,0,1,37.11,11.414Z" transform="translate(2.654 3.806)"/><path class="g" d="M1.325,2.536A1.3,1.3,0,0,1,0,1.268,1.3,1.3,0,0,1,1.325,0,1.3,1.3,0,0,1,2.651,1.268,1.3,1.3,0,0,1,1.325,2.536ZM3.976,8.878a1.269,1.269,0,1,1,0-2.536,1.269,1.269,0,1,1,0,2.536Zm5.3,5.073A1.269,1.269,0,1,1,10.6,12.682,1.3,1.3,0,0,1,9.278,13.95ZM27.834,2.536a1.3,1.3,0,0,1-1.325-1.268,1.327,1.327,0,0,1,2.651,0A1.3,1.3,0,0,1,27.834,2.536ZM25.183,8.878a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,25.183,8.878Zm-5.3,5.073a1.269,1.269,0,1,1,1.325-1.268A1.3,1.3,0,0,1,19.882,13.95Z" transform="translate(6.627 19.023)"/><path class="g" d="M2.651,17.217C4.114,17.217,5.3,3.938,5.3,2.536A2.6,2.6,0,0,0,2.651,0,2.6,2.6,0,0,0,0,2.536C0,3.938,1.188,17.217,2.651,17.217Z" transform="translate(18.556 12.682)"/><path class="g" d="M21.207,40.583C9.5,40.583,0,31.5,0,20.292S9.5,0,21.207,0,42.414,9.085,42.414,20.292,32.92,40.583,21.207,40.583Zm0-36.778c-9.5,0-17.231,7.4-17.231,16.487s7.73,16.487,17.231,16.487,17.231-7.4,17.231-16.487S30.708,3.8,21.207,3.8Z" transform="translate(0 0)"/></g><g transform="translate(265.11 303.967) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(392.11 139.39) rotate(49)"><path class="a" d="M19.959,41.352A21.878,21.878,0,0,0,41.1,20.086,19.689,19.689,0,0,0,20.865-.273,21.879,21.879,0,0,0-.274,20.993,19.689,19.689,0,0,0,19.959,41.352Z" transform="translate(0 0)"/><path class="g" d="M22.466,11.458A4.312,4.312,0,0,0,18.04,7a4.791,4.791,0,0,0-4.624,4.652h0l-13.572.3A22.059,22.059,0,0,1,8.09.071L28.3-.372A19.627,19.627,0,0,1,36.041,11.16Z" transform="translate(2.584 3.781)"/><path class="g" d="M1.244,2.812A1.231,1.231,0,0,1-.02,1.539,1.368,1.368,0,0,1,1.3.21,1.23,1.23,0,0,1,2.566,1.482,1.367,1.367,0,0,1,1.244,2.812ZM3.689,9.259A1.231,1.231,0,0,1,2.424,7.986,1.368,1.368,0,0,1,3.745,6.657,1.23,1.23,0,0,1,5.01,7.93,1.367,1.367,0,0,1,3.689,9.259Zm5.058,5.09a1.231,1.231,0,0,1-1.265-1.273A1.367,1.367,0,0,1,8.8,11.747a1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,8.747,14.349ZM27.1,2.245A1.231,1.231,0,0,1,25.837.973,1.368,1.368,0,0,1,27.158-.357,1.23,1.23,0,0,1,28.423.916,1.367,1.367,0,0,1,27.1,2.245ZM24.374,8.806A1.231,1.231,0,0,1,23.11,7.533,1.368,1.368,0,0,1,24.431,6.2,1.23,1.23,0,0,1,25.7,7.477,1.367,1.367,0,0,1,24.374,8.806Zm-5.285,5.317a1.231,1.231,0,0,1-1.265-1.273,1.367,1.367,0,0,1,1.321-1.329,1.23,1.23,0,0,1,1.265,1.272A1.367,1.367,0,0,1,19.089,14.122Z" transform="translate(6.21 19.312)"/><path class="g" d="M2.224,17.625C3.651,17.594,5.106,3.948,5.137,2.511A2.462,2.462,0,0,0,2.608-.034,2.736,2.736,0,0,0-.034,2.624C-.066,4.062.8,17.656,2.224,17.625Z" transform="translate(17.974 12.769)"/><path class="g" d="M19.959,41.352A19.689,19.689,0,0,1-.274,20.993,21.879,21.879,0,0,1,20.865-.273,19.689,19.689,0,0,1,41.1,20.086,21.878,21.878,0,0,1,19.959,41.352ZM20.78,3.629A17.8,17.8,0,0,0,3.6,20.908,16.015,16.015,0,0,0,20.044,37.45,17.8,17.8,0,0,0,37.219,20.171,16.015,16.015,0,0,0,20.78,3.629Z" transform="translate(0 0)"/></g><g transform="translate(283.499 8.72) rotate(49)"><path class="a" d="M23.638,48.976A25.912,25.912,0,0,0,48.674,23.789,23.318,23.318,0,0,0,24.712-.324,25.913,25.913,0,0,0-.324,24.863,23.319,23.319,0,0,0,23.638,48.976Z" transform="translate(0 0)"/><path class="g" d="M26.608,13.57a5.107,5.107,0,0,0-5.242-5.276,5.675,5.675,0,0,0-5.477,5.51v0l-16.075.352A26.126,26.126,0,0,1,9.581.084L33.521-.44a23.245,23.245,0,0,1,9.164,13.658Z" transform="translate(3.06 4.478)"/><path class="g" d="M1.474,3.33a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,1.541.249a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,1.474,3.33Zm2.895,7.636a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,4.436,7.884a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,4.369,10.966Zm5.991,6.028a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,10.359,16.994ZM32.1,2.659a1.458,1.458,0,0,1-1.5-1.507A1.62,1.62,0,0,1,32.165-.422a1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,32.1,2.659Zm-3.23,7.77a1.458,1.458,0,0,1-1.5-1.507,1.62,1.62,0,0,1,1.565-1.574,1.457,1.457,0,0,1,1.5,1.507A1.619,1.619,0,0,1,28.868,10.429Zm-6.259,6.3a1.458,1.458,0,0,1-1.5-1.507,1.619,1.619,0,0,1,1.565-1.574,1.456,1.456,0,0,1,1.5,1.507A1.619,1.619,0,0,1,22.609,16.726Z" transform="translate(7.355 22.872)"/><path class="g" d="M2.634,20.874c1.69-.037,3.414-16.2,3.451-17.9a2.916,2.916,0,0,0-3-3.014A3.24,3.24,0,0,0-.041,3.108C-.078,4.81.943,20.911,2.634,20.874Z" transform="translate(21.287 15.123)"/><path class="g" d="M23.638,48.976A23.319,23.319,0,0,1-.324,24.863,25.913,25.913,0,0,1,24.712-.324,23.318,23.318,0,0,1,48.674,23.789,25.912,25.912,0,0,1,23.638,48.976ZM24.611,4.3A21.078,21.078,0,0,0,4.269,24.762a18.967,18.967,0,0,0,19.47,19.592A21.078,21.078,0,0,0,44.081,23.89,18.967,18.967,0,0,0,24.611,4.3Z" transform="translate(0 0)"/></g></g></g><g transform="translate(88.029 11)"><rect class="j" width="1837.134" height="440" transform="translate(1837.134 440) rotate(-180)"/><rect class="k" width="1837.134" height="440" transform="translate(0 439)"/></g></g></g></g></svg>
js/bwg.js CHANGED
@@ -143,6 +143,16 @@ jQuery(document).ready(function () {
143
  });
144
  bwg_albums_galleries();
145
  }
 
 
 
 
 
 
 
 
 
 
146
  });
147
 
148
  /* Load gallery images */
@@ -335,7 +345,6 @@ function spider_ajax_save(form_id, tr_group) {
335
  ).success(function (data, textStatus, errorThrown) {
336
  if ( tr_count > bwg_save_count * tr_group || (limit !== false && limit < jQuery("#total").val() ) ) {
337
  spider_ajax_save(form_id, ++tr_group);
338
-
339
  return;
340
  }
341
  else {
@@ -791,10 +800,13 @@ function bwg_add_tag(image_id, tagIds, titles) {
791
  }
792
  document.getElementById('tags_' + image_id).value = tag_ids;
793
  if (counter) {
794
- jQuery("#tags_div_" + image_id).removeClass("wd-hide");
 
 
 
795
  }
796
  }
797
- }
798
  }
799
  jQuery(".unsaved-msg", window.parent.document).removeClass("wd-hide");
800
  jQuery(".ajax-msg", window.parent.document).addClass("wd-hide");
@@ -809,7 +821,7 @@ function bwg_remove_tag(tag_id, image_id) {
809
  tag_ids_string = tag_ids_string.replace(tag_id + ',', '');
810
  jQuery("#tags_" + image_id).val(tag_ids_string);
811
  if (jQuery("#tags_" + image_id).val() == '') {
812
- jQuery("#tags_div_" + image_id).addClass("wd-hide");
813
  }
814
  jQuery(".unsaved-msg").removeClass("wd-hide");
815
  jQuery(".ajax-msg").addClass("wd-hide");
@@ -2002,4 +2014,170 @@ function bwg_galleries_ordering () {
2002
  });
2003
  }
2004
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2005
  }
143
  });
144
  bwg_albums_galleries();
145
  }
146
+ show_hide_compact_album_view( jQuery('#album_view_type option:selected').val() );
147
+ jQuery(document).on('change', '#album_view_type', function() {
148
+ var value = jQuery(this).val();
149
+ show_hide_compact_album_view( value );
150
+ });
151
+ show_hide_extended_album_view( jQuery('#album_extended_view_type option:selected').val() );
152
+ jQuery(document).on('change', '#album_extended_view_type', function() {
153
+ var value = jQuery(this).val();
154
+ show_hide_extended_album_view( value );
155
+ });
156
  });
157
 
158
  /* Load gallery images */
345
  ).success(function (data, textStatus, errorThrown) {
346
  if ( tr_count > bwg_save_count * tr_group || (limit !== false && limit < jQuery("#total").val() ) ) {
347
  spider_ajax_save(form_id, ++tr_group);
 
348
  return;
349
  }
350
  else {
800
  }
801
  document.getElementById('tags_' + image_id).value = tag_ids;
802
  if (counter) {
803
+ jQuery("#tags_div_" + image_id).parent().removeClass("tags_div_empty");
804
+ }
805
+ else {
806
+ jQuery("#tags_div_" + image_id).parent().addClass("tags_div_empty");
807
  }
808
  }
809
+ }
810
  }
811
  jQuery(".unsaved-msg", window.parent.document).removeClass("wd-hide");
812
  jQuery(".ajax-msg", window.parent.document).addClass("wd-hide");
821
  tag_ids_string = tag_ids_string.replace(tag_id + ',', '');
822
  jQuery("#tags_" + image_id).val(tag_ids_string);
823
  if (jQuery("#tags_" + image_id).val() == '') {
824
+ jQuery("#tags_div_" + image_id).parent().addClass("tags_div_empty");
825
  }
826
  jQuery(".unsaved-msg").removeClass("wd-hide");
827
  jQuery(".ajax-msg").addClass("wd-hide");
2014
  });
2015
  }
2016
  });
2017
+ }
2018
+
2019
+ function show_hide_compact_album_view ( val ) {
2020
+ switch(val) {
2021
+ case 'thumbnail': {
2022
+ bwg_show_hide('tr_album_mosaic', 'none');
2023
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2024
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2025
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2026
+ bwg_show_hide('album_image_title_show_hover_0', '');
2027
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2028
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
2029
+ bwg_show_hide('tr_album_images_per_page', '');
2030
+ }
2031
+ break;
2032
+ case 'masonry': {
2033
+ bwg_show_hide('tr_album_mosaic', 'none');
2034
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2035
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2036
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2037
+ bwg_show_hide('album_image_title_show_hover_0', '');
2038
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2039
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
2040
+ bwg_show_hide('tr_album_images_per_page', '');
2041
+ }
2042
+ break;
2043
+ case 'mosaic': {
2044
+ bwg_show_hide('tr_album_mosaic', '');
2045
+ bwg_show_hide('tr_album_resizable_mosaic', '');
2046
+ bwg_show_hide('tr_album_mosaic_total_width', '');;
2047
+ bwg_show_hide('for_album_image_title_show_hover_0', 'none');
2048
+ bwg_show_hide('album_image_title_show_hover_0', 'none');
2049
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', 'none');
2050
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
2051
+ bwg_show_hide('tr_album_images_per_page', '');
2052
+ }
2053
+ break;
2054
+ case 'slideshow': {
2055
+ bwg_show_hide('tr_album_mosaic', 'none');
2056
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2057
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2058
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2059
+ bwg_show_hide('album_image_title_show_hover_0', '');
2060
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2061
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
2062
+ bwg_show_hide('tr_album_images_per_page', 'none');
2063
+ }
2064
+ case 'image_browser': {
2065
+ bwg_show_hide('tr_album_mosaic', 'none');
2066
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2067
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2068
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2069
+ bwg_show_hide('album_image_title_show_hover_0', '');
2070
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2071
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
2072
+ bwg_show_hide('tr_album_images_per_page', 'none');
2073
+ }
2074
+ break;
2075
+ case 'blog_style': {
2076
+ bwg_show_hide('tr_album_mosaic', 'none');
2077
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2078
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2079
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2080
+ bwg_show_hide('album_image_title_show_hover_0', '');
2081
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2082
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
2083
+ bwg_show_hide('tr_album_images_per_page', '');
2084
+ }
2085
+ break;
2086
+ case 'carousel': {
2087
+ bwg_show_hide('tr_album_mosaic', 'none');
2088
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
2089
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
2090
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
2091
+ bwg_show_hide('album_image_title_show_hover_0', '');
2092
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
2093
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
2094
+ bwg_show_hide('tr_album_images_per_page', 'none');
2095
+ }
2096
+ break;
2097
+ }
2098
+ }
2099
+
2100
+ function show_hide_extended_album_view ( val ) {
2101
+ switch(val) {
2102
+ case 'thumbnail': {
2103
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2104
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2105
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2106
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2107
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2108
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2109
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
2110
+ bwg_show_hide('tr_album_extended_images_per_page', '');
2111
+ }
2112
+ break;
2113
+ case 'masonry': {
2114
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2115
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2116
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2117
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2118
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2119
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2120
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
2121
+ bwg_show_hide('tr_album_extended_images_per_page', '');
2122
+ }
2123
+ break;
2124
+ case 'mosaic': {
2125
+ bwg_show_hide('tr_album_extended_mosaic', '');
2126
+ bwg_show_hide('tr_album_extended_resizable_mosaic', '');
2127
+ bwg_show_hide('tr_album_extended_mosaic_total_width', '');
2128
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', 'none');
2129
+ bwg_show_hide('album_extended_image_title_show_hover_0', 'none');
2130
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', 'none');
2131
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
2132
+ bwg_show_hide('tr_album_extended_images_per_page', '');
2133
+ }
2134
+ break;
2135
+ case 'slideshow': {
2136
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2137
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2138
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2139
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2140
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2141
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2142
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
2143
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
2144
+ }
2145
+ case 'image_browser': {
2146
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2147
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2148
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2149
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2150
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2151
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2152
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
2153
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
2154
+ }
2155
+ break;
2156
+ case 'blog_style': {
2157
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2158
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2159
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2160
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2161
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2162
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2163
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
2164
+ bwg_show_hide('tr_album_extended_images_per_page', '');
2165
+ }
2166
+ break;
2167
+ case 'carousel': {
2168
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
2169
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
2170
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
2171
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
2172
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
2173
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
2174
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
2175
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
2176
+ }
2177
+ break;
2178
+ }
2179
+ }
2180
+
2181
+ function bwg_show_hide(id, display) {
2182
+ jQuery("#" + id).css('display', display);
2183
  }
js/bwg_frontend.js CHANGED
@@ -1,5 +1,4 @@
1
  var bwg = 0;
2
-
3
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
4
  var bwg_click = isMobile ? 'touchend' : 'click';
5
 
@@ -289,7 +288,8 @@ function bwg_carousel_ready() {
289
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
290
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-pause bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
291
  }
292
- jQuery(".bwg_carousel_play_pause_" + bwg).on(bwg_click, function () {
 
293
  if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("bwg-icon-play") ) {
294
  /*play*/
295
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
@@ -302,6 +302,8 @@ function bwg_carousel_ready() {
302
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-play bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
303
  bwg_params_carousel[bwg]['carousel'].pause();
304
  }
 
 
305
  });
306
  if (typeof jQuery().swiperight !== 'undefined') {
307
  if (jQuery.isFunction(jQuery().swiperight)) {
@@ -335,7 +337,6 @@ function bwg_carousel_resize() {
335
  function bwg_carousel_onload() {
336
  jQuery(".bwg-carousel").each(function () {
337
  var bwg = jQuery(this).data("bwg");
338
-
339
  bwg_params_carousel[bwg] = jQuery(this).data("params");
340
  bwg_carousel_watermark(bwg);
341
  bwg_carousel_params(bwg);
@@ -557,11 +558,11 @@ function bwg_slideshow_ready() {
557
  if (bwg_params[bwg]['width_or_height'] == 'width') {
558
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
559
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
560
- if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
561
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
562
  }
563
  else {
564
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
565
  }
566
  }
567
  /* Disable right arrow.*/
@@ -574,11 +575,11 @@ function bwg_slideshow_ready() {
574
  else { /* For left, height */
575
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
576
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
577
- if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
578
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
579
  }
580
  else {
581
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
582
  }
583
  }
584
  /* Disable right arrow.*/
@@ -593,11 +594,11 @@ function bwg_slideshow_ready() {
593
  if (bwg_params[bwg]['width_or_height'] == 'width') { /* For top, width */
594
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
595
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
596
- if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])) {
597
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
598
  }
599
  else {
600
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
601
  }
602
  }
603
  /* Disable right arrow.*/
@@ -610,11 +611,11 @@ function bwg_slideshow_ready() {
610
  else { /* For top, height */
611
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
612
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
613
- if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))) {
614
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
615
  }
616
  else {
617
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - (bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
618
  }
619
  }
620
  /* Disable right arrow.*/
@@ -635,7 +636,7 @@ function bwg_slideshow_ready() {
635
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: 0}, 500, 'linear');
636
  }
637
  else {
638
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left + bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
639
  }
640
  }
641
  /* Disable left arrow.*/
@@ -652,7 +653,7 @@ function bwg_slideshow_ready() {
652
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: 0}, 500, 'linear');
653
  }
654
  else {
655
- jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top + bwg_params[bwg]['filmstrip_thumb_margin_hor'] + bwg_params[bwg]['slideshow_filmstrip_width'])}, 500, 'linear');
656
  }
657
  }
658
  /* Disable top arrow.*/
@@ -1418,12 +1419,10 @@ function bwg_document_ready() {
1418
  }
1419
 
1420
  /* Show/Hide search_placeholder_title class container */
 
1421
  if (jQuery(this).find('.bwg_search_input').val() == '') {
1422
  jQuery(this).find('search_placeholder_title').show();
1423
  }
1424
- else {
1425
- jQuery(this).find('search_placeholder_title').hide();
1426
- }
1427
 
1428
  /* Show search_placeholder_title class container on focusout and hide reset, search icons*/
1429
  jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function (e) {
@@ -1510,13 +1509,13 @@ function bwg_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, typ
1510
  var load_more = false;
1511
  }
1512
  var page_number = jQuery("#page_number_" + current_view).val();
1513
-
1514
  var post_data = {};
1515
 
1516
  var breadcrumb_str = jQuery('#bwg_album_breadcrumb_' + current_view).val();
1517
  if ( breadcrumb_str && load_more !== true ) { /* For album views.*/
1518
  var breadcrumb = JSON.parse(breadcrumb_str);
1519
- if (album_gallery_id == 'back') {
1520
  /* Remove last element of array.*/
1521
  breadcrumb.splice(-1, 1);
1522
  var last_el = breadcrumb.slice(-1)[0];
@@ -1526,7 +1525,7 @@ function bwg_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, typ
1526
  }
1527
  else if ( load_more === 'numeric' || srch_btn ) {/* From numeric pagination.*/
1528
  breadcrumb.splice(-1, 1);
1529
- breadcrumb.push({id: album_gallery_id, page: page_number});
1530
  }
1531
  else {
1532
  breadcrumb.push({id: album_gallery_id, page: 1});
@@ -1565,9 +1564,19 @@ function bwg_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, typ
1565
  post_data["title_" + current_view] = title;
1566
  post_data["description_" + current_view] = description;
1567
  post_data["sortImagesByValue_" + current_view] = sortByParam;
 
1568
  if (jQuery("#bwg_search_input_" + current_view).length > 0) { /* Search box exists.*/
1569
- post_data["bwg_search_" + current_view] = jQuery("#bwg_search_input_" + current_view).val();
1570
  }
 
 
 
 
 
 
 
 
 
1571
  post_data["bwg_tag_id_" + id] = jQuery("#bwg_tag_id_" + id).val();
1572
  /* Loading.*/
1573
  jQuery('#gal_front_form_' + current_view).addClass('bwg-hidden');
@@ -1646,8 +1655,8 @@ function bwg_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, typ
1646
  /* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
1647
  jQuery('.bwg_embed_frame_instapost_' + current_view).height((jQuery('.bwg_embed_frame_instapost_' + current_view).width() - 16) * jQuery('.bwg_embed_frame_instapost_' + current_view).attr('data-height') / jQuery('.bwg_embed_frame_instapost_' + current_view).attr('data-width') + 96);
1648
 
1649
- /* return value to search input field */
1650
- jQuery("#bwg_search_input_" + current_view).val(post_data["bwg_search_" + current_view]);
1651
 
1652
  if ( jQuery("#bwg_search_input_" + current_view).val() != '' ) {
1653
  jQuery("#bwg_search_input_" + current_view).parent().find('.search_placeholder_title').hide();
@@ -1903,16 +1912,12 @@ function bwg_change_each_watermark_container(width, height, bwg) {
1903
  function bwg_set_filmstrip_pos( filmStripWidth, bwg, data ) {
1904
  var defix = ( typeof bwg !== 'undefined' && bwg !== '' ) ? '_'+bwg : '';
1905
  var source = ( typeof bwg !== 'undefined' && bwg !== '' ) ? '_slideshow' : '';
1906
- /*
1907
- if( typeof bwg == 'undefined' || bwg == '' ) { /!* for lightbox *!/
1908
- bwg_param = data;
1909
- }
1910
- */
1911
 
1912
  var left_or_top;
1913
  if ( typeof bwg !== 'undefined' && bwg !== '' ) {
1914
  left_or_top = bwg_params[bwg]['left_or_top'];
1915
- } else {
 
1916
  left_or_top = gallery_box_data['left_or_top'];
1917
  }
1918
  var top_bottom_space = parseInt(jQuery(".bwg_filmstrip_thumbnails").attr('data-all-images-top-bottom-space'));
@@ -2410,6 +2415,7 @@ function bwg_change_image(current_key, key, data, from_effect, bwg) {
2410
  if ( typeof bwg !== 'undefined' && bwg !== '' ) { /* SLIDESHOW */
2411
  bwg_change_image_slideshow(current_key, key, data, from_effect, bwg);
2412
  } else { /* LIGHTBOX */
 
2413
  bwg_change_image_lightbox(current_key, key, data, from_effect);
2414
  }
2415
  }
@@ -2480,11 +2486,11 @@ function bwg_play( data, bwg ) {
2480
  if (typeof data != 'undefined' && typeof data[(parseInt(jQuery('#bwg_current_image_key').val()) + 1)] == 'undefined') {
2481
  if (gallery_box_data['enable_loop'] == 1) {
2482
  /* Wrap around.*/
2483
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), 0, data);
2484
  }
2485
  return;
2486
  }
2487
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
2488
  }, gallery_box_data['slideshow_interval'] * 1000);
2489
  }
2490
  }
1
  var bwg = 0;
 
2
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
3
  var bwg_click = isMobile ? 'touchend' : 'click';
4
 
288
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
289
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-pause bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
290
  }
291
+
292
+ jQuery(".bwg_carousel_play_pause_" + bwg).on(bwg_click, function (event) {
293
  if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("bwg-icon-play") ) {
294
  /*play*/
295
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
302
  jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-play bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
303
  bwg_params_carousel[bwg]['carousel'].pause();
304
  }
305
+ event.stopPropagation();
306
+ event.stopImmediatePropagation();
307
  });
308
  if (typeof jQuery().swiperight !== 'undefined') {
309
  if (jQuery.isFunction(jQuery().swiperight)) {
337
  function bwg_carousel_onload() {
338
  jQuery(".bwg-carousel").each(function () {
339
  var bwg = jQuery(this).data("bwg");
 
340
  bwg_params_carousel[bwg] = jQuery(this).data("params");
341
  bwg_carousel_watermark(bwg);
342
  bwg_carousel_params(bwg);
558
  if (bwg_params[bwg]['width_or_height'] == 'width') {
559
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
560
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
561
+ if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))) {
562
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
563
  }
564
  else {
565
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))}, 500, 'linear');
566
  }
567
  }
568
  /* Disable right arrow.*/
575
  else { /* For left, height */
576
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
577
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
578
+ if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))) {
579
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())}, 500, 'linear');
580
  }
581
  else {
582
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))}, 500, 'linear');
583
  }
584
  }
585
  /* Disable right arrow.*/
594
  if (bwg_params[bwg]['width_or_height'] == 'width') { /* For top, width */
595
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())) {
596
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
597
+ if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width() - parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width']))) {
598
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).width() - jQuery(".bwg_slideshow_filmstrip_" + bwg).width())}, 500, 'linear');
599
  }
600
  else {
601
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
602
  }
603
  }
604
  /* Disable right arrow.*/
611
  else { /* For top, height */
612
  if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top >= -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())) {
613
  jQuery(".bwg_slideshow_filmstrip_left_" + bwg).css({opacity: 1, filter: "Alpha(opacity=100)"});
614
+ if (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top < -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height() - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))) {
615
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: -(jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).height() - jQuery(".bwg_slideshow_filmstrip_" + bwg).height())}, 500, 'linear');
616
  }
617
  else {
618
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top - (parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width'])))}, 500, 'linear');
619
  }
620
  }
621
  /* Disable right arrow.*/
636
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: 0}, 500, 'linear');
637
  }
638
  else {
639
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({left: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().left + parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
640
  }
641
  }
642
  /* Disable left arrow.*/
653
  jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: 0}, 500, 'linear');
654
  }
655
  else {
656
+ jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).animate({top: (jQuery(".bwg_slideshow_filmstrip_thumbnails_" + bwg).position().top + parseInt(bwg_params[bwg]['filmstrip_thumb_margin_hor']) + parseInt(bwg_params[bwg]['slideshow_filmstrip_width']))}, 500, 'linear');
657
  }
658
  }
659
  /* Disable top arrow.*/
1419
  }
1420
 
1421
  /* Show/Hide search_placeholder_title class container */
1422
+ jQuery(this).find('search_placeholder_title').hide();
1423
  if (jQuery(this).find('.bwg_search_input').val() == '') {
1424
  jQuery(this).find('search_placeholder_title').show();
1425
  }
 
 
 
1426
 
1427
  /* Show search_placeholder_title class container on focusout and hide reset, search icons*/
1428
  jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function (e) {
1509
  var load_more = false;
1510
  }
1511
  var page_number = jQuery("#page_number_" + current_view).val();
1512
+ var search = jQuery("#bwg_search_input_" + current_view).val();
1513
  var post_data = {};
1514
 
1515
  var breadcrumb_str = jQuery('#bwg_album_breadcrumb_' + current_view).val();
1516
  if ( breadcrumb_str && load_more !== true ) { /* For album views.*/
1517
  var breadcrumb = JSON.parse(breadcrumb_str);
1518
+ if ( album_gallery_id == 'back' ) {
1519
  /* Remove last element of array.*/
1520
  breadcrumb.splice(-1, 1);
1521
  var last_el = breadcrumb.slice(-1)[0];
1525
  }
1526
  else if ( load_more === 'numeric' || srch_btn ) {/* From numeric pagination.*/
1527
  breadcrumb.splice(-1, 1);
1528
+ breadcrumb.push({ id: album_gallery_id, page: page_number, search: search });
1529
  }
1530
  else {
1531
  breadcrumb.push({id: album_gallery_id, page: 1});
1564
  post_data["title_" + current_view] = title;
1565
  post_data["description_" + current_view] = description;
1566
  post_data["sortImagesByValue_" + current_view] = sortByParam;
1567
+
1568
  if (jQuery("#bwg_search_input_" + current_view).length > 0) { /* Search box exists.*/
1569
+ post_data["bwg_search_" + current_view] = jQuery("#bwg_search_input_" + current_view).val();
1570
  }
1571
+
1572
+ var breadcrumbObj = jQuery.parseJSON( post_data["bwg_album_breadcrumb_" + current_view] );
1573
+ jQuery.each(breadcrumbObj, function (index, value) {
1574
+ post_data["bwg_search_" + current_view] = '';
1575
+ if ( album_gallery_id == value.id ) {
1576
+ post_data["bwg_search_" + current_view] = value.search;
1577
+ }
1578
+ });
1579
+
1580
  post_data["bwg_tag_id_" + id] = jQuery("#bwg_tag_id_" + id).val();
1581
  /* Loading.*/
1582
  jQuery('#gal_front_form_' + current_view).addClass('bwg-hidden');
1655
  /* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
1656
  jQuery('.bwg_embed_frame_instapost_' + current_view).height((jQuery('.bwg_embed_frame_instapost_' + current_view).width() - 16) * jQuery('.bwg_embed_frame_instapost_' + current_view).attr('data-height') / jQuery('.bwg_embed_frame_instapost_' + current_view).attr('data-width') + 96);
1657
 
1658
+ /* Return value to search input field. */
1659
+ jQuery("#bwg_search_input_" + current_view).val(post_data["bwg_search_" + current_view]);
1660
 
1661
  if ( jQuery("#bwg_search_input_" + current_view).val() != '' ) {
1662
  jQuery("#bwg_search_input_" + current_view).parent().find('.search_placeholder_title').hide();
1912
  function bwg_set_filmstrip_pos( filmStripWidth, bwg, data ) {
1913
  var defix = ( typeof bwg !== 'undefined' && bwg !== '' ) ? '_'+bwg : '';
1914
  var source = ( typeof bwg !== 'undefined' && bwg !== '' ) ? '_slideshow' : '';
 
 
 
 
 
1915
 
1916
  var left_or_top;
1917
  if ( typeof bwg !== 'undefined' && bwg !== '' ) {
1918
  left_or_top = bwg_params[bwg]['left_or_top'];
1919
+ }
1920
+ else {
1921
  left_or_top = gallery_box_data['left_or_top'];
1922
  }
1923
  var top_bottom_space = parseInt(jQuery(".bwg_filmstrip_thumbnails").attr('data-all-images-top-bottom-space'));
2415
  if ( typeof bwg !== 'undefined' && bwg !== '' ) { /* SLIDESHOW */
2416
  bwg_change_image_slideshow(current_key, key, data, from_effect, bwg);
2417
  } else { /* LIGHTBOX */
2418
+ data = gallery_box_data['data'];
2419
  bwg_change_image_lightbox(current_key, key, data, from_effect);
2420
  }
2421
  }
2486
  if (typeof data != 'undefined' && typeof data[(parseInt(jQuery('#bwg_current_image_key').val()) + 1)] == 'undefined') {
2487
  if (gallery_box_data['enable_loop'] == 1) {
2488
  /* Wrap around.*/
2489
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), 0);
2490
  }
2491
  return;
2492
  }
2493
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1)
2494
  }, gallery_box_data['slideshow_interval'] * 1000);
2495
  }
2496
  }
js/bwg_gallery_box.js CHANGED
@@ -16,20 +16,14 @@ var addthis_share;
16
  var lightbox_comment_pos;
17
  var bwg_transition_duration;
18
  var bwg_playInterval;
19
- var gallery_box_data;
20
- var bwg_param;
21
 
22
  function gallery_box_ready() {
23
  filmstrip_width;
24
  preloadCount;
25
  filmstrip_thumbnail_width = jQuery(".bwg_filmstrip_thumbnail").width();
26
  filmstrip_thumbnail_height = jQuery(".bwg_filmstrip_thumbnail").height();
27
- if( jQuery("#gallery_box_data").length > 0) {
28
- gallery_box_data = JSON.parse( jQuery("#gallery_box_data").val() );
29
- bwg_param = gallery_box_data;
30
- }
31
 
32
- if ( gallery_box_data['open_with_fullscreen'] ) {
33
  filmstrip_width = jQuery( window ).width();
34
  filmstrip_height = jQuery( window ).height();
35
  } else {
@@ -48,7 +42,7 @@ function gallery_box_ready() {
48
  endPoint = key+preloadCount;
49
 
50
  jQuery(document).ready(function () {
51
- wds_load_visible_images( key, preloadCount, total_thumbnail_count, startPoint, endPoint );
52
  jQuery(".pge_tabs li a").on("click", function(){
53
  jQuery(".pge_tabs_container > div").hide();
54
  jQuery(".pge_tabs li").removeClass("pge_active");
@@ -63,7 +57,7 @@ function gallery_box_ready() {
63
  bwg_rating(data_rated['current_rate'], data_rated['current_rate_count'], data_rated['current_avg_rating'], data_rated['current_image_key']);
64
  });
65
 
66
- if ( gallery_box_data['is_pro'] && gallery_box_data['enable_addthis'] && gallery_box_data['addthis_profile_id'] ) {
67
  addthis_share = {
68
  url: gallery_box_data['share_url']
69
  }
@@ -97,10 +91,10 @@ function gallery_box_ready() {
97
  return;
98
  }
99
  if (e.keyCode === 39) { /* Right arrow.*/
100
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, gallery_box_data['data'])
101
  }
102
  else if (e.keyCode === 37) { /* Left arrow.*/
103
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) - 1, gallery_box_data['data'])
104
  }
105
  else if (e.keyCode === 27) { /* Esc.*/
106
  spider_destroypopup(1000);
@@ -123,8 +117,8 @@ function gallery_box_ready() {
123
  var bwg_popup_current_height = gallery_box_data['image_height'];
124
 
125
  /* jQuery(document).ready(function () { */
126
- if ( gallery_box_data['is_pro'] ) {
127
- if ( gallery_box_data['enable_addthis'] && gallery_box_data['addthis_profile_id'] ) {
128
  jQuery(".at4-share-outer").show();
129
  }
130
  /* Increase image hit counter.*/
@@ -140,7 +134,7 @@ function gallery_box_ready() {
140
  history.replaceState(undefined, undefined, "#bwg"+gallery_box_data['gallery_id']+"/"+gallery_box_data['current_image_id']);
141
  }
142
  }
143
- if (gallery_box_data['image_right_click']) {
144
  /* Disable right click.*/
145
  jQuery(".bwg_image_wrap").bind("contextmenu", function (e) {
146
  return false;
@@ -153,7 +147,7 @@ function gallery_box_ready() {
153
  if (typeof jQuery().swiperight !== 'undefined') {
154
  if (jQuery.isFunction(jQuery().swiperight)) {
155
  jQuery('#spider_popup_wrap .bwg_image_wrap').swiperight(function () {
156
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + gallery_box_data['data'].length - 1) % gallery_box_data['data'].length, gallery_box_data['data']);
157
  return false;
158
  });
159
  }
@@ -161,7 +155,7 @@ function gallery_box_ready() {
161
  if (typeof jQuery().swipeleft !== 'undefined') {
162
  if (jQuery.isFunction(jQuery().swipeleft)) {
163
  jQuery('#spider_popup_wrap .bwg_image_wrap').swipeleft(function () {
164
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % gallery_box_data['data'].length, gallery_box_data['data']);
165
  return false;
166
  });
167
  }
@@ -170,11 +164,11 @@ function gallery_box_ready() {
170
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
171
  var bwg_click = isMobile ? 'touchend' : 'click';
172
  jQuery("#spider_popup_left").on(bwg_click, function () {
173
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + gallery_box_data['data'].length - 1) % gallery_box_data['data'].length, gallery_box_data['data']);
174
  return false;
175
  });
176
  jQuery("#spider_popup_right").on(bwg_click, function () {
177
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % gallery_box_data['data'].length, gallery_box_data['data']);
178
  return false;
179
  });
180
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
@@ -718,7 +712,7 @@ function gallery_box_ready() {
718
  if ( gallery_box_data['open_ecommerce'] == 1) {
719
  setTimeout(function(){ bwg_ecommerce(); }, 400);
720
  }
721
- if ( gallery_box_data['open_comment'] ) {
722
  bwg_comment();
723
  }
724
  }
@@ -760,7 +754,6 @@ function spider_createpopup(url, current_view, width, height, duration, descript
760
  }
761
 
762
  function spider_showpopup(description, lifetime, popup, duration, lightbox_ctrl_btn_pos) {
763
- var gallery_box_data = JSON.parse( jQuery("#gallery_box_data").val() );
764
  var data = gallery_box_data['data'];
765
  var cur_image_key = parseInt( jQuery( '#bwg_current_image_key' ).val() );
766
  if ( typeof data[cur_image_key] != 'undefined' ) {
@@ -787,7 +780,7 @@ function spider_showpopup(description, lifetime, popup, duration, lightbox_ctrl_
787
  function bwg_first_image_load(popup) {
788
  popup.show();
789
  jQuery( ".bwg_spider_popup_loading" ).hide();
790
- if ( gallery_box_data['preload_images'] ) {
791
  bwg_preload_images( parseInt( jQuery( '#bwg_current_image_key' ).val() ) );
792
  }
793
  bwg_load_filmstrip();
@@ -2265,7 +2258,7 @@ function onBtnViewCart(){
2265
  }
2266
 
2267
  // load visible images in filmstrip
2268
- function wds_load_visible_images( key, preloadCount, total_thumbnail_count, startPoint, endPoint ) {
2269
  if((key - preloadCount) >= 0) {
2270
  startPoint = key - preloadCount;
2271
  }
@@ -2279,7 +2272,7 @@ function wds_load_visible_images( key, preloadCount, total_thumbnail_count, star
2279
  }
2280
  }
2281
 
2282
- /* load filmstrip not visible images */
2283
  function bwg_load_filmstrip() {
2284
  for(var i = 1; i <= total_thumbnail_count; i++) {
2285
  leftIndex = startPoint - i;
@@ -2296,7 +2289,43 @@ function bwg_load_filmstrip() {
2296
  filmstrip_image.removeClass('hidden');
2297
  filmstrip_image.attr('src', filmstrip_image.data('url'));
2298
  }
2299
-
2300
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2302
  }
16
  var lightbox_comment_pos;
17
  var bwg_transition_duration;
18
  var bwg_playInterval;
 
 
19
 
20
  function gallery_box_ready() {
21
  filmstrip_width;
22
  preloadCount;
23
  filmstrip_thumbnail_width = jQuery(".bwg_filmstrip_thumbnail").width();
24
  filmstrip_thumbnail_height = jQuery(".bwg_filmstrip_thumbnail").height();
 
 
 
 
25
 
26
+ if ( gallery_box_data['open_with_fullscreen'] == 1 ) {
27
  filmstrip_width = jQuery( window ).width();
28
  filmstrip_height = jQuery( window ).height();
29
  } else {
42
  endPoint = key+preloadCount;
43
 
44
  jQuery(document).ready(function () {
45
+ bwg_load_visible_images( key, preloadCount, total_thumbnail_count );
46
  jQuery(".pge_tabs li a").on("click", function(){
47
  jQuery(".pge_tabs_container > div").hide();
48
  jQuery(".pge_tabs li").removeClass("pge_active");
57
  bwg_rating(data_rated['current_rate'], data_rated['current_rate_count'], data_rated['current_avg_rating'], data_rated['current_image_key']);
58
  });
59
 
60
+ if ( gallery_box_data['is_pro'] == true && gallery_box_data['enable_addthis'] == 1 && gallery_box_data['addthis_profile_id'] ) {
61
  addthis_share = {
62
  url: gallery_box_data['share_url']
63
  }
91
  return;
92
  }
93
  if (e.keyCode === 39) { /* Right arrow.*/
94
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1)
95
  }
96
  else if (e.keyCode === 37) { /* Left arrow.*/
97
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) - 1)
98
  }
99
  else if (e.keyCode === 27) { /* Esc.*/
100
  spider_destroypopup(1000);
117
  var bwg_popup_current_height = gallery_box_data['image_height'];
118
 
119
  /* jQuery(document).ready(function () { */
120
+ if ( gallery_box_data['is_pro'] == true ) {
121
+ if ( gallery_box_data['enable_addthis'] == 1 && gallery_box_data['addthis_profile_id'] ) {
122
  jQuery(".at4-share-outer").show();
123
  }
124
  /* Increase image hit counter.*/
134
  history.replaceState(undefined, undefined, "#bwg"+gallery_box_data['gallery_id']+"/"+gallery_box_data['current_image_id']);
135
  }
136
  }
137
+ if (gallery_box_data['image_right_click'] == 1) {
138
  /* Disable right click.*/
139
  jQuery(".bwg_image_wrap").bind("contextmenu", function (e) {
140
  return false;
147
  if (typeof jQuery().swiperight !== 'undefined') {
148
  if (jQuery.isFunction(jQuery().swiperight)) {
149
  jQuery('#spider_popup_wrap .bwg_image_wrap').swiperight(function () {
150
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + gallery_box_data['data'].length - 1) % gallery_box_data['data'].length);
151
  return false;
152
  });
153
  }
155
  if (typeof jQuery().swipeleft !== 'undefined') {
156
  if (jQuery.isFunction(jQuery().swipeleft)) {
157
  jQuery('#spider_popup_wrap .bwg_image_wrap').swipeleft(function () {
158
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % gallery_box_data['data'].length);
159
  return false;
160
  });
161
  }
164
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
165
  var bwg_click = isMobile ? 'touchend' : 'click';
166
  jQuery("#spider_popup_left").on(bwg_click, function () {
167
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + gallery_box_data['data'].length - 1) % gallery_box_data['data'].length);
168
  return false;
169
  });
170
  jQuery("#spider_popup_right").on(bwg_click, function () {
171
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % gallery_box_data['data'].length);
172
  return false;
173
  });
174
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
712
  if ( gallery_box_data['open_ecommerce'] == 1) {
713
  setTimeout(function(){ bwg_ecommerce(); }, 400);
714
  }
715
+ if ( gallery_box_data['open_comment'] == 1 ) {
716
  bwg_comment();
717
  }
718
  }
754
  }
755
 
756
  function spider_showpopup(description, lifetime, popup, duration, lightbox_ctrl_btn_pos) {
 
757
  var data = gallery_box_data['data'];
758
  var cur_image_key = parseInt( jQuery( '#bwg_current_image_key' ).val() );
759
  if ( typeof data[cur_image_key] != 'undefined' ) {
780
  function bwg_first_image_load(popup) {
781
  popup.show();
782
  jQuery( ".bwg_spider_popup_loading" ).hide();
783
+ if ( gallery_box_data['preload_images'] == 1 ) {
784
  bwg_preload_images( parseInt( jQuery( '#bwg_current_image_key' ).val() ) );
785
  }
786
  bwg_load_filmstrip();
2258
  }
2259
 
2260
  // load visible images in filmstrip
2261
+ function bwg_load_visible_images( key, preloadCount, total_thumbnail_count ) {
2262
  if((key - preloadCount) >= 0) {
2263
  startPoint = key - preloadCount;
2264
  }
2272
  }
2273
  }
2274
 
2275
+ /* Load filmstrip not visible images. */
2276
  function bwg_load_filmstrip() {
2277
  for(var i = 1; i <= total_thumbnail_count; i++) {
2278
  leftIndex = startPoint - i;
2289
  filmstrip_image.removeClass('hidden');
2290
  filmstrip_image.attr('src', filmstrip_image.data('url'));
2291
  }
 
2292
  }
2293
+ jQuery(".bwg_filmstrip_thumbnail").each(function () {
2294
+ var image = jQuery(this).find("img");
2295
+ /* For embed types */
2296
+ if (typeof image.attr("style") != 'undefined') {
2297
+ return;
2298
+ }
2299
+ var bwg_filmstrip_thumbnail;
2300
+ if (image.width() == 0) {
2301
+ image.on("load", function () {
2302
+ bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
2303
+ bwg_filmstrip_thumb_view(image, bwg_filmstrip_thumbnail);
2304
+ });
2305
+ }
2306
+ else {
2307
+ bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
2308
+ bwg_filmstrip_thumb_view(image, bwg_filmstrip_thumbnail);
2309
+ }
2310
+ });
2311
+ }
2312
+
2313
+ /* thumb size and position correction for filmstrip*/
2314
+ function bwg_filmstrip_thumb_view(image, bwg_filmstrip_thumbnail) {
2315
+ var image_filmstrip_height_space = gallery_box_data['image_filmstrip_height'];
2316
+ var image_filmstrip_width_space = gallery_box_data['image_filmstrip_width'];
2317
 
2318
+ var image_filmstrip_width = image_filmstrip_width_space - gallery_box_data['filmstrip_thumb_right_left_space'];
2319
+ var image_filmstrip_height = image_filmstrip_height_space;
2320
+
2321
+ var scale = Math.max(image_filmstrip_width_space / image.width(), image_filmstrip_height_space / image.height());
2322
+ var image_width = image.width() * scale;
2323
+ var image_height = image.height() * scale;
2324
+
2325
+ image.css({
2326
+ width:image_width,
2327
+ height: image_height,
2328
+ marginLeft: (image_filmstrip_width - image_width) / 2,
2329
+ marginTop: (image_filmstrip_height - image_height) / 2
2330
+ });
2331
  }
js/bwg_shortcode.js CHANGED
@@ -1,5 +1,10 @@
1
  var bwg_shortcode_type;
 
2
  jQuery(document).ready(function () {
 
 
 
 
3
  jQuery(".mce-toolbar-grp.mce-inline-toolbar-grp.mce-container.mce-panel", parent.document).hide();
4
  /* Add tabs. */
5
  jQuery(".bwg_tabs").each(function () {
@@ -46,7 +51,16 @@ jQuery(document).ready(function () {
46
  jQuery('.masonry_col_num').show();
47
  }
48
  });
49
-
 
 
 
 
 
 
 
 
 
50
  });
51
 
52
  jQuery(window).load(function() {
@@ -351,11 +365,8 @@ function bwg_change_compuct_album_view_type() {
351
  jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb_height);
352
  jQuery("#compuct_album_image_thumb_width").css('display', 'none');
353
  jQuery("#compuct_album_image_thumb_height").css('display', '');
354
-
355
  }
356
-
357
  }
358
-
359
  }
360
 
361
  function bwg_change_label(id, text) {
@@ -589,4 +600,170 @@ function bwg_pagination_description(that) {
589
  obj = jQuery(that);
590
  obj.closest('.wd-group').find('.description').hide();
591
  jQuery('#' + obj.attr('name') + '_' + obj.val() + '_description').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  }
1
  var bwg_shortcode_type;
2
+
3
  jQuery(document).ready(function () {
4
+ jQuery(".bwg_tw-container").parents().find(".wrap.wd-wrap-ajax").css({
5
+ 'height': 'calc(100% - 55px)'
6
+ });
7
+
8
  jQuery(".mce-toolbar-grp.mce-inline-toolbar-grp.mce-container.mce-panel", parent.document).hide();
9
  /* Add tabs. */
10
  jQuery(".bwg_tabs").each(function () {
51
  jQuery('.masonry_col_num').show();
52
  }
53
  });
54
+ show_hide_compact_album_view( jQuery('#album_view_type option:selected').val() );
55
+ jQuery(document).on('change', '#album_view_type', function() {
56
+ var value = jQuery(this).val();
57
+ show_hide_compact_album_view( value );
58
+ });
59
+ show_hide_extended_album_view( jQuery('#album_extended_view_type option:selected').val() );
60
+ jQuery(document).on('change', '#album_extended_view_type', function() {
61
+ var value = jQuery(this).val();
62
+ show_hide_extended_album_view( value );
63
+ });
64
  });
65
 
66
  jQuery(window).load(function() {
365
  jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb_height);
366
  jQuery("#compuct_album_image_thumb_width").css('display', 'none');
367
  jQuery("#compuct_album_image_thumb_height").css('display', '');
 
368
  }
 
369
  }
 
370
  }
371
 
372
  function bwg_change_label(id, text) {
600
  obj = jQuery(that);
601
  obj.closest('.wd-group').find('.description').hide();
602
  jQuery('#' + obj.attr('name') + '_' + obj.val() + '_description').show();
603
+ }
604
+
605
+ function show_hide_compact_album_view ( val ) {
606
+ switch(val) {
607
+ case 'thumbnail': {
608
+ bwg_show_hide('tr_album_mosaic', 'none');
609
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
610
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
611
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
612
+ bwg_show_hide('album_image_title_show_hover_0', '');
613
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
614
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
615
+ bwg_show_hide('tr_album_images_per_page', '');
616
+ }
617
+ break;
618
+ case 'masonry': {
619
+ bwg_show_hide('tr_album_mosaic', 'none');
620
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
621
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
622
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
623
+ bwg_show_hide('album_image_title_show_hover_0', '');
624
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
625
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
626
+ bwg_show_hide('tr_album_images_per_page', '');
627
+ }
628
+ break;
629
+ case 'mosaic': {
630
+ bwg_show_hide('tr_album_mosaic', '');
631
+ bwg_show_hide('tr_album_resizable_mosaic', '');
632
+ bwg_show_hide('tr_album_mosaic_total_width', '');;
633
+ bwg_show_hide('for_album_image_title_show_hover_0', 'none');
634
+ bwg_show_hide('album_image_title_show_hover_0', 'none');
635
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', 'none');
636
+ bwg_show_hide('tr_album_thumbnail_dimensions', '');
637
+ bwg_show_hide('tr_album_images_per_page', '');
638
+ }
639
+ break;
640
+ case 'slideshow': {
641
+ bwg_show_hide('tr_album_mosaic', 'none');
642
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
643
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
644
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
645
+ bwg_show_hide('album_image_title_show_hover_0', '');
646
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
647
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
648
+ bwg_show_hide('tr_album_images_per_page', 'none');
649
+ }
650
+ case 'image_browser': {
651
+ bwg_show_hide('tr_album_mosaic', 'none');
652
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
653
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
654
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
655
+ bwg_show_hide('album_image_title_show_hover_0', '');
656
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
657
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
658
+ bwg_show_hide('tr_album_images_per_page', 'none');
659
+ }
660
+ break;
661
+ case 'blog_style': {
662
+ bwg_show_hide('tr_album_mosaic', 'none');
663
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
664
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
665
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
666
+ bwg_show_hide('album_image_title_show_hover_0', '');
667
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
668
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
669
+ bwg_show_hide('tr_album_images_per_page', '');
670
+ }
671
+ break;
672
+ case 'carousel': {
673
+ bwg_show_hide('tr_album_mosaic', 'none');
674
+ bwg_show_hide('tr_album_resizable_mosaic', 'none');
675
+ bwg_show_hide('tr_album_mosaic_total_width', 'none');
676
+ bwg_show_hide('for_album_image_title_show_hover_0', '');
677
+ bwg_show_hide('album_image_title_show_hover_0', '');
678
+ bwg_show_hide('for_album_ecommerce_icon_show_hover_0', '');
679
+ bwg_show_hide('tr_album_thumbnail_dimensions', 'none');
680
+ bwg_show_hide('tr_album_images_per_page', 'none');
681
+ }
682
+ break;
683
+ }
684
+ }
685
+
686
+ function show_hide_extended_album_view ( val ) {
687
+ switch(val) {
688
+ case 'thumbnail': {
689
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
690
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
691
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
692
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
693
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
694
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
695
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
696
+ bwg_show_hide('tr_album_extended_images_per_page', '');
697
+ }
698
+ break;
699
+ case 'masonry': {
700
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
701
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
702
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
703
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
704
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
705
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
706
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
707
+ bwg_show_hide('tr_album_extended_images_per_page', '');
708
+ }
709
+ break;
710
+ case 'mosaic': {
711
+ bwg_show_hide('tr_album_extended_mosaic', '');
712
+ bwg_show_hide('tr_album_extended_resizable_mosaic', '');
713
+ bwg_show_hide('tr_album_extended_mosaic_total_width', '');
714
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', 'none');
715
+ bwg_show_hide('album_extended_image_title_show_hover_0', 'none');
716
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', 'none');
717
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', '');
718
+ bwg_show_hide('tr_album_extended_images_per_page', '');
719
+ }
720
+ break;
721
+ case 'slideshow': {
722
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
723
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
724
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
725
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
726
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
727
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
728
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
729
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
730
+ }
731
+ case 'image_browser': {
732
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
733
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
734
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
735
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
736
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
737
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
738
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
739
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
740
+ }
741
+ break;
742
+ case 'blog_style': {
743
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
744
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
745
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
746
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
747
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
748
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
749
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
750
+ bwg_show_hide('tr_album_extended_images_per_page', '');
751
+ }
752
+ break;
753
+ case 'carousel': {
754
+ bwg_show_hide('tr_album_extended_mosaic', 'none');
755
+ bwg_show_hide('tr_album_extended_resizable_mosaic', 'none');
756
+ bwg_show_hide('tr_album_extended_mosaic_total_width', 'none');
757
+ bwg_show_hide('for_album_extended_image_title_show_hover_0', '');
758
+ bwg_show_hide('album_extended_image_title_show_hover_0', '');
759
+ bwg_show_hide('for_album_extended_ecommerce_icon_show_hover_0', '');
760
+ bwg_show_hide('tr_album_extended_thumbnail_dimensions', 'none');
761
+ bwg_show_hide('tr_album_extended_images_per_page', 'none');
762
+ }
763
+ break;
764
+ }
765
+ }
766
+
767
+ function bwg_show_hide(id, display) {
768
+ jQuery("#" + id).css('display', display);
769
  }
js/scripts.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(_){_.fn.SumoSelect=function(e){var o=_.extend({placeholder:"Select Here",csvDispCount:3,captionFormat:"{0} Selected",captionFormatAllSelected:"{0} all selected!",floatWidth:400,forceCustomRendering:!1,nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],outputAsCSV:!1,csvSepChar:",",okCancelInMulti:!1,isClickAwayOk:!1,triggerChangeCombined:!0,selectAll:!1,search:!1,searchText:"Search...",noMatch:'No matches for "{0}"',prefix:"",locale:["OK","Cancel","Select All"],up:!1,showTitle:!0},e),t=this.each(function(){var r=this;!this.sumo&&_(this).is("select")&&(this.sumo={E:_(r),is_multi:_(r).attr("multiple"),select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",ul:"",is_floating:!1,is_opened:!1,mob:!1,Pstate:[],createElems:function(){var e=this;e.E.wrap('<div class="SumoSelect" tabindex="0" role="button" aria-expanded="false">'),e.select=e.E.parent(),e.caption=_("<span>"),e.CaptionCont=_('<p class="CaptionCont SelectBox" ><label><i></i></label></p>').attr("style",e.E.attr("style")).prepend(e.caption),e.select.append(e.CaptionCont),e.is_multi||(o.okCancelInMulti=!1),e.E.attr("disabled")&&e.select.addClass("disabled").removeAttr("tabindex"),o.outputAsCSV&&e.is_multi&&e.E.attr("name")&&(e.select.append(_('<input class="HEMANT123" type="hidden" />').attr("name",e.E.attr("name")).val(e.getSelStr())),e.E.removeAttr("name")),!e.isMobile()||o.forceCustomRendering?(e.E.attr("name")&&e.select.addClass("sumo_"+e.E.attr("name").replace(/\[\]/,"")),e.E.addClass("SumoUnder").attr("tabindex","-1"),e.optDiv=_('<div class="optWrapper '+(o.up?"up":"")+'">'),e.floatingList(),e.ul=_('<ul class="options">'),e.optDiv.append(e.ul),o.selectAll&&e.is_multi&&e.SelAll(),o.search&&e.Search(),e.ul.append(e.prepItems(e.E.children())),e.is_multi&&e.multiSelelect(),e.select.append(e.optDiv),e.basicEvents(),e.selAllState()):e.setNativeMobile()},prepItems:function(e,a){var i=[],r=this;return _(e).each(function(e,t){t=_(t),i.push(t.is("optgroup")?_('<li class="group '+(t[0].disabled?"disabled":"")+'"><label>'+t.attr("label")+"</label><ul></ul></li>").find("ul").append(r.prepItems(t.children(),t[0].disabled)).end():r.createLi(t,a))}),i},createLi:function(e,t){e.attr("value")||e.attr("value",e.val());var a=_('<li class="opt"><label>'+e.text()+"</label></li>");return a.data("opt",e),e.data("li",a),this.is_multi&&a.prepend("<span><i></i></span>"),(e[0].disabled||t)&&(a=a.addClass("disabled")),this.onOptClick(a),e[0].selected&&a.addClass("selected"),e.attr("class")&&a.addClass(e.attr("class")),e.attr("title")&&a.attr("title",e.attr("title")),a},getSelStr:function(){return sopt=[],this.E.find("option:selected").each(function(){sopt.push(_(this).val())}),sopt.join(o.csvSepChar)},multiSelelect:function(){var a=this;a.optDiv.addClass("multiple"),a.okbtn=_('<p tabindex="0" class="btnOk">'+o.locale[0]+"</p>").click(function(){a._okbtn(),a.hideOpts()}),a.cancelBtn=_('<p tabindex="0" class="btnCancel">'+o.locale[1]+"</p>").click(function(){a._cnbtn(),a.hideOpts()});var e=a.okbtn.add(a.cancelBtn);a.optDiv.append(_('<div class="MultiControls">').append(e)),e.on("keydown.sumo",function(e){var t=_(this);switch(e.which){case 32:case 13:t.trigger("click");break;case 9:if(t.hasClass("btnOk"))return;case 27:return a._cnbtn(),void a.hideOpts()}e.stopPropagation(),e.preventDefault()})},_okbtn:function(){var a=this,i=0;o.triggerChangeCombined&&(a.E.find("option:selected").length!=a.Pstate.length?i=1:a.E.find("option").each(function(e,t){t.selected&&a.Pstate.indexOf(e)<0&&(i=1)}),i&&(a.callChange(),a.setText()))},_cnbtn:function(){var e=this;e.E.find("option:selected").each(function(){this.selected=!1}),e.optDiv.find("li.selected").removeClass("selected");for(var t=0;t<e.Pstate.length;t++)e.E.find("option")[e.Pstate[t]].selected=!0,e.ul.find("li.opt").eq(e.Pstate[t]).addClass("selected");e.selAllState()},SelAll:function(){var e=this;e.is_multi&&(e.selAll=_('<p class="select-all"><span><i></i></span><label>'+o.locale[2]+"</label></p>"),e.optDiv.addClass("selall"),e.selAll.on("click",function(){e.selAll.toggleClass("selected"),e.toggSelAll(e.selAll.hasClass("selected"),1)}),e.optDiv.prepend(e.selAll))},Search:function(){var i=this,e=i.CaptionCont.addClass("search"),t=_('<p class="no-match">');i.ftxt=_('<input type="text" class="search-txt" value="" placeholder="'+o.searchText+'">').on("click",function(e){e.stopPropagation()}),e.append(i.ftxt),i.optDiv.children("ul").after(t),i.ftxt.on("keyup.sumo",function(){var e=i.optDiv.find("ul.options li.opt").each(function(e,t){var a=(t=_(t)).data("opt")[0];a.hidden=t.text().toLowerCase().indexOf(i.ftxt.val().toLowerCase())<0,t.toggleClass("hidden",a.hidden)}).not(".hidden");t.html(o.noMatch.replace(/\{0\}/g,"<em></em>")).toggle(!e.length),t.find("em").text(i.ftxt.val()),i.selAllState()})},selAllState:function(){var e=this;if(o.selectAll&&e.is_multi){var a=0,i=0;e.optDiv.find("li.opt").not(".hidden").each(function(e,t){_(t).hasClass("selected")&&a++,_(t).hasClass("disabled")||i++}),a==i?e.selAll.removeClass("partial").addClass("selected"):0==a?e.selAll.removeClass("selected partial"):e.selAll.addClass("partial")}},showOpts:function(){var t=this;t.E.attr("disabled")||(t.E.trigger("sumo:opening",t),t.is_opened=!0,t.select.addClass("open").attr("aria-expanded","true"),t.E.trigger("sumo:opened",t),t.ftxt?t.ftxt.focus():t.select.focus(),_(document).on("click.sumo",function(e){if(!t.select.is(e.target)&&0===t.select.has(e.target).length){if(!t.is_opened)return;t.hideOpts(),o.okCancelInMulti&&(o.isClickAwayOk?t._okbtn():t._cnbtn())}}),t.is_floating&&(H=t.optDiv.children("ul").outerHeight()+2,t.is_multi&&(H+=parseInt(t.optDiv.css("padding-bottom"))),t.optDiv.css("height",H),_("body").addClass("sumoStopScroll")),t.setPstate())},setPstate:function(){var a=this;a.is_multi&&(a.is_floating||o.okCancelInMulti)&&(a.Pstate=[],a.E.find("option").each(function(e,t){t.selected&&a.Pstate.push(e)}))},callChange:function(){this.E.trigger("change").trigger("click")},hideOpts:function(){var e=this;e.is_opened&&(e.E.trigger("sumo:closing",e),e.is_opened=!1,e.select.removeClass("open").attr("aria-expanded","true").find("ul li.sel").removeClass("sel"),e.E.trigger("sumo:closed",e),_(document).off("click.sumo"),e.select.focus(),_("body").removeClass("sumoStopScroll"),o.search&&(e.ftxt.val(""),e.ftxt.trigger("keyup.sumo")))},setOnOpen:function(){var e=this,t=e.optDiv.find("li.opt:not(.hidden)").eq(o.search?0:e.E[0].selectedIndex);t.hasClass("disabled")&&!(t=t.next(":not(disabled)")).length||(e.optDiv.find("li.sel").removeClass("sel"),t.addClass("sel"),e.showOpts())},nav:function(e){var t,a=this,i=a.ul.find("li.opt:not(.disabled, .hidden)"),r=a.ul.find("li.opt.sel:not(.hidden)"),o=i.index(r);if(a.is_opened&&r.length){if(e&&0<o)t=i.eq(o-1);else{if(!(!e&&o<i.length-1&&-1<o))return;t=i.eq(o+1)}r.removeClass("sel"),r=t.addClass("sel");var _=a.ul,s=_.scrollTop(),n=r.position().top+s;n>=s+_.height()-r.outerHeight()&&_.scrollTop(n-_.height()+r.outerHeight()),n<s&&_.scrollTop(n)}else a.setOnOpen()},basicEvents:function(){var t=this;t.CaptionCont.click(function(e){t.E.trigger("click"),t.is_opened?t.hideOpts():t.showOpts(),e.stopPropagation()}),t.select.on("keydown.sumo",function(e){switch(e.which){case 38:t.nav(!0);break;case 40:t.nav(!1);break;case 65:if(t.is_multi&&e.ctrlKey){t.toggSelAll(!e.shiftKey,1);break}return;case 32:if(o.search&&t.ftxt.is(e.target))return;case 13:t.is_opened?t.optDiv.find("ul li.sel").trigger("click"):t.setOnOpen();break;case 9:return void(o.okCancelInMulti||t.hideOpts());case 27:return o.okCancelInMulti&&t._cnbtn(),void t.hideOpts();default:return}e.preventDefault()}),_(window).on("resize.sumo",function(){t.floatingList()})},onOptClick:function(e){var t=this;e.click(function(){var e=_(this);if(!e.hasClass("disabled")){t.is_multi?(e.toggleClass("selected"),e.data("opt")[0].selected=e.hasClass("selected"),t.selAllState()):(e.parent().find("li.selected").removeClass("selected"),e.toggleClass("selected"),e.data("opt")[0].selected=!0),t.is_multi&&o.triggerChangeCombined&&(t.is_floating||o.okCancelInMulti)||(t.setText(),t.callChange()),t.is_multi||t.hideOpts()}})},setText:function(){var e=this;if(e.placeholder="",e.is_multi){for(sels=e.E.find(":selected").not(":disabled"),i=0;i<sels.length;i++){if(i+1>=o.csvDispCount&&o.csvDispCount){sels.length==e.E.find("option").length&&o.captionFormatAllSelected?e.placeholder=o.captionFormatAllSelected.replace(/\{0\}/g,sels.length)+",":e.placeholder=o.captionFormat.replace(/\{0\}/g,sels.length)+",";break}e.placeholder+=_(sels[i]).text()+", "}e.placeholder=e.placeholder.replace(/,([^,]*)$/,"$1")}else e.placeholder=e.E.find(":selected").not(":disabled").text();var t=!1;e.placeholder||(t=!0,e.placeholder=e.E.attr("placeholder"),e.placeholder||(e.placeholder=e.E.find("option:disabled:selected").text())),e.placeholder=e.placeholder?o.prefix+" "+e.placeholder:o.placeholder,e.caption.html(e.placeholder),o.showTitle&&e.CaptionCont.attr("title",e.placeholder);var a=e.select.find("input.HEMANT123");return a.length&&a.val(e.getSelStr()),t?e.caption.addClass("placeholder"):e.caption.removeClass("placeholder"),e.placeholder},isMobile:function(){for(var e=navigator.userAgent||navigator.vendor||window.opera,t=0;t<o.nativeOnDevice.length;t++)if(0<e.toString().toLowerCase().indexOf(o.nativeOnDevice[t].toLowerCase()))return o.nativeOnDevice[t];return!1},setNativeMobile:function(){var e=this;e.E.addClass("SelectClass"),e.mob=!0,e.E.change(function(){e.setText()})},floatingList:function(){var e=this;e.is_floating=_(window).width()<=o.floatWidth,e.optDiv.toggleClass("isFloating",e.is_floating),e.is_floating||e.optDiv.css("height",""),e.optDiv.toggleClass("okCancelInMulti",o.okCancelInMulti&&!e.is_floating)},vRange:function(e){if(this.E.find("option").length<=e||e<0)throw"index out of bounds";return this},toggSel:function(e,t){var a,i=this;(a="number"==typeof t?(i.vRange(t),i.E.find("option")[t]):i.E.find('option[value="'+t+'"]')[0]||0)&&!a.disabled&&a.selected!=e&&(a.selected=e,i.mob||_(a).data("li").toggleClass("selected",e),i.callChange(),i.setPstate(),i.setText(),i.selAllState())},toggDis:function(e,t){var a=this.vRange(t);(a.E.find("option")[t].disabled=e)&&(a.E.find("option")[t].selected=!1),a.mob||a.optDiv.find("ul.options li").eq(t).toggleClass("disabled",e).removeClass("selected"),a.setText()},toggSumo:function(e){var t=this;return t.enabled=e,t.select.toggleClass("disabled",e),e?(t.E.attr("disabled","disabled"),t.select.removeAttr("tabindex")):(t.E.removeAttr("disabled"),t.select.attr("tabindex","0")),t},toggSelAll:function(i,e){var t=this;t.E.find("option:not(:disabled,:hidden)").each(function(e,t){var a=t.selected;(t=_(t).data("li")).hasClass("hidden")||(i?a||t.trigger("click"):a&&t.trigger("click"))}),e||(!t.mob&&t.selAll&&t.selAll.removeClass("partial").toggleClass("selected",!!i),t.callChange(),t.setText(),t.setPstate())},reload:function(){var e=this.unload();return _(e).SumoSelect(o)},unload:function(){var e=this;return e.select.before(e.E),e.E.show(),o.outputAsCSV&&e.is_multi&&e.select.find("input.HEMANT123").length&&e.E.attr("name",e.select.find("input.HEMANT123").attr("name")),e.select.remove(),delete r.sumo,r},add:function(e,t,a){if(void 0===e)throw"No value to add";var i=this;if(opts=i.E.find("option"),"number"==typeof t&&(a=t,t=e),void 0===t&&(t=e),opt=_("<option></option>").val(e).html(t),opts.length<a)throw"index out of bounds";return void 0===a||opts.length==a?(i.E.append(opt),i.mob||i.ul.append(i.createLi(opt))):(opts.eq(a).before(opt),i.mob||i.ul.find("li.opt").eq(a).before(i.createLi(opt))),r},remove:function(e){var t=this.vRange(e);t.E.find("option").eq(e).remove(),t.mob||t.optDiv.find("ul.options li").eq(e).remove(),t.setText()},selectItem:function(e){this.toggSel(!0,e)},unSelectItem:function(e){this.toggSel(!1,e)},selectAll:function(){this.toggSelAll(!0)},unSelectAll:function(){this.toggSelAll(!1)},disableItem:function(e){this.toggDis(!0,e)},enableItem:function(e){this.toggDis(!1,e)},enabled:!0,enable:function(){return this.toggSumo(!1)},disable:function(){return this.toggSumo(!0)},init:function(){return this.createElems(),this.setText(),this}},r.sumo.init())});return 1==t.length?t[0]:t}}),function(t,a,i){"function"==typeof define&&define.amd?define(["jquery"],function(e){return i(e,t,a),e.mobile}):i(t.jQuery,t,a)}(this,document,function(e,t,r,a){var i,o;(function(c,e,t,d){function h(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function o(e){for(var t,a,i={};e;){for(a in t=c.data(e,j))t[a]&&(i[a]=i.hasVirtualBinding=!0);e=e.parentNode}return i}function r(){M=!0}function _(){M=!1}function s(){n(),k=setTimeout(function(){B=k=0,T.length=0,O=!1,r()},c.vmouse.resetTimerDuration)}function n(){k&&(clearTimeout(k),k=0)}function l(e,t,a){var i;return(a&&a[e]||!a&&function(e,t){for(var a;e;){if((a=c.data(e,j))&&(!t||a[t]))return e;e=e.parentNode}return null}(t.target,e))&&(i=function(e,t){var a,i,r,o,_,s,n,l,g,u=e.type;if((e=c.Event(e)).type=t,a=e.originalEvent,i=c.event.props,-1<u.search(/^(mouse|click)/)&&(i=C),a)for(n=i.length;n;)e[o=i[--n]]=a[o];if(-1<u.search(/mouse(down|up)|click/)&&!e.which&&(e.which=1),-1!==u.search(/^touch/)&&(u=(r=h(a)).touches,_=r.changedTouches,s=u&&u.length?u[0]:_&&_.length?_[0]:d))for(l=0,g=v.length;l<g;l++)e[o=v[l]]=s[o];return e}(t,e),c(t.target).trigger(i)),i}function g(e){var t=c.data(e.target,Q);if(!(O||B&&B===t)){var a=l("v"+e.type,e);a&&(a.isDefaultPrevented()&&e.preventDefault(),a.isPropagationStopped()&&e.stopPropagation(),a.isImmediatePropagationStopped()&&e.stopImmediatePropagation())}}function u(e){var t,a,i=h(e).touches;if(i&&1===i.length&&(a=o(t=e.target)).hasVirtualBinding){B=A++,c.data(t,Q,B),n(),_(),z=!1;var r=h(e).touches[0];E=r.pageX,I=r.pageY,l("vmouseover",e,a),l("vmousedown",e,a)}}function b(e){M||(z||l("vmousecancel",e,o(e.target)),z=!0,s())}function p(e){if(!M){var t=h(e).touches[0],a=z,i=c.vmouse.moveDistanceThreshold,r=o(e.target);(z=z||Math.abs(t.pageX-E)>i||Math.abs(t.pageY-I)>i)&&!a&&l("vmousecancel",e,r),l("vmousemove",e,r),s()}}function m(e){if(!M){r();var t,a=o(e.target);if(l("vmouseup",e,a),!z){var i=l("vclick",e,a);i&&i.isDefaultPrevented()&&(t=h(e).changedTouches[0],T.push({touchID:B,x:t.clientX,y:t.clientY}),O=!0)}l("vmouseout",e,a),z=!1,s()}}function w(e){var t,a=c.data(e,j);if(a)for(t in a)if(a[t])return!0;return!1}function y(){}function a(r){var o=r.substr(1);return{setup:function(e,t){w(this)||c.data(this,j,{}),c.data(this,j)[r]=!0,S[r]=(S[r]||0)+1,1===S[r]&&F.bind(o,g),c(this).bind(o,y),D&&(S.touchstart=(S.touchstart||0)+1,1===S.touchstart&&F.bind("touchstart",u).bind("touchend",m).bind("touchmove",p).bind("scroll",b))},teardown:function(e,t){--S[r],S[r]||F.unbind(o,g),D&&(--S.touchstart,S.touchstart||F.unbind("touchstart",u).unbind("touchmove",p).unbind("touchend",m).unbind("scroll",b));var a=c(this),i=c.data(this,j);i&&(i[r]=!1),a.unbind(o,y),w(this)||a.removeData(j)}}}var f,j="virtualMouseBindings",Q="virtualTouchID",i="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),v="clientX clientY pageX pageY screenX screenY".split(" "),x=c.event.mouseHooks?c.event.mouseHooks.props:[],C=c.event.props.concat(x),S={},k=0,E=0,I=0,z=!1,T=[],O=!1,M=!1,D="addEventListener"in t,F=c(t),A=1,B=0;c.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var H=0;H<i.length;H++)c.event.special[i[H]]=a(i[H]);D&&t.addEventListener("click",function(e){var t,a,i,r,o,_=T.length,s=e.target;if(_)for(t=e.clientX,a=e.clientY,f=c.vmouse.clickDistanceThreshold,i=s;i;){for(r=0;r<_;r++)if(o=T[r],0,i===s&&Math.abs(o.x-t)<f&&Math.abs(o.y-a)<f||c.data(i,Q)===o.touchID)return e.preventDefault(),void e.stopPropagation();i=i.parentNode}},!0)})(e,0,r),e.mobile={},o={touch:"ontouchend"in r},(i=e).mobile.support=i.mobile.support||{},i.extend(i.support,o),i.extend(i.mobile.support,o),function(n,e,t){function l(e,t,a){var i=a.type;a.type=t,n.event.dispatch.call(e,a),a.type=i}var g=n(r);n.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){n.fn[t]=function(e){return e?this.bind(t,e):this.trigger(t)},n.attrFn&&(n.attrFn[t]=!0)});var a=n.mobile.support.touch,i=a?"touchstart":"mousedown",o=a?"touchend":"mouseup",_=a?"touchmove":"mousemove";n.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){l(r,(a=t)?"scrollstart":"scrollstop",e)}var a,i,r=this;n(r).bind("touchmove scroll",function(e){n.event.special.scrollstart.enabled&&(a||t(e,!0),clearTimeout(i),i=setTimeout(function(){t(e,!1)},50))})}},n.event.special.tap={tapholdThreshold:750,setup:function(){var _=this,s=n(_);s.bind("vmousedown",function(e){function t(){clearTimeout(r)}function a(){t(),s.unbind("vclick",i).unbind("vmouseup",t),g.unbind("vmousecancel",a)}function i(e){a(),o===e.target&&l(_,"tap",e)}if(e.which&&1!==e.which)return!1;var r,o=e.target;e.originalEvent;s.bind("vmouseup",t).bind("vclick",i),g.bind("vmousecancel",a),r=setTimeout(function(){l(_,"taphold",n.Event("taphold",{target:o}))},n.event.special.tap.tapholdThreshold)})}},n.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:10,verticalDistanceThreshold:475,start:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY],origin:n(e.target)}},stop:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY]}},handleSwipe:function(e,t){t.time-e.time<n.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-t.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-t.coords[1])<n.event.special.swipe.verticalDistanceThreshold&&e.origin.trigger("swipe").trigger(e.coords[0]>t.coords[0]?"swipeleft":"swiperight")},setup:function(){var r=n(this);r.bind(i,function(e){function t(e){i&&(a=n.event.special.swipe.stop(e),Math.abs(i.coords[0]-a.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&e.preventDefault())}var a,i=n.event.special.swipe.start(e);r.bind(_,t).one(o,function(){r.unbind(_,t),i&&a&&n.event.special.swipe.handleSwipe(i,a),i=a=void 0})})}},n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(e,t){n.event.special[e]={setup:function(){n(this).bind(t,n.noop)}}})}(e)}),function(_){function t(e){var t=e||window.event,a=[].slice.call(arguments,1),i=0,r=0,o=0;return(e=_.event.fix(t)).type="mousewheel",t.wheelDelta&&(i=t.wheelDelta/120),t.detail&&(i=-t.detail/3),o=i,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(o=0,r=-1*i),void 0!==t.wheelDeltaY&&(o=t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(r=-1*t.wheelDeltaX/120),a.unshift(e,i,r,o),(_.event.dispatch||_.event.handle).apply(this,a)}var a=["DOMMouseScroll","mousewheel"];if(_.event.fixHooks)for(var e=a.length;e;)_.event.fixHooks[a[--e]]=_.event.mouseHooks;_.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=a.length;e;)this.addEventListener(a[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=a.length;e;)this.removeEventListener(a[--e],t,!1);else this.onmousewheel=null}},_.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),function(x){var t={init:function(d){d=x.extend(!0,{set_width:!1,set_height:!1,horizontalScroll:!1,scrollInertia:950,mouseWheel:!0,mouseWheelPixels:"auto",autoDraggerLength:!0,autoHideScrollbar:!1,snapAmount:null,snapOffset:0,scrollButtons:{enable:!1,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:!0,updateOnContentResize:!1,autoExpandHorizontalScroll:!1,autoScrollOnFocus:!0,normalizeMouseWheelDelta:!1},contentTouchScroll:!0,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},d);return this.each(function(){var a=x(this);if(d.set_width&&a.css("width",d.set_width),d.set_height&&a.css("height",d.set_height),x(document).data("mCustomScrollbar-index")){var e=parseInt(x(document).data("mCustomScrollbar-index"));x(document).data("mCustomScrollbar-index",e+1)}else x(document).data("mCustomScrollbar-index","1");a.wrapInner("<div class='mCustomScrollBox mCS-"+d.theme+"' id='mCSB_"+x(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+x(document).data("mCustomScrollbar-index"));var i=a.children(".mCustomScrollBox");if(d.horizontalScroll){i.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />");var t=i.children(".mCSB_h_wrapper");t.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:t.children().outerWidth(),position:"relative"}).unwrap()}else i.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />");var r=i.children(".mCSB_container");x.support.touch&&r.addClass("mCS_touch"),r.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>");var o=i.children(".mCSB_scrollTools"),_=o.children(".mCSB_draggerContainer").children(".mCSB_dragger");if(d.horizontalScroll?_.data("minDraggerWidth",_.width()):_.data("minDraggerHeight",_.height()),d.scrollButtons.enable&&(d.horizontalScroll?o.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>"):o.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>")),i.bind("scroll",function(){a.is(".mCS_disabled")||i.scrollTop(0).scrollLeft(0)}),a.data({mCS_Init:!0,mCustomScrollbarIndex:x(document).data("mCustomScrollbar-index"),horizontalScroll:d.horizontalScroll,scrollInertia:d.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:d.mouseWheel,mouseWheelPixels:d.mouseWheelPixels,autoDraggerLength:d.autoDraggerLength,autoHideScrollbar:d.autoHideScrollbar,snapAmount:d.snapAmount,snapOffset:d.snapOffset,scrollButtons_enable:d.scrollButtons.enable,scrollButtons_scrollType:d.scrollButtons.scrollType,scrollButtons_scrollSpeed:d.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:d.scrollButtons.scrollAmount,autoExpandHorizontalScroll:d.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:d.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:d.advanced.normalizeMouseWheelDelta,contentTouchScroll:d.contentTouchScroll,onScrollStart_Callback:d.callbacks.onScrollStart,onScroll_Callback:d.callbacks.onScroll,onTotalScroll_Callback:d.callbacks.onTotalScroll,onTotalScrollBack_Callback:d.callbacks.onTotalScrollBack,onTotalScroll_Offset:d.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:d.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:d.callbacks.whileScrolling,bindEvent_scrollbar_drag:!1,bindEvent_content_touch:!1,bindEvent_scrollbar_click:!1,bindEvent_mousewheel:!1,bindEvent_buttonsContinuous_y:!1,bindEvent_buttonsContinuous_x:!1,bindEvent_buttonsPixels_y:!1,bindEvent_buttonsPixels_x:!1,bindEvent_focusin:!1,bindEvent_autoHideScrollbar:!1,mCSB_buttonScrollRight:!1,mCSB_buttonScrollLeft:!1,mCSB_buttonScrollDown:!1,mCSB_buttonScrollUp:!1}),d.horizontalScroll)"none"!==a.css("max-width")&&(d.advanced.updateOnContentResize||(d.advanced.updateOnContentResize=!0));else if("none"!==a.css("max-height")){var s=!1,n=parseInt(a.css("max-height"));0<=a.css("max-height").indexOf("%")&&(s=n,n=a.parent().height()*s/100),a.css("overflow","hidden"),i.css("max-height",n)}if(a.mCustomScrollbar("update"),d.advanced.updateOnBrowserResize){var l,g=x(window).width(),u=x(window).height();x(window).bind("resize."+a.data("mCustomScrollbarIndex"),function(){l&&clearTimeout(l),l=setTimeout(function(){if(!a.is(".mCS_disabled")&&!a.is(".mCS_destroyed")){var e=x(window).width(),t=x(window).height();g===e&&u===t||("none"!==a.css("max-height")&&s&&i.css("max-height",a.parent().height()*s/100),a.mCustomScrollbar("update"),g=e,u=t)}},150)})}if(d.advanced.updateOnContentResize){if(d.horizontalScroll)var c=r.outerWidth();else c=r.outerHeight();setInterval(function(){if(d.horizontalScroll){d.advanced.autoExpandHorizontalScroll&&r.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:r.outerWidth(),position:"relative"}).unwrap();var e=r.outerWidth()}else e=r.outerHeight();e!=c&&(a.mCustomScrollbar("update"),c=e)},300)}})},update:function(){var e=x(this),t=e.children(".mCustomScrollBox"),a=t.children(".mCSB_container");a.removeClass("mCS_no_scrollbar"),e.removeClass("mCS_disabled mCS_destroyed"),t.scrollTop(0).scrollLeft(0);var i=t.children(".mCSB_scrollTools"),r=i.children(".mCSB_draggerContainer"),o=r.children(".mCSB_dragger");if(e.data("horizontalScroll")){var _=i.children(".mCSB_buttonLeft"),s=i.children(".mCSB_buttonRight"),n=t.width();e.data("autoExpandHorizontalScroll")&&a.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:a.outerWidth(),position:"relative"}).unwrap();var l=a.outerWidth()}else var g=i.children(".mCSB_buttonUp"),u=i.children(".mCSB_buttonDown"),c=t.height(),d=a.outerHeight();if(c<d&&!e.data("horizontalScroll")){i.css("display","block");var h=r.height();if(e.data("autoDraggerLength")){var b=Math.round(c/d*h),p=o.data("minDraggerHeight");if(b<=p)o.css({height:p});else if(h-10<=b){var m=h-10;o.css({height:m})}else o.css({height:b});o.children(".mCSB_dragger_bar").css({"line-height":o.height()+"px"})}var w=(d-c)/(h-o.height());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,a,r,o,g,u,_,s);var y=Math.abs(a.position().top);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else if(n<l&&e.data("horizontalScroll")){i.css("display","block");var f=r.width();if(e.data("autoDraggerLength")){var j=Math.round(n/l*f),Q=o.data("minDraggerWidth");if(j<=Q)o.css({width:Q});else if(f-10<=j){var v=f-10;o.css({width:v})}else o.css({width:j})}w=(l-n)/(f-o.width());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,a,r,o,g,u,_,s);y=Math.abs(a.position().left);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else t.unbind("mousewheel focusin"),e.data("horizontalScroll")?o.add(a).css("left",0):o.add(a).css("top",0),i.css("display","none"),a.addClass("mCS_no_scrollbar"),e.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1})},scrolling:function(r,s,n,l,e,t,a,i){var _,g,o,u,c,d,h,b,p,m=x(this);m.data("bindEvent_scrollbar_drag")||(x.support.msPointer?(l.bind("MSPointerDown",function(e){e.preventDefault(),m.data({on_drag:!0}),l.addClass("mCSB_dragger_onDrag");var t=x(this),a=t.offset(),i=e.originalEvent.pageX-a.left,r=e.originalEvent.pageY-a.top;i<t.width()&&0<i&&r<t.height()&&0<r&&(_=r,g=i)}),x(document).bind("MSPointerMove."+m.data("mCustomScrollbarIndex"),function(e){if(e.preventDefault(),m.data("on_drag")){var t=l.offset(),a=e.originalEvent.pageX-t.left,i=e.originalEvent.pageY-t.top;w(_,g,i,a)}}).bind("MSPointerUp."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),l.removeClass("mCSB_dragger_onDrag")})):(l.bind("mousedown touchstart",function(e){e.preventDefault(),e.stopImmediatePropagation();var t,a,i=x(this),r=i.offset();if("touchstart"===e.type){var o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t=o.pageX-r.left,a=o.pageY-r.top}else m.data({on_drag:!0}),l.addClass("mCSB_dragger_onDrag"),t=e.pageX-r.left,a=e.pageY-r.top;t<i.width()&&0<t&&a<i.height()&&0<a&&(_=a,g=t)}).bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation();var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=x(this).offset(),i=t.pageX-a.left,r=t.pageY-a.top;w(_,g,r,i)}),x(document).bind("mousemove."+m.data("mCustomScrollbarIndex"),function(e){if(m.data("on_drag")){var t=l.offset(),a=e.pageX-t.left,i=e.pageY-t.top;w(_,g,i,a)}}).bind("mouseup."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),l.removeClass("mCSB_dragger_onDrag")})),m.data({bindEvent_scrollbar_drag:!0}));function w(e,t,a,i){m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",l.position().left-t+i,{moveDragger:!0,trigger:"internal"}):m.mCustomScrollbar("scrollTo",l.position().top-e+a,{moveDragger:!0,trigger:"internal"})}x.support.touch&&m.data("contentTouchScroll")&&(m.data("bindEvent_content_touch")||(s.bind("touchstart",function(e){e.stopImmediatePropagation(),o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this),c=u.offset(),h=o.pageX-c.left,d=o.pageY-c.top,b=d,p=h}),s.bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation(),o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this).parent(),c=u.offset(),h=o.pageX-c.left,d=o.pageY-c.top,m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",p-h,{trigger:"internal"}):m.mCustomScrollbar("scrollTo",b-d,{trigger:"internal"})})));if(m.data("bindEvent_scrollbar_click")||(n.bind("click",function(e){var t=(e.pageY-n.offset().top)*m.data("scrollAmount"),a=x(e.target);m.data("horizontalScroll")&&(t=(e.pageX-n.offset().left)*m.data("scrollAmount")),(a.hasClass("mCSB_draggerContainer")||a.hasClass("mCSB_draggerRail"))&&m.mCustomScrollbar("scrollTo",t,{trigger:"internal",scrollEasing:"draggerRailEase"})}),m.data({bindEvent_scrollbar_click:!0})),m.data("mouseWheel")&&(m.data("bindEvent_mousewheel")||(r.bind("mousewheel",function(e,t){var a,i=m.data("mouseWheelPixels"),r=Math.abs(s.position().top),o=l.position().top,_=n.height()-l.height();m.data("normalizeMouseWheelDelta")&&(t=t<0?-1:1),"auto"===i&&(i=100+Math.round(m.data("scrollAmount")/2)),m.data("horizontalScroll")&&(o=l.position().left,_=n.width()-l.width(),r=Math.abs(s.position().left)),(0<t&&0!==o||t<0&&o!==_)&&(e.preventDefault(),e.stopImmediatePropagation()),a=r-t*i,m.mCustomScrollbar("scrollTo",a,{trigger:"internal"})}),m.data({bindEvent_mousewheel:!0}))),m.data("scrollButtons_enable"))if("pixels"===m.data("scrollButtons_scrollType")){function y(e){l.data("preventAction")||(l.data("preventAction",!0),m.mCustomScrollbar("scrollTo",e,{trigger:"internal"}))}m.data("horizontalScroll")?(i.add(a).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_x:!1}),m.data("bindEvent_buttonsPixels_x")||(i.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)+m.data("scrollButtons_scrollAmount"))}),a.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_x:!0}))):(t.add(e).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_y:!1}),m.data("bindEvent_buttonsPixels_y")||(t.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)+m.data("scrollButtons_scrollAmount"))}),e.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_y:!0})))}else{if(m.data("horizontalScroll")){if(i.add(a).unbind("click"),m.data({bindEvent_buttonsPixels_x:!1}),!m.data("bindEvent_buttonsContinuous_x")){i.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollRight:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollRight"))};i.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",f),a.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollLeft:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var j=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollLeft"))};a.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",j),m.data({bindEvent_buttonsContinuous_x:!0})}}else if(t.add(e).unbind("click"),m.data({bindEvent_buttonsPixels_y:!1}),!m.data("bindEvent_buttonsContinuous_y")){t.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollDown:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});t.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollDown"))}),e.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollUp:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});e.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollUp"))}),m.data({bindEvent_buttonsContinuous_y:!0})}function Q(){var e=m.data("scrollButtons_scrollSpeed");return"auto"===m.data("scrollButtons_scrollSpeed")&&(e=Math.round((m.data("scrollInertia")+100)/40)),e}}m.data("autoScrollOnFocus")&&(m.data("bindEvent_focusin")||(r.bind("focusin",function(){r.scrollTop(0).scrollLeft(0);var e=x(document.activeElement);if(e.is("input,textarea,select,button,a[tabindex],area,object")){var t=s.position().top,a=e.position().top,i=r.height()-e.outerHeight();m.data("horizontalScroll")&&(t=s.position().left,a=e.position().left,i=r.width()-e.outerWidth()),(t+a<0||i<t+a)&&m.mCustomScrollbar("scrollTo",a,{trigger:"internal"})}}),m.data({bindEvent_focusin:!0}))),m.data("autoHideScrollbar")&&(m.data("bindEvent_autoHideScrollbar")||(r.bind("mouseenter",function(e){r.addClass("mCS-mouse-over"),v.showScrollbar.call(r.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(e){r.removeClass("mCS-mouse-over"),"mouseleave"===e.type&&v.hideScrollbar.call(r.children(".mCSB_scrollTools"))}),m.data({bindEvent_autoHideScrollbar:!0})))},scrollTo:function(e,t){var a,i,r,o,_,s=x(this),n={moveDragger:!1,trigger:"external",callbacks:!0,scrollInertia:s.data("scrollInertia"),scrollEasing:s.data("scrollEasing")},l=(t=x.extend(n,t),s.children(".mCustomScrollBox")),g=l.children(".mCSB_container"),u=l.children(".mCSB_scrollTools"),c=u.children(".mCSB_draggerContainer"),d=c.children(".mCSB_dragger"),h=draggerSpeed=t.scrollInertia;if(!g.hasClass("mCS_no_scrollbar")&&(s.data({mCS_trigger:t.trigger}),s.data("mCS_Init")&&(t.callbacks=!1),e||0===e)){var b,p;if("number"==typeof e)t.moveDragger?(a=e,e=s.data("horizontalScroll")?d.position().left*s.data("scrollAmount"):d.position().top*s.data("scrollAmount"),draggerSpeed=0):a=e/s.data("scrollAmount");else if("string"==typeof e)a=1===(b="top"===e?0:"bottom"!==e||s.data("horizontalScroll")?"left"===e?0:"right"===e&&s.data("horizontalScroll")?g.outerWidth()-l.width():"first"===e?s.find(".mCSB_container").find(":first"):"last"===e?s.find(".mCSB_container").find(":last"):s.find(e):g.outerHeight()-l.height()).length?(e=s.data("horizontalScroll")?b.position().left:b.position().top)/s.data("scrollAmount"):e=b;if(s.data("horizontalScroll"))s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(_=l.width()-g.outerWidth()+s.data("onTotalScroll_Offset")),a<0?(a=e=0,clearInterval(s.data("mCSB_buttonScrollLeft")),r||(i=!0)):a>=c.width()-d.width()?(a=c.width()-d.width(),e=l.width()-g.outerWidth(),clearInterval(s.data("mCSB_buttonScrollRight")),_||(o=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,d[0],"left",Math.round(a),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"left",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(i||r&&g.position().left>=r)&&m("onTotalScrollBack"),(o||_&&g.position().left<=_)&&m("onTotalScroll")),d.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(l.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});else s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(_=l.height()-g.outerHeight()+s.data("onTotalScroll_Offset")),a<0?(a=e=0,clearInterval(s.data("mCSB_buttonScrollUp")),r||(i=!0)):a>=c.height()-d.height()?(a=c.height()-d.height(),e=l.height()-g.outerHeight(),clearInterval(s.data("mCSB_buttonScrollDown")),_||(o=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,d[0],"top",Math.round(a),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"top",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(i||r&&g.position().top>=r)&&m("onTotalScrollBack"),(o||_&&g.position().top<=_)&&m("onTotalScroll")),d.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(l.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});s.data("mCS_Init")&&s.data({mCS_Init:!1})}function m(e){switch(this.mcs={top:g.position().top,left:g.position().left,draggerTop:d.position().top,draggerLeft:d.position().left,topPct:Math.round(100*Math.abs(g.position().top)/Math.abs(g.outerHeight()-l.height())),leftPct:Math.round(100*Math.abs(g.position().left)/Math.abs(g.outerWidth()-l.width()))},e){case"onScrollStart":s.data("mCS_tweenRunning",!0).data("onScrollStart_Callback").call(s,this.mcs);break;case"whileScrolling":s.data("whileScrolling_Callback").call(s,this.mcs);break;case"onScroll":s.data("onScroll_Callback").call(s,this.mcs);break;case"onTotalScrollBack":s.data("onTotalScrollBack_Callback").call(s,this.mcs);break;case"onTotalScroll":s.data("onTotalScroll_Callback").call(s,this.mcs)}}},stop:function(){var e=x(this),t=e.children().children(".mCSB_container"),a=e.children().children().children().children(".mCSB_dragger");v.mTweenAxisStop.call(this,t[0]),v.mTweenAxisStop.call(this,a[0])},disable:function(e){var t=x(this),a=t.children(".mCustomScrollBox"),i=a.children(".mCSB_container"),r=a.children(".mCSB_scrollTools"),o=r.children().children(".mCSB_dragger");a.unbind("mousewheel focusin mouseenter mouseleave touchend"),i.unbind("touchstart touchmove"),e&&(t.data("horizontalScroll")?o.add(i).css("left",0):o.add(i).css("top",0)),r.css("display","none"),i.addClass("mCS_no_scrollbar"),t.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1,bindEvent_content_touch:!1,bindEvent_autoHideScrollbar:!1}).addClass("mCS_disabled")},destroy:function(){var e=x(this);e.removeClass("mCustomScrollbar _mCS_"+e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove(),x(document).unbind("mousemove."+e.data("mCustomScrollbarIndex")+" mouseup."+e.data("mCustomScrollbarIndex")+" MSPointerMove."+e.data("mCustomScrollbarIndex")+" MSPointerUp."+e.data("mCustomScrollbarIndex")),x(window).unbind("resize."+e.data("mCustomScrollbarIndex"))}},v={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(e,t,a,i,r,o){var _,s=(o=o||{}).onStart||function(){},n=o.onUpdate||function(){},l=o.onComplete||function(){},g=b(),u=0,c=e.offsetTop,d=e.style;"left"===t&&(c=e.offsetLeft);var h=a-c;function b(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()}function p(){u||s.call(),u=b()-g,m(),u>=e._time&&(e._time=u>e._time?u+_-(u-e._time):u+_-1,e._time<u+1&&(e._time=u+1)),e._time<i?e._id=_request(p):l.call()}function m(){d[t]=0<i?(e.currVal=function(e,t,a,i,r){switch(r){case"linear":return a*e/i+t;case"easeOutQuad":return-a*(e/=i)*(e-2)+t;case"easeInOutQuad":return(e/=i/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t;case"easeOutCubic":return e/=i,a*(--e*e*e+1)+t;case"easeOutQuart":return e/=i,-a*(--e*e*e*e-1)+t;case"easeOutQuint":return e/=i,a*(--e*e*e*e*e+1)+t;case"easeOutCirc":return e/=i,e--,a*Math.sqrt(1-e*e)+t;case"easeOutSine":return a*Math.sin(e/i*(Math.PI/2))+t;case"easeOutExpo":return a*(1-Math.pow(2,-10*e/i))+t;case"mcsEaseOut":var o=(e/=i)*e,_=o*e;return t+a*(.499999999999997*_*o+-2.5*o*o+5.5*_+-6.5*o+4*e);case"draggerRailEase":return(e/=i/2)<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}}(e._time,c,h,i,r),Math.round(e.currVal)+"px"):a+"px",n.call()}!function(){if(null==e._id)return;window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id);e._id=null}(),_=1e3/60,e._time=u+_,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return m(),setTimeout(e,.01)},e._id=_request(p)},mTweenAxisStop:function(e){null!=e._id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id),e._id=null)},rafPolyfill:function(){for(var e=["ms","moz","webkit","o"],t=e.length;-1<--t&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"]}};v.rafPolyfill.call(),x.support.touch=!!("ontouchstart"in window),x.support.msPointer=window.navigator.msPointerEnabled;var e="https:"==document.location.protocol?"https:":"http:";x.event.special.mousewheel||document.write('<script src="'+e+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>'),x.fn.mCustomScrollbar=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void x.error("Method "+e+" does not exist"):t.init.apply(this,arguments)}}(jQuery),function(r){function o(e){return void 0!==e}function e(e,t,a){var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,t.prototype.constructor=t,e._super=t.prototype,a&&r.extend(e.prototype,a)}var _=[["",""],["exit","cancel"],["screen","Screen"]],s=["","o","ms","moz","webkit","webkitCurrent"];function a(e,t){var a;"string"==typeof e&&(t=e,e=document);for(var i=0;i<_.length;++i){t=t.replace(_[i][0],_[i][1]);for(var r=0;r<s.length;++r)if(a=s[r],o(e[a+=0===r?t:t.charAt(0).toUpperCase()+t.substr(1)]))return e[a]}}var t=navigator.userAgent,i=a("fullscreenEnabled"),n=!(-1!==t.indexOf("Android")&&-1!==t.indexOf("Chrome"))&&o(a("fullscreenElement"))&&(!o(i)||!0===i),l=r.fn.jquery.split("."),g=parseInt(l[0])<2&&parseInt(l[1])<7,u=function(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}};u.prototype={_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=r("body")[0].style.overflow,this.__htmlOverflow=r("html")[0].style.overflow},_allowDocumentScroll:function(){},_fullScreenChange:function(){this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null)},_fullScreenError:function(e){this._revertStyles(),this._fullScreenElement=null,e&&r(document).trigger("fscreenerror",[e])},_triggerEvents:function(){r(this._fullScreenElement).trigger(this.isFullScreen()?"fscreenopen":"fscreenclose"),r(document).trigger("fscreenchange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__savedStyles={},this.__options.styles)this.__savedStyles[t]=this._fullScreenElement.style[t],this._fullScreenElement.style[t]=this.__options.styles[t];this.__options.toggleClass&&e.addClass(this.__options.toggleClass)},_revertStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__options.styles)this._fullScreenElement.style[t]=this.__savedStyles[t];this.__options.toggleClass&&e.removeClass(this.__options.toggleClass)},open:function(e,t){e!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=e,this.__options=r.extend(!0,{},this._DEFAULT_OPTIONS,t),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return n}};var c=function(){c._super.constructor.apply(this,arguments),this.exit=r.proxy(a("exitFullscreen"),document),this._DEFAULT_OPTIONS=r.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),r(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",r.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",r.proxy(this._fullScreenError,this))};e(c,u,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(t){return r.map(this.VENDOR_PREFIXES,function(e){return e+t}).join(" ")},open:function(e,t){c._super.open.apply(this,arguments),a(e,"requestFullscreen").call(e)},exit:r.noop,isFullScreen:function(){return null!==a("fullscreenElement")},element:function(){return a("fullscreenElement")}});var d=function(){d._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=r.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0}}),this.__delegateKeydownHandler()};e(d,u,{__isFullScreen:!1,__delegateKeydownHandler:function(){var e=r(document);e.delegate("*","keydown.fullscreen",r.proxy(this.__keydownHandler,this));var t=g?e.data("events"):r._data(document).events,a=t.keydown;g?t.live.unshift(t.live.pop()):a.splice(0,0,a.splice(a.delegateCount-1,1)[0])},__keydownHandler:function(e){return!this.isFullScreen()||27!==e.which||(this.exit(),!1)},_revertStyles:function(){d._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(e){d._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen=!1,this._fullScreenChange()},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),r.fullscreen=n?new c:new d,r.fn.fullscreen=function(e){var t=this[0];return(e=r.extend({toggleClass:null},e)).styles={},t&&r.fullscreen.open(t,e),this}}(jQuery);var bwg_current_filmstrip_pos,total_thumbnail_count,key,startPoint,endPoint,bwg_image_info_pos,filmstrip_width,preloadCount,filmstrip_thumbnail_width,filmstrip_thumbnail_height,addthis_share,lightbox_comment_pos,bwg_transition_duration,bwg_playInterval,gallery_box_data,bwg_param,isPopUpOpened=!1,bwg_overflow_initial_value=!1,bwg_overflow_x_initial_value=!1,bwg_overflow_y_initial_value=!1;function gallery_box_ready(){filmstrip_thumbnail_width=jQuery(".bwg_filmstrip_thumbnail").width(),filmstrip_thumbnail_height=jQuery(".bwg_filmstrip_thumbnail").height(),0<jQuery("#gallery_box_data").length&&(gallery_box_data=JSON.parse(jQuery("#gallery_box_data").val()),bwg_param=gallery_box_data),gallery_box_data.open_with_fullscreen?(filmstrip_width=jQuery(window).width(),filmstrip_height=jQuery(window).height()):(filmstrip_width=jQuery(".bwg_filmstrip_container").width(),filmstrip_height=jQuery(".bwg_filmstrip_container").height()),preloadCount="horizontal"==gallery_box_data.filmstrip_direction?parseInt(filmstrip_width/filmstrip_thumbnail_width)+gallery_box_data.preload_images_count:parseInt(filmstrip_height/filmstrip_thumbnail_height)+gallery_box_data.preload_images_count,total_thumbnail_count=jQuery(".bwg_filmstrip_thumbnail").length,key=parseInt(jQuery("#bwg_current_image_key").val()),startPoint=0,endPoint=key+preloadCount,jQuery(document).ready(function(){wds_load_visible_images(key,preloadCount,total_thumbnail_count,startPoint,endPoint),jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var e=jQuery("#bwg_rated").attr("data-params");bwg_rating((e=JSON.parse(e)).current_rate,e.current_rate_count,e.current_avg_rating,e.current_image_key)}),gallery_box_data.is_pro&&gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&(addthis_share={url:gallery_box_data.share_url}),lightbox_comment_pos=gallery_box_data.lightbox_comment_pos,bwg_image_info_pos=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0,setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)))},100),bwg_transition_duration=gallery_box_data.slideshow_interval<4*gallery_box_data.slideshow_effect_duration&&0!=gallery_box_data.slideshow_interval?1e3*gallery_box_data.slideshow_interval/4:1e3*gallery_box_data.slideshow_effect_duration,gallery_box_data.bwg_transition_duration=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!1,(jQuery("#spider_popup_wrap").width()>=jQuery(window).width()||jQuery("#spider_popup_wrap").height()>=jQuery(window).height())&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"),window.clearInterval(bwg_playInterval),bwg_current_filmstrip_pos=gallery_box_data.current_pos,jQuery(document).on("keydown",function(e){jQuery("#bwg_name").is(":focus")||jQuery("#bwg_email").is(":focus")||jQuery("#bwg_comment").is(":focus")||jQuery("#bwg_captcha_input").is(":focus")||(39===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1,gallery_box_data.data):37===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1,gallery_box_data.data):27===e.keyCode?spider_destroypopup(1e3):32===e.keyCode&&jQuery(".bwg_play_pause").trigger("click"))}),jQuery(window).resize(function(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||bwg_popup_resize())});var r=gallery_box_data.image_width,o=gallery_box_data.image_height;if(gallery_box_data.is_pro){gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&jQuery(".at4-share-outer").show(),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form");var e=gallery_box_data.data,t=gallery_box_data.current_image_key;jQuery(".bwg_image_hits span").html(++e[t].hit_count);var a=window.location.hash;a&&"-1"!=a.indexOf("bwg")||(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id))}gallery_box_data.image_right_click&&(jQuery(".bwg_image_wrap").bind("contextmenu",function(e){return!1}),jQuery(".bwg_image_wrap").css("webkitTouchCallout","none")),jQuery("#spider_popup_wrap").bind("touchmove",function(e){e.preventDefault()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length,gallery_box_data.data),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length,gallery_box_data.data),!1}),bwg_reset_zoom();var i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";jQuery("#spider_popup_left").on(i,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length,gallery_box_data.data),!1}),jQuery("#spider_popup_right").on(i,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length,gallery_box_data.data),!1}),-1!=navigator.appVersion.indexOf("MSIE 10")||-1!=navigator.appVersion.indexOf("MSIE 9")?setTimeout(function(){bwg_popup_resize()},1):bwg_popup_resize(),jQuery(".bwg_watermark").css({display:"none"}),setTimeout(function(){bwg_change_watermark_container()},500),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isNativelySupported()||jQuery(".bwg_fullscreen").hide()),"horizontal"==gallery_box_data.filmstrip_direction?(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()-gallery_box_data.image_filmstrip_height),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width())):(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width()-gallery_box_data.image_filmstrip_width)),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&(jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150}),jQuery(".bwg_ecommerce_panel").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}));var _=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_filmstrip").on(_,function(e){var t=window.event||e,a=(t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta,i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());0<a?jQuery(".bwg_filmstrip_left").trigger(i?"touchend":"click"):jQuery(".bwg_filmstrip_right").trigger(i?"touchend":"click")}),jQuery(".bwg_filmstrip_right").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),"left"==gallery_box_data.left_or_top?"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({top:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"left"==gallery_box_data.left_or_top?jQuery(".bwg_filmstrip_left").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().left<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({left:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().left&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}):jQuery(".bwg_filmstrip_left").on(i,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().top<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({top:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}),"width"==gallery_box_data.width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width(),"",gallery_box_data):bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").height(),"",gallery_box_data),jQuery(".bwg_info").on(i,function(){if("none"==jQuery(".bwg_image_info_container1").css("display")){jQuery(".bwg_image_info_container1").css("display","table-cell"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_hide_info);var e=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0;setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+e+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",e+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-e-2*parseInt(gallery_box_data.lightbox_info_margin)))},100)}else jQuery(".bwg_image_info_container1").css("display","none"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_show_info)}),jQuery(".bwg_rate").on(i,function(){"none"==jQuery(".bwg_image_rate_container1").css("display")?(jQuery(".bwg_image_rate_container1").css("display","table-cell"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_hide_rating)):(jQuery(".bwg_image_rate_container1").css("display","none"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_show_rating))}),jQuery(".bwg_comment, .bwg_comments_close_btn").on(i,function(){bwg_comment()}),jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(i,function(){bwg_ecommerce()}),jQuery(".bwg_toggle_container").on(i,function(){var e="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-up":"bwg-icon-caret-down",t="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-down":"bwg-icon-caret-up",a=jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_ctrl_btn_container").height()-2*parseInt(gallery_box_data.lightbox_info_margin),i=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin);if(jQuery(".bwg_toggle_container i").hasClass(e)){var r=a+jQuery(".bwg_ctrl_btn_container").height(),o=parseInt(jQuery(".bwg_image_info").css("top"))-jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<i?jQuery(".bwg_image_info").animate({top:o+"px",height:r},500):jQuery(".bwg_image_info").animate({top:o+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<i?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):"bottom"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info").animate({top:-o+"px"},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:0},500):jQuery(".bwg_image_info").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:0},500):jQuery(".bwg_image_rate").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:0},500):jQuery(".bwg_image_hit").animate({bottom:0},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({bottom:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))}else{a=jQuery(".bwg_image_info_container1").height()-2*parseInt(gallery_box_data.lightbox_info_margin)-jQuery(".bwg_toggle_container").height(),i=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin)+jQuery(".bwg_toggle_container").height(),r=a,o=parseInt(jQuery(".bwg_image_info").css("top"))+jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<i?jQuery(".bwg_image_info").animate({top:o+"px",height:r},500):jQuery(".bwg_image_info").animate({top:o+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<i?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_info").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_rate").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_hit").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:0},500),jQuery(".bwg_toggle_container").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:0},500),jQuery(".bwg_toggle_container").animate({top:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}}))}});var s=window.innerHeight;jQuery(".bwg_resize-full").on(i,function(){bwg_resize_full()}),jQuery(".bwg_fullscreen").on(i,function(){jQuery(".bwg_watermark").css({display:"none"});var e,t=0;if((jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(t=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen))if(jQuery.fullscreen.isFullScreen())jQuery.fullscreen.exit(),e=s,jQuery(window).width()>gallery_box_data.image_width&&(r=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(o=gallery_box_data.image_height),gallery_box_data.open_with_fullscreen&&(r=jQuery(window).width(),o=e),jQuery("#spider_popup_wrap").on("fscreenclose",function(){jQuery("#spider_popup_wrap").css({width:r,height:o,left:"50%",top:"50%",marginLeft:-r/2,marginTop:-o/2,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:r-t}),jQuery(".bwg_image_container").css({height:o-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:o-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:o-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(r-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:o-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:o-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(o-40,"",gallery_box_data)),jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_fullscreen),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")});else{jQuery("#spider_popup_wrap").fullscreen();var a=screen.width,i=screen.height;jQuery("#spider_popup_wrap").css({width:a,height:i,left:0,top:0,margin:0,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:a-t}),jQuery(".bwg_image_container").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:a-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:i-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:a-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({width:a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").hide(),jQuery(".bwg_fullscreen").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_exit_fullscreen),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause, .bwg_popup_image").on(i,function(){jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")?(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")):(window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause"))}),gallery_box_data.open_with_autoplay&&(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")),gallery_box_data.open_with_fullscreen&&bwg_open_with_fullscreen(),jQuery(".bwg_popup_image").removeAttr("width"),jQuery(".bwg_popup_image").removeAttr("height"),jQuery(window).focus(function(){jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(gallery_box_data.data)}),jQuery(window).blur(function(){event_stack=[],window.clearInterval(bwg_playInterval)});gallery_box_data.lightbox_ctrl_btn_pos;1==gallery_box_data.open_ecommerce&&setTimeout(function(){bwg_ecommerce()},400),gallery_box_data.open_comment&&bwg_comment()}function spider_createpopup(e,t,a,i,r,o,_,s){e=e.replace(/&#038;/g,"&"),isPopUpOpened||(isPopUpOpened=!0,spider_hasalreadyreceivedpopup(o)||spider_isunsupporteduseragent()||(bwg_overflow_initial_value=jQuery("html").css("overflow"),bwg_overflow_x_initial_value=jQuery("html").css("overflow-x"),bwg_overflow_y_initial_value=jQuery("html").css("overflow-y"),jQuery("html").attr("style","overflow:hidden !important;"),jQuery("#bwg_spider_popup_loading_"+t).show(),jQuery("#spider_popup_overlay_"+t).css({display:"block"}),jQuery.ajax({type:"GET",url:e,success:function(e){var t=jQuery('<div id="spider_popup_wrap" class="spider_popup_wrap" style=" width:'+a+"px; height:"+i+"px; margin-top:-"+i/2+"px; margin-left: -"+a/2+'px; ">'+e+"</div>").hide().appendTo("body");gallery_box_ready(),spider_showpopup(o,_,t,r,s)},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,a,i,r){var o=JSON.parse(jQuery("#gallery_box_data").val()).data,_=parseInt(jQuery("#bwg_current_image_key").val());void 0!==o[_]&&(isPopUpOpened=!0,-1<o[_].filetype.indexOf("EMBED_")?bwg_first_image_load(a):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(a):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(a)}),spider_receivedpopup(e,t,r))}function bwg_first_image_load(e){e.show(),jQuery(".bwg_spider_popup_loading").hide(),gallery_box_data.preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key").val())),bwg_load_filmstrip()}function spider_hasalreadyreceivedpopup(e){return-1<document.cookie.indexOf(e)&&delete document.cookie[document.cookie.indexOf(e)],!1}function spider_receivedpopup(e,t,a){var i=new Date;i.setDate(i.getDate()+t),document.cookie=e+"=true;expires="+i.toUTCString()+";path=/";var r=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==a?jQuery(".bwg_toggle_container").css("bottom",r+"px"):"top"==a&&jQuery(".bwg_toggle_container").css("top",r+"px")}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){null!=document.getElementById("spider_popup_wrap")&&(void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&jQuery.fullscreen.isFullScreen()&&jQuery.fullscreen.exit(),"undefined"!=typeof enable_addthis&&enable_addthis&&jQuery(".at4-share-outer").hide(),setTimeout(function(){jQuery(".spider_popup_wrap").remove(),jQuery(".bwg_spider_popup_loading").css({display:"none"}),jQuery(".spider_popup_overlay").css({display:"none"}),jQuery(document).off("keydown"),!1!==bwg_overflow_initial_value&&jQuery("html").css("overflow",bwg_overflow_initial_value),!1!==bwg_overflow_x_initial_value&&jQuery("html").css("overflow-x",bwg_overflow_x_initial_value),!1!==bwg_overflow_y_initial_value&&jQuery("html").css("overflow-y",bwg_overflow_y_initial_value)},20)),isPopUpOpened=!1;var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),a=document.querySelector('meta[name="viewport"]');t&&a&&(a.content="width=device-width, initial-scale=1");var i=jQuery(document).scrollTop();bwg_objectsL10n.is_pro&&location.replace("#"),jQuery(document).scrollTop(i),void 0!==gallery_box_data.bwg_playInterval&&clearInterval(gallery_box_data.bwg_playInterval)}function get_ajax_pricelist(){var e={};return jQuery(".add_to_cart_msg").html(""),e.ajax_task="display",e.image_id=jQuery("#bwg_popup_image").attr("image_id"),jQuery("#ecommerce_ajax_loading").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_opacity_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_opacity_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_loading_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_loading_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),document.getElementById("ecommerce_opacity_div").style.display="",document.getElementById("ecommerce_loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#bwg_ecommerce_form").attr("action"),data:e,success:function(e){jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var t=jQuery(e).find(".manual").html();jQuery(".manual").html(t);var a=jQuery(e).find(".downloads").html();jQuery(".downloads").html(a);var i=jQuery(e).find(".pge_options").html();jQuery(".pge_options").html(i);var r=jQuery(e).find(".pge_add_to_cart").html();jQuery(".pge_add_to_cart").html(r)},beforeSend:function(){},complete:function(){document.getElementById("ecommerce_opacity_div").style.display="none",document.getElementById("ecommerce_loading_div").style.display="none"}}),!1}function spider_ajax_save(e){var t={};return t.bwg_name=jQuery("#bwg_name").val(),t.bwg_comment=jQuery("#bwg_comment").val(),t.bwg_email=jQuery("#bwg_email").val(),t.bwg_captcha_input=jQuery("#bwg_captcha_input").val(),t.ajax_task=jQuery("#ajax_task").val(),t.image_id=jQuery("#image_id").val(),t.comment_id=jQuery("#comment_id").val(),jQuery("#ajax_loading").css("height",jQuery(".bwg_comments").css("height")),jQuery("#opacity_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#opacity_div").css("height",jQuery(".bwg_comments").css("height")),jQuery("#loading_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#loading_div").css("height",jQuery(".bwg_comments").css("height")),document.getElementById("opacity_div").style.display="",document.getElementById("loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#"+e).attr("action"),data:t,success:function(e){var t=jQuery(e).find(".bwg_comments").html();jQuery(".bwg_comments").html(t)},beforeSend:function(){},complete:function(){document.getElementById("opacity_div").style.display="none",document.getElementById("loading_div").style.display="none",jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(a){var e={};return e.image_id=jQuery("#"+a+" input[name='image_id']").val(),e.rate=jQuery("#"+a+" input[name='score']").val(),e.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+a).attr("action"),data:e,success:function(e){var t=jQuery(e).find("#"+a).html();jQuery("#"+a).html(t)},beforeSend:function(){},complete:function(){}}),!1}function spider_set_input_value(e,t){document.getElementById(e)&&(document.getElementById(e).value=t)}function spider_form_submit(e,t){document.getElementById(t)&&document.getElementById(t).submit(),e.preventDefault?e.preventDefault():e.returnValue=!1}function spider_check_required(e,t){return""==jQuery("#"+e).val()&&(alert(t+" "+bwg_objectsL10n.bwg_field_required),jQuery("#"+e).attr("style","border-color: #FF0000;"),jQuery("#"+e).focus(),!0)}function comment_check_privacy_policy(){var e=jQuery("#bwg_submit");e.removeClass("bwg-submit-disabled"),e.removeAttr("disabled"),jQuery("#bwg_comment_privacy_policy").is(":checked")||(e.addClass("bwg-submit-disabled"),e.attr("disabled","disabled"))}function spider_check_email(e){if(""!=jQuery("#"+e).val())return-1==jQuery("#"+e).val().replace(/^\s+|\s+$/g,"").search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)&&(alert(bwg_objectsL10n.bwg_mail_validation),!0)}function bwg_captcha_refresh(e){document.getElementById(e+"_img")&&document.getElementById(e+"_input")&&(srcArr=document.getElementById(e+"_img").src.split("&r="),document.getElementById(e+"_img").src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_img").style.display="inline-block",document.getElementById(e+"_input").value="")}function bwg_play_instagram_video(e,t){jQuery(e).parent().find("video").each(function(){jQuery(this).get(0).paused?(jQuery(this).get(0).play(),jQuery(e).children().hide()):(jQuery(this).get(0).pause(),jQuery(e).children().show())})}function bwg_add_comment(){var t=jQuery("#bwg_comment_form"),e=t.attr("action"),a={ajax_task:"add_comment"};return a.comment_name=t.find("#bwg_name").val(),a.comment_email=t.find("#bwg_email").val(),a.comment_text=t.find("#bwg_comment").val(),a.comment_captcha=t.find("#bwg_captcha_input").val(),a.privacy_policy=t.find("#bwg_comment_privacy_policy").is(":checked")?1:0,a.comment_image_id=jQuery("#bwg_popup_image").attr("image_id"),a.comment_moderation=t.find("#bwg_comment_moderation").val(),jQuery(".bwg_spider_ajax_loading").hide(),jQuery.ajax({url:e,type:"POST",dataType:"json",data:a,success:function(e){jQuery(".bwg_comment_error").text(""),1==e.error?jQuery.each(e.error_messages,function(e,t){t&&jQuery(".bwg_comment_"+e+"_error").text(t)}):(t.find("#bwg_comment").val(""),jQuery(".bwg_comment_waiting_message").hide(),0==e.published&&jQuery(".bwg_comment_waiting_message").show(),""!=e.html_comments_block&&jQuery("#bwg_added_comments").html(e.html_comments_block).show())},beforeSend:function(){jQuery(".bwg_spider_ajax_loading").show()},complete:function(){0<t.find("#bwg_comment_privacy_policy").length&&(t.find("#bwg_comment_privacy_policy").prop("checked",!1),comment_check_privacy_policy()),bwg_captcha_refresh("bwg_captcha"),jQuery(".bwg_spider_ajax_loading").hide()},error:function(){}}),!1}function bwg_remove_comment(t){var e=jQuery("#bwg_comment_form").attr("action"),a={ajax_task:"delete_comment"};return a.id_image=jQuery("#bwg_popup_image").attr("image_id"),a.id_comment=t,jQuery.ajax({url:e,type:"POST",dataType:"json",data:a,success:function(e){0==e.error&&jQuery("#bwg_comment_block_"+t).fadeOut("slow").remove()},beforeSend:function(){},complete:function(){},error:function(){}}),!1}function bwg_gallery_box(e,t,a,i){jQuery(".bwg-validate").each(function(){jQuery(this).on("keypress change",function(){jQuery(this).parent().next().find(".bwg_comment_error").html("")})}),void 0===a&&(a=!1);var r,o=t.data("bwg");r=t.find(".bwg-container").data("lightbox-url")?t.find(".bwg-container").data("lightbox-url"):t.data("lightbox-url");var _=jQuery("#bwg_tag_id_"+o).val();_=_||0;var s=1==a?"&open_ecommerce=1":"",n=jQuery("#bwg_search_input_"+o).val(),l=jQuery("#bwg_order_"+o).val()?"&filtersortby="+jQuery("#bwg_order_"+o).val():"";n=n||"",void 0!==i&&(r+="&gallery_id="+i);var g="",u=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==u&&!1!==u&&(g="&open_comment=1"),spider_createpopup(r+"&image_id="+e+"&filter_tag="+_+s+g+"&filter_search_name="+n+l,o,t.data("popup-width"),t.data("popup-height"),1,"testpopup",5,t.data("buttons-position"))}function bwg_change_image_lightbox(e,i,r,t){if(bwg_current_key=gallery_box_data.bwg_current_key,jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)))},200),jQuery("#spider_popup_left").show(),jQuery("#spider_popup_right").show(),jQuery(".bwg_image_info").hide(),0==gallery_box_data.enable_loop&&(i==parseInt(r.length)-1&&jQuery("#spider_popup_right").hide(),0==i&&jQuery("#spider_popup_left").hide()),1==gallery_box_data.ecommerceACtive&&1==gallery_box_data.enable_image_ecommerce)if(0==gallery_box_data.data[i].pricelist)jQuery(".bwg_ecommerce").hide();else{jQuery(".bwg_ecommerce").show(),jQuery(".pge_tabs li").hide(),jQuery("#downloads").hide(),jQuery("#manual").hide();var a=gallery_box_data.data[i].pricelist_sections.split(",");if(a)if(jQuery("#"+a[0]).show(),jQuery("[name=type]").val(a[0]),1<a.length)for(jQuery(".pge_tabs").show(),k=0;k<a.length;k++)jQuery("#"+a[k]+"_li").show();else jQuery(".pge_tabs").hide();else jQuery("[name=type]").val("")}if(jQuery("#bwg_image_container").find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#bwg_image_container").find("video").each(function(){jQuery(this).trigger("pause")}),void 0===r&&(r=gallery_box_data.data),void 0!==r[i]&&void 0!==r[e]){if(jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(r),t||jQuery("#bwg_current_image_key").val(i),gallery_box_data.bwg_trans_in_progress)return void gallery_box_data.event_stack.push(e+"-"+i);var o="right";if(bwg_current_key>i)o="left";else if(bwg_current_key==i)return;jQuery(".bwg_image_count").html(r[i].number),jQuery(".bwg_watermark").css({display:"none"}),"width"==gallery_box_data.width_or_height?bwg_current_filmstrip_pos=i*(jQuery(".bwg_filmstrip_thumbnail").width()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width):"height"==gallery_box_data.width_or_height&&(bwg_current_filmstrip_pos=i*(jQuery(".bwg_filmstrip_thumbnail").height()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width)),gallery_box_data.bwg_current_key=i,bwg_objectsL10n.is_pro&&(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+r[i].id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+r[i].id)),gallery_box_data.popup_enable_rate&&(jQuery("#bwg_rate_form input[name='image_id']").val(r[i].id),jQuery("#bwg_star").attr("data-score",r[i].avg_rating),jQuery("#bwg_star").removeAttr("title"),r[i].cur_key=i,bwg_rating(r[i].rate,r[i].rate_count,r[i].avg_rating,i)),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),jQuery(".bwg_image_hits span").html(++r[i].hit_count),jQuery("#bwg_popup_image").attr("image_id",r[i].id),jQuery(".bwg_image_title").html(jQuery('<span style="display: block;" />').html(r[i].alt).text()),jQuery(".bwg_image_description").html(jQuery('<span style="display: block;" />').html(r[i].description).text()),jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+i).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_image_info").css("opacity",1),""==r[i].alt.trim()&&""==r[i].description.trim()&&jQuery(".bwg_image_info").css("opacity",0),"none"!=jQuery(".bwg_image_info_container1").css("display")?jQuery(".bwg_image_info_container1").css("display","table-cell"):jQuery(".bwg_image_info_container1").css("display","none"),"none"!=jQuery(".bwg_image_rate_container1").css("display")?jQuery(".bwg_image_rate_container1").css("display","table-cell"):jQuery(".bwg_image_rate_container1").css("display","none");var _=2==jQuery(".bwg_popup_image_spun").css("zIndex")?".bwg_popup_image_spun":".bwg_popup_image_second_spun",s=".bwg_popup_image_second_spun"==_?".bwg_popup_image_spun":".bwg_popup_image_second_spun",n=-1<r[i].filetype.indexOf("EMBED_"),l=-1<r[i].filetype.indexOf("INSTAGRAM_POST"),g=-1<r[i].filetype.indexOf("INSTAGRAM_VIDEO"),u=-1!==jQuery.inArray(r[i].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),c=jQuery(_).height(),d=jQuery(_).width(),h='<span class="bwg_popup_image_spun1" style="display: '+(n?"block":"table")+'; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display:'+(n?"block":"table-cell")+'; vertical-align: middle;text-align: center;height: 100%;">';if(n){if(jQuery("#bwg_download").addClass("hidden"),h+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(u?"block":"table")+'; table-layout: fixed; height: 100%;">'+(g?'<div class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><div class="bwg_inst_play"></div></div>':" "),l){var b=0,p=0;c<d+88?b=(p=c)-88:p=(b=d)+88,h+=spider_display_embed(r[i].filetype,r[i].image_url,r[i].filename,{class:"bwg_embed_frame","data-width":r[i].image_width,"data-height":r[i].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+b+"px; height:"+p+"px; vertical-align:middle; display:inline-block; position:relative;"})}else h+=spider_display_embed(r[i].filetype,r[i].image_url,r[i].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(u?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});h+="</span>"}else jQuery(".bwg-loading").removeClass("hidden"),jQuery("#bwg_download").removeClass("hidden"),h+='<img style="max-height: '+c+"px; max-width: "+d+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery('<span style="display: block;" />').html(r[i].image_url).text()+'" alt="'+r[i].alt+'" />';function m(){gallery_box_data.preload_images&&bwg_preload_images(i),window["bwg_"+gallery_box_data.bwg_image_effect](_,s,o),jQuery(_).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),n?jQuery("#bwg_fullsize_image").attr("href",r[i].image_url):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+r[i].image_url),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+r[i].thumb_url.replace("/thumb/","/.original/")));var e=r[i].image_url.split("/");jQuery("#bwg_download").attr("download",e[e.length-1].replace(/\?bwg=(\d+)$/,""));var t=encodeURIComponent(gallery_box_data.bwg_share_url)+"="+r[i].id+encodeURIComponent("#bwg"+gallery_box_data.gallery_id+"/")+r[i].id;if(n)var a=encodeURIComponent(r[i].thumb_url);else a=gallery_box_data.bwg_share_image_url+encodeURIComponent(encodeURIComponent(r[i].image_url));a=a.replace(/%252F/g,"%2F"),void 0!==addthis_share&&(addthis_share.url=t),jQuery("#bwg_facebook_a").attr("href","https://www.facebook.com/sharer/sharer.php?u="+t),jQuery("#bwg_twitter_a").attr("href","https://twitter.com/share?url="+t),jQuery("#bwg_google_a").attr("href","https://plus.google.com/share?url="+t),jQuery("#bwg_pinterest_a").attr("href","http://pinterest.com/pin/create/button/?s=100&url="+t+"&media="+a+"&description="+r[i].alt+"%0A"+r[i].description),jQuery("#bwg_tumblr_a").attr("href","https://www.tumblr.com/share/photo?source="+a+"&caption="+r[i].alt+"&clickthru="+t),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(0==r[i].comment_count?jQuery("#bwg_added_comments").hide():(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(0==r[i].pricelist?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce),jQuery(".spider_popup_close_fullscreen").show()):get_ajax_pricelist()),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments").mCustomScrollbar({advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments .mCSB_scrollTools").hide(),gallery_box_data.enable_image_filmstrip&&bwg_move_filmstrip(),bwg_resize_instagram_post()}if(h+="</span></span>",jQuery(s).html(h),jQuery(s).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:d,maxHeight:c,height:"auto"}),n)m();else jQuery(s).find("img").one("load",function(){m()}).each(function(){this.complete&&jQuery(this).load()})}}function bwg_preload_images_lightbox(e){for(var t=gallery_box_data.data,a=t.length,i=0==gallery_box_data.preload_images_count||gallery_box_data.preload_images_count>=a?a:gallery_box_data.preload_images_count,r=0,o=1;r<i;o++){var _=1;do{var s=(e+o*_+a)%a;if(void 0!==t[s])-1<t[s].filetype.indexOf("EMBED_")||jQuery("<img/>").attr("src",gallery_box_data.site_url+jQuery('<span style="display: block;" />').html(t[s].image_url).text());_*=-1,r++}while(1!=_)}}function bwg_popup_sidebar_open(e){var t=gallery_box_data.lightbox_comment_width,a=gallery_box_data.lightbox_comment_pos;if(t>jQuery(window).width()){if(t=jQuery(window).width(),e.css({width:t}),jQuery(".spider_popup_close_fullscreen").hide(),jQuery(".spider_popup_close").hide(),jQuery(".bwg_ctrl_btn").hasClass("bwg-icon-pause")){var i=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());jQuery(".bwg_play_pause").trigger(i?"touchend":"click")}}else jQuery(".spider_popup_close_fullscreen").show();"left"==a?e.animate({left:0},100):e.animate({right:0},100)}function bwg_comment(){if(jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","-1"),jQuery(".bwg_comment_wrap").css("z-index","25"),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)),jQuery(".bwg_comment_container").hasClass("bwg_open"))"1"==jQuery(".bwg_comment_container").attr("data-play-status")&&jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-play").addClass("bwg-icon-pause").attr("title",bwg_objectsL10n.bwg_pause),bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments),jQuery(".spider_popup_close_fullscreen").show();else{jQuery(".bwg_play_pause").hasClass("bwg-icon-pause")?jQuery(".bwg_comment_container").attr("data-play-status","1"):jQuery(".bwg_comment_container").attr("data-play-status","0"),jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-pause").addClass("bwg-icon-play").attr("title",bwg_objectsL10n.bwg_play),bwg_popup_sidebar_open(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_open"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_hide_comments);var e=parseInt(jQuery("#bwg_current_image_key").val());void 0!==gallery_box_data[e]&&0!=gallery_box_data[e].comment_count&&(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))}jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}})}function bwg_ecommerce(){jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","25"),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments)),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)):(bwg_popup_sidebar_open(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_open"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_hide_ecommerce),get_ajax_pricelist())}function bwg_popup_sidebar_close(e){var t=parseInt(e.css("borderRightWidth"));t||(t=0),"left"==lightbox_comment_pos?e.animate({left:-e.width()-t},100):"right"==lightbox_comment_pos&&e.animate({right:-e.width()-t},100)}function bwg_animate_image_box_for_hide_sidebar(){"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:0,width:jQuery("#spider_popup_wrap").width()},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:0,width:jQuery("#spider_popup_wrap").width()},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({width:jQuery(".spider_popup_wrap").width()-40},100)):"height"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").animate({height:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({height:jQuery(".spider_popup_wrap").width()-40},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-40,"",gallery_box_data),jQuery(".spider_popup_close_fullscreen").show(100)}function bwg_animate_image_box_for_show_sidebar(){var e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width();"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:e,width:jQuery("#spider_popup_wrap").width()-e},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:e,width:jQuery("#spider_popup_wrap").width()-e},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").css({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?0:e)}),jQuery(".bwg_filmstrip").animate({width:jQuery(".bwg_filmstrip_container").width()-40},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-40,"",gallery_box_data))}function bwg_reset_zoom(){var e=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),t=document.querySelector('meta[name="viewport"]');e&&t&&(t.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0")}function bwg_open_with_fullscreen(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_video").css({width:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}function bwg_resize_full(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery(window).width()>gallery_box_data.image_width&&(bwg_popup_current_width=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(bwg_popup_current_height=gallery_box_data.image_height),jQuery("#spider_popup_wrap").animate({width:bwg_popup_current_width,height:bwg_popup_current_height,left:"50%",top:"50%",marginLeft:-bwg_popup_current_width/2,marginTop:-bwg_popup_current_height/2,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:bwg_popup_current_width-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_width-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_height-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize)):(bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").animate({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:jQuery(window).width()-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"))}function bwg_popup_resize_lightbox(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||(jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")||jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.fullscreen)));var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=gallery_box_data.lightbox_comment_width),e>jQuery(window).width()?(e=jQuery(window).width(),jQuery(".bwg_comment_container").css({width:e}),jQuery(".bwg_ecommerce_container").css({width:e}),jQuery(".spider_popup_close_fullscreen").hide()):jQuery(".spider_popup_close_fullscreen").show(),window.innerHeight>gallery_box_data.image_height&&1!=gallery_box_data.open_with_fullscreen&&!jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery("#spider_popup_wrap").css({height:gallery_box_data.image_height,top:"50%",marginTop:-gallery_box_data.image_height/2,zIndex:100002}),jQuery(".bwg_image_container").css({height:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_image").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:gallery_box_data.image_height}),jQuery(".bwg_filmstrip").css({height:gallery_box_data.image_height-40})),bwg_popup_current_height=gallery_box_data.image_height):(jQuery("#spider_popup_wrap").css({height:window.innerHeight,top:0,marginTop:0,zIndex:100002}),jQuery(".bwg_image_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_image").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-40})),bwg_popup_current_height=window.innerHeight),jQuery(window).width()>=gallery_box_data.image_width&&1!=gallery_box_data.open_with_fullscreen?(jQuery("#spider_popup_wrap").css({width:gallery_box_data.image_width,left:"50%",marginLeft:-gallery_box_data.image_width/2,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_image_container").css({width:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_filmstrip").css({width:gallery_box_data.image_width-e-40})),bwg_popup_current_width=gallery_box_data.image_width):(jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),left:0,marginLeft:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({width:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-e}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-e-40})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),window.innerHeight>gallery_box_data.image_height-2*gallery_box_data.lightbox_close_btn_top&&jQuery(window).width()>=gallery_box_data.image_width-2*gallery_box_data.lightbox_close_btn_right&&1!=gallery_box_data.open_with_fullscreen?jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"):jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<jQuery(window).height()&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen");var t=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-down")&&jQuery(".bwg_toggle_container").css("bottom",t+"px"),"top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-up")&&jQuery(".bwg_toggle_container").css("top",t+"px")}function bwg_rating(e,t,a,i){lightbox_rate_stars_count=gallery_box_data.lightbox_rate_stars_count,lightbox_rate_size=gallery_box_data.lightbox_rate_size,lightbox_rate_icon=gallery_box_data.lightbox_rate_icon;var r="Not rated yet.";0!=a&&""!=a&&(r=parseFloat(a).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)&&jQuery("#bwg_star").raty({score:function(){return jQuery(this).attr("data-score")},starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,readOnly:function(){return!!e},noRatedMsg:"Not rated yet.",click:function(e,t){jQuery("#bwg_star").hide(),jQuery("#bwg_rated").show(),spider_set_input_value("rate_ajax_task","save_rate"),spider_rate_ajax_save("bwg_rate_form"),gallery_box_data.data[i].rate=e,++gallery_box_data.data[i].rate_count;var a=parseFloat(jQuery("#bwg_star").attr("data-score"));gallery_box_data.data[i].avg_rating=a?((a+e)/2).toFixed(1):e.toFixed(1)},starHalf:"bwg-icon-"+lightbox_rate_icon+("star"==lightbox_rate_icon?"-half":"")+"-o",starOff:"bwg-icon-"+lightbox_rate_icon+"-o",starOn:"bwg-icon-"+lightbox_rate_icon,cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square-o",cancel:!1,cancelHint:"Cancel your rating.",hints:[r,r,r,r,r],alreadyRatedMsg:parseFloat(a).toFixed(1)+"\nYou have already rated.\nVotes: "+t})}function changeDownloadsTotal(e){var t=0;0==jQuery("[name=option_show_digital_items_count]").val()?jQuery("[name=selected_download_item]:checked").each(function(){t+=Number(jQuery(this).closest("tr").attr("data-price"))}):jQuery(".digital_image_count").each(function(){0!=Number(jQuery(this).val())&&(t+=Number(jQuery(this).closest("tr").attr("data-price"))*Number(jQuery(this).val()))}),t=t.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_downloads_price").html(t)}function changeMenualTotal(e){Number(jQuery(e).val())<=0&&jQuery(e).val("1");var t=Number(jQuery(e).val()),a=Number(jQuery(".product_manual_price").attr("data-actual-price"));a=(a*=t).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(a)}function onSelectableParametersChange(e){var t=0,a=gallery_box_data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price?gallery_box_data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price:"0";a=parseFloat(a.replace(",",""));var i=jQuery(e).closest(".image_selected_parameter").attr("data-parameter-type"),r=jQuery(e).val();r=r.split("*");var o=parseFloat(r[1]),_=r[0],s=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==i||"5"==i){var n=parseFloat(_+o);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(n)}else if("6"==i){if(0==jQuery(e).is(":checked"))var l=s-parseFloat(_+o);else l=s+parseFloat(_+o);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(l)}jQuery(".already_selected_values").each(function(){t+=Number(jQuery(this).val())}),a+=t,jQuery(".product_manual_price").attr("data-actual-price",a),a=(a*=Number(jQuery(".image_count").val())<=0?1:Number(jQuery(".image_count").val())).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(a)}function onBtnClickAddToCart(){var e=jQuery("[name=type]").val();if(""!=e){var t={};if("manual"==e){var a=jQuery(".image_count").val(),i={};jQuery(".manual").find(".image_selected_parameter").each(function(){var e=jQuery(this).attr("data-parameter-id"),t="";switch(jQuery(this).attr("data-parameter-type")){case"2":t=jQuery(this).find("input").val();break;case"3":t=jQuery(this).find("textarea").val();break;case"4":t=jQuery(this).find("select :selected").val();break;case"5":t=jQuery(this).find("[type=radio]:checked").val();break;case"6":var a=[];jQuery(this).find("[type=checkbox]:checked").each(function(){a.push(jQuery(this).val())}),t=a}i[e]=t}),t.count=a,t.parameters=i,t.price=jQuery(".product_manual_price").attr("data-price").replace(",","")}else{var r=[];if(0==jQuery("[name=option_show_digital_items_count]").val()){if(0==jQuery("[name=selected_download_item]:checked").length)return void jQuery(".add_to_cart_msg").html("You must select at least one item.");jQuery("[name=selected_download_item]:checked").each(function(){var e={};e.id=jQuery(this).val(),e.count=1,e.price=jQuery(this).closest("tr").attr("data-price"),r.push(e)})}else jQuery(".digital_image_count").each(function(){var e={};0<jQuery(this).val()&&(e.id=jQuery(this).closest("tr").attr("data-id"),e.price=jQuery(this).closest("tr").attr("data-price"),e.count=jQuery(this).val(),r.push(e))});if(0==(t.downloadItems=r).length)return void jQuery(".add_to_cart_msg").html("Please select at least one item")}var o=jQuery("#ajax_url").val(),_={action:"add_cart",task:"add_cart",controller:"checkout",image_id:jQuery("#bwg_popup_image").attr("image_id"),type:e,data:JSON.stringify(t)};jQuery.ajax({type:"POST",url:o,data:_,success:function(e){responseData=JSON.parse(e),jQuery(".add_to_cart_msg").html(responseData.msg),jQuery(".products_in_cart").html(responseData.products_in_cart),1==responseData.redirect&&(window.location.href="<?php echo get_permalink($options->checkout_page);?>")},beforeSend:function(){},complete:function(){}})}else jQuery(".add_to_cart_msg").html("Please select Prints and products or Downloads")}function onBtnViewCart(){var e=jQuery("[name=option_checkout_page]").val();jQuery("#bwg_ecommerce_form").attr("action",e),jQuery("#bwg_ecommerce_form").submit()}function wds_load_visible_images(e,t,a,i,r){0<=e-t&&(i=e-t),a<e+t&&(r=a);for(var o=i;o<=r;o++){var _=jQuery("#bwg_filmstrip_thumbnail_"+o+" img");_.removeClass("hidden"),_.attr("src",_.data("url"))}}function bwg_load_filmstrip(){for(var e=1;e<=total_thumbnail_count;e++){var t;if(leftIndex=startPoint-e,rightIndex=endPoint+e,rightIndex<total_thumbnail_count)(t=jQuery("#bwg_filmstrip_thumbnail_"+rightIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"))}}function spider_display_embed(e,t,a,i){var r="";switch(e){case"EMBED_OEMBED_YOUTUBE_VIDEO":var o="<iframe ";for(attr in""!=a&&(o+=' src="//www.youtube.com/embed/'+a+'?enablejsapi=1&wmode=transparent"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(o+=" "+attr+'="'+i[attr]+'"');r+=o+=" ></iframe>";break;case"EMBED_OEMBED_VIMEO_VIDEO":var _="<iframe ";for(attr in""!=a&&(_+=' src="//player.vimeo.com/video/'+a+'?enablejsapi=1"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(_+=" "+attr+'="'+i[attr]+'"');r+=_+=" ></iframe>";break;case"EMBED_OEMBED_FLICKR_IMAGE":var s="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"');s+=" >",""!=a&&(s+='<img src="'+a+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'),r+=s+="</div>";break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');n+=" >",""!=a&&(n+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+a+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=n+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');n+=" >",""!=a&&(n+='<img src="//instagram.com/p/'+a+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=n+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_POST":n="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"',"CLASS"!=attr&&"class"!=attr&&"Class"!=attr||(obj_class=i[attr]));n+=" >",""!=a&&(n+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+a+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=n+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var l="<span ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(l+=" "+attr+'="'+i[attr]+'"');l+=" >",""!=a&&(l+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),r+=l+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var g="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(g+=" "+attr+'="'+i[attr]+'"');g+=" >",""!=a&&(g+='<iframe src="//www.facebook.com/video/embed?video_id='+t+'&enablejsapi=1&wmode=transparent" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" class="bwg_fb_video" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=g+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var u="<iframe ";for(attr in""!=a&&(u+=' src="//www.dailymotion.com/embed/video/'+a+'?api=postMessage"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(u+=" "+attr+'="'+i[attr]+'"');r+=u+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var c="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');c+=" >",""!=a&&(c+='<img src="'+a+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=c+="</div>"}return r}function bwg_add_instagram_gallery(e,_){if(!0===(_=void 0!==_&&_)){if(bwg_check_instagram_gallery_input(e,_))return!1;var t="0";1==jQuery("input[name=popup_instagram_post_gallery]:checked").val()&&(t="1");var a=encodeURI(jQuery("#popup_instagram_gallery_source").val()),i=encodeURI(jQuery("#popup_instagram_image_number").val())}else{if(bwg_check_instagram_gallery_input(e,_))return!1;if(!bwg_check_gallery_empty(!1,!0))return!1;t="0";1==jQuery("input[name=instagram_post_gallery]:checked").val()&&(t="1");a=encodeURI(jQuery("#gallery_source").val());var r=jQuery("input[name=update_flag]:checked").val();i=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var s=[],o={action:"addInstagramGallery",instagram_user:a,instagram_access_token:e,whole_post:t,autogallery_image_number:i,update_flag:r,async:!0};jQuery.post(ajax_url,o,function(e){if(0==e)return alert("Error: cannot get response from the server."),jQuery("#loading_div").hide(),_&&jQuery("#bulk_embed").show(),!1;var t=e.indexOf("WD_delimiter_start"),a=e.indexOf("WD_delimiter_end");if(-1==t||-1==a)return jQuery("#loading_div").hide(),_&&jQuery("#bulk_embed").show(),!1;if(e=e.substring(t+18,a),response_JSON=jQuery.parseJSON(e),response_JSON){if("error"==response_JSON[0])return alert("Error: "+jQuery.parseJSON(e)[1]),jQuery("#loading_div").hide(),_&&jQuery("#bulk_embed").show(),!1;for(var i=response_JSON.length,r=1;r<=i;r++)if(0!=response_JSON[i-r]){var o=response_JSON[i-r];s.push(o)}return bwg_add_image(s),_||(bwg_gallery_update_flag(),jQuery("#tr_instagram_gallery_add_button").hide()),jQuery("#loading_div").hide(),_&&jQuery(".opacity_bulk_embed").hide(),"ok"}return alert("There is some error. Cannot add Instagram gallery."),jQuery("#loading_div").hide(),_&&jQuery("#bulk_embed").show(),!1})}!function(_){var s={init:function(i){return this.each(function(){s.destroy.call(this),this.opt=_.extend(!0,{},_.fn.raty.defaults,i);var e=_(this);s._callback.call(this,["number","readOnly","score","scoreName"]),this.opt.precision&&s._adjustPrecision.call(this),this.opt.number=s._between(this.opt.number,0,this.opt.numberMax),this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.slice(this.opt.path.length-1,this.opt.path.length)&&(this.opt.path+="/"),this.stars=s._createStars.call(this),this.score=s._createScore.call(this),s._apply.call(this,this.opt.score);var t=this.opt.space?4:0,a=this.opt.width||this.opt.number*this.opt.size+this.opt.number*t;this.opt.cancel&&(this.cancel=s._createCancel.call(this),a+=this.opt.size+t),this.opt.readOnly?s._lock.call(this):(e.css("cursor","pointer"),s._binds.call(this)),!1!==this.opt.width&&(e.css("width",a),_(".bwg_rate_spun").css("width",a)),s._target.call(this,this.opt.score),e.data({settings:this.opt,raty:!0})})},_adjustPrecision:function(){this.opt.targetType="score",this.opt.half=!0},_apply:function(e){e&&0<e&&(e=s._between(e,0,this.opt.number),this.score.val(e)),s._fill.call(this,e),e&&s._roundStars.call(this,e),_("#bwg_star *").removeClass("bwg_rate_hover")},_between:function(e,t,a){return Math.min(Math.max(parseFloat(e),t),a)},_binds:function(){this.cancel&&s._bindCancel.call(this),s._bindClick.call(this),s._bindOut.call(this),s._bindOver.call(this)},_bindCancel:function(){s._bindClickCancel.call(this),s._bindOutCancel.call(this),s._bindOverCancel.call(this)},_bindClick:function(){var t=this,a=_(t);t.stars.on("click.raty",function(e){t.score.val(t.opt.half||t.opt.precision?a.data("score"):_(this).attr("alt")),t.opt.click&&t.opt.click.call(t,parseFloat(t.score.val()),e)})},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",function(e){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,e)})},_bindOut:function(){var a=this;_(this).on("mouseleave.raty",function(e){var t=parseFloat(a.score.val())||void 0;s._apply.call(a,t),s._target.call(a,t,e),a.opt.mouseout&&a.opt.mouseout.call(a,t,e)})},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",function(e){_(this).attr("class",t.opt.cancelOff),t.opt.mouseout&&t.opt.mouseout.call(t,t.score.val()||null,e)})},_bindOverCancel:function(){var t=this;t.cancel.on("mouseover.raty",function(e){_(this).attr("class",t.opt.cancelOn),t.stars.attr("class",t.opt.starOff),s._target.call(t,null,e),t.opt.mouseover&&t.opt.mouseover.call(t,null)})},_bindOver:function(){var r=this,o=_(r),e=r.opt.half?"mousemove.raty":"mouseover.raty";r.stars.on(e,function(e){var t=parseInt(_(this).attr("alt"),10);if(r.opt.half){var a=parseFloat((e.pageX-_(this).offset().left)/r.opt.size),i=.5<a?1:.5;t=t-1+i,s._fill.call(r,t),r.opt.precision&&(t=t-i+a),s._roundStars.call(r,t),o.data("score",t)}else s._fill.call(r,t);s._target.call(r,t,e),r.opt.mouseover&&r.opt.mouseover.call(r,t,e)})},_callback:function(e){for(i in e)"function"==typeof this.opt[e[i]]&&(this.opt[e[i]]=this.opt[e[i]].call(this))},_createCancel:function(){var e=_(this),t=this.opt.cancelOff,a=_("<i />",{class:"raty-cancel "+t,alt:"x",title:this.opt.cancelHint});return"left"==this.opt.cancelPlace?e.prepend("&#160;").prepend(a):e.append("&#160;").append(a),a},_createScore:function(){return _("<input />",{type:"hidden",name:this.opt.scoreName}).appendTo(this)},_createStars:function(){for(var e=_(this),t=1;t<=this.opt.number;t++){var a=s._getHint.call(this,t),i=this.opt.score&&this.opt.score>=t?"starOn":"starOff";i=this.opt[i],_("<i />",{class:i,alt:t,title:a}).appendTo(this),this.opt.space&&e.append(t<this.opt.number?"&#160;":"")}return e.children("i")},_error:function(e){_(this).html(e),_.error(e)},_fill:function(e){for(var t=this,a=0,i=1;i<=t.stars.length;i++){var r=t.stars.eq(i-1),o=t.opt.single?i==e:i<=e;if(t.opt.iconRange&&t.opt.iconRange.length>a){var _=t.opt.iconRange[a],s=_.on||"starOn",n=_.off||"starOff",l=o?s:n;i<=_.range&&(r.attr("class",this.opt[l]),l==s&&r.addClass("bwg_rate_hover")),i==_.range&&a++}else{l=o?"starOn":"starOff";r.attr("class",this.opt[l]),"starOn"==l&&r.addClass("bwg_rate_hover")}}},_getHint:function(e){var t=this.opt.hints[e-1];return""===t?"":t||e},_lock:function(){var e=parseInt(this.score.val(),10);e?s._getHint.call(this,e):this.opt.noRatedMsg;_(this).data("readonly",!0).css("cursor","").attr("title",this.opt.alreadyRatedMsg),this.score.attr("readonly","readonly"),this.stars.attr("title",this.opt.alreadyRatedMsg),this.cancel&&this.cancel.hide()},_roundStars:function(e){var t=(e-Math.floor(e)).toFixed(2);if(t>this.opt.round.down){var a="starOn";this.opt.halfShow&&t<this.opt.round.up?a="starHalf":t<this.opt.round.full&&(a="starOff"),this.stars.eq(Math.ceil(e)-1).attr("class",this.opt[a])}},_target:function(e,t){if(this.opt.target){var a=_(this.opt.target);0===a.length&&s._error.call(this,"Target selector invalid or missing!"),this.opt.targetFormat.indexOf("{score}")<0&&s._error.call(this,'Template "{score}" missing!');var i=t&&"mouseover"==t.type;void 0===e?e=this.opt.targetText:null===e?e=i?this.opt.cancelHint:this.opt.targetText:("hint"==this.opt.targetType?e=s._getHint.call(this,Math.ceil(e)):this.opt.precision&&(e=parseFloat(e).toFixed(1)),i||this.opt.targetKeep||(e=this.opt.targetText)),e&&(e=this.opt.targetFormat.toString().replace("{score}",e)),a.is(":input")?a.val(e):a.html(e)}},_unlock:function(){_(this).data("readonly",!1).css("cursor","pointer").removeAttr("title"),this.score.removeAttr("readonly","readonly");for(var e=0;e<this.opt.number;e++)this.stars.eq(e).attr("title",s._getHint.call(this,e+1));this.cancel&&this.cancel.css("display","")},cancel:function(e){return this.each(function(){!0!==_(this).data("readonly")&&(s[e?"click":"score"].call(this,null),this.score.removeAttr("value"))})},click:function(e){return _(this).each(function(){!0!==_(this).data("readonly")&&(s._apply.call(this,e),this.opt.click||s._error.call(this,'You must add the "click: function(score, evt) { }" callback.'),this.opt.click.call(this,e,{type:"click"}),s._target.call(this,e))})},destroy:function(){return _(this).each(function(){var e=_(this),t=e.data("raw");t?e.off(".raty").empty().css({cursor:t.style.cursor,width:t.style.width}).removeData("readonly"):e.data("raw",e.clone()[0])})},getScore:function(){var e,t=[];return _(this).each(function(){e=this.score.val(),t.push(e?parseFloat(e):void 0)}),1<t.length?t:t[0]},readOnly:function(t){return this.each(function(){var e=_(this);e.data("readonly")!==t&&(t?(e.off(".raty").children("i").off(".raty"),s._lock.call(this)):(s._binds.call(this),s._unlock.call(this)),e.data("readonly",t))})},reload:function(){return s.set.call(this,{})},score:function(){return arguments.length?s.setScore.apply(this,arguments):s.getScore.call(this)},set:function(i){return this.each(function(){var e=_(this),t=e.data("settings"),a=_.extend({},t,i);e.raty(a)})},setScore:function(e){return _(this).each(function(){!0!==_(this).data("readonly")&&(s._apply.call(this,e),s._target.call(this,e))})}};_.fn.raty=function(e){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void _.error("Method "+e+" does not exist!"):s.init.apply(this,arguments)},_.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",alreadyRatedMsg:"Not rated yet!",number:5,numberMax:20,path:"",precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,size:16,space:!0,starHalf:"bwg-icon-star-half-o",starOff:"bwg-icon-star-o",starOn:"bwg-icon-star",target:void 0,targetFormat:"{score}",targetKeep:!1,targetText:"",targetType:"hint",width:void 0}}(jQuery),function(y){y.fn.featureCarousel=function(d){if(1<this.length)return this.each(function(){y(this).featureCarousel(d)}),this;d=y.extend({},y.fn.featureCarousel.defaults,d||{});var h={containerWidth:0,containerHeight:0,largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureHeight:0,smallFeatureWidth:0,totalFeatureCount:y(this).children("div").length,featuresContainer:y(this),featuresArray:[],containerIDTag:"#"+y(this).attr("id"),timeoutVar:null,rotationsRemaining:0,itemsToAnimate:0,borderWidth:0,autoTime:0},_=function(e){return h.featuresArray[e-1]},b=function(e){return e-1==0?h.totalFeatureCount:e-1},p=function(e){return e+1>h.totalFeatureCount?1:e+1},m=function(e){if(clearTimeout(h.timeoutVar),!e&&0!=d.autoPlay){var t=Math.abs(d.autoPlay)<d.carouselSpeed?d.carouselSpeed:Math.abs(d.autoPlay);h.timeoutVar=setTimeout(function(){0<d.autoPlay?a(!0,1):a(!1,1)},t)}},s=function(a,i){var e,t,r,o,_,s,n,l;bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_video&&jQuery(".bwg_carousel-feature"+d.bwg_number).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&jQuery("#bwg_carousel_play_pause_"+d.bwg_number).hide(),a.find(".bwg_video_hide"+d.bwg_number).each(function(){jQuery(this).css({display:""})}),a.find(".bwg_carousel_image_container_"+d.bwg_number).each(function(){jQuery(this).hide()}),a.find(".bwg_carousel_watermark_"+d.bwg_number).each(function(){jQuery(this).hide()});var g,u=a.data("position");if(g=1==i?b(u):p(u),1==u&&d.leavingCenter(a),1==g){var c=bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].alt;""!==(c=c.replace(/^\s+/,"").replace(/\s+$/,""))&&d.enable_image_title?jQuery(".bwg_carousel_title_text_"+d.bwg_number).css({display:""}):jQuery(".bwg_carousel_title_text_"+d.bwg_number).css({display:"none"}),e=h.largeFeatureWidth,t=h.largeFeatureHeight,r=d.containerHeight/2-t/2,_=a.css("z-index"),o=d.containerWidth/2-h.largeFeatureWidth/2-h.borderWidth/2,s=1,n=100,bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_video?(jQuery(".bwg_carousel_play_pause_"+d.bwg_number).css({display:"none"}),jQuery(".bwg_carousel_image_container_"+d.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_container_"+d.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_spun_"+d.bwg_number).css({display:""}),jQuery(".bwg_carousel_watermark_"+d.bwg_number).css({display:""}),a.find(".bwg_video_hide"+d.bwg_number).each(function(){jQuery(this).hide()})):(a.find(".bwg_video_hide"+d.bwg_number).each(function(){jQuery(this).hide()}),jQuery(".bwg_carousel_play_pause_"+d.bwg_number).css({display:""}),a.find(".bwg_carousel_image_container_"+d.bwg_number).each(function(){jQuery(this).css({display:""})}),a.find(".bwg_carousel_watermark_"+d.bwg_number).each(function(){jQuery(this).css({display:""})})),l="grayscale(0%)",bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+d.bwg_number).css("min-height",""),a.find(".bwg_embed_frame_"+d.bwg_number).css("min-width","")),bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_video&&a.find(".bwg_embed_frame_"+d.bwg_number).css("display","inline-block"),a.find(".bwg_carousel_image_container_"+d.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":""})})}else g<=h.totalFeatureCount&&g>h.totalFeatureCount-d.imagecount/2+1?(e=h.largeFeatureWidth*Math.pow(d.smallFeaturePar,h.totalFeatureCount-g+1),t=h.largeFeatureHeight*Math.pow(d.smallFeaturePar,h.totalFeatureCount-g+1),r=d.containerHeight/2-t/2,s=1,l="grayscale(0%)",n=100,e=h.largeFeatureWidth*Math.pow(d.smallFeaturePar,h.totalFeatureCount-g+1),t=h.largeFeatureHeight*Math.pow(d.smallFeaturePar,h.totalFeatureCount-g+1),r=d.containerHeight/2-t/2,bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+d.bwg_number).css("min-height","100%"),a.find(".bwg_embed_frame_"+d.bwg_number).css("min-width","100%")),o=0==d.fit_containerWidth&&d.smallFeaturePar<1?d.containerWidth/2-h.largeFeatureWidth/2-h.largeFeatureWidth*(1-d.smallFeaturePar)*d.smallFeaturePar*(h.totalFeatureCount-g+1):0==d.fit_containerWidth&&1==d.smallFeaturePar?d.containerWidth/2-h.largeFeatureWidth/2-h.largeFeatureWidth*d.smallFeaturePar*d.smallFeaturePar*(h.totalFeatureCount-g+1):(new_left1=(d.containerWidth/2-h.largeFeatureWidth/2)/(d.imagecount/2-.5),d.containerWidth/2-h.largeFeatureWidth/2-h.borderWidth/2-new_left1*(h.totalFeatureCount-g+1)),a.find(".bwg_carousel_image_container_"+d.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":"none"})})):2<=g&&g<=d.imagecount/2+1?(e=h.largeFeatureWidth*Math.pow(d.smallFeaturePar,g-1),t=h.largeFeatureHeight*Math.pow(d.smallFeaturePar,g-1),r=d.containerHeight/2-t/2,s=1,l="grayscale(0%)",n=100,bwg_params_carousel[d.bwg_number].data[a.attr("image_key")].is_embed_instagram_post&&(a.find(".bwg_embed_frame_"+d.bwg_number).css("min-height","100%"),a.find(".bwg_embed_frame_"+d.bwg_number).css("min-width","100%")),o=0==d.fit_containerWidth&&d.smallFeaturePar<1?d.containerWidth/2+h.largeFeatureWidth/2+h.largeFeatureWidth*d.smallFeaturePar*(1-d.smallFeaturePar)*(g-1)-e:0==d.fit_containerWidth&&1==d.smallFeaturePar?d.containerWidth/2+h.largeFeatureWidth/2+h.largeFeatureWidth*d.smallFeaturePar*d.smallFeaturePar*(g-1)-e:(new_left1=(d.containerWidth/2-h.largeFeatureWidth/2)/(d.imagecount/2-.5),d.containerWidth/2+h.largeFeatureWidth/2-e+new_left1*(g-1)),a.find(".bwg_carousel_image_container_"+d.bwg_number).next().each(function(){jQuery("#"+jQuery(this).attr("id")).css({"pointer-events":"none"})})):(o=d.containerWidth/2-h.largeFeatureWidth*d.smallFeaturePar/2-h.borderWidth/2,n=s=0);1==u&&a.find(".bwg_carousel-caption"+d.bwg_number).hide(),a.find("div[class^='bwg_carousel-image']").css({filter:l,"-webkit-filter":l}),a.animate({width:e,height:t,top:r,left:o,opacity:s,filter:n},d.carouselSpeed,d.animationEasing,function(){if(1==g&&(d.captionBelow&&a.css("height","auto"),a.find(".bwg_carousel-caption"+d.bwg_number).fadeTo("fast",.85),d.movedToCenter(a)),h.rotationsRemaining=h.rotationsRemaining-1,a.css("z-index",_),(d.trackerIndividual||d.trackerSummation)&&1==g){var e=h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).index(a)+1;(function(e,t){d.trackerIndividual&&((a=h.featuresContainer.find(".tracker-individual-container")).find("#tracker-"+e),a.find("#tracker-"+t));var a;d.trackerSummation&&(a=h.featuresContainer.find(".tracker-summation-container")).find(".tracker-summation-current").text(t)})(0==i?p(e):b(e),e)}var t;h.rotationsRemaining/h.itemsToAnimate%1==0&&(bwg_params_carousel[d.bwg_number].bwg_currentlyMoving=!1,t=i,y.each(h.featuresArray,function(){var e;e=0==t?p(y(this).data().position):b(y(this).data().position),y(this).data("position",e)}),0<h.rotationsRemaining&&w(i)),m(!1)}).end()},w=function(e){var t,a,i,r;if(bwg_params_carousel[d.bwg_number].bwg_currentlyMoving=!0,1==e){t=_(p(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum)),a=[],r=bwg_params_carousel[d.bwg_number].bwg_currentCenterNum;for(var o=1;o<=d.imagecount/2+1;++o)a.push(_(r)),r=b(r);i=[],r=p(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum);for(o=1;o<=d.imagecount/2+1;++o)r=p(r),i.push(_(r));bwg_params_carousel[d.bwg_number].bwg_currentCenterNum=p(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum)}else{t=_(b(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum)),a=[],r=b(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum);for(o=1;o<=d.imagecount/2+1;++o)r=b(r),a.push(_(r));i=[],r=bwg_params_carousel[d.bwg_number].bwg_currentCenterNum;for(o=1;o<=d.imagecount/2+1;++o)i.push(_(r)),r=p(r);bwg_params_carousel[d.bwg_number].bwg_currentCenterNum=b(bwg_params_carousel[d.bwg_number].bwg_currentCenterNum)}for(o=0;o<a.length;o++)e?a[o].css("z-index",a.length-o+3):a.length-2>o&&a[o].css("z-index",a.length-o+3),s(a[o],e,onload);for(t.css("z-index",Math.max(a.length,i.length)+4),s(t,e,onload),o=0;o<i.length;o++)e?a.length-2>o&&i[o].css("z-index",i.length-o+3):i[o].css("z-index",i.length-o+3),s(i[o],e,onload)},a=function(e,t){if(0==bwg_params_carousel[d.bwg_number].bwg_currentlyMoving){var a=t*h.itemsToAnimate;h.rotationsRemaining=a,bwg_carousel_watermark(d.bwg_number),w(e)}};return y(d.leftButtonTag).on("click",function(){a(!1,1)}),y(d.rightButtonTag).on("click",function(){a(!0,1)}),h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).mouseover(function(){if(0==bwg_params_carousel[d.bwg_number].bwg_currentlyMoving){var e=y(this).data("position");3!=e&&e!=h.totalFeatureCount||y(this).css("opacity",1)}d.pauseOnHover&&m(!0),d.stopOnHover&&(d.autoPlay=0)}).mouseout(function(){if(0==bwg_params_carousel[d.bwg_number].bwg_currentlyMoving){var e=y(this).data("position");3!=e&&e!=h.totalFeatureCount||y(this).css("opacity",1)}d.pauseOnHover&&m(!1)}),y("a",h.containerIDTag).on("click",function(t){y(this).parentsUntil(h.containerIDTag).each(function(){var e=y(this).data("position");if(null!=e){if(1!=e)return e==h.totalFeatureCount?a(!1,1):2==e&&a(!0,1),t.preventDefault(),!1;d.clickedCenter(y(this))}})}),this.initialize=function(){return function(i){if(1==d.preload){var e=h.featuresContainer.find("img"),r=0,o=e.length;e.each(function(e,t){var a=new Image;y(a).bind("load error",function(){++r==o&&i()}),a.src=t.src})}else i()}(function(){!function(){d.containerWidth=h.featuresContainer.width(),d.containerHeight=h.featuresContainer.height();var e=y(h.containerIDTag).find(".bwg_carousel-image"+d.bwg_number+":first");1<d.largeFeatureWidth?h.largeFeatureWidth=d.largeFeatureWidth:0<d.largeFeatureWidth&&d.largeFeatureWidth<1?h.largeFeatureWidth=e.width()*d.largeFeatureWidth:h.largeFeatureWidth=e.outerWidth(),1<d.largeFeatureHeight?h.largeFeatureHeight=d.largeFeatureHeight:0<d.largeFeatureHeight&&d.largeFeatureHeight<1?h.largeFeatureHeight=e.height()*d.largeFeatureHeight:h.largeFeatureHeight=e.outerHeight(),1<d.smallFeatureWidth?h.smallFeatureWidth=d.smallFeatureWidth:0<d.smallFeatureWidth&&d.smallFeatureWidth<1?h.smallFeatureWidth=e.width()*d.smallFeatureWidth:h.smallFeatureWidth=e.outerWidth()/2}(),0<d.displayCutoff&&d.displayCutoff<h.totalFeatureCount&&(h.totalFeatureCount=d.displayCutoff),h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).each(function(e){e<h.totalFeatureCount&&(h.featuresArray[e]=y(this))}),"medium"!=h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).first().css("borderLeftWidth")&&(h.borderWidth=parseInt(h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).first().css("borderLeftWidth"))),1!=d.imagecount?h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).each(function(){y(this).css({left:d.containerWidth/2-d.largeFeatureWidth*d.smallFeaturePar/2-h.borderWidth/2+d.largeFeatureWidth/2,width:d.largeFeatureWidth*d.smallFeaturePar/100,height:d.largeFeatureHeight*d.smallFeaturePar/100,top:d.smallFeatureOffset+d.topPadding+d.largeFeatureHeight/2,opacity:0,filter:"Alpha(opacity=100)"})}):h.featuresContainer.find(".bwg_carousel-feature"+d.bwg_number).each(function(){y(this).css({left:0,width:d.largeFeatureWidth*d.smallFeaturePar,height:d.largeFeatureHeight*d.smallFeaturePar,top:0,opacity:0,filter:"Alpha(opacity=100)"})}),d.captionBelow&&h.featuresContainer.find(".bwg_carousel-caption"+d.bwg_number).css("position","absolute"),h.totalFeatureCount<d.imagecount?h.itemsToAnimate=h.totalFeatureCount:h.itemsToAnimate=parseInt(d.imagecount)+2,h.featuresContainer.find(".bwg_carousel-caption"+d.bwg_number).hide(),0==bwg_params_carousel[d.bwg_number].bwg_currentlyMoving&&(!function(){y.each(h.featuresArray,function(e){y(this).data("setPosition",e+1)});var e=b(d.startingFeature);bwg_params_carousel[d.bwg_number].bwg_currentCenterNum=e;var t=_(e);t.data("position",1),t.prevAll().each(function(e){y(this).data("position",h.totalFeatureCount-e)}),t.nextAll().each(function(e){null!=y(this).data("setPosition")&&y(this).data("position",e+2)}),"caption"==d.counterStyle&&y.each(h.featuresArray,function(){var e=b(y(this).data("position")),t=y("<span></span>");t.addClass("numberTag"),t.html("("+e+" of "+h.totalFeatureCount+") "),y(this).find(".bwg_carousel-caption"+d.bwg_number).prepend(t)})}(),a(!0,1))}),this},this.shift=function(e){var t=y(e).data("position");1!=t&&(t>h.totalFeatureCount/2+1?(bwg_carousel_preload(d.bwg_number,!1),a(!1,h.totalFeatureCount-t+1)):(bwg_carousel_preload(d.bwg_number,!0),a(!0,t-1)),d.carouselSpeed=400,d.animationEasing)},this.next=function(){bwg_carousel_preload(d.bwg_number,!0),a(!0,1)},this.prev=function(){bwg_carousel_preload(d.bwg_number,!1),a(!1,1)},this.pause=function(){d.autoPlay=0,m(!0)},this.start=function(){d.autoPlay=d.interval,m(!1)},this.initialize()},y.fn.featureCarousel.defaults={largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureWidth:.5,smallFeatureHeight:.5,containerWidth:0,containerHeight:0,fit_containerWidth:0,bwg_number:0,topPadding:20,sidePadding:50,smallFeatureOffset:50,smallFeaturePar:0,startingFeature:1,carouselSpeed:300,autoPlay:4e3,imagecount:7,enable_image_title:0,pauseOnHover:!0,stopOnHover:!1,trackerIndividual:!0,trackerSummation:!0,preload:!1,displayCutoff:0,animationEasing:"swing",leftButtonTag:"#bwg_carousel-left",rightButtonTag:"#bwg_carousel-right",captionBelow:!1,movedToCenter:y.noop,leavingCenter:y.noop,clickedCenter:y.noop}}(jQuery);var DisplayObject3D=function(){return this};DisplayObject3D.prototype._x=0,DisplayObject3D.prototype._y=0,DisplayObject3D.prototype.make3DPoint=function(e,t,a){var i={};return i.x=e,i.y=t,i.z=a,i},DisplayObject3D.prototype.make2DPoint=function(e,t,a,i){var r={};return r.x=e,r.y=t,r.depth=a,r.scaleFactor=i,r},DisplayObject3D.prototype.container=void 0,DisplayObject3D.prototype.pointsArray=[],DisplayObject3D.prototype.init=function(e){if(this.container=e,this.containerId=this.container.attr("id"),0===e.has("ul").length)for(i=0;i<this.pointsArray.length;i++)this.container.append('<b id="tags_cloud_item'+i+'">+</b>')};var Camera3D=function(){};Camera3D.prototype.x=0,Camera3D.prototype.y=0,Camera3D.prototype.z=500,Camera3D.prototype.focalLength=1e3,Camera3D.prototype.scaleRatio=function(e){return this.focalLength/(this.focalLength+e.z-this.z)},Camera3D.prototype.init=function(e,t,a,i){this.x=e,this.y=t,this.z=a,this.focalLength=i};var Object3D=function(e){this.container=e};Object3D.prototype.objects=[],Object3D.prototype.addChild=function(e){return this.objects.push(e),e.init(this.container),e};var Scene3D=function(){};Scene3D.prototype.sceneItems=[],Scene3D.prototype.addToScene=function(e){this.sceneItems.push(e)},Scene3D.prototype.Transform3DPointsTo2DPoints=function(e,t,a){for(var i,r,o,_,s,n,l,g,u,c=[],d=Math.sin(t.x),h=Math.cos(t.x),b=Math.sin(t.y),p=Math.cos(t.y),m=Math.sin(t.z),w=Math.cos(t.z),y=e.length;y--;){i=e[y].x,l=p*(s=d*(r=e[y].y)+h*(o=e[y].z))-b*i,g=m*(n=b*s+p*i)+w*(_=h*r-d*o),i=(w*n-m*_)*(u=a.focalLength/(a.focalLength+l)),r=g*u,o=l;var f=new DisplayObject3D;c[y]=f.make2DPoint(i,r,-o,u)}return c},Scene3D.prototype.renderCamera=function(e){for(var t=0;t<this.sceneItems.length;t++){var a=this.sceneItems[t].objects[0],i=this.Transform3DPointsTo2DPoints(a.pointsArray,axisRotation,e),r=0<document.getElementById(a.containerId).getElementsByTagName("ul").length;for(k=0;k<a.pointsArray.length;k++){var o=null;(o=r?document.getElementById(a.containerId).getElementsByTagName("ul")[0].getElementsByTagName("li")[k]:document.getElementById(a.containerId).getElementsByTagName("*")[k])&&(o._x=i[k].x,o._y=i[k].y,o.scale=i[k].scaleFactor,o.style.position="absolute",o.style.top=o._y+.4*jQuery("#"+a.containerId).height()+"px",o.style.left=o._x+.4*jQuery("#"+a.containerId).width()+"px",o.style.fontSize=100*o.scale+"%",jQuery(o).css({opacity:o.scale-.5}),curChild=jQuery(o).find("#imgg"),curChild&&(jQuery(o).css("zIndex",Math.round(100*o.scale)),curChild.css({maxWidth:50*o.scale}),curChild.css({maxHeight:50*o.scale})))}}};var axisRotation=(new DisplayObject3D).make3DPoint(0,0,0),Sphere=function(e,t,a){for(var i=t;0<i;i--)for(var r=a/t;0<r;r--){var o=r*Math.PI/(a/t+1),_=i*Math.PI*2/t,s=Math.sin(_)*Math.sin(o)*e,n=Math.cos(_)*Math.sin(o)*e,l=Math.cos(o)*e;this.pointsArray.push(this.make3DPoint(s,n,l))}};Sphere.prototype=new DisplayObject3D;var bwg=0,isMobile=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),bwg_click=isMobile?"touchend":"click",bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_main_ready(){jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(jQuery(this).data("bwg"))}),bwg_document_ready(),jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}),bwg_slideshow_ready(),bwg_carousel_ready(),bwg_carousel_onload(),bwg_image_browser_ready()}function bwg_resize_search_line(){jQuery(".search_line").each(function(){var e=jQuery(this);e.width()<410?e.addClass("bwg-search-line-responsive"):e.removeClass("bwg-search-line-responsive")})}function bwg_slideshow_resize(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],bwg_popup_resize(bwg))})}function bwg_blog_style_resize(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)})})}function bwg_blog_style_onload(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg");jQuery("#bwg_blog_style_"+bwg);jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){if(jQuery(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").length){jQuery(".fluid-width-video-wrapper").removeAttr("style");var t=jQuery(this).parents(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").contents();jQuery(this).parents(".fluid-width-video-wrapper").replaceWith(t)}jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),bwg_container_loaded(bwg)})}function bwg_blog_style_ready(){jQuery(".bwg_blog_style").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e);var t=!1;jQuery(this).find(".bwg_lightbox_"+e).on("click",function(){var e=jQuery(this).attr("data-image-id");if(jQuery("#bwg_blog_style_share_buttons_"+e).removeAttr("data-open-comment"),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(e,jQuery(this).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(jQuery(this).attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1});var a=window.location.hash.substring(1);a&&"-1"!=a.indexOf("bwg")&&(bwg_hash_array=a.replace("bwg","").split("/"),"<?php echo $params_array['gallery_id']; ?>"==bwg_hash_array[0]&&bwg_gallery_box(bwg_hash_array[1]))})}function bwg_slideshow_focus(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]),jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-play")||bwg_play(bwg_params[bwg].data,bwg))})}function bwg_slideshow_blur(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]))})}function bwg_carousel_ready(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_params_carousel[e]=[],bwg_params_carousel[e].bwg_currentCenterNum=1,bwg_params_carousel[e].bwg_currentlyMoving=!1,bwg_params_carousel[e].data=[],jQuery("#spider_carousel_left-ico_"+e).on("click",function(){bwg_params_carousel[e].carousel.prev()}),jQuery("#spider_carousel_right-ico_"+e).on("click",function(){bwg_params_carousel[e].carousel.next()}),parseInt(bwg_params_carousel[e].carousel_enable_autoplay)&&(jQuery(".bwg_carousel_play_pause_"+e).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+e).attr("class","bwg-icon-pause bwg_ctrl_btn_"+e+" bwg_carousel_play_pause_"+e)),jQuery(".bwg_carousel_play_pause_"+e).on(bwg_click,function(){jQuery(".bwg_ctrl_btn_"+e).hasClass("bwg-icon-play")?(jQuery(".bwg_carousel_play_pause_"+e).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+e).attr("class","bwg-icon-pause bwg_ctrl_btn_"+e+" bwg_carousel_play_pause_"+e),bwg_params_carousel[e].carousel.start()):(jQuery(".bwg_carousel_play_pause_"+e).attr("title",bwg_objectsL10n.play),jQuery(".bwg_carousel_play_pause_"+e).attr("class","bwg-icon-play bwg_ctrl_btn_"+e+" bwg_carousel_play_pause_"+e),bwg_params_carousel[e].carousel.pause())}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+e).swiperight(function(){bwg_params_carousel[e].carousel.prev()}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+e).swipeleft(function(){bwg_params_carousel[e].carousel.next()})})}function bwg_carousel_resize(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_carousel_params(e),bwg_params_carousel[e].carousel.pause(),bwg_carousel_watermark(e),jQuery(".bwg_ctrl_btn_"+e).hasClass("bwg-icon-play")||bwg_params_carousel[e].carousel.start()})}function bwg_carousel_onload(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_params_carousel[e]=jQuery(this).data("params"),bwg_carousel_watermark(e),bwg_carousel_params(e),bwg_container_loaded(e)})}function bwg_carousel_params(t){var e=jQuery("#bwg_container1_"+t).parent().width(),a=1;e<bwg_params_carousel[t].carousel_r_width?a=e/bwg_params_carousel[t].carousel_r_width:e=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].carousel_image_column_number>bwg_params_carousel[t].count&&(bwg_params_carousel[t].carousel_image_column_number=bwg_params_carousel[t].count),jQuery(".bwg_carousel_play_pause_"+t).css({display:parseInt(bwg_params_carousel[t].carousel_play_pause_butt)?"":"none"}),parseInt(bwg_params_carousel[t].carousel_prev_next_butt)?(jQuery("#bwg_carousel-right"+t).css({display:""}),jQuery("#bwg_carousel-left"+t).css({display:""})):(jQuery("#bwg_carousel-left"+t).css({display:"none"}),jQuery("#bwg_carousel-right"+t).css({display:"none"})),jQuery(".inner_instagram_iframe_bwg_embed_frame_"+t).each(function(){var e=jQuery(this).parent();bwg_params_carousel[t].image_height/(parseInt(e.attr("data-height"))+96)<bwg_params_carousel[t].image_width/parseInt(e.attr("data-width"))?(e.height(bwg_params_carousel[t].image_height*a),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*a),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),jQuery(".bwg_carousel_image_container_"+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:e*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*a}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_carousel-container"+t).css({width:e,height:bwg_params_carousel[t].image_height*a}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*a,height:bwg_params_carousel[t].image_height*a}),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:e*a,containerHeight:bwg_params_carousel[t].image_height*a,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*a,largeFeatureHeight:bwg_params_carousel[t].image_height*a,smallFeaturePar:bwg_params_carousel[t].carousel_image_par,currentlyMoving:!1,startingFeature:bwg_params_carousel[t].bwg_currentCenterNum,featuresArray:[],timeoutVar:null,rotationsRemaining:0,autoPlay:1e3*bwg_params_carousel[t].car_inter,interval:1e3*bwg_params_carousel[t].carousel_interval,imagecount:bwg_params_carousel[t].carousel_image_column_number,bwg_number:t,enable_image_title:bwg_params_carousel[t].enable_image_title,borderWidth:0})}function bwg_carousel_watermark(e){var t=1,a=jQuery("#bwg_container1_"+e).parent().width();if(a<bwg_params_carousel[e].carousel_r_width&&(t=a/bwg_params_carousel[e].carousel_r_width),a>=bwg_params_carousel[e].image_width)bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:bwg_params_carousel[e].carousel_play_pause_btn_size}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:bwg_params_carousel[e].watermark_width*t,maxHeight:bwg_params_carousel[e].watermark_height*t}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:t*bwg_params_carousel[e].watermark_font_size});else{var i=bwg_params_carousel[e].image_width/t;bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:a*bwg_params_carousel[e].carousel_play_pause_btn_size/i}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:a*bwg_params_carousel[e].watermark_width/i,maxHeight:a*bwg_params_carousel[e].watermark_height/i}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:a*bwg_params_carousel[e].watermark_font_size/i})}}function bwg_carousel_change_watermark_container(i){jQuery(".bwg_carousel"+i).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");e.length||(e=jQuery(this).find("iframe"));var t=e.width(),a=e.height();jQuery(".bwg_carousel_watermark_spun_"+i).width(t),jQuery(".bwg_carousel_watermark_spun_"+i).height(a),jQuery(".bwg_carousel_title_spun_"+i).width(t),jQuery(".bwg_carouel_title_spun_"+i).height(a),jQuery(".bwg_carousel_watermark_"+i).css({display:"none"})}})}function bwg_carousel_preload(e,t){var a=jQuery(".bwg_carousel_preload").get();t||a.reverse();var i=0;jQuery(a).each(function(){if(1<++i)return!1;jQuery(this).parent().hasClass("bwg_carousel_embed_video_"+e)||jQuery(this).parent().hasClass("bwg_embed_frame_"+e)||jQuery(this).parent().hasClass("bwg_carousel_video")?(jQuery(this).attr("src",jQuery(this).attr("data-src")),jQuery(this).on("load",function(){jQuery(this).removeClass("bwg_carousel_preload")}),jQuery(this).parent().hasClass("bwg_carousel_video")&&(jQuery(".bwg_carousel_video")[0].load(),jQuery(this).parent().parent().removeClass("bwg_carousel_preload")),jQuery(this).removeAttr("data-src")):(jQuery(this).css({"background-image":"url('"+jQuery(this).attr("data-background")+"')",height:"100%"}),jQuery(this).removeClass("bwg_carousel_preload"),jQuery(this).removeAttr("data-background"))})}function bwg_slideshow_ready(){jQuery(".bwg_slideshow").each(function(){var a=jQuery(this).data("bwg");if(jQuery("#bwg_slideshow_image_container_"+a).length){bwg_params[a]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+a).attr("data-params")),bwg_params[a].event_stack=[],bwg_container_loaded(a);var e=bwg_params[a].data;void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+a).swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),0<=parseInt(jQuery("#bwg_current_image_key_"+a).val())-bwg_iterator(a)?(parseInt(jQuery("#bwg_current_image_key_"+a).val())-bwg_iterator(a))%e.length:e.length-1,e,"",a),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+a).swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),parseInt(jQuery("#bwg_current_image_key_"+a).val())+bwg_iterator(a)%e.length,e,"",a),!1});var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";bwg_popup_resize(a),jQuery(".bwg_slideshow_watermark_"+a).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+a).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+a).css({display:"none"}),setTimeout(function(){bwg_change_watermark_container(a)},500),"horizontal"==bwg_params[a].filmstrip_direction?jQuery(".bwg_slideshow_image_container_"+a).height(jQuery(".bwg_slideshow_image_wrap_"+a).height()-bwg_params[a].slideshow_filmstrip_height):jQuery(".bwg_slideshow_image_container_"+a).width(jQuery(".bwg_slideshow_image_wrap_"+a).width()-bwg_params[a].slideshow_filmstrip_width);var i=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_slideshow_filmstrip_"+a).bind(i,function(e){var t=window.event||e;return 0<((t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta)?jQuery(".bwg_slideshow_filmstrip_left_"+a).trigger("click"):jQuery(".bwg_slideshow_filmstrip_right_"+a).trigger("click"),!1}),jQuery(".bwg_slideshow_filmstrip_right_"+a).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).stop(!0,!1),"left"==bwg_params[a].left_or_top?"width"==bwg_params[a].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width()-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height()-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==bwg_params[a].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width()-bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top-bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).width()-jQuery(".bwg_slideshow_filmstrip_"+a).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height()-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).height()-jQuery(".bwg_slideshow_filmstrip_"+a).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),jQuery(".bwg_slideshow_filmstrip_left_"+a).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).stop(!0,!1),"left"==bwg_params[a].left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left>-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left+bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().left&&jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+a).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top>-(bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top+bwg_params[a].filmstrip_thumb_margin_hor+bwg_params[a].slideshow_filmstrip_width},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+a).position().top&&jQuery(".bwg_slideshow_filmstrip_left_"+a).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"width"==bwg_params[a].width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+a).width(),a):bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+a).height(),a),jQuery("#bwg_slideshow_play_pause_"+a).off(t).on(t,function(){jQuery(".bwg_ctrl_btn_"+a).hasClass("bwg-icon-play")?(bwg_play(bwg_params[a].data,a),jQuery(".bwg_slideshow_play_pause_"+a).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-pause bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&document.getElementById("bwg_audio_"+a).play()):(window.clearInterval(window["bwg_playInterval"+a]),jQuery(".bwg_slideshow_play_pause_"+a).attr("title","Play"),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-play bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&document.getElementById("bwg_audio_"+a).pause())}),0!=bwg_params[a].enable_slideshow_autoplay&&(bwg_play(bwg_params[a].data,a),jQuery(".bwg_slideshow_play_pause_"+a).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+a).attr("class","bwg-icon-pause bwg_ctrl_btn_"+a+" bwg_slideshow_play_pause_"+a),1==bwg_params[a].enable_slideshow_music&&jQuery("#bwg_audio_"+a).length&&document.getElementById("bwg_audio_"+a).play()),bwg_params[a].preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key_".$bwg).val()),a),jQuery(".bwg_slideshow_image_"+a).removeAttr("width"),jQuery(".bwg_slideshow_image_"+a).removeAttr("height")}})}function bwg_image_browser_resize(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery("#bwg_container1_"+e+" .image_browser_images_conteiner_"+e).attr("data-params")),bwg_image_browser(e))})}function bwg_image_browser_ready(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e),jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery(".image_browser_images_conteiner_"+e).attr("data-params")),setTimeout(function(){bwg_image_browser(e)},3))})}function bwg_search_focus(e){jQuery(e).parent().find(".bwg_search_input").focus(),jQuery(e).hide()}function bwg_key_press(e){jQuery(e).parent().find(".bwg_search_reset_container").removeClass("hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("hidden")}function bwg_all_thumnails_loaded(t){var a=0,i=jQuery(t).find("img").length;return 0==i?bwg_all_thumbnails_loaded_callback(t):jQuery(t).find("img").each(function(){var e=jQuery(this).attr("src");jQuery("<img/>").attr("src",e).on("load error",function(){++a>=i&&bwg_all_thumbnails_loaded_callback(t)})}),0==i}function bwg_all_thumbnails_loaded_callback(e){jQuery(e).hasClass("bwg-thumbnails")&&bwg_thumbnail(e),jQuery(e).hasClass("bwg-masonry-thumbnails")&&bwg_thumbnail_masonry(e),jQuery(e).hasClass("bwg-album-extended")&&bwg_album_extended(e)}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden")}function bwg_album_thumbnail(e){bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_album_extended(e){var t=jQuery(e).width(),a=jQuery(e).data("thumbnail-width"),i=jQuery(e).data("spacing"),r=jQuery(e).data("max-count"),o=parseInt(t/(2*a));o<1&&(o=1),r<o&&(o=r);var _=100/o,s=jQuery(e).find(".bwg-extended-item"),n=parseInt(s.css("margin-left")),l=parseInt(s.css("margin-right"));s.css({width:"calc("+_+"% - "+(n+l)+"px)"}),s.width()<a?s.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(100% - "+i+"px)"}):s.width()>2*a?(s.find(".bwg-extended-item0").css({width:"calc(50% - "+i+"px)"}),s.find(".bwg-extended-item1").css({width:"calc(100% - "+(a+2*i)+"px)"})):s.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(50% - "+i+"px)"}),jQuery(e).children(".bwg-extended-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item0"),a=jQuery(this).find(".bwg-item2");a.width()/a.height()>e.width()/e.height()?a.width()>e.width()?e.css({width:"100%"}):e.css({maxWidth:"100%"}):a.height()>e.height()?e.css({height:"100%"}):e.css({maxHeight:"100%"}),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-e.width())/2,marginTop:(t.height()-e.height())/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail(e){var t=jQuery(e).width(),a=jQuery(e).data("thumbnail-width"),i=jQuery(e).data("max-count"),r=parseInt(t/a)+1;i<r&&(r=i);var o=100/r;jQuery(e).find(".bwg-item").css({width:o+"%"}),jQuery(e).children(".bwg-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item2");t.width()/t.height()>e.width()/e.height()?t.width()>e.width()?e.css({width:"100%"}):e.css({maxWidth:"100%"}):t.height()>e.height()?e.css({height:"100%"}):e.css({maxHeight:"100%"}),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-e.width())/2,marginTop:(t.height()-e.height())/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t=jQuery(e);if(t.find(".bwg-empty-item").remove(),"horizontal"==t.data("masonry-type")){var a=t.data("thumbnail-height"),r=t.data("max-count"),o=[];for(i=0;i<r;i++)o.push(0);t.find(".bwg-item").each(function(){var e=o.indexOf(Math.min.apply(Math,o));jQuery(this).css({height:a,order:e+1}),o[e]+=jQuery(this)[0].getBoundingClientRect().width});var _=Math.max.apply(Math,o);for(t.width(_),i=0;i<r;i++)o[i]<_&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:a,order:i+1,width:_-o[i]}))}else{t.removeAttr("style");_=t.width();var s=t.data("thumbnail-width"),n=(r=t.data("max-count"),parseInt(_/s)+("0"==t.data("resizable-thumbnails")?0:1));r<n&&(n=r);var l=t.find(".bwg-item").length;l<n&&(n=l);var g=100/n,u=[];for(i=0;i<n;i++)u.push(0);t.find(".bwg-item").each(function(){var e=u.indexOf(Math.min.apply(Math,u));jQuery(this).css({width:g+"%",order:e+1}),u[e]+=jQuery(this)[0].getBoundingClientRect().height});var c=Math.max.apply(Math,u);for(i=0;i<n;i++)u[i]<c&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:g+"%",order:i+1,height:c-u[i]}));t.outerWidth(n*s),t.height(c)}bwg_container_loaded(t.data("bwg"))}function bwg_thumbnail_mosaic(e){var t=jQuery(e),r=t.attr("data-bwg"),a=t.attr("data-block-id"),i=parseInt(t.attr("data-thumb-padding"))/2,o=parseInt(t.attr("data-thumb-border"))+i;if("horizontal"==t.attr("data-mosaic-direction")){var _=parseInt(t.attr("data-height"));if("1"==t.attr("data-resizable"))if(1920<=jQuery(window).width())var s=(1+jQuery(window).width()/1920)*_;else if(jQuery(window).width()<=640)s=jQuery(window).width()/640*_;else s=_;else s=_;(y=jQuery(".bwg_mosaic_thumb_"+r)).each(function(e){var t=y.get(e).naturalWidth,a=y.get(e).naturalHeight;t=t*s/a,y.eq(e).height(s),y.eq(e).width(t)});var n=jQuery("#bwg_mosaic_thumbnails_div_"+r).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+a).width(n);var l=s+2*o,g=0,u=[];u[0]=0;var c=[],d=c[0]=0;y.each(function(e){row_cum_width2=d+y.eq(e).width()+2*o,row_cum_width2-n<0?(d=row_cum_width2,u[e]=g,c[g]++):e!==y.length-1?Math.abs(d-n)>Math.abs(row_cum_width2-n)||Math.abs(d-n)<=Math.abs(row_cum_width2-n)&&0==c[g]?e!==y.length-2?(d=row_cum_width2,u[e]=g,c[g]++,c[++g]=0,d=0):(d=row_cum_width2,u[e]=g,c[g]++):(c[++g]=1,u[e]=g,d=row_cum_width2-d):(d=row_cum_width2,u[e]=g,c[g]++)});for(var h=[],b=[],p=0;p<=g;p++)h[p]=1,b[p]=l;for(p=0;p<=g;p++)d=0,y.each(function(e){u[e]==p&&(d+=y.eq(e).width())}),h[p]=k=(n-2*c[p]*o)/d,b[p]=(l-2*o)*h[p]+2*o;(M=[])[0]=0;var m=[],w=[];m[0]=0,w[0]=0;for(p=1;p<=g;p++)m[p]=m[0],w[p]=w[p-1]+b[p-1];y.each(function(e){var t=y.eq(e).width(),a=y.eq(e).height();y.eq(e).width(t*h[u[e]]),y.eq(e).height(a*h[u[e]]),y.eq(e).parent().css({top:w[u[e]],left:m[u[e]]}),m[u[e]]+=t*h[u[e]]+2*o,M[u[e]]=e}),jQuery("#"+a).height(w[g]+b[g]-w[0])}else{var y,f=parseInt(t.attr("data-width"));if("1"==t.attr("data-resizable"))if(1920<=jQuery(window).width())var j=(1+jQuery(window).width()/1920)*f;else if(jQuery(window).width()<=640)j=jQuery(window).width()/640*f;else j=f;else j=f;(y=jQuery(".bwg_mosaic_thumb_"+r)).each(function(e){var t=y.get(e).naturalWidth,a=y.get(e).naturalHeight;y.eq(e).height(a*j/t),y.eq(e).width(j)});n=jQuery("#bwg_mosaic_thumbnails_div_"+r).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+a).width(n);var Q=j+2*o<n?j:n-2*o,v=Math.floor(n/(Q+2*o)),x=[];x[0]=0;for(var C=[],S=[],k=0;k<v;k++)S[k]=0,C[k]=0;y.each(function(e){for(var t=0,a=S[0],i=0;i<v;i++)a>S[i]&&(a=S[i],t=i);x[e]=t,C[t]++,F=a,D=0+t*(Q+2*o),y.eq(e).parent().css({top:F,left:D}),S[t]+=y.eq(e).height()+2*o}),(h=[])[0]=1;var E=0,I=[],z=0,T=0;for(k=0;k<v;k++)E+=Q,I[k]=0,y.each(function(e){x[e]==k&&(I[k]+=y.eq(e).height())}),0!=I[k]&&(z+=Q/I[k],T+=Q*C[k]*2*o/I[k]);var O=0;0!=z&&(O=(E+T)/z);for(k=0;k<v;k++)0!=I[k]&&(h[k]=(O-2*C[k]*o)/I[k]);var M,D=[];D[0]=0;for(k=1;k<=v;k++)D[k]=D[k-1]+Q*h[k-1]+2*o;var F=[];for(k=0;k<v;k++)F[k]=0;(M=[])[0]=0,y.each(function(e){var t=y.eq(e).width(),a=y.eq(e).height();y.eq(e).width(t*h[x[e]]),y.eq(e).height(a*h[x[e]]),y.eq(e).parent().css({top:F[x[e]],left:D[x[e]]}),F[x[e]]+=a*h[x[e]]+2*o,M[x[e]]=e}),jQuery("#"+a).width(D[v]).height(F[0])}jQuery(".bwg_mosaic_thumbnails_"+r).css({visibility:"visible"}),jQuery(".tablenav-pages_"+r).css({visibility:"visible"}),bwg_container_loaded(r),jQuery(".bwg_mosaic_thumb_"+r).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+r).removeClass("bwg-hidden"),"hover"==t.attr("data-image-title")&&bwg_mosaic_title_on_hover(r,t,o),"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+r).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+r).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+r).height();jQuery(this).children(".bwg_ecommerce_spun1_"+r).width(e);var a=jQuery(this).children(".bwg_ecommerce_spun1_"+r).width(),i=jQuery(this).children(".bwg_ecommerce_spun1_"+r).height();jQuery(this).children(".bwg_ecommerce_spun1_"+r).css({top:o+.5*t-.5*i,left:o+.5*e-.5*a,opacity:1,filter:"Alpha(opacity=100)"})}),jQuery(".bwg_mosaic_thumb_spun_"+r).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+r).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:t.attr("data-title-margin")})}))}function bwg_mosaic_title_on_hover(r,e,o){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+r).width(),t=jQuery(this).children(".bwg_mosaic_thumb_"+r).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+r).width(e);var a=jQuery(this).find(".bwg_mosaic_title_spun1_"+r).width(),i=jQuery(this).find(".bwg_mosaic_title_spun1_"+r).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+r).css({top:o+.5*t-.5*i<0?o:o+.5*t-.5*i,left:o+.5*e-.5*a,opacity:1,filter:"Alpha(opacity=100)","max-height":"calc(100% - "+2*o+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+r).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*o+"px)",overflow:"hidden"})})}function bwg_mosaic_ajax(e,t){var a=0;jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("load",function(){++a>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))}),jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100),++a>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))})}function bwg_add_album(){var t=!1;jQuery(".bwg-album").off("click").on("click",function(){if(!t){var e=jQuery(this).attr("data-bwg");return t=!0,setTimeout(function(){t=!1},100),bwg_ajax("gal_front_form_"+e,e,jQuery(this).attr("data-container_id"),jQuery(this).attr("data-alb_gal_id"),jQuery(this).attr("data-album_gallery_id"),jQuery(this).attr("data-def_type"),"",jQuery(this).attr("data-title")),!1}}),jQuery(".bwg_description_more").on("click",function(){jQuery(this).hasClass("bwg_more")?(jQuery(this).parent().find(".bwg_description_full").show(),jQuery(this).addClass("bwg_hide").removeClass("bwg_more"),jQuery(this).html(jQuery(this).data("hide-msg"))):(jQuery(this).parent().find(".bwg_description_full").hide(),jQuery(this).addClass("bwg_more").removeClass("bwg_hide"),jQuery(this).html(jQuery(this).data("more-msg")))})}function bwg_add_lightbox(){var a=!1;jQuery(".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image").on("click",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).parent();if(!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(jQuery(t).attr("data-image-id"),jQuery(t).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!a)return a=!0,setTimeout(function(){a=!1},100),bwg_gallery_box(jQuery(this).closest(".bwg_lightbox").attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1})}function bwg_filter_by_tag(e){var t="",a=jQuery(e).parent().parent(),i=a.find(".current_view").val(),r=a.find(".form_id").val(),o=a.find(".cur_gal_id").val(),_=a.find(".album_gallery_id").val(),s=a.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){t=t+jQuery(e).text()+","}),""==(t=t.slice(0,-1))&&(t=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",t),jQuery(e).parent().find(".CaptionCont .placeholder").html(t),jQuery("#bwg_tag_id_"+i).val(jQuery("#bwg_tag_id_"+o).val()),bwg_select_tag(i,r,o,_,s,!1)}function bwg_document_ready(){bwg_add_lightbox(),jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this);e.data("right-click-protection")&&bwg_disable_right_click(e),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed");var t=e.find(".search_tags");t.length&&(t.SumoSelect({triggerChangeCombined:!0,placeholder:bwg_objectsL10n.bwg_select_tag,search:!0,searchText:bwg_objectsL10n.bwg_search,forceCustomRendering:!0,noMatch:bwg_objectsL10n.bwg_tag_no_match,captionFormatAllSelected:bwg_objectsL10n.bwg_all_tags_selected,captionFormat:"{0} "+bwg_objectsL10n.bwg_tags_selected,okCancelInMulti:!0,locale:[bwg_objectsL10n.ok,bwg_objectsL10n.cancel,bwg_objectsL10n.select_all]}),t.off("change").on("change",function(){bwg_filter_by_tag(this)}));var a=e.find(".bwg_order");a.length&&a.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),""==jQuery(this).find(".bwg_search_input").val()?jQuery(this).find("search_placeholder_title").show():jQuery(this).find("search_placeholder_title").hide(),jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function(e){""==jQuery(this).find(".bwg_search_input").val()&&(jQuery(this).find(".search_placeholder_title").show(),jQuery(this).find(".bwg_search_loupe_container1").addClass("hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("hidden"))})}),jQuery(".search_tags").on("sumo:opened",function(){0==jQuery(this).parent().find("ul li").length&&(jQuery(".no-match").html(bwg_objectsL10n.bwg_tag_no_match),jQuery(".no-match").show())}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:closed",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-up opened"),jQuery(this).find("label i").addClass("bwg-icon-angle-down closed")}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:opened",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-down closed"),jQuery(this).find("label i").addClass("bwg-icon-angle-up opened")}),bwg_add_album();var e=window.location.hash.substring(1);if(e&&"-1"!=e.indexOf("bwg")){bwg_hash_array=e.replace("bwg","").split("/");var t=jQuery(".bwg_container");t&&bwg_gallery_box(bwg_hash_array[1],t,!1,bwg_hash_array[0])}bwg_blog_style_ready(),bwg_image_browser_ready(),bwg_resize_search_line()}function bwg_clear_search_input(e){jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("hidden")}function bwg_check_search_input_enter(e,t){return 13!=(t.which||t.keyCode)||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,a,i,e,r,o,_,s,n,l,g){jQuery("#ajax_loading_"+a).removeClass("bwg-hidden"),"function"==typeof bwg_scroll_load_action&&jQuery(window).off("scroll",bwg_scroll_load_action),jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");var u=jQuery("#"+t).data("ajax-url"),c=0;if(void 0===l)l=!1;var d=jQuery("#page_number_"+a).val(),h={},b=jQuery("#bwg_album_breadcrumb_"+a).val();if(b&&!0!==l){var p=JSON.parse(b);if("back"==e){p.splice(-1,1);var m=p.slice(-1)[0];e=m.id,d=m.page,h["action_"+a]="back"}else"numeric"===l||_?(p.splice(-1,1),p.push({id:e,page:d})):(p.push({id:e,page:1}),d=1);h["bwg_album_breadcrumb_"+a]=JSON.stringify(p)}if(h.gallery_type=jQuery("#"+t).data("gallery-type"),h.gallery_id=jQuery("#"+t).data("gallery-id"),h.tag=jQuery("#"+t).data("tag"),h.album_id=jQuery("#"+t).data("album-id"),h.theme_id=jQuery("#"+t).data("theme-id"),h.shortcode_id=jQuery("#"+t).data("shortcode-id"),h.bwg=a,_&&(d=1),void 0===s||""==s)s="";if(void 0===g||""==g)g="";if(void 0===n||""==n)n=jQuery(".bwg_order_"+a).val();return h["page_number_"+a]=d,h["bwg_load_more_"+a]=jQuery("#bwg_load_more_"+a).val(),h["album_gallery_id_"+a]=e,h["type_"+a]=o,h["title_"+a]=s,h["description_"+a]=g,h["sortImagesByValue_"+a]=n,0<jQuery("#bwg_search_input_"+a).length&&(h["bwg_search_"+a]=jQuery("#bwg_search_input_"+a).val()),h["bwg_tag_id_"+i]=jQuery("#bwg_tag_id_"+i).val(),jQuery("#gal_front_form_"+a).addClass("bwg-hidden"),jQuery("#ajax_loading_"+a).removeClass("bwg-hidden"),jQuery.ajax({type:"POST",url:u,data:h,success:function(e){jQuery(e).find(".bwg_masonry_thumb_spun_"+a+" img").length,c=jQuery(e).find(".bwg_mosaic_thumb_spun_"+a+" img").length,!0===l?(i=="bwg_thumbnails_mosaic_"+a?jQuery("#"+i).append(jQuery(e).closest(".bwg-container-"+a).find("#"+i).html()):i=="bwg_album_compact_"+a?jQuery("#"+i).append(jQuery(e).closest(".bwg-album-thumbnails").html()):jQuery("#"+i).append(jQuery(e).closest(".bwg-container-"+a).html()),jQuery(".bwg_nav_cont_"+a).html(jQuery(e).closest(".bwg_nav_cont_"+a).html())):jQuery("#bwg_container3_"+a).html(e)},complete:function(){jQuery("div[id^='bwg_container1_'] img").each(function(){null!=jQuery(this).attr("data-lazy-src")&&""!=jQuery(this).attr("data-lazy-src")?jQuery(this).attr("src",jQuery(this).attr("data-lazy-src")):null!=jQuery(this).attr("data-src")&&""!=jQuery(this).attr("data-src")&&jQuery(this).attr("src",jQuery(this).attr("data-src"))}),jQuery(".blog_style_image_buttons_conteiner_"+a).find(jQuery(".bwg_blog_style_img_"+a)).on("load",function(){jQuery(".bwg_blog_style_img_"+a).closest(jQuery(".blog_style_image_buttons_conteiner_"+a)).show()}),jQuery("#bwg_tags_id_"+i).val(jQuery("#bwg_tag_id_"+i).val()),jQuery(".pagination-links_"+a).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(),bwg_mosaic_ajax(a,c),bwg_all_thumnails_loaded(".bwg-container-"+a)&&bwg_container_loaded(a),jQuery(".blog_style_images_conteiner_"+a+" .bwg_embed_frame_16x9_"+a).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".blog_style_images_conteiner_"+a+" .bwg_embed_frame_instapost_"+a).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),jQuery("#bwg_embed_frame_16x9_"+a).width(jQuery("#bwg_embed_frame_16x9_"+a).parent().width()),jQuery("#bwg_embed_frame_16x9_"+a).height(.5625*jQuery("#bwg_embed_frame_16x9_"+a).width()),jQuery("#bwg_embed_frame_instapost_"+a).width(jQuery("#bwg_embed_frame_16x9_"+a).parent().width()),jQuery(".bwg_embed_frame_instapost_"+a).height((jQuery(".bwg_embed_frame_instapost_"+a).width()-16)*jQuery(".bwg_embed_frame_instapost_"+a).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+a).attr("data-width")+96),jQuery("#bwg_search_input_"+a).val(h["bwg_search_"+a]),""!=jQuery("#bwg_search_input_"+a).val()?(jQuery("#bwg_search_input_"+a).parent().find(".search_placeholder_title").hide(),jQuery("#bwg_search_input_"+a).parent().parent().find(".bwg_search_reset_container").show(),jQuery("#bwg_search_input_"+a).parent().parent().find(".bwg_search_loupe_container1").show()):jQuery("#bwg_search_input_"+a).parent().find(".search_placeholder_title").show();var e=jQuery("#bwg_container2_"+a+" .cur_gal_id").val();jQuery("#bwg_tag_id_"+a).val(jQuery("#bwg_tag_id_"+e).val())}}),!1}function bwg_select_tag(e,t,a,i,r,o){o&&jQuery("#bwg_tag_id_"+a).val(""),bwg_ajax(t,e,a,i,"",r,1,"")}function bwg_cube(e,t,a,i,r,o,_,s,n,l,g){var u,c=!1,d="";if(void 0!==g&&""!==g){c=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,u=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else u=bwg_transition_duration;if(!bwg_testBrowser_cssTransitions(g))return bwg_fallback(s,n,l,g);if(!bwg_testBrowser_cssTransforms3d(g))return bwg_fallback3d(s,n,l,g);function h(){if(jQuery(s).removeAttr("style"),jQuery(n).removeAttr("style"),jQuery(".bwg_slider"+d).removeAttr("style"),jQuery(s).css({opacity:0,filter:"Alpha(opacity=0)","z-index":1}),jQuery(n).css({opacity:1,filter:"Alpha(opacity=100)","z-index":2}),jQuery(".bwg_image_info").show(),jQuery(s).html(""),c){bwg_change_watermark_container(g),bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].data,t=bwg_params[g].event_stack}else{gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}void 0!==t&&0<t.length&&(key=t[0].split("-"),t.shift(),bwg_change_image(key[0],key[1],e,!0,g)),bwg_change_watermark_container()}c?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g),jQuery(".bwg_slide_bg_"+g).css("perspective",1e3)):(gallery_box_data.bwg_trans_in_progress=!0,jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_slide_bg").css("perspective",1e3)),jQuery(s).css({transform:"translateZ("+e+"px)",backfaceVisibility:"hidden"}),jQuery(n).css({opacity:1,filter:"Alpha(opacity=100)",backfaceVisibility:"hidden",transform:"translateY("+a+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+i+"deg)"}),jQuery(".bwg_slider"+d).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+d).css({transition:"all "+u+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+o+"deg) rotateY("+_+"deg)"})},20),jQuery(".bwg_slider"+d).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(h)),0==u&&h()}function bwg_cubeH(e,t,a,i){var r=jQuery(e).width()/2;"right"==a?bwg_cube(r,r,0,0,90,0,-90,e,t,a,i):"left"==a&&bwg_cube(r,-r,0,0,-90,0,90,e,t,a,i)}function bwg_cubeV(e,t,a,i){var r=jQuery(e).height()/2;"right"==a?bwg_cube(r,0,-r,90,0,-90,0,e,t,a,i):"left"==a&&bwg_cube(r,0,r,-90,0,90,0,e,t,a,i)}function bwg_fade(e,t,a,i){var r,o=!1;function _(){jQuery(".bwg_image_info").show(),bwg_change_watermark_container(i),o?bwg_params[i].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1}r=void 0!==i&&""!==i?(o=!0,bwg_params[i].bwg_trans_in_progress=!0,bwg_params[i].bwg_transition_duration):(gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.bwg_transition_duration),o?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+i).removeClass("bwg_slideshow_thumb_active_"+i).addClass("bwg_slideshow_thumb_deactive_"+i),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[i].bwg_current_key+"_"+i).removeClass("bwg_slideshow_thumb_deactive_"+i).addClass("bwg_slideshow_thumb_active_"+i),jQuery(".bwg_slideshow_dots_"+i).removeClass("bwg_slideshow_dots_active_"+i).addClass("bwg_slideshow_dots_deactive_"+i),jQuery("#bwg_dots_"+bwg_params[i].bwg_current_key+"_"+i).removeClass("bwg_slideshow_dots_deactive_"+i).addClass("bwg_slideshow_dots_active_"+i)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active")),bwg_testBrowser_cssTransitions()?(jQuery(t).css("transition","opacity "+r+"ms linear"),jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),jQuery(t).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(_))):(jQuery(e).animate({opacity:0,"z-index":1},r),jQuery(t).animate({opacity:1,"z-index":2},{duration:r,complete:function(){o?bwg_params[i].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),_()}}),jQuery(e).fadeTo(r,0),jQuery(t).fadeTo(r,1)),0==r&&_()}function bwg_grid(e,t,a,i,r,o,_,s,n,l,g){var u,c=!1,d="";if(event_stack=void 0!==g&&""!==g?(c=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,u=bwg_params[g].bwg_transition_duration,data=bwg_params[g].data,bwg_params[g].event_stack):(u=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.event_stack),!bwg_testBrowser_cssTransitions())return bwg_fallback(s,n,l);c?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+d).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+d).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"));var h=u/(e+t);var b=jQuery(s).find("img"),p=(jQuery(s).find("iframe").css("opacity",0),jQuery('<span style="display: block;" />').addClass("bwg_grid"+d));jQuery(s).prepend(p);var m,w,y,f,j,Q,v,x,C,S,k,E=jQuery(".bwg_slide_bg"+d),I=b.width(),z=b.height(),T=E.width(),O=E.height(),M=Math.floor(T/e),D=Math.floor(O/t),F=T-e*M,A=Math.ceil(F/e),B=O-t*D,H=Math.ceil(B/t),P=0,W=Math.ceil((jQuery(".bwg_slide_bg"+d).width()-b.width())/2),L=void 0===b.attr("src")?"":b.attr("src");i="min-auto"===(i="auto"===i?T:i)?-T:i,r="min-auto"===(r="auto"===r?O:r)?-O:r;for(var N=0;N<e;N++){var R=0,q=Math.floor((jQuery(".bwg_slide_bg"+d).height()-b.height())/2),V=M;if(0<F){var U=A<=F?A:F;V+=U,F-=U}for(var Y=0;Y<t;Y++){var X=D,J=B;0<J&&(X+=U=H<=J?H:B,J-=U),p.append((m=V,w=X,y=R,f=q,j=P,Q=W,v=L,x=I,C=z,S=g,void 0,k=(N+Y)*h,jQuery('<span class="bwg_gridlet'+d+'" />').css({display:"block",width:m,height:w,top:y,left:j,backgroundImage:'url("'+v+'")',backgroundColor:c?jQuery(".bwg_slideshow_image_wrap_"+S).css("background-color"):jQuery(".spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:Q+"px "+f+"px",backgroundSize:x+"px "+C+"px",transition:"all "+u+"ms ease-in-out "+k+"ms",transform:"none"}))),R+=X,q-=X}W-=V,P+=V}var G=p.children().last();function K(){if(jQuery(s).css({opacity:0,"z-index":1}),jQuery(n).css({opacity:1,"z-index":2}),b.css("opacity",1),p.remove(),c){bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].event_stack}else{gallery_box_data.bwg_trans_in_progress=!1;e=gallery_box_data.event_stack}jQuery(".bwg_image_info").show(),jQuery(s).html(""),void 0!==e&&0<e.length&&(key=e[0].split("-"),e.shift(),bwg_change_image(key[0],key[1],data,!0,g)),c?bwg_change_watermark_container(g):bwg_change_watermark_container()}p.show(),b.css("opacity",0),p.children().first().addClass("rs-top-left"),p.children().last().addClass("rs-bottom-right"),p.children().eq(t-1).addClass("rs-bottom-left"),p.children().eq(-t).addClass("rs-top-right"),setTimeout(function(){p.children().css({opacity:_,transform:"rotate("+a+"deg) translateX("+i+"px) translateY("+r+"px) scale("+o+")"})},1),jQuery(n).css("opacity",1),jQuery(G).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(K)),0==u&&K()}function bwg_sliceH(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(1,8,0,r,0,1,0,e,t,a,i)}function bwg_sliceV(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(10,1,0,0,r,1,0,e,t,a,i)}function bwg_slideV(e,t,a,i){if("right"==a)var r="auto";else if("left"==a)r="min-auto";bwg_grid(1,1,0,0,r,1,1,e,t,a,i)}function bwg_slideH(e,t,a,i){if("right"==a)var r="min-auto";else if("left"==a)r="auto";bwg_grid(1,1,0,r,0,1,1,e,t,a,i)}function bwg_scaleOut(e,t,a,i){bwg_grid(1,1,0,0,0,1.5,0,e,t,a,i)}function bwg_scaleIn(e,t,a,i){bwg_grid(1,1,0,0,0,.5,0,e,t,a,i)}function bwg_blockScale(e,t,a,i){bwg_grid(8,6,0,0,0,.6,0,e,t,a,i)}function bwg_kaleidoscope(e,t,a,i){bwg_grid(10,8,0,0,0,1,0,e,t,a,i)}function bwg_fan(e,t,a,i){if("right"==a)var r=45,o=100;else if("left"==a)r=-45,o=-100;bwg_grid(1,10,r,o,0,1,0,e,t,a,i)}function bwg_blindV(e,t,a,i){bwg_grid(1,8,0,0,0,.7,0,e,t,"",i)}function bwg_blindH(e,t,a,i){bwg_grid(10,1,0,0,0,.7,0,e,t,"",i)}function bwg_random(e,t,a,i){var r=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["bwg_"+r[Math.floor(Math.random()*r.length)]](e,t,a,i)}function bwg_change_watermark_container(t){jQuery(".bwg_slider"+(void 0!==t&&""!==t?"_"+t:"")).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");if(e.length)if(e.prop("complete"))bwg_change_each_watermark_container(e.width(),e.height(),t);else e.on("load",function(){bwg_change_each_watermark_container(e.width(),e.height(),t)});else(e=jQuery(this).find("iframe")).length||(e=jQuery(this).find("video")),bwg_change_each_watermark_container(e.width(),e.height(),t)}})}function bwg_change_each_watermark_container(e,t,a){var i=void 0!==a&&""!==a?"_"+a:"",r=void 0!==a&&""!==a?"_slideshow":"";if(jQuery(".bwg"+r+"_watermark_spun"+i).width(e),jQuery(".bwg"+r+"_watermark_spun"+i).height(t),jQuery(".bwg"+r+"_watermark"+i).css({display:""}),void 0===a||""===a){var o=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(o=gallery_box_data.lightbox_comment_width),e<=jQuery(window).width()-o&&(jQuery(".bwg_watermark_image").css({width:(jQuery(".spider_popup_wrap").width()-o)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}),jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({fontSize:(jQuery(".spider_popup_wrap").width()-o)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}))}else jQuery(".bwg"+r+"_title_spun"+i).width(e),jQuery(".bwg"+r+"_title_spun"+i).height(t),jQuery(".bwg"+r+"_description_spun"+i).width(e),jQuery(".bwg"+r+"_description_spun"+i).height(t);jQuery.trim(jQuery(".bwg"+r+"_title_text"+i).text())&&jQuery(".bwg_slideshow_title_text"+i).css({display:""}),jQuery.trim(jQuery(".bwg"+r+"_description_text"+i).text())&&jQuery(".bwg"+r+"_description_text"+i).css({display:""})}function bwg_set_filmstrip_pos(e,t,a){var i,r=void 0!==t&&""!==t?"_"+t:"",o=void 0!==t&&""!==t?"_slideshow":"";i=void 0!==t&&""!==t?bwg_params[t].left_or_top:gallery_box_data.left_or_top;var _=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-top-bottom-space")),s=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-right-left-space"));if(void 0===t||""===t){if("outerWidth"==gallery_box_data.outerWidth_or_outerHeight)var n=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerWidth(!0)/2;else if("outerHeight"==gallery_box_data.outerWidth_or_outerHeight)n=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerHeight(!0)/2;if("width"==gallery_box_data.width_or_height)var l=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").width(),n+e/2));else if("height"==gallery_box_data.width_or_height)l=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").height(),n+e/2))}else if("width"==bwg_params[t].width_or_height)n=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).width()+bwg_params[t].filmstrip_thumb_margin_hor)/2,l=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).width(),n+e/2));else n=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).height()+bwg_params[t].filmstrip_thumb_margin_hor)/2,l=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).height(),n+e/2));0<l+s&&(s=0),0<l+_&&(_=0),"left"==i?jQuery(".bwg"+o+"_filmstrip_thumbnails"+r).animate({left:l+s},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}}):jQuery(".bwg"+o+"_filmstrip_thumbnails"+r).animate({top:l+_},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}})}function bwg_filmstrip_arrows(e){var t=void 0!==e&&""!==e?"_"+e:"",a=void 0!==e&&""!==e?"_slideshow":"";if("width"==(void 0!==e&&""!==e?bwg_params[e].width_or_heigh:gallery_box_data.width_or_height))var i=jQuery(".bwg"+a+"_filmstrip_thumbnails"+t).width(),r=jQuery(".bwg"+a+"_filmstrip"+t).width();else i=jQuery(".bwg"+a+"_filmstrip_thumbnails"+t).height(),r=jQuery(".bwg"+a+"_filmstrip"+t).height();i<r?(jQuery(".bwg"+a+"_filmstrip_left"+t).hide(),jQuery(".bwg"+a+"_filmstrip_right"+t).hide()):(jQuery(".bwg"+a+"_filmstrip_left"+t).show(),jQuery(".bwg"+a+"_filmstrip_right"+t).show())}function bwg_move_filmstrip(e){var t,a,i,r,o,_,s=void 0!==e&&""!==e?"_"+e:"",n=void 0!==e&&""!==e?"_slideshow":"",l=void 0!==e&&""!==e?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e?bwg_params[e].left_or_top:gallery_box_data.left_or_top;a="outerWidth"==l?(t=jQuery(".bwg"+n+"_filmstrip"+s).outerWidth(!0),jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).outerWidth(!0)):(t=jQuery(".bwg"+n+"_filmstrip"+s).outerHeight(!0),jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).outerHeight(!0)),_="left"==g?(i=jQuery(".bwg"+n+"_thumb_active"+s).position().left,r="outerWidth"==l?jQuery(".bwg"+n+"_thumb_active"+s).position().left+jQuery(".bwg"+n+"_thumb_active"+s).outerWidth(!0):jQuery(".bwg"+n+"_thumb_active"+s).position().left+jQuery(".bwg"+n+"_thumb_active"+s).outerHeight(!0),o=jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).position().left,Math.abs(jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).position().left)+t):(i=jQuery(".bwg"+n+"_thumb_active"+s).position().top,r="outerWidth"==l?jQuery(".bwg"+n+"_thumb_active"+s).position().top+jQuery(".bwg"+n+"_thumb_active"+s).outerWidth(!0):jQuery(".bwg"+n+"_thumb_active"+s).position().top+jQuery(".bwg"+n+"_thumb_active"+s).outerHeight(!0),o=jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).position().top,Math.abs(jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).position().top)+t),a<t||(i<Math.abs(o)?"left"==g?jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).animate({left:-i},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).animate({top:-i},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):_<r&&("left"==g?jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).animate({left:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+n+"_filmstrip_thumbnails"+s).animate({top:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}})))}function bwg_move_dots(e){var t=jQuery(".bwg_slideshow_dots_active_"+e).position().left,a=jQuery(".bwg_slideshow_dots_active_"+e).position().left+jQuery(".bwg_slideshow_dots_active_"+e).outerWidth(!0),i=jQuery(".bwg_slideshow_dots_container_"+e).outerWidth(!0),r=jQuery(".bwg_slideshow_dots_thumbnails_"+e).outerWidth(!1),o=jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left,_=Math.abs(jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left)+i;r<i||(t<Math.abs(o)?jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-t},{duration:500,complete:function(){}}):_<a&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(a-i)},{duration:500,complete:function(){}}))}function bwg_testBrowser_cssTransitions(e){return bwg_testDom("Transition",e)}function bwg_testBrowser_cssTransforms3d(e){return bwg_testDom("Perspective",e)}function bwg_testDom(e,t){for(var a=["","Webkit","Moz","ms","O","Khtml"],i=a.length;i--;)if(void 0!==document.body.style[a[i]+e])return!0;return!1}function bwg_fallback(e,t,a,i){bwg_fade(e,t,a,i)}function bwg_fallback3d(e,t,a,i){bwg_sliceV(e,t,a,i)}function bwg_none(e,t,a,i){var r=void 0!==i&&""!==i?"_"+i:"";if(jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),void 0!==i&&""!==i){var o=bwg_params[i].bwg_current_key;bwg_change_watermark_container(i),jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).removeClass("bwg_slideshow_thumb_active"+r).addClass("bwg_slideshow_thumb_deactive"+r),jQuery("#bwg_filmstrip_thumbnail_"+o+r).removeClass("bwg_slideshow_thumb_deactive"+r).addClass("bwg_slideshow_thumb_active"+r),jQuery(".bwg_slideshow_dots"+r).removeClass("bwg_slideshow_dots_active"+r).addClass("bwg_slideshow_dots_deactive"+r),jQuery("#bwg_dots_"+o+r).removeClass("bwg_slideshow_dots_deactive"+r).addClass("bwg_slideshow_dots_active"+r)}else jQuery(".bwg_image_info").show(),gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),bwg_change_watermark_container()}function bwg_iterator(e){var t=1;return void 0!==e&&""!==e&&void 0!==bwg_params[e]&&1==bwg_params[e].enable_slideshow_shuffle&&(t=Math.floor((bwg_params[e].data.length-1)*Math.random()+1)),t}function bwg_change_image_slideshow(e,t,a,i,r){a=bwg_params[r].data;if(jQuery("#bwg_slideshow_image_container_"+r).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#image_id_"+r+"_"+a[e].id).find(".bwg_fb_video").each(function(){jQuery(this).attr("src",jQuery(this).attr("src"))}),a[t]){if(jQuery(".bwg_ctrl_btn_"+r).hasClass("bwg-icon-pause")&&bwg_play(bwg_params[r].data,r),i||(jQuery("#bwg_current_image_key_"+r).val(t),"-1"==e?e=jQuery(".bwg_slideshow_thumb_active_"+r).children("img").attr("image_key"):"-2"==e&&(e=jQuery(".bwg_slideshow_dots_active_"+r).attr("image_key"))),bwg_params[r].bwg_trans_in_progress)return void bwg_params[r].event_stack.push(e+"-"+t);var o="right";if(t<e)o="left";else if(e==t)return;jQuery(".bwg_slideshow_watermark_"+r).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+r).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+r).css({display:"none"}),"width"==bwg_params[r].width_or_height?bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).width()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width):bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).height()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width),e=t,bwg_params[r].bwg_current_key=e,jQuery("#bwg_slideshow_image_"+r).attr("image_id",a[t].id),jQuery(".bwg_slideshow_title_text_"+r).html(jQuery('<span style="display: block;" />').html(a[t].alt).text()),jQuery(".bwg_slideshow_description_text_"+r).html(jQuery('<span style="display: block;" />').html(a[t].description).text());var _=2==jQuery(".bwg_slideshow_image_spun_"+r).css("zIndex")?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,s=_==".bwg_slideshow_image_second_spun_"+r?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,n=-1<a[t].filetype.indexOf("EMBED_"),l=-1<a[t].filetype.indexOf("INSTAGRAM_POST"),g=-1<a[t].filetype.indexOf("INSTAGRAM_VIDEO"),u=jQuery(_).height(),c=jQuery(_).width(),d='<span class="bwg_slideshow_image_spun1_'+r+'" style="display: '+(n?"block":"table")+' ;width: inherit; height: inherit;"><span class="bwg_slideshow_image_spun2_'+r+'" style="display: '+(n?"block":"table-cell")+'; vertical-align: middle; text-align: center; ">';if(n){if(d+='<span style="height: '+u+"px; width: "+c+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(d+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),l){var h=0,b=0;u<c+88?h=(b=u)-88:b=(h=c)+88,d+=spider_display_embed(a[t].filetype,a[t].image_url,a[t].filename,{class:"bwg_embed_frame","data-width":a[t].image_width,"data-height":a[t].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+h+"px; height:"+b+"px; vertical-align:middle; display:inline-block; position:relative;"})}else d+=spider_display_embed(a[t].filetype,a[t].image_url,a[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});d+="</span>"}else{if("do_nothing"!=bwg_params[r].thumb_click_action){var p="";"open_lightbox"==bwg_params[r].thumb_click_action?p+=' class="bwg_lightbox" data-image-id="'+a[t].id+'"':"redirect_to_url"==bwg_params[r].thumb_click_action&&a[t].redirect_url&&(p+='href="'+a[t].redirect_url+'"'+(bwg_params[r].thumb_link_target&&1==bwg_params[r].thumb_link_target?' target="_blank"':"")),d+="<a "+p+">"}d+='<img style="max-height: '+u+"px !important; max-width: "+c+'px !important; display:inline-block;" ',d+=' class="bwg_slide bwg_slideshow_image_'+r+'" ',d+=' id="bwg_slideshow_image_'+r+'" ',d+=' src="'+bwg_params[r].upload_url+jQuery("<span style='display: block;' />").html(a[t].image_url).text()+'" alt="'+a[t].alt+'" image_id="'+a[t].id+'" /></a>'}d+="</span></span>",jQuery(s).html(d),bwg_params[r].preload_images&&bwg_preload_images(t,r),window["bwg_"+bwg_params[r].slideshow_effect](_,s,o,r),0<bwg_params[r].enable_slideshow_filmstrip?bwg_move_filmstrip(r):bwg_move_dots(r),a[t].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+r).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+r).css({display:""})}bwg_add_lightbox()}function bwg_preload_images_slideshow(e,t){var a=bwg_params[t].data;count=bwg_params[t].preload_images_count/2;var i=a.length;if(i<bwg_params[t].preload_images_count&&(count=0),0!=count)for(var r=e-count;r<e+count;r++){var o=parseInt((r+i)%i),_=-1<a[o].filetype.indexOf("EMBED_");void 0!==a[o]&&(_||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(a[o].image_url).text()))}else for(r=0;r<a.length;r++){_=-1<a[r].filetype.indexOf("EMBED_");void 0!==a[r]&&(_||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(a[r].image_url).text()))}}function bwg_preload_images(e,t){void 0!==t&&""!==t?bwg_preload_images_slideshow(e,t):bwg_preload_images_lightbox(e)}function bwg_popup_resize_slidshow(e){var t=jQuery(".bwg_slideshow_image_wrap_"+e).parent().width(),a=bwg_params[e].data;if(t>=bwg_params[e].image_width){jQuery(".bwg_slideshow_image_wrap_"+e).css({width:bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_container_"+e).css({width:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_width:bwg_params[e].image_width-bwg_params[e].slideshow_filmstrip_width}),jQuery(".bwg_slideshow_image_container_"+e).css({height:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_height-bwg_params[e].slideshow_filmstrip_height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e);var i="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,r="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:i}),jQuery(".bwg_slideshow_filmstrip_"+e).css({cssText:r}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:bwg_params[e].image_width}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:bwg_params[e].slideshow_play_pause_btn_size}),"image"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:bwg_params[e].watermark_width,maxHeight:bwg_params[e].watermark_height}),"text"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+" : hover").css({fontSize:bwg_params[e].watermark_font_size}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*bwg_params[e].slideshow_title_font_size}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*bwg_params[e].slideshow_description_font_size})}else jQuery(".bwg_slideshow_image_wrap_"+e).css({width:t}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_container_"+e).css({width:t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width)}),jQuery(".bwg_slideshow_image_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)}),jQuery(".bwg_slideshow_image_"+e).css({cssText:"max-width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; max-height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:"width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e),"horizontal"==bwg_params[e].filmstrip_direction?(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({width:t}),jQuery(".bwg_slideshow_filmstrip_"+e).css({width:t-40})):(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_filmstrip_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-40})),jQuery(".bwg_slideshow_dots_container_"+e).css({width:t}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:t*bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:t*bwg_params[e].watermark_width/bwg_params[e].image_width,maxHeight:t*bwg_params[e].watermark_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:t*bwg_params[e].watermark_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_"+e).css({display:"inline-block"});a[parseInt(jQuery("#bwg_current_image_key_"+e).val())].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+e).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+e).css({display:""})}function bwg_popup_resize(e){void 0!==e&&""!==e?bwg_popup_resize_slidshow(e):bwg_popup_resize_lightbox()}function bwg_change_image(e,t,a,i,r){void 0!==r&&""!==r?bwg_change_image_slideshow(e,t,a,i,r):bwg_change_image_lightbox(e,t,a,i)}function bwg_resize_instagram_post(e){if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){var t=jQuery(".bwg_slideshow_embed_"+e).width(),a=jQuery(".bwg_slideshow_embed_").height();jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).each(function(){var e=jQuery(this).parent();a/(parseInt(e.attr("data-height"))+96)<t/parseInt(e.attr("data-width"))?(e.height(a),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=jQuery(".bwg_image_container").width(),a=jQuery(".bwg_image_container").height();jQuery(".inner_instagram_iframe_bwg_embed_frame").each(function(){var e=jQuery(this).parent();a/(parseInt(e.attr("data-height"))+176)<t/parseInt(e.attr("data-width"))?(e.height(a),e.width((e.height()-176)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96)),e.css({top:.5*(a-e.height())})}),bwg_change_watermark_container()}}function bwg_play(t,a){if(void 0!==a&&""!==a)t=bwg_params[a].data;void 0!==a&&""!==a?(window.clearInterval(window["bwg_playInterval"+a]),window["bwg_playInterval"+a]=setInterval(function(){var e=1;1==bwg_params[a].enable_slideshow_shuffle&&(e=Math.floor((t.length-1)*Math.random()+1)),bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+a).val()),(parseInt(jQuery("#bwg_current_image_key_"+a).val())+e)%t.length,t,"",a)},1e3*bwg_params[a].slideshow_interval)):(window.clearInterval(gallery_box_data.bwg_playInterval),gallery_box_data.bwg_playInterval=setInterval(function(){jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")||(void 0===t||void 0!==t[parseInt(jQuery("#bwg_current_image_key").val())+1]?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1,t):1==gallery_box_data.enable_loop&&bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0,t))},1e3*gallery_box_data.slideshow_interval))}function bwg_image_browser(e){if(jQuery("#bwg_embed_frame_16x9_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery("#bwg_embed_frame_16x9_"+e).height(.5625*jQuery("#bwg_embed_frame_16x9_"+e).width()),jQuery("#bwg_embed_frame_instapost_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").length){var t=jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").contents();jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").replaceWith(t)}jQuery(".bwg_embed_frame_instapost_"+e).height((jQuery(".bwg_embed_frame_instapost_"+e).width()-16)*jQuery(".bwg_embed_frame_instapost_"+e).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+e).attr("data-width")+96);var a=jQuery(".image_browser_images_"+e).width();a<=108?jQuery(".paging-input_"+e).css("display","none"):(a<=200?(jQuery(".paging-input_"+e).css("margin","0% 0% 0% 0%"),jQuery(".paging-input_"+e).css("display","inline")):a<=580?(jQuery(".paging-input_"+e).css("display","inline"),jQuery(".tablenav-pages_"+e+" a").css("font-size","13px"),jQuery(".paging-input_"+e).css("margin","0% 7% 0% 7%")):(jQuery(".tablenav-pages_"+e+" a").css("font-size","15px"),jQuery(".paging-input_"+e).css("margin","0% 14% 0% 14%"),jQuery(".paging-input_"+e).css("display","inline")),jQuery(".tablenav-pages_"+e+" .next-page").css("margin","0% 0% 0% 0%"),jQuery(".tablenav-pages_"+e+" .prev-page").css("margin","0% 0% 0% 0%"))}function bwg_disable_right_click(e){e.bind("contextmenu",function(){return!1}),e.css("webkitTouchCallout","none")}jQuery.fn.extend({hideShow:function(e){return this.checkForVisiblilityChange(e),this},checkForVisiblilityChange:function(e){if(this.length>>>0){for(var t,a,i,r=0;t=this[r++];){var o=jQuery(t).is(":visible");void 0===t.lastVisibility&&(t.lastVisibility=o),o!==t.lastVisibility&&(t.lastVisibility=o,"function"==typeof e&&e.apply(this,[new jQuery.Event("visibilityChanged"),o?"shown":"hidden"]),function(e,t){setTimeout(function(){jQuery(e).trigger("visibilityChanged",[t?"shown":"hidden"])},10)}(t,o))}a=this,i=arguments,setTimeout(function(){a.checkForVisiblilityChange.apply(a,i)},10)}}}),jQuery(document).ajaxComplete(function(){setTimeout(function(){bwg_main_ready()})}),jQuery(document).ready(function(){document.addEventListener("visibilitychange",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||("visible"==document.visibilityState&&bwg_slideshow_focus(),"hidden"==document.visibilityState&&bwg_slideshow_blur())}),bwg_main_ready(),jQuery(this).hideShow(function(e,t){"shown"==t&&bwg_main_ready()})}),jQuery(window).on("resize",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),bwg_slideshow_resize(),bwg_image_browser_resize(),bwg_carousel_resize(),bwg_blog_style_resize(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)})),bwg_resize_search_line()}),jQuery(window).on("load",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(bwg_blog_style_onload(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}))}),jQuery(".bwg-masonry-thumb-span img, .bwg-mosaic-thumb-span img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100)});
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(o){o.fn.SumoSelect=function(e){var _=o.extend({placeholder:"Select Here",csvDispCount:3,captionFormat:"{0} Selected",captionFormatAllSelected:"{0} all selected!",floatWidth:400,forceCustomRendering:!1,nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],outputAsCSV:!1,csvSepChar:",",okCancelInMulti:!1,isClickAwayOk:!1,triggerChangeCombined:!0,selectAll:!1,search:!1,searchText:"Search...",noMatch:'No matches for "{0}"',prefix:"",locale:["OK","Cancel","Select All"],up:!1,showTitle:!0},e),t=this.each(function(){var r=this;!this.sumo&&o(this).is("select")&&(this.sumo={E:o(r),is_multi:o(r).attr("multiple"),select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",ul:"",is_floating:!1,is_opened:!1,mob:!1,Pstate:[],createElems:function(){var e=this;e.E.wrap('<div class="SumoSelect" tabindex="0" role="button" aria-expanded="false">'),e.select=e.E.parent(),e.caption=o("<span>"),e.CaptionCont=o('<p class="CaptionCont SelectBox" ><label><i></i></label></p>').attr("style",e.E.attr("style")).prepend(e.caption),e.select.append(e.CaptionCont),e.is_multi||(_.okCancelInMulti=!1),e.E.attr("disabled")&&e.select.addClass("disabled").removeAttr("tabindex"),_.outputAsCSV&&e.is_multi&&e.E.attr("name")&&(e.select.append(o('<input class="HEMANT123" type="hidden" />').attr("name",e.E.attr("name")).val(e.getSelStr())),e.E.removeAttr("name")),!e.isMobile()||_.forceCustomRendering?(e.E.attr("name")&&e.select.addClass("sumo_"+e.E.attr("name").replace(/\[\]/,"")),e.E.addClass("SumoUnder").attr("tabindex","-1"),e.optDiv=o('<div class="optWrapper '+(_.up?"up":"")+'">'),e.floatingList(),e.ul=o('<ul class="options">'),e.optDiv.append(e.ul),_.selectAll&&e.is_multi&&e.SelAll(),_.search&&e.Search(),e.ul.append(e.prepItems(e.E.children())),e.is_multi&&e.multiSelelect(),e.select.append(e.optDiv),e.basicEvents(),e.selAllState()):e.setNativeMobile()},prepItems:function(e,i){var a=[],r=this;return o(e).each(function(e,t){t=o(t),a.push(t.is("optgroup")?o('<li class="group '+(t[0].disabled?"disabled":"")+'"><label>'+t.attr("label")+"</label><ul></ul></li>").find("ul").append(r.prepItems(t.children(),t[0].disabled)).end():r.createLi(t,i))}),a},createLi:function(e,t){e.attr("value")||e.attr("value",e.val());var i=o('<li class="opt"><label>'+e.text()+"</label></li>");return i.data("opt",e),e.data("li",i),this.is_multi&&i.prepend("<span><i></i></span>"),(e[0].disabled||t)&&(i=i.addClass("disabled")),this.onOptClick(i),e[0].selected&&i.addClass("selected"),e.attr("class")&&i.addClass(e.attr("class")),e.attr("title")&&i.attr("title",e.attr("title")),i},getSelStr:function(){return sopt=[],this.E.find("option:selected").each(function(){sopt.push(o(this).val())}),sopt.join(_.csvSepChar)},multiSelelect:function(){var i=this;i.optDiv.addClass("multiple"),i.okbtn=o('<p tabindex="0" class="btnOk">'+_.locale[0]+"</p>").click(function(){i._okbtn(),i.hideOpts()}),i.cancelBtn=o('<p tabindex="0" class="btnCancel">'+_.locale[1]+"</p>").click(function(){i._cnbtn(),i.hideOpts()});var e=i.okbtn.add(i.cancelBtn);i.optDiv.append(o('<div class="MultiControls">').append(e)),e.on("keydown.sumo",function(e){var t=o(this);switch(e.which){case 32:case 13:t.trigger("click");break;case 9:if(t.hasClass("btnOk"))return;case 27:return i._cnbtn(),void i.hideOpts()}e.stopPropagation(),e.preventDefault()})},_okbtn:function(){var i=this,a=0;_.triggerChangeCombined&&(i.E.find("option:selected").length!=i.Pstate.length?a=1:i.E.find("option").each(function(e,t){t.selected&&i.Pstate.indexOf(e)<0&&(a=1)}),a&&(i.callChange(),i.setText()))},_cnbtn:function(){var e=this;e.E.find("option:selected").each(function(){this.selected=!1}),e.optDiv.find("li.selected").removeClass("selected");for(var t=0;t<e.Pstate.length;t++)e.E.find("option")[e.Pstate[t]].selected=!0,e.ul.find("li.opt").eq(e.Pstate[t]).addClass("selected");e.selAllState()},SelAll:function(){var e=this;e.is_multi&&(e.selAll=o('<p class="select-all"><span><i></i></span><label>'+_.locale[2]+"</label></p>"),e.optDiv.addClass("selall"),e.selAll.on("click",function(){e.selAll.toggleClass("selected"),e.toggSelAll(e.selAll.hasClass("selected"),1)}),e.optDiv.prepend(e.selAll))},Search:function(){var a=this,e=a.CaptionCont.addClass("search"),t=o('<p class="no-match">');a.ftxt=o('<input type="text" class="search-txt" value="" placeholder="'+_.searchText+'">').on("click",function(e){e.stopPropagation()}),e.append(a.ftxt),a.optDiv.children("ul").after(t),a.ftxt.on("keyup.sumo",function(){var e=a.optDiv.find("ul.options li.opt").each(function(e,t){var i=(t=o(t)).data("opt")[0];i.hidden=t.text().toLowerCase().indexOf(a.ftxt.val().toLowerCase())<0,t.toggleClass("hidden",i.hidden)}).not(".hidden");t.html(_.noMatch.replace(/\{0\}/g,"<em></em>")).toggle(!e.length),t.find("em").text(a.ftxt.val()),a.selAllState()})},selAllState:function(){var e=this;if(_.selectAll&&e.is_multi){var i=0,a=0;e.optDiv.find("li.opt").not(".hidden").each(function(e,t){o(t).hasClass("selected")&&i++,o(t).hasClass("disabled")||a++}),i==a?e.selAll.removeClass("partial").addClass("selected"):0==i?e.selAll.removeClass("selected partial"):e.selAll.addClass("partial")}},showOpts:function(){var t=this;t.E.attr("disabled")||(t.E.trigger("sumo:opening",t),t.is_opened=!0,t.select.addClass("open").attr("aria-expanded","true"),t.E.trigger("sumo:opened",t),t.ftxt?t.ftxt.focus():t.select.focus(),o(document).on("click.sumo",function(e){if(!t.select.is(e.target)&&0===t.select.has(e.target).length){if(!t.is_opened)return;t.hideOpts(),_.okCancelInMulti&&(_.isClickAwayOk?t._okbtn():t._cnbtn())}}),t.is_floating&&(H=t.optDiv.children("ul").outerHeight()+2,t.is_multi&&(H+=parseInt(t.optDiv.css("padding-bottom"))),t.optDiv.css("height",H),o("body").addClass("sumoStopScroll")),t.setPstate())},setPstate:function(){var i=this;i.is_multi&&(i.is_floating||_.okCancelInMulti)&&(i.Pstate=[],i.E.find("option").each(function(e,t){t.selected&&i.Pstate.push(e)}))},callChange:function(){this.E.trigger("change").trigger("click")},hideOpts:function(){var e=this;e.is_opened&&(e.E.trigger("sumo:closing",e),e.is_opened=!1,e.select.removeClass("open").attr("aria-expanded","true").find("ul li.sel").removeClass("sel"),e.E.trigger("sumo:closed",e),o(document).off("click.sumo"),e.select.focus(),o("body").removeClass("sumoStopScroll"),_.search&&(e.ftxt.val(""),e.ftxt.trigger("keyup.sumo")))},setOnOpen:function(){var e=this,t=e.optDiv.find("li.opt:not(.hidden)").eq(_.search?0:e.E[0].selectedIndex);t.hasClass("disabled")&&!(t=t.next(":not(disabled)")).length||(e.optDiv.find("li.sel").removeClass("sel"),t.addClass("sel"),e.showOpts())},nav:function(e){var t,i=this,a=i.ul.find("li.opt:not(.disabled, .hidden)"),r=i.ul.find("li.opt.sel:not(.hidden)"),_=a.index(r);if(i.is_opened&&r.length){if(e&&0<_)t=a.eq(_-1);else{if(!(!e&&_<a.length-1&&-1<_))return;t=a.eq(_+1)}r.removeClass("sel"),r=t.addClass("sel");var o=i.ul,s=o.scrollTop(),l=r.position().top+s;l>=s+o.height()-r.outerHeight()&&o.scrollTop(l-o.height()+r.outerHeight()),l<s&&o.scrollTop(l)}else i.setOnOpen()},basicEvents:function(){var t=this;t.CaptionCont.click(function(e){t.E.trigger("click"),t.is_opened?t.hideOpts():t.showOpts(),e.stopPropagation()}),t.select.on("keydown.sumo",function(e){switch(e.which){case 38:t.nav(!0);break;case 40:t.nav(!1);break;case 65:if(t.is_multi&&e.ctrlKey){t.toggSelAll(!e.shiftKey,1);break}return;case 32:if(_.search&&t.ftxt.is(e.target))return;case 13:t.is_opened?t.optDiv.find("ul li.sel").trigger("click"):t.setOnOpen();break;case 9:return void(_.okCancelInMulti||t.hideOpts());case 27:return _.okCancelInMulti&&t._cnbtn(),void t.hideOpts();default:return}e.preventDefault()}),o(window).on("resize.sumo",function(){t.floatingList()})},onOptClick:function(e){var t=this;e.click(function(){var e=o(this);if(!e.hasClass("disabled")){t.is_multi?(e.toggleClass("selected"),e.data("opt")[0].selected=e.hasClass("selected"),t.selAllState()):(e.parent().find("li.selected").removeClass("selected"),e.toggleClass("selected"),e.data("opt")[0].selected=!0),t.is_multi&&_.triggerChangeCombined&&(t.is_floating||_.okCancelInMulti)||(t.setText(),t.callChange()),t.is_multi||t.hideOpts()}})},setText:function(){var e=this;if(e.placeholder="",e.is_multi){for(sels=e.E.find(":selected").not(":disabled"),i=0;i<sels.length;i++){if(i+1>=_.csvDispCount&&_.csvDispCount){sels.length==e.E.find("option").length&&_.captionFormatAllSelected?e.placeholder=_.captionFormatAllSelected.replace(/\{0\}/g,sels.length)+",":e.placeholder=_.captionFormat.replace(/\{0\}/g,sels.length)+",";break}e.placeholder+=o(sels[i]).text()+", "}e.placeholder=e.placeholder.replace(/,([^,]*)$/,"$1")}else e.placeholder=e.E.find(":selected").not(":disabled").text();var t=!1;e.placeholder||(t=!0,e.placeholder=e.E.attr("placeholder"),e.placeholder||(e.placeholder=e.E.find("option:disabled:selected").text())),e.placeholder=e.placeholder?_.prefix+" "+e.placeholder:_.placeholder,e.caption.html(e.placeholder),_.showTitle&&e.CaptionCont.attr("title",e.placeholder);var a=e.select.find("input.HEMANT123");return a.length&&a.val(e.getSelStr()),t?e.caption.addClass("placeholder"):e.caption.removeClass("placeholder"),e.placeholder},isMobile:function(){for(var e=navigator.userAgent||navigator.vendor||window.opera,t=0;t<_.nativeOnDevice.length;t++)if(0<e.toString().toLowerCase().indexOf(_.nativeOnDevice[t].toLowerCase()))return _.nativeOnDevice[t];return!1},setNativeMobile:function(){var e=this;e.E.addClass("SelectClass"),e.mob=!0,e.E.change(function(){e.setText()})},floatingList:function(){var e=this;e.is_floating=o(window).width()<=_.floatWidth,e.optDiv.toggleClass("isFloating",e.is_floating),e.is_floating||e.optDiv.css("height",""),e.optDiv.toggleClass("okCancelInMulti",_.okCancelInMulti&&!e.is_floating)},vRange:function(e){if(this.E.find("option").length<=e||e<0)throw"index out of bounds";return this},toggSel:function(e,t){var i,a=this;(i="number"==typeof t?(a.vRange(t),a.E.find("option")[t]):a.E.find('option[value="'+t+'"]')[0]||0)&&!i.disabled&&i.selected!=e&&(i.selected=e,a.mob||o(i).data("li").toggleClass("selected",e),a.callChange(),a.setPstate(),a.setText(),a.selAllState())},toggDis:function(e,t){var i=this.vRange(t);(i.E.find("option")[t].disabled=e)&&(i.E.find("option")[t].selected=!1),i.mob||i.optDiv.find("ul.options li").eq(t).toggleClass("disabled",e).removeClass("selected"),i.setText()},toggSumo:function(e){var t=this;return t.enabled=e,t.select.toggleClass("disabled",e),e?(t.E.attr("disabled","disabled"),t.select.removeAttr("tabindex")):(t.E.removeAttr("disabled"),t.select.attr("tabindex","0")),t},toggSelAll:function(a,e){var t=this;t.E.find("option:not(:disabled,:hidden)").each(function(e,t){var i=t.selected;(t=o(t).data("li")).hasClass("hidden")||(a?i||t.trigger("click"):i&&t.trigger("click"))}),e||(!t.mob&&t.selAll&&t.selAll.removeClass("partial").toggleClass("selected",!!a),t.callChange(),t.setText(),t.setPstate())},reload:function(){var e=this.unload();return o(e).SumoSelect(_)},unload:function(){var e=this;return e.select.before(e.E),e.E.show(),_.outputAsCSV&&e.is_multi&&e.select.find("input.HEMANT123").length&&e.E.attr("name",e.select.find("input.HEMANT123").attr("name")),e.select.remove(),delete r.sumo,r},add:function(e,t,i){if(void 0===e)throw"No value to add";var a=this;if(opts=a.E.find("option"),"number"==typeof t&&(i=t,t=e),void 0===t&&(t=e),opt=o("<option></option>").val(e).html(t),opts.length<i)throw"index out of bounds";return void 0===i||opts.length==i?(a.E.append(opt),a.mob||a.ul.append(a.createLi(opt))):(opts.eq(i).before(opt),a.mob||a.ul.find("li.opt").eq(i).before(a.createLi(opt))),r},remove:function(e){var t=this.vRange(e);t.E.find("option").eq(e).remove(),t.mob||t.optDiv.find("ul.options li").eq(e).remove(),t.setText()},selectItem:function(e){this.toggSel(!0,e)},unSelectItem:function(e){this.toggSel(!1,e)},selectAll:function(){this.toggSelAll(!0)},unSelectAll:function(){this.toggSelAll(!1)},disableItem:function(e){this.toggDis(!0,e)},enableItem:function(e){this.toggDis(!1,e)},enabled:!0,enable:function(){return this.toggSumo(!1)},disable:function(){return this.toggSumo(!0)},init:function(){return this.createElems(),this.setText(),this}},r.sumo.init())});return 1==t.length?t[0]:t}}),function(t,i,a){"function"==typeof define&&define.amd?define(["jquery"],function(e){return a(e,t,i),e.mobile}):a(t.jQuery,t,i)}(this,document,function(e,t,r,i){var a,_;(function(d,e,t,c){function h(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function _(e){for(var t,i,a={};e;){for(i in t=d.data(e,j))t[i]&&(a[i]=a.hasVirtualBinding=!0);e=e.parentNode}return a}function r(){M=!0}function o(){M=!1}function s(){l(),k=setTimeout(function(){H=k=0,T.length=0,O=!1,r()},d.vmouse.resetTimerDuration)}function l(){k&&(clearTimeout(k),k=0)}function n(e,t,i){var a;return(i&&i[e]||!i&&function(e,t){for(var i;e;){if((i=d.data(e,j))&&(!t||i[t]))return e;e=e.parentNode}return null}(t.target,e))&&(a=function(e,t){var i,a,r,_,o,s,l,n,g,u=e.type;if((e=d.Event(e)).type=t,i=e.originalEvent,a=d.event.props,-1<u.search(/^(mouse|click)/)&&(a=S),i)for(l=a.length;l;)e[_=a[--l]]=i[_];if(-1<u.search(/mouse(down|up)|click/)&&!e.which&&(e.which=1),-1!==u.search(/^touch/)&&(u=(r=h(i)).touches,o=r.changedTouches,s=u&&u.length?u[0]:o&&o.length?o[0]:c))for(n=0,g=v.length;n<g;n++)e[_=v[n]]=s[_];return e}(t,e),d(t.target).trigger(a)),a}function g(e){var t=d.data(e.target,Q);if(!(O||H&&H===t)){var i=n("v"+e.type,e);i&&(i.isDefaultPrevented()&&e.preventDefault(),i.isPropagationStopped()&&e.stopPropagation(),i.isImmediatePropagationStopped()&&e.stopImmediatePropagation())}}function u(e){var t,i,a=h(e).touches;if(a&&1===a.length&&(i=_(t=e.target)).hasVirtualBinding){H=B++,d.data(t,Q,H),l(),o(),z=!1;var r=h(e).touches[0];E=r.pageX,I=r.pageY,n("vmouseover",e,i),n("vmousedown",e,i)}}function b(e){M||(z||n("vmousecancel",e,_(e.target)),z=!0,s())}function p(e){if(!M){var t=h(e).touches[0],i=z,a=d.vmouse.moveDistanceThreshold,r=_(e.target);(z=z||Math.abs(t.pageX-E)>a||Math.abs(t.pageY-I)>a)&&!i&&n("vmousecancel",e,r),n("vmousemove",e,r),s()}}function m(e){if(!M){r();var t,i=_(e.target);if(n("vmouseup",e,i),!z){var a=n("vclick",e,i);a&&a.isDefaultPrevented()&&(t=h(e).changedTouches[0],T.push({touchID:H,x:t.clientX,y:t.clientY}),O=!0)}n("vmouseout",e,i),z=!1,s()}}function w(e){var t,i=d.data(e,j);if(i)for(t in i)if(i[t])return!0;return!1}function y(){}function i(r){var _=r.substr(1);return{setup:function(e,t){w(this)||d.data(this,j,{}),d.data(this,j)[r]=!0,C[r]=(C[r]||0)+1,1===C[r]&&A.bind(_,g),d(this).bind(_,y),D&&(C.touchstart=(C.touchstart||0)+1,1===C.touchstart&&A.bind("touchstart",u).bind("touchend",m).bind("touchmove",p).bind("scroll",b))},teardown:function(e,t){--C[r],C[r]||A.unbind(_,g),D&&(--C.touchstart,C.touchstart||A.unbind("touchstart",u).unbind("touchmove",p).unbind("touchend",m).unbind("scroll",b));var i=d(this),a=d.data(this,j);a&&(a[r]=!1),i.unbind(_,y),w(this)||i.removeData(j)}}}var f,j="virtualMouseBindings",Q="virtualTouchID",a="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),v="clientX clientY pageX pageY screenX screenY".split(" "),x=d.event.mouseHooks?d.event.mouseHooks.props:[],S=d.event.props.concat(x),C={},k=0,E=0,I=0,z=!1,T=[],O=!1,M=!1,D="addEventListener"in t,A=d(t),B=1,H=0;d.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var P=0;P<a.length;P++)d.event.special[a[P]]=i(a[P]);D&&t.addEventListener("click",function(e){var t,i,a,r,_,o=T.length,s=e.target;if(o)for(t=e.clientX,i=e.clientY,f=d.vmouse.clickDistanceThreshold,a=s;a;){for(r=0;r<o;r++)if(_=T[r],0,a===s&&Math.abs(_.x-t)<f&&Math.abs(_.y-i)<f||d.data(a,Q)===_.touchID)return e.preventDefault(),void e.stopPropagation();a=a.parentNode}},!0)})(e,0,r),e.mobile={},_={touch:"ontouchend"in r},(a=e).mobile.support=a.mobile.support||{},a.extend(a.support,_),a.extend(a.mobile.support,_),function(l,e,t){function n(e,t,i){var a=i.type;i.type=t,l.event.dispatch.call(e,i),i.type=a}var g=l(r);l.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){l.fn[t]=function(e){return e?this.bind(t,e):this.trigger(t)},l.attrFn&&(l.attrFn[t]=!0)});var i=l.mobile.support.touch,a=i?"touchstart":"mousedown",_=i?"touchend":"mouseup",o=i?"touchmove":"mousemove";l.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){n(r,(i=t)?"scrollstart":"scrollstop",e)}var i,a,r=this;l(r).bind("touchmove scroll",function(e){l.event.special.scrollstart.enabled&&(i||t(e,!0),clearTimeout(a),a=setTimeout(function(){t(e,!1)},50))})}},l.event.special.tap={tapholdThreshold:750,setup:function(){var o=this,s=l(o);s.bind("vmousedown",function(e){function t(){clearTimeout(r)}function i(){t(),s.unbind("vclick",a).unbind("vmouseup",t),g.unbind("vmousecancel",i)}function a(e){i(),_===e.target&&n(o,"tap",e)}if(e.which&&1!==e.which)return!1;var r,_=e.target;e.originalEvent;s.bind("vmouseup",t).bind("vclick",a),g.bind("vmousecancel",i),r=setTimeout(function(){n(o,"taphold",l.Event("taphold",{target:_}))},l.event.special.tap.tapholdThreshold)})}},l.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:10,verticalDistanceThreshold:475,start:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY],origin:l(e.target)}},stop:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY]}},handleSwipe:function(e,t){t.time-e.time<l.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-t.coords[0])>l.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-t.coords[1])<l.event.special.swipe.verticalDistanceThreshold&&e.origin.trigger("swipe").trigger(e.coords[0]>t.coords[0]?"swipeleft":"swiperight")},setup:function(){var r=l(this);r.bind(a,function(e){function t(e){a&&(i=l.event.special.swipe.stop(e),Math.abs(a.coords[0]-i.coords[0])>l.event.special.swipe.scrollSupressionThreshold&&e.preventDefault())}var i,a=l.event.special.swipe.start(e);r.bind(o,t).one(_,function(){r.unbind(o,t),a&&i&&l.event.special.swipe.handleSwipe(a,i),a=i=void 0})})}},l.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(e,t){l.event.special[e]={setup:function(){l(this).bind(t,l.noop)}}})}(e)}),function(o){function t(e){var t=e||window.event,i=[].slice.call(arguments,1),a=0,r=0,_=0;return(e=o.event.fix(t)).type="mousewheel",t.wheelDelta&&(a=t.wheelDelta/120),t.detail&&(a=-t.detail/3),_=a,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(_=0,r=-1*a),void 0!==t.wheelDeltaY&&(_=t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(r=-1*t.wheelDeltaX/120),i.unshift(e,a,r,_),(o.event.dispatch||o.event.handle).apply(this,i)}var i=["DOMMouseScroll","mousewheel"];if(o.event.fixHooks)for(var e=i.length;e;)o.event.fixHooks[i[--e]]=o.event.mouseHooks;o.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],t,!1);else this.onmousewheel=null}},o.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),function(x){var t={init:function(c){c=x.extend(!0,{set_width:!1,set_height:!1,horizontalScroll:!1,scrollInertia:950,mouseWheel:!0,mouseWheelPixels:"auto",autoDraggerLength:!0,autoHideScrollbar:!1,snapAmount:null,snapOffset:0,scrollButtons:{enable:!1,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:!0,updateOnContentResize:!1,autoExpandHorizontalScroll:!1,autoScrollOnFocus:!0,normalizeMouseWheelDelta:!1},contentTouchScroll:!0,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},c);return this.each(function(){var i=x(this);if(c.set_width&&i.css("width",c.set_width),c.set_height&&i.css("height",c.set_height),x(document).data("mCustomScrollbar-index")){var e=parseInt(x(document).data("mCustomScrollbar-index"));x(document).data("mCustomScrollbar-index",e+1)}else x(document).data("mCustomScrollbar-index","1");i.wrapInner("<div class='mCustomScrollBox mCS-"+c.theme+"' id='mCSB_"+x(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+x(document).data("mCustomScrollbar-index"));var a=i.children(".mCustomScrollBox");if(c.horizontalScroll){a.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />");var t=a.children(".mCSB_h_wrapper");t.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:t.children().outerWidth(),position:"relative"}).unwrap()}else a.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />");var r=a.children(".mCSB_container");x.support.touch&&r.addClass("mCS_touch"),r.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>");var _=a.children(".mCSB_scrollTools"),o=_.children(".mCSB_draggerContainer").children(".mCSB_dragger");if(c.horizontalScroll?o.data("minDraggerWidth",o.width()):o.data("minDraggerHeight",o.height()),c.scrollButtons.enable&&(c.horizontalScroll?_.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>"):_.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>")),a.bind("scroll",function(){i.is(".mCS_disabled")||a.scrollTop(0).scrollLeft(0)}),i.data({mCS_Init:!0,mCustomScrollbarIndex:x(document).data("mCustomScrollbar-index"),horizontalScroll:c.horizontalScroll,scrollInertia:c.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:c.mouseWheel,mouseWheelPixels:c.mouseWheelPixels,autoDraggerLength:c.autoDraggerLength,autoHideScrollbar:c.autoHideScrollbar,snapAmount:c.snapAmount,snapOffset:c.snapOffset,scrollButtons_enable:c.scrollButtons.enable,scrollButtons_scrollType:c.scrollButtons.scrollType,scrollButtons_scrollSpeed:c.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:c.scrollButtons.scrollAmount,autoExpandHorizontalScroll:c.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:c.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:c.advanced.normalizeMouseWheelDelta,contentTouchScroll:c.contentTouchScroll,onScrollStart_Callback:c.callbacks.onScrollStart,onScroll_Callback:c.callbacks.onScroll,onTotalScroll_Callback:c.callbacks.onTotalScroll,onTotalScrollBack_Callback:c.callbacks.onTotalScrollBack,onTotalScroll_Offset:c.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:c.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:c.callbacks.whileScrolling,bindEvent_scrollbar_drag:!1,bindEvent_content_touch:!1,bindEvent_scrollbar_click:!1,bindEvent_mousewheel:!1,bindEvent_buttonsContinuous_y:!1,bindEvent_buttonsContinuous_x:!1,bindEvent_buttonsPixels_y:!1,bindEvent_buttonsPixels_x:!1,bindEvent_focusin:!1,bindEvent_autoHideScrollbar:!1,mCSB_buttonScrollRight:!1,mCSB_buttonScrollLeft:!1,mCSB_buttonScrollDown:!1,mCSB_buttonScrollUp:!1}),c.horizontalScroll)"none"!==i.css("max-width")&&(c.advanced.updateOnContentResize||(c.advanced.updateOnContentResize=!0));else if("none"!==i.css("max-height")){var s=!1,l=parseInt(i.css("max-height"));0<=i.css("max-height").indexOf("%")&&(s=l,l=i.parent().height()*s/100),i.css("overflow","hidden"),a.css("max-height",l)}if(i.mCustomScrollbar("update"),c.advanced.updateOnBrowserResize){var n,g=x(window).width(),u=x(window).height();x(window).bind("resize."+i.data("mCustomScrollbarIndex"),function(){n&&clearTimeout(n),n=setTimeout(function(){if(!i.is(".mCS_disabled")&&!i.is(".mCS_destroyed")){var e=x(window).width(),t=x(window).height();g===e&&u===t||("none"!==i.css("max-height")&&s&&a.css("max-height",i.parent().height()*s/100),i.mCustomScrollbar("update"),g=e,u=t)}},150)})}if(c.advanced.updateOnContentResize){if(c.horizontalScroll)var d=r.outerWidth();else d=r.outerHeight();setInterval(function(){if(c.horizontalScroll){c.advanced.autoExpandHorizontalScroll&&r.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:r.outerWidth(),position:"relative"}).unwrap();var e=r.outerWidth()}else e=r.outerHeight();e!=d&&(i.mCustomScrollbar("update"),d=e)},300)}})},update:function(){var e=x(this),t=e.children(".mCustomScrollBox"),i=t.children(".mCSB_container");i.removeClass("mCS_no_scrollbar"),e.removeClass("mCS_disabled mCS_destroyed"),t.scrollTop(0).scrollLeft(0);var a=t.children(".mCSB_scrollTools"),r=a.children(".mCSB_draggerContainer"),_=r.children(".mCSB_dragger");if(e.data("horizontalScroll")){var o=a.children(".mCSB_buttonLeft"),s=a.children(".mCSB_buttonRight"),l=t.width();e.data("autoExpandHorizontalScroll")&&i.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:i.outerWidth(),position:"relative"}).unwrap();var n=i.outerWidth()}else var g=a.children(".mCSB_buttonUp"),u=a.children(".mCSB_buttonDown"),d=t.height(),c=i.outerHeight();if(d<c&&!e.data("horizontalScroll")){a.css("display","block");var h=r.height();if(e.data("autoDraggerLength")){var b=Math.round(d/c*h),p=_.data("minDraggerHeight");if(b<=p)_.css({height:p});else if(h-10<=b){var m=h-10;_.css({height:m})}else _.css({height:b});_.children(".mCSB_dragger_bar").css({"line-height":_.height()+"px"})}var w=(c-d)/(h-_.height());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,i,r,_,g,u,o,s);var y=Math.abs(i.position().top);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else if(l<n&&e.data("horizontalScroll")){a.css("display","block");var f=r.width();if(e.data("autoDraggerLength")){var j=Math.round(l/n*f),Q=_.data("minDraggerWidth");if(j<=Q)_.css({width:Q});else if(f-10<=j){var v=f-10;_.css({width:v})}else _.css({width:j})}w=(n-l)/(f-_.width());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,i,r,_,g,u,o,s);y=Math.abs(i.position().left);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else t.unbind("mousewheel focusin"),e.data("horizontalScroll")?_.add(i).css("left",0):_.add(i).css("top",0),a.css("display","none"),i.addClass("mCS_no_scrollbar"),e.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1})},scrolling:function(r,s,l,n,e,t,i,a){var o,g,_,u,d,c,h,b,p,m=x(this);m.data("bindEvent_scrollbar_drag")||(x.support.msPointer?(n.bind("MSPointerDown",function(e){e.preventDefault(),m.data({on_drag:!0}),n.addClass("mCSB_dragger_onDrag");var t=x(this),i=t.offset(),a=e.originalEvent.pageX-i.left,r=e.originalEvent.pageY-i.top;a<t.width()&&0<a&&r<t.height()&&0<r&&(o=r,g=a)}),x(document).bind("MSPointerMove."+m.data("mCustomScrollbarIndex"),function(e){if(e.preventDefault(),m.data("on_drag")){var t=n.offset(),i=e.originalEvent.pageX-t.left,a=e.originalEvent.pageY-t.top;w(o,g,a,i)}}).bind("MSPointerUp."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),n.removeClass("mCSB_dragger_onDrag")})):(n.bind("mousedown touchstart",function(e){e.preventDefault(),e.stopImmediatePropagation();var t,i,a=x(this),r=a.offset();if("touchstart"===e.type){var _=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t=_.pageX-r.left,i=_.pageY-r.top}else m.data({on_drag:!0}),n.addClass("mCSB_dragger_onDrag"),t=e.pageX-r.left,i=e.pageY-r.top;t<a.width()&&0<t&&i<a.height()&&0<i&&(o=i,g=t)}).bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation();var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],i=x(this).offset(),a=t.pageX-i.left,r=t.pageY-i.top;w(o,g,r,a)}),x(document).bind("mousemove."+m.data("mCustomScrollbarIndex"),function(e){if(m.data("on_drag")){var t=n.offset(),i=e.pageX-t.left,a=e.pageY-t.top;w(o,g,a,i)}}).bind("mouseup."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),n.removeClass("mCSB_dragger_onDrag")})),m.data({bindEvent_scrollbar_drag:!0}));function w(e,t,i,a){m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",n.position().left-t+a,{moveDragger:!0,trigger:"internal"}):m.mCustomScrollbar("scrollTo",n.position().top-e+i,{moveDragger:!0,trigger:"internal"})}x.support.touch&&m.data("contentTouchScroll")&&(m.data("bindEvent_content_touch")||(s.bind("touchstart",function(e){e.stopImmediatePropagation(),_=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this),d=u.offset(),h=_.pageX-d.left,c=_.pageY-d.top,b=c,p=h}),s.bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation(),_=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this).parent(),d=u.offset(),h=_.pageX-d.left,c=_.pageY-d.top,m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",p-h,{trigger:"internal"}):m.mCustomScrollbar("scrollTo",b-c,{trigger:"internal"})})));if(m.data("bindEvent_scrollbar_click")||(l.bind("click",function(e){var t=(e.pageY-l.offset().top)*m.data("scrollAmount"),i=x(e.target);m.data("horizontalScroll")&&(t=(e.pageX-l.offset().left)*m.data("scrollAmount")),(i.hasClass("mCSB_draggerContainer")||i.hasClass("mCSB_draggerRail"))&&m.mCustomScrollbar("scrollTo",t,{trigger:"internal",scrollEasing:"draggerRailEase"})}),m.data({bindEvent_scrollbar_click:!0})),m.data("mouseWheel")&&(m.data("bindEvent_mousewheel")||(r.bind("mousewheel",function(e,t){var i,a=m.data("mouseWheelPixels"),r=Math.abs(s.position().top),_=n.position().top,o=l.height()-n.height();m.data("normalizeMouseWheelDelta")&&(t=t<0?-1:1),"auto"===a&&(a=100+Math.round(m.data("scrollAmount")/2)),m.data("horizontalScroll")&&(_=n.position().left,o=l.width()-n.width(),r=Math.abs(s.position().left)),(0<t&&0!==_||t<0&&_!==o)&&(e.preventDefault(),e.stopImmediatePropagation()),i=r-t*a,m.mCustomScrollbar("scrollTo",i,{trigger:"internal"})}),m.data({bindEvent_mousewheel:!0}))),m.data("scrollButtons_enable"))if("pixels"===m.data("scrollButtons_scrollType")){function y(e){n.data("preventAction")||(n.data("preventAction",!0),m.mCustomScrollbar("scrollTo",e,{trigger:"internal"}))}m.data("horizontalScroll")?(a.add(i).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_x:!1}),m.data("bindEvent_buttonsPixels_x")||(a.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)+m.data("scrollButtons_scrollAmount"))}),i.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_x:!0}))):(t.add(e).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_y:!1}),m.data("bindEvent_buttonsPixels_y")||(t.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)+m.data("scrollButtons_scrollAmount"))}),e.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_y:!0})))}else{if(m.data("horizontalScroll")){if(a.add(i).unbind("click"),m.data({bindEvent_buttonsPixels_x:!1}),!m.data("bindEvent_buttonsContinuous_x")){a.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollRight:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollRight"))};a.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",f),i.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollLeft:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var j=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollLeft"))};i.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",j),m.data({bindEvent_buttonsContinuous_x:!0})}}else if(t.add(e).unbind("click"),m.data({bindEvent_buttonsPixels_y:!1}),!m.data("bindEvent_buttonsContinuous_y")){t.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollDown:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});t.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollDown"))}),e.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollUp:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});e.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollUp"))}),m.data({bindEvent_buttonsContinuous_y:!0})}function Q(){var e=m.data("scrollButtons_scrollSpeed");return"auto"===m.data("scrollButtons_scrollSpeed")&&(e=Math.round((m.data("scrollInertia")+100)/40)),e}}m.data("autoScrollOnFocus")&&(m.data("bindEvent_focusin")||(r.bind("focusin",function(){r.scrollTop(0).scrollLeft(0);var e=x(document.activeElement);if(e.is("input,textarea,select,button,a[tabindex],area,object")){var t=s.position().top,i=e.position().top,a=r.height()-e.outerHeight();m.data("horizontalScroll")&&(t=s.position().left,i=e.position().left,a=r.width()-e.outerWidth()),(t+i<0||a<t+i)&&m.mCustomScrollbar("scrollTo",i,{trigger:"internal"})}}),m.data({bindEvent_focusin:!0}))),m.data("autoHideScrollbar")&&(m.data("bindEvent_autoHideScrollbar")||(r.bind("mouseenter",function(e){r.addClass("mCS-mouse-over"),v.showScrollbar.call(r.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(e){r.removeClass("mCS-mouse-over"),"mouseleave"===e.type&&v.hideScrollbar.call(r.children(".mCSB_scrollTools"))}),m.data({bindEvent_autoHideScrollbar:!0})))},scrollTo:function(e,t){var i,a,r,_,o,s=x(this),l={moveDragger:!1,trigger:"external",callbacks:!0,scrollInertia:s.data("scrollInertia"),scrollEasing:s.data("scrollEasing")},n=(t=x.extend(l,t),s.children(".mCustomScrollBox")),g=n.children(".mCSB_container"),u=n.children(".mCSB_scrollTools"),d=u.children(".mCSB_draggerContainer"),c=d.children(".mCSB_dragger"),h=draggerSpeed=t.scrollInertia;if(!g.hasClass("mCS_no_scrollbar")&&(s.data({mCS_trigger:t.trigger}),s.data("mCS_Init")&&(t.callbacks=!1),e||0===e)){var b,p;if("number"==typeof e)t.moveDragger?(i=e,e=s.data("horizontalScroll")?c.position().left*s.data("scrollAmount"):c.position().top*s.data("scrollAmount"),draggerSpeed=0):i=e/s.data("scrollAmount");else if("string"==typeof e)i=1===(b="top"===e?0:"bottom"!==e||s.data("horizontalScroll")?"left"===e?0:"right"===e&&s.data("horizontalScroll")?g.outerWidth()-n.width():"first"===e?s.find(".mCSB_container").find(":first"):"last"===e?s.find(".mCSB_container").find(":last"):s.find(e):g.outerHeight()-n.height()).length?(e=s.data("horizontalScroll")?b.position().left:b.position().top)/s.data("scrollAmount"):e=b;if(s.data("horizontalScroll"))s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(o=n.width()-g.outerWidth()+s.data("onTotalScroll_Offset")),i<0?(i=e=0,clearInterval(s.data("mCSB_buttonScrollLeft")),r||(a=!0)):i>=d.width()-c.width()?(i=d.width()-c.width(),e=n.width()-g.outerWidth(),clearInterval(s.data("mCSB_buttonScrollRight")),o||(_=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,c[0],"left",Math.round(i),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"left",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(a||r&&g.position().left>=r)&&m("onTotalScrollBack"),(_||o&&g.position().left<=o)&&m("onTotalScroll")),c.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(n.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});else s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(o=n.height()-g.outerHeight()+s.data("onTotalScroll_Offset")),i<0?(i=e=0,clearInterval(s.data("mCSB_buttonScrollUp")),r||(a=!0)):i>=d.height()-c.height()?(i=d.height()-c.height(),e=n.height()-g.outerHeight(),clearInterval(s.data("mCSB_buttonScrollDown")),o||(_=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,c[0],"top",Math.round(i),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"top",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(a||r&&g.position().top>=r)&&m("onTotalScrollBack"),(_||o&&g.position().top<=o)&&m("onTotalScroll")),c.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(n.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});s.data("mCS_Init")&&s.data({mCS_Init:!1})}function m(e){switch(this.mcs={top:g.position().top,left:g.position().left,draggerTop:c.position().top,draggerLeft:c.position().left,topPct:Math.round(100*Math.abs(g.position().top)/Math.abs(g.outerHeight()-n.height())),leftPct:Math.round(100*Math.abs(g.position().left)/Math.abs(g.outerWidth()-n.width()))},e){case"onScrollStart":s.data("mCS_tweenRunning",!0).data("onScrollStart_Callback").call(s,this.mcs);break;case"whileScrolling":s.data("whileScrolling_Callback").call(s,this.mcs);break;case"onScroll":s.data("onScroll_Callback").call(s,this.mcs);break;case"onTotalScrollBack":s.data("onTotalScrollBack_Callback").call(s,this.mcs);break;case"onTotalScroll":s.data("onTotalScroll_Callback").call(s,this.mcs)}}},stop:function(){var e=x(this),t=e.children().children(".mCSB_container"),i=e.children().children().children().children(".mCSB_dragger");v.mTweenAxisStop.call(this,t[0]),v.mTweenAxisStop.call(this,i[0])},disable:function(e){var t=x(this),i=t.children(".mCustomScrollBox"),a=i.children(".mCSB_container"),r=i.children(".mCSB_scrollTools"),_=r.children().children(".mCSB_dragger");i.unbind("mousewheel focusin mouseenter mouseleave touchend"),a.unbind("touchstart touchmove"),e&&(t.data("horizontalScroll")?_.add(a).css("left",0):_.add(a).css("top",0)),r.css("display","none"),a.addClass("mCS_no_scrollbar"),t.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1,bindEvent_content_touch:!1,bindEvent_autoHideScrollbar:!1}).addClass("mCS_disabled")},destroy:function(){var e=x(this);e.removeClass("mCustomScrollbar _mCS_"+e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove(),x(document).unbind("mousemove."+e.data("mCustomScrollbarIndex")+" mouseup."+e.data("mCustomScrollbarIndex")+" MSPointerMove."+e.data("mCustomScrollbarIndex")+" MSPointerUp."+e.data("mCustomScrollbarIndex")),x(window).unbind("resize."+e.data("mCustomScrollbarIndex"))}},v={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(e,t,i,a,r,_){var o,s=(_=_||{}).onStart||function(){},l=_.onUpdate||function(){},n=_.onComplete||function(){},g=b(),u=0,d=e.offsetTop,c=e.style;"left"===t&&(d=e.offsetLeft);var h=i-d;function b(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()}function p(){u||s.call(),u=b()-g,m(),u>=e._time&&(e._time=u>e._time?u+o-(u-e._time):u+o-1,e._time<u+1&&(e._time=u+1)),e._time<a?e._id=_request(p):n.call()}function m(){c[t]=0<a?(e.currVal=function(e,t,i,a,r){switch(r){case"linear":return i*e/a+t;case"easeOutQuad":return-i*(e/=a)*(e-2)+t;case"easeInOutQuad":return(e/=a/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeOutCubic":return e/=a,i*(--e*e*e+1)+t;case"easeOutQuart":return e/=a,-i*(--e*e*e*e-1)+t;case"easeOutQuint":return e/=a,i*(--e*e*e*e*e+1)+t;case"easeOutCirc":return e/=a,e--,i*Math.sqrt(1-e*e)+t;case"easeOutSine":return i*Math.sin(e/a*(Math.PI/2))+t;case"easeOutExpo":return i*(1-Math.pow(2,-10*e/a))+t;case"mcsEaseOut":var _=(e/=a)*e,o=_*e;return t+i*(.499999999999997*o*_+-2.5*_*_+5.5*o+-6.5*_+4*e);case"draggerRailEase":return(e/=a/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}}(e._time,d,h,a,r),Math.round(e.currVal)+"px"):i+"px",l.call()}!function(){if(null==e._id)return;window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id);e._id=null}(),o=1e3/60,e._time=u+o,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return m(),setTimeout(e,.01)},e._id=_request(p)},mTweenAxisStop:function(e){null!=e._id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id),e._id=null)},rafPolyfill:function(){for(var e=["ms","moz","webkit","o"],t=e.length;-1<--t&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"]}};v.rafPolyfill.call(),x.support.touch=!!("ontouchstart"in window),x.support.msPointer=window.navigator.msPointerEnabled;var e="https:"==document.location.protocol?"https:":"http:";x.event.special.mousewheel||document.write('<script src="'+e+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>'),x.fn.mCustomScrollbar=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void x.error("Method "+e+" does not exist"):t.init.apply(this,arguments)}}(jQuery),function(r){function _(e){return void 0!==e}function e(e,t,i){var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e,t.prototype.constructor=t,e._super=t.prototype,i&&r.extend(e.prototype,i)}var o=[["",""],["exit","cancel"],["screen","Screen"]],s=["","o","ms","moz","webkit","webkitCurrent"];function i(e,t){var i;"string"==typeof e&&(t=e,e=document);for(var a=0;a<o.length;++a){t=t.replace(o[a][0],o[a][1]);for(var r=0;r<s.length;++r)if(i=s[r],_(e[i+=0===r?t:t.charAt(0).toUpperCase()+t.substr(1)]))return e[i]}}var t=navigator.userAgent,a=i("fullscreenEnabled"),l=!(-1!==t.indexOf("Android")&&-1!==t.indexOf("Chrome"))&&_(i("fullscreenElement"))&&(!_(a)||!0===a),n=r.fn.jquery.split("."),g=parseInt(n[0])<2&&parseInt(n[1])<7,u=function(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}};u.prototype={_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=r("body")[0].style.overflow,this.__htmlOverflow=r("html")[0].style.overflow},_allowDocumentScroll:function(){},_fullScreenChange:function(){this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null)},_fullScreenError:function(e){this._revertStyles(),this._fullScreenElement=null,e&&r(document).trigger("fscreenerror",[e])},_triggerEvents:function(){r(this._fullScreenElement).trigger(this.isFullScreen()?"fscreenopen":"fscreenclose"),r(document).trigger("fscreenchange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__savedStyles={},this.__options.styles)this.__savedStyles[t]=this._fullScreenElement.style[t],this._fullScreenElement.style[t]=this.__options.styles[t];this.__options.toggleClass&&e.addClass(this.__options.toggleClass)},_revertStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__options.styles)this._fullScreenElement.style[t]=this.__savedStyles[t];this.__options.toggleClass&&e.removeClass(this.__options.toggleClass)},open:function(e,t){e!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=e,this.__options=r.extend(!0,{},this._DEFAULT_OPTIONS,t),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return l}};var d=function(){d._super.constructor.apply(this,arguments),this.exit=r.proxy(i("exitFullscreen"),document),this._DEFAULT_OPTIONS=r.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),r(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",r.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",r.proxy(this._fullScreenError,this))};e(d,u,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(t){return r.map(this.VENDOR_PREFIXES,function(e){return e+t}).join(" ")},open:function(e,t){d._super.open.apply(this,arguments),i(e,"requestFullscreen").call(e)},exit:r.noop,isFullScreen:function(){return null!==i("fullscreenElement")},element:function(){return i("fullscreenElement")}});var c=function(){c._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=r.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0}}),this.__delegateKeydownHandler()};e(c,u,{__isFullScreen:!1,__delegateKeydownHandler:function(){var e=r(document);e.delegate("*","keydown.fullscreen",r.proxy(this.__keydownHandler,this));var t=g?e.data("events"):r._data(document).events,i=t.keydown;g?t.live.unshift(t.live.pop()):i.splice(0,0,i.splice(i.delegateCount-1,1)[0])},__keydownHandler:function(e){return!this.isFullScreen()||27!==e.which||(this.exit(),!1)},_revertStyles:function(){c._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(e){c._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen=!1,this._fullScreenChange()},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),r.fullscreen=l?new d:new c,r.fn.fullscreen=function(e){var t=this[0];return(e=r.extend({toggleClass:null},e)).styles={},t&&r.fullscreen.open(t,e),this}}(jQuery);var bwg_current_filmstrip_pos,total_thumbnail_count,key,startPoint,endPoint,bwg_image_info_pos,filmstrip_width,preloadCount,filmstrip_thumbnail_width,filmstrip_thumbnail_height,addthis_share,lightbox_comment_pos,bwg_transition_duration,bwg_playInterval,isPopUpOpened=!1,bwg_overflow_initial_value=!1,bwg_overflow_x_initial_value=!1,bwg_overflow_y_initial_value=!1;function gallery_box_ready(){filmstrip_thumbnail_width=jQuery(".bwg_filmstrip_thumbnail").width(),filmstrip_thumbnail_height=jQuery(".bwg_filmstrip_thumbnail").height(),1==gallery_box_data.open_with_fullscreen?(filmstrip_width=jQuery(window).width(),filmstrip_height=jQuery(window).height()):(filmstrip_width=jQuery(".bwg_filmstrip_container").width(),filmstrip_height=jQuery(".bwg_filmstrip_container").height()),preloadCount="horizontal"==gallery_box_data.filmstrip_direction?parseInt(filmstrip_width/filmstrip_thumbnail_width)+gallery_box_data.preload_images_count:parseInt(filmstrip_height/filmstrip_thumbnail_height)+gallery_box_data.preload_images_count,total_thumbnail_count=jQuery(".bwg_filmstrip_thumbnail").length,key=parseInt(jQuery("#bwg_current_image_key").val()),startPoint=0,endPoint=key+preloadCount,jQuery(document).ready(function(){bwg_load_visible_images(key,preloadCount,total_thumbnail_count),jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var e=jQuery("#bwg_rated").attr("data-params");bwg_rating((e=JSON.parse(e)).current_rate,e.current_rate_count,e.current_avg_rating,e.current_image_key)}),1==gallery_box_data.is_pro&&1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&(addthis_share={url:gallery_box_data.share_url}),lightbox_comment_pos=gallery_box_data.lightbox_comment_pos,bwg_image_info_pos=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0,setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)))},100),bwg_transition_duration=gallery_box_data.slideshow_interval<4*gallery_box_data.slideshow_effect_duration&&0!=gallery_box_data.slideshow_interval?1e3*gallery_box_data.slideshow_interval/4:1e3*gallery_box_data.slideshow_effect_duration,gallery_box_data.bwg_transition_duration=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!1,(jQuery("#spider_popup_wrap").width()>=jQuery(window).width()||jQuery("#spider_popup_wrap").height()>=jQuery(window).height())&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"),window.clearInterval(bwg_playInterval),bwg_current_filmstrip_pos=gallery_box_data.current_pos,jQuery(document).on("keydown",function(e){jQuery("#bwg_name").is(":focus")||jQuery("#bwg_email").is(":focus")||jQuery("#bwg_comment").is(":focus")||jQuery("#bwg_captcha_input").is(":focus")||(39===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):37===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):27===e.keyCode?spider_destroypopup(1e3):32===e.keyCode&&jQuery(".bwg_play_pause").trigger("click"))}),jQuery(window).resize(function(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||bwg_popup_resize())});var r=gallery_box_data.image_width,_=gallery_box_data.image_height;if(1==gallery_box_data.is_pro){1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&jQuery(".at4-share-outer").show(),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form");var e=gallery_box_data.data,t=gallery_box_data.current_image_key;jQuery(".bwg_image_hits span").html(++e[t].hit_count);var i=window.location.hash;i&&"-1"!=i.indexOf("bwg")||(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id))}1==gallery_box_data.image_right_click&&(jQuery(".bwg_image_wrap").bind("contextmenu",function(e){return!1}),jQuery(".bwg_image_wrap").css("webkitTouchCallout","none")),jQuery("#spider_popup_wrap").bind("touchmove",function(e){e.preventDefault()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),bwg_reset_zoom();var a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";jQuery("#spider_popup_left").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),jQuery("#spider_popup_right").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),-1!=navigator.appVersion.indexOf("MSIE 10")||-1!=navigator.appVersion.indexOf("MSIE 9")?setTimeout(function(){bwg_popup_resize()},1):bwg_popup_resize(),jQuery(".bwg_watermark").css({display:"none"}),setTimeout(function(){bwg_change_watermark_container()},500),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isNativelySupported()||jQuery(".bwg_fullscreen").hide()),"horizontal"==gallery_box_data.filmstrip_direction?(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()-gallery_box_data.image_filmstrip_height),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width())):(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width()-gallery_box_data.image_filmstrip_width)),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&(jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150}),jQuery(".bwg_ecommerce_panel").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}));var o=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_filmstrip").on(o,function(e){var t=window.event||e,i=(t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta,a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());0<i?jQuery(".bwg_filmstrip_left").trigger(a?"touchend":"click"):jQuery(".bwg_filmstrip_right").trigger(a?"touchend":"click")}),jQuery(".bwg_filmstrip_right").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),"left"==gallery_box_data.left_or_top?"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({top:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"left"==gallery_box_data.left_or_top?jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().left<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({left:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().left&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}):jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().top<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({top:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}),"width"==gallery_box_data.width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width(),"",gallery_box_data):bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").height(),"",gallery_box_data),jQuery(".bwg_info").on(a,function(){if("none"==jQuery(".bwg_image_info_container1").css("display")){jQuery(".bwg_image_info_container1").css("display","table-cell"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_hide_info);var e=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0;setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+e+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",e+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-e-2*parseInt(gallery_box_data.lightbox_info_margin)))},100)}else jQuery(".bwg_image_info_container1").css("display","none"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_show_info)}),jQuery(".bwg_rate").on(a,function(){"none"==jQuery(".bwg_image_rate_container1").css("display")?(jQuery(".bwg_image_rate_container1").css("display","table-cell"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_hide_rating)):(jQuery(".bwg_image_rate_container1").css("display","none"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_show_rating))}),jQuery(".bwg_comment, .bwg_comments_close_btn").on(a,function(){bwg_comment()}),jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(a,function(){bwg_ecommerce()}),jQuery(".bwg_toggle_container").on(a,function(){var e="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-up":"bwg-icon-caret-down",t="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-down":"bwg-icon-caret-up",i=jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_ctrl_btn_container").height()-2*parseInt(gallery_box_data.lightbox_info_margin),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin);if(jQuery(".bwg_toggle_container i").hasClass(e)){var r=i+jQuery(".bwg_ctrl_btn_container").height(),_=parseInt(jQuery(".bwg_image_info").css("top"))-jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:_+"px",height:r},500):jQuery(".bwg_image_info").animate({top:_+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):"bottom"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info").animate({top:-_+"px"},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:0},500):jQuery(".bwg_image_info").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:0},500):jQuery(".bwg_image_rate").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:0},500):jQuery(".bwg_image_hit").animate({bottom:0},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({bottom:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))}else{i=jQuery(".bwg_image_info_container1").height()-2*parseInt(gallery_box_data.lightbox_info_margin)-jQuery(".bwg_toggle_container").height(),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin)+jQuery(".bwg_toggle_container").height(),r=i,_=parseInt(jQuery(".bwg_image_info").css("top"))+jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:_+"px",height:r},500):jQuery(".bwg_image_info").animate({top:_+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_info").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_rate").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_hit").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:0},500),jQuery(".bwg_toggle_container").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:0},500),jQuery(".bwg_toggle_container").animate({top:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}}))}});var s=window.innerHeight;jQuery(".bwg_resize-full").on(a,function(){bwg_resize_full()}),jQuery(".bwg_fullscreen").on(a,function(){jQuery(".bwg_watermark").css({display:"none"});var e,t=0;if((jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(t=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen))if(jQuery.fullscreen.isFullScreen())jQuery.fullscreen.exit(),e=s,jQuery(window).width()>gallery_box_data.image_width&&(r=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(_=gallery_box_data.image_height),gallery_box_data.open_with_fullscreen&&(r=jQuery(window).width(),_=e),jQuery("#spider_popup_wrap").on("fscreenclose",function(){jQuery("#spider_popup_wrap").css({width:r,height:_,left:"50%",top:"50%",marginLeft:-r/2,marginTop:-_/2,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:r-t}),jQuery(".bwg_image_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(r-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(_-40,"",gallery_box_data)),jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_fullscreen),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")});else{jQuery("#spider_popup_wrap").fullscreen();var i=screen.width,a=screen.height;jQuery("#spider_popup_wrap").css({width:i,height:a,left:0,top:0,margin:0,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:i-t}),jQuery(".bwg_image_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").hide(),jQuery(".bwg_fullscreen").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_exit_fullscreen),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause, .bwg_popup_image").on(a,function(){jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")?(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")):(window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause"))}),gallery_box_data.open_with_autoplay&&(b