Version Description
- 13. January 2021 =
- Feature: PHP 8 compatibility
- Fix: WordPress post generator dates
- Fix: Thumbnail hover switching
- Fix: WP Rocket compatibility
Download this release
Release Info
Developer | nextendweb |
Plugin | Smart Slider 3 |
Version | 3.4.1.15 |
Comparing to | |
See all releases |
Code changes from version 3.4.1.14 to 3.4.1.15
- Nextend/Framework/Asset/Predefined.php +0 -1
- Nextend/Framework/Font/FontRenderer.php +2 -1
- Nextend/Framework/Font/ModelFont.php +3 -3
- Nextend/Framework/Form/Element/Connected.php +1 -1
- Nextend/Framework/Form/Element/{Mixed.php → MixedField.php} +1 -1
- Nextend/Framework/Form/Element/{Mixed → MixedField}/Border.php +3 -3
- Nextend/Framework/Form/Element/{Mixed → MixedField}/BoxShadow.php +3 -3
- Nextend/Framework/Form/Element/{Mixed → MixedField}/FontSize.php +3 -3
- Nextend/Framework/Form/Element/{Mixed → MixedField}/GeneratorOrder.php +3 -3
- Nextend/Framework/Form/Element/{Mixed → MixedField}/TextShadow.php +3 -3
- Nextend/Framework/Image/ImageEdit.php +1 -1
- Nextend/Framework/Localization/AbstractLocalization.php +4 -0
- Nextend/Framework/Localization/Localization.php +2 -6
- Nextend/Framework/Localization/Pomo/entry.php +0 -96
- Nextend/Framework/Localization/Pomo/mo.php +0 -338
- Nextend/Framework/Localization/Pomo/plural-forms.php +0 -366
- Nextend/Framework/Localization/Pomo/streams.php +0 -325
- Nextend/Framework/Localization/Pomo/translations.php +0 -392
- Nextend/Framework/Localization/WordPress/WordPressLocalization.php +16 -0
- Nextend/Framework/Misc/Zip/Reader.php +1 -1
- Nextend/Framework/Misc/Zip/Reader/ZipExtension.php +10 -7
- Nextend/Framework/Pattern/OrderableTrait.php +2 -3
- Nextend/Framework/Pattern/SingletonTrait.php +3 -3
- Nextend/Framework/Style/ModelStyle.php +3 -3
- Nextend/Framework/Style/StyleRenderer.php +2 -1
- Nextend/SmartSlider3/Application/Admin/FormManager/Slider/SliderSlides.php +1 -6
- Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsColumn.php +1 -1
- Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsItemCommon.php +4 -4
- Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsRow.php +1 -1
- Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Tab/TabAnimation.php +1 -1
- Nextend/SmartSlider3/Application/Admin/Settings/ViewSettingsGeneral.php +2 -2
- Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsAllCustomPosts.php +1 -1
- Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsCustomPosts.php +14 -6
- Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsPosts.php +10 -3
- Nextend/SmartSlider3/Platform/WordPress/Compatibility.php +1 -19
- Nextend/SmartSlider3/Platform/WordPress/Integration/WPRocket/WPRocket.php +51 -6
- Nextend/SmartSlider3/Renderable/Item/Button/ItemButton.php +2 -2
- Nextend/SmartSlider3/Renderable/Item/Heading/ItemHeading.php +2 -2
- Nextend/SmartSlider3/Renderable/Item/Image/ItemImage.php +2 -2
- Nextend/SmartSlider3/Slider/Cache/CacheSlider.php +1 -1
- Nextend/SmartSlider3/Slider/Slides.php +1 -1
- Nextend/SmartSlider3/SmartSlider3Info.php +4 -4
- Public/SmartSlider3/Application/Frontend/Assets/dist/nextend-webfontloader.min.js +1 -1
- Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider-frontend.min.js +1 -1
- Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider.min.css +1 -1
- Public/SmartSlider3/Slider/SliderType/Block/Assets/style.n2less +0 -7
- Public/SmartSlider3/Slider/SliderType/Simple/Assets/style.n2less +0 -7
- Public/SmartSlider3/Widget/Thumbnail/Basic/Assets/dist/thumbnail-horizontal.min.js +1 -1
- Public/SmartSlider3/Widget/Thumbnail/Basic/Assets/dist/thumbnail-vertical.min.js +1 -1
- readme.txt +7 -1
- smart-slider-3.php +1 -1
Nextend/Framework/Asset/Predefined.php
CHANGED
@@ -53,7 +53,6 @@ class Predefined {
|
|
53 |
|
54 |
|
55 |
Js::addGlobalInline('(function(){var N=this;N.N2_=N.N2_||{r:[],d:[]},N.N2R=N.N2R||function(){N.N2_.r.push(arguments)},N.N2D=N.N2D||function(){N.N2_.d.push(arguments)}}).call(window);');
|
56 |
-
Js::addGlobalInline('if(!window.n2jQuery){window.n2jQuery={ready:function(cb){console.error(\'n2jQuery will be deprecated!\');N2R([\'$\'],cb);}}}');
|
57 |
$jQueryFallback = site_url('wp-includes/js/jquery/jquery.js');
|
58 |
|
59 |
Js::addGlobalInline('window.nextend={jQueryFallback:\'' . $jQueryFallback . '\',localization: {}, ready: function(cb){console.error(\'nextend.ready will be deprecated!\');N2R(\'documentReady\', function($){cb.call(window,$)})}};');
|
53 |
|
54 |
|
55 |
Js::addGlobalInline('(function(){var N=this;N.N2_=N.N2_||{r:[],d:[]},N.N2R=N.N2R||function(){N.N2_.r.push(arguments)},N.N2D=N.N2D||function(){N.N2_.d.push(arguments)}}).call(window);');
|
|
|
56 |
$jQueryFallback = site_url('wp-includes/js/jquery/jquery.js');
|
57 |
|
58 |
Js::addGlobalInline('window.nextend={jQueryFallback:\'' . $jQueryFallback . '\',localization: {}, ready: function(cb){console.error(\'nextend.ready will be deprecated!\');N2R(\'documentReady\', function($){cb.call(window,$)})}};');
|
Nextend/Framework/Font/FontRenderer.php
CHANGED
@@ -86,7 +86,8 @@ class FontRenderer {
|
|
86 |
|
87 |
$template = '';
|
88 |
foreach (self::$mode[$mode]['selectors'] AS $s => $style) {
|
89 |
-
|
|
|
90 |
$template .= $s . "{" . $style . "}";
|
91 |
}
|
92 |
}
|
86 |
|
87 |
$template = '';
|
88 |
foreach (self::$mode[$mode]['selectors'] AS $s => $style) {
|
89 |
+
$key = array_search($style, $search);
|
90 |
+
if (is_numeric($key) && !empty($replace[$key])) {
|
91 |
$template .= $s . "{" . $style . "}";
|
92 |
}
|
93 |
}
|
Nextend/Framework/Font/ModelFont.php
CHANGED
@@ -5,7 +5,7 @@ namespace Nextend\Framework\Font;
|
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
use Nextend\Framework\Form\Element\Button;
|
7 |
use Nextend\Framework\Form\Element\Decoration;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Radio\TextAlign;
|
10 |
use Nextend\Framework\Form\Element\Select;
|
11 |
use Nextend\Framework\Form\Element\Select\FontWeight;
|
@@ -41,7 +41,7 @@ class ModelFont extends ModelVisual {
|
|
41 |
'alpha' => true
|
42 |
));
|
43 |
|
44 |
-
new
|
45 |
|
46 |
new FontWeight($row1, 'weight', n2_('Font weight'), '');
|
47 |
new Decoration($row1, 'decoration', n2_('Decoration'));
|
@@ -90,7 +90,7 @@ class ModelFont extends ModelVisual {
|
|
90 |
)
|
91 |
));
|
92 |
|
93 |
-
new
|
94 |
|
95 |
new Textarea($row2, 'extracss', 'CSS', '', array(
|
96 |
'width' => 200,
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
use Nextend\Framework\Form\Element\Button;
|
7 |
use Nextend\Framework\Form\Element\Decoration;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Radio\TextAlign;
|
10 |
use Nextend\Framework\Form\Element\Select;
|
11 |
use Nextend\Framework\Form\Element\Select\FontWeight;
|
41 |
'alpha' => true
|
42 |
));
|
43 |
|
44 |
+
new MixedField\FontSize($row1, 'size', n2_('Size'), '14|*|px');
|
45 |
|
46 |
new FontWeight($row1, 'weight', n2_('Font weight'), '');
|
47 |
new Decoration($row1, 'decoration', n2_('Decoration'));
|
90 |
)
|
91 |
));
|
92 |
|
93 |
+
new MixedField\TextShadow($row2, 'tshadow', n2_('Text shadow'), '0|*|0|*|1|*|000000FF');
|
94 |
|
95 |
new Textarea($row2, 'extracss', 'CSS', '', array(
|
96 |
'width' => 200,
|
Nextend/Framework/Form/Element/Connected.php
CHANGED
@@ -4,7 +4,7 @@ namespace Nextend\Framework\Form\Element;
|
|
4 |
|
5 |
use Nextend\Framework\Form\AbstractField;
|
6 |
|
7 |
-
class Connected extends
|
8 |
|
9 |
protected $rowClass = 'n2_field_connected ';
|
10 |
|
4 |
|
5 |
use Nextend\Framework\Form\AbstractField;
|
6 |
|
7 |
+
class Connected extends MixedField {
|
8 |
|
9 |
protected $rowClass = 'n2_field_connected ';
|
10 |
|
Nextend/Framework/Form/Element/{Mixed.php → MixedField.php}
RENAMED
@@ -9,7 +9,7 @@ use Nextend\Framework\Form\AbstractField;
|
|
9 |
use Nextend\Framework\Form\ContainerInterface;
|
10 |
use Nextend\Framework\Form\TraitFieldset;
|
11 |
|
12 |
-
class
|
13 |
|
14 |
use TraitFieldset;
|
15 |
|
9 |
use Nextend\Framework\Form\ContainerInterface;
|
10 |
use Nextend\Framework\Form\TraitFieldset;
|
11 |
|
12 |
+
class MixedField extends AbstractFieldHidden implements ContainerInterface {
|
13 |
|
14 |
use TraitFieldset;
|
15 |
|
Nextend/Framework/Form/Element/{Mixed → MixedField}/Border.php
RENAMED
@@ -1,17 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
namespace Nextend\Framework\Form\Element\
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Select;
|
10 |
use Nextend\Framework\Form\Element\Text\Color;
|
11 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
12 |
use Nextend\Framework\View\Html;
|
13 |
|
14 |
-
class Border extends
|
15 |
|
16 |
protected $rowClass = 'n2_field_mixed_border ';
|
17 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
namespace Nextend\Framework\Form\Element\MixedField;
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Select;
|
10 |
use Nextend\Framework\Form\Element\Text\Color;
|
11 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
12 |
use Nextend\Framework\View\Html;
|
13 |
|
14 |
+
class Border extends MixedField {
|
15 |
|
16 |
protected $rowClass = 'n2_field_mixed_border ';
|
17 |
|
Nextend/Framework/Form/Element/{Mixed → MixedField}/BoxShadow.php
RENAMED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
namespace Nextend\Framework\Form\Element\
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Text\Color;
|
10 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
11 |
|
12 |
-
class BoxShadow extends
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_box_shadow ';
|
15 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
namespace Nextend\Framework\Form\Element\MixedField;
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Text\Color;
|
10 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
11 |
|
12 |
+
class BoxShadow extends MixedField {
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_box_shadow ';
|
15 |
|
Nextend/Framework/Form/Element/{Mixed → MixedField}/FontSize.php
RENAMED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
namespace Nextend\Framework\Form\Element\
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Text\NumberSlider;
|
10 |
use Nextend\Framework\Form\Element\Unit;
|
11 |
|
12 |
-
class FontSize extends
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_font_size ';
|
15 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
namespace Nextend\Framework\Form\Element\MixedField;
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Text\NumberSlider;
|
10 |
use Nextend\Framework\Form\Element\Unit;
|
11 |
|
12 |
+
class FontSize extends MixedField {
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_font_size ';
|
15 |
|
Nextend/Framework/Form/Element/{Mixed → MixedField}/GeneratorOrder.php
RENAMED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
namespace Nextend\Framework\Form\Element\
|
5 |
|
6 |
|
7 |
-
use Nextend\Framework\Form\Element\
|
8 |
use Nextend\Framework\Form\Element\Radio;
|
9 |
use Nextend\Framework\Form\Element\Select;
|
10 |
|
11 |
-
class GeneratorOrder extends
|
12 |
|
13 |
protected $rowClass = 'n2_field_mixed_generator_order ';
|
14 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
namespace Nextend\Framework\Form\Element\MixedField;
|
5 |
|
6 |
|
7 |
+
use Nextend\Framework\Form\Element\MixedField;
|
8 |
use Nextend\Framework\Form\Element\Radio;
|
9 |
use Nextend\Framework\Form\Element\Select;
|
10 |
|
11 |
+
class GeneratorOrder extends MixedField {
|
12 |
|
13 |
protected $rowClass = 'n2_field_mixed_generator_order ';
|
14 |
|
Nextend/Framework/Form/Element/{Mixed → MixedField}/TextShadow.php
RENAMED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
namespace Nextend\Framework\Form\Element\
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Text\Color;
|
10 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
11 |
|
12 |
-
class TextShadow extends
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_text_shadow ';
|
15 |
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
namespace Nextend\Framework\Form\Element\MixedField;
|
5 |
|
6 |
|
7 |
use Nextend\Framework\Form\AbstractField;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Text\Color;
|
10 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
11 |
|
12 |
+
class TextShadow extends MixedField {
|
13 |
|
14 |
protected $rowClass = 'n2_field_mixed_text_shadow ';
|
15 |
|
Nextend/Framework/Image/ImageEdit.php
CHANGED
@@ -21,7 +21,7 @@ class ImageEdit {
|
|
21 |
}
|
22 |
|
23 |
if ($targetWidth <= 0 || $targetHeight <= 0 || !function_exists('imagecreatefrompng')) {
|
24 |
-
return Filesystem::pathToAbsoluteURL(
|
25 |
}
|
26 |
|
27 |
|
21 |
}
|
22 |
|
23 |
if ($targetWidth <= 0 || $targetHeight <= 0 || !function_exists('imagecreatefrompng')) {
|
24 |
+
return Filesystem::pathToAbsoluteURL($imageUrl);
|
25 |
}
|
26 |
|
27 |
|
Nextend/Framework/Localization/AbstractLocalization.php
CHANGED
@@ -7,4 +7,8 @@ abstract class AbstractLocalization {
|
|
7 |
public function getLocale() {
|
8 |
return 'en_US';
|
9 |
}
|
|
|
|
|
|
|
|
|
10 |
}
|
7 |
public function getLocale() {
|
8 |
return 'en_US';
|
9 |
}
|
10 |
+
|
11 |
+
abstract public function createMo();
|
12 |
+
|
13 |
+
abstract public function createNOOP_Translations();
|
14 |
}
|
Nextend/Framework/Localization/Localization.php
CHANGED
@@ -2,13 +2,11 @@
|
|
2 |
|
3 |
namespace Nextend\Framework\Localization;
|
4 |
|
5 |
-
use MO;
|
6 |
use Nextend\Framework\Localization\Joomla\JoomlaLocalization;
|
7 |
use Nextend\Framework\Localization\WordPress\WordPressLocalization;
|
8 |
use Nextend\Framework\Pattern\SingletonTrait;
|
9 |
use Nextend\Framework\Platform\Platform;
|
10 |
use Nextend\Framework\Settings;
|
11 |
-
use NOOP_Translations;
|
12 |
|
13 |
class Localization {
|
14 |
|
@@ -25,8 +23,6 @@ class Localization {
|
|
25 |
|
26 |
protected function init() {
|
27 |
|
28 |
-
require_once 'Pomo/translations.php';
|
29 |
-
require_once 'Pomo/mo.php';
|
30 |
require_once 'Functions.php';
|
31 |
self::$platformLocalization = new WordPressLocalization();
|
32 |
}
|
@@ -38,7 +34,7 @@ class Localization {
|
|
38 |
private static function loadTextDomain($domain, $mofile) {
|
39 |
if (!is_readable($mofile)) return false;
|
40 |
|
41 |
-
$mo =
|
42 |
if (!$mo->import_from_file($mofile)) return false;
|
43 |
|
44 |
if (isset(self::$l10n[$domain])) $mo->merge_with(self::$l10n[$domain]);
|
@@ -63,7 +59,7 @@ class Localization {
|
|
63 |
|
64 |
public static function getTranslationsForDomain($domain) {
|
65 |
if (!isset(self::$l10n[$domain])) {
|
66 |
-
self::$l10n[$domain] =
|
67 |
}
|
68 |
|
69 |
return self::$l10n[$domain];
|
2 |
|
3 |
namespace Nextend\Framework\Localization;
|
4 |
|
|
|
5 |
use Nextend\Framework\Localization\Joomla\JoomlaLocalization;
|
6 |
use Nextend\Framework\Localization\WordPress\WordPressLocalization;
|
7 |
use Nextend\Framework\Pattern\SingletonTrait;
|
8 |
use Nextend\Framework\Platform\Platform;
|
9 |
use Nextend\Framework\Settings;
|
|
|
10 |
|
11 |
class Localization {
|
12 |
|
23 |
|
24 |
protected function init() {
|
25 |
|
|
|
|
|
26 |
require_once 'Functions.php';
|
27 |
self::$platformLocalization = new WordPressLocalization();
|
28 |
}
|
34 |
private static function loadTextDomain($domain, $mofile) {
|
35 |
if (!is_readable($mofile)) return false;
|
36 |
|
37 |
+
$mo = self::$platformLocalization->createMo();
|
38 |
if (!$mo->import_from_file($mofile)) return false;
|
39 |
|
40 |
if (isset(self::$l10n[$domain])) $mo->merge_with(self::$l10n[$domain]);
|
59 |
|
60 |
public static function getTranslationsForDomain($domain) {
|
61 |
if (!isset(self::$l10n[$domain])) {
|
62 |
+
self::$l10n[$domain] = self::$platformLocalization->createNOOP_Translations();
|
63 |
}
|
64 |
|
65 |
return self::$l10n[$domain];
|
Nextend/Framework/Localization/Pomo/entry.php
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Contains Translation_Entry class
|
4 |
-
*
|
5 |
-
* @version $Id: entry.php 1157 2015-11-20 04:30:11Z dd32 $
|
6 |
-
* @package pomo
|
7 |
-
* @subpackage entry
|
8 |
-
*/
|
9 |
-
|
10 |
-
if (!class_exists('Translation_Entry', false)):
|
11 |
-
/**
|
12 |
-
* Translation_Entry class encapsulates a translatable string
|
13 |
-
*/
|
14 |
-
class Translation_Entry {
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Whether the entry contains a string and its plural form, default is false
|
18 |
-
*
|
19 |
-
* @var boolean
|
20 |
-
*/
|
21 |
-
var $is_plural = false;
|
22 |
-
|
23 |
-
var $context = null;
|
24 |
-
var $singular = null;
|
25 |
-
var $plural = null;
|
26 |
-
var $translations = array();
|
27 |
-
var $translator_comments = '';
|
28 |
-
var $extracted_comments = '';
|
29 |
-
var $references = array();
|
30 |
-
var $flags = array();
|
31 |
-
|
32 |
-
/**
|
33 |
-
* @param array $args associative array, support following keys:
|
34 |
-
* - singular (string) -- the string to translate, if omitted and empty entry will be created
|
35 |
-
* - plural (string) -- the plural form of the string, setting this will set {@link $is_plural} to true
|
36 |
-
* - translations (array) -- translations of the string and possibly -- its plural forms
|
37 |
-
* - context (string) -- a string differentiating two equal strings used in different contexts
|
38 |
-
* - translator_comments (string) -- comments left by translators
|
39 |
-
* - extracted_comments (string) -- comments left by developers
|
40 |
-
* - references (array) -- places in the code this strings is used, in relative_to_root_path/file.php:linenum form
|
41 |
-
* - flags (array) -- flags like php-format
|
42 |
-
*/
|
43 |
-
function __construct($args = array()) {
|
44 |
-
// if no singular -- empty object
|
45 |
-
if (!isset($args['singular'])) {
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
// get member variable values from args hash
|
49 |
-
foreach ($args as $varname => $value) {
|
50 |
-
$this->$varname = $value;
|
51 |
-
}
|
52 |
-
if (isset($args['plural']) && $args['plural']) $this->is_plural = true;
|
53 |
-
if (!is_array($this->translations)) $this->translations = array();
|
54 |
-
if (!is_array($this->references)) $this->references = array();
|
55 |
-
if (!is_array($this->flags)) $this->flags = array();
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* PHP4 constructor.
|
60 |
-
*/
|
61 |
-
public function Translation_Entry($args = array()) {
|
62 |
-
self::__construct($args);
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Generates a unique key for this entry
|
67 |
-
*
|
68 |
-
* @return string|bool the key or false if the entry is empty
|
69 |
-
*/
|
70 |
-
function key() {
|
71 |
-
if (null === $this->singular || '' === $this->singular) return false;
|
72 |
-
|
73 |
-
// Prepend context and EOT, like in MO files
|
74 |
-
$key = !$this->context ? $this->singular : $this->context . chr(4) . $this->singular;
|
75 |
-
// Standardize on \n line endings
|
76 |
-
$key = str_replace(array(
|
77 |
-
"\r\n",
|
78 |
-
"\r"
|
79 |
-
), "\n", $key);
|
80 |
-
|
81 |
-
return $key;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* @param object $other
|
86 |
-
*/
|
87 |
-
function merge_with(&$other) {
|
88 |
-
$this->flags = array_unique(array_merge($this->flags, $other->flags));
|
89 |
-
$this->references = array_unique(array_merge($this->references, $other->references));
|
90 |
-
if ($this->extracted_comments != $other->extracted_comments) {
|
91 |
-
$this->extracted_comments .= $other->extracted_comments;
|
92 |
-
}
|
93 |
-
|
94 |
-
}
|
95 |
-
}
|
96 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nextend/Framework/Localization/Pomo/mo.php
DELETED
@@ -1,338 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Class for working with MO files
|
4 |
-
*
|
5 |
-
* @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $
|
6 |
-
* @package pomo
|
7 |
-
* @subpackage mo
|
8 |
-
*/
|
9 |
-
|
10 |
-
require_once dirname(__FILE__) . '/translations.php';
|
11 |
-
require_once dirname(__FILE__) . '/streams.php';
|
12 |
-
|
13 |
-
if (!class_exists('MO', false)):
|
14 |
-
class MO extends Gettext_Translations {
|
15 |
-
|
16 |
-
var $_nplurals = 2;
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Loaded MO file.
|
20 |
-
*
|
21 |
-
* @var string
|
22 |
-
*/
|
23 |
-
private $filename = '';
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Returns the loaded MO file.
|
27 |
-
*
|
28 |
-
* @return string The loaded MO file.
|
29 |
-
*/
|
30 |
-
public function get_filename() {
|
31 |
-
return $this->filename;
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Fills up with the entries from MO file $filename
|
36 |
-
*
|
37 |
-
* @param string $filename MO file to load
|
38 |
-
*/
|
39 |
-
function import_from_file($filename) {
|
40 |
-
$reader = new POMO_FileReader($filename);
|
41 |
-
|
42 |
-
if (!$reader->is_resource()) {
|
43 |
-
return false;
|
44 |
-
}
|
45 |
-
|
46 |
-
$this->filename = (string)$filename;
|
47 |
-
|
48 |
-
return $this->import_from_reader($reader);
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* @param string $filename
|
53 |
-
*
|
54 |
-
* @return bool
|
55 |
-
*/
|
56 |
-
function export_to_file($filename) {
|
57 |
-
$fh = fopen($filename, 'wb');
|
58 |
-
if (!$fh) return false;
|
59 |
-
$res = $this->export_to_file_handle($fh);
|
60 |
-
fclose($fh);
|
61 |
-
|
62 |
-
return $res;
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* @return string|false
|
67 |
-
*/
|
68 |
-
function export() {
|
69 |
-
$tmp_fh = fopen("php://temp", 'r+');
|
70 |
-
if (!$tmp_fh) return false;
|
71 |
-
$this->export_to_file_handle($tmp_fh);
|
72 |
-
rewind($tmp_fh);
|
73 |
-
|
74 |
-
return stream_get_contents($tmp_fh);
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* @param Translation_Entry $entry
|
79 |
-
*
|
80 |
-
* @return bool
|
81 |
-
*/
|
82 |
-
function is_entry_good_for_export($entry) {
|
83 |
-
if (empty($entry->translations)) {
|
84 |
-
return false;
|
85 |
-
}
|
86 |
-
|
87 |
-
if (!array_filter($entry->translations)) {
|
88 |
-
return false;
|
89 |
-
}
|
90 |
-
|
91 |
-
return true;
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* @param resource $fh
|
96 |
-
*
|
97 |
-
* @return true
|
98 |
-
*/
|
99 |
-
function export_to_file_handle($fh) {
|
100 |
-
$entries = array_filter($this->entries, array(
|
101 |
-
$this,
|
102 |
-
'is_entry_good_for_export'
|
103 |
-
));
|
104 |
-
ksort($entries);
|
105 |
-
$magic = 0x950412de;
|
106 |
-
$revision = 0;
|
107 |
-
$total = count($entries) + 1; // all the headers are one entry
|
108 |
-
$originals_lenghts_addr = 28;
|
109 |
-
$translations_lenghts_addr = $originals_lenghts_addr + 8 * $total;
|
110 |
-
$size_of_hash = 0;
|
111 |
-
$hash_addr = $translations_lenghts_addr + 8 * $total;
|
112 |
-
$current_addr = $hash_addr;
|
113 |
-
fwrite($fh, pack('V*', $magic, $revision, $total, $originals_lenghts_addr, $translations_lenghts_addr, $size_of_hash, $hash_addr));
|
114 |
-
fseek($fh, $originals_lenghts_addr);
|
115 |
-
|
116 |
-
// headers' msgid is an empty string
|
117 |
-
fwrite($fh, pack('VV', 0, $current_addr));
|
118 |
-
$current_addr++;
|
119 |
-
$originals_table = chr(0);
|
120 |
-
|
121 |
-
$reader = new POMO_Reader();
|
122 |
-
|
123 |
-
foreach ($entries as $entry) {
|
124 |
-
$originals_table .= $this->export_original($entry) . chr(0);
|
125 |
-
$length = $reader->strlen($this->export_original($entry));
|
126 |
-
fwrite($fh, pack('VV', $length, $current_addr));
|
127 |
-
$current_addr += $length + 1; // account for the NULL byte after
|
128 |
-
}
|
129 |
-
|
130 |
-
$exported_headers = $this->export_headers();
|
131 |
-
fwrite($fh, pack('VV', $reader->strlen($exported_headers), $current_addr));
|
132 |
-
$current_addr += strlen($exported_headers) + 1;
|
133 |
-
$translations_table = $exported_headers . chr(0);
|
134 |
-
|
135 |
-
foreach ($entries as $entry) {
|
136 |
-
$translations_table .= $this->export_translations($entry) . chr(0);
|
137 |
-
$length = $reader->strlen($this->export_translations($entry));
|
138 |
-
fwrite($fh, pack('VV', $length, $current_addr));
|
139 |
-
$current_addr += $length + 1;
|
140 |
-
}
|
141 |
-
|
142 |
-
fwrite($fh, $originals_table);
|
143 |
-
fwrite($fh, $translations_table);
|
144 |
-
|
145 |
-
return true;
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* @param Translation_Entry $entry
|
150 |
-
*
|
151 |
-
* @return string
|
152 |
-
*/
|
153 |
-
function export_original($entry) {
|
154 |
-
//TODO: warnings for control characters
|
155 |
-
$exported = $entry->singular;
|
156 |
-
if ($entry->is_plural) $exported .= chr(0) . $entry->plural;
|
157 |
-
if ($entry->context) $exported = $entry->context . chr(4) . $exported;
|
158 |
-
|
159 |
-
return $exported;
|
160 |
-
}
|
161 |
-
|
162 |
-
/**
|
163 |
-
* @param Translation_Entry $entry
|
164 |
-
*
|
165 |
-
* @return string
|
166 |
-
*/
|
167 |
-
function export_translations($entry) {
|
168 |
-
//TODO: warnings for control characters
|
169 |
-
return $entry->is_plural ? implode(chr(0), $entry->translations) : $entry->translations[0];
|
170 |
-
}
|
171 |
-
|
172 |
-
/**
|
173 |
-
* @return string
|
174 |
-
*/
|
175 |
-
function export_headers() {
|
176 |
-
$exported = '';
|
177 |
-
foreach ($this->headers as $header => $value) {
|
178 |
-
$exported .= "$header: $value\n";
|
179 |
-
}
|
180 |
-
|
181 |
-
return $exported;
|
182 |
-
}
|
183 |
-
|
184 |
-
/**
|
185 |
-
* @param int $magic
|
186 |
-
*
|
187 |
-
* @return string|false
|
188 |
-
*/
|
189 |
-
function get_byteorder($magic) {
|
190 |
-
// The magic is 0x950412de
|
191 |
-
|
192 |
-
// bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565
|
193 |
-
$magic_little = (int)-1794895138;
|
194 |
-
$magic_little_64 = (int)2500072158;
|
195 |
-
// 0xde120495
|
196 |
-
$magic_big = ((int)-569244523) & 0xFFFFFFFF;
|
197 |
-
if ($magic_little == $magic || $magic_little_64 == $magic) {
|
198 |
-
return 'little';
|
199 |
-
} else if ($magic_big == $magic) {
|
200 |
-
return 'big';
|
201 |
-
} else {
|
202 |
-
return false;
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
/**
|
207 |
-
* @param POMO_FileReader $reader
|
208 |
-
*/
|
209 |
-
function import_from_reader($reader) {
|
210 |
-
$endian_string = MO::get_byteorder($reader->readint32());
|
211 |
-
if (false === $endian_string) {
|
212 |
-
return false;
|
213 |
-
}
|
214 |
-
$reader->setEndian($endian_string);
|
215 |
-
|
216 |
-
$endian = ('big' == $endian_string) ? 'N' : 'V';
|
217 |
-
|
218 |
-
$header = $reader->read(24);
|
219 |
-
if ($reader->strlen($header) != 24) return false;
|
220 |
-
|
221 |
-
// parse header
|
222 |
-
$header = unpack("{$endian}revision/{$endian}total/{$endian}originals_lenghts_addr/{$endian}translations_lenghts_addr/{$endian}hash_length/{$endian}hash_addr", $header);
|
223 |
-
if (!is_array($header)) return false;
|
224 |
-
|
225 |
-
// support revision 0 of MO format specs, only
|
226 |
-
if ($header['revision'] != 0) {
|
227 |
-
return false;
|
228 |
-
}
|
229 |
-
|
230 |
-
// seek to data blocks
|
231 |
-
$reader->seekto($header['originals_lenghts_addr']);
|
232 |
-
|
233 |
-
// read originals' indices
|
234 |
-
$originals_lengths_length = $header['translations_lenghts_addr'] - $header['originals_lenghts_addr'];
|
235 |
-
if ($originals_lengths_length != $header['total'] * 8) {
|
236 |
-
return false;
|
237 |
-
}
|
238 |
-
|
239 |
-
$originals = $reader->read($originals_lengths_length);
|
240 |
-
if ($reader->strlen($originals) != $originals_lengths_length) {
|
241 |
-
return false;
|
242 |
-
}
|
243 |
-
|
244 |
-
// read translations' indices
|
245 |
-
$translations_lenghts_length = $header['hash_addr'] - $header['translations_lenghts_addr'];
|
246 |
-
if ($translations_lenghts_length != $header['total'] * 8) {
|
247 |
-
return false;
|
248 |
-
}
|
249 |
-
|
250 |
-
$translations = $reader->read($translations_lenghts_length);
|
251 |
-
if ($reader->strlen($translations) != $translations_lenghts_length) {
|
252 |
-
return false;
|
253 |
-
}
|
254 |
-
|
255 |
-
// transform raw data into set of indices
|
256 |
-
$originals = $reader->str_split($originals, 8);
|
257 |
-
$translations = $reader->str_split($translations, 8);
|
258 |
-
|
259 |
-
// skip hash table
|
260 |
-
$strings_addr = $header['hash_addr'] + $header['hash_length'] * 4;
|
261 |
-
|
262 |
-
$reader->seekto($strings_addr);
|
263 |
-
|
264 |
-
$strings = $reader->read_all();
|
265 |
-
$reader->close();
|
266 |
-
|
267 |
-
for ($i = 0; $i < $header['total']; $i++) {
|
268 |
-
$o = unpack("{$endian}length/{$endian}pos", $originals[$i]);
|
269 |
-
$t = unpack("{$endian}length/{$endian}pos", $translations[$i]);
|
270 |
-
if (!$o || !$t) return false;
|
271 |
-
|
272 |
-
// adjust offset due to reading strings to separate space before
|
273 |
-
$o['pos'] -= $strings_addr;
|
274 |
-
$t['pos'] -= $strings_addr;
|
275 |
-
|
276 |
-
$original = $reader->substr($strings, $o['pos'], $o['length']);
|
277 |
-
$translation = $reader->substr($strings, $t['pos'], $t['length']);
|
278 |
-
|
279 |
-
if ('' === $original) {
|
280 |
-
$this->set_headers($this->make_headers($translation));
|
281 |
-
} else {
|
282 |
-
$entry = &$this->make_entry($original, $translation);
|
283 |
-
$this->entries[$entry->key()] = &$entry;
|
284 |
-
}
|
285 |
-
}
|
286 |
-
|
287 |
-
return true;
|
288 |
-
}
|
289 |
-
|
290 |
-
/**
|
291 |
-
* Build a Translation_Entry from original string and translation strings,
|
292 |
-
* found in a MO file
|
293 |
-
*
|
294 |
-
* @static
|
295 |
-
*
|
296 |
-
* @param string $original original string to translate from MO file. Might contain
|
297 |
-
* 0x04 as context separator or 0x00 as singular/plural separator
|
298 |
-
* @param string $translation translation string from MO file. Might contain
|
299 |
-
* 0x00 as a plural translations separator
|
300 |
-
*/
|
301 |
-
function &make_entry($original, $translation) {
|
302 |
-
$entry = new Translation_Entry();
|
303 |
-
// look for context
|
304 |
-
$parts = explode(chr(4), $original);
|
305 |
-
if (isset($parts[1])) {
|
306 |
-
$original = $parts[1];
|
307 |
-
$entry->context = $parts[0];
|
308 |
-
}
|
309 |
-
// look for plural original
|
310 |
-
$parts = explode(chr(0), $original);
|
311 |
-
$entry->singular = $parts[0];
|
312 |
-
if (isset($parts[1])) {
|
313 |
-
$entry->is_plural = true;
|
314 |
-
$entry->plural = $parts[1];
|
315 |
-
}
|
316 |
-
// plural translations are also separated by \0
|
317 |
-
$entry->translations = explode(chr(0), $translation);
|
318 |
-
|
319 |
-
return $entry;
|
320 |
-
}
|
321 |
-
|
322 |
-
/**
|
323 |
-
* @param int $count
|
324 |
-
*
|
325 |
-
* @return string
|
326 |
-
*/
|
327 |
-
function select_plural_form($count) {
|
328 |
-
return $this->gettext_select_plural_form($count);
|
329 |
-
}
|
330 |
-
|
331 |
-
/**
|
332 |
-
* @return int
|
333 |
-
*/
|
334 |
-
function get_plural_forms_count() {
|
335 |
-
return $this->_nplurals;
|
336 |
-
}
|
337 |
-
}
|
338 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nextend/Framework/Localization/Pomo/plural-forms.php
DELETED
@@ -1,366 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* A gettext Plural-Forms parser.
|
5 |
-
*
|
6 |
-
* @since 4.9.0
|
7 |
-
*/
|
8 |
-
if (!class_exists('Plural_Forms', false)):
|
9 |
-
class Plural_Forms {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Operator characters.
|
13 |
-
*
|
14 |
-
* @since 4.9.0
|
15 |
-
* @var string OP_CHARS Operator characters.
|
16 |
-
*/
|
17 |
-
const OP_CHARS = '|&><!=%?:';
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Valid number characters.
|
21 |
-
*
|
22 |
-
* @since 4.9.0
|
23 |
-
* @var string NUM_CHARS Valid number characters.
|
24 |
-
*/
|
25 |
-
const NUM_CHARS = '0123456789';
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Operator precedence.
|
29 |
-
*
|
30 |
-
* Operator precedence from highest to lowest. Higher numbers indicate
|
31 |
-
* higher precedence, and are executed first.
|
32 |
-
*
|
33 |
-
* @see https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence
|
34 |
-
*
|
35 |
-
* @since 4.9.0
|
36 |
-
* @var array $op_precedence Operator precedence from highest to lowest.
|
37 |
-
*/
|
38 |
-
protected static $op_precedence = array(
|
39 |
-
'%' => 6,
|
40 |
-
|
41 |
-
'<' => 5,
|
42 |
-
'<=' => 5,
|
43 |
-
'>' => 5,
|
44 |
-
'>=' => 5,
|
45 |
-
|
46 |
-
'==' => 4,
|
47 |
-
'!=' => 4,
|
48 |
-
|
49 |
-
'&&' => 3,
|
50 |
-
|
51 |
-
'||' => 2,
|
52 |
-
|
53 |
-
'?:' => 1,
|
54 |
-
'?' => 1,
|
55 |
-
|
56 |
-
'(' => 0,
|
57 |
-
')' => 0,
|
58 |
-
);
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Tokens generated from the string.
|
62 |
-
*
|
63 |
-
* @since 4.9.0
|
64 |
-
* @var array $tokens List of tokens.
|
65 |
-
*/
|
66 |
-
protected $tokens = array();
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Cache for repeated calls to the function.
|
70 |
-
*
|
71 |
-
* @since 4.9.0
|
72 |
-
* @var array $cache Map of $n => $result
|
73 |
-
*/
|
74 |
-
protected $cache = array();
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Constructor.
|
78 |
-
*
|
79 |
-
* @param string $str Plural function (just the bit after `plural=` from Plural-Forms)
|
80 |
-
*
|
81 |
-
* @since 4.9.0
|
82 |
-
*
|
83 |
-
*/
|
84 |
-
public function __construct($str) {
|
85 |
-
$this->parse($str);
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Parse a Plural-Forms string into tokens.
|
90 |
-
*
|
91 |
-
* Uses the shunting-yard algorithm to convert the string to Reverse Polish
|
92 |
-
* Notation tokens.
|
93 |
-
*
|
94 |
-
* @param string $str String to parse.
|
95 |
-
*
|
96 |
-
* @since 4.9.0
|
97 |
-
*
|
98 |
-
*/
|
99 |
-
protected function parse($str) {
|
100 |
-
$pos = 0;
|
101 |
-
$len = strlen($str);
|
102 |
-
|
103 |
-
// Convert infix operators to postfix using the shunting-yard algorithm.
|
104 |
-
$output = array();
|
105 |
-
$stack = array();
|
106 |
-
while ($pos < $len) {
|
107 |
-
$next = substr($str, $pos, 1);
|
108 |
-
|
109 |
-
switch ($next) {
|
110 |
-
// Ignore whitespace
|
111 |
-
case ' ':
|
112 |
-
case "\t":
|
113 |
-
$pos++;
|
114 |
-
break;
|
115 |
-
|
116 |
-
// Variable (n)
|
117 |
-
case 'n':
|
118 |
-
$output[] = array('var');
|
119 |
-
$pos++;
|
120 |
-
break;
|
121 |
-
|
122 |
-
// Parentheses
|
123 |
-
case '(':
|
124 |
-
$stack[] = $next;
|
125 |
-
$pos++;
|
126 |
-
break;
|
127 |
-
|
128 |
-
case ')':
|
129 |
-
$found = false;
|
130 |
-
while (!empty($stack)) {
|
131 |
-
$o2 = $stack[count($stack) - 1];
|
132 |
-
if ($o2 !== '(') {
|
133 |
-
$output[] = array(
|
134 |
-
'op',
|
135 |
-
array_pop($stack)
|
136 |
-
);
|
137 |
-
continue;
|
138 |
-
}
|
139 |
-
|
140 |
-
// Discard open paren.
|
141 |
-
array_pop($stack);
|
142 |
-
$found = true;
|
143 |
-
break;
|
144 |
-
}
|
145 |
-
|
146 |
-
if (!$found) {
|
147 |
-
throw new Exception('Mismatched parentheses');
|
148 |
-
}
|
149 |
-
|
150 |
-
$pos++;
|
151 |
-
break;
|
152 |
-
|
153 |
-
// Operators
|
154 |
-
case '|':
|
155 |
-
case '&':
|
156 |
-
case '>':
|
157 |
-
case '<':
|
158 |
-
case '!':
|
159 |
-
case '=':
|
160 |
-
case '%':
|
161 |
-
case '?':
|
162 |
-
$end_operator = strspn($str, self::OP_CHARS, $pos);
|
163 |
-
$operator = substr($str, $pos, $end_operator);
|
164 |
-
if (!array_key_exists($operator, self::$op_precedence)) {
|
165 |
-
throw new Exception(sprintf('Unknown operator "%s"', $operator));
|
166 |
-
}
|
167 |
-
|
168 |
-
while (!empty($stack)) {
|
169 |
-
$o2 = $stack[count($stack) - 1];
|
170 |
-
|
171 |
-
// Ternary is right-associative in C
|
172 |
-
if ($operator === '?:' || $operator === '?') {
|
173 |
-
if (self::$op_precedence[$operator] >= self::$op_precedence[$o2]) {
|
174 |
-
break;
|
175 |
-
}
|
176 |
-
} elseif (self::$op_precedence[$operator] > self::$op_precedence[$o2]) {
|
177 |
-
break;
|
178 |
-
}
|
179 |
-
|
180 |
-
$output[] = array(
|
181 |
-
'op',
|
182 |
-
array_pop($stack)
|
183 |
-
);
|
184 |
-
}
|
185 |
-
$stack[] = $operator;
|
186 |
-
|
187 |
-
$pos += $end_operator;
|
188 |
-
break;
|
189 |
-
|
190 |
-
// Ternary "else"
|
191 |
-
case ':':
|
192 |
-
$found = false;
|
193 |
-
$s_pos = count($stack) - 1;
|
194 |
-
while ($s_pos >= 0) {
|
195 |
-
$o2 = $stack[$s_pos];
|
196 |
-
if ($o2 !== '?') {
|
197 |
-
$output[] = array(
|
198 |
-
'op',
|
199 |
-
array_pop($stack)
|
200 |
-
);
|
201 |
-
$s_pos--;
|
202 |
-
continue;
|
203 |
-
}
|
204 |
-
|
205 |
-
// Replace.
|
206 |
-
$stack[$s_pos] = '?:';
|
207 |
-
$found = true;
|
208 |
-
break;
|
209 |
-
}
|
210 |
-
|
211 |
-
if (!$found) {
|
212 |
-
throw new Exception('Missing starting "?" ternary operator');
|
213 |
-
}
|
214 |
-
$pos++;
|
215 |
-
break;
|
216 |
-
|
217 |
-
// Default - number or invalid
|
218 |
-
default:
|
219 |
-
if ($next >= '0' && $next <= '9') {
|
220 |
-
$span = strspn($str, self::NUM_CHARS, $pos);
|
221 |
-
$output[] = array(
|
222 |
-
'value',
|
223 |
-
intval(substr($str, $pos, $span))
|
224 |
-
);
|
225 |
-
$pos += $span;
|
226 |
-
break;
|
227 |
-
}
|
228 |
-
|
229 |
-
throw new Exception(sprintf('Unknown symbol "%s"', $next));
|
230 |
-
}
|
231 |
-
}
|
232 |
-
|
233 |
-
while (!empty($stack)) {
|
234 |
-
$o2 = array_pop($stack);
|
235 |
-
if ($o2 === '(' || $o2 === ')') {
|
236 |
-
throw new Exception('Mismatched parentheses');
|
237 |
-
}
|
238 |
-
|
239 |
-
$output[] = array(
|
240 |
-
'op',
|
241 |
-
$o2
|
242 |
-
);
|
243 |
-
}
|
244 |
-
|
245 |
-
$this->tokens = $output;
|
246 |
-
}
|
247 |
-
|
248 |
-
/**
|
249 |
-
* Get the plural form for a number.
|
250 |
-
*
|
251 |
-
* Caches the value for repeated calls.
|
252 |
-
*
|
253 |
-
* @param int $num Number to get plural form for.
|
254 |
-
*
|
255 |
-
* @return int Plural form value.
|
256 |
-
* @since 4.9.0
|
257 |
-
*
|
258 |
-
*/
|
259 |
-
public function get($num) {
|
260 |
-
if (isset($this->cache[$num])) {
|
261 |
-
return $this->cache[$num];
|
262 |
-
}
|
263 |
-
|
264 |
-
return $this->cache[$num] = $this->execute($num);
|
265 |
-
}
|
266 |
-
|
267 |
-
/**
|
268 |
-
* Execute the plural form function.
|
269 |
-
*
|
270 |
-
* @param int $n Variable "n" to substitute.
|
271 |
-
*
|
272 |
-
* @return int Plural form value.
|
273 |
-
* @since 4.9.0
|
274 |
-
*
|
275 |
-
*/
|
276 |
-
public function execute($n) {
|
277 |
-
$stack = array();
|
278 |
-
$i = 0;
|
279 |
-
$total = count($this->tokens);
|
280 |
-
while ($i < $total) {
|
281 |
-
$next = $this->tokens[$i];
|
282 |
-
$i++;
|
283 |
-
if ($next[0] === 'var') {
|
284 |
-
$stack[] = $n;
|
285 |
-
continue;
|
286 |
-
} elseif ($next[0] === 'value') {
|
287 |
-
$stack[] = $next[1];
|
288 |
-
continue;
|
289 |
-
}
|
290 |
-
|
291 |
-
// Only operators left.
|
292 |
-
switch ($next[1]) {
|
293 |
-
case '%':
|
294 |
-
$v2 = array_pop($stack);
|
295 |
-
$v1 = array_pop($stack);
|
296 |
-
$stack[] = $v1 % $v2;
|
297 |
-
break;
|
298 |
-
|
299 |
-
case '||':
|
300 |
-
$v2 = array_pop($stack);
|
301 |
-
$v1 = array_pop($stack);
|
302 |
-
$stack[] = $v1 || $v2;
|
303 |
-
break;
|
304 |
-
|
305 |
-
case '&&':
|
306 |
-
$v2 = array_pop($stack);
|
307 |
-
$v1 = array_pop($stack);
|
308 |
-
$stack[] = $v1 && $v2;
|
309 |
-
break;
|
310 |
-
|
311 |
-
case '<':
|
312 |
-
$v2 = array_pop($stack);
|
313 |
-
$v1 = array_pop($stack);
|
314 |
-
$stack[] = $v1 < $v2;
|
315 |
-
break;
|
316 |
-
|
317 |
-
case '<=':
|
318 |
-
$v2 = array_pop($stack);
|
319 |
-
$v1 = array_pop($stack);
|
320 |
-
$stack[] = $v1 <= $v2;
|
321 |
-
break;
|
322 |
-
|
323 |
-
case '>':
|
324 |
-
$v2 = array_pop($stack);
|
325 |
-
$v1 = array_pop($stack);
|
326 |
-
$stack[] = $v1 > $v2;
|
327 |
-
break;
|
328 |
-
|
329 |
-
case '>=':
|
330 |
-
$v2 = array_pop($stack);
|
331 |
-
$v1 = array_pop($stack);
|
332 |
-
$stack[] = $v1 >= $v2;
|
333 |
-
break;
|
334 |
-
|
335 |
-
case '!=':
|
336 |
-
$v2 = array_pop($stack);
|
337 |
-
$v1 = array_pop($stack);
|
338 |
-
$stack[] = $v1 != $v2;
|
339 |
-
break;
|
340 |
-
|
341 |
-
case '==':
|
342 |
-
$v2 = array_pop($stack);
|
343 |
-
$v1 = array_pop($stack);
|
344 |
-
$stack[] = $v1 == $v2;
|
345 |
-
break;
|
346 |
-
|
347 |
-
case '?:':
|
348 |
-
$v3 = array_pop($stack);
|
349 |
-
$v2 = array_pop($stack);
|
350 |
-
$v1 = array_pop($stack);
|
351 |
-
$stack[] = $v1 ? $v2 : $v3;
|
352 |
-
break;
|
353 |
-
|
354 |
-
default:
|
355 |
-
throw new Exception(sprintf('Unknown operator "%s"', $next[1]));
|
356 |
-
}
|
357 |
-
}
|
358 |
-
|
359 |
-
if (count($stack) !== 1) {
|
360 |
-
throw new Exception('Too many values remaining on the stack');
|
361 |
-
}
|
362 |
-
|
363 |
-
return (int)$stack[0];
|
364 |
-
}
|
365 |
-
}
|
366 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nextend/Framework/Localization/Pomo/streams.php
DELETED
@@ -1,325 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Classes, which help reading streams of data from files.
|
4 |
-
* Based on the classes from Danilo Segan <danilo@kvota.net>
|
5 |
-
*
|
6 |
-
* @version $Id: streams.php 1157 2015-11-20 04:30:11Z dd32 $
|
7 |
-
* @package pomo
|
8 |
-
* @subpackage streams
|
9 |
-
*/
|
10 |
-
|
11 |
-
if (!class_exists('POMO_Reader', false)):
|
12 |
-
class POMO_Reader {
|
13 |
-
|
14 |
-
var $endian = 'little';
|
15 |
-
var $_post = '';
|
16 |
-
|
17 |
-
/**
|
18 |
-
* PHP5 constructor.
|
19 |
-
*/
|
20 |
-
function __construct() {
|
21 |
-
$this->is_overloaded = ((ini_get("mbstring.func_overload") & 2) != 0) && function_exists('mb_substr');
|
22 |
-
$this->_pos = 0;
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* PHP4 constructor.
|
27 |
-
*/
|
28 |
-
public function POMO_Reader() {
|
29 |
-
self::__construct();
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Sets the endianness of the file.
|
34 |
-
*
|
35 |
-
* @param $endian string 'big' or 'little'
|
36 |
-
*/
|
37 |
-
function setEndian($endian) {
|
38 |
-
$this->endian = $endian;
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Reads a 32bit Integer from the Stream
|
43 |
-
*
|
44 |
-
* @return mixed The integer, corresponding to the next 32 bits from
|
45 |
-
* the stream of false if there are not enough bytes or on error
|
46 |
-
*/
|
47 |
-
function readint32() {
|
48 |
-
$bytes = $this->read(4);
|
49 |
-
if (4 != $this->strlen($bytes)) return false;
|
50 |
-
$endian_letter = ('big' == $this->endian) ? 'N' : 'V';
|
51 |
-
$int = unpack($endian_letter, $bytes);
|
52 |
-
|
53 |
-
return reset($int);
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Reads an array of 32-bit Integers from the Stream
|
58 |
-
*
|
59 |
-
* @param integer count How many elements should be read
|
60 |
-
*
|
61 |
-
* @return mixed Array of integers or false if there isn't
|
62 |
-
* enough data or on error
|
63 |
-
*/
|
64 |
-
function readint32array($count) {
|
65 |
-
$bytes = $this->read(4 * $count);
|
66 |
-
if (4 * $count != $this->strlen($bytes)) return false;
|
67 |
-
$endian_letter = ('big' == $this->endian) ? 'N' : 'V';
|
68 |
-
|
69 |
-
return unpack($endian_letter . $count, $bytes);
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* @param string $string
|
74 |
-
* @param int $start
|
75 |
-
* @param int $length
|
76 |
-
*
|
77 |
-
* @return string
|
78 |
-
*/
|
79 |
-
function substr($string, $start, $length) {
|
80 |
-
if ($this->is_overloaded) {
|
81 |
-
return mb_substr($string, $start, $length, 'ascii');
|
82 |
-
} else {
|
83 |
-
return substr($string, $start, $length);
|
84 |
-
}
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* @param string $string
|
89 |
-
*
|
90 |
-
* @return int
|
91 |
-
*/
|
92 |
-
function strlen($string) {
|
93 |
-
if ($this->is_overloaded) {
|
94 |
-
return mb_strlen($string, 'ascii');
|
95 |
-
} else {
|
96 |
-
return strlen($string);
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
/**
|
101 |
-
* @param string $string
|
102 |
-
* @param int $chunk_size
|
103 |
-
*
|
104 |
-
* @return array
|
105 |
-
*/
|
106 |
-
function str_split($string, $chunk_size) {
|
107 |
-
if (!function_exists('str_split')) {
|
108 |
-
$length = $this->strlen($string);
|
109 |
-
$out = array();
|
110 |
-
for ($i = 0; $i < $length; $i += $chunk_size) $out[] = $this->substr($string, $i, $chunk_size);
|
111 |
-
|
112 |
-
return $out;
|
113 |
-
} else {
|
114 |
-
return str_split($string, $chunk_size);
|
115 |
-
}
|
116 |
-
}
|
117 |
-
|
118 |
-
/**
|
119 |
-
* @return int
|
120 |
-
*/
|
121 |
-
function pos() {
|
122 |
-
return $this->_pos;
|
123 |
-
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* @return true
|
127 |
-
*/
|
128 |
-
function is_resource() {
|
129 |
-
return true;
|
130 |
-
}
|
131 |
-
|
132 |
-
/**
|
133 |
-
* @return true
|
134 |
-
*/
|
135 |
-
function close() {
|
136 |
-
return true;
|
137 |
-
}
|
138 |
-
}
|
139 |
-
endif;
|
140 |
-
|
141 |
-
if (!class_exists('POMO_FileReader', false)):
|
142 |
-
class POMO_FileReader extends POMO_Reader {
|
143 |
-
|
144 |
-
/**
|
145 |
-
* @param string $filename
|
146 |
-
*/
|
147 |
-
function __construct($filename) {
|
148 |
-
parent::POMO_Reader();
|
149 |
-
$this->_f = fopen($filename, 'rb');
|
150 |
-
}
|
151 |
-
|
152 |
-
/**
|
153 |
-
* PHP4 constructor.
|
154 |
-
*/
|
155 |
-
public function POMO_FileReader($filename) {
|
156 |
-
self::__construct($filename);
|
157 |
-
}
|
158 |
-
|
159 |
-
/**
|
160 |
-
* @param int $bytes
|
161 |
-
*/
|
162 |
-
function read($bytes) {
|
163 |
-
return fread($this->_f, $bytes);
|
164 |
-
}
|
165 |
-
|
166 |
-
/**
|
167 |
-
* @param int $pos
|
168 |
-
*
|
169 |
-
* @return boolean
|
170 |
-
*/
|
171 |
-
function seekto($pos) {
|
172 |
-
if (-1 == fseek($this->_f, $pos, SEEK_SET)) {
|
173 |
-
return false;
|
174 |
-
}
|
175 |
-
$this->_pos = $pos;
|
176 |
-
|
177 |
-
return true;
|
178 |
-
}
|
179 |
-
|
180 |
-
/**
|
181 |
-
* @return bool
|
182 |
-
*/
|
183 |
-
function is_resource() {
|
184 |
-
return is_resource($this->_f);
|
185 |
-
}
|
186 |
-
|
187 |
-
/**
|
188 |
-
* @return bool
|
189 |
-
*/
|
190 |
-
function feof() {
|
191 |
-
return feof($this->_f);
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* @return bool
|
196 |
-
*/
|
197 |
-
function close() {
|
198 |
-
return fclose($this->_f);
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* @return string
|
203 |
-
*/
|
204 |
-
function read_all() {
|
205 |
-
$all = '';
|
206 |
-
while (!$this->feof()) $all .= $this->read(4096);
|
207 |
-
|
208 |
-
return $all;
|
209 |
-
}
|
210 |
-
}
|
211 |
-
endif;
|
212 |
-
|
213 |
-
if (!class_exists('POMO_StringReader', false)):
|
214 |
-
/**
|
215 |
-
* Provides file-like methods for manipulating a string instead
|
216 |
-
* of a physical file.
|
217 |
-
*/
|
218 |
-
class POMO_StringReader extends POMO_Reader {
|
219 |
-
|
220 |
-
var $_str = '';
|
221 |
-
|
222 |
-
/**
|
223 |
-
* PHP5 constructor.
|
224 |
-
*/
|
225 |
-
function __construct($str = '') {
|
226 |
-
parent::POMO_Reader();
|
227 |
-
$this->_str = $str;
|
228 |
-
$this->_pos = 0;
|
229 |
-
}
|
230 |
-
|
231 |
-
/**
|
232 |
-
* PHP4 constructor.
|
233 |
-
*/
|
234 |
-
public function POMO_StringReader($str = '') {
|
235 |
-
self::__construct($str);
|
236 |
-
}
|
237 |
-
|
238 |
-
/**
|
239 |
-
* @param string $bytes
|
240 |
-
*
|
241 |
-
* @return string
|
242 |
-
*/
|
243 |
-
function read($bytes) {
|
244 |
-
$data = $this->substr($this->_str, $this->_pos, $bytes);
|
245 |
-
$this->_pos += $bytes;
|
246 |
-
if ($this->strlen($this->_str) < $this->_pos) $this->_pos = $this->strlen($this->_str);
|
247 |
-
|
248 |
-
return $data;
|
249 |
-
}
|
250 |
-
|
251 |
-
/**
|
252 |
-
* @param int $pos
|
253 |
-
*
|
254 |
-
* @return int
|
255 |
-
*/
|
256 |
-
function seekto($pos) {
|
257 |
-
$this->_pos = $pos;
|
258 |
-
if ($this->strlen($this->_str) < $this->_pos) $this->_pos = $this->strlen($this->_str);
|
259 |
-
|
260 |
-
return $this->_pos;
|
261 |
-
}
|
262 |
-
|
263 |
-
/**
|
264 |
-
* @return int
|
265 |
-
*/
|
266 |
-
function length() {
|
267 |
-
return $this->strlen($this->_str);
|
268 |
-
}
|
269 |
-
|
270 |
-
/**
|
271 |
-
* @return string
|
272 |
-
*/
|
273 |
-
function read_all() {
|
274 |
-
return $this->substr($this->_str, $this->_pos, $this->strlen($this->_str));
|
275 |
-
}
|
276 |
-
|
277 |
-
}
|
278 |
-
endif;
|
279 |
-
|
280 |
-
if (!class_exists('POMO_CachedFileReader', false)):
|
281 |
-
/**
|
282 |
-
* Reads the contents of the file in the beginning.
|
283 |
-
*/
|
284 |
-
class POMO_CachedFileReader extends POMO_StringReader {
|
285 |
-
|
286 |
-
/**
|
287 |
-
* PHP5 constructor.
|
288 |
-
*/
|
289 |
-
function __construct($filename) {
|
290 |
-
parent::POMO_StringReader();
|
291 |
-
$this->_str = file_get_contents($filename);
|
292 |
-
if (false === $this->_str) return false;
|
293 |
-
$this->_pos = 0;
|
294 |
-
}
|
295 |
-
|
296 |
-
/**
|
297 |
-
* PHP4 constructor.
|
298 |
-
*/
|
299 |
-
public function POMO_CachedFileReader($filename) {
|
300 |
-
self::__construct($filename);
|
301 |
-
}
|
302 |
-
}
|
303 |
-
endif;
|
304 |
-
|
305 |
-
if (!class_exists('POMO_CachedIntFileReader', false)):
|
306 |
-
/**
|
307 |
-
* Reads the contents of the file in the beginning.
|
308 |
-
*/
|
309 |
-
class POMO_CachedIntFileReader extends POMO_CachedFileReader {
|
310 |
-
|
311 |
-
/**
|
312 |
-
* PHP5 constructor.
|
313 |
-
*/
|
314 |
-
public function __construct($filename) {
|
315 |
-
parent::POMO_CachedFileReader($filename);
|
316 |
-
}
|
317 |
-
|
318 |
-
/**
|
319 |
-
* PHP4 constructor.
|
320 |
-
*/
|
321 |
-
function POMO_CachedIntFileReader($filename) {
|
322 |
-
self::__construct($filename);
|
323 |
-
}
|
324 |
-
}
|
325 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nextend/Framework/Localization/Pomo/translations.php
DELETED
@@ -1,392 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Class for a set of entries for translation and their associated headers
|
4 |
-
*
|
5 |
-
* @version $Id: translations.php 1157 2015-11-20 04:30:11Z dd32 $
|
6 |
-
* @package pomo
|
7 |
-
* @subpackage translations
|
8 |
-
*/
|
9 |
-
|
10 |
-
require_once dirname(__FILE__) . '/plural-forms.php';
|
11 |
-
require_once dirname(__FILE__) . '/entry.php';
|
12 |
-
|
13 |
-
if (!class_exists('Translations', false)):
|
14 |
-
class Translations {
|
15 |
-
|
16 |
-
var $entries = array();
|
17 |
-
var $headers = array();
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Add entry to the PO structure
|
21 |
-
*
|
22 |
-
* @param array|Translation_Entry $entry
|
23 |
-
*
|
24 |
-
* @return bool true on success, false if the entry doesn't have a key
|
25 |
-
*/
|
26 |
-
function add_entry($entry) {
|
27 |
-
if (is_array($entry)) {
|
28 |
-
$entry = new Translation_Entry($entry);
|
29 |
-
}
|
30 |
-
$key = $entry->key();
|
31 |
-
if (false === $key) return false;
|
32 |
-
$this->entries[$key] = &$entry;
|
33 |
-
|
34 |
-
return true;
|
35 |
-
}
|
36 |
-
|
37 |
-
/**
|
38 |
-
* @param array|Translation_Entry $entry
|
39 |
-
*
|
40 |
-
* @return bool
|
41 |
-
*/
|
42 |
-
function add_entry_or_merge($entry) {
|
43 |
-
if (is_array($entry)) {
|
44 |
-
$entry = new Translation_Entry($entry);
|
45 |
-
}
|
46 |
-
$key = $entry->key();
|
47 |
-
if (false === $key) return false;
|
48 |
-
if (isset($this->entries[$key])) $this->entries[$key]->merge_with($entry); else
|
49 |
-
$this->entries[$key] = &$entry;
|
50 |
-
|
51 |
-
return true;
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Sets $header PO header to $value
|
56 |
-
*
|
57 |
-
* If the header already exists, it will be overwritten
|
58 |
-
*
|
59 |
-
* TODO: this should be out of this class, it is gettext specific
|
60 |
-
*
|
61 |
-
* @param string $header header name, without trailing :
|
62 |
-
* @param string $value header value, without trailing \n
|
63 |
-
*/
|
64 |
-
function set_header($header, $value) {
|
65 |
-
$this->headers[$header] = $value;
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* @param array $headers
|
70 |
-
*/
|
71 |
-
function set_headers($headers) {
|
72 |
-
foreach ($headers as $header => $value) {
|
73 |
-
$this->set_header($header, $value);
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
/**
|
78 |
-
* @param string $header
|
79 |
-
*/
|
80 |
-
function get_header($header) {
|
81 |
-
return isset($this->headers[$header]) ? $this->headers[$header] : false;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* @param Translation_Entry $entry
|
86 |
-
*/
|
87 |
-
function translate_entry(&$entry) {
|
88 |
-
$key = $entry->key();
|
89 |
-
|
90 |
-
return isset($this->entries[$key]) ? $this->entries[$key] : false;
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* @param string $singular
|
95 |
-
* @param string $context
|
96 |
-
*
|
97 |
-
* @return string
|
98 |
-
*/
|
99 |
-
function translate($singular, $context = null) {
|
100 |
-
$entry = new Translation_Entry(array(
|
101 |
-
'singular' => $singular,
|
102 |
-
'context' => $context
|
103 |
-
));
|
104 |
-
$translated = $this->translate_entry($entry);
|
105 |
-
|
106 |
-
return ($translated && !empty($translated->translations)) ? $translated->translations[0] : $singular;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Given the number of items, returns the 0-based index of the plural form to use
|
111 |
-
*
|
112 |
-
* Here, in the base Translations class, the common logic for English is implemented:
|
113 |
-
* 0 if there is one element, 1 otherwise
|
114 |
-
*
|
115 |
-
* This function should be overridden by the sub-classes. For example MO/PO can derive the logic
|
116 |
-
* from their headers.
|
117 |
-
*
|
118 |
-
* @param integer $count number of items
|
119 |
-
*/
|
120 |
-
function select_plural_form($count) {
|
121 |
-
return 1 == $count ? 0 : 1;
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* @return int
|
126 |
-
*/
|
127 |
-
function get_plural_forms_count() {
|
128 |
-
return 2;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* @param string $singular
|
133 |
-
* @param string $plural
|
134 |
-
* @param int $count
|
135 |
-
* @param string $context
|
136 |
-
*/
|
137 |
-
function translate_plural($singular, $plural, $count, $context = null) {
|
138 |
-
$entry = new Translation_Entry(array(
|
139 |
-
'singular' => $singular,
|
140 |
-
'plural' => $plural,
|
141 |
-
'context' => $context
|
142 |
-
));
|
143 |
-
$translated = $this->translate_entry($entry);
|
144 |
-
$index = $this->select_plural_form($count);
|
145 |
-
$total_plural_forms = $this->get_plural_forms_count();
|
146 |
-
if ($translated && 0 <= $index && $index < $total_plural_forms && is_array($translated->translations) && isset($translated->translations[$index])) return $translated->translations[$index]; else
|
147 |
-
return 1 == $count ? $singular : $plural;
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Merge $other in the current object.
|
152 |
-
*
|
153 |
-
* @param Object $other Another Translation object, whose translations will be merged in this one (passed by reference).
|
154 |
-
*
|
155 |
-
* @return void
|
156 |
-
**/
|
157 |
-
function merge_with(&$other) {
|
158 |
-
foreach ($other->entries as $entry) {
|
159 |
-
$this->entries[$entry->key()] = $entry;
|
160 |
-
}
|
161 |
-
}
|
162 |
-
|
163 |
-
/**
|
164 |
-
* @param object $other
|
165 |
-
*/
|
166 |
-
function merge_originals_with(&$other) {
|
167 |
-
foreach ($other->entries as $entry) {
|
168 |
-
if (!isset($this->entries[$entry->key()])) $this->entries[$entry->key()] = $entry; else
|
169 |
-
$this->entries[$entry->key()]->merge_with($entry);
|
170 |
-
}
|
171 |
-
}
|
172 |
-
}
|
173 |
-
|
174 |
-
class Gettext_Translations extends Translations {
|
175 |
-
|
176 |
-
/**
|
177 |
-
* The gettext implementation of select_plural_form.
|
178 |
-
*
|
179 |
-
* It lives in this class, because there are more than one descendand, which will use it and
|
180 |
-
* they can't share it effectively.
|
181 |
-
*
|
182 |
-
* @param int $count
|
183 |
-
*/
|
184 |
-
function gettext_select_plural_form($count) {
|
185 |
-
if (!isset($this->_gettext_select_plural_form) || is_null($this->_gettext_select_plural_form)) {
|
186 |
-
list($nplurals, $expression) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms'));
|
187 |
-
$this->_nplurals = $nplurals;
|
188 |
-
$this->_gettext_select_plural_form = $this->make_plural_form_function($nplurals, $expression);
|
189 |
-
}
|
190 |
-
|
191 |
-
return call_user_func($this->_gettext_select_plural_form, $count);
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* @param string $header
|
196 |
-
*
|
197 |
-
* @return array
|
198 |
-
*/
|
199 |
-
function nplurals_and_expression_from_header($header) {
|
200 |
-
if (preg_match('/^\s*nplurals\s*=\s*(\d+)\s*;\s+plural\s*=\s*(.+)$/', $header, $matches)) {
|
201 |
-
$nplurals = (int)$matches[1];
|
202 |
-
$expression = trim($matches[2]);
|
203 |
-
|
204 |
-
return array(
|
205 |
-
$nplurals,
|
206 |
-
$expression
|
207 |
-
);
|
208 |
-
} else {
|
209 |
-
return array(
|
210 |
-
2,
|
211 |
-
'n != 1'
|
212 |
-
);
|
213 |
-
}
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Makes a function, which will return the right translation index, according to the
|
218 |
-
* plural forms header
|
219 |
-
*
|
220 |
-
* @param int $nplurals
|
221 |
-
* @param string $expression
|
222 |
-
*/
|
223 |
-
function make_plural_form_function($nplurals, $expression) {
|
224 |
-
try {
|
225 |
-
$handler = new Plural_Forms(rtrim($expression, ';'));
|
226 |
-
|
227 |
-
return array(
|
228 |
-
$handler,
|
229 |
-
'get'
|
230 |
-
);
|
231 |
-
} catch (Exception $e) {
|
232 |
-
// Fall back to default plural-form function.
|
233 |
-
return $this->make_plural_form_function(2, 'n != 1');
|
234 |
-
}
|
235 |
-
}
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Adds parentheses to the inner parts of ternary operators in
|
239 |
-
* plural expressions, because PHP evaluates ternary oerators from left to right
|
240 |
-
*
|
241 |
-
* @param string $expression the expression without parentheses
|
242 |
-
*
|
243 |
-
* @return string the expression with parentheses added
|
244 |
-
*/
|
245 |
-
function parenthesize_plural_exression($expression) {
|
246 |
-
$expression .= ';';
|
247 |
-
$res = '';
|
248 |
-
$depth = 0;
|
249 |
-
for ($i = 0; $i < strlen($expression); ++$i) {
|
250 |
-
$char = $expression[$i];
|
251 |
-
switch ($char) {
|
252 |
-
case '?':
|
253 |
-
$res .= ' ? (';
|
254 |
-
$depth++;
|
255 |
-
break;
|
256 |
-
case ':':
|
257 |
-
$res .= ') : (';
|
258 |
-
break;
|
259 |
-
case ';':
|
260 |
-
$res .= str_repeat(')', $depth) . ';';
|
261 |
-
$depth = 0;
|
262 |
-
break;
|
263 |
-
default:
|
264 |
-
$res .= $char;
|
265 |
-
}
|
266 |
-
}
|
267 |
-
|
268 |
-
return rtrim($res, ';');
|
269 |
-
}
|
270 |
-
|
271 |
-
/**
|
272 |
-
* @param string $translation
|
273 |
-
*
|
274 |
-
* @return array
|
275 |
-
*/
|
276 |
-
function make_headers($translation) {
|
277 |
-
$headers = array();
|
278 |
-
// sometimes \ns are used instead of real new lines
|
279 |
-
$translation = str_replace('\n', "\n", $translation);
|
280 |
-
$lines = explode("\n", $translation);
|
281 |
-
foreach ($lines as $line) {
|
282 |
-
$parts = explode(':', $line, 2);
|
283 |
-
if (!isset($parts[1])) continue;
|
284 |
-
$headers[trim($parts[0])] = trim($parts[1]);
|
285 |
-
}
|
286 |
-
|
287 |
-
return $headers;
|
288 |
-
}
|
289 |
-
|
290 |
-
/**
|
291 |
-
* @param string $header
|
292 |
-
* @param string $value
|
293 |
-
*/
|
294 |
-
function set_header($header, $value) {
|
295 |
-
parent::set_header($header, $value);
|
296 |
-
if ('Plural-Forms' == $header) {
|
297 |
-
list($nplurals, $expression) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms'));
|
298 |
-
$this->_nplurals = $nplurals;
|
299 |
-
$this->_gettext_select_plural_form = $this->make_plural_form_function($nplurals, $expression);
|
300 |
-
}
|
301 |
-
}
|
302 |
-
}
|
303 |
-
endif;
|
304 |
-
|
305 |
-
if (!class_exists('NOOP_Translations', false)):
|
306 |
-
/**
|
307 |
-
* Provides the same interface as Translations, but doesn't do anything
|
308 |
-
*/
|
309 |
-
class NOOP_Translations {
|
310 |
-
|
311 |
-
var $entries = array();
|
312 |
-
var $headers = array();
|
313 |
-
|
314 |
-
function add_entry($entry) {
|
315 |
-
return true;
|
316 |
-
}
|
317 |
-
|
318 |
-
/**
|
319 |
-
*
|
320 |
-
* @param string $header
|
321 |
-
* @param string $value
|
322 |
-
*/
|
323 |
-
function set_header($header, $value) {
|
324 |
-
}
|
325 |
-
|
326 |
-
/**
|
327 |
-
*
|
328 |
-
* @param array $headers
|
329 |
-
*/
|
330 |
-
function set_headers($headers) {
|
331 |
-
}
|
332 |
-
|
333 |
-
/**
|
334 |
-
* @param string $header
|
335 |
-
*
|
336 |
-
* @return false
|
337 |
-
*/
|
338 |
-
function get_header($header) {
|
339 |
-
return false;
|
340 |
-
}
|
341 |
-
|
342 |
-
/**
|
343 |
-
* @param Translation_Entry $entry
|
344 |
-
*
|
345 |
-
* @return false
|
346 |
-
*/
|
347 |
-
function translate_entry(&$entry) {
|
348 |
-
return false;
|
349 |
-
}
|
350 |
-
|
351 |
-
/**
|
352 |
-
* @param string $singular
|
353 |
-
* @param string $context
|
354 |
-
*/
|
355 |
-
function translate($singular, $context = null) {
|
356 |
-
return $singular;
|
357 |
-
}
|
358 |
-
|
359 |
-
/**
|
360 |
-
*
|
361 |
-
* @param int $count
|
362 |
-
*
|
363 |
-
* @return bool
|
364 |
-
*/
|
365 |
-
function select_plural_form($count) {
|
366 |
-
return 1 == $count ? 0 : 1;
|
367 |
-
}
|
368 |
-
|
369 |
-
/**
|
370 |
-
* @return int
|
371 |
-
*/
|
372 |
-
function get_plural_forms_count() {
|
373 |
-
return 2;
|
374 |
-
}
|
375 |
-
|
376 |
-
/**
|
377 |
-
* @param string $singular
|
378 |
-
* @param string $plural
|
379 |
-
* @param int $count
|
380 |
-
* @param string $context
|
381 |
-
*/
|
382 |
-
function translate_plural($singular, $plural, $count, $context = null) {
|
383 |
-
return 1 == $count ? $singular : $plural;
|
384 |
-
}
|
385 |
-
|
386 |
-
/**
|
387 |
-
* @param object $other
|
388 |
-
*/
|
389 |
-
function merge_with(&$other) {
|
390 |
-
}
|
391 |
-
}
|
392 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nextend/Framework/Localization/WordPress/WordPressLocalization.php
CHANGED
@@ -2,7 +2,9 @@
|
|
2 |
|
3 |
namespace Nextend\Framework\Localization\WordPress;
|
4 |
|
|
|
5 |
use Nextend\Framework\Localization\AbstractLocalization;
|
|
|
6 |
use function get_locale;
|
7 |
use function get_user_locale;
|
8 |
use function is_admin;
|
@@ -14,4 +16,18 @@ class WordPressLocalization extends AbstractLocalization {
|
|
14 |
|
15 |
return is_admin() && function_exists('\\get_user_locale') ? get_user_locale() : get_locale();
|
16 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
2 |
|
3 |
namespace Nextend\Framework\Localization\WordPress;
|
4 |
|
5 |
+
use Mo;
|
6 |
use Nextend\Framework\Localization\AbstractLocalization;
|
7 |
+
use NOOP_Translations;
|
8 |
use function get_locale;
|
9 |
use function get_user_locale;
|
10 |
use function is_admin;
|
16 |
|
17 |
return is_admin() && function_exists('\\get_user_locale') ? get_user_locale() : get_locale();
|
18 |
}
|
19 |
+
|
20 |
+
public function createMo() {
|
21 |
+
|
22 |
+
require_once ABSPATH . WPINC . '/pomo/mo.php';
|
23 |
+
|
24 |
+
return new MO();
|
25 |
+
}
|
26 |
+
|
27 |
+
public function createNOOP_Translations() {
|
28 |
+
|
29 |
+
require_once ABSPATH . WPINC . '/pomo/mo.php';
|
30 |
+
|
31 |
+
return new NOOP_Translations();
|
32 |
+
}
|
33 |
}
|
Nextend/Framework/Misc/Zip/Reader.php
CHANGED
@@ -9,7 +9,7 @@ class Reader {
|
|
9 |
|
10 |
public static function read($path) {
|
11 |
|
12 |
-
if (
|
13 |
$reader = new ZipExtension();
|
14 |
} else {
|
15 |
$reader = new Custom();
|
9 |
|
10 |
public static function read($path) {
|
11 |
|
12 |
+
if (class_exists('ZipArchive') && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
13 |
$reader = new ZipExtension();
|
14 |
} else {
|
15 |
$reader = new Custom();
|
Nextend/Framework/Misc/Zip/Reader/ZipExtension.php
CHANGED
@@ -7,21 +7,24 @@ use Nextend\Framework\Misc\Zip\ReaderInterface;
|
|
7 |
class ZipExtension implements ReaderInterface {
|
8 |
|
9 |
public function read($path) {
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
return array();
|
13 |
}
|
|
|
14 |
$data = array();
|
15 |
-
while ($entry = zip_read($zip)) {
|
16 |
|
17 |
-
|
|
|
|
|
18 |
|
19 |
-
$this->recursiveRead($data, explode('/',
|
20 |
|
21 |
-
zip_entry_close($entry);
|
22 |
}
|
23 |
|
24 |
-
|
25 |
|
26 |
return $data;
|
27 |
}
|
7 |
class ZipExtension implements ReaderInterface {
|
8 |
|
9 |
public function read($path) {
|
10 |
+
|
11 |
+
$zip = new \ZipArchive();
|
12 |
+
|
13 |
+
if (!$zip->open($path)) {
|
14 |
return array();
|
15 |
}
|
16 |
+
|
17 |
$data = array();
|
|
|
18 |
|
19 |
+
for ($i = 0; $i < $zip->numFiles; $i++) {
|
20 |
+
|
21 |
+
$stat = $zip->statIndex($i);
|
22 |
|
23 |
+
$this->recursiveRead($data, explode('/', $stat['name']), $zip->getFromIndex($i));
|
24 |
|
|
|
25 |
}
|
26 |
|
27 |
+
$zip->close();
|
28 |
|
29 |
return $data;
|
30 |
}
|
Nextend/Framework/Pattern/OrderableTrait.php
CHANGED
@@ -4,10 +4,9 @@ namespace Nextend\Framework\Pattern;
|
|
4 |
|
5 |
trait OrderableTrait {
|
6 |
|
7 |
-
protected $ordering = 1000000;
|
8 |
-
|
9 |
public function getOrdering() {
|
10 |
-
|
|
|
11 |
}
|
12 |
|
13 |
/**
|
4 |
|
5 |
trait OrderableTrait {
|
6 |
|
|
|
|
|
7 |
public function getOrdering() {
|
8 |
+
|
9 |
+
return isset($this->ordering) ? $this->ordering : 1000000;
|
10 |
}
|
11 |
|
12 |
/**
|
Nextend/Framework/Pattern/SingletonTrait.php
CHANGED
@@ -12,16 +12,16 @@ trait SingletonTrait {
|
|
12 |
return isset(static::$instance) ? static::$instance : static::$instance = new static;
|
13 |
}
|
14 |
|
15 |
-
|
16 |
$this->init();
|
17 |
}
|
18 |
|
19 |
protected function init() {
|
20 |
}
|
21 |
|
22 |
-
final
|
23 |
}
|
24 |
|
25 |
-
final
|
26 |
}
|
27 |
}
|
12 |
return isset(static::$instance) ? static::$instance : static::$instance = new static;
|
13 |
}
|
14 |
|
15 |
+
private function __construct() {
|
16 |
$this->init();
|
17 |
}
|
18 |
|
19 |
protected function init() {
|
20 |
}
|
21 |
|
22 |
+
final public function __wakeup() {
|
23 |
}
|
24 |
|
25 |
+
final public function __clone() {
|
26 |
}
|
27 |
}
|
Nextend/Framework/Style/ModelStyle.php
CHANGED
@@ -5,7 +5,7 @@ namespace Nextend\Framework\Style;
|
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
use Nextend\Framework\Form\Element\Button;
|
7 |
use Nextend\Framework\Form\Element\MarginPadding;
|
8 |
-
use Nextend\Framework\Form\Element\
|
9 |
use Nextend\Framework\Form\Element\Tab;
|
10 |
use Nextend\Framework\Form\Element\Text\Color;
|
11 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
@@ -69,7 +69,7 @@ class ModelStyle extends ModelVisual {
|
|
69 |
)
|
70 |
));
|
71 |
|
72 |
-
new
|
73 |
|
74 |
new NumberAutoComplete($row1, 'borderradius', n2_('Border radius'), '0', array(
|
75 |
'values' => array(
|
@@ -84,7 +84,7 @@ class ModelStyle extends ModelVisual {
|
|
84 |
));
|
85 |
|
86 |
|
87 |
-
new
|
88 |
|
89 |
new Textarea($row1, 'extracss', 'CSS', '', array(
|
90 |
'width' => 200,
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
use Nextend\Framework\Form\Element\Button;
|
7 |
use Nextend\Framework\Form\Element\MarginPadding;
|
8 |
+
use Nextend\Framework\Form\Element\MixedField;
|
9 |
use Nextend\Framework\Form\Element\Tab;
|
10 |
use Nextend\Framework\Form\Element\Text\Color;
|
11 |
use Nextend\Framework\Form\Element\Text\NumberAutoComplete;
|
69 |
)
|
70 |
));
|
71 |
|
72 |
+
new MixedField\Border($row1, 'border', n2_('Border'), '0|*|solid|*|000000ff');
|
73 |
|
74 |
new NumberAutoComplete($row1, 'borderradius', n2_('Border radius'), '0', array(
|
75 |
'values' => array(
|
84 |
));
|
85 |
|
86 |
|
87 |
+
new MixedField\BoxShadow($row1, 'boxshadow', n2_('Box shadow'), '0|*|0|*|0|*|0|*|000000ff');
|
88 |
|
89 |
new Textarea($row1, 'extracss', 'CSS', '', array(
|
90 |
'width' => 200,
|
Nextend/Framework/Style/StyleRenderer.php
CHANGED
@@ -60,7 +60,8 @@ class StyleRenderer {
|
|
60 |
|
61 |
$template = '';
|
62 |
foreach (self::$mode[$mode]['selectors'] AS $s => $style) {
|
63 |
-
|
|
|
64 |
$template .= $s . "{" . $style . "}";
|
65 |
}
|
66 |
}
|
60 |
|
61 |
$template = '';
|
62 |
foreach (self::$mode[$mode]['selectors'] AS $s => $style) {
|
63 |
+
$key = array_search($style, $search);
|
64 |
+
if (is_numeric($key) && !empty($replace[$key])) {
|
65 |
$template .= $s . "{" . $style . "}";
|
66 |
}
|
67 |
}
|
Nextend/SmartSlider3/Application/Admin/FormManager/Slider/SliderSlides.php
CHANGED
@@ -61,13 +61,8 @@ class SliderSlides extends AbstractSliderTab {
|
|
61 |
*/
|
62 |
$table = new ContainerTable($this->tab, 'slides-randomize', n2_('Randomize'));
|
63 |
|
64 |
-
new OnOff($table->getFieldsetLabel(), 'randomize', false, 0, array(
|
65 |
-
'relatedFieldsOn' => array(
|
66 |
-
'table-rows-slides-randomize'
|
67 |
-
)
|
68 |
-
));
|
69 |
-
|
70 |
$row1 = $table->createRow('slides-randomize-1');
|
|
|
71 |
new OnOff($row1, 'randomizeFirst', n2_('Randomize first'), 0);
|
72 |
new OnOff($row1, 'randomize-cache', n2_('Cache support'), 1);
|
73 |
new Number($row1, 'variations', n2_('Cache variations'), 5, array(
|
61 |
*/
|
62 |
$table = new ContainerTable($this->tab, 'slides-randomize', n2_('Randomize'));
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
$row1 = $table->createRow('slides-randomize-1');
|
65 |
+
new OnOff($row1, 'randomize', n2_('Randomize slides'), 0);
|
66 |
new OnOff($row1, 'randomizeFirst', n2_('Randomize first'), 0);
|
67 |
new OnOff($row1, 'randomize-cache', n2_('Cache support'), 1);
|
68 |
new Number($row1, 'variations', n2_('Cache variations'), 5, array(
|
Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsColumn.php
CHANGED
@@ -8,7 +8,7 @@ use Nextend\Framework\Form\ContainerInterface;
|
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\LayerWindowFocus;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
-
use Nextend\Framework\Form\Element\
|
12 |
use Nextend\Framework\Form\Element\Select;
|
13 |
use Nextend\Framework\Form\Element\Select\Gradient;
|
14 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\LayerWindowFocus;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
+
use Nextend\Framework\Form\Element\MixedField\BoxShadow;
|
12 |
use Nextend\Framework\Form\Element\Select;
|
13 |
use Nextend\Framework\Form\Element\Select\Gradient;
|
14 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsItemCommon.php
CHANGED
@@ -8,10 +8,10 @@ use Nextend\Framework\Form\Container\LayerWindow\ContainerDesign;
|
|
8 |
use Nextend\Framework\Form\Element\Button;
|
9 |
use Nextend\Framework\Form\Element\Decoration;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
-
use Nextend\Framework\Form\Element\
|
12 |
-
use Nextend\Framework\Form\Element\
|
13 |
-
use Nextend\Framework\Form\Element\
|
14 |
-
use Nextend\Framework\Form\Element\
|
15 |
use Nextend\Framework\Form\Element\Radio\TextAlign;
|
16 |
use Nextend\Framework\Form\Element\Select;
|
17 |
use Nextend\Framework\Form\Element\Select\FontWeight;
|
8 |
use Nextend\Framework\Form\Element\Button;
|
9 |
use Nextend\Framework\Form\Element\Decoration;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
+
use Nextend\Framework\Form\Element\MixedField\Border;
|
12 |
+
use Nextend\Framework\Form\Element\MixedField\BoxShadow;
|
13 |
+
use Nextend\Framework\Form\Element\MixedField\FontSize;
|
14 |
+
use Nextend\Framework\Form\Element\MixedField\TextShadow;
|
15 |
use Nextend\Framework\Form\Element\Radio\TextAlign;
|
16 |
use Nextend\Framework\Form\Element\Select;
|
17 |
use Nextend\Framework\Form\Element\Select\FontWeight;
|
Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Settings/LayerWindowSettingsRow.php
CHANGED
@@ -8,7 +8,7 @@ use Nextend\Framework\Form\ContainerInterface;
|
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\LayerWindowFocus;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
-
use Nextend\Framework\Form\Element\
|
12 |
use Nextend\Framework\Form\Element\OnOff;
|
13 |
use Nextend\Framework\Form\Element\Select;
|
14 |
use Nextend\Framework\Form\Element\Select\Gradient;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\LayerWindowFocus;
|
10 |
use Nextend\Framework\Form\Element\MarginPadding;
|
11 |
+
use Nextend\Framework\Form\Element\MixedField\BoxShadow;
|
12 |
use Nextend\Framework\Form\Element\OnOff;
|
13 |
use Nextend\Framework\Form\Element\Select;
|
14 |
use Nextend\Framework\Form\Element\Select\Gradient;
|
Nextend/SmartSlider3/Application/Admin/Layout/Block/Slide/LayerWindow/Tab/TabAnimation.php
CHANGED
@@ -6,7 +6,7 @@ namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Slide\LayerWindow\
|
|
6 |
|
7 |
use Nextend\Framework\Form\Container\LayerWindow\ContainerAnimation;
|
8 |
use Nextend\Framework\Form\Element\Grouping;
|
9 |
-
use Nextend\Framework\Form\Element\
|
10 |
use Nextend\Framework\Form\Element\OnOff;
|
11 |
use Nextend\Framework\Form\Element\Select;
|
12 |
use Nextend\Framework\Form\Element\Select\Easing;
|
6 |
|
7 |
use Nextend\Framework\Form\Container\LayerWindow\ContainerAnimation;
|
8 |
use Nextend\Framework\Form\Element\Grouping;
|
9 |
+
use Nextend\Framework\Form\Element\MixedField;
|
10 |
use Nextend\Framework\Form\Element\OnOff;
|
11 |
use Nextend\Framework\Form\Element\Select;
|
12 |
use Nextend\Framework\Form\Element\Select\Easing;
|
Nextend/SmartSlider3/Application/Admin/Settings/ViewSettingsGeneral.php
CHANGED
@@ -7,7 +7,7 @@ use Nextend\Framework\Form\Container\ContainerTable;
|
|
7 |
use Nextend\Framework\Form\Element\Breakpoint;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\Message\Notice;
|
10 |
-
use Nextend\Framework\Form\Element\
|
11 |
use Nextend\Framework\Form\Element\OnOff;
|
12 |
use Nextend\Framework\Form\Element\Select;
|
13 |
use Nextend\Framework\Form\Element\Text;
|
@@ -166,7 +166,7 @@ class ViewSettingsGeneral extends AbstractViewSettings {
|
|
166 |
|
167 |
$row2 = $table->createRow('translate-url-2');
|
168 |
|
169 |
-
$translateUrl = new
|
170 |
new Text($translateUrl, 'translate-url-1', n2_('From'), '', array(
|
171 |
'style' => 'width:200px;',
|
172 |
'tipLabel' => n2_('From'),
|
7 |
use Nextend\Framework\Form\Element\Breakpoint;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
use Nextend\Framework\Form\Element\Message\Notice;
|
10 |
+
use Nextend\Framework\Form\Element\MixedField;
|
11 |
use Nextend\Framework\Form\Element\OnOff;
|
12 |
use Nextend\Framework\Form\Element\Select;
|
13 |
use Nextend\Framework\Form\Element\Text;
|
166 |
|
167 |
$row2 = $table->createRow('translate-url-2');
|
168 |
|
169 |
+
$translateUrl = new MixedField($row2, 'translate-url', false, '|*|');
|
170 |
new Text($translateUrl, 'translate-url-1', n2_('From'), '', array(
|
171 |
'style' => 'width:200px;',
|
172 |
'tipLabel' => n2_('From'),
|
Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsAllCustomPosts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
-
use Nextend\Framework\Form\Element\
|
7 |
use Nextend\Framework\Form\Element\Select;
|
8 |
use Nextend\Framework\Form\Element\Select\Filter;
|
9 |
use Nextend\Framework\Form\Element\Text;
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
+
use Nextend\Framework\Form\Element\MixedField\GeneratorOrder;
|
7 |
use Nextend\Framework\Form\Element\Select;
|
8 |
use Nextend\Framework\Form\Element\Select\Filter;
|
9 |
use Nextend\Framework\Form\Element\Text;
|
Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsCustomPosts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
-
use Nextend\Framework\Form\Element\
|
7 |
use Nextend\Framework\Form\Element\OnOff;
|
8 |
use Nextend\Framework\Form\Element\Radio;
|
9 |
use Nextend\Framework\Form\Element\Select;
|
@@ -213,7 +213,9 @@ class PostsCustomPosts extends AbstractGenerator {
|
|
213 |
|
214 |
protected function _getData($count, $startIndex) {
|
215 |
global $post, $wp_query;
|
216 |
-
$tmpPost
|
|
|
|
|
217 |
|
218 |
if (has_filter('the_content', 'siteorigin_panels_filter_content')) {
|
219 |
$siteorigin_panels_filter_content = true;
|
@@ -390,8 +392,14 @@ class PostsCustomPosts extends AbstractGenerator {
|
|
390 |
$userID = get_the_author_meta('ID');
|
391 |
$record['author_url'] = get_author_posts_url($userID);
|
392 |
$record['author_avatar'] = get_avatar_url($userID);
|
393 |
-
|
394 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
|
396 |
$thumbnail_id = get_post_thumbnail_id($post->ID);
|
397 |
$record['featured_image'] = wp_get_attachment_image_url($thumbnail_id, 'full');
|
@@ -477,7 +485,7 @@ class PostsCustomPosts extends AbstractGenerator {
|
|
477 |
|
478 |
foreach ($taxonomies AS $taxonomy) {
|
479 |
$post_terms = wp_get_object_terms($post->ID, $taxonomy, $args);
|
480 |
-
$taxonomy
|
481 |
|
482 |
for ($j = 0; $j < count($post_terms); $j++) {
|
483 |
$record[$taxonomy . '_' . ($j + 1)] = $post_terms[$j]->name;
|
@@ -576,7 +584,7 @@ class PostsCustomPosts extends AbstractGenerator {
|
|
576 |
$wp_query->post = $tmpPost;
|
577 |
wp_reset_postdata();
|
578 |
|
579 |
-
if ($
|
580 |
$translate_dates = $this->data->get('translatedate', '');
|
581 |
$translateValue = explode(PHP_EOL, $translate_dates);
|
582 |
$translate = array();
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
+
use Nextend\Framework\Form\Element\MixedField\GeneratorOrder;
|
7 |
use Nextend\Framework\Form\Element\OnOff;
|
8 |
use Nextend\Framework\Form\Element\Radio;
|
9 |
use Nextend\Framework\Form\Element\Select;
|
213 |
|
214 |
protected function _getData($count, $startIndex) {
|
215 |
global $post, $wp_query;
|
216 |
+
$tmpPost = $post;
|
217 |
+
|
218 |
+
$identifyDateTime = $this->data->get('identifydatetime', 0);
|
219 |
|
220 |
if (has_filter('the_content', 'siteorigin_panels_filter_content')) {
|
221 |
$siteorigin_panels_filter_content = true;
|
392 |
$userID = get_the_author_meta('ID');
|
393 |
$record['author_url'] = get_author_posts_url($userID);
|
394 |
$record['author_avatar'] = get_avatar_url($userID);
|
395 |
+
|
396 |
+
if ($identifyDateTime) {
|
397 |
+
$record['date'] = get_the_date('Y-m-d H:i:s');
|
398 |
+
$record['modified'] = get_the_modified_date('Y-m-d H:i:s');
|
399 |
+
} else {
|
400 |
+
$record['date'] = get_the_date();
|
401 |
+
$record['modified'] = get_the_modified_date();
|
402 |
+
}
|
403 |
|
404 |
$thumbnail_id = get_post_thumbnail_id($post->ID);
|
405 |
$record['featured_image'] = wp_get_attachment_image_url($thumbnail_id, 'full');
|
485 |
|
486 |
foreach ($taxonomies AS $taxonomy) {
|
487 |
$post_terms = wp_get_object_terms($post->ID, $taxonomy, $args);
|
488 |
+
$taxonomy = str_replace('-', '', $taxonomy);
|
489 |
|
490 |
for ($j = 0; $j < count($post_terms); $j++) {
|
491 |
$record[$taxonomy . '_' . ($j + 1)] = $post_terms[$j]->name;
|
584 |
$wp_query->post = $tmpPost;
|
585 |
wp_reset_postdata();
|
586 |
|
587 |
+
if ($identifyDateTime) {
|
588 |
$translate_dates = $this->data->get('translatedate', '');
|
589 |
$translateValue = explode(PHP_EOL, $translate_dates);
|
590 |
$translate = array();
|
Nextend/SmartSlider3/Generator/WordPress/Posts/Sources/PostsPosts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
-
use Nextend\Framework\Form\Element\
|
7 |
use Nextend\Framework\Form\Element\OnOff;
|
8 |
use Nextend\Framework\Form\Element\Select;
|
9 |
use Nextend\Framework\Form\Element\Select\Filter;
|
@@ -337,8 +337,8 @@ class PostsPosts extends AbstractGenerator {
|
|
337 |
$userID = get_the_author_meta('ID');
|
338 |
$record['author_url'] = get_author_posts_url($userID);
|
339 |
$record['author_avatar'] = get_avatar_url($userID);
|
340 |
-
$record['date'] = get_the_date();
|
341 |
-
$record['modified'] = get_the_modified_date();
|
342 |
|
343 |
$category = get_the_category($post->ID);
|
344 |
if (isset($category[0])) {
|
@@ -519,6 +519,13 @@ class PostsPosts extends AbstractGenerator {
|
|
519 |
}
|
520 |
}
|
521 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
if (!empty($remove_shortcode)) {
|
523 |
foreach ($remove_shortcode as $variable) {
|
524 |
if (isset($record[$variable])) {
|
3 |
namespace Nextend\SmartSlider3\Generator\WordPress\Posts\Sources;
|
4 |
|
5 |
use Nextend\Framework\Form\Container\ContainerTable;
|
6 |
+
use Nextend\Framework\Form\Element\MixedField\GeneratorOrder;
|
7 |
use Nextend\Framework\Form\Element\OnOff;
|
8 |
use Nextend\Framework\Form\Element\Select;
|
9 |
use Nextend\Framework\Form\Element\Select\Filter;
|
337 |
$userID = get_the_author_meta('ID');
|
338 |
$record['author_url'] = get_author_posts_url($userID);
|
339 |
$record['author_avatar'] = get_avatar_url($userID);
|
340 |
+
$record['date'] = get_the_date('Y-m-d H:i:s');
|
341 |
+
$record['modified'] = get_the_modified_date('Y-m-d H:i:s');
|
342 |
|
343 |
$category = get_the_category($post->ID);
|
344 |
if (isset($category[0])) {
|
519 |
}
|
520 |
}
|
521 |
|
522 |
+
/**
|
523 |
+
* We used 'Y-m-d H:i:s' date format, so we can get the hour, minute and second for custom date variables.
|
524 |
+
* but we need to set the date and modified variables back to the WordPress default date_format.
|
525 |
+
*/
|
526 |
+
$record['date'] = get_the_date();
|
527 |
+
$record['modified'] = get_the_modified_date();
|
528 |
+
|
529 |
if (!empty($remove_shortcode)) {
|
530 |
foreach ($remove_shortcode as $variable) {
|
531 |
if (isset($record[$variable])) {
|
Nextend/SmartSlider3/Platform/WordPress/Compatibility.php
CHANGED
@@ -66,16 +66,7 @@ class Compatibility {
|
|
66 |
if (isset($_GET['pswLoad']) && $_GET['pswLoad'] == 1) {
|
67 |
Shortcode::forceIframe('psw');
|
68 |
}
|
69 |
-
|
70 |
-
/*
|
71 |
-
* WP Rocket remove from exclusion
|
72 |
-
*/
|
73 |
-
if (defined('WP_ROCKET_VERSION') && version_compare(WP_ROCKET_VERSION, '3.7.1.1') < 1) {
|
74 |
-
add_filter('rocket_excluded_inline_js_content', array(
|
75 |
-
$this,
|
76 |
-
'remove_rocket_excluded_inline_js_content'
|
77 |
-
));
|
78 |
-
}
|
79 |
}
|
80 |
|
81 |
public function removeEmoji() {
|
@@ -98,13 +89,4 @@ class Compatibility {
|
|
98 |
|
99 |
return $permalink;
|
100 |
}
|
101 |
-
|
102 |
-
public function remove_rocket_excluded_inline_js_content($excluded_inline) {
|
103 |
-
|
104 |
-
if (($index = array_search('SmartSliderSimple', $excluded_inline)) !== false) {
|
105 |
-
array_splice($excluded_inline, $index, 1);
|
106 |
-
}
|
107 |
-
|
108 |
-
return $excluded_inline;
|
109 |
-
}
|
110 |
}
|
66 |
if (isset($_GET['pswLoad']) && $_GET['pswLoad'] == 1) {
|
67 |
Shortcode::forceIframe('psw');
|
68 |
}
|
69 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
public function removeEmoji() {
|
89 |
|
90 |
return $permalink;
|
91 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
Nextend/SmartSlider3/Platform/WordPress/Integration/WPRocket/WPRocket.php
CHANGED
@@ -8,17 +8,62 @@ class WPRocket {
|
|
8 |
|
9 |
public function __construct() {
|
10 |
|
11 |
-
if (
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
}
|
19 |
}
|
20 |
|
21 |
public function init() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
Plugin::addFilter('n2_style_loader_src', array(
|
23 |
$this,
|
24 |
'filterSrcCDN'
|
8 |
|
9 |
public function __construct() {
|
10 |
|
11 |
+
if (defined('WP_ROCKET_VERSION')) {
|
12 |
+
$this->init();
|
13 |
+
|
14 |
+
if (function_exists('get_rocket_cdn_url') && function_exists("get_rocket_option")) {
|
15 |
+
if (get_rocket_option('cdn', 0)) {
|
16 |
+
add_action('init', array(
|
17 |
+
$this,
|
18 |
+
'initCDN'
|
19 |
+
));
|
20 |
+
}
|
21 |
}
|
22 |
}
|
23 |
}
|
24 |
|
25 |
public function init() {
|
26 |
+
|
27 |
+
if (version_compare(WP_ROCKET_VERSION, '3.7.1.1', '<=')) {
|
28 |
+
/**
|
29 |
+
* @see https://nextendweb.atlassian.net/browse/SSDEV-2335
|
30 |
+
*/
|
31 |
+
add_filter('rocket_excluded_inline_js_content', array(
|
32 |
+
$this,
|
33 |
+
'remove_rocket_excluded_inline_js_content'
|
34 |
+
));
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* @see https://nextendweb.atlassian.net/browse/SSDEV-2434
|
39 |
+
*/
|
40 |
+
add_filter('rocket_defer_inline_exclusions', array(
|
41 |
+
$this,
|
42 |
+
'rocket_defer_inline_exclusions'
|
43 |
+
));
|
44 |
+
}
|
45 |
+
|
46 |
+
public function remove_rocket_excluded_inline_js_content($excluded_inline) {
|
47 |
+
|
48 |
+
if (($index = array_search('SmartSliderSimple', $excluded_inline)) !== false) {
|
49 |
+
array_splice($excluded_inline, $index, 1);
|
50 |
+
}
|
51 |
+
|
52 |
+
return $excluded_inline;
|
53 |
+
}
|
54 |
+
|
55 |
+
public function rocket_defer_inline_exclusions($regexp) {
|
56 |
+
|
57 |
+
if (!empty($regexp)) {
|
58 |
+
$regexp .= '|';
|
59 |
+
}
|
60 |
+
|
61 |
+
$regexp .= 'N2R';
|
62 |
+
|
63 |
+
return $regexp;
|
64 |
+
}
|
65 |
+
|
66 |
+
public function initCDN() {
|
67 |
Plugin::addFilter('n2_style_loader_src', array(
|
68 |
$this,
|
69 |
'filterSrcCDN'
|
Nextend/SmartSlider3/Renderable/Item/Button/ItemButton.php
CHANGED
@@ -27,14 +27,14 @@ class ItemButton extends AbstractItem {
|
|
27 |
protected $fonts = array(
|
28 |
'font' => array(
|
29 |
'defaultName' => 'item-button-font',
|
30 |
-
'value' => '{"data":[{"color":"ffffffff","size":"14||px","align":"center"}]}'
|
31 |
)
|
32 |
);
|
33 |
|
34 |
protected $styles = array(
|
35 |
'style' => array(
|
36 |
'defaultName' => 'item-button-style',
|
37 |
-
'value' => '{"data":[{"backgroundcolor":"5cba3cff","padding":"10|*|30|*|10|*|30|*|px"}]}'
|
38 |
)
|
39 |
);
|
40 |
|
27 |
protected $fonts = array(
|
28 |
'font' => array(
|
29 |
'defaultName' => 'item-button-font',
|
30 |
+
'value' => '{"data":[{"color":"ffffffff","size":"14||px","align":"center"}, {"extra":""}]}'
|
31 |
)
|
32 |
);
|
33 |
|
34 |
protected $styles = array(
|
35 |
'style' => array(
|
36 |
'defaultName' => 'item-button-style',
|
37 |
+
'value' => '{"data":[{"backgroundcolor":"5cba3cff","padding":"10|*|30|*|10|*|30|*|px"}, {"extra":""}]}'
|
38 |
)
|
39 |
);
|
40 |
|
Nextend/SmartSlider3/Renderable/Item/Heading/ItemHeading.php
CHANGED
@@ -8,7 +8,7 @@ use Nextend\Framework\Form\Container\ContainerTable;
|
|
8 |
use Nextend\Framework\Form\Element\Font;
|
9 |
use Nextend\Framework\Form\Element\Hidden\HiddenFont;
|
10 |
use Nextend\Framework\Form\Element\Hidden\HiddenStyle;
|
11 |
-
use Nextend\Framework\Form\Element\
|
12 |
use Nextend\Framework\Form\Element\OnOff;
|
13 |
use Nextend\Framework\Form\Element\Select;
|
14 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
@@ -30,7 +30,7 @@ class ItemHeading extends AbstractItem {
|
|
30 |
protected $fonts = array(
|
31 |
'font' => array(
|
32 |
'defaultName' => 'item-heading-font',
|
33 |
-
'value' => '{"data":[{"color":"ffffffff","size":"36||px","align":"inherit"}]}'
|
34 |
)
|
35 |
);
|
36 |
|
8 |
use Nextend\Framework\Form\Element\Font;
|
9 |
use Nextend\Framework\Form\Element\Hidden\HiddenFont;
|
10 |
use Nextend\Framework\Form\Element\Hidden\HiddenStyle;
|
11 |
+
use Nextend\Framework\Form\Element\MixedField;
|
12 |
use Nextend\Framework\Form\Element\OnOff;
|
13 |
use Nextend\Framework\Form\Element\Select;
|
14 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
30 |
protected $fonts = array(
|
31 |
'font' => array(
|
32 |
'defaultName' => 'item-heading-font',
|
33 |
+
'value' => '{"data":[{"color":"ffffffff","size":"36||px","align":"inherit"},{"extra":""}]}'
|
34 |
)
|
35 |
);
|
36 |
|
Nextend/SmartSlider3/Renderable/Item/Image/ItemImage.php
CHANGED
@@ -6,7 +6,7 @@ namespace Nextend\SmartSlider3\Renderable\Item\Image;
|
|
6 |
|
7 |
use Nextend\Framework\Form\Container\ContainerTable;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
-
use Nextend\Framework\Form\Element\
|
10 |
use Nextend\Framework\Form\Element\OnOff;
|
11 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
12 |
use Nextend\Framework\Form\Element\Style;
|
@@ -148,7 +148,7 @@ class ItemImage extends AbstractItem {
|
|
148 |
));
|
149 |
|
150 |
$size = new Fieldset\LayerWindow\FieldsetLayerWindow($container, 'item-image-misc', n2_('Size'));
|
151 |
-
$misc = new
|
152 |
new Text($misc, 'size-1', n2_('Width'), '', array(
|
153 |
'style' => 'width:60px;',
|
154 |
'tipLabel' => n2_('Width'),
|
6 |
|
7 |
use Nextend\Framework\Form\Container\ContainerTable;
|
8 |
use Nextend\Framework\Form\Element\Hidden;
|
9 |
+
use Nextend\Framework\Form\Element\MixedField;
|
10 |
use Nextend\Framework\Form\Element\OnOff;
|
11 |
use Nextend\Framework\Form\Element\Select\LinkTarget;
|
12 |
use Nextend\Framework\Form\Element\Style;
|
148 |
));
|
149 |
|
150 |
$size = new Fieldset\LayerWindow\FieldsetLayerWindow($container, 'item-image-misc', n2_('Size'));
|
151 |
+
$misc = new MixedField($size, 'size', false, 'auto|*|auto');
|
152 |
new Text($misc, 'size-1', n2_('Width'), '', array(
|
153 |
'style' => 'width:60px;',
|
154 |
'tipLabel' => n2_('Width'),
|
Nextend/SmartSlider3/Slider/Cache/CacheSlider.php
CHANGED
@@ -92,7 +92,7 @@ class CacheSlider extends Manifest {
|
|
92 |
echo n2_('Slider error! Generator source not found: ' . $type);
|
93 |
} else {
|
94 |
|
95 |
-
$fileName .=
|
96 |
$generatorSource,
|
97 |
'cacheKey'
|
98 |
), $params);
|
92 |
echo n2_('Slider error! Generator source not found: ' . $type);
|
93 |
} else {
|
94 |
|
95 |
+
$fileName .= call_user_func(array(
|
96 |
$generatorSource,
|
97 |
'cacheKey'
|
98 |
), $params);
|
Nextend/SmartSlider3/Slider/Slides.php
CHANGED
@@ -129,7 +129,7 @@ class Slides {
|
|
129 |
$slides = array_reverse($slides);
|
130 |
}
|
131 |
|
132 |
-
if (
|
133 |
$this->slider->setActiveSlide($slides[mt_rand(0, count($slides) - 1)]);
|
134 |
} else {
|
135 |
for ($i = 0; $i < count($slides); $i++) {
|
129 |
$slides = array_reverse($slides);
|
130 |
}
|
131 |
|
132 |
+
if (!$randomizeCache && $randomizeFirst) {
|
133 |
$this->slider->setActiveSlide($slides[mt_rand(0, count($slides) - 1)]);
|
134 |
} else {
|
135 |
for ($i = 0; $i < count($slides); $i++) {
|
Nextend/SmartSlider3/SmartSlider3Info.php
CHANGED
@@ -14,15 +14,15 @@ use Nextend\SmartSlider3\Application\Model\ModelLicense;
|
|
14 |
|
15 |
class SmartSlider3Info {
|
16 |
|
17 |
-
public static $version = '3.4.1.
|
18 |
|
19 |
public static $channel = 'stable';
|
20 |
|
21 |
-
public static $revision = '
|
22 |
|
23 |
-
public static $revisionShort = '
|
24 |
|
25 |
-
public static $branch = 'release-3.4.1.
|
26 |
|
27 |
public static $completeVersion;
|
28 |
|
14 |
|
15 |
class SmartSlider3Info {
|
16 |
|
17 |
+
public static $version = '3.4.1.15';
|
18 |
|
19 |
public static $channel = 'stable';
|
20 |
|
21 |
+
public static $revision = 'd604e393e105b8e4143ddfaef88160b90eb2392e';
|
22 |
|
23 |
+
public static $revisionShort = 'd604e393';
|
24 |
|
25 |
+
public static $branch = 'release-3.4.1.15';
|
26 |
|
27 |
public static $completeVersion;
|
28 |
|
Public/SmartSlider3/Application/Frontend/Assets/dist/nextend-webfontloader.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){function e(t,n,i){return t.call.apply(t.bind,arguments)}function o(n,i,t){if(!n)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,e),n.apply(i,t)}}return function(){return n.apply(i,arguments)}}function g(t,n,i){return(g=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:o).apply(null,arguments)}var r=Date.now||function(){return+new Date};function n(t,n){this.a=t,this.o=n||t,this.c=this.o.document}var c=!!window.FontFace;function h(t,n,i,e){if(n=t.c.createElement(n),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?n.style.cssText=i[o]:n.setAttribute(o,i[o]));return e&&n.appendChild(t.c.createTextNode(e)),n}function f(t,n,i){(t=(t=t.c.getElementsByTagName(n)[0])||document.documentElement).insertBefore(i,t.lastChild)}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,n,i){n=n||[],i=i||[];for(var e=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var a=!1,s=0;s<e.length;s+=1)if(n[o]===e[s]){a=!0;break}a||e.push(n[o])}for(n=[],o=0;o<e.length;o+=1){for(a=!1,s=0;s<i.length;s+=1)if(e[o]===i[s]){a=!0;break}a||n.push(e[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function a(t,n){for(var i=t.className.split(/\s+/),e=0,o=i.length;e<o;e++)if(i[e]==n)return!0;return!1}function l(t,n,i){function e(){s&&o&&(s(a),s=null)}n=h(t,"link",{rel:"stylesheet",href:n,media:"all"});var o=!1,a=null,s=i||null;c?(n.onload=function(){o=!0,e()},n.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),e()}):setTimeout(function(){o=!0,e()},0),f(t,"head",n)}function u(t,n,i,e){var o=t.c.getElementsByTagName("head")[0];if(o){var a=h(t,"script",{src:n}),s=!1;return a.onload=a.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,i&&i(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){s||(s=!0,i&&i(Error("Script load timeout")))},e||5e3),a}return null}function p(){this.a=0,this.c=null}function v(t){return t.a++,function(){t.a--,s(t)}}function w(t,n){t.c=n,s(t)}function s(t){0==t.a&&t.c&&(t.c(),t.c=null)}function m(t){this.a=t||"-"}function y(t,n){this.c=t,this.f=4,this.a="n";n=(n||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(t){var n=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var e=t[i].replace(/['"]/g,"");-1!=e.indexOf(" ")||/^\d/.test(e)?n.push("'"+e+"'"):n.push(e)}return n.join(",")}function j(t){return t.a+t.f}function x(t){var n="normal";return"o"===t.a?n="oblique":"i"===t.a&&(n="italic"),n}function _(t,n){this.c=t,this.f=t.o.document.documentElement,this.h=n,this.a=new m("-"),this.j=!1!==n.events,this.g=!1!==n.classes}function k(t){var n,i,e;t.g&&(n=a(t.f,t.a.c("wf","active")),i=[],e=[t.a.c("wf","loading")],n||i.push(t.a.c("wf","inactive")),d(t.f,i,e)),T(t,"inactive")}function T(t,n,i){t.j&&t.h[n]&&(i?t.h[n](i.c,j(i)):t.h[n]())}function S(){this.c={}}function C(t,n){this.c=t,this.f=n,this.a=h(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){f(t.c,"body",t.a)}function N(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(t.c)+";font-style:"+x(t)+";font-weight:"+t.f+"00;"}function E(t,n,i,e,o,a){this.g=t,this.j=n,this.a=e,this.c=i,this.f=o||3e3,this.h=a||void 0}function W(t,n,i,e,o,a,s){this.v=t,this.B=n,this.c=i,this.a=e,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new C(this.c,this.s),this.h=new C(this.c,this.s),this.j=new C(this.c,this.s),this.m=new C(this.c,this.s),t=N(t=new y(this.a.c+",serif",j(this.a))),this.g.a.style.cssText=t,t=N(t=new y(this.a.c+",sans-serif",j(this.a))),this.h.a.style.cssText=t,t=N(t=new y("serif",j(this.a))),this.j.a.style.cssText=t,t=N(t=new y("sans-serif",j(this.a))),this.m.a.style.cssText=t,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(t){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)},E.prototype.start=function(){var o=this.c.o.document,a=this,s=r(),t=new Promise(function(i,e){!function n(){var t;r()-s>=a.f?e():o.fonts.load(x(t=a.a)+" "+t.f+"00 300px "+b(t.c),a.h).then(function(t){1<=t.length?i():setTimeout(n,25)},function(){e()})}()}),i=null,n=new Promise(function(t,n){i=setTimeout(n,a.f)});Promise.race([n,t]).then(function(){i&&(clearTimeout(i),i=null),a.g(a.a)},function(){a.j(a.a)})};var F={D:"serif",C:"sans-serif"},I=null;function O(){var t;return null===I&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),I=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)),I}function P(t,n,i){for(var e in F)if(F.hasOwnProperty(e)&&n===t.f[F[e]]&&i===t.f[F[e]])return!0;return!1}function B(t){var n,i=t.g.a.offsetWidth,e=t.h.a.offsetWidth;(n=i===t.f.serif&&e===t.f["sans-serif"])||(n=O()&&P(t,i,e)),n?r()-t.A>=t.w?O()&&P(t,i,e)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?L(t,t.v):L(t,t.B):setTimeout(g(function(){B(this)},t),50):L(t,t.v)}function L(t,n){setTimeout(g(function(){i(this.g.a),i(this.h.a),i(this.j.a),i(this.m.a),n(this.a)},t),0)}function D(t,n,i){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=i}W.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),B(this)};var $=null;function q(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),T(t,"active")):k(t.a))}function t(t){this.j=t,this.a=new S,this.h=0,this.f=this.g=!0}function H(t,n){this.c=t,this.a=n}function M(t,n){this.c=t,this.a=n}function z(t,n){this.c=t||"https://fonts.googleapis.com/css",this.a=[],this.f=[],this.g=n||""}D.prototype.g=function(t){var n=this.a;n.g&&d(n.f,[n.a.c("wf",t.c,j(t).toString(),"active")],[n.a.c("wf",t.c,j(t).toString(),"loading"),n.a.c("wf",t.c,j(t).toString(),"inactive")]),T(n,"fontactive",t),this.m=!0,q(this)},D.prototype.h=function(t){var n,i,e,o=this.a;o.g&&(n=a(o.f,o.a.c("wf",t.c,j(t).toString(),"active")),i=[],e=[o.a.c("wf",t.c,j(t).toString(),"loading")],n||i.push(o.a.c("wf",t.c,j(t).toString(),"inactive")),d(o.f,i,e)),T(o,"fontinactive",t),q(this)},t.prototype.load=function(t){this.c=new n(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(e,t,n){var i=[],o=n.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),T(t,"loading")}(t);var i=function(t,n,i){var e,o,a=[];for(e in n)!n.hasOwnProperty(e)||(o=t.c[e])&&a.push(o(n[e],i));return a}(e.a,n,e.c),a=new D(e.c,t,o);for(e.h=i.length,t=0,n=i.length;t<n;t++)i[t].load(function(t,n,i){var h,f,l,u,p;h=a,f=t,l=n,u=i,p=0==--(i=e).h,(i.f||i.g)&&setTimeout(function(){var t=u||null,n=l||{};if(0===f.length&&p)k(h.a);else{h.f+=f.length,p&&(h.j=p);for(var i=[],e=0;e<f.length;e++){var o,a=f[e],s=n[a.c],r=h.a,c=a;r.g&&d(r.f,[r.a.c("wf",c.c,j(c).toString(),"loading")]),T(r,"fontloading",c),(r=null)===$&&($=!!window.FontFace&&(c=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),o=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor),c?42<parseInt(c[1],10):!o)),r=$?new E(g(h.g,h),g(h.h,h),h.c,a,h.s,s):new W(g(h.g,h),g(h.h,h),h.c,a,h.s,t,s),i.push(r)}for(e=0;e<i.length;e++)i[e].start()}},0)})}(this,new _(this.c,t),t)},H.prototype.load=function(s){var r,n=this,c=n.a.projectId,t=n.a.version;c?(r=n.c.o,u(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+c+".js"+(t?"?v="+t:""),function(t){t?s([]):(r["__MonotypeConfiguration__"+c]=function(){return n.a},function t(){if(r["__mti_fntLst"+c]){var n,i=r["__mti_fntLst"+c](),e=[];if(i)for(var o=0;o<i.length;o++){var a=i[o].fontfamily;null!=i[o].fontStyle&&null!=i[o].fontWeight?(n=i[o].fontStyle+i[o].fontWeight,e.push(new y(a,n))):e.push(new y(a))}s(e)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+c):s([])},M.prototype.load=function(t){for(var n=this.a.urls||[],i=this.a.families||[],e=this.a.testStrings||{},o=new p,a=0,s=n.length;a<s;a++)l(this.c,n[a],v(o));var r=[];for(a=0,s=i.length;a<s;a++)if((n=i[a].split(":"))[1])for(var c=n[1].split(","),h=0;h<c.length;h+=1)r.push(new y(n[0],c[h]));else r.push(new y(n[0]));w(o,function(){t(r,e)})};function G(t){this.f=t,this.a=[],this.c={}}var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},R={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},U={i:"i",italic:"i",n:"n",normal:"n"},V=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function X(t,n){this.c=t,this.a=n}var J={Arimo:!0,Cousine:!0,Tinos:!0};function Q(t,n){this.c=t,this.a=n}function Y(t,n){this.c=t,this.f=n,this.a=[]}X.prototype.load=function(t){var n=new p,i=this.c,e=new z(this.a.api,this.a.text),o=this.a.families;!function(t,n){for(var i=n.length,e=0;e<i;e++){var o=n[e].split(":");3==o.length&&t.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),t.a.push(o.join(a))}}(e,o);var a=new G(o);!function(t){for(var n=t.f.length,i=0;i<n;i++){var e=t.f[i].split(":"),o=e[0].replace(/\+/g," "),a=["n4"];if(2<=e.length){var s,r,c=e[1],h=[];if(c)for(var f=(c=c.split(",")).length,l=0;l<f;l++)(r=!(r=c[l]).match(/^[\w-]+$/)||null==(s=V.exec(r.toLowerCase()))?"":[r=null==(r=s[2])||""==r?"n":U[r],s=null==(s=s[1])||""==s?"4":R[s]||(isNaN(s)?"4":s.substr(0,1))].join(""))&&h.push(r);0<h.length&&(a=h),3==e.length&&(h=[],0<(e=(e=e[2])?e.split(","):h).length&&(e=K[e[0]])&&(t.c[o]=e))}for(t.c[o]||(e=K[o])&&(t.c[o]=e),e=0;e<a.length;e+=1)t.a.push(new y(o,a[e]))}}(a),l(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var n=t.a.length,i=[],e=0;e<n;e++)i.push(t.a[e].replace(/ /g,"+"));return n=t.c+"?family="+i.join("%7C"),0<t.f.length&&(n+="&subset="+t.f.join(",")),0<t.g.length&&(n+="&text="+encodeURIComponent(t.g)),n}(e),v(n)),w(n,function(){t(a.a,a.c,J)})},Q.prototype.load=function(s){var t=this.a.id,r=this.c.o;t?u(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)s([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){t=r.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var e=t[i],o=t[i+1],a=0;a<o.length;a++)n.push(new y(e,o[a]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}s(n)}},2e3):s([])},Y.prototype.load=function(c){var t=this.f.id,n=this.c.o,h=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i,e,o,a=0,s=n.fonts.length;a<s;++a){var r=n.fonts[a];h.a.push(new y(r.name,(i="font-weight:"+r.weight+";font-style:"+r.style,r=o=e=void 0,e=4,o="n",r=null,i&&((r=i.match(/(normal|oblique|italic)/i))&&r[1]&&(o=r[1].substr(0,1).toLowerCase()),(r=i.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),o+e)))}c(h.a)},u(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+((n=this.c).o.location.hostname||n.a.location.hostname)+"/"+t+".js",function(t){t&&c([])})):c([])};var Z=new t(window);Z.a.c.custom=function(t,n){return new M(n,t)},Z.a.c.fontdeck=function(t,n){return new Y(n,t)},Z.a.c.monotype=function(t,n){return new H(n,t)},Z.a.c.typekit=function(t,n){return new Q(n,t)},Z.a.c.google=function(t,n){return new X(n,t)};var tt={load:g(Z.load,Z)};window.WebFont=tt,window.WebFontConfig&&Z.load(window.WebFontConfig)}();
|
1 |
+
!function(){function e(t,n,i){return t.call.apply(t.bind,arguments)}function o(n,i,t){if(!n)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,e),n.apply(i,t)}}return function(){return n.apply(i,arguments)}}function g(t,n,i){return(g=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:o).apply(null,arguments)}var r=Date.now||function(){return+new Date};function n(t,n){this.a=t,this.o=n||t,this.c=this.o.document}var c=!!window.FontFace;function h(t,n,i,e){if(n=t.c.createElement(n),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?n.style.cssText=i[o]:n.setAttribute(o,i[o]));return e&&n.appendChild(t.c.createTextNode(e)),n}function f(t,n,i){(t=(t=t.c.getElementsByTagName(n)[0])||document.documentElement).insertBefore(i,t.lastChild)}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,n,i){n=n||[],i=i||[];for(var e=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var a=!1,s=0;s<e.length;s+=1)if(n[o]===e[s]){a=!0;break}a||e.push(n[o])}for(n=[],o=0;o<e.length;o+=1){for(a=!1,s=0;s<i.length;s+=1)if(e[o]===i[s]){a=!0;break}a||n.push(e[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function a(t,n){for(var i=t.className.split(/\s+/),e=0,o=i.length;e<o;e++)if(i[e]==n)return!0;return!1}function l(t,n,i){function e(){s&&o&&(s(a),s=null)}n=h(t,"link",{rel:"stylesheet",href:n,media:"all"});var o=!1,a=null,s=i||null;c?(n.onload=function(){o=!0,e()},n.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),e()}):setTimeout(function(){o=!0,e()},0),f(t,"head",n)}function u(t,n,i,e){var o=t.c.getElementsByTagName("head")[0];if(o){var a=h(t,"script",{src:n}),s=!1;return a.onload=a.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,i&&i(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){s||(s=!0,i&&i(Error("Script load timeout")))},e||5e3),a}return null}function p(){this.a=0,this.c=null}function v(t){return t.a++,function(){t.a--,s(t)}}function w(t,n){t.c=n,s(t)}function s(t){0==t.a&&t.c&&(t.c(),t.c=null)}function m(t){this.a=t||"-"}function y(t,n){this.c=t,this.f=4,this.a="n";n=(n||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(t){var n=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var e=t[i].replace(/['"]/g,"");-1!=e.indexOf(" ")||/^\d/.test(e)?n.push("'"+e+"'"):n.push(e)}return n.join(",")}function j(t){return t.a+t.f}function x(t){var n="normal";return"o"===t.a?n="oblique":"i"===t.a&&(n="italic"),n}function _(t,n){this.c=t,this.f=t.o.document.documentElement,this.h=n,this.a=new m("-"),this.j=!1!==n.events,this.g=!1!==n.classes}function k(t){var n,i,e;t.g&&(n=a(t.f,t.a.c("wf","active")),i=[],e=[t.a.c("wf","loading")],n||i.push(t.a.c("wf","inactive")),d(t.f,i,e)),T(t,"inactive")}function T(t,n,i){t.j&&t.h[n]&&(i?t.h[n](i.c,j(i)):t.h[n]())}function S(){this.c={}}function C(t,n){this.c=t,this.f=n,this.a=h(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){f(t.c,"body",t.a)}function N(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(t.c)+";font-style:"+x(t)+";font-weight:"+t.f+"00;"}function E(t,n,i,e,o,a){this.g=t,this.j=n,this.a=e,this.c=i,this.f=o||3e3,this.h=a||void 0}function W(t,n,i,e,o,a,s){this.v=t,this.B=n,this.c=i,this.a=e,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new C(this.c,this.s),this.h=new C(this.c,this.s),this.j=new C(this.c,this.s),this.m=new C(this.c,this.s),t=N(t=new y(this.a.c+",serif",j(this.a))),this.g.a.style.cssText=t,t=N(t=new y(this.a.c+",sans-serif",j(this.a))),this.h.a.style.cssText=t,t=N(t=new y("serif",j(this.a))),this.j.a.style.cssText=t,t=N(t=new y("sans-serif",j(this.a))),this.m.a.style.cssText=t,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(t){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)},E.prototype.start=function(){var o=this.c.o.document,a=this,s=r(),t=new Promise(function(i,e){!function n(){var t;r()-s>=a.f?e():o.fonts.load(x(t=a.a)+" "+t.f+"00 300px "+b(t.c),a.h).then(function(t){1<=t.length?i():setTimeout(n,25)},function(){e()})}()}),i=null,n=new Promise(function(t,n){i=setTimeout(n,a.f)});Promise.race([n,t]).then(function(){i&&(clearTimeout(i),i=null),a.g(a.a)},function(){a.j(a.a)})};var F={D:"serif",C:"sans-serif"},I=null;function O(){var t;return null===I&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),I=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)),I}function P(t,n,i){for(var e in F)if(F.hasOwnProperty(e)&&n===t.f[F[e]]&&i===t.f[F[e]])return!0;return!1}function B(t){var n,i=t.g.a.offsetWidth,e=t.h.a.offsetWidth;(n=i===t.f.serif&&e===t.f["sans-serif"])||(n=O()&&P(t,i,e)),n?r()-t.A>=t.w?O()&&P(t,i,e)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?L(t,t.v):L(t,t.B):setTimeout(g(function(){B(this)},t),50):L(t,t.v)}function L(t,n){setTimeout(g(function(){i(this.g.a),i(this.h.a),i(this.j.a),i(this.m.a),n(this.a)},t),0)}function D(t,n,i){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=i}W.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),B(this)};var $=null;function q(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),T(t,"active")):k(t.a))}function t(t){this.j=t,this.a=new S,this.h=0,this.f=this.g=!0}function H(t,n){this.c=t,this.a=n}function M(t,n){this.c=t,this.a=n}function z(t,n){this.c=t||"https://fonts.googleapis.com/css",this.a=[],this.f=[],this.g=n||""}function G(t){this.f=t,this.a=[],this.c={}}D.prototype.g=function(t){var n=this.a;n.g&&d(n.f,[n.a.c("wf",t.c,j(t).toString(),"active")],[n.a.c("wf",t.c,j(t).toString(),"loading"),n.a.c("wf",t.c,j(t).toString(),"inactive")]),T(n,"fontactive",t),this.m=!0,q(this)},D.prototype.h=function(t){var n,i,e,o=this.a;o.g&&(n=a(o.f,o.a.c("wf",t.c,j(t).toString(),"active")),i=[],e=[o.a.c("wf",t.c,j(t).toString(),"loading")],n||i.push(o.a.c("wf",t.c,j(t).toString(),"inactive")),d(o.f,i,e)),T(o,"fontinactive",t),q(this)},t.prototype.load=function(t){this.c=new n(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(e,t,n){var i=[],o=n.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),T(t,"loading")}(t);var i=function(t,n,i){var e,o,a=[];for(e in n)!n.hasOwnProperty(e)||(o=t.c[e])&&a.push(o(n[e],i));return a}(e.a,n,e.c),a=new D(e.c,t,o);for(e.h=i.length,t=0,n=i.length;t<n;t++)i[t].load(function(t,n,i){var h,f,l,u,p;h=a,f=t,l=n,u=i,p=0==--(i=e).h,(i.f||i.g)&&setTimeout(function(){var t=u||null,n=l||{};if(0===f.length&&p)k(h.a);else{h.f+=f.length,p&&(h.j=p);for(var i=[],e=0;e<f.length;e++){var o,a=f[e],s=n[a.c],r=h.a,c=a;r.g&&d(r.f,[r.a.c("wf",c.c,j(c).toString(),"loading")]),T(r,"fontloading",c),(r=null)===$&&($=!!window.FontFace&&(c=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),o=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor),c?42<parseInt(c[1],10):!o)),r=$?new E(g(h.g,h),g(h.h,h),h.c,a,h.s,s):new W(g(h.g,h),g(h.h,h),h.c,a,h.s,t,s),i.push(r)}for(e=0;e<i.length;e++)i[e].start()}},0)})}(this,new _(this.c,t),t)},H.prototype.load=function(s){var r,n=this,c=n.a.projectId,t=n.a.version;c?(r=n.c.o,u(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+c+".js"+(t?"?v="+t:""),function(t){t?s([]):(r["__MonotypeConfiguration__"+c]=function(){return n.a},function t(){if(r["__mti_fntLst"+c]){var n,i=r["__mti_fntLst"+c](),e=[];if(i)for(var o=0;o<i.length;o++){var a=i[o].fontfamily;null!=i[o].fontStyle&&null!=i[o].fontWeight?(n=i[o].fontStyle+i[o].fontWeight,e.push(new y(a,n))):e.push(new y(a))}s(e)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+c):s([])},M.prototype.load=function(t){for(var n=this.a.urls||[],i=this.a.families||[],e=this.a.testStrings||{},o=new p,a=0,s=n.length;a<s;a++)l(this.c,n[a],v(o));var r=[];for(a=0,s=i.length;a<s;a++)if((n=i[a].split(":"))[1])for(var c=n[1].split(","),h=0;h<c.length;h+=1)r.push(new y(n[0],c[h]));else r.push(new y(n[0]));w(o,function(){t(r,e)})};var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},R={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},U={i:"i",italic:"i",n:"n",normal:"n"},V=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function X(t,n){this.c=t,this.a=n}var J={Arimo:!0,Cousine:!0,Tinos:!0};function Q(t,n){this.c=t,this.a=n}function Y(t,n){this.c=t,this.f=n,this.a=[]}X.prototype.load=function(t){var n=new p,i=this.c,e=new z(this.a.api,this.a.text),o=this.a.families;!function(t,n){for(var i=n.length,e=0;e<i;e++){var o=n[e].split(":");3==o.length&&t.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),t.a.push(o.join(a))}}(e,o);var a=new G(o);!function(t){for(var n=t.f.length,i=0;i<n;i++){var e=t.f[i].split(":"),o=e[0].replace(/\+/g," "),a=["n4"];if(2<=e.length){var s,r,c=e[1],h=[];if(c)for(var f=(c=c.split(",")).length,l=0;l<f;l++)(r=!(r=c[l]).match(/^[\w-]+$/)||null==(s=V.exec(r.toLowerCase()))?"":[r=null==(r=s[2])||""==r?"n":U[r],s=null==(s=s[1])||""==s?"4":R[s]||(isNaN(s)?"4":s.substr(0,1))].join(""))&&h.push(r);0<h.length&&(a=h),3==e.length&&(h=[],0<(e=(e=e[2])?e.split(","):h).length&&(e=K[e[0]])&&(t.c[o]=e))}for(t.c[o]||(e=K[o])&&(t.c[o]=e),e=0;e<a.length;e+=1)t.a.push(new y(o,a[e]))}}(a),l(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var n=t.a.length,i=[],e=0;e<n;e++)i.push(t.a[e].replace(/ /g,"+"));return n=t.c+"?family="+i.join("%7C"),0<t.f.length&&(n+="&subset="+t.f.join(",")),0<t.g.length&&(n+="&text="+encodeURIComponent(t.g)),n}(e),v(n)),w(n,function(){t(a.a,a.c,J)})},Q.prototype.load=function(s){var t=this.a.id,r=this.c.o;t?u(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)s([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){t=r.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var e=t[i],o=t[i+1],a=0;a<o.length;a++)n.push(new y(e,o[a]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}s(n)}},2e3):s([])},Y.prototype.load=function(c){var t=this.f.id,n=this.c.o,h=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i,e,o,a=0,s=n.fonts.length;a<s;++a){var r=n.fonts[a];h.a.push(new y(r.name,(i="font-weight:"+r.weight+";font-style:"+r.style,r=o=e=void 0,e=4,o="n",r=null,i&&((r=i.match(/(normal|oblique|italic)/i))&&r[1]&&(o=r[1].substr(0,1).toLowerCase()),(r=i.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),o+e)))}c(h.a)},u(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+((n=this.c).o.location.hostname||n.a.location.hostname)+"/"+t+".js",function(t){t&&c([])})):c([])};var Z=new t(window);Z.a.c.custom=function(t,n){return new M(n,t)},Z.a.c.fontdeck=function(t,n){return new Y(n,t)},Z.a.c.monotype=function(t,n){return new H(n,t)},Z.a.c.typekit=function(t,n){return new Q(n,t)},Z.a.c.google=function(t,n){return new X(n,t)};var tt={load:g(Z.load,Z)};window.WebFont=tt,window.WebFontConfig&&Z.load(window.WebFontConfig)}();
|
Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider-frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s<t.length;s++)a.when(t[s]).done(function(){i.notify(++e,t.length)});a.when.apply(a,t).done(function(){i.resolveWith(null,arguments)})},e.prototype.getBackgroundImages=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].background);return t},e.prototype.onResized=function(){this.onSlideDeviceChanged(this.slider.responsive.getDeviceMode()),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",function(t,e){this.onSlideDeviceChanged(e.device)}.bind(this))},e.prototype.onStarterSlide=function(){1===this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):2===this.lazyLoad?(this.preLoadSlides=this._preLoadSlides,this.slider.stages.done("SlidesReady",function(){N2R("windowLoad",this.preLoadAll.bind(this))}.bind(this)),this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):(this.preLoadSlides=this._preLoadSlides,this.loadWithProgress(this.preLoadAll())),this.slider.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},e.prototype.onVisibleSlidesChanged=function(){(1===this.lazyLoad||2===this.lazyLoad)&&a.when.apply(a,this.preLoadSlides(this.slider.getVisibleSlides()))},e.prototype.onSlideDeviceChanged=function(t){this.device=t;for(var e=0;e<this.slider.visibleRealSlides.length;e++)this.slider.visibleRealSlides[e].background&&this.slider.visibleRealSlides[e].background.updateBackgroundToDevice(t)},e.prototype.preLoadAll=function(){for(var t=[],e=0;e<this.slider.visibleRealSlides.length;e++)t.push(this.slider.visibleRealSlides[e].preLoad());return t},e.prototype._preLoadSlides=function(t){var e=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.push(t[i].preLoad());return e},e.prototype.preloadSlidesLazyNeighbor=function(t){var e=this._preLoadSlides(t);if(this.lazyLoadNeighbor)for(var i=0,s=t[0].getPrevious(),n=t[t.length-1].getNext();i<this.lazyLoadNeighbor;)s&&(e.push(s.preLoad()),s=s.getPrevious()),n&&(e.push(n.preLoad()),n=n.getNext()),i++;var r,o=a.Deferred();return"resolved"!==e[0].state()?(r=setTimeout(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),r=null}.bind(this),50),a.when.apply(a,e).done(function(){r?(clearTimeout(r),r=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)}.bind(this))):setTimeout(function(){o.resolve()},100),e.push(o),e},e.prototype.hack=function(){for(var t=0;t<this.slider.realSlides.length;t++)this.slider.realSlides[t].background&&this.slider.realSlides[t].background.hack()},e}),N2D("CSSData",function(t,e){"use strict";function i(t,e){this.$=t,this.css=e}return i.prototype.flush=function(){this.$.css(this.css)},i}),N2D("FontSize",function(e,i){var s;return{toRem:function(t){return t/(s===i&&(s=e('<div style="font-size:10rem;"></div>').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},r=[];return{addPlugin:function(t,e){for(var i=0;i<r.length;i++)r[i].plugins.add(t,e);n[t]=e},addSlider:function(t){if(t.plugins===i)for(var e in t.plugins=new s(t),n)t.plugins.add(e,n[e]);r.push(t)}}}),N2D("ScrollTracker",function(t,e,i){function s(){this.started=!1,this.items=[],this.onScrollCallback=this.onScroll.bind(this)}return s.prototype.add=function(t,e,i,s){s={$el:t,mode:e,onVisible:i,onHide:s,state:"unknown"};this.items.push(s),this._onScroll(s,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.started=!0)},s.prototype.onScroll=function(t){for(var e=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],e)},s.prototype._onScroll=function(t,e){var i=t.$el[0].getBoundingClientRect(),s=i.height>.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0<i.top+i.height),!1===n?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new s}),N2D("SmartSliderApi",function(a,s){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,e){if(this.sliders[t]=e,this.readys[t]!==s)for(var i=0;i<this.readys[t].length;i++)this.readys[t][i].call(e,e,e.sliderElement)},t.prototype.ready=function(t,e){this.sliders[t]!==s?e.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):(this.readys[t]===s&&(this.readys[t]=[]),this.readys[t].push(e))},t.prototype.on=function(t,e){this.eventListeners[t]===s&&(this.eventListeners[t]=[]),this.eventListeners[t].push(e)},t.prototype.off=function(t,e){if(this.eventListeners[t]!==s)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]===e&&this.eventListeners[t].splice(i,1)},t.prototype.dispatch=function(t,e){if(this.eventListeners[t]!==s&&this.eventListeners[t].length)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]&&this.eventListeners[t][i].call(e,e)},t.prototype.trigger=function(t,e,i){i&&i.preventDefault();var i=a(t),s=e.split(","),t=i.closest(".n2-ss-slide,.n2-ss-static-slide"),n=t.data("ss-last-event");i.data("ss-reset-events")||(i.data("ss-reset-events",1),t.on("layerAnimationPlayIn.resetCounter",function(t){t.data("ss-last-event","")}.bind(this,t)));for(var r=s.length-1,o=0;o<s.length;o++)s[o]===n&&(r=o);e=r===s.length-1?s[0]:s[r+1],t.data("ss-last-event",e),t.triggerHandler("ss"+e)},t.prototype.applyAction=function(t,e){var i;this.isClickAllowed(t)&&(i=t.currentTarget,(i=a(i).closest(".n2-ss-slider").data("ss"))[e].apply(i,Array.prototype.slice.call(arguments,2)))},t.prototype.applyActionWithClick=function(t){this.isClickAllowed(t)&&(nextend.shouldPreventClick||(t.preventDefault(),this.applyAction.apply(this,arguments)))},t.prototype.isClickAllowed=function(t){return!a.contains(t.currentTarget,a(t.target).closest('a[href!="#"], *[onclick][onclick!=""], *[data-n2click][data-n2click!=""], *[data-n2-lightbox]').get(0))},t.prototype.openUrl=function(t,e){var i;this.isClickAllowed(t)&&(t=(i=a(t.currentTarget)).data("href"),e===s&&(e=i.data("target")),"_blank"===e?((e=window.open()).opener=null,e.location=t):n2const.setLocation(t))};var n={focusOffsetTop:0,to:function(t){var e=a("html, body, .n2_iframe_application__content");"smooth"===a("html").css("scroll-behavior")?e.scrollTop(t):e.animate({scrollTop:t},window.n2ScrollSpeed||400)},top:function(){n.to(0)},bottom:function(){n.to(a(document).height()-a(window).height())},before:function(t){n.to(t.offset().top-a(window).height())},after:function(t){n.to(t.offset().top+t.height())},next:function(i,t){var t=a(t),s=-1;t.each(function(t,e){if(a(i).is(e)||a.contains(e,i))return s=t+1,!1}),-1!==s&&s<=t.length&&n.element(t.eq(s))},previous:function(i,t){var t=a(t),s=-1;t.each(function(t,e){if(a(i).is(e)||a.contains(e,i))return s=t-1,!1}),0<=s&&n.element(t.eq(s))},element:function(t){n.to(a(t).offset().top-n.focusOffsetTop)}};return t.prototype.scroll=function(t,e){var i;this.isClickAllowed(t)&&(t.preventDefault(),(i=this.findSliderByElement(t.target))&&(n.focusOffsetTop=i.responsive.focusOffsetTop),n[e].apply(window,Array.prototype.slice.call(arguments,2)))},t.prototype.findSliderByElement=function(t){return a(t).closest(".n2-ss-slider").data("ss")},window.n2ss=new t,window.n2ss}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(t,e){this.editor=null,t instanceof $&&(t="#"+t.attr("id"));var i=t.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract&&(!window[i].__$sliderElement||$.contains(document.body,window[i].__$sliderElement.get(0)))){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.stages=new N2Classes.Stages,N2D(t,function(){return this}.bind(this)),this.isAdmin=!!e.admin,N2Classes.SmartSliderPlugins.addSlider(this),this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,e.isDelayed!==undefined&&e.isDelayed?$(window).ready(function(){this.waitForExists(i,e)}.bind(this)):this.waitForExists(i,e)}SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});t=this.sliderElement.closest(".n2-ss-margin");t.length?t.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-margin").remove()}.bind(this));t=this.sliderElement.closest(".n2-ss-align");t.length?t.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-align").remove()}.bind(this)),n2ss.makeReady(this.id,this)},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done(this.onSliderExists.bind(this,e,t)),s()};var lazySliders=[];function lazySliderLoad(t,e){lazySliders.push({element:t.__$sliderElement.parent()[0],callback:e}),1===lazySliders.length&&(window.addEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.addEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.on("SliderResize",lazySliderCheckScroll),lazySliderCheckScroll())}function lazySliderCheckScroll(){for(var t,e=1.4*$(window).height(),i=0;i<lazySliders.length;i++)lazySliders[i].element.getBoundingClientRect().y<e&&(t=lazySliders[i].callback,lazySliders.splice(i,1),i--,t());0===lazySliders.length&&(window.removeEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.removeEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.off("SliderResize",lazySliderCheckScroll))}return SmartSliderAbstract.prototype.onSliderExists=function(t,e,i){var s,n;this.__$sliderElement=i,this.stages.resolve("Exists"),"TEMPLATE"===i.prop("tagName")?(s=i.data("loading-type"),n=function(){var t=$(i.html());i.replaceWith(t),this.waitForDimension(t,e),$(window).triggerHandler("n2Rocket",[t])}.bind(this),"afterOnLoad"===s?N2R("windowLoad",lazySliderLoad.bind(this,this,n)):"afterDelay"===s?setTimeout(n,i.data("loading-delay")):n()):this.waitForDimension(i,e)},SmartSliderAbstract.prototype.waitForDimension=function(t,e){var i=function(){t.is(":visible")?this.onSliderHasDimension(t,e):setTimeout(i,200)}.bind(this);i()},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(e){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("a,input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e<t.length;e++)this.slides.push(this.createSlide(t.eq(e),e));for(e=0;e<this.slides.length;e++)this.slides[e].init(),1===this.slides[e].$element.data("first")&&(this.originalRealStarterSlide=this.slides[e]);this.realSlides=this.slides,this.visibleSlides=this.slides,this.initSlidesEnd()},SmartSliderAbstract.prototype.initSlidesEnd=function(){this.afterRawSlidesReady(),this.stages.resolve("RawSlides"),this.randomize(this.realSlides),this.stages.resolve("RawSlidesOrdered"),this.initStaticSlides()},SmartSliderAbstract.prototype.initStaticSlides=function(){for(var t=this.sliderElement.find(".n2-ss-static-slide"),e=0;e<t.length;e++)this.staticSlides.push(new N2Classes.FrontendSliderStaticSlide(this,t.eq(e)))},SmartSliderAbstract.prototype.createSlide=function(t,e){return new N2Classes.FrontendSliderSlide(this,t,e)},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.trigger=function(){this.sliderElement.triggerHandler.apply(this.sliderElement,arguments)},SmartSliderAbstract.prototype.publicTrigger=function(){this.trigger.apply(this,arguments),N2Classes.SmartSliderApi.dispatch(arguments[0],this)},SmartSliderAbstract.prototype.getVisibleSlides=function(t){return t===undefined&&(t=this.currentSlide),[t]},SmartSliderAbstract.prototype.getActiveSlides=function(t){return this.getVisibleSlides(t)},SmartSliderAbstract.prototype.findSlideBackground=function(t){return t.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(t){return t},SmartSliderAbstract.prototype.finalizeStarterSlide=function(){var t,e=this.originalRealStarterSlide;this.isAdmin?this.finalizeStarterSlideComplete(e):this.parameters.randomize.randomize&&this.parameters.randomize.randomizeFirst?(e=this.visibleRealSlides[Math.floor(Math.random()*this.visibleRealSlides.length)],this.finalizeStarterSlideComplete(e)):window["ss"+this.id]!==undefined?"object"==typeof window["ss"+this.id]?window["ss"+this.id].done(this.overrideStarterSlideIndex.bind(this)):this.overrideStarterSlideIndex(window["ss"+this.id]):!this.isAdmin&&this.parameters.maintainSession&&window.localStorage!==undefined?(t=window.localStorage.getItem("ss-"+this.id),this.overrideStarterSlideIndex(t),this.sliderElement.on("mainAnimationComplete",function(t,e,i,s){window.localStorage.setItem("ss-"+this.id,s)}.bind(this))):this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.overrideStarterSlideIndex=function(t){var e;null!==t&&this.realSlides[t]&&(e=this.realSlides[t]),this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.finalizeStarterSlideComplete=function(t){t!==undefined&&t.isVisible||(t=this.visibleRealSlides[0]),t!==undefined?this.finalizeStarterSlideComplete2(t):(this.hide(),this.sliderElement.one({SliderResize:function(){this.finalizeStarterSlideComplete(t)}.bind(this)}))},SmartSliderAbstract.prototype.finalizeStarterSlideComplete2=function(t){t!==this.originalRealStarterSlide&&this.originalRealStarterSlide!==undefined&&this.originalRealStarterSlide.unsetActive(),this.responsive.onStarterSlide(t),this.stages.resolve("StarterSlide")},SmartSliderAbstract.prototype.randomize=function(t){this.parameters.randomize.randomize&&this.shuffleSlides(t)},SmartSliderAbstract.prototype.shuffleSlides=function(t){t.sort(function(){return.5-Math.random()});for(var e=t[0].$element.parent(),i=0;i<t.length;i++)t[i].$element.appendTo(e),t[i].setIndex(i)},SmartSliderAbstract.prototype.addWidget=function(t,e){this.widgetDeferreds.push(e)},SmartSliderAbstract.prototype.started=function(t){this.stages.done("UIReady",t.bind(this))},SmartSliderAbstract.prototype.ready=function(t){this.stages.done("Show",t.bind(this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&this.parameters.playWhenVisible?(this.checkIfVisibleCallback=this.checkIfVisible.bind(this),$(window).on("resize.n2-ss-visible"+this.id,this.checkIfVisibleCallback),this.sliderElement.on("mouseover.n2-ss-visible",this._markVisible.bind(this)),window.addEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.checkIfVisible()):this.stages.resolve("Visible")},SmartSliderAbstract.prototype.checkIfVisible=function(){var t=this.parameters.playWhenVisibleAt,e=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),n=this.sliderElement[0].getBoundingClientRect(),r=i*t/2,o=e+r,t=e+i-r;e<r&&(o*=e/r),s-r<e+i&&(t+=e+i-s+r);r=e+n.top,n=e+n.bottom;(this.isAdmin||r<=t&&o<=r||o<=n&&n<=t||r<=o&&t<=n)&&this._markVisible()},SmartSliderAbstract.prototype._markVisible=function(){this.sliderElement.off(".n2-ss-visible"),$(window).off(".n2-ss-visible"+this.id),window.removeEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.stages.resolve("Visible")},SmartSliderAbstract.prototype.visible=function(t){this.stages.done("Visible",t.bind(this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(t){var e=!1;if(this.responsive.parameters.focusUser&&!t&&(e=!0),e){var i=$(window).scrollTop(),s=this.responsive.focusOffsetTop,n=this.responsive.focusOffsetBottom,r=$(window).height(),o=this.sliderElement[0].getBoundingClientRect(),a=o.top-s,l=r-o.bottom-n,t=this.responsive.parameters.focusEdge,e="";"top-force"===t?e="top":"bottom-force"===t?e="bottom":a<=0&&l<=0||0<a&&0<l||(a<0?e="top"===t||"bottom"!==t&&-a<=l?"top":"bottom":l<0&&(e="top"!==t&&("bottom"===t||-l<=a)?"bottom":"top"));a=i;if("top"===e?a=i-s+o.top:"bottom"===e&&(a=i+n+o.bottom-r),a!==i)return this._scrollTo(a,Math.abs(i-a))}return!0},SmartSliderAbstract.prototype._scrollTo=function(t,e){var i=$.Deferred();return window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:t},e,function(){i.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},100)}.bind(this)),i},SmartSliderAbstract.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i=!1;return"next"===t?(e=this.currentSlide.getNext())&&(i=e.index):"previous"!==t||(t=this.currentSlide.getPrevious())&&(i=t.index),!1!==i&&i!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;e<this.slides.length;e++)this.slides[e].isVisible&&t++;return t},SmartSliderAbstract.prototype.directionalChangeToReal=function(t){this.directionalChangeTo(t)},SmartSliderAbstract.prototype.directionalChangeTo=function(t){t>this.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,r){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var o=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=o&&(this.mainAnimationLastChangeTime=o,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,r!==undefined&&(e=r),this._changeTo(i,s,n,r),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,r)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e].setInside(0<=t.indexOf(this.slides[e]))},SmartSliderAbstract.prototype.findSlideByElement=function(t){var e;for(t=$(t),e=0;e<this.realSlides.length;e++)if(1===this.realSlides[e].$element.has(t).length)return this.realSlides[e];for(e=0;e<this.staticSlides.length;e++)if(1===this.staticSlides[e].$element.has(t).length)return this.staticSlides[e];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(t){t=this.findSlideByElement(t);return t||-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch},SmartSliderAbstract.prototype.initControls=function(){if(!this.parameters.admin){if(this.hasTouch())switch(this.parameters.controls.touch){case"vertical":new N2Classes.SmartSliderControlTouchVertical(this);break;case"horizontal":new N2Classes.SmartSliderControlTouchHorizontal(this)}this.parameters.controls.keyboard&&(this.controls.touch!==undefined?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.mousewheel&&new N2Classes.SmartSliderControlMouseWheel(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this),this.parameters.alias.id&&new N2Classes.SmartSliderControlAlias(this,this.parameters.alias)}},SmartSliderAbstract.prototype.getSlideIndex=function(t){return t},SmartSliderAbstract.prototype.slideToID=function(t,e,i){for(var s=0;s<this.realSlides.length;s++)if(this.realSlides[s].id===t)return this.slide(this.getSlideIndex(s),e,i);var n=$('[data-id="'+t+'"]').closest(".n2-ss-slider");return!(!n.length||this.id!==n.data("ss").id)||(n.length?($("html, body").animate({scrollTop:n.offset().top},400),n.data("ss").slideToID(t,e,!0)):void 0)},SmartSliderAbstract.prototype.slide=function(t,e,i){return 0<=t&&t<this.slides.length&&(e===undefined?this.parameters.carousel&&this.currentSlide.index===this.slides.length-1&&0===t?this.next(i):this.currentSlide.index>t?this.changeTo(t,!0,i):this.changeTo(t,!1,i):this.changeTo(t,!e,i))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.getAnimationAxis=function(){return"horizontal"},SmartSliderAbstract.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},SmartSliderAbstract.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},SmartSliderAbstract.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},SmartSliderAbstract.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},SmartSliderAbstract.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},SmartSliderAbstract.prototype.getUINextSlide=function(t){return t.getNext()},SmartSliderAbstract}),N2D("Stages",function(r,e){function t(){this.stages={}}function i(t){this.n=t,this.d=r.Deferred()}return t.prototype.get=function(t){return this.stages[t]===e&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,e){var i;if("string"==typeof t)i=this.get(t);else{for(var s=[],n=0;n<t.length;n++)s.push(this.get(t[n]).getDeferred());i=r.when.apply(r,s)}i.done(e)},t.prototype.resolved=function(t){return this.get(t).resolved()},i.prototype.getDeferred=function(){return this.d},i.prototype.resolve=function(){this.resolved()||(this.d.resolve(),this.d=!0)},i.prototype.done=function(t){!0===this.d?t():this.d.done(t)},i.prototype.resolved=function(){return!0===this.d||"resolved"===this.d.state()},t}),N2D("SmartSliderWidget",function(t,e){"use strict";function i(t){this.slider=t,this.slider.started(this.register.bind(this))}return i.prototype.register=function(){this.slider.widgets.has(this.key)||(this.slider.widgets.register(this.key,this),this.onStart())},i.prototype.onStart=function(){},i.prototype.isVisible=function(){return this.$widget.is(":visible")},i.prototype.calculateDimensions=function(t){this.isVisible()?(t[this.key+"width"]=this.$widget.outerWidth(),t[this.key+"height"]=this.$widget.outerHeight()):(t[this.key+"width"]=0,t[this.key+"height"]=0)},i.prototype.filterSliderVerticalCSS=function(t){},i}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(t){this.slider=t,this.sliderElement=t.sliderElement,this.controls={previous:undefined,next:undefined,bullet:undefined,autoplay:undefined,indicator:undefined,bar:undefined,thumbnail:undefined,shadow:undefined,fullscreen:undefined,html:undefined},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1}}return SmartSliderWidgets.prototype.register=function(t,e){this.controls[t]=e},SmartSliderWidgets.prototype.has=function(t){return this.controls[t]!==undefined},SmartSliderWidgets.prototype.setState=function(t,e){if(this.states[t]!=e){this.states[t]=e;var i=t.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle(this.slider.getDirectionPrevious());break;case"nonCarouselLast":this.onStateChangeSingle(this.slider.getDirectionNext());break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var t in this.controls)this.onStateChangeSingle(t)},SmartSliderWidgets.prototype.onStateChangeSingle=function(t){var e,i;this.controls[t]&&(e=!0,this.controls[t].$widget.hasClass("n2-ss-widget-display-hover")&&(e=this.states.hover),e&&(t===this.slider.getDirectionPrevious()&&this.states.nonCarouselFirst||t===this.slider.getDirectionNext()&&this.states.nonCarouselLast)&&(e=!1),e&&(i=t+"-"+(this.states.currentSlideIndex+1),this.excludedSlides[i]&&(e=!1)),e&&this.states["hide."+t]!==undefined&&this.states["hide."+t]&&(e=!1),e&&this.states.singleSlide&&("previous"!==t&&"next"!==t&&"bullet"!==t&&"autoplay"!==t&&"indicator"!==t||(e=!1)),this.controls[t].$widget.toggleClass("n2-ss-widget-hidden",!e))},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("visibleSlidesChanged",function(){this.setState("singleSlide",this.slider.visibleSlides.length<=1)}.bind(this)),this.setState("singleSlide",this.slider.visibleSlides.length<=1),this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var t,e,i=!1;for(t in this.controls)if(this.controls[t]!==undefined){var s=this.controls[t].$widget.attr("data-exclude-slides");if(s!==undefined){for(var n=s.split(","),r=n.length-1;0<=r;r--){var o=n[r].split("-");if(2===o.length){var a=parseInt(o[0]),l=parseInt(o[1]);if(a<=l)for(var h=a;h<=l;h++)n.push(h)}else n[r]=parseInt(n[r])}if(0<n.length){for(r=0;r<n.length;r++)this.excludedSlides[t+"-"+n[r]]=!0;i=!0}}}i&&((e=function(t,e){this.setState("currentSlideIndex",e.index)}.bind(this))(null,this.slider.currentRealSlide),this.slider.sliderElement.on("SlideWillChange",e)),this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.responsive.addFilter("SliderVerticalCSS",this.filterSliderVerticalCSS.bind(this)),this.forceLayoutComposition(),this.onStateChangeAll(),this.slider.stages.resolve("WidgetsReady")},SmartSliderWidgets.prototype.calculateDimensions=function(){for(var t in this.controls)this.controls[t]!==undefined?this.controls[t].calculateDimensions(this.slider.responsive.resizeContext):(this.slider.responsive.resizeContext[t+"width"]=0,this.slider.responsive.resizeContext[t+"height"]=0)},SmartSliderWidgets.prototype.getDimensions=function(){this.calculateDimensions();var t=$.extend(!0,{},this.slider.responsive.resizeContext);return t.width=t.sliderWidth,t.height=t.sliderHeight,t.outerwidth=this.sliderElement.parent().width(),t.outerheight=this.sliderElement.parent().height(),t.canvaswidth=t.slideWidth,t.canvasheight=t.slideHeight,t.paneWidth!==undefined&&(t.panewidth=t.paneWidth),t.margintop=t.marginright=t.marginbottom=t.marginleft=0,t},SmartSliderWidgets.prototype.dimensionsToVariables=function(t){var e,i="";for(e in t){var s=t[e];"number"==typeof s&&(i+="var "+e+" = "+s+";")}return i},SmartSliderWidgets.prototype.forceLayoutComposition=function(){for(var t=this.filterSliderVerticalCSS([]),e=0;e<t.length;e++)t[e].flush()},SmartSliderWidgets.prototype.filterSliderVerticalCSS=function(cssData){var temp,dimensions=this.getDimensions(),k,k;for(k in this.dimensions=dimensions,this.controls)this.controls[k]!==undefined&&this.controls[k].filterSliderVerticalCSS(cssData);for(k in eval(this.dimensionsToVariables(dimensions)),this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k)),temp={};temp[k]=value+"px",cssData.push(new N2Classes.CSSData(el,temp))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}return cssData},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(i,t){function s(t,e){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=i.extend({duration:1500,ease:"easeInOutQuint"},e),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",function(t,e,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s}.bind(this)),this.slider.stages.done("ResponsiveStart",this.init.bind(this))}return s.prototype.init=function(){this.responsive=this.slider.responsive},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.slider.trigger("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(t){this.isTouch=t},s.prototype.setTouchProgress=function(t){"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):0<=t&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&-1<=t&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):0<=t&&t<=1&&this.timeline.progress(t))},s.prototype.setTouchEnd=function(t,e,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,e,i):this._setTouchEnd(t,e,i))},s.prototype._setTouchEnd=function(t,e,i){t&&0<e?(this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(t,e,i){t?e<0&&0<this.reverseTimeline.totalDuration()?(this.fixTouchDuration(this.reverseTimeline,e,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(e<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-e,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(t,e,i){var s=t.totalDuration(),e=Math.max(s/3,Math.min(s,i/Math.abs(e)/1e3));e!==s&&t.totalDuration(e)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return 0<arguments.length?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(e,i,t,s){this.slider.parameters.dynamicHeight&&this._dynamicHeightTimeline&&this._dynamicHeightTimeline.pause(),this._initAnimation(e,i,t),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[e,i,s],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[e,i,s],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(t){t.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,e,s],this)}.bind(this),this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,e){this.slider.trigger("mainAnimationWillRevertTo",[t,e]),this.sliderElement.one("mainAnimationComplete",this.revertTo.bind(this,t,e))},s.prototype.revertTo=function(t,e){this.slider.revertTo(t,e),this.slider.slides[e].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(t,e,i){this.slider.updateInsideSlides([t,e])},s.prototype.onChangeToStart=function(t,e,i){this.state="playing";i=[this,t.index,e.index,i];this.slider.trigger("mainAnimationStart",i),t.triggerHandler("mainAnimationStartOut",i),e.triggerHandler("mainAnimationStartIn",i)},s.prototype.onChangeToComplete=function(t,e,i){var s=[this,t.index,e.index,i];this.clearTimelines(),this.disableReverseMode(),t.triggerHandler("mainAnimationCompleteOut",s),e.triggerHandler("mainAnimationCompleteIn",s),this.state="ended",this.slider.parameters.dynamicHeight&&(this._dynamicHeightTimeline=new NextendTimeline,this.slider.responsive.resizeStage2HeightAnimated(this._dynamicHeightTimeline,e,.6),this._dynamicHeightTimeline.eventCallback("onComplete",function(){delete this._dynamicHeightTimeline},this)),this.slider.updateInsideSlides([e]),i||e.focus(),this.slider.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(t,e,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2D("SmartSliderControlAlias",function(s,e){"use strict";function t(t,e){var i="#"+t.elementID;this.elements={sliderSelector:i,$slider:s(i),$sliderAlign:s(i+"-align")},this.parameters=s.extend({slider:t,slideCount:t.slides.length,alias:s(i).data("alias"),href:window.location.href},e),this.parameters.anchor=this.getAnchor(),this.parameters.alias&&(this.createElement(this.parameters.alias),this.initSmoothScroll(),this.parameters.slideSwitch&&(this.switchOnLoad(),this.switchOnClick()))}return t.prototype.getAnchor=function(){var t={hasAnchor:0},e=window.location.hash.substr(1);return e&&(e===this.parameters.alias||this.parameters.slideSwitch&&-1<e.indexOf(this.parameters.alias)?t.hasAnchor=1:this.parameters.href=this.parameters.href.replace("#"+e,""),-1<e.indexOf("-")&&(e=e.split("-"),t.number=e[e.length-1])),t},t.prototype.switchOnLoad=function(){var t;this.createAnchorElements(),this.parameters.anchor.hasAnchor&&((t=this.parameters.anchor.number)===e&&this.parameters.slideSwitch&&(t=this.getParameterNumber()),null!==t&&(t--,window["ss"+this.parameters.slider.id]=t,N2R("windowLoad",function(t){this.smoothScrollTo(this.elements.$slider),this.replaceHash()}.bind(this))))},t.prototype.switchOnClick=function(){N2R("windowLoad",function(){s(window).on("hashchange",function(){var t=this.getAnchor();t.hasAnchor&&(this.switchToSlide(t.number-1),this.replaceHash())}.bind(this))}.bind(this))},t.prototype.replaceHash=function(){var t="#"+this.parameters.alias;history.replaceState?history.replaceState(null,null,t):location.hash=t},t.prototype.switchToSlide=function(i){N2R(this.elements.sliderSelector,function(t,e){e.slide(i)})},t.prototype.createAnchorElements=function(){if(this.parameters.scroll)for(var t=1;t<this.parameters.slideCount+1;t++)this.createElement(this.parameters.alias+"-"+t)},t.prototype.createElement=function(t){s("<div></div>").attr("id",t).css({height:0,lineHeight:0,minHeight:0,margin:0,padding:0}).insertBefore(this.elements.$sliderAlign)},t.prototype.initSmoothScroll=function(){this.parameters.smoothScroll&&s("html").css("scroll-behavior","smooth")},t.prototype.getParameterNumber=function(){var s={};return this.parameters.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){s[e]=i}),s[this.parameters.alias]!==e?parseInt(s[this.parameters.alias]):null},t.prototype.smoothScrollTo=function(t){this.parameters.scroll&&this.parameters.smoothScroll&&s("html, body").animate({scrollTop:t.offset().top},this.parameters.scrollSpeed)},t}),N2D("SmartSliderControlAutoplay",function(i,s){"use strict";function t(t,e){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this.wait=new N2Classes.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=i.extend({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},e),this.clickHandled=!1,(t.controls.autoplay=this).parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,setTimeout(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.timeline=NextendTween.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)}),this.slider.sliderElement.on({"BeforeCurrentSlideChange.autoplay":function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"CurrentSlideChanged.autoplay":function(t,e){this.timeline.duration(this.getSlideDuration(e.index)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"mainAnimationStart.autoplay":function(){this._currentCount++,this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"mainAnimationComplete.autoplay":function(t,e,i,s){this.timeline.duration(this.getSlideDuration(s)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"autoplayPause.autoplay":function(){this.setState("paused",1)}.bind(this),"autoplayResume.autoplay":function(t,e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0),e!==s&&this.timeline.progress(e)}.bind(this)}),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.trigger("autoplay",0),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,e){this.state[t]!==e&&(this.state[t]=e,this.timeline!==s&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==s&&this.isPaused||(this.isPaused=!0,this.slider.trigger("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),this.isPaused!==s&&!this.isPaused||(this.isPaused=!1,this.slider.trigger("autoplayStarted")))))},t.prototype.initClick=function(e,i){(e||i)&&this.slider.sliderElement.on("universalclick.autoplay",function(t){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):e&&this.setState("pausedSecondary",1))}.bind(this))},t.prototype.initHover=function(e,i){var s;(e||i)&&(s=!1,this.slider.sliderElement.on({"touchend.autoplay":function(){s=!0,setTimeout(function(){s=!1},300)},"mouseenter.autoplay":function(t){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==e||this.setState("pausedSecondary",1)}.bind(this),"mouseleave.autoplay":function(t){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===e&&this.setState("pausedSecondary",1)}.bind(this)}))},t.prototype.initMedia=function(t,e){var i=this.slider.sliderElement;t?i.on({"mediaStarted.autoplay":function(t,e){this.wait.add(e)}.bind(this),"mediaEnded.autoplay":function(t,e){this.wait.resolve(e)}.bind(this)}):e&&i.on({"mediaEnded.autoplay":function(){this.setState("pausedSecondary",0)}.bind(this)})},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.trigger("autoplay",this.timeline.progress())}.bind(this))},t.prototype.next=function(){if(this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}0<this.autoplayToSlide&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),0<=this.autoplayToSlideIndex&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),this.slider.sliderElement.off(".autoplay"),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],t=e.minimumSlideDuration;return 0===parseInt(e.minimumSlideDuration)&&(t=this.parameters.duration),t},t}),N2D("SmartSliderControlFullscreen",function(s,t){"use strict";function e(t,e,i){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};t=this.slider.sliderElement[0];t.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):t.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):t.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):t.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),s(window).trigger("resize")}.bind(this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)}.bind(this)),document.addEventListener(this.browserSpecific.event,this.fullScreenChange.bind(this))}return e.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},e.prototype.requestFullscreen=function(){return!this.isFullScreen&&(this.isFullScreen=!0,this._fullScreen(),!0)},e.prototype.exitFullscreen=function(){return!!this.isFullScreen&&(this.isFullScreen=!1,this._normalScreen(),!0)},e.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):document.createEventObject&&((i=document.createEventObject()).eventType=e),i.eventName=e,t.dispatchEvent?t.dispatchEvent(i):t.fireEvent&&htmlEvents["on"+e]?t.fireEvent("on"+i.eventType,i):t[e]?t[e]():t["on"+e]&&t["on"+e]()},e.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(n2const.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:s("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},e.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},e.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.trigger("n2FullScreen"),s("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,s(window).trigger("resize")):this.forceFullpage&&(this.responsive.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),s("html").removeClass("n2-in-fullscreen"),s(window).trigger("resize"),this.isFullScreen=!1,this.slider.trigger("n2ExitFullScreen"))},e.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},e}),N2D("SmartSliderControlKeyboard",function(s,t){"use strict";var n;function r(){this.controls=[],document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(t,e,i){this.slider=t,this.parameters=s.extend({},i),this.parseEvent="vertical"===e?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,(n=n||new r).addControl(this),this.slider.sliderElement.on("SliderKeyDown",this.onKeyDown.bind(this)),t.controls.keyboard=this}return r.prototype.onMouseMove=function(t){this.mouseEvent=t},r.prototype.addControl=function(t){this.controls.push(t)},r.prototype.onKeyDown=function(t){var e;if(t.target.tagName.match(/BODY|DIV|IMG/)&&!t.target.isContentEditable)if(this.mouseEvent&&(e=this.findSlider(document.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))e.trigger("SliderKeyDown",t);else if(document.activeElement!==document.body&&(e=this.findSlider(document.activeElement)))e.trigger("SliderKeyDown",t);else for(var i=0;i<this.controls.length;i++)this.controls[i].onKeyDown(!1,t)},r.prototype.findSlider=function(t){var t=s(t),t=t.hasClass("n2-ss-slider")?t:t.closest(".n2-ss-slider");return!!t.length&&t},o.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),e=s(window).scrollTop(),i=this.slider.sliderElement.height();return t.top+.5*i>=e&&t.top-.5*i<=e+s(window).height()},o.prototype.onKeyDown=function(t,e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case 37:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.next(),!0);case 38:return this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o}),N2D("SmartSliderControlMouseWheel",function(s,t){"use strict";function e(t){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,document.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return e.prototype.hasScrollableParentRecursive=function(t,e){if(e===this.slider.sliderElement[0])return!1;if(e.scrollHeight>e.clientHeight){var i=s(e).css("overflow");if("hidden"!==i&&"visible"!==i)if(t){if(0<e.scrollTop)return!0}else if(e.scrollTop+e.clientHeight<e.scrollHeight)return!0}return this.hasScrollableParentRecursive(t,e.parentNode)},e.prototype.onGlobalMouseWheel=function(t){this.onCurveEvent(t),this.preventScroll.local||this.preventScroll.curve||Math.abs(t.deltaY)<this.maxDelta/2?t.preventDefault():(this.preventScroll.global&&t.preventDefault(),this.slider.sliderElement[0]!==t.target&&!s.contains(this.slider.sliderElement[0],t.target)||t.shiftKey||this.hasScrollableParentRecursive(t.deltaY<0,t.target)||this.onMouseWheel(t))},e.prototype.onMouseWheel=function(t){t.deltaY<0?this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.previous(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global()):this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global())},e.prototype.startCurveWatcher=function(t){!1!==this.preventScroll.curve&&clearTimeout(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDeltaY=t.deltaY,this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=setTimeout(s.proxy(this.releaseCurveLock,this),5e3)},e.prototype.onCurveEvent=function(t){this.preventScroll.curveGlobal&&(this.dynamicDelta||this.lastDeltaY===t.deltaY||(this.lastDeltaY=t.deltaY,this.dynamicDelta=!0),t=Math.abs(t.deltaY),this.preventScroll.curve&&this.maxDelta/2>t&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,t),this.preventScroll.curveGlobalTimeout&&clearTimeout(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500))},e.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,clearTimeout(this.preventScroll.curveTimeout)},e.prototype.local=function(){!1!==this.preventScroll.local&&clearTimeout(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=setTimeout(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},e.prototype.global=function(){!1!==this.preventScroll.global&&clearTimeout(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=setTimeout(function(){this.preventScroll.global=!1}.bind(this),2e3)},e}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(t){this.slider=t,this.minDistance=10,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.find("> .n2_ss__touch_element"),this.$window=e(window),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),t.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return i.prototype.onStarterSlide=function(){-1<navigator.userAgent.toLowerCase().indexOf("android")&&"1"!==this.swipeElement.parent().css("opacity")?this.swipeElement.parent().one("transitionend",this.initTouch.bind(this)):this.initTouch(),this.slider.sliderElement.on("sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},i.prototype.onVisibleSlidesChanged=function(){this.swipeElement.toggleClass("n2-grab",1<this.slider.visibleSlides.length)},i.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},i.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:e.extend({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:this.$window.scrollTop(),animationStartDirection:"unknown",hadDirection:!1},this.logDistance(0,0)},i.prototype._move=function(t,e,i,s){if(!s||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(i);s=this.get(i);if((this.currentInteraction.hadDirection||Math.abs(s)>this.minDistance||Math.abs(i.y)>this.minDistance)&&(this.logDistance(s,i.y),this.currentInteraction.percent<1&&this.setTouchProgress(s,i.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},i.prototype._end=function(t,e,i,s){"switch"===this.currentInteraction.action&&(s=s?0:this.measureRealDirection(),this.interactiveDrag?(this._animation.timeline.progress()<1&&this._animation.setTouchEnd(s,this.currentInteraction.progress,i.time),this._animation.setTouch(!1)):s&&this.callAction(this.currentInteraction.animationStartDirection),this.swipeElement.removeClass("n2-grabbing")),this.onEnd(),delete this.currentInteraction,Math.abs(i.x)<10&&Math.abs(i.y)<10?this.onTap(t):nextend.preventClick()},i.prototype.onEnd=function(){var t,e,i,s,n;"scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type&&(t=this.currentInteraction.distanceY[0],e=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],i=(t.d-e.d)/(e.t-t.t)*10,s=Date.now(),n=function(){requestAnimationFrame(function(){var t;if(!this.kineticScrollCancelled&&i&&(t=Date.now()-s,1<(t=i*Math.exp(-t/325))||t<-1))return this.$window.scrollTop(this.$window.scrollTop()+t),void n();this.onEndKineticScroll()}.bind(this))}.bind(this),this.kineticScrollCancelled=!1,n(),document.addEventListener("pointerdown",this.cancelKineticScroll))},i.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,document.removeEventListener("pointerdown",this.cancelKineticScroll),e("html").css("scroll-behavior","")},i.prototype.setTouchProgress=function(t,e){this.recognizeSwitchInteraction();var i,s=this.getPercent(t);if(this.currentInteraction.percent=s,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":i=-1*s;break;case"down":i=s;break;case"left":i=-1*s;break;case"right":i=s}this.currentInteraction.progress=i,this._animation.setTouchProgress(i)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(e)},i.prototype.startScrollInteraction=function(t){"vertical"!==this.axis&&!n2const.isEdge||this.slider.controlFullscreen.isFullScreen||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(e("html").css("scroll-behavior","auto"),this.$window.scrollTop(Math.max(0,this.currentInteraction.scrollTop-t))))},i.prototype.recognizeSwitchInteraction=function(){var t;"unknown"===this.currentInteraction.action&&1<this.slider.visibleSlides.length&&("ended"===this._animation.state?"unknown"!==(t=this.currentInteraction.direction)&&this.currentInteraction.state[t]&&(this.currentInteraction.animationStartDirection=t,this.interactiveDrag&&(this._animation.setTouch(this.axis),this.callAction(t,!1)),this.currentInteraction.action="switch",this.swipeElement.addClass("n2-grabbing")):"playing"===this._animation.state&&(this.currentInteraction.action="hold"))},i.prototype.logDistance=function(t,e){3<this.currentInteraction.distance.length&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:e,t:Date.now()})},i.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],e=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return 0<=e.d&&t.d>e.d||e.d<0&&t.d<e.d?0:1},i.prototype.onTap=function(t){this.preventMultipleTap||(e(t.target).trigger("n2click"),this.preventMultipleTap=!0,setTimeout(function(){this.preventMultipleTap=!1}.bind(this),500))},i.prototype.updatePanDirections=function(){},i.prototype.setState=function(t,e){"object"!=typeof arguments[0]&&((t={})[arguments[0]]=arguments[1],e=arguments[2]);var i,s=!1;for(i in t)this.state[i]!==t[i]&&(this.state[i]=t[i],s=!0);s&&e&&this.eventBurrito.supportsPointerEvents&&this.syncTouchAction()},i}),N2D("SmartSliderControlTouchHorizontal","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={left:!1,right:!1},this.axis="horizontal",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"left":return this.slider[n2const.isRTL()?"previous":"next"].call(this.slider,e);case"right":return this.slider[n2const.isRTL()?"next":"previous"].call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.x)<10||0===t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},i.prototype.get=function(t){return t.x},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderWidth))},i.prototype.updatePanDirections=function(){var t=this.slider.currentSlide.index,e=t+1<this.slider.slides.length,t=0<=t-1;this.slider.parameters.carousel&&(t=e=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:e,left:t},!0):this.setState({right:t,left:e},!0)},i.prototype.syncTouchAction=function(){var t={"pan-y":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.left&&(t["pan-y"]=!0),this.state.right&&(t["pan-y"]=!0));var e,i=[];for(e in t)t[e]&&i.push(e);this.swipeElement.css("touch-action",i.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",i.join(" "))},i}),N2D("SmartSliderControlTouchVertical","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"up":return this.slider.next.call(this.slider,e);case"down":return this.slider.previous.call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},i.prototype.get=function(t){return t.y},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderHeight))},i.prototype.updatePanDirections=function(){this.setState({down:!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction,up:!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction},!0)},i.prototype.syncTouchAction=function(){var t={"pan-x":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.up&&(t["pan-x"]=!0),this.state.down&&(t["pan-x"]=!0));var e,i=[];for(e in t)t[e]&&i.push(e);this.swipeElement.css("touch-action",i.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",i.join(" "))},i.prototype._start=function(t){this.slider.blockCarousel=!0,N2Classes.SmartSliderControlTouch.prototype._start.apply(this,arguments)},i.prototype.onEnd=function(t){N2Classes.SmartSliderControlTouch.prototype.onEnd.apply(this,arguments),this.slider.blockCarousel=!1},i}),N2D("SmartSliderControlAutoplayWait",function(t,e){"use strict";function i(t){this.autoplay=t,this.waits={}}return i.Strong=["lightbox"],i.prototype.add=function(t){this.waits[t]=1,this._refresh()},i.prototype.resolve=function(t){delete this.waits[t],this._refresh()},i.prototype.resolveWeak=function(){var t,e={};for(t in this.waits)1===this.waits[t]&&-1!==i.Strong.indexOf(t)&&(e[t]=1);this.waits=e,this._refresh()},i.prototype.resolveAll=function(){this.waits={},this._refresh()},i.prototype._refresh=function(){var t,e=!1;for(t in this.waits)if(this.waits[t]){e=!0;break}this.autoplay.setState("wait",e)},i}),N2D("SmartSliderSlideBackgroundColor",function(t,e){function i(t,e){this.$el=e}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(n,i){function t(t,e,i,s){this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=e,this.background=i,this.deferred=n.Deferred(),this.$background=s,this.blur=s.data("blur"),"blurfit"===i.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(i.element.attr("data-mode","fill"),i.mode="fill")),window.n2FilterProperty&&(0<this.blur?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine()?this.mobileSrc=this.tabletSrc=this.desktopSrc=s.data("desktop"):(this.desktopSrc=s.data("desktop")||"",this.tabletSrc=s.data("tablet")||"",this.mobileSrc=s.data("mobile")||"",n2const.isRetina&&((i=s.data("desktop-retina"))&&(this.desktopSrc=i),(i=s.data("tablet-retina"))&&(this.tabletSrc=i),(i=s.data("mobile-retina"))&&(this.mobileSrc=i)))}return t.prototype.getLoadedDeferred=function(){return this.deferred},t.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(function(){this.updateBackgroundToDevice(this.manager.device),this.waitForImage()}.bind(this))},t.prototype.waitForImage=function(){this.$background.n2imagesLoaded({background:!0},function(t){if(0<t.images.length){t=t.images[0].img;switch(this.width=t.naturalWidth,this.height=t.naturalHeight,this.background.mode){case"tile":case"center":1<n2const.devicePixelRatio&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()}else setTimeout(this.waitForImage.bind(this),100)}.bind(this))},t.prototype.updateBackgroundToDevice=function(t){var e=this.desktopSrc;"mobilePortrait"===t||"mobileLandscape"===t?this.mobileSrc?e=this.mobileSrc:this.tabletSrc&&(e=this.tabletSrc):"tabletPortrait"!==t&&"tabletLandscape"!==t||this.tabletSrc&&(e=this.tabletSrc),e?this.setSrc(e):this.setSrc("")},t.prototype.setSrc=function(t){var e;this.loadAllowed&&t!==this.currentSrc&&(""===t?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+t+'")'),this.currentSrc=t,this.$seo!==i&&(this.$seo.remove(),delete this.$seo),(e=this.$background.data("alt"))&&(e={alt:e,src:t},(t=this.$background.data("title"))&&(e.title=t),this.$seo=n('<img style="display:none;">').attr(e).appendTo(this.$background)))},t.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},t}),N2D("SmartSliderSlideBackground",function(o,t){function e(t,e,i){var s;this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=e,t.slider.needBackgroundWrap?(s=e.find("> *"),this.$wrapElement=o('<div class="n2-ss-slide-background-wrap n2-ow"></div>').appendTo(e).append(s)):this.$wrapElement=this.element,this.manager=i,this.loadDeferred=o.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=e.data("mode"),this.opacity=e.data("opacity");e=this.element.find(".n2-ss-slide-background-image");e.length&&(this.elements.image=new N2Classes[this.types.image](t,i,this,e));e=this.element.find(".n2-ss-slide-background-color");e.length&&(this.elements.color=new N2Classes[this.types.color](this,e));var n,r=[];for(n in this.elements)this.elements[n]&&r.push(this.elements[n].getLoadedDeferred());o.when.apply(o,r).then(function(){this.loadDeferred.resolve()}.bind(this))}return e.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=o(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},e.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},e.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},e.prototype.hasColor=function(){return this.elements.color},e.prototype.hasImage=function(){return this.elements.image},e.prototype.hasVideo=function(){return this.elements.video},e.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},e.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},e}),N2D("FrontendComponentCommon",["FrontendComponent"],function(s,n){function t(t,e,i,s){this.wraps={},N2Classes.FrontendComponent.prototype.constructor.apply(this,arguments)}return((t.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=t).prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var e=this.$layer.find("> .n2-ss-layer-mask");e.length&&(this.wraps.mask=e);e=this.$layer.find("> .n2-ss-layer-parallax");switch(e.length&&(this.wraps.parallax=e),this.$layer.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}this.parallax=this.$layer.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.isAdaptiveFont||this.parent.isAdaptiveFont||this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize",100)),N2Classes.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,e){this.state[t]=e;for(var i=0;i<this.stateCBs.length;i++)this.stateCBs[i].call(this,this.state)},t.prototype.addStateCallback=function(t){this.stateCBs.push(t),t.call(this,this.state)},t.prototype.refreshBaseSize=function(t){this.isAdaptiveFont?this.baseSize=16*t/100:this.baseSize=this.parent.baseSize*t/100},t.prototype.start=function(){this.placement.start(),N2Classes.FrontendComponent.prototype.start.call(this);var t,e=this.get("rotation")||0;e/360!=0&&(t=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>"),NextendTween.set(t[0],{rotationZ:e}))},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);var e=this.isVisible;if(this.isVisible=this.getDevice("")&&this.parent.isVisible,this.isVisible===n&&(this.isVisible=1),e&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none"),this.$layer.triggerHandler("visibilityChange",[0])):!e&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display",""),this.$layer.triggerHandler("visibilityChange",[1])),this.isVisible){e=this.getDevice("fontsize",100);this.refreshBaseSize(e),!this.parent.isAdaptiveFont&&this.isAdaptiveFont?this.$layer.css("font-size",N2Classes.FontSize.toRem(16*e/100)):this.$layer.css("font-size",e+"%");for(var i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)}else for(i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t)},t.prototype.onAfterDeviceChange=function(t){},t.prototype.onResize=function(t,e){var i;(this.isVisible||this.placement.alwaysResize)&&(!this.parent.isAdaptiveFont&&this.isAdaptiveFont&&(i=this.getDevice("fontsize",100),this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100))),N2Classes.FrontendComponent.prototype.onResize.apply(this,arguments),this.placement.onResize(t,e))},t.prototype.hasLayerAnimation=function(){return this.animationManager!==n},t.prototype.addWrap=function(t,e){var i;return this.wraps[t]===n&&(i=s(e),"rotation"===t&&(this.wraps.mask!==n?i.appendTo(this.wraps.mask):this.wraps.parallax!==n?i.appendTo(this.wraps.parallax):i.appendTo(this.$layer),i.append(this.getContents())),this.wraps[t]=i),i},t.prototype.getContents=function(){return!1},t}),N2D("FrontendComponent",function(t,s){function e(t,e,i,s){this.device="",this.children=[],this.slide=t,this.parent=e,this.$layer=i.data("layer",this),this.isVisible=!0,this.init(s)}return e.prototype.init=function(t){if(t)for(var e=0;e<t.length;e++)switch(t.eq(e).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,t.eq(e)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,t.eq(e)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,t.eq(e)));break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,t.eq(e)))}},e.prototype.start=function(){for(var t=0;t<this.children.length;t++)this.children[t].start()},e.prototype.onDeviceChange=function(t){this.device=t},e.prototype.onResize=function(t,e){for(var i=0;i<this.children.length;i++)this.children[i].onResize(t,e)},e.prototype.getDevice=function(t,e){var i=this.$layer.data(this.device+t);return i!==s?i:"desktopportrait"!==this.device?this.$layer.data("desktopportrait"+t):e!==s?e:0},e.prototype.get=function(t){return this.$layer.data(t)},e}),N2D("FrontendSlideControls",function(t,e){function i(t,e){this.slider=t,this.$element=e.data("slide",this),this.status=new N2Classes.SlideStatus}return i.prototype.isCurrentlyEdited=function(){return this._isCurrentlyEdited},i.prototype.is=function(t){return this===t},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,arguments)},i.prototype.isVisibleWhen=function(t){return!0},i.prototype.isActiveWhen=function(t){return!0},i.prototype.isStatic=function(){return!1},i}),N2D("FrontendPlacement",function(t,e){function i(t){this.layer=t,this.alwaysResize=!1,this.linked=[]}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(t){},i.prototype.onResize=function(t,e){for(var i=0;i<this.linked.length;i++)this.linked[i].onResizeLinked(t,e)},i.prototype.addLinked=function(t){this.linked.push(t),this.alwaysResize=!0},i}),N2D("FrontendSliderSlide",["FrontendSliderSlideAbstract"],function(n,r){function t(t,e,i){this.slides=[this],this.playCount=0,N2Classes.FrontendSliderSlideAbstract.prototype.constructor.apply(this,arguments),this.id=this.$element.data("id");var s="";this.$element.data("title")!==r&&(s=this.$element.data("title")),this.$slideFocus=n('<div tabindex="-1" class="n2-ss-slide--focus" role="note">'+s+"</div>").prependTo(this.$element),this.$focusableElements=this.$element.find('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=e.data("slide-duration"),n.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.$layer=e.find('.n2-ss-layer[data-sstype="slide"]'),t.sliderElement.on({SliderDeviceOrientation:function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")}.bind(this)})):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}var e=!(((t.prototype=Object.create(N2Classes.FrontendSliderSlideAbstract.prototype)).constructor=t).prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)});try{document.createElement("div").focus(Object.defineProperty({},"preventScroll",{get:function(){e=!0}}))}catch(t){}return t.prototype.focus=function(){e&&this.$slideFocus[0].focus({preventScroll:!0})},t.prototype.allowFocus=function(){this.$focusableElements.attr("tabindex","0"),this.$element.removeAttr("aria-hidden")},t.prototype.disableFocus=function(){this.$focusableElements.attr("tabindex","-1"),this.$element.attr("aria-hidden",!0)},t.prototype.init=function(){var t=this.slider.findSlideBackground(this);0<t.length&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,t,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,t,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},t.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Hidden")):(this.slider.visibleRealSlides.push(this),!0!==this.isVisible&&(this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")))},t.prototype.hasLayers=function(){return 0<this.component.children.length},t.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},t.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},t.prototype.hasLink=function(){return!!this.$element.data("haslink")},t}),N2D("FrontendSliderSlideAbstract",["FrontendSlideControls"],function(i,t){function e(t,e,i){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=this.slides||[],(this.group=this).originalIndex=i,this.index=i,this.localIndex=i,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var s in N2Classes.FrontendSlideControls.prototype)e.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return e.prototype.setIndex=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setIndex(t)},e.prototype._setIndex=function(t){this.localIndex=this.index=t},e.prototype.preLoad=function(){for(var t=[],e=0;e<this.slides.length;e++)t.push(this.slides[e]._preLoad());return i.when.apply(i,t)},e.prototype._preLoad=function(){return!this.background||this.background.preLoad()},e.prototype.setPrevious=function(t){this.previousSlide=t},e.prototype.getPrevious=function(){for(var t=this;t=t.previousSlide,t&&t!==this&&!t.isVisible;);return t},e.prototype.setNext=function(t){(this.nextSlide=t)&&t.setPrevious(this)},e.prototype.getNext=function(){for(var t=this;t=t.nextSlide,t&&t!==this&&!t.isVisible;);return t},e.prototype.getTitle=function(){return this.slides[0].$element.data("title")},e.prototype.getDescription=function(){return this.slides[0].$element.data("description")},e.prototype.getThumbnail=function(){return this.slides[0].$element.data("thumbnail")},e.prototype.hasLink=function(){return!1},e.prototype.setActive=function(){this.allowFocus(),this.$element.addClass("n2-ss-slide-active")},e.prototype.unsetActive=function(){this.disableFocus(),this.$element.removeClass("n2-ss-slide-active")},e.prototype.setInside=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setInside(t)},e.prototype._setInside=function(t){},e.prototype.focus=function(){},e.prototype.allowFocus=function(){},e.prototype.disableFocus=function(){},e.prototype.isVisibleWhen=function(t){return-1!==this.slider.getVisibleSlides(t).indexOf(this)},e.prototype.isActiveWhen=function(t){return-1!==this.slider.getActiveSlides(t).indexOf(this)},e}),N2D("SlideStatus",function(t,e){var i={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3,SUSPENDED:4};function s(){this.status=i.NOT_INITIALIZED}return s.prototype.set=function(t){this.status=i[t]},s.prototype.is=function(t){return this.status===i[t]},s}),N2D("FrontendSliderStaticSlide",["FrontendSlideControls"],function(t,e){function i(t,e){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=[this],this.isVisible=!0,this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?this.$layer=this.$element.find('.n2-ss-layer[data-sstype="slide"]'):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}for(var s in N2Classes.FrontendSlideControls.prototype)i.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return i.prototype.isStatic=function(){return!0},i.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.triggerHandler("Hidden")):!0!==this.isVisible&&(this.isVisible=!0,this.status.is("INITIALIZED")&&this.playIn(),this.triggerHandler("Visible"))},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(t){this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0===this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},i.prototype.isSingleAxis=function(){if(this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide){if(!this.parentLayer)return!1;if(this.parentLayer.placement instanceof N2Classes.FrontendPlacementAbsolute)return!1}return!0},i.prototype.onResize=i.prototype.onResizeLinked=function(t,e){var i=this.layer.$layer,s=t.slideW,n=t.slideH;this.isSingleAxis()&&(n=s);var r=s,o=n;parseInt(this.layer.get("responsivesize"))||(r=o=1),i.css("width",this.getWidth(r)),i.css("height",this.getHeight(o)),parseInt(this.layer.get("responsiveposition"))||(s=n=1);var a=this.layer.getDevice("left")*s,l=this.layer.getDevice("top")*n,o=this.layer.getDevice("align"),s=this.layer.getDevice("valign"),h={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var d={left:(n=this.$parent).prop("offsetLeft"),top:n.prop("offsetTop")},c={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":c.left=d.left+this.$parent.width();break;case"center":c.left=d.left+this.$parent.width()/2;break;default:c.left=d.left}switch(o){case"right":h.right=i.parent()[0].offsetWidth-c.left-a+"px";break;case"center":h.left=c.left+a-i.width()/2+"px";break;default:h.left=c.left+a+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":c.top=d.top+this.$parent.height();break;case"middle":c.top=d.top+this.$parent.height()/2;break;default:c.top=d.top}switch(s){case"bottom":h.bottom=i.parent()[0].offsetHeight-c.top-l+"px";break;case"middle":h.top=c.top+l-i.height()/2+"px";break;default:h.top=c.top+l+"px"}}else{switch(o){case"right":h.right=-a+"px";break;case"center":var p=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideWidth:i.parent()[0].offsetWidth;h.left=Math.round(p/2+a-i.width()/2)+"px";break;default:h.left=a+"px"}switch(s){case"bottom":h.bottom=-l+"px";break;case"middle":var u=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideHeight:i.parent()[0].offsetHeight;h.top=Math.round(u/2+l-i.height()/2)+"px";break;default:h.top=l+"px"}}i.css(h);for(var m=0;m<this.linked.length;m++)this.linked[m].onResizeLinked(t,e)},i.prototype.getWidth=function(t){var e=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.getHeight=function(t){var e=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.isDimensionPropertyAccepted=function(t){return!(!(t+"").match(/[0-9]+%/)&&"auto"!=t)},i}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var t=this.layer.getDevice("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.layer.$layer.css("margin",t.join(e+" ")+e)},i.prototype.updateHeight=function(){var t,e=this.layer.getDevice("height"),i="px";0<e?(0<(t=this.layer.baseSize)&&(i="em",e=parseInt(e)/t),this.layer.$layer.css("height",e+i).attr("data-custom-height",1)):this.layer.$layer.css("height","").removeAttr("data-custom-height")},i.prototype.updateMaxWidth=function(){var t=parseInt(this.layer.getDevice("maxwidth"));t<=0||isNaN(t)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var t=this.getDevice("order");return 0==t?10:t},i.prototype.updateOrder=function(){var t=this.getDevice("order");0==t?this.$layer.css("order",""):this.$layer.css("order",t)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-section-main-content:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponentCommon"],function(t,s){function e(t,e,i){N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i),this.wraps.mask!==s?this.$item=this.wraps.mask.children():this.wraps.parallax!==s?this.$item=this.wraps.parallax.children():this.$item=i.children()}return((e.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=e).prototype.getContents=function(){return this.$item},e}),N2D("FrontendComponentRow",["FrontendComponentCommon"],function(i,c){function t(t,e,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),this.columns=[],N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$rowInner.find("> .n2-ss-layer"))}return((t.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=t).prototype.init=function(t){N2Classes.FrontendComponentCommon.prototype.init.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e]instanceof N2Classes.FrontendComponentCol&&this.columns.push(this.children[e])},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},t.prototype.onAfterDeviceChange=function(t){this.updateWrapAfter()},t.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$row.css("padding",t.join(e+" ")+e)},t.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},t.prototype.updateGutter=function(){var t=this.getDevice("gutter"),e=t/2;if(0<this.columns.length)for(var i=this.columns.length-1;0<=i;i--)this.columns[i].$layer.css("margin",e+"px");this.$rowInner.css({width:"calc(100% + "+(t+1)+"px)",margin:-e+"px"})},t.prototype.getSortedColumns=function(){for(var t=i.extend([],this.columns).sort(function(t,e){return t.getRealOrder()-e.getRealOrder()}),e=t.length-1;0<=e;e--)t[e].isVisible||t.splice(e,1);return t},t.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),e=this.getSortedColumns(),i=e.length,s=!1;if(0===i)return!1;if(0<t&&t<i&&(s=!0),this.$row.attr("row-wrapped",s?1:0),s){for(var n=[],r=0;r<i;r++){var o=Math.floor(r/t);n[o]===c&&(n[o]=[]),n[o].push(e[r]),e[r].$layer.attr("data-r",o).toggleClass("n2-ss-last-in-row",(r+1)%t==0||r===i-1)}var a=this.getDevice("gutter");for(r=0;r<n.length;r++){for(var l=n[r],h=0,d=0;d<l.length;d++)h+=l[d].getWidthPercentage();for(d=0;d<l.length;d++)l[d].$layer.css("width","calc("+l[d].getWidthPercentage()/h*100+"% - "+(n2const.isIE||n2const.isEdge?a+1:a)+"px)")}}else{h=0;for(r=0;r<i;r++)h+=e[r].getWidthPercentage();for(r=0;r<i;r++)e[r].$layer.css("width",e[r].getWidthPercentage()/h*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);e[i-1].$layer.addClass("n2-ss-last-in-row")}},t.prototype.getContents=function(){return this.$row},t}),N2D("FrontendComponentSectionSlide",["FrontendComponent"],function(t,e){function i(t,e,i){this.realSlide=t,this.slider=e,this.$element=t.$element,this.$layer=i,this.baseSize=16,this.isStatic=t.isStatic(),N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer")),e.sliderElement.on({SliderDeviceOrientation:function(t,e){this.onDeviceChange(e.device.toLowerCase())}.bind(this),SliderResize:function(t,e,i){this.onResize(e,i.resizeContext)}.bind(this)}),this.start()}return((i.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e].onDeviceChange(t);this.realSlide.onDeviceChange(t),this.updatePadding()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|");this.$layer.css("padding",t.join("px ")+"px")},i}),N2D("SmartSliderResponsive",function(o,t){function a(t,e){this.state={StarterSlide:!1},this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.isLandscape=!1,this.pixelSnappingFraction=0,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.fullPageMinimumSliderHeight=0,this.minimumSlideHeight=0,this.isFullScreen=!1,this.visibleRealSlidesChanged=!0,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=o.extend({hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumSlideWidth:{ratio:-1,desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",sliderHeightBasedOn:"real",decreaseSliderHeight:0,focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},normalizedDeviceModes:{unknown:"unknown",desktopPortrait:"desktopPortrait"},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},e),this.parameters.hideOn=window.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this)),this.slider.parameters.dynamicHeight&&this.slider.stages.done("BeforeShow",function(){this.doResize()}.bind(this))}return a.DeviceMode={unknown:0,desktopLandscape:1,desktopPortrait:2,tabletLandscape:3,tabletPortrait:4,mobileLandscape:5,mobilePortrait:6},a._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},a._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},a.prototype.setDeviceID=function(t){this.deviceID=t,this.device=a._DeviceMode[t]},a.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){nextend.fontsDeferred===t?(this.slider.stages.resolve("Fonts"),this.slider.stages.resolved("windowLoad")||N2R("windowLoad",function(){this.doResize()}.bind(this))):nextend.fontsDeferred.always(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.setDeviceID(a.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.$section=this.alignElement.closest(".n2-section-smartslider"),"fullpage"===this.parameters.type&&"100vh"===this.parameters.sliderHeightBasedOn&&(this.$viewportHeight=o('<div style="height:100vh;width:0;position:absolute;bottom:0;visibility:hidden;"></div>').appendTo("body")),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&o("html, body").css("overflow","hidden"),nextend.smallestZoom=320,this.slider.stages.resolve("ResponsiveStart"),this.init(),this.onResize(),o(window).on("SliderContentResize",function(t){this.onResize(t)}.bind(this)),this.parameters.onResizeEnabled)if(o(window).on({resize:this.onResize.bind(this),orientationchange:this.onResize.bind(this)}),window.ResizeObserver!==t){var e=0;new ResizeObserver(function(t){t.forEach(function(t){e!==t.contentRect.width&&(e=t.contentRect.width,this.internalResize())}.bind(this))}.bind(this)).observe(this.containerElement.parent().get(0))}else try{o('<iframe class="bt_skip_resize intrinsic-ignore" title="Resize helper" sandbox="allow-same-origin allow-scripts" style="margin:0 !important;padding:0;border:0;display:block;width:100%;height:0;min-height:0 !important;max-height:0;"></iframe>').on("load",function(t){var i=0,s=o(t.target.contentWindow||t.target.contentDocument.defaultView).on("resize",function(t){var e=s.width();i!==e&&(i=e,this.internalResize())}.bind(this));s[0].document.getElementsByTagName("HTML")[0].setAttribute("lang",window.document.getElementsByTagName("HTML")[0].getAttribute("lang"))}.bind(this)).insertBefore(this.containerElement)}catch(t){}},a.prototype.internalResize=function(){this.onResize()},a.prototype.getMinimumContentHeight=function(){for(var t,e=this.slider.visibleRealSlides,i=0,s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.addClass("n2-ss-layer--height-calc");for(s=0;s<this.slider.visibleRealSlides.length;s++)t=e[s].$layer.outerHeight(),i=Math.max(i,t),e[s].$layer.data("contentHeight",t);for(s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.removeClass("n2-ss-layer--height-calc");return i},a.prototype.getMinimumStaticContentHeight=function(){for(var i=0,t=o(),e=0;e<this.slider.staticSlides.length;e++)t=t.add(this.slider.staticSlides[e].$element[0]);return t.addClass("n2-ss-layer--height-calc").each(function(t,e){i=Math.max(i,o(e).outerHeight())}).removeClass("n2-ss-layer--height-calc"),i},a.prototype.getDeviceMode=function(){return a._DeviceMode[this.deviceID]},a.prototype.getDeviceGroup=function(){return a._DeviceGroup[this.getDeviceMode()]},a.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",this._onResize.bind(this,t))):this._onResize(t)},a.prototype._onResize=function(t){this.doResize(t),this.delayedResizeAdded=!1},a.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(this.doResize.bind(this),10)},a.prototype.identifyDeviceID=function(){this.containerElementPadding.css("overflow","hidden");var t,e,i=a.DeviceMode.desktopPortrait,s=window.n2Width||window.innerWidth,n=window.n2Height||window.innerHeight;this.isLandscape=n<s;for(var r=this.parameters.breakpoints.length-1;0<=r;r--)if(t=this.parameters.breakpoints[r],e=this.isLandscape?t.landscapeWidth:t.portraitWidth,"max-screen-width"===t.type){if(s<=e){i=a.DeviceMode[t.device];break}}else if("min-screen-width"===t.type&&e<=s){i=a.DeviceMode[t.device];break}return this.containerElementPadding.css("overflow",""),i},a.prototype.updateOffsets=function(){if(this.focusOffsetTop=0,""!==this.parameters.focus.offsetTop)for(var t=o(this.parameters.focus.offsetTop),e=0;e<t.length;e++)t.eq(e).is(":visible")&&(this.focusOffsetTop+=t.eq(e).outerHeight());if(this.slider.isAdmin&&(this.focusOffsetTop+=o(".n2-lb-header").outerHeight()),this.focusOffsetBottom=0,""!==this.parameters.focus.offsetBottom){var i=o(this.parameters.focus.offsetBottom);for(e=0;e<i.length;e++)i.eq(e).is(":visible")&&(this.focusOffsetBottom+=i.eq(e).outerHeight())}},a.prototype.calculateFullPageSliderHeight=function(t){},a.prototype.doResize=function(t){var e,i,s=this.identifyDeviceID();if(this.parameters.hideOn[a._DeviceMode[s]])return this.$section.addClass("n2-section-smartslider--hidden"),!1;if(this.$section.removeClass("n2-section-smartslider--hidden"),!this.containerElementPadding.is(":visible"))return!1;this.updateOffsets(),this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1}.bind(this),500)),this.slider.isAdmin||this.parameters.forceFull&&("none"!==this.parameters.forceFullOverflowX&&o(this.parameters.forceFullOverflowX).css("overflow-x","hidden"),n=i=0,this.parameters.forceFullHorizontalSelector=window.ssForceFullHorizontalSelector||this.parameters.forceFullHorizontalSelector,""===this.parameters.forceFullHorizontalSelector||(r=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector))&&0<r.length&&(i=(e=r[0].getBoundingClientRect()).width,n=n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-e.right:e.left),r=0<i?i:document.body.clientWidth||document.documentElement.clientWidth,i=(e=this.containerElement.parent())[0].getBoundingClientRect(),n=-(n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-i.right:i.left)-parseInt(e.css("paddingLeft"))-parseInt(e.css("borderLeftWidth"))+n,this.containerElement.css({marginLeft:n,marginRight:n}).width(r));var n=!1,r=this.device;this.deviceID!==s&&(this.setDeviceID(s),this.sliderElement.removeClass("n2-ss-"+r).attr("data-device-mode",this.device).addClass("n2-ss-"+this.device),this.sliderElement.trigger("SliderDevice",{lastDevice:r,device:this.device,group:a._DeviceGroup[this.device]}),n=!0,this.slider.stages.resolve("Device")),n&&(this.slider.visibleRealSlides=[],this.sliderElement.trigger("SliderDeviceOrientation",{slider:this.slider,lastDevice:r,device:this.device,group:a._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),(this.slider.isVisible||this.visibleRealSlidesChanged)&&(this.resizeStage1Width(),this.sliderElement.trigger("SliderResizeHorizontal"),this.resizeStage2Height())},a.prototype.resizeStage1Width=function(){this.resizeContext={}},a.prototype.resizeStage2Height=function(){for(var t=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS()),e=0;e<t.length;e++)t[e].flush();this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.slider.stages.resolve("ResizeFirst"),this.finalizeVisibleSlidesStage2(),this.triggerResize()},a.prototype.resizeStage2HeightAnimated=function(t,e,i){this.dynamicHeightSlide=e;var s=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS());delete this.dynamicHeightSlide,this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.finalizeVisibleSlidesStage2();for(var n=0;n<s.length;n++)t.to(s[n].$,i,s[n].css,0);t.eventCallback("onComplete",function(){this.slider.trigger("SliderResizeAnimated",[this.ratios,this])}.bind(this))},a.prototype.getResizeStage2CSS=function(){},a.prototype.onStarterSlide=function(t){this.state.StarterSlide=!0,this.calibrateActiveSlide(t),delete this.targetCurrentSlide},a.prototype.finalizeVisibleSlidesStage1=function(){this.visibleRealSlidesChanged&&(this.slider.visibleRealSlides.sort(function(t,e){return t.index-e.index}),this.updateVisibleSlides(),this.slider.trigger("visibleRealSlidesChanged"),this.slider.stages.resolve("VisibleRealSlides"),this.isResetActiveSlideEarly&&this.calibrateActiveSlide())},a.prototype.updateVisibleSlides=function(){this.slider.visibleSlides=this.slider.visibleRealSlides},a.prototype.calibrateActiveSlide=function(t){this.state.StarterSlide&&0<this.slider.visibleSlides.length&&((t=t||this.slider.currentRealSlide).isVisible||(t=(t=t.getNext())||this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(t))},a.prototype.resetActiveRealSlide=function(t){var e,i;t&&t!==this.slider.currentRealSlide?(this.slider.trigger("BeforeCurrentSlideChange",t),(e=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(e),this.slider.setCurrentRealSlide(t),i=this.slider.currentSlide,this.targetCurrentSlide=i,this.slider.forceSetActiveSlide(i),this.slider.trigger("SlideForceChange",[e,i])):i=this.slider.currentSlide,this.slider.updateInsideSlides([i])},a.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==t&&(this.slider.trigger("SlideWillChange",this.targetCurrentSlide),this.slider.trigger("CurrentSlideChanged",this.targetCurrentSlide),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},a.prototype.triggerVisibleSlidesChanged=function(){this.slider.trigger("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},a.prototype.getNormalizedModeString=function(){return a._DeviceMode[this.deviceID]},a.prototype.triggerResize=function(){this.slider.publicTrigger("SliderResize",[this.ratios,this]),this.slider.stages.resolve("Resized")},a.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;var t=this.focusOffsetTop+this.focusOffsetBottom;if(this.slider.widgets.$vertical)for(var e=0;e<this.slider.widgets.$vertical.length;e++)t+=this.slider.widgets.$vertical.eq(e).outerHeight();return t+this.parameters.decreaseSliderHeight},a.prototype.addHorizontalSpacingControl=function(t,e){this.horizontalSpacingControls[t].push(e),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},a.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var e in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var i=this.horizontalSpacingControls[e],s=i.length-1;0<=s;s--){var n=i[s];n.isVisible()&&(n.refreshSliderSize(t),this.horizontalSpacing[e]+=n.getSize())}return this.containerElementPadding.css({paddingLeft:this.horizontalSpacing.left,paddingRight:this.horizontalSpacing.right}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},a.prototype.addFilter=function(t,e){this.filters[t].push(e)},a.prototype.removeFilter=function(t,e){this.filters[t].push(e)},a.prototype.applyFilter=function(t,e){for(var i=0;i<this.filters[t].length;i++)e=this.filters[t][i].call(this,e);return e},a.prototype.prepareFontSize=function(t){return N2Classes.FontSize.toRem(t)},a}),N2D("FrontendItemVimeo",function(o,e){function i(t,e,i,s,n,r){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=o.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=o("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.start=r,this.parameters=o.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},s),1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){this.$playerElement.on("click.vimeo n2click.vimeo",function(t){this.$playerElement.off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this))}.bind(this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=o.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=o('<iframe class="intrinsic-ignore" allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" webkitAllowFullScreen allowFullScreen></iframe>');this.$playerElement.prepend(t),this.player=new Vimeo.Player(t[0],{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);0<=t&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){e?this.setState("visible",!0,!0):(e=this.state.play,this.setState("visible",!1,!0),e&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.safePlay.bind(this)),e.one("n2play",function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")}.bind(this)),this.player.on("pause",function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next())}.bind(this)),this.isStatic||this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.readyDeferred.resolve()},i.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?1==this.parameters.autoplay&&this.setState("play",!0):parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0)},i.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause())},i.prototype.play=function(){this.slider.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()}.bind(this)).catch(function(t){this.safePlay()}.bind(this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(function(){this.promise=this.player.setVolume(t)}.bind(this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(function(){this.promise=this.player.setCurrentTime(t)}.bind(this))},i.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t&&(this.promise=this.player.play())}.bind(this))}.bind(this))},i.prototype.safePause=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t||(this.promise=this.player.pause())}.bind(this))}.bind(this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},i}),N2D("FrontendItemYouTube",function(r,o){function a(t,e,i,s){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=r.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=r("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.parameters=r.extend({youtubeurl:"//www.youtube.com/watch?v=3PPtkRU7D74",youtubecode:"3PPtkRU7D74",center:0,autoplay:1,ended:"",related:"1",volume:"-1",loop:0,modestbranding:1,reset:0,query:[],playsinline:0},i),1===parseInt(this.parameters.autoplay)||!s||n2const.isMobile?this.ready(this.initYoutubePlayer.bind(this)):this.$playerElement.on("click.youtube n2click.youtube",function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(function(){this.readyDeferred.done(function(){this.play()}.bind(this)),this.initYoutubePlayer()}.bind(this))}.bind(this))}return a.YTDeferred=null,a.prototype.ready=function(t){var e,i,s,n;null===a.YTDeferred&&(a.YTDeferred=r.Deferred(),window.YT===o&&r.getScript("https://www.youtube.com/iframe_api"),window._EPYT_!==o?(s=a.YTDeferred,(n=function(){!0===window._EPADashboard_.initStarted?s.resolve():setTimeout(n,100)})()):(e=a.YTDeferred,(i=function(){window.YT!==o&&window.YT.loaded?e.resolve():setTimeout(i,100)})())),a.YTDeferred.done(t)},a.prototype.fadeOutCover=function(){this.coverFadedOut===o&&this.$cover.length&&(this.coverFadedOut=!0,NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)}))},a.prototype.initYoutubePlayer=function(){var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.play.bind(this)),e.one("n2play",this.fadeOutCover.bind(this))),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var t,i={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,i.playsinline=1)}catch(t){}}for(t in n2const.isIOS&&this.parameters.controls&&(i.use_native_controls=1),1==this.parameters.center&&(i.controls=0),1!=this.parameters.controls&&(i.autohide=1,i.controls=0),+(0<=navigator.platform.toUpperCase().indexOf("MAC")&&-1<navigator.userAgent.search("Firefox"))&&(i.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(t)&&(i[t]=this.parameters.query[t]);var s={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:i,events:{onReady:this.onReady.bind(this),onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&this.slider.sliderElement.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next()))}}.bind(this)}};(this.parameters["privacy-enhanced"]||jQuery&&jQuery.fn.revolution)&&(s.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",s),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)))},a.prototype.onReady=function(){this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},a.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);0<t?this.setVolume(t):-1!==t&&this.player.mute(),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){e?this.setState("visible",!0,!0):(e=this.state.play,this.setState("visible",!1,!0),e&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},a.prototype.onCurrentSlideChange=function(t){t=this.slide.isActiveWhen(t);t&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",t,!0)},a.prototype.onResize=function(){var t=this.$playerElement.parent(),e=t.width(),i=t.height()+100,t={width:e,height:i,marginTop:0};t[n2const.rtl.marginLeft]=0,16/9<e/i?(t.height=e*(16/9),t.marginTop=(i-t.height)/2):(t.width=i*(16/9),t[n2const.rtl.marginLeft]=(e-t.width)/2),this.$playerElement.css(t)},a.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},a.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},a.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===o&&setTimeout(this.fadeOutCover.bind(this),200),this.slider.trigger("mediaStarted",this.playerId),this.player.playVideo())},a.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},a.prototype.stop=function(){this.player.stopVideo()},a.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},a.prototype.setVolume=function(t){this.player.setVolume(100*t)},a}),N2D("smartslider-frontend");
|
1 |
+
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s<t.length;s++)a.when(t[s]).done(function(){i.notify(++e,t.length)});a.when.apply(a,t).done(function(){i.resolveWith(null,arguments)})},e.prototype.getBackgroundImages=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].background);return t},e.prototype.onResized=function(){this.onSlideDeviceChanged(this.slider.responsive.getDeviceMode()),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",function(t,e){this.onSlideDeviceChanged(e.device)}.bind(this))},e.prototype.onStarterSlide=function(){1===this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):2===this.lazyLoad?(this.preLoadSlides=this._preLoadSlides,this.slider.stages.done("SlidesReady",function(){N2R("windowLoad",this.preLoadAll.bind(this))}.bind(this)),this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):(this.preLoadSlides=this._preLoadSlides,this.loadWithProgress(this.preLoadAll())),this.slider.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},e.prototype.onVisibleSlidesChanged=function(){(1===this.lazyLoad||2===this.lazyLoad)&&a.when.apply(a,this.preLoadSlides(this.slider.getVisibleSlides()))},e.prototype.onSlideDeviceChanged=function(t){this.device=t;for(var e=0;e<this.slider.visibleRealSlides.length;e++)this.slider.visibleRealSlides[e].background&&this.slider.visibleRealSlides[e].background.updateBackgroundToDevice(t)},e.prototype.preLoadAll=function(){for(var t=[],e=0;e<this.slider.visibleRealSlides.length;e++)t.push(this.slider.visibleRealSlides[e].preLoad());return t},e.prototype._preLoadSlides=function(t){var e=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.push(t[i].preLoad());return e},e.prototype.preloadSlidesLazyNeighbor=function(t){var e=this._preLoadSlides(t);if(this.lazyLoadNeighbor)for(var i=0,s=t[0].getPrevious(),n=t[t.length-1].getNext();i<this.lazyLoadNeighbor;)s&&(e.push(s.preLoad()),s=s.getPrevious()),n&&(e.push(n.preLoad()),n=n.getNext()),i++;var r,o=a.Deferred();return"resolved"!==e[0].state()?(r=setTimeout(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),r=null}.bind(this),50),a.when.apply(a,e).done(function(){r?(clearTimeout(r),r=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)}.bind(this))):setTimeout(function(){o.resolve()},100),e.push(o),e},e.prototype.hack=function(){for(var t=0;t<this.slider.realSlides.length;t++)this.slider.realSlides[t].background&&this.slider.realSlides[t].background.hack()},e}),N2D("CSSData",function(t,e){"use strict";function i(t,e){this.$=t,this.css=e}return i.prototype.flush=function(){this.$.css(this.css)},i}),N2D("FontSize",function(e,i){var s;return{toRem:function(t){return t/(s===i&&(s=e('<div style="font-size:10rem;"></div>').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},r=[];return{addPlugin:function(t,e){for(var i=0;i<r.length;i++)r[i].plugins.add(t,e);n[t]=e},addSlider:function(t){if(t.plugins===i)for(var e in t.plugins=new s(t),n)t.plugins.add(e,n[e]);r.push(t)}}}),N2D("ScrollTracker",function(t,e,i){function s(){this.started=!1,this.items=[],this.onScrollCallback=this.onScroll.bind(this)}return s.prototype.add=function(t,e,i,s){s={$el:t,mode:e,onVisible:i,onHide:s,state:"unknown"};this.items.push(s),this._onScroll(s,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.started=!0)},s.prototype.onScroll=function(t){for(var e=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],e)},s.prototype._onScroll=function(t,e){var i=t.$el[0].getBoundingClientRect(),s=i.height>.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0<i.top+i.height),!1===n?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new s}),N2D("SmartSliderApi",function(a,s){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,e){if(this.sliders[t]=e,this.readys[t]!==s)for(var i=0;i<this.readys[t].length;i++)this.readys[t][i].call(e,e,e.sliderElement)},t.prototype.ready=function(t,e){this.sliders[t]!==s?e.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):(this.readys[t]===s&&(this.readys[t]=[]),this.readys[t].push(e))},t.prototype.on=function(t,e){this.eventListeners[t]===s&&(this.eventListeners[t]=[]),this.eventListeners[t].push(e)},t.prototype.off=function(t,e){if(this.eventListeners[t]!==s)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]===e&&this.eventListeners[t].splice(i,1)},t.prototype.dispatch=function(t,e){if(this.eventListeners[t]!==s&&this.eventListeners[t].length)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]&&this.eventListeners[t][i].call(e,e)},t.prototype.trigger=function(t,e,i){i&&i.preventDefault();var i=a(t),s=e.split(","),t=i.closest(".n2-ss-slide,.n2-ss-static-slide"),n=t.data("ss-last-event");i.data("ss-reset-events")||(i.data("ss-reset-events",1),t.on("layerAnimationPlayIn.resetCounter",function(t){t.data("ss-last-event","")}.bind(this,t)));for(var r=s.length-1,o=0;o<s.length;o++)s[o]===n&&(r=o);e=r===s.length-1?s[0]:s[r+1],t.data("ss-last-event",e),t.triggerHandler("ss"+e)},t.prototype.applyAction=function(t,e){var i;this.isClickAllowed(t)&&(i=t.currentTarget,(i=a(i).closest(".n2-ss-slider").data("ss"))[e].apply(i,Array.prototype.slice.call(arguments,2)))},t.prototype.applyActionWithClick=function(t){this.isClickAllowed(t)&&(nextend.shouldPreventClick||(t.preventDefault(),this.applyAction.apply(this,arguments)))},t.prototype.isClickAllowed=function(t){return!a.contains(t.currentTarget,a(t.target).closest('a[href!="#"], *[onclick][onclick!=""], *[data-n2click][data-n2click!=""], *[data-n2-lightbox]').get(0))},t.prototype.openUrl=function(t,e){var i;this.isClickAllowed(t)&&(t=(i=a(t.currentTarget)).data("href"),e===s&&(e=i.data("target")),"_blank"===e?((e=window.open()).opener=null,e.location=t):n2const.setLocation(t))};var n={focusOffsetTop:0,to:function(t){var e=a("html, body, .n2_iframe_application__content");"smooth"===a("html").css("scroll-behavior")?e.scrollTop(t):e.animate({scrollTop:t},window.n2ScrollSpeed||400)},top:function(){n.to(0)},bottom:function(){n.to(a(document).height()-a(window).height())},before:function(t){n.to(t.offset().top-a(window).height())},after:function(t){n.to(t.offset().top+t.height()-n.focusOffsetTop)},next:function(i,t){var t=a(t),s=-1;t.each(function(t,e){if(a(i).is(e)||a.contains(e,i))return s=t+1,!1}),-1!==s&&s<=t.length&&n.element(t.eq(s))},previous:function(i,t){var t=a(t),s=-1;t.each(function(t,e){if(a(i).is(e)||a.contains(e,i))return s=t-1,!1}),0<=s&&n.element(t.eq(s))},element:function(t){n.to(a(t).offset().top-n.focusOffsetTop)}};return t.prototype.scroll=function(t,e){var i;this.isClickAllowed(t)&&(t.preventDefault(),(i=this.findSliderByElement(t.target))&&(n.focusOffsetTop=i.responsive.focusOffsetTop),n[e].apply(window,Array.prototype.slice.call(arguments,2)))},t.prototype.findSliderByElement=function(t){return a(t).closest(".n2-ss-slider").data("ss")},window.n2ss=new t,window.n2ss}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(t,e){this.editor=null,t instanceof $&&(t="#"+t.attr("id"));var i=t.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract&&(!window[i].__$sliderElement||$.contains(document.body,window[i].__$sliderElement.get(0)))){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.stages=new N2Classes.Stages,N2D(t,function(){return this}.bind(this)),this.isAdmin=!!e.admin,N2Classes.SmartSliderPlugins.addSlider(this),this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,e.isDelayed!==undefined&&e.isDelayed?$(window).ready(function(){this.waitForExists(i,e)}.bind(this)):this.waitForExists(i,e)}SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});t=this.sliderElement.closest(".n2-ss-margin");t.length?t.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-margin").remove()}.bind(this));t=this.sliderElement.closest(".n2-ss-align");t.length?t.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-align").remove()}.bind(this)),n2ss.makeReady(this.id,this)},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done(this.onSliderExists.bind(this,e,t)),s()};var lazySliders=[];function lazySliderLoad(t,e){lazySliders.push({element:t.__$sliderElement.parent()[0],callback:e}),1===lazySliders.length&&(window.addEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.addEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.on("SliderResize",lazySliderCheckScroll),lazySliderCheckScroll())}function lazySliderCheckScroll(){for(var t,e=1.4*$(window).height(),i=0;i<lazySliders.length;i++)lazySliders[i].element.getBoundingClientRect().y<e&&(t=lazySliders[i].callback,lazySliders.splice(i,1),i--,t());0===lazySliders.length&&(window.removeEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.removeEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.off("SliderResize",lazySliderCheckScroll))}return SmartSliderAbstract.prototype.onSliderExists=function(t,e,i){var s,n;this.__$sliderElement=i,this.stages.resolve("Exists"),"TEMPLATE"===i.prop("tagName")?(s=i.data("loading-type"),n=function(){var t=$(i.html());i.replaceWith(t),this.waitForDimension(t,e),$(window).triggerHandler("n2Rocket",[t])}.bind(this),"afterOnLoad"===s?N2R("windowLoad",lazySliderLoad.bind(this,this,n)):"afterDelay"===s?setTimeout(n,i.data("loading-delay")):n()):this.waitForDimension(i,e)},SmartSliderAbstract.prototype.waitForDimension=function(t,e){var i=function(){t.is(":visible")?this.onSliderHasDimension(t,e):setTimeout(i,200)}.bind(this);i()},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(e){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("a,input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e<t.length;e++)this.slides.push(this.createSlide(t.eq(e),e));for(e=0;e<this.slides.length;e++)this.slides[e].init(),1===this.slides[e].$element.data("first")&&(this.originalRealStarterSlide=this.slides[e]);this.realSlides=this.slides,this.visibleSlides=this.slides,this.initSlidesEnd()},SmartSliderAbstract.prototype.initSlidesEnd=function(){this.afterRawSlidesReady(),this.stages.resolve("RawSlides"),this.randomize(this.realSlides),this.stages.resolve("RawSlidesOrdered"),this.initStaticSlides()},SmartSliderAbstract.prototype.initStaticSlides=function(){for(var t=this.sliderElement.find(".n2-ss-static-slide"),e=0;e<t.length;e++)this.staticSlides.push(new N2Classes.FrontendSliderStaticSlide(this,t.eq(e)))},SmartSliderAbstract.prototype.createSlide=function(t,e){return new N2Classes.FrontendSliderSlide(this,t,e)},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.trigger=function(){this.sliderElement.triggerHandler.apply(this.sliderElement,arguments)},SmartSliderAbstract.prototype.publicTrigger=function(){this.trigger.apply(this,arguments),N2Classes.SmartSliderApi.dispatch(arguments[0],this)},SmartSliderAbstract.prototype.getVisibleSlides=function(t){return t===undefined&&(t=this.currentSlide),[t]},SmartSliderAbstract.prototype.getActiveSlides=function(t){return this.getVisibleSlides(t)},SmartSliderAbstract.prototype.findSlideBackground=function(t){return t.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(t){return t},SmartSliderAbstract.prototype.finalizeStarterSlide=function(){var t,e=this.originalRealStarterSlide;this.isAdmin?this.finalizeStarterSlideComplete(e):this.parameters.randomize.randomizeFirst?(e=this.visibleRealSlides[Math.floor(Math.random()*this.visibleRealSlides.length)],this.finalizeStarterSlideComplete(e)):window["ss"+this.id]!==undefined?"object"==typeof window["ss"+this.id]?window["ss"+this.id].done(this.overrideStarterSlideIndex.bind(this)):this.overrideStarterSlideIndex(window["ss"+this.id]):!this.isAdmin&&this.parameters.maintainSession&&window.localStorage!==undefined?(t=window.localStorage.getItem("ss-"+this.id),this.overrideStarterSlideIndex(t),this.sliderElement.on("mainAnimationComplete",function(t,e,i,s){window.localStorage.setItem("ss-"+this.id,s)}.bind(this))):this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.overrideStarterSlideIndex=function(t){var e;null!==t&&this.realSlides[t]&&(e=this.realSlides[t]),this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.finalizeStarterSlideComplete=function(t){t!==undefined&&t.isVisible||(t=this.visibleRealSlides[0]),t!==undefined?this.finalizeStarterSlideComplete2(t):(this.hide(),this.sliderElement.one({SliderResize:function(){this.finalizeStarterSlideComplete(t)}.bind(this)}))},SmartSliderAbstract.prototype.finalizeStarterSlideComplete2=function(t){t!==this.originalRealStarterSlide&&this.originalRealStarterSlide!==undefined&&this.originalRealStarterSlide.unsetActive(),this.responsive.onStarterSlide(t),this.stages.resolve("StarterSlide")},SmartSliderAbstract.prototype.randomize=function(t){this.parameters.randomize.randomize&&this.shuffleSlides(t)},SmartSliderAbstract.prototype.shuffleSlides=function(t){t.sort(function(){return.5-Math.random()});for(var e=t[0].$element.parent(),i=0;i<t.length;i++)t[i].$element.appendTo(e),t[i].setIndex(i)},SmartSliderAbstract.prototype.addWidget=function(t,e){this.widgetDeferreds.push(e)},SmartSliderAbstract.prototype.started=function(t){this.stages.done("UIReady",t.bind(this))},SmartSliderAbstract.prototype.ready=function(t){this.stages.done("Show",t.bind(this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&this.parameters.playWhenVisible?(this.checkIfVisibleCallback=this.checkIfVisible.bind(this),$(window).on("resize.n2-ss-visible"+this.id,this.checkIfVisibleCallback),this.sliderElement.on("mouseover.n2-ss-visible",this._markVisible.bind(this)),window.addEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.checkIfVisible()):this.stages.resolve("Visible")},SmartSliderAbstract.prototype.checkIfVisible=function(){var t=this.parameters.playWhenVisibleAt,e=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),n=this.sliderElement[0].getBoundingClientRect(),r=i*t/2,o=e+r,t=e+i-r;e<r&&(o*=e/r),s-r<e+i&&(t+=e+i-s+r);r=e+n.top,n=e+n.bottom;(this.isAdmin||r<=t&&o<=r||o<=n&&n<=t||r<=o&&t<=n)&&this._markVisible()},SmartSliderAbstract.prototype._markVisible=function(){this.sliderElement.off(".n2-ss-visible"),$(window).off(".n2-ss-visible"+this.id),window.removeEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.stages.resolve("Visible")},SmartSliderAbstract.prototype.visible=function(t){this.stages.done("Visible",t.bind(this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(t){var e=!1;if(this.responsive.parameters.focusUser&&!t&&(e=!0),e){var i=$(window).scrollTop(),s=this.responsive.focusOffsetTop,n=this.responsive.focusOffsetBottom,r=$(window).height(),o=this.sliderElement[0].getBoundingClientRect(),a=o.top-s,l=r-o.bottom-n,t=this.responsive.parameters.focusEdge,e="";"top-force"===t?e="top":"bottom-force"===t?e="bottom":a<=0&&l<=0||0<a&&0<l||(a<0?e="top"===t||"bottom"!==t&&-a<=l?"top":"bottom":l<0&&(e="top"!==t&&("bottom"===t||-l<=a)?"bottom":"top"));a=i;if("top"===e?a=i-s+o.top:"bottom"===e&&(a=i+n+o.bottom-r),a!==i)return this._scrollTo(a,Math.abs(i-a))}return!0},SmartSliderAbstract.prototype._scrollTo=function(t,e){var i=$.Deferred();return window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:t},e,function(){i.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},100)}.bind(this)),i},SmartSliderAbstract.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i=!1;return"next"===t?(e=this.currentSlide.getNext())&&(i=e.index):"previous"!==t||(t=this.currentSlide.getPrevious())&&(i=t.index),!1!==i&&i!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;e<this.slides.length;e++)this.slides[e].isVisible&&t++;return t},SmartSliderAbstract.prototype.directionalChangeToReal=function(t){this.directionalChangeTo(t)},SmartSliderAbstract.prototype.directionalChangeTo=function(t){t>this.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,r){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var o=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=o&&(this.mainAnimationLastChangeTime=o,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,r!==undefined&&(e=r),this._changeTo(i,s,n,r),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,r)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e].setInside(0<=t.indexOf(this.slides[e]))},SmartSliderAbstract.prototype.findSlideByElement=function(t){var e;for(t=$(t),e=0;e<this.realSlides.length;e++)if(1===this.realSlides[e].$element.has(t).length)return this.realSlides[e];for(e=0;e<this.staticSlides.length;e++)if(1===this.staticSlides[e].$element.has(t).length)return this.staticSlides[e];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(t){t=this.findSlideByElement(t);return t||-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch},SmartSliderAbstract.prototype.initControls=function(){if(!this.parameters.admin){if(this.hasTouch())switch(this.parameters.controls.touch){case"vertical":new N2Classes.SmartSliderControlTouchVertical(this);break;case"horizontal":new N2Classes.SmartSliderControlTouchHorizontal(this)}this.parameters.controls.keyboard&&(this.controls.touch!==undefined?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.mousewheel&&new N2Classes.SmartSliderControlMouseWheel(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this),this.parameters.alias.id&&new N2Classes.SmartSliderControlAlias(this,this.parameters.alias)}},SmartSliderAbstract.prototype.getSlideIndex=function(t){return t},SmartSliderAbstract.prototype.slideToID=function(t,e,i){for(var s=0;s<this.realSlides.length;s++)if(this.realSlides[s].id===t)return this.slide(this.getSlideIndex(s),e,i);var n=$('[data-id="'+t+'"]').closest(".n2-ss-slider");return!(!n.length||this.id!==n.data("ss").id)||(n.length?($("html, body").animate({scrollTop:n.offset().top},400),n.data("ss").slideToID(t,e,!0)):void 0)},SmartSliderAbstract.prototype.slide=function(t,e,i){return 0<=t&&t<this.slides.length&&(e===undefined?this.parameters.carousel&&this.currentSlide.index===this.slides.length-1&&0===t?this.next(i):this.currentSlide.index>t?this.changeTo(t,!0,i):this.changeTo(t,!1,i):this.changeTo(t,!e,i))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.getAnimationAxis=function(){return"horizontal"},SmartSliderAbstract.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},SmartSliderAbstract.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},SmartSliderAbstract.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},SmartSliderAbstract.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},SmartSliderAbstract.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},SmartSliderAbstract.prototype.getUINextSlide=function(t){return t.getNext()},SmartSliderAbstract}),N2D("Stages",function(r,e){function t(){this.stages={}}function i(t){this.n=t,this.d=r.Deferred()}return t.prototype.get=function(t){return this.stages[t]===e&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,e){var i;if("string"==typeof t)i=this.get(t);else{for(var s=[],n=0;n<t.length;n++)s.push(this.get(t[n]).getDeferred());i=r.when.apply(r,s)}i.done(e)},t.prototype.resolved=function(t){return this.get(t).resolved()},i.prototype.getDeferred=function(){return this.d},i.prototype.resolve=function(){this.resolved()||(this.d.resolve(),this.d=!0)},i.prototype.done=function(t){!0===this.d?t():this.d.done(t)},i.prototype.resolved=function(){return!0===this.d||"resolved"===this.d.state()},t}),N2D("SmartSliderWidget",function(t,e){"use strict";function i(t){this.slider=t,this.slider.started(this.register.bind(this))}return i.prototype.register=function(){this.slider.widgets.has(this.key)||(this.slider.widgets.register(this.key,this),this.onStart())},i.prototype.onStart=function(){},i.prototype.isVisible=function(){return this.$widget.is(":visible")},i.prototype.calculateDimensions=function(t){this.isVisible()?(t[this.key+"width"]=this.$widget.outerWidth(),t[this.key+"height"]=this.$widget.outerHeight()):(t[this.key+"width"]=0,t[this.key+"height"]=0)},i.prototype.filterSliderVerticalCSS=function(t){},i}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(t){this.slider=t,this.sliderElement=t.sliderElement,this.controls={previous:undefined,next:undefined,bullet:undefined,autoplay:undefined,indicator:undefined,bar:undefined,thumbnail:undefined,shadow:undefined,fullscreen:undefined,html:undefined},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1}}return SmartSliderWidgets.prototype.register=function(t,e){this.controls[t]=e},SmartSliderWidgets.prototype.has=function(t){return this.controls[t]!==undefined},SmartSliderWidgets.prototype.setState=function(t,e){if(this.states[t]!=e){this.states[t]=e;var i=t.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle(this.slider.getDirectionPrevious());break;case"nonCarouselLast":this.onStateChangeSingle(this.slider.getDirectionNext());break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var t in this.controls)this.onStateChangeSingle(t)},SmartSliderWidgets.prototype.onStateChangeSingle=function(t){var e,i;this.controls[t]&&(e=!0,this.controls[t].$widget.hasClass("n2-ss-widget-display-hover")&&(e=this.states.hover),e&&(t===this.slider.getDirectionPrevious()&&this.states.nonCarouselFirst||t===this.slider.getDirectionNext()&&this.states.nonCarouselLast)&&(e=!1),e&&(i=t+"-"+(this.states.currentSlideIndex+1),this.excludedSlides[i]&&(e=!1)),e&&this.states["hide."+t]!==undefined&&this.states["hide."+t]&&(e=!1),e&&this.states.singleSlide&&("previous"!==t&&"next"!==t&&"bullet"!==t&&"autoplay"!==t&&"indicator"!==t||(e=!1)),this.controls[t].$widget.toggleClass("n2-ss-widget-hidden",!e))},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("visibleSlidesChanged",function(){this.setState("singleSlide",this.slider.visibleSlides.length<=1)}.bind(this)),this.setState("singleSlide",this.slider.visibleSlides.length<=1),this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var t,e,i=!1;for(t in this.controls)if(this.controls[t]!==undefined){var s=this.controls[t].$widget.attr("data-exclude-slides");if(s!==undefined){for(var n=s.split(","),r=n.length-1;0<=r;r--){var o=n[r].split("-");if(2===o.length){var a=parseInt(o[0]),l=parseInt(o[1]);if(a<=l)for(var h=a;h<=l;h++)n.push(h)}else n[r]=parseInt(n[r])}if(0<n.length){for(r=0;r<n.length;r++)this.excludedSlides[t+"-"+n[r]]=!0;i=!0}}}i&&((e=function(t,e){this.setState("currentSlideIndex",e.index)}.bind(this))(null,this.slider.currentRealSlide),this.slider.sliderElement.on("SlideWillChange",e)),this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.responsive.addFilter("SliderVerticalCSS",this.filterSliderVerticalCSS.bind(this)),this.forceLayoutComposition(),this.onStateChangeAll(),this.slider.stages.resolve("WidgetsReady")},SmartSliderWidgets.prototype.calculateDimensions=function(){for(var t in this.controls)this.controls[t]!==undefined?this.controls[t].calculateDimensions(this.slider.responsive.resizeContext):(this.slider.responsive.resizeContext[t+"width"]=0,this.slider.responsive.resizeContext[t+"height"]=0)},SmartSliderWidgets.prototype.getDimensions=function(){this.calculateDimensions();var t=$.extend(!0,{},this.slider.responsive.resizeContext);return t.width=t.sliderWidth,t.height=t.sliderHeight,t.outerwidth=this.sliderElement.parent().width(),t.outerheight=this.sliderElement.parent().height(),t.canvaswidth=t.slideWidth,t.canvasheight=t.slideHeight,t.paneWidth!==undefined&&(t.panewidth=t.paneWidth),t.margintop=t.marginright=t.marginbottom=t.marginleft=0,t},SmartSliderWidgets.prototype.dimensionsToVariables=function(t){var e,i="";for(e in t){var s=t[e];"number"==typeof s&&(i+="var "+e+" = "+s+";")}return i},SmartSliderWidgets.prototype.forceLayoutComposition=function(){for(var t=this.filterSliderVerticalCSS([]),e=0;e<t.length;e++)t[e].flush()},SmartSliderWidgets.prototype.filterSliderVerticalCSS=function(cssData){var temp,dimensions=this.getDimensions(),k,k;for(k in this.dimensions=dimensions,this.controls)this.controls[k]!==undefined&&this.controls[k].filterSliderVerticalCSS(cssData);for(k in eval(this.dimensionsToVariables(dimensions)),this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k)),temp={};temp[k]=value+"px",cssData.push(new N2Classes.CSSData(el,temp))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}return cssData},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(i,t){function s(t,e){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=i.extend({duration:1500,ease:"easeInOutQuint"},e),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",function(t,e,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s}.bind(this)),this.slider.stages.done("ResponsiveStart",this.init.bind(this))}return s.prototype.init=function(){this.responsive=this.slider.responsive},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.slider.trigger("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(t){this.isTouch=t},s.prototype.setTouchProgress=function(t){"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):0<=t&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&-1<=t&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):0<=t&&t<=1&&this.timeline.progress(t))},s.prototype.setTouchEnd=function(t,e,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,e,i):this._setTouchEnd(t,e,i))},s.prototype._setTouchEnd=function(t,e,i){t&&0<e?(this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(t,e,i){t?e<0&&0<this.reverseTimeline.totalDuration()?(this.fixTouchDuration(this.reverseTimeline,e,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(e<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-e,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(t,e,i){var s=t.totalDuration(),e=Math.max(s/3,Math.min(s,i/Math.abs(e)/1e3));e!==s&&t.totalDuration(e)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return 0<arguments.length?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(e,i,t,s){this.slider.parameters.dynamicHeight&&this._dynamicHeightTimeline&&this._dynamicHeightTimeline.pause(),this._initAnimation(e,i,t),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[e,i,s],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[e,i,s],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(t){t.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,e,s],this)}.bind(this),this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,e){this.slider.trigger("mainAnimationWillRevertTo",[t,e]),this.sliderElement.one("mainAnimationComplete",this.revertTo.bind(this,t,e))},s.prototype.revertTo=function(t,e){this.slider.revertTo(t,e),this.slider.slides[e].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(t,e,i){this.slider.updateInsideSlides([t,e])},s.prototype.onChangeToStart=function(t,e,i){this.state="playing";i=[this,t.index,e.index,i];this.slider.trigger("mainAnimationStart",i),t.triggerHandler("mainAnimationStartOut",i),e.triggerHandler("mainAnimationStartIn",i)},s.prototype.onChangeToComplete=function(t,e,i){var s=[this,t.index,e.index,i];this.clearTimelines(),this.disableReverseMode(),t.triggerHandler("mainAnimationCompleteOut",s),e.triggerHandler("mainAnimationCompleteIn",s),this.state="ended",this.slider.parameters.dynamicHeight&&(this._dynamicHeightTimeline=new NextendTimeline,this.slider.responsive.resizeStage2HeightAnimated(this._dynamicHeightTimeline,e,.6),this._dynamicHeightTimeline.eventCallback("onComplete",function(){delete this._dynamicHeightTimeline},this)),this.slider.updateInsideSlides([e]),i||e.focus(),this.slider.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(t,e,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2D("SmartSliderControlAlias",function(s,e){"use strict";function t(t,e){var i="#"+t.elementID;this.elements={sliderSelector:i,$slider:s(i),$sliderAlign:s(i+"-align")},this.parameters=s.extend({slider:t,slideCount:t.slides.length,alias:s(i).data("alias"),href:window.location.href},e),this.parameters.anchor=this.getAnchor(),this.parameters.alias&&(this.createElement(this.parameters.alias),this.initSmoothScroll(),this.parameters.slideSwitch&&(this.switchOnLoad(),this.switchOnClick()))}return t.prototype.getAnchor=function(){var t={hasAnchor:0},e=window.location.hash.substr(1);return e&&(e===this.parameters.alias||this.parameters.slideSwitch&&-1<e.indexOf(this.parameters.alias)?t.hasAnchor=1:this.parameters.href=this.parameters.href.replace("#"+e,""),-1<e.indexOf("-")&&(e=e.split("-"),t.number=e[e.length-1])),t},t.prototype.switchOnLoad=function(){var t;this.createAnchorElements(),this.parameters.anchor.hasAnchor&&((t=this.parameters.anchor.number)===e&&this.parameters.slideSwitch&&(t=this.getParameterNumber()),null!==t&&(t--,window["ss"+this.parameters.slider.id]=t,N2R("windowLoad",function(t){this.smoothScrollTo(this.elements.$slider),this.replaceHash()}.bind(this))))},t.prototype.switchOnClick=function(){N2R("windowLoad",function(){s(window).on("hashchange",function(){var t=this.getAnchor();t.hasAnchor&&(this.switchToSlide(t.number-1),this.replaceHash())}.bind(this))}.bind(this))},t.prototype.replaceHash=function(){var t="#"+this.parameters.alias;history.replaceState?history.replaceState(null,null,t):location.hash=t},t.prototype.switchToSlide=function(i){N2R(this.elements.sliderSelector,function(t,e){e.slide(i)})},t.prototype.createAnchorElements=function(){if(this.parameters.scroll)for(var t=1;t<this.parameters.slideCount+1;t++)this.createElement(this.parameters.alias+"-"+t)},t.prototype.createElement=function(t){s("<div></div>").attr("id",t).css({height:0,lineHeight:0,minHeight:0,margin:0,padding:0}).insertBefore(this.elements.$sliderAlign)},t.prototype.initSmoothScroll=function(){this.parameters.smoothScroll&&s("html").css("scroll-behavior","smooth")},t.prototype.getParameterNumber=function(){var s={};return this.parameters.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){s[e]=i}),s[this.parameters.alias]!==e?parseInt(s[this.parameters.alias]):null},t.prototype.smoothScrollTo=function(t){this.parameters.scroll&&this.parameters.smoothScroll&&s("html, body").animate({scrollTop:t.offset().top},this.parameters.scrollSpeed)},t}),N2D("SmartSliderControlAutoplay",function(i,s){"use strict";function t(t,e){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this.wait=new N2Classes.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=i.extend({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},e),this.clickHandled=!1,(t.controls.autoplay=this).parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,setTimeout(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.timeline=NextendTween.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)}),this.slider.sliderElement.on({"BeforeCurrentSlideChange.autoplay":function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"CurrentSlideChanged.autoplay":function(t,e){this.timeline.duration(this.getSlideDuration(e.index)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"mainAnimationStart.autoplay":function(){this._currentCount++,this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"mainAnimationComplete.autoplay":function(t,e,i,s){this.timeline.duration(this.getSlideDuration(s)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"autoplayPause.autoplay":function(){this.setState("paused",1)}.bind(this),"autoplayResume.autoplay":function(t,e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0),e!==s&&this.timeline.progress(e)}.bind(this)}),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.trigger("autoplay",0),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,e){this.state[t]!==e&&(this.state[t]=e,this.timeline!==s&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==s&&this.isPaused||(this.isPaused=!0,this.slider.trigger("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),this.isPaused!==s&&!this.isPaused||(this.isPaused=!1,this.slider.trigger("autoplayStarted")))))},t.prototype.initClick=function(e,i){(e||i)&&this.slider.sliderElement.on("universalclick.autoplay",function(t){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):e&&this.setState("pausedSecondary",1))}.bind(this))},t.prototype.initHover=function(e,i){var s;(e||i)&&(s=!1,this.slider.sliderElement.on({"touchend.autoplay":function(){s=!0,setTimeout(function(){s=!1},300)},"mouseenter.autoplay":function(t){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==e||this.setState("pausedSecondary",1)}.bind(this),"mouseleave.autoplay":function(t){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===e&&this.setState("pausedSecondary",1)}.bind(this)}))},t.prototype.initMedia=function(t,e){var i=this.slider.sliderElement;t?i.on({"mediaStarted.autoplay":function(t,e){this.wait.add(e)}.bind(this),"mediaEnded.autoplay":function(t,e){this.wait.resolve(e)}.bind(this)}):e&&i.on({"mediaEnded.autoplay":function(){this.setState("pausedSecondary",0)}.bind(this)})},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.trigger("autoplay",this.timeline.progress())}.bind(this))},t.prototype.next=function(){if(this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}0<this.autoplayToSlide&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),0<=this.autoplayToSlideIndex&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),this.slider.sliderElement.off(".autoplay"),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],t=e.minimumSlideDuration;return 0===parseInt(e.minimumSlideDuration)&&(t=this.parameters.duration),t},t}),N2D("SmartSliderControlFullscreen",function(s,t){"use strict";function e(t,e,i){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};t=this.slider.sliderElement[0];t.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):t.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):t.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):t.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),s(window).trigger("resize")}.bind(this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)}.bind(this)),document.addEventListener(this.browserSpecific.event,this.fullScreenChange.bind(this))}return e.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},e.prototype.requestFullscreen=function(){return!this.isFullScreen&&(this.isFullScreen=!0,this._fullScreen(),!0)},e.prototype.exitFullscreen=function(){return!!this.isFullScreen&&(this.isFullScreen=!1,this._normalScreen(),!0)},e.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):document.createEventObject&&((i=document.createEventObject()).eventType=e),i.eventName=e,t.dispatchEvent?t.dispatchEvent(i):t.fireEvent&&htmlEvents["on"+e]?t.fireEvent("on"+i.eventType,i):t[e]?t[e]():t["on"+e]&&t["on"+e]()},e.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this._marginRight=this.responsive.containerElement[0].style.marginRight,this.responsive.containerElement.css({marginLeft:0,marginRight:0})),this.fullParent.css({width:"100%",height:"100%",backgroundColor:s("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},e.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},e.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.trigger("n2FullScreen"),s("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,s(window).trigger("resize")):this.forceFullpage&&(this.responsive.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.containerElement.css({marginLeft:this._marginLeft,marginRight:this._marginRight}),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),s("html").removeClass("n2-in-fullscreen"),s(window).trigger("resize"),this.isFullScreen=!1,this.slider.trigger("n2ExitFullScreen"))},e.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},e}),N2D("SmartSliderControlKeyboard",function(s,t){"use strict";var n;function r(){this.controls=[],document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(t,e,i){this.slider=t,this.parameters=s.extend({},i),this.parseEvent="vertical"===e?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,(n=n||new r).addControl(this),this.slider.sliderElement.on("SliderKeyDown",this.onKeyDown.bind(this)),t.controls.keyboard=this}return r.prototype.onMouseMove=function(t){this.mouseEvent=t},r.prototype.addControl=function(t){this.controls.push(t)},r.prototype.onKeyDown=function(t){var e;if(t.target.tagName.match(/BODY|DIV|IMG/)&&!t.target.isContentEditable)if(this.mouseEvent&&(e=this.findSlider(document.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))e.trigger("SliderKeyDown",t);else if(document.activeElement!==document.body&&(e=this.findSlider(document.activeElement)))e.trigger("SliderKeyDown",t);else for(var i=0;i<this.controls.length;i++)this.controls[i].onKeyDown(!1,t)},r.prototype.findSlider=function(t){var t=s(t),t=t.hasClass("n2-ss-slider")?t:t.closest(".n2-ss-slider");return!!t.length&&t},o.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),e=s(window).scrollTop(),i=this.slider.sliderElement.height();return t.top+.5*i>=e&&t.top-.5*i<=e+s(window).height()},o.prototype.onKeyDown=function(t,e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case 37:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.next(),!0);case 38:return this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o}),N2D("SmartSliderControlMouseWheel",function(s,t){"use strict";function e(t){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,document.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return e.prototype.hasScrollableParentRecursive=function(t,e){if(e===this.slider.sliderElement[0])return!1;if(e.scrollHeight>e.clientHeight){var i=s(e).css("overflow");if("hidden"!==i&&"visible"!==i)if(t){if(0<e.scrollTop)return!0}else if(e.scrollTop+e.clientHeight<e.scrollHeight)return!0}return this.hasScrollableParentRecursive(t,e.parentNode)},e.prototype.onGlobalMouseWheel=function(t){this.onCurveEvent(t),this.preventScroll.local||this.preventScroll.curve||Math.abs(t.deltaY)<this.maxDelta/2?t.preventDefault():(this.preventScroll.global&&t.preventDefault(),this.slider.sliderElement[0]!==t.target&&!s.contains(this.slider.sliderElement[0],t.target)||t.shiftKey||this.hasScrollableParentRecursive(t.deltaY<0,t.target)||this.onMouseWheel(t))},e.prototype.onMouseWheel=function(t){t.deltaY<0?this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.previous(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global()):this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global())},e.prototype.startCurveWatcher=function(t){!1!==this.preventScroll.curve&&clearTimeout(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDeltaY=t.deltaY,this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=setTimeout(s.proxy(this.releaseCurveLock,this),5e3)},e.prototype.onCurveEvent=function(t){this.preventScroll.curveGlobal&&(this.dynamicDelta||this.lastDeltaY===t.deltaY||(this.lastDeltaY=t.deltaY,this.dynamicDelta=!0),t=Math.abs(t.deltaY),this.preventScroll.curve&&this.maxDelta/2>t&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,t),this.preventScroll.curveGlobalTimeout&&clearTimeout(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500))},e.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,clearTimeout(this.preventScroll.curveTimeout)},e.prototype.local=function(){!1!==this.preventScroll.local&&clearTimeout(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=setTimeout(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},e.prototype.global=function(){!1!==this.preventScroll.global&&clearTimeout(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=setTimeout(function(){this.preventScroll.global=!1}.bind(this),2e3)},e}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(t){this.slider=t,this.minDistance=10,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.find("> .n2_ss__touch_element"),this.$window=e(window),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),t.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return i.prototype.onStarterSlide=function(){-1<navigator.userAgent.toLowerCase().indexOf("android")&&"1"!==this.swipeElement.parent().css("opacity")?this.swipeElement.parent().one("transitionend",this.initTouch.bind(this)):this.initTouch(),this.slider.sliderElement.on("sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},i.prototype.onVisibleSlidesChanged=function(){this.swipeElement.toggleClass("n2-grab",1<this.slider.visibleSlides.length)},i.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},i.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:e.extend({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:this.$window.scrollTop(),animationStartDirection:"unknown",hadDirection:!1},this.logDistance(0,0)},i.prototype._move=function(t,e,i,s){if(!s||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(i);s=this.get(i);if((this.currentInteraction.hadDirection||Math.abs(s)>this.minDistance||Math.abs(i.y)>this.minDistance)&&(this.logDistance(s,i.y),this.currentInteraction.percent<1&&this.setTouchProgress(s,i.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},i.prototype._end=function(t,e,i,s){"switch"===this.currentInteraction.action&&(s=s?0:this.measureRealDirection(),this.interactiveDrag?(this._animation.timeline.progress()<1&&this._animation.setTouchEnd(s,this.currentInteraction.progress,i.time),this._animation.setTouch(!1)):s&&this.callAction(this.currentInteraction.animationStartDirection),this.swipeElement.removeClass("n2-grabbing")),this.onEnd(),delete this.currentInteraction,Math.abs(i.x)<10&&Math.abs(i.y)<10?this.onTap(t):nextend.preventClick()},i.prototype.onEnd=function(){var t,e,i,s,n;"scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type&&(t=this.currentInteraction.distanceY[0],e=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],i=(t.d-e.d)/(e.t-t.t)*10,s=Date.now(),n=function(){requestAnimationFrame(function(){var t;if(!this.kineticScrollCancelled&&i&&(t=Date.now()-s,1<(t=i*Math.exp(-t/325))||t<-1))return this.$window.scrollTop(this.$window.scrollTop()+t),void n();this.onEndKineticScroll()}.bind(this))}.bind(this),this.kineticScrollCancelled=!1,n(),document.addEventListener("pointerdown",this.cancelKineticScroll))},i.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,document.removeEventListener("pointerdown",this.cancelKineticScroll),e("html").css("scroll-behavior","")},i.prototype.setTouchProgress=function(t,e){this.recognizeSwitchInteraction();var i,s=this.getPercent(t);if(this.currentInteraction.percent=s,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":i=-1*s;break;case"down":i=s;break;case"left":i=-1*s;break;case"right":i=s}this.currentInteraction.progress=i,this._animation.setTouchProgress(i)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(e)},i.prototype.startScrollInteraction=function(t){"vertical"!==this.axis&&!n2const.isEdge||this.slider.controlFullscreen.isFullScreen||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(e("html").css("scroll-behavior","auto"),this.$window.scrollTop(Math.max(0,this.currentInteraction.scrollTop-t))))},i.prototype.recognizeSwitchInteraction=function(){var t;"unknown"===this.currentInteraction.action&&1<this.slider.visibleSlides.length&&("ended"===this._animation.state?"unknown"!==(t=this.currentInteraction.direction)&&this.currentInteraction.state[t]&&(this.currentInteraction.animationStartDirection=t,this.interactiveDrag&&(this._animation.setTouch(this.axis),this.callAction(t,!1)),this.currentInteraction.action="switch",this.swipeElement.addClass("n2-grabbing")):"playing"===this._animation.state&&(this.currentInteraction.action="hold"))},i.prototype.logDistance=function(t,e){3<this.currentInteraction.distance.length&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:e,t:Date.now()})},i.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],e=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return 0<=e.d&&t.d>e.d||e.d<0&&t.d<e.d?0:1},i.prototype.onTap=function(t){this.preventMultipleTap||(e(t.target).trigger("n2click"),this.preventMultipleTap=!0,setTimeout(function(){this.preventMultipleTap=!1}.bind(this),500))},i.prototype.updatePanDirections=function(){},i.prototype.setState=function(t,e){"object"!=typeof arguments[0]&&((t={})[arguments[0]]=arguments[1],e=arguments[2]);var i,s=!1;for(i in t)this.state[i]!==t[i]&&(this.state[i]=t[i],s=!0);s&&e&&this.eventBurrito.supportsPointerEvents&&this.syncTouchAction()},i}),N2D("SmartSliderControlTouchHorizontal","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={left:!1,right:!1},this.axis="horizontal",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"left":return this.slider[n2const.isRTL()?"previous":"next"].call(this.slider,e);case"right":return this.slider[n2const.isRTL()?"next":"previous"].call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.x)<10||0===t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},i.prototype.get=function(t){return t.x},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderWidth))},i.prototype.updatePanDirections=function(){var t=this.slider.currentSlide.index,e=t+1<this.slider.slides.length,t=0<=t-1;this.slider.parameters.carousel&&(t=e=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:e,left:t},!0):this.setState({right:t,left:e},!0)},i.prototype.syncTouchAction=function(){var t={"pan-y":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.left&&(t["pan-y"]=!0),this.state.right&&(t["pan-y"]=!0));var e,i=[];for(e in t)t[e]&&i.push(e);this.swipeElement.css("touch-action",i.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",i.join(" "))},i}),N2D("SmartSliderControlTouchVertical","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"up":return this.slider.next.call(this.slider,e);case"down":return this.slider.previous.call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},i.prototype.get=function(t){return t.y},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderHeight))},i.prototype.updatePanDirections=function(){this.setState({down:!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction,up:!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction},!0)},i.prototype.syncTouchAction=function(){var t={"pan-x":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.up&&(t["pan-x"]=!0),this.state.down&&(t["pan-x"]=!0));var e,i=[];for(e in t)t[e]&&i.push(e);this.swipeElement.css("touch-action",i.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",i.join(" "))},i.prototype._start=function(t){this.slider.blockCarousel=!0,N2Classes.SmartSliderControlTouch.prototype._start.apply(this,arguments)},i.prototype.onEnd=function(t){N2Classes.SmartSliderControlTouch.prototype.onEnd.apply(this,arguments),this.slider.blockCarousel=!1},i}),N2D("SmartSliderControlAutoplayWait",function(t,e){"use strict";function i(t){this.autoplay=t,this.waits={}}return i.Strong=["lightbox"],i.prototype.add=function(t){this.waits[t]=1,this._refresh()},i.prototype.resolve=function(t){delete this.waits[t],this._refresh()},i.prototype.resolveWeak=function(){var t,e={};for(t in this.waits)1===this.waits[t]&&-1!==i.Strong.indexOf(t)&&(e[t]=1);this.waits=e,this._refresh()},i.prototype.resolveAll=function(){this.waits={},this._refresh()},i.prototype._refresh=function(){var t,e=!1;for(t in this.waits)if(this.waits[t]){e=!0;break}this.autoplay.setState("wait",e)},i}),N2D("SmartSliderSlideBackgroundColor",function(t,e){function i(t,e){this.$el=e}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(n,i){function t(t,e,i,s){this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=e,this.background=i,this.deferred=n.Deferred(),this.$background=s,this.blur=s.data("blur"),"blurfit"===i.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(i.element.attr("data-mode","fill"),i.mode="fill")),window.n2FilterProperty&&(0<this.blur?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine()?this.mobileSrc=this.tabletSrc=this.desktopSrc=s.data("desktop"):(this.desktopSrc=s.data("desktop")||"",this.tabletSrc=s.data("tablet")||"",this.mobileSrc=s.data("mobile")||"",n2const.isRetina&&((i=s.data("desktop-retina"))&&(this.desktopSrc=i),(i=s.data("tablet-retina"))&&(this.tabletSrc=i),(i=s.data("mobile-retina"))&&(this.mobileSrc=i)))}return t.prototype.getLoadedDeferred=function(){return this.deferred},t.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(function(){this.updateBackgroundToDevice(this.manager.device),this.waitForImage()}.bind(this))},t.prototype.waitForImage=function(){this.$background.n2imagesLoaded({background:!0},function(t){if(0<t.images.length){t=t.images[0].img;switch(this.width=t.naturalWidth,this.height=t.naturalHeight,this.background.mode){case"tile":case"center":1<n2const.devicePixelRatio&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()}else setTimeout(this.waitForImage.bind(this),100)}.bind(this))},t.prototype.updateBackgroundToDevice=function(t){var e=this.desktopSrc;"mobilePortrait"===t||"mobileLandscape"===t?this.mobileSrc?e=this.mobileSrc:this.tabletSrc&&(e=this.tabletSrc):"tabletPortrait"!==t&&"tabletLandscape"!==t||this.tabletSrc&&(e=this.tabletSrc),e?this.setSrc(e):this.setSrc("")},t.prototype.setSrc=function(t){var e;this.loadAllowed&&t!==this.currentSrc&&(""===t?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+t+'")'),this.currentSrc=t,this.$seo!==i&&(this.$seo.remove(),delete this.$seo),(e=this.$background.data("alt"))&&(e={alt:e,src:t},(t=this.$background.data("title"))&&(e.title=t),this.$seo=n('<img style="display:none;">').attr(e).appendTo(this.$background)))},t.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},t}),N2D("SmartSliderSlideBackground",function(o,t){function e(t,e,i){var s;this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=e,t.slider.needBackgroundWrap?(s=e.find("> *"),this.$wrapElement=o('<div class="n2-ss-slide-background-wrap n2-ow"></div>').appendTo(e).append(s)):this.$wrapElement=this.element,this.manager=i,this.loadDeferred=o.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=e.data("mode"),this.opacity=e.data("opacity");e=this.element.find(".n2-ss-slide-background-image");e.length&&(this.elements.image=new N2Classes[this.types.image](t,i,this,e));e=this.element.find(".n2-ss-slide-background-color");e.length&&(this.elements.color=new N2Classes[this.types.color](this,e));var n,r=[];for(n in this.elements)this.elements[n]&&r.push(this.elements[n].getLoadedDeferred());o.when.apply(o,r).then(function(){this.loadDeferred.resolve()}.bind(this))}return e.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=o(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},e.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},e.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},e.prototype.hasColor=function(){return this.elements.color},e.prototype.hasImage=function(){return this.elements.image},e.prototype.hasVideo=function(){return this.elements.video},e.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},e.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},e}),N2D("FrontendComponentCommon",["FrontendComponent"],function(s,n){function t(t,e,i,s){this.wraps={},N2Classes.FrontendComponent.prototype.constructor.apply(this,arguments)}return((t.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=t).prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var e=this.$layer.find("> .n2-ss-layer-mask");e.length&&(this.wraps.mask=e);e=this.$layer.find("> .n2-ss-layer-parallax");switch(e.length&&(this.wraps.parallax=e),this.$layer.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}this.parallax=this.$layer.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.isAdaptiveFont||this.parent.isAdaptiveFont||this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize",100)),N2Classes.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,e){this.state[t]=e;for(var i=0;i<this.stateCBs.length;i++)this.stateCBs[i].call(this,this.state)},t.prototype.addStateCallback=function(t){this.stateCBs.push(t),t.call(this,this.state)},t.prototype.refreshBaseSize=function(t){this.isAdaptiveFont?this.baseSize=16*t/100:this.baseSize=this.parent.baseSize*t/100},t.prototype.start=function(){this.placement.start(),N2Classes.FrontendComponent.prototype.start.call(this);var t,e=this.get("rotation")||0;e/360!=0&&(t=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>"),NextendTween.set(t[0],{rotationZ:e}))},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);var e=this.isVisible;if(this.isVisible=this.getDevice("")&&this.parent.isVisible,this.isVisible===n&&(this.isVisible=1),e&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none"),this.$layer.triggerHandler("visibilityChange",[0])):!e&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display",""),this.$layer.triggerHandler("visibilityChange",[1])),this.isVisible){e=this.getDevice("fontsize",100);this.refreshBaseSize(e),!this.parent.isAdaptiveFont&&this.isAdaptiveFont?this.$layer.css("font-size",N2Classes.FontSize.toRem(16*e/100)):this.$layer.css("font-size",e+"%");for(var i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)}else for(i=0;i<this.children.length;i++)this.children[i].onDeviceChange(t)},t.prototype.onAfterDeviceChange=function(t){},t.prototype.onResize=function(t,e){var i;(this.isVisible||this.placement.alwaysResize)&&(!this.parent.isAdaptiveFont&&this.isAdaptiveFont&&(i=this.getDevice("fontsize",100),this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100))),N2Classes.FrontendComponent.prototype.onResize.apply(this,arguments),this.placement.onResize(t,e))},t.prototype.hasLayerAnimation=function(){return this.animationManager!==n},t.prototype.addWrap=function(t,e){var i;return this.wraps[t]===n&&(i=s(e),"rotation"===t&&(this.wraps.mask!==n?i.appendTo(this.wraps.mask):this.wraps.parallax!==n?i.appendTo(this.wraps.parallax):i.appendTo(this.$layer),i.append(this.getContents())),this.wraps[t]=i),i},t.prototype.getContents=function(){return!1},t}),N2D("FrontendComponent",function(t,s){function e(t,e,i,s){this.device="",this.children=[],this.slide=t,this.parent=e,this.$layer=i.data("layer",this),this.isVisible=!0,this.init(s)}return e.prototype.init=function(t){if(t)for(var e=0;e<t.length;e++)switch(t.eq(e).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,t.eq(e)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,t.eq(e)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,t.eq(e)));break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,t.eq(e)))}},e.prototype.start=function(){for(var t=0;t<this.children.length;t++)this.children[t].start()},e.prototype.onDeviceChange=function(t){this.device=t},e.prototype.onResize=function(t,e){for(var i=0;i<this.children.length;i++)this.children[i].onResize(t,e)},e.prototype.getDevice=function(t,e){var i=this.$layer.data(this.device+t);return i!==s?i:"desktopportrait"!==this.device?this.$layer.data("desktopportrait"+t):e!==s?e:0},e.prototype.get=function(t){return this.$layer.data(t)},e}),N2D("FrontendSlideControls",function(t,e){function i(t,e){this.slider=t,this.$element=e.data("slide",this),this.status=new N2Classes.SlideStatus}return i.prototype.isCurrentlyEdited=function(){return this._isCurrentlyEdited},i.prototype.is=function(t){return this===t},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,arguments)},i.prototype.isVisibleWhen=function(t){return!0},i.prototype.isActiveWhen=function(t){return!0},i.prototype.isStatic=function(){return!1},i}),N2D("FrontendPlacement",function(t,e){function i(t){this.layer=t,this.alwaysResize=!1,this.linked=[]}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(t){},i.prototype.onResize=function(t,e){for(var i=0;i<this.linked.length;i++)this.linked[i].onResizeLinked(t,e)},i.prototype.addLinked=function(t){this.linked.push(t),this.alwaysResize=!0},i}),N2D("FrontendSliderSlide",["FrontendSliderSlideAbstract"],function(n,r){function t(t,e,i){this.slides=[this],this.playCount=0,N2Classes.FrontendSliderSlideAbstract.prototype.constructor.apply(this,arguments),this.id=this.$element.data("id");var s="";this.$element.data("title")!==r&&(s=this.$element.data("title")),this.$slideFocus=n('<div tabindex="-1" class="n2-ss-slide--focus" role="note">'+s+"</div>").prependTo(this.$element),this.$focusableElements=this.$element.find('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=e.data("slide-duration"),n.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.$layer=e.find('.n2-ss-layer[data-sstype="slide"]'),t.sliderElement.on({SliderDeviceOrientation:function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")}.bind(this)})):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}var e=!(((t.prototype=Object.create(N2Classes.FrontendSliderSlideAbstract.prototype)).constructor=t).prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)});try{document.createElement("div").focus(Object.defineProperty({},"preventScroll",{get:function(){e=!0}}))}catch(t){}return t.prototype.focus=function(){e&&this.$slideFocus[0].focus({preventScroll:!0})},t.prototype.allowFocus=function(){this.$focusableElements.attr("tabindex","0"),this.$element.removeAttr("aria-hidden")},t.prototype.disableFocus=function(){this.$focusableElements.attr("tabindex","-1"),this.$element.attr("aria-hidden",!0)},t.prototype.init=function(){var t=this.slider.findSlideBackground(this);0<t.length&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,t,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,t,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},t.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Hidden")):(this.slider.visibleRealSlides.push(this),!0!==this.isVisible&&(this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")))},t.prototype.hasLayers=function(){return 0<this.component.children.length},t.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},t.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},t.prototype.hasLink=function(){return!!this.$element.data("haslink")},t}),N2D("FrontendSliderSlideAbstract",["FrontendSlideControls"],function(i,t){function e(t,e,i){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=this.slides||[],(this.group=this).originalIndex=i,this.index=i,this.localIndex=i,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var s in N2Classes.FrontendSlideControls.prototype)e.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return e.prototype.setIndex=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setIndex(t)},e.prototype._setIndex=function(t){this.localIndex=this.index=t},e.prototype.preLoad=function(){for(var t=[],e=0;e<this.slides.length;e++)t.push(this.slides[e]._preLoad());return i.when.apply(i,t)},e.prototype._preLoad=function(){return!this.background||this.background.preLoad()},e.prototype.setPrevious=function(t){this.previousSlide=t},e.prototype.getPrevious=function(){for(var t=this;t=t.previousSlide,t&&t!==this&&!t.isVisible;);return t},e.prototype.setNext=function(t){(this.nextSlide=t)&&t.setPrevious(this)},e.prototype.getNext=function(){for(var t=this;t=t.nextSlide,t&&t!==this&&!t.isVisible;);return t},e.prototype.getTitle=function(){return this.slides[0].$element.data("title")},e.prototype.getDescription=function(){return this.slides[0].$element.data("description")},e.prototype.getThumbnail=function(){return this.slides[0].$element.data("thumbnail")},e.prototype.hasLink=function(){return!1},e.prototype.setActive=function(){this.allowFocus(),this.$element.addClass("n2-ss-slide-active")},e.prototype.unsetActive=function(){this.disableFocus(),this.$element.removeClass("n2-ss-slide-active")},e.prototype.setInside=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setInside(t)},e.prototype._setInside=function(t){},e.prototype.focus=function(){},e.prototype.allowFocus=function(){},e.prototype.disableFocus=function(){},e.prototype.isVisibleWhen=function(t){return-1!==this.slider.getVisibleSlides(t).indexOf(this)},e.prototype.isActiveWhen=function(t){return-1!==this.slider.getActiveSlides(t).indexOf(this)},e}),N2D("SlideStatus",function(t,e){var i={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3,SUSPENDED:4};function s(){this.status=i.NOT_INITIALIZED}return s.prototype.set=function(t){this.status=i[t]},s.prototype.is=function(t){return this.status===i[t]},s}),N2D("FrontendSliderStaticSlide",["FrontendSlideControls"],function(t,e){function i(t,e){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=[this],this.isVisible=!0,this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?this.$layer=this.$element.find('.n2-ss-layer[data-sstype="slide"]'):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}for(var s in N2Classes.FrontendSlideControls.prototype)i.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return i.prototype.isStatic=function(){return!0},i.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.triggerHandler("Hidden")):!0!==this.isVisible&&(this.isVisible=!0,this.status.is("INITIALIZED")&&this.playIn(),this.triggerHandler("Visible"))},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(t){this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0===this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},i.prototype.isSingleAxis=function(){if(this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide){if(!this.parentLayer)return!1;if(this.parentLayer.placement instanceof N2Classes.FrontendPlacementAbsolute)return!1}return!0},i.prototype.onResize=i.prototype.onResizeLinked=function(t,e){var i=this.layer.$layer,s=t.slideW,n=t.slideH;this.isSingleAxis()&&(n=s);var r=s,o=n;parseInt(this.layer.get("responsivesize"))||(r=o=1),i.css("width",this.getWidth(r)),i.css("height",this.getHeight(o)),parseInt(this.layer.get("responsiveposition"))||(s=n=1);var a=this.layer.getDevice("left")*s,l=this.layer.getDevice("top")*n,o=this.layer.getDevice("align"),s=this.layer.getDevice("valign"),h={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var d={left:(n=this.$parent).prop("offsetLeft"),top:n.prop("offsetTop")},c={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":c.left=d.left+this.$parent.width();break;case"center":c.left=d.left+this.$parent.width()/2;break;default:c.left=d.left}switch(o){case"right":h.right=i.parent()[0].offsetWidth-c.left-a+"px";break;case"center":h.left=c.left+a-i.width()/2+"px";break;default:h.left=c.left+a+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":c.top=d.top+this.$parent.height();break;case"middle":c.top=d.top+this.$parent.height()/2;break;default:c.top=d.top}switch(s){case"bottom":h.bottom=i.parent()[0].offsetHeight-c.top-l+"px";break;case"middle":h.top=c.top+l-i.height()/2+"px";break;default:h.top=c.top+l+"px"}}else{switch(o){case"right":h.right=-a+"px";break;case"center":var p=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideWidth:i.parent()[0].offsetWidth;h.left=Math.round(p/2+a-i.width()/2)+"px";break;default:h.left=a+"px"}switch(s){case"bottom":h.bottom=-l+"px";break;case"middle":var u=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideHeight:i.parent()[0].offsetHeight;h.top=Math.round(u/2+l-i.height()/2)+"px";break;default:h.top=l+"px"}}i.css(h);for(var m=0;m<this.linked.length;m++)this.linked[m].onResizeLinked(t,e)},i.prototype.getWidth=function(t){var e=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.getHeight=function(t){var e=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.isDimensionPropertyAccepted=function(t){return!(!(t+"").match(/[0-9]+%/)&&"auto"!=t)},i}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var t=this.layer.getDevice("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.layer.$layer.css("margin",t.join(e+" ")+e)},i.prototype.updateHeight=function(){var t,e=this.layer.getDevice("height"),i="px";0<e?(0<(t=this.layer.baseSize)&&(i="em",e=parseInt(e)/t),this.layer.$layer.css("height",e+i).attr("data-custom-height",1)):this.layer.$layer.css("height","").removeAttr("data-custom-height")},i.prototype.updateMaxWidth=function(){var t=parseInt(this.layer.getDevice("maxwidth"));t<=0||isNaN(t)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var t=this.getDevice("order");return 0==t?10:t},i.prototype.updateOrder=function(){var t=this.getDevice("order");0==t?this.$layer.css("order",""):this.$layer.css("order",t)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-section-main-content:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponentCommon"],function(t,s){function e(t,e,i){N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i),this.wraps.mask!==s?this.$item=this.wraps.mask.children():this.wraps.parallax!==s?this.$item=this.wraps.parallax.children():this.$item=i.children()}return((e.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=e).prototype.getContents=function(){return this.$item},e}),N2D("FrontendComponentRow",["FrontendComponentCommon"],function(i,c){function t(t,e,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),this.columns=[],N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$rowInner.find("> .n2-ss-layer"))}return((t.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=t).prototype.init=function(t){N2Classes.FrontendComponentCommon.prototype.init.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e]instanceof N2Classes.FrontendComponentCol&&this.columns.push(this.children[e])},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},t.prototype.onAfterDeviceChange=function(t){this.updateWrapAfter()},t.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$row.css("padding",t.join(e+" ")+e)},t.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},t.prototype.updateGutter=function(){var t=this.getDevice("gutter"),e=t/2;if(0<this.columns.length)for(var i=this.columns.length-1;0<=i;i--)this.columns[i].$layer.css("margin",e+"px");this.$rowInner.css({width:"calc(100% + "+(t+1)+"px)",margin:-e+"px"})},t.prototype.getSortedColumns=function(){for(var t=i.extend([],this.columns).sort(function(t,e){return t.getRealOrder()-e.getRealOrder()}),e=t.length-1;0<=e;e--)t[e].isVisible||t.splice(e,1);return t},t.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),e=this.getSortedColumns(),i=e.length,s=!1;if(0===i)return!1;if(0<t&&t<i&&(s=!0),this.$row.attr("row-wrapped",s?1:0),s){for(var n=[],r=0;r<i;r++){var o=Math.floor(r/t);n[o]===c&&(n[o]=[]),n[o].push(e[r]),e[r].$layer.attr("data-r",o).toggleClass("n2-ss-last-in-row",(r+1)%t==0||r===i-1)}var a=this.getDevice("gutter");for(r=0;r<n.length;r++){for(var l=n[r],h=0,d=0;d<l.length;d++)h+=l[d].getWidthPercentage();for(d=0;d<l.length;d++)l[d].$layer.css("width","calc("+l[d].getWidthPercentage()/h*100+"% - "+(n2const.isIE||n2const.isEdge?a+1:a)+"px)")}}else{h=0;for(r=0;r<i;r++)h+=e[r].getWidthPercentage();for(r=0;r<i;r++)e[r].$layer.css("width",e[r].getWidthPercentage()/h*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);e[i-1].$layer.addClass("n2-ss-last-in-row")}},t.prototype.getContents=function(){return this.$row},t}),N2D("FrontendComponentSectionSlide",["FrontendComponent"],function(t,e){function i(t,e,i){this.realSlide=t,this.slider=e,this.$element=t.$element,this.$layer=i,this.baseSize=16,this.isStatic=t.isStatic(),N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer")),e.sliderElement.on({SliderDeviceOrientation:function(t,e){this.onDeviceChange(e.device.toLowerCase())}.bind(this),SliderResize:function(t,e,i){this.onResize(e,i.resizeContext)}.bind(this)}),this.start()}return((i.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e].onDeviceChange(t);this.realSlide.onDeviceChange(t),this.updatePadding()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|");this.$layer.css("padding",t.join("px ")+"px")},i}),N2D("SmartSliderResponsive",function(o,t){function a(t,e){this.state={StarterSlide:!1},this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.isLandscape=!1,this.pixelSnappingFraction=0,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.fullPageMinimumSliderHeight=0,this.minimumSlideHeight=0,this.isFullScreen=!1,this.visibleRealSlidesChanged=!0,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=o.extend({hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumSlideWidth:{ratio:-1,desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",sliderHeightBasedOn:"real",decreaseSliderHeight:0,focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},normalizedDeviceModes:{unknown:"unknown",desktopPortrait:"desktopPortrait"},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},e),this.parameters.hideOn=window.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this)),this.slider.parameters.dynamicHeight&&this.slider.stages.done("BeforeShow",function(){this.doResize()}.bind(this))}return a.DeviceMode={unknown:0,desktopLandscape:1,desktopPortrait:2,tabletLandscape:3,tabletPortrait:4,mobileLandscape:5,mobilePortrait:6},a._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},a._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},a.prototype.setDeviceID=function(t){this.deviceID=t,this.device=a._DeviceMode[t]},a.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){nextend.fontsDeferred===t?(this.slider.stages.resolve("Fonts"),this.slider.stages.resolved("windowLoad")||N2R("windowLoad",function(){this.doResize()}.bind(this))):nextend.fontsDeferred.always(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.setDeviceID(a.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.$section=this.alignElement.closest(".n2-section-smartslider"),"fullpage"===this.parameters.type&&"100vh"===this.parameters.sliderHeightBasedOn&&(this.$viewportHeight=o('<div style="height:100vh;width:0;position:absolute;bottom:0;visibility:hidden;"></div>').appendTo("body")),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&o("html, body").css("overflow","hidden"),nextend.smallestZoom=320,this.slider.stages.resolve("ResponsiveStart"),this.init(),this.onResize(),o(window).on("SliderContentResize",function(t){this.onResize(t)}.bind(this)),this.parameters.onResizeEnabled)if(o(window).on({resize:this.onResize.bind(this),orientationchange:this.onResize.bind(this)}),window.ResizeObserver!==t){var e=0;new ResizeObserver(function(t){t.forEach(function(t){e!==t.contentRect.width&&(e=t.contentRect.width,this.internalResize())}.bind(this))}.bind(this)).observe(this.containerElement.parent().get(0))}else try{o('<iframe class="bt_skip_resize intrinsic-ignore" title="Resize helper" sandbox="allow-same-origin allow-scripts" style="margin:0 !important;padding:0;border:0;display:block;width:100%;height:0;min-height:0 !important;max-height:0;"></iframe>').on("load",function(t){var i=0,s=o(t.target.contentWindow||t.target.contentDocument.defaultView).on("resize",function(t){var e=s.width();i!==e&&(i=e,this.internalResize())}.bind(this));s[0].document.getElementsByTagName("HTML")[0].setAttribute("lang",window.document.getElementsByTagName("HTML")[0].getAttribute("lang"))}.bind(this)).insertBefore(this.containerElement)}catch(t){}},a.prototype.internalResize=function(){this.onResize()},a.prototype.getMinimumContentHeight=function(){for(var t,e=this.slider.visibleRealSlides,i=0,s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.addClass("n2-ss-layer--height-calc");for(s=0;s<this.slider.visibleRealSlides.length;s++)t=e[s].$layer.outerHeight(),i=Math.max(i,t),e[s].$layer.data("contentHeight",t);for(s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.removeClass("n2-ss-layer--height-calc");return i},a.prototype.getMinimumStaticContentHeight=function(){for(var i=0,t=o(),e=0;e<this.slider.staticSlides.length;e++)t=t.add(this.slider.staticSlides[e].$element[0]);return t.addClass("n2-ss-layer--height-calc").each(function(t,e){i=Math.max(i,o(e).outerHeight())}).removeClass("n2-ss-layer--height-calc"),i},a.prototype.getDeviceMode=function(){return a._DeviceMode[this.deviceID]},a.prototype.getDeviceGroup=function(){return a._DeviceGroup[this.getDeviceMode()]},a.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",this._onResize.bind(this,t))):this._onResize(t)},a.prototype._onResize=function(t){this.doResize(t),this.delayedResizeAdded=!1},a.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(this.doResize.bind(this),10)},a.prototype.identifyDeviceID=function(){this.containerElementPadding.css("overflow","hidden");var t,e,i=a.DeviceMode.desktopPortrait,s=window.n2Width||window.innerWidth,n=window.n2Height||window.innerHeight;this.isLandscape=n<s;for(var r=this.parameters.breakpoints.length-1;0<=r;r--)if(t=this.parameters.breakpoints[r],e=this.isLandscape?t.landscapeWidth:t.portraitWidth,"max-screen-width"===t.type){if(s<=e){i=a.DeviceMode[t.device];break}}else if("min-screen-width"===t.type&&e<=s){i=a.DeviceMode[t.device];break}return this.containerElementPadding.css("overflow",""),i},a.prototype.updateOffsets=function(){if(this.focusOffsetTop=0,""!==this.parameters.focus.offsetTop)for(var t=o(this.parameters.focus.offsetTop),e=0;e<t.length;e++)t.eq(e).is(":visible")&&(this.focusOffsetTop+=t.eq(e).outerHeight());if(this.slider.isAdmin&&(this.focusOffsetTop+=o(".n2-lb-header").outerHeight()),this.focusOffsetBottom=0,""!==this.parameters.focus.offsetBottom){var i=o(this.parameters.focus.offsetBottom);for(e=0;e<i.length;e++)i.eq(e).is(":visible")&&(this.focusOffsetBottom+=i.eq(e).outerHeight())}},a.prototype.calculateFullPageSliderHeight=function(t){},a.prototype.doResize=function(t){var e,i,s=this.identifyDeviceID();if(this.parameters.hideOn[a._DeviceMode[s]])return this.$section.addClass("n2-section-smartslider--hidden"),!1;if(this.$section.removeClass("n2-section-smartslider--hidden"),!this.containerElementPadding.is(":visible"))return!1;this.updateOffsets(),this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1}.bind(this),500)),this.slider.isAdmin||this.parameters.forceFull&&("none"!==this.parameters.forceFullOverflowX&&o(this.parameters.forceFullOverflowX).css("overflow-x","hidden"),n=i=0,this.parameters.forceFullHorizontalSelector=window.ssForceFullHorizontalSelector||this.parameters.forceFullHorizontalSelector,""===this.parameters.forceFullHorizontalSelector||(r=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector))&&0<r.length&&(i=(e=r[0].getBoundingClientRect()).width,n=n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-e.right:e.left),r=0<i?i:document.body.clientWidth||document.documentElement.clientWidth,i=(e=this.containerElement.parent())[0].getBoundingClientRect(),n=-(n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-i.right:i.left)-parseInt(e.css("paddingLeft"))-parseInt(e.css("borderLeftWidth"))+n,this.containerElement.css({marginLeft:n,marginRight:n}).width(r));var n=!1,r=this.device;this.deviceID!==s&&(this.setDeviceID(s),this.sliderElement.removeClass("n2-ss-"+r).attr("data-device-mode",this.device).addClass("n2-ss-"+this.device),this.sliderElement.trigger("SliderDevice",{lastDevice:r,device:this.device,group:a._DeviceGroup[this.device]}),n=!0,this.slider.stages.resolve("Device")),n&&(this.slider.visibleRealSlides=[],this.sliderElement.trigger("SliderDeviceOrientation",{slider:this.slider,lastDevice:r,device:this.device,group:a._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),(this.slider.isVisible||this.visibleRealSlidesChanged)&&(this.resizeStage1Width(),this.sliderElement.trigger("SliderResizeHorizontal"),this.resizeStage2Height())},a.prototype.resizeStage1Width=function(){this.resizeContext={}},a.prototype.resizeStage2Height=function(){for(var t=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS()),e=0;e<t.length;e++)t[e].flush();this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.slider.stages.resolve("ResizeFirst"),this.finalizeVisibleSlidesStage2(),this.triggerResize()},a.prototype.resizeStage2HeightAnimated=function(t,e,i){this.dynamicHeightSlide=e;var s=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS());delete this.dynamicHeightSlide,this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.finalizeVisibleSlidesStage2();for(var n=0;n<s.length;n++)t.to(s[n].$,i,s[n].css,0);t.eventCallback("onComplete",function(){this.slider.trigger("SliderResizeAnimated",[this.ratios,this])}.bind(this))},a.prototype.getResizeStage2CSS=function(){},a.prototype.onStarterSlide=function(t){this.state.StarterSlide=!0,this.calibrateActiveSlide(t),delete this.targetCurrentSlide},a.prototype.finalizeVisibleSlidesStage1=function(){this.visibleRealSlidesChanged&&(this.slider.visibleRealSlides.sort(function(t,e){return t.index-e.index}),this.updateVisibleSlides(),this.slider.trigger("visibleRealSlidesChanged"),this.slider.stages.resolve("VisibleRealSlides"),this.isResetActiveSlideEarly&&this.calibrateActiveSlide())},a.prototype.updateVisibleSlides=function(){this.slider.visibleSlides=this.slider.visibleRealSlides},a.prototype.calibrateActiveSlide=function(t){this.state.StarterSlide&&0<this.slider.visibleSlides.length&&((t=t||this.slider.currentRealSlide).isVisible||(t=(t=t.getNext())||this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(t))},a.prototype.resetActiveRealSlide=function(t){var e,i;t&&t!==this.slider.currentRealSlide?(this.slider.trigger("BeforeCurrentSlideChange",t),(e=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(e),this.slider.setCurrentRealSlide(t),i=this.slider.currentSlide,this.targetCurrentSlide=i,this.slider.forceSetActiveSlide(i),this.slider.trigger("SlideForceChange",[e,i])):i=this.slider.currentSlide,this.slider.updateInsideSlides([i])},a.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==t&&(this.slider.trigger("SlideWillChange",this.targetCurrentSlide),this.slider.trigger("CurrentSlideChanged",this.targetCurrentSlide),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},a.prototype.triggerVisibleSlidesChanged=function(){this.slider.trigger("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},a.prototype.getNormalizedModeString=function(){return a._DeviceMode[this.deviceID]},a.prototype.triggerResize=function(){this.slider.publicTrigger("SliderResize",[this.ratios,this]),this.slider.stages.resolve("Resized")},a.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;var t=this.focusOffsetTop+this.focusOffsetBottom;if(this.slider.widgets.$vertical)for(var e=0;e<this.slider.widgets.$vertical.length;e++)t+=this.slider.widgets.$vertical.eq(e).outerHeight();return t+this.parameters.decreaseSliderHeight},a.prototype.addHorizontalSpacingControl=function(t,e){this.horizontalSpacingControls[t].push(e),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},a.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var e in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var i=this.horizontalSpacingControls[e],s=i.length-1;0<=s;s--){var n=i[s];n.isVisible()&&(n.refreshSliderSize(t),this.horizontalSpacing[e]+=n.getSize())}return this.containerElementPadding.css({paddingLeft:this.horizontalSpacing.left,paddingRight:this.horizontalSpacing.right}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},a.prototype.addFilter=function(t,e){this.filters[t].push(e)},a.prototype.removeFilter=function(t,e){this.filters[t].push(e)},a.prototype.applyFilter=function(t,e){for(var i=0;i<this.filters[t].length;i++)e=this.filters[t][i].call(this,e);return e},a.prototype.prepareFontSize=function(t){return N2Classes.FontSize.toRem(t)},a}),N2D("FrontendItemVimeo",function(o,e){function i(t,e,i,s,n,r){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=o.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=o("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.start=r,this.parameters=o.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},s),1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){this.$playerElement.on("click.vimeo n2click.vimeo",function(t){this.$playerElement.off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this))}.bind(this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=o.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=o('<iframe class="intrinsic-ignore" allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" webkitAllowFullScreen allowFullScreen></iframe>');this.$playerElement.prepend(t),this.player=new Vimeo.Player(t[0],{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);0<=t&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){e?this.setState("visible",!0,!0):(e=this.state.play,this.setState("visible",!1,!0),e&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.safePlay.bind(this)),e.one("n2play",function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")}.bind(this)),this.player.on("pause",function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next())}.bind(this)),this.isStatic||this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.readyDeferred.resolve()},i.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?1==this.parameters.autoplay&&this.setState("play",!0):parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0)},i.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause())},i.prototype.play=function(){this.slider.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()}.bind(this)).catch(function(t){this.safePlay()}.bind(this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(function(){this.promise=this.player.setVolume(t)}.bind(this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(function(){this.promise=this.player.setCurrentTime(t)}.bind(this))},i.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t&&(this.promise=this.player.play())}.bind(this))}.bind(this))},i.prototype.safePause=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t||(this.promise=this.player.pause())}.bind(this))}.bind(this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},i}),N2D("FrontendItemYouTube",function(r,o){function a(t,e,i,s){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=r.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=r("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.parameters=r.extend({youtubeurl:"//www.youtube.com/watch?v=3PPtkRU7D74",youtubecode:"3PPtkRU7D74",center:0,autoplay:1,ended:"",related:"1",volume:"-1",loop:0,modestbranding:1,reset:0,query:[],playsinline:0},i),1===parseInt(this.parameters.autoplay)||!s||n2const.isMobile?this.ready(this.initYoutubePlayer.bind(this)):this.$playerElement.on("click.youtube n2click.youtube",function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(function(){this.readyDeferred.done(function(){this.play()}.bind(this)),this.initYoutubePlayer()}.bind(this))}.bind(this))}return a.YTDeferred=null,a.prototype.ready=function(t){var e,i,s,n;null===a.YTDeferred&&(a.YTDeferred=r.Deferred(),window.YT===o&&r.getScript("https://www.youtube.com/iframe_api"),window._EPYT_!==o?(s=a.YTDeferred,(n=function(){!0===window._EPADashboard_.initStarted?s.resolve():setTimeout(n,100)})()):(e=a.YTDeferred,(i=function(){window.YT!==o&&window.YT.loaded?e.resolve():setTimeout(i,100)})())),a.YTDeferred.done(t)},a.prototype.fadeOutCover=function(){this.coverFadedOut===o&&this.$cover.length&&(this.coverFadedOut=!0,NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)}))},a.prototype.initYoutubePlayer=function(){var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.play.bind(this)),e.one("n2play",this.fadeOutCover.bind(this))),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var t,i={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,i.playsinline=1)}catch(t){}}for(t in n2const.isIOS&&this.parameters.controls&&(i.use_native_controls=1),1==this.parameters.center&&(i.controls=0),1!=this.parameters.controls&&(i.autohide=1,i.controls=0),+(0<=navigator.platform.toUpperCase().indexOf("MAC")&&-1<navigator.userAgent.search("Firefox"))&&(i.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(t)&&(i[t]=this.parameters.query[t]);var s={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:i,events:{onReady:this.onReady.bind(this),onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&this.slider.sliderElement.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next()))}}.bind(this)}};(this.parameters["privacy-enhanced"]||jQuery&&jQuery.fn.revolution)&&(s.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",s),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)))},a.prototype.onReady=function(){this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},a.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);0<t?this.setVolume(t):-1!==t&&this.player.mute(),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){e?this.setState("visible",!0,!0):(e=this.state.play,this.setState("visible",!1,!0),e&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},a.prototype.onCurrentSlideChange=function(t){t=this.slide.isActiveWhen(t);t&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",t,!0)},a.prototype.onResize=function(){var t=this.$playerElement.parent(),e=t.width(),i=t.height()+100,t={width:e,height:i,marginTop:0};t[n2const.rtl.marginLeft]=0,16/9<e/i?(t.height=e*(16/9),t.marginTop=(i-t.height)/2):(t.width=i*(16/9),t[n2const.rtl.marginLeft]=(e-t.width)/2),this.$playerElement.css(t)},a.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},a.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},a.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===o&&setTimeout(this.fadeOutCover.bind(this),200),this.slider.trigger("mediaStarted",this.playerId),this.player.playVideo())},a.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},a.prototype.stop=function(){this.player.stopVideo()},a.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},a.prototype.setVolume=function(t){this.player.setVolume(100*t)},a}),N2D("smartslider-frontend");
|
Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.n2-in-fullscreen *{animation-name:initial}.n2-in-fullscreen [data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:1}.n2-section-smartslider{position:relative;width:100%}.n2-section-smartslider--hidden{display:none}.n2-ss-align{position:relative;z-index:0;overflow:hidden}.n2-ss-align.n2-ss-align-visible{overflow:visible}.n2-ss-slider{-webkit-font-smoothing:antialiased}.n2-ss-slider-has-no-slide{height:0!important;opacity:0!important;overflow:hidden!important}.n2-ss-slider,.n2-ss-slider .n2_ss__touch_element{-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}.n2-ss-slider>*,.n2-ss-slider .n2_ss__touch_element>*{-webkit-tap-highlight-color:initial}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *{font-size:inherit;line-height:inherit;letter-spacing:inherit}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow-all *,.n2-ss-slider .n2-ow-all :before,.n2-ss-slider .n2-ow-all :after{box-sizing:content-box}.n2-ss-slider .n2-ow:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow-all :not(i):before,.n2-ss-slider .n2-ow-all :not(i):after{display:none}.n2-ss-slider a.n2-ow,.n2-ss-slider .n2-ow-all a{border:0;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider a.n2-ow,.n2-ss-slider a.n2-ow:focus,.n2-ss-slider .n2-ow-all a,.n2-ss-slider .n2-ow-all a:focus{outline:0!important;transition:none 0s;box-shadow:none;text-decoration:none}.n2-ss-slider path{transition:none 0s}.n2-ss-slider .n2-ow-all b,.n2-ss-slider .n2-ow-all i{color:inherit}.n2-ss-slider h1.n2-ow,.n2-ss-slider h2.n2-ow,.n2-ss-slider h3.n2-ow,.n2-ss-slider h4.n2-ow,.n2-ss-slider h5.n2-ow,.n2-ss-slider h6.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider .n2-ow-all h1,.n2-ss-slider .n2-ow-all h2,.n2-ss-slider .n2-ow-all h3,.n2-ss-slider .n2-ow-all h4,.n2-ss-slider .n2-ow-all h5,.n2-ss-slider .n2-ow-all h6,.n2-ss-slider .n2-ow-all p{margin:0;padding-left:0;padding-right:0;height:auto;width:auto;border:0;box-shadow:none;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider iframe{border:0;min-height:0}.n2-ss-slider iframe.n2-ow,.n2-ss-slider .n2-ow-all iframe{margin:0}.n2-ss-slider img.n2-ow,.n2-ss-slider .n2-ow-all img{width:auto;box-shadow:none;border-radius:0;background:0 0;background:0 0;padding:0;margin:0;border:0;vertical-align:top}.n2-ss-slider ul.n2-ow,.n2-ss-slider li.n2-ow,.n2-ss-slider img.n2-ow,.n2-ss-slider a.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider ol.n2-ow,.n2-ss-slider textarea.n2-ow,.n2-ss-slider input.n2-ow,.n2-ss-slider button.n2-ow{transition:none 0s}.n2-ss-slider p{background-color:transparent}.n2-ss-slider{z-index:3;position:relative;text-align:left;width:100%;min-height:1px}[dir=rtl] .n2-ss-slider{text-align:right}.n2-ss-slider :focus{outline:0}[dir=rtl] .n2-ss-slider .n2-ss-slide-background{text-align:left}.n2-ss-slider.n2-ss-load-fade{position:absolute;opacity:0;transition:opacity .3s ease-in-out}.n2-ss-slider.n2-ss-load-fade.n2-ss-loaded{opacity:1;position:relative}.n2-ss-slider .n2-grab{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.n2-ss-slider.n2notransition *{transition:none 0s!important}.n2-ss-slider .n2-ss-slide{text-align:center}.n2-ss-slider .n2-ss-slide--focus{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:-99999}.n2-ss-slider .n2-ss-slide,.n2-ss-slider .n2-ss-canvas{position:relative}.n2-ss-slider .n2-ss-slide,.n2-ss-slider .n2-ss-canvas{overflow:hidden!important}.n2-ss-slider .n2-ss-slide-background,.n2-ss-slider .n2-ss-slide-background *{position:absolute;top:0;left:0;width:100%;height:100%;text-align:left}.n2-ss-slider .n2-ss-slide-background{z-index:10}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color{z-index:1}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color[data-overlay="1"]{z-index:7}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-video{z-index:3}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-image{z-index:5}.n2-ss-slider .n2-ss-slide-background-image img{max-width:none;display:none;width:0;height:0}.n2-ss-slider .n2-ss-slide-background-image{width:100%;height:100%;background-position:50% 50%;background-repeat:no-repeat;box-sizing:content-box}.n2-ss-slider [data-mode=fill] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image+.n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=fit] .n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=simple] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=stretch] .n2-ss-slide-background-image{background-size:100% 100%}.n2-ss-slider [data-mode=center] .n2-ss-slide-background-image{background-position:50% 50%}.n2-ss-slider [data-mode=tile] .n2-ss-slide-background-image{background-repeat:repeat}.n2-ss-slider [data-mode=fixed] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider .n2-ss-slide-background-video{position:absolute;top:0;left:0}.n2-ss-slider .n2-ss-layers-container{visibility:hidden;position:relative;width:100%;height:100%;display:flex;flex-direction:column;z-index:20}.n2-ss-slider [onclick].n2-ss-layers-container{visibility:visible}.n2-ss-slider .n2-ss-layers-container>*{visibility:visible}.n2-ss-slider .n2-ss-layer{outline:1px solid RGBA(0,0,0,0);z-index:2}.n2-ss-slider .n2-ss-layer[data-pm=absolute]{position:absolute}.n2-ss-slider .n2-ss-layer[data-pm=default],.n2-ss-slider .n2-ss-layer[data-pm=normal]{position:relative;min-height:1px}.n2-ss-slider .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-rotation{width:100%;height:100%}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-rotation{height:auto;flex-grow:1}.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-rotation{height:100%}.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask>.n2-ss-layer-rotation{flex:1 1 auto;min-height:100%;height:auto!important;display:flex;flex-direction:column}.n2-ss-slider[data-device-mode=desktopPortrait] [data-hide-desktopportrait="1"],.n2-ss-slider[data-device-mode=desktopLandscape] [data-hide-desktoplandscape="1"],.n2-ss-slider[data-device-mode=tabletPortrait] [data-hide-tabletportrait="1"],.n2-ss-slider[data-device-mode=tabletLandscape] [data-hide-tabletlandscape="1"],.n2-ss-slider[data-device-mode=mobilePortrait] [data-hide-mobileportrait="1"],.n2-ss-slider[data-device-mode=mobileLandscape] [data-hide-mobilelandscape="1"]{display:none!important}.n2-ss-slider.n2-ss-desktopLandscape .n2-ss-hide-desktoplandscape,.n2-ss-slider.n2-ss-desktopPortrait .n2-ss-hide-desktopportrait,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-hide-tabletlandscape,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-hide-tabletportrait,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-hide-mobilelandscape,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-hide-mobileportrait{display:none}.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-slider-1,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-slider-1,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-slider-1,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-slider-1{background-attachment:scroll!important}.n2-ss-slider .n2-ss-widget{position:relative;-webkit-backface-visibility:hidden;-webkit-perspective:1000px;z-index:1;font-size:16px;transition:opacity .4s ease;opacity:1}.n2-ss-slider .n2-ss-widget[data-position=above],.n2-ss-slider .n2-ss-widget[data-position=below]{margin-left:auto;margin-right:auto}.n2-ss-slider .n2-ss-widget.n2-ss-widget-hidden{opacity:0!important;pointer-events:none}.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-widget,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-widget{font-size:14px}.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-widget,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-widget{font-size:12px}.n2-ss-slider.n2-ss-desktopLandscape .n2-ss-widget-hide-desktoplandscape,.n2-ss-slider.n2-ss-desktopPortrait .n2-ss-widget-hide-desktopportrait,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-widget-hide-tabletlandscape,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-widget-hide-tabletportrait,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-widget-hide-mobilelandscape,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-widget-hide-mobileportrait{display:none!important}.n2-ss-slider .n2-ss-widget.n2-ss-widget--calc{display:inline-block!important}.n2-ss-slider .n2-ss-widget-always{-webkit-transform:translate3d(0,0,0)}.n2-ss-slider .n2-ss-static-slide{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;height:100%;z-index:25;-webkit-backface-visibility:hidden}.n2-ss-slider .n2-ss-static-slide div[data-sstype=slide]>.n2-ss-layer,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="1"]>div.n2-ss-section-main-content,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content] .n2-ss-section-main-content>*{visibility:visible}.n2-ss-slider .n2-ss-static-slide,.n2-ss-slider .n2-ss-static-slide div[data-sstype=slide],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"] div.n2-ss-section-main-content{visibility:hidden}.n2-ss-slider .n2-ss-shape-divider{position:absolute;left:0;width:100%;height:100px;pointer-events:none;z-index:13}.n2-ss-slider .n2-ss-shape-divider-inner{height:100%}.n2-ss-slider .n2-ss-shape-divider-bottom .n2-ss-shape-divider-inner{position:absolute;bottom:0;left:0;width:100%}.n2-ss-slider .n2-ss-shape-divider svg{display:block;height:100%;width:100%}.n2-ss-slider .n2-ss-shape-divider-top{top:0}.n2-ss-slider .n2-ss-shape-divider-bottom{bottom:0}.n2-ss-slider .n2-ss-shape-divider .n2-ss-divider-start{visibility:hidden}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-start{visibility:visible}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-end{visibility:hidden}.n2-ss-slider .n2-ss-slide .nextend-slide-bg{position:absolute;top:0;left:0;width:100%;max-width:none!important;height:auto;background:rgba(0,0,0,.002)}.n2-ss-slider video.n2-ow{max-width:none}.n2-ss-item-video-container{overflow:hidden;width:100%;height:100%}.n2-ss-item-video-container video{width:100%;height:100%}.n2-ss-slider .n2-ss-item-iframe-wrapper{-webkit-overflow-scrolling:touch;overflow-y:auto;height:100%}.n2-ss-slider .n2i{vertical-align:top}.n2-ss-slider iframe.n2-ow{max-width:none;display:block}.n2-ss-slider .n2-ss-item-iframe{height:100%}.n2-ss-slider .n2-grab{cursor:grab}.n2-ss-slider .n2-grabbing{cursor:grabbing}.n2-ss-slider .n2-grabbing .n2-ss-slide{pointer-events:none}.n2-ss-slider .n2-ss-item-input-form{display:flex;flex-flow:row}.n2-ss-slider .n2-ss-item-input-form .n2-input{flex:1 1 auto}.n2-ss-slider .n2-ss-item-input-form .n2-form-button{margin:0}.n2-ss-slider form.n2-ow{margin:0;border:0;padding:0}.n2-ss-slider .n2-input{height:auto;width:auto;box-sizing:border-box;margin:0;border:0;padding:0;display:inline-block;vertical-align:middle;white-space:normal;background:0 0;line-height:1;font-size:13px;font-family:Arial,serif;box-shadow:none}.n2-ss-slider input.n2-ow:focus{outline:0}.n2-ss-slider input.n2-ow[placeholder]{overflow:hidden;text-overflow:clip}.n2-ss-slider ::-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow:-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow::-webkit-input-placeholder,.n2-ss-slider input.n2-ow::placeholder{color:inherit}.n2-ss-slider table.n2-ow{table-layout:auto;margin:0}.n2-ss-slider .n2-ow .n2-ss-thumbnail-type{width:48px;height:48px;margin-left:-24px;margin-top:-24px;position:absolute;left:50%;top:50%}.n2-ss-slider .n2-ss-section-main-content .n2-ss-item{float:none}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row][data-frontend-fullwidth="0"]{width:auto}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{min-width:10px;width:auto!important;flex:0 1 auto}.n2-ss-slider[data-ie] [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{display:inline-block;flex:none;max-width:100%}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer{display:flex;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-parallax{display:flex}.n2-ss-slider[data-ie] .n2-ss-layer[data-sstype=content],.n2-ss-slider[data-ie] .n2-ss-layer-row,.n2-ss-slider[data-ie] .n2-ss-layer-col{background-attachment:scroll!important}.n2-ss-slider .n2-ss-layer-row{box-sizing:border-box;display:flex}.n2-ss-slider .n2-ss-layer-row-inner{position:relative;box-sizing:border-box;display:flex;visibility:hidden}.n2-ss-slider .n2-ss-layer-row-inner>*{visibility:visible}.n2-ss-slider [row-wrapped="1"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer .n2-ss-layer-row{height:auto;width:100%}.n2-ss-slider .n2-ss-layer-row>.n2-ss-layer{box-sizing:border-box;width:1px;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-row .n2-ss-item{float:none}.n2-ss-layer[data-sstype=slide]{flex:0 0 auto;position:relative;box-sizing:border-box;width:100%;height:100%;min-height:100%;z-index:2;display:flex;justify-content:center;flex-flow:column}.n2-ss-slider .n2-ss-layer[data-sstype=slide].n2-ss-layer--height-calc,.n2-ss-slider .n2-ss-static-slide.n2-ss-layer--height-calc{min-height:0;height:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer{width:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer[data-pm=normal]{max-width:100%}.n2-ss-slider .n2-ss-layer[data-sstype=content]{flex:0 0 auto;width:100%;min-height:100%;position:relative;z-index:2;display:flex}.n2-ss-slider .n2-ss-layer-content{flex:0 0 auto;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;position:relative;min-height:10px}.n2-ss-slider .n2-ss-section-main-content{flex:1 1 auto;display:flex;justify-content:center;flex-direction:column;min-height:100%}.n2-ss-slider .n2-ss-layer--need-width[data-pm=normal]{width:100%}.n2-ss-slider .n2-ss-layer-content[data-alignitems=stretch]{align-items:stretch}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-start]{align-items:flex-start}.n2-ss-slider .n2-ss-layer-content[data-alignitems=center]{align-items:center}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-end]{align-items:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-start]{justify-content:flex-start}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=center]{justify-content:center}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-end]{justify-content:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-around]{justify-content:space-around}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-between]{justify-content:space-between}.n2-ss-slider .n2-ss-layer[data-sstype=col]{display:flex;flex-flow:column;order:10;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=col][data-has-maxwidth="1"]{align-self:stretch}.n2-ss-slider .n2-ss-layer-col{box-sizing:border-box;position:relative;width:100%;height:auto;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-col>.n2-ss-layer{flex:0 0 auto}.n2-ss-slider [data-csstextalign=left]{text-align:left}.n2-ss-slider [data-csstextalign=center]{text-align:center}.n2-ss-slider [data-csstextalign=right]{text-align:right}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-pm=normal]{width:100%}.n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-start}[dir=rtl] .n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-end}.n2-ss-slider [data-csstextalign=center] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=center] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:center}.n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-end}[dir=rtl] .n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-start}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=center],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=center],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=center]{align-self:center!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right]{align-self:flex-end!important}[dir=rtl] .n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],[dir=rtl] .n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left],[dir=rtl] .n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left]{align-self:flex-end!important}[dir=rtl] .n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],[dir=rtl] .n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right],[dir=rtl] .n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-sstype=col]{align-self:stretch!important}.n2-ss-slider [data-frontend-fullwidth="1"][data-has-maxwidth="0"][data-cssselfalign]{align-self:initial!important}.n2-ss-slider .n2-ss-img-crop{overflow:hidden}.n2-ss-slider .n2-ss-img-wrapper,.n2-ss-slider .n2-ss-img-wrapper img{line-height:0}.n2-ss-slider .n2_ss_video_player{position:relative}.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__placeholder{padding-top:56.25%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio="16:10"] .n2_ss_video_player__placeholder{padding-top:62.5%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio="4:3"] .n2_ss_video_player__placeholder{padding-top:75%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill]{min-height:50px}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill],.n2-ss-slider .n2-ss-layer[data-custom-height="1"] .n2_ss_video_player[data-aspect-ratio=fill]{height:100%}.n2-ss-slider .n2_ss_video_player iframe,.n2-ss-slider .n2_ss_video_player video,.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__cover{display:block;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__cover{transform:translate3d(0,0,0)}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill] .n2_ss_video_player__placeholder,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>.n2_ss_video_player__placeholder,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2_ss_video_player[data-aspect-ratio=fill]>.n2_ss_video_player__placeholder{padding-top:0}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill] video{position:static;height:auto}.n2-ss-slider .n2-ss-layer[data-pm=absolute]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-pm=absolute]>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2_ss_video_player[data-aspect-ratio=fill]>video{position:static;height:100%}.n2-ss-slider .n2_ss_video_player__cover img{position:absolute;left:50%;top:50%;width:48px;height:48px;margin-left:-24px;margin-top:-24px}.n2-ss-slider .n2-ss-animated-heading-wrapper,.n2-ss-slider .n2-ss-animated-heading-wrapper *,.n2-ss-slider .n2-ss-highlighted-heading-wrapper,.n2-ss-slider .n2-ss-highlighted-heading-wrapper *{text-decoration:none!important}.n2_clear{clear:both}[data-force-hidden],[data-force-hidden] *{visibility:hidden!important}.n2-ss-reveal-clip{pointer-events:none;visibility:hidden;position:absolute;left:0;top:0;z-index:1000000;width:100%;height:100%;overflow:hidden}.n2-ss-reveal-clip>*{position:absolute;left:0;top:0;outline:1px solid transparent;width:100%;height:100%}
|
1 |
+
.n2-in-fullscreen *{animation-name:initial}.n2-in-fullscreen [data-uk-scrollspy*=uk-animation-]:not([data-uk-scrollspy*=target]){opacity:1}.n2-section-smartslider{position:relative;width:100%}.n2-section-smartslider--hidden{display:none}.n2-ss-align{position:relative;z-index:0;overflow:hidden}.n2-ss-align.n2-ss-align-visible{overflow:visible}.n2-ss-slider{-webkit-font-smoothing:antialiased}.n2-ss-slider-has-no-slide{height:0!important;opacity:0!important;overflow:hidden!important}.n2-ss-slider,.n2-ss-slider .n2_ss__touch_element{-webkit-tap-highlight-color:transparent;-webkit-tap-highlight-color:transparent}.n2-ss-slider>*,.n2-ss-slider .n2_ss__touch_element>*{-webkit-tap-highlight-color:initial}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow-all *{font-size:inherit;line-height:inherit;letter-spacing:inherit}.n2-ss-slider .n2-ow,.n2-ss-slider .n2-ow:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow-all *,.n2-ss-slider .n2-ow-all :before,.n2-ss-slider .n2-ow-all :after{box-sizing:content-box}.n2-ss-slider .n2-ow:before,.n2-ss-slider .n2-ow:after,.n2-ss-slider .n2-ow-all :not(i):before,.n2-ss-slider .n2-ow-all :not(i):after{display:none}.n2-ss-slider a.n2-ow,.n2-ss-slider .n2-ow-all a{border:0;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider a.n2-ow,.n2-ss-slider a.n2-ow:focus,.n2-ss-slider .n2-ow-all a,.n2-ss-slider .n2-ow-all a:focus{outline:0!important;transition:none 0s;box-shadow:none;text-decoration:none}.n2-ss-slider path{transition:none 0s}.n2-ss-slider .n2-ow-all b,.n2-ss-slider .n2-ow-all i{color:inherit}.n2-ss-slider h1.n2-ow,.n2-ss-slider h2.n2-ow,.n2-ss-slider h3.n2-ow,.n2-ss-slider h4.n2-ow,.n2-ss-slider h5.n2-ow,.n2-ss-slider h6.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider .n2-ow-all h1,.n2-ss-slider .n2-ow-all h2,.n2-ss-slider .n2-ow-all h3,.n2-ss-slider .n2-ow-all h4,.n2-ss-slider .n2-ow-all h5,.n2-ss-slider .n2-ow-all h6,.n2-ss-slider .n2-ow-all p{margin:0;padding-left:0;padding-right:0;height:auto;width:auto;border:0;box-shadow:none;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.n2-ss-slider iframe{border:0;min-height:0}.n2-ss-slider iframe.n2-ow,.n2-ss-slider .n2-ow-all iframe{margin:0}.n2-ss-slider img.n2-ow,.n2-ss-slider .n2-ow-all img{width:auto;box-shadow:none;border-radius:0;background:0 0;background:0 0;padding:0;margin:0;border:0;vertical-align:top}.n2-ss-slider ul.n2-ow,.n2-ss-slider li.n2-ow,.n2-ss-slider img.n2-ow,.n2-ss-slider a.n2-ow,.n2-ss-slider p.n2-ow,.n2-ss-slider ol.n2-ow,.n2-ss-slider textarea.n2-ow,.n2-ss-slider input.n2-ow,.n2-ss-slider button.n2-ow{transition:none 0s}.n2-ss-slider p{background-color:transparent}.n2-ss-slider{z-index:3;position:relative;text-align:left;width:100%;min-height:1px}[dir=rtl] .n2-ss-slider{text-align:right}.n2-ss-slider :focus{outline:0}[dir=rtl] .n2-ss-slider .n2-ss-slide-background{text-align:left}.n2-ss-slider.n2-ss-load-fade{position:absolute;opacity:0;transition:opacity .3s ease-in-out}.n2-ss-slider.n2-ss-load-fade.n2-ss-loaded{opacity:1;position:relative}.n2-ss-slider .n2-grab{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.n2-ss-slider.n2notransition *{transition:none 0s!important}.n2-ss-slider .n2-ss-slide{text-align:center}.n2-ss-slider .n2-ss-slide--focus{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:-99999}.n2-ss-slider .n2-ss-slide,.n2-ss-slider .n2-ss-canvas{position:relative}.n2-ss-slider .n2-ss-slide,.n2-ss-slider .n2-ss-canvas{overflow:hidden!important}.n2-ss-slider .n2-ss-slide-background,.n2-ss-slider .n2-ss-slide-background *{position:absolute;top:0;left:0;width:100%;height:100%;text-align:left}.n2-ss-slider .n2-ss-slide-background{z-index:10}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color{z-index:1}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-color[data-overlay="1"]{z-index:7}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-video{z-index:3}.n2-ss-slider .n2-ss-slide-background .n2-ss-slide-background-image{z-index:5}.n2-ss-slider .n2-ss-slide-background-image img{max-width:none;display:none;width:0;height:0}.n2-ss-slider .n2-ss-slide-background-image{width:100%;height:100%;background-position:50% 50%;background-repeat:no-repeat;box-sizing:content-box}.n2-ss-slider [data-mode=fill] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=blurfit] .n2-ss-slide-background-image+.n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=fit] .n2-ss-slide-background-image{background-size:contain}.n2-ss-slider [data-mode=simple] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider [data-mode=stretch] .n2-ss-slide-background-image{background-size:100% 100%}.n2-ss-slider [data-mode=center] .n2-ss-slide-background-image{background-position:50% 50%}.n2-ss-slider [data-mode=tile] .n2-ss-slide-background-image{background-repeat:repeat}.n2-ss-slider [data-mode=fixed] .n2-ss-slide-background-image{background-size:cover}.n2-ss-slider .n2-ss-slide-background-video{position:absolute;top:0;left:0}.n2-ss-slider .n2-ss-layers-container{visibility:hidden;position:relative;width:100%;height:100%;display:flex;flex-direction:column;z-index:20}.n2-ss-slider [onclick].n2-ss-layers-container{visibility:visible}.n2-ss-slider .n2-ss-layers-container>*{visibility:visible}.n2-ss-slider .n2-ss-layer{outline:1px solid RGBA(0,0,0,0);z-index:2}.n2-ss-slider .n2-ss-layer[data-pm=absolute]{position:absolute}.n2-ss-slider .n2-ss-layer[data-pm=default],.n2-ss-slider .n2-ss-layer[data-pm=normal]{position:relative;min-height:1px}.n2-ss-slider .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-rotation{width:100%;height:100%}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-content .n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer-row .n2-ss-layer-rotation{height:auto;flex-grow:1}.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer.n2-ss-layer--need-height .n2-ss-layer-rotation{height:100%}.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-parallax>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=col]>.n2-ss-layer-mask>.n2-ss-layer-rotation,.n2-ss-slider .n2-ss-layer[data-sstype=content]>.n2-ss-layer-mask>.n2-ss-layer-rotation{flex:1 1 auto;min-height:100%;height:auto!important;display:flex;flex-direction:column}.n2-ss-slider[data-device-mode=desktopPortrait] [data-hide-desktopportrait="1"],.n2-ss-slider[data-device-mode=desktopLandscape] [data-hide-desktoplandscape="1"],.n2-ss-slider[data-device-mode=tabletPortrait] [data-hide-tabletportrait="1"],.n2-ss-slider[data-device-mode=tabletLandscape] [data-hide-tabletlandscape="1"],.n2-ss-slider[data-device-mode=mobilePortrait] [data-hide-mobileportrait="1"],.n2-ss-slider[data-device-mode=mobileLandscape] [data-hide-mobilelandscape="1"]{display:none!important}.n2-ss-slider.n2-ss-desktopLandscape .n2-ss-hide-desktoplandscape,.n2-ss-slider.n2-ss-desktopPortrait .n2-ss-hide-desktopportrait,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-hide-tabletlandscape,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-hide-tabletportrait,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-hide-mobilelandscape,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-hide-mobileportrait{display:none}.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-slider-1,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-slider-1,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-slider-1,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-slider-1,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-slider-2,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-slider-2,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-slider-2,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-slider-2{background-attachment:scroll!important}.n2-ss-slider .n2-ss-widget{position:relative;-webkit-backface-visibility:hidden;-webkit-perspective:1000px;z-index:1;font-size:16px;transition:opacity .4s ease;opacity:1}.n2-ss-slider .n2-ss-widget[data-position=above],.n2-ss-slider .n2-ss-widget[data-position=below]{margin-left:auto;margin-right:auto}.n2-ss-slider .n2-ss-widget.n2-ss-widget-hidden{opacity:0!important;pointer-events:none}.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-widget,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-widget{font-size:14px}.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-widget,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-widget{font-size:12px}.n2-ss-slider.n2-ss-desktopLandscape .n2-ss-widget-hide-desktoplandscape,.n2-ss-slider.n2-ss-desktopPortrait .n2-ss-widget-hide-desktopportrait,.n2-ss-slider.n2-ss-tabletLandscape .n2-ss-widget-hide-tabletlandscape,.n2-ss-slider.n2-ss-tabletPortrait .n2-ss-widget-hide-tabletportrait,.n2-ss-slider.n2-ss-mobileLandscape .n2-ss-widget-hide-mobilelandscape,.n2-ss-slider.n2-ss-mobilePortrait .n2-ss-widget-hide-mobileportrait{display:none!important}.n2-ss-slider .n2-ss-widget.n2-ss-widget--calc{display:inline-block!important}.n2-ss-slider .n2-ss-widget-always{-webkit-transform:translate3d(0,0,0)}.n2-ss-slider .n2-ss-static-slide{display:flex;flex-direction:column;position:absolute;top:0;left:0;width:100%;height:100%;z-index:25;-webkit-backface-visibility:hidden}.n2-ss-slider .n2-ss-static-slide div[data-sstype=slide]>.n2-ss-layer,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="1"]>div.n2-ss-section-main-content,.n2-ss-slider .n2-ss-static-slide div[data-sstype=content] .n2-ss-section-main-content>*{visibility:visible}.n2-ss-slider .n2-ss-static-slide,.n2-ss-slider .n2-ss-static-slide div[data-sstype=slide],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"],.n2-ss-slider .n2-ss-static-slide div[data-sstype=content][data-hasbackground="0"] div.n2-ss-section-main-content{visibility:hidden}.n2-ss-slider .n2-ss-shape-divider{position:absolute;left:0;width:100%;height:100px;pointer-events:none;z-index:13}.n2-ss-slider .n2-ss-shape-divider-inner{height:100%}.n2-ss-slider .n2-ss-shape-divider-bottom .n2-ss-shape-divider-inner{position:absolute;bottom:0;left:0;width:100%}.n2-ss-slider .n2-ss-shape-divider svg{display:block;height:100%;width:100%}.n2-ss-slider .n2-ss-shape-divider-top{top:0}.n2-ss-slider .n2-ss-shape-divider-bottom{bottom:0}.n2-ss-slider .n2-ss-shape-divider .n2-ss-divider-start{visibility:hidden}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-start{visibility:visible}.n2-ss-slider .n2-ss-shape-divider.n2-ss-divider-animate .n2-ss-divider-end{visibility:hidden}.n2-ss-slider .n2-ss-slide .nextend-slide-bg{position:absolute;top:0;left:0;width:100%;max-width:none!important;height:auto;background:rgba(0,0,0,.002)}.n2-ss-slider video.n2-ow{max-width:none}.n2-ss-item-video-container{overflow:hidden;width:100%;height:100%}.n2-ss-item-video-container video{width:100%;height:100%}.n2-ss-slider .n2-ss-item-iframe-wrapper{-webkit-overflow-scrolling:touch;overflow-y:auto;height:100%}.n2-ss-slider .n2i{vertical-align:top}.n2-ss-slider iframe.n2-ow{max-width:none;display:block}.n2-ss-slider .n2-ss-item-iframe{height:100%}.n2-ss-slider .n2-grab{cursor:grab}.n2-ss-slider .n2-grabbing{cursor:grabbing}.n2-ss-slider .n2-grabbing .n2-ss-slide{pointer-events:none}.n2-ss-slider .n2-ss-item-input-form{display:flex;flex-flow:row}.n2-ss-slider .n2-ss-item-input-form .n2-input{flex:1 1 auto}.n2-ss-slider .n2-ss-item-input-form .n2-form-button{margin:0}.n2-ss-slider form.n2-ow{margin:0;border:0;padding:0}.n2-ss-slider .n2-input{height:auto;width:auto;box-sizing:border-box;margin:0;border:0;padding:0;display:inline-block;vertical-align:middle;white-space:normal;background:0 0;line-height:1;font-size:13px;font-family:Arial,serif;box-shadow:none}.n2-ss-slider input.n2-ow:focus{outline:0}.n2-ss-slider input.n2-ow[placeholder]{overflow:hidden;text-overflow:clip}.n2-ss-slider ::-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow:-moz-placeholder{text-overflow:clip;color:inherit}.n2-ss-slider input.n2-ow::-webkit-input-placeholder,.n2-ss-slider input.n2-ow::placeholder{color:inherit}.n2-ss-slider table.n2-ow{table-layout:auto;margin:0}.n2-ss-slider .n2-ow .n2-ss-thumbnail-type{width:48px;height:48px;margin-left:-24px;margin-top:-24px;position:absolute;left:50%;top:50%}.n2-ss-slider .n2-ss-section-main-content .n2-ss-item{float:none}.n2-ss-slider .n2-ss-section-main-content>.n2-ss-layer[data-sstype=row][data-frontend-fullwidth="0"]{width:auto}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{min-width:10px;width:auto!important;flex:0 1 auto}.n2-ss-slider[data-ie] [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner>.n2-ss-layer{display:inline-block;flex:none;max-width:100%}.n2-ss-slider [data-frontend-fullwidth="0"][data-sstype=row]>.n2-ss-layer-row[row-wrapped="0"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer{display:flex;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-mask,.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer>.n2-ss-layer-parallax{display:flex}.n2-ss-slider[data-ie] .n2-ss-layer[data-sstype=content],.n2-ss-slider[data-ie] .n2-ss-layer-row,.n2-ss-slider[data-ie] .n2-ss-layer-col{background-attachment:scroll!important}.n2-ss-slider .n2-ss-layer-row{box-sizing:border-box;display:flex}.n2-ss-slider .n2-ss-layer-row-inner{position:relative;box-sizing:border-box;display:flex;visibility:hidden}.n2-ss-slider .n2-ss-layer-row-inner>*{visibility:visible}.n2-ss-slider [row-wrapped="1"]>.n2-ss-layer-row-inner{flex-wrap:wrap}.n2-ss-slider .n2-ss-layer[data-sstype=row].n2-ss-stretch-layer .n2-ss-layer-row{height:auto;width:100%}.n2-ss-slider .n2-ss-layer-row>.n2-ss-layer{box-sizing:border-box;width:1px;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-row .n2-ss-item{float:none}.n2-ss-layer[data-sstype=slide]{flex:0 0 auto;position:relative;box-sizing:border-box;width:100%;height:100%;min-height:100%;z-index:2;display:flex;justify-content:center;flex-flow:column}.n2-ss-slider .n2-ss-layer[data-sstype=slide].n2-ss-layer--height-calc,.n2-ss-slider .n2-ss-static-slide.n2-ss-layer--height-calc{min-height:0;height:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer{width:auto}.n2-ss-slider .n2-ss-layer-content .n2-ss-layer[data-pm=normal]{max-width:100%}.n2-ss-slider .n2-ss-layer[data-sstype=content]{flex:0 0 auto;width:100%;min-height:100%;position:relative;z-index:2;display:flex}.n2-ss-slider .n2-ss-layer-content{flex:0 0 auto;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box;position:relative;min-height:10px}.n2-ss-slider .n2-ss-section-main-content{flex:1 1 auto;display:flex;justify-content:center;flex-direction:column;min-height:100%}.n2-ss-slider .n2-ss-layer--need-width[data-pm=normal]{width:100%}.n2-ss-slider .n2-ss-layer-content[data-alignitems=stretch]{align-items:stretch}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-start]{align-items:flex-start}.n2-ss-slider .n2-ss-layer-content[data-alignitems=center]{align-items:center}.n2-ss-slider .n2-ss-layer-content[data-alignitems=flex-end]{align-items:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-start]{justify-content:flex-start}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=center]{justify-content:center}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=flex-end]{justify-content:flex-end}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-around]{justify-content:space-around}.n2-ss-slider .n2-ss-layer-content[data-verticalalign=space-between]{justify-content:space-between}.n2-ss-slider .n2-ss-layer[data-sstype=col]{display:flex;flex-flow:column;order:10;flex:1 1 auto}.n2-ss-slider .n2-ss-layer[data-sstype=col][data-has-maxwidth="1"]{align-self:stretch}.n2-ss-slider .n2-ss-layer-col{box-sizing:border-box;position:relative;width:100%;height:auto;flex:1 1 auto}.n2-ss-slider .n2-ss-layer-col>.n2-ss-layer{flex:0 0 auto}.n2-ss-slider [data-csstextalign=left]{text-align:left}.n2-ss-slider [data-csstextalign=center]{text-align:center}.n2-ss-slider [data-csstextalign=right]{text-align:right}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-pm=normal]{width:100%}.n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-start}[dir=rtl] .n2-ss-slider [data-csstextalign=left] [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign=left] [data-frontend-fullwidth="0"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=center]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-end}.n2-ss-slider [data-csstextalign=center] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=center] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=right]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:center}.n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],.n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],.n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-end}[dir=rtl] .n2-ss-slider [data-csstextalign=right] [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-has-maxwidth="1"],[dir=rtl] .n2-ss-slider [data-csstextalign=right] [data-frontend-fullwidth="0"],[dir=rtl] .n2-ss-slider [data-csstextalign] [data-csstextalign]:not([data-csstextalign=left]):not([data-csstextalign=center]):not([data-csstextalign=inherit]) [data-frontend-fullwidth="0"]{align-self:flex-start}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=center],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=center],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=center]{align-self:center!important}.n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],.n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right],.n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right]{align-self:flex-end!important}[dir=rtl] .n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=left],[dir=rtl] .n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=left],[dir=rtl] .n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=left]{align-self:flex-end!important}[dir=rtl] .n2-ss-slider .n2-ss-layer-content>[data-cssselfalign=right],[dir=rtl] .n2-ss-slider [data-has-maxwidth="1"][data-cssselfalign=right],[dir=rtl] .n2-ss-slider [data-frontend-fullwidth="0"][data-cssselfalign=right]{align-self:flex-start!important}.n2-ss-slider .n2-ss-layer[data-has-maxwidth="1"][data-sstype=col]{align-self:stretch!important}.n2-ss-slider [data-frontend-fullwidth="1"][data-has-maxwidth="0"][data-cssselfalign]{align-self:initial!important}.n2-ss-slider .n2-ss-img-crop{overflow:hidden}.n2-ss-slider .n2-ss-img-wrapper,.n2-ss-slider .n2-ss-img-wrapper img{line-height:0}.n2-ss-slider .n2_ss_video_player{position:relative}.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__placeholder{padding-top:56.25%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio="16:10"] .n2_ss_video_player__placeholder{padding-top:62.5%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio="4:3"] .n2_ss_video_player__placeholder{padding-top:75%}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill]{min-height:50px}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill],.n2-ss-slider .n2-ss-layer[data-custom-height="1"] .n2_ss_video_player[data-aspect-ratio=fill]{height:100%}.n2-ss-slider .n2_ss_video_player iframe,.n2-ss-slider .n2_ss_video_player video,.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__cover{display:block;position:absolute;top:0;left:0;width:100%;height:100%}.n2-ss-slider .n2_ss_video_player .n2_ss_video_player__cover{transform:translate3d(0,0,0)}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill] .n2_ss_video_player__placeholder,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>.n2_ss_video_player__placeholder,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2_ss_video_player[data-aspect-ratio=fill]>.n2_ss_video_player__placeholder{padding-top:0}.n2-ss-slider .n2_ss_video_player[data-aspect-ratio=fill] video{position:static;height:auto}.n2-ss-slider .n2-ss-layer[data-pm=absolute]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-pm=absolute]>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2-ss-item>.n2_ss_video_player[data-aspect-ratio=fill]>video,.n2-ss-slider .n2-ss-layer[data-custom-height="1"]>.n2_ss_video_player[data-aspect-ratio=fill]>video{position:static;height:100%}.n2-ss-slider .n2_ss_video_player__cover img{position:absolute;left:50%;top:50%;width:48px;height:48px;margin-left:-24px;margin-top:-24px}.n2-ss-slider .n2-ss-animated-heading-wrapper,.n2-ss-slider .n2-ss-animated-heading-wrapper *,.n2-ss-slider .n2-ss-highlighted-heading-wrapper,.n2-ss-slider .n2-ss-highlighted-heading-wrapper *{text-decoration:none!important}.n2_clear{clear:both}[data-force-hidden],[data-force-hidden] *{visibility:hidden!important}.n2-ss-reveal-clip{pointer-events:none;visibility:hidden;position:absolute;left:0;top:0;z-index:1000000;width:100%;height:100%;overflow:hidden}.n2-ss-reveal-clip>*{position:absolute;left:0;top:0;outline:1px solid transparent;width:100%;height:100%}
|
Public/SmartSlider3/Slider/SliderType/Block/Assets/style.n2less
CHANGED
@@ -16,13 +16,6 @@
|
|
16 |
background-attachment: @backgroundAttachment;
|
17 |
}
|
18 |
|
19 |
-
&.n2-ss-mobileLandscape,
|
20 |
-
&.n2-ss-mobilePortrait {
|
21 |
-
.n2-ss-slider-1 {
|
22 |
-
background-attachment: scroll;
|
23 |
-
}
|
24 |
-
}
|
25 |
-
|
26 |
.n2-ss-slider-background-video-container {
|
27 |
position: absolute;
|
28 |
left: 0;
|
16 |
background-attachment: @backgroundAttachment;
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
.n2-ss-slider-background-video-container {
|
20 |
position: absolute;
|
21 |
left: 0;
|
Public/SmartSlider3/Slider/SliderType/Simple/Assets/style.n2less
CHANGED
@@ -36,13 +36,6 @@
|
|
36 |
z-index: 1;
|
37 |
}
|
38 |
|
39 |
-
&.n2-ss-mobileLandscape,
|
40 |
-
&.n2-ss-mobilePortrait {
|
41 |
-
.n2-ss-slider-2 {
|
42 |
-
background-attachment: scroll;
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
.n2-ss-slider-3 {
|
47 |
position: relative;
|
48 |
width: 100%;
|
36 |
z-index: 1;
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
.n2-ss-slider-3 {
|
40 |
position: relative;
|
41 |
width: 100%;
|
Public/SmartSlider3/Widget/Thumbnail/Basic/Assets/dist/thumbnail-horizontal.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
N2D("SmartSliderWidgetThumbnailDefaultHorizontal","SmartSliderWidget",function(r,o){"use strict";var i=!1,a={videoDark:'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#000" opacity=".6"/><path fill="#FFF" d="M19.8 32c-.124 0-.247-.028-.36-.08-.264-.116-.436-.375-.44-.664V16.744c.005-.29.176-.55.44-.666.273-.126.592-.1.84.07l10.4 7.257c.2.132.32.355.32.595s-.12.463-.32.595l-10.4 7.256c-.14.1-.31.15-.48.15z"/></svg>'};function t(t,i){this.key="thumbnail",this.parameters=r.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},i),N2Classes.SmartSliderWidget.prototype.constructor.call(this,t)}((t.prototype=Object.create(N2Classes.SmartSliderWidget.prototype)).constructor=t).prototype.onStart=function(){this.ratio=1,this.itemsPerPane=1,this.currentI=0,this.offset=0,this.group=parseInt(this.parameters.group),this.$widget=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.$widget.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller"),this.$groups=r();for(var t=0;t<this.group;t++)this.$groups=this.$groups.add(r('<div class="nextend-thumbnail-scroller-group"></div>').appendTo(this.scroller));n2const.rtl.isRtl?(this.previous=this.$widget.find(".nextend-thumbnail-next").on("click",this.previousPane.bind(this)),this.next=this.$widget.find(".nextend-thumbnail-previous").on("click",this.nextPane.bind(this))):(this.previous=this.$widget.find(".nextend-thumbnail-previous").on("click",this.previousPane.bind(this)),this.next=this.$widget.find(".nextend-thumbnail-next").on("click",this.nextPane.bind(this))),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.renderThumbnails=function(){var t;this.parameters.invertGroupDirection&&(t=Math.ceil(this.slider.visibleRealSlides.length/this.group));for(var i=0;i<this.slider.visibleRealSlides.length;i++){var e,s=this.slider.visibleRealSlides[i],h=r('<div class="'+this.parameters.slideStyle+' n2-ow" style="'+this.parameters.containerStyle+'"></div>');this.parameters.invertGroupDirection?h.appendTo(this.$groups.eq(Math.floor(i/t))):h.appendTo(this.$groups.eq(i%this.group)),h.data("slide",s),s.$thumbnail=h,this.parameters.thumbnail!==o&&(e=s.getThumbnailType(),e=a[e]!==o?a[e]:"",r('<div class="n2-ss-thumb-image n2-ow" style="width:'+this.parameters.thumbnail.width+"px; height:"+this.parameters.thumbnail.height+"px;"+this.parameters.thumbnail.code+'">'+e+"</div>").css("background-image","url('"+s.getThumbnail()+"')").appendTo(h)),this.parameters.caption!==o&&(e=r('<div class="'+this.parameters.caption.styleClass+"n2-ss-caption n2-ow n2-caption-"+this.parameters.caption.placement+'" style="'+this.parameters.caption.style+'"></div>'),"before"===this.parameters.caption.placement?e.prependTo(h):e.appendTo(h),this.parameters.title!==o&&e.append('<div class="n2-ow '+this.parameters.title.font+'">'+s.getTitle()+"</div>"),this.parameters.description===o||(s=s.getDescription())&&e.append('<div class="n2-ow '+this.parameters.description.font+'">'+s+"</div>"))}var n="universalclick";"mouseenter"===this.parameters.action?n="universalenter":this.slider.hasTouch()&&(n="n2click"),this.dots=this.scroller.find(".nextend-thumbnail-scroller-group > div").on(n,this.onDotClick.bind(this)),this.images=this.dots.find(".n2-ss-thumb-image")},t.prototype.onTap=function(t){i||(r(t.target).trigger("n2click"),i=!0,setTimeout(function(){i=!1},500))},t.prototype.onBeforeShow=function(){var t=!1;switch(this.parameters.area){case 5:t="left";break;case 8:t="right"}t&&(this.offset=parseFloat(this.$widget.data("offset")),this.slider.responsive.addHorizontalSpacingControl(t,this)),this.renderThumbnails(),this.slider.hasTouch()&&(N2Classes.EventBurrito(this.$widget.get(0),{mouse:!0,axis:"x",start:function(){this.bar.width();this._touch={start:parseInt(this.scroller.css(n2const.rtl.left)),max:0},this.getScrollerWidth()<this.thumbnailDimension.width*Math.ceil(this.dots.length/this.group)&&(this._touch.max=-Math.round(this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group-1))),this._touch.current=this._touch.start}.bind(this),move:function(t,i,e,s,h){return this._touch.current=Math.max(this._touch.max,Math.min(0,this._touch.start+e.x)),this.scroller.css(n2const.rtl.left,this._touch.current),5<Math.abs(e.x)}.bind(this),end:function(t,i,e,s,h){Math.abs(this._touch.start-this._touch.current)<40?this.resetPane():this._touch.current>this._touch.start?this.previousPane():this.nextPane(),Math.abs(e.x)<10&&Math.abs(e.y)<10?this.onTap(t):nextend.preventClick(),delete this._touch}.bind(this)}),this.slider.parameters.controls.drag||this.$widget.on("click",this.onTap.bind(this))),this.widthPercent=this.$widget.data("width-percent"),this.thumbnailDimension={widthLocal:this.dots.width(),width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0),widthBorder:parseInt(this.dots.css("borderLeftWidth"))+parseInt(this.dots.css("borderRightWidth"))+parseInt(this.dots.css("paddingLeft"))+parseInt(this.dots.css("paddingRight")),heightBorder:parseInt(this.dots.css("borderTopWidth"))+parseInt(this.dots.css("borderBottomWidth"))+parseInt(this.dots.css("paddingTop"))+parseInt(this.dots.css("paddingBottom"))},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension.width,this.scroller.height(this.thumbnailDimension.height*this.ratio*this.group),this.bar.height(this.scroller.outerHeight(!0)),this.horizontalSpacing=this.bar.outerWidth()-this.bar.width(),this.slider.sliderElement.on({SlideWillChange:this.onSlideSwitch.bind(this),visibleRealSlidesChanged:this.onVisibleRealSlidesChanged.bind(this)})},t.prototype.onWidgetsReady=function(){this.activateDots(this.slider.currentSlide.index),this.slider.sliderElement.on("SliderResize",this.onSliderResize.bind(this)),this.onSliderResize()},t.prototype.filterSliderVerticalCSS=function(t){};var e=!(t.prototype.onSliderResize=function(){var t,i,e,s;this.slider.visibleRealSlides.length&&(this.lastScrollerWidth!==this.getScrollerWidth()&&(t=1,i=(e=this.getScrollerWidth())-2*this.sideDimension,(s=e/this.thumbnailDimension.width)<this.dots.length/this.group&&(s=i/this.thumbnailDimension.width),this.localSideDimension=this.sideDimension,this.parameters.minimumThumbnailCount>=s&&(this.localSideDimension=.1*e,t=(i=e-2*this.localSideDimension)/(this.parameters.minimumThumbnailCount*this.thumbnailDimension.width),s=i/(this.thumbnailDimension.width*t),(s=e/(this.thumbnailDimension.width*t))<this.dots.length/this.group&&(s=i/(this.thumbnailDimension.width*t))),this.ratio!==t&&((e={}).width=Math.floor(this.thumbnailDimension.width*t-this.thumbnailDimension.widthMargin-this.thumbnailDimension.widthBorder),e.height=Math.floor((this.thumbnailDimension.height-this.parameters.captionSize)*t-this.thumbnailDimension.heightMargin+this.parameters.captionSize-this.thumbnailDimension.heightBorder),this.dots.css(e),i=this.dots.width()/this.thumbnailDimension.widthLocal,(e={}).width=Math.ceil(this.imageDimension.width*i),e.height=Math.ceil(this.imageDimension.height*i),this.images.css(e),this.bar.css("height","auto"),this.ratio=t),this.itemsPerPane=Math.floor(s),s=this.slider.responsive.dynamicHeightSlide||this.slider.currentSlide,this.currentI=s.index,this.scroller.css(n2const.rtl.left,this.getScrollerTargetLeft(this.getPaneByIndex(this.currentI))),this.scroller.css("width",this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group))),this.scroller.height(this.thumbnailDimension.height*this.ratio*this.group),this.bar.height(this.scroller.outerHeight(!0)))});return t.prototype.onDotClick=function(t){nextend.shouldPreventClick||(e||(this.slider.directionalChangeToReal(r(t.currentTarget).data("slide").index),e=!0),setTimeout(function(){e=!1}.bind(this),400))},t.prototype.onSlideSwitch=function(t,i){this.activateDots(i.index),this.goToDot(this.slider.getRealIndex(i.index))},t.prototype.activateDots=function(t){this.dots.removeClass("n2-active");for(var i=this.slider.slides[t].slides,e=0;i.length>e;e++)i[e].$thumbnail.addClass("n2-active")},t.prototype.resetPane=function(){this.goToDot(this.currentI)},t.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemsPerPane*this.group)},t.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemsPerPane*this.group)},t.prototype.getPaneByIndex=function(t){return t=Math.max(0,Math.min(this.dots.length-1,t)),this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/this.itemsPerPane):Math.floor(t/this.group/this.itemsPerPane)},t.prototype.getScrollerTargetLeft=function(t){this.lastScrollerWidth=this.getScrollerWidth();var i=0;t===Math.floor((this.dots.length-1)/this.group/this.itemsPerPane)?(i=-(t*this.itemsPerPane*this.thumbnailDimension.width*this.ratio),0===t?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):(0<t?(i=-(t*this.itemsPerPane*this.thumbnailDimension.width*this.ratio-this.localSideDimension),this.previous.addClass("n2-active")):(i=0,this.previous.removeClass("n2-active")),this.next.addClass("n2-active"));var e=this.getScrollerWidth(),t=this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group);return e<t&&(i=Math.max(i,-(t-e))),i},t.prototype.goToDot=function(t){this.tween&&this.tween.progress()<1&&this.tween.pause();var i={};i[n2const.rtl.left]=this.getScrollerTargetLeft(this.getPaneByIndex(t)),this.tween=NextendTween.to(this.scroller,.5,i),this.currentI=t},t.prototype.onVisibleRealSlidesChanged=function(){this.dots.remove(),this.renderThumbnails(),this.lastScrollerWidth=0},t.prototype.getScrollerWidth=function(){return this.widthPercent?Math.ceil(this.slider.responsive.resizeContext.sliderWidth*this.widthPercent/100)-this.horizontalSpacing:this.bar.width()},t.prototype.getSize=function(){return 0},t.prototype.refreshSliderSize=function(t){},t});
|
1 |
+
N2D("SmartSliderWidgetThumbnailDefaultHorizontal","SmartSliderWidget",function(o,a){"use strict";var i=!1,l={videoDark:'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#000" opacity=".6"/><path fill="#FFF" d="M19.8 32c-.124 0-.247-.028-.36-.08-.264-.116-.436-.375-.44-.664V16.744c.005-.29.176-.55.44-.666.273-.126.592-.1.84.07l10.4 7.257c.2.132.32.355.32.595s-.12.463-.32.595l-10.4 7.256c-.14.1-.31.15-.48.15z"/></svg>'};function t(t,i){this.key="thumbnail",this.parameters=o.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},i),N2Classes.SmartSliderWidget.prototype.constructor.call(this,t)}((t.prototype=Object.create(N2Classes.SmartSliderWidget.prototype)).constructor=t).prototype.onStart=function(){this.ratio=1,this.itemsPerPane=1,this.currentI=0,this.offset=0,this.group=parseInt(this.parameters.group),this.$widget=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.$widget.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller"),this.$groups=o();for(var t=0;t<this.group;t++)this.$groups=this.$groups.add(o('<div class="nextend-thumbnail-scroller-group"></div>').appendTo(this.scroller));n2const.rtl.isRtl?(this.previous=this.$widget.find(".nextend-thumbnail-next").on("click",this.previousPane.bind(this)),this.next=this.$widget.find(".nextend-thumbnail-previous").on("click",this.nextPane.bind(this))):(this.previous=this.$widget.find(".nextend-thumbnail-previous").on("click",this.previousPane.bind(this)),this.next=this.$widget.find(".nextend-thumbnail-next").on("click",this.nextPane.bind(this))),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.renderThumbnails=function(){var t;this.parameters.invertGroupDirection&&(t=Math.ceil(this.slider.visibleRealSlides.length/this.group));for(var i=0;i<this.slider.visibleRealSlides.length;i++){var e,s=this.slider.visibleRealSlides[i],h=o('<div class="'+this.parameters.slideStyle+' n2-ow" style="'+this.parameters.containerStyle+'"></div>');this.parameters.invertGroupDirection?h.appendTo(this.$groups.eq(Math.floor(i/t))):h.appendTo(this.$groups.eq(i%this.group)),h.data("slide",s),s.$thumbnail=h,this.parameters.thumbnail!==a&&(e=s.getThumbnailType(),e=l[e]!==a?l[e]:"",o('<div class="n2-ss-thumb-image n2-ow" style="width:'+this.parameters.thumbnail.width+"px; height:"+this.parameters.thumbnail.height+"px;"+this.parameters.thumbnail.code+'">'+e+"</div>").css("background-image","url('"+s.getThumbnail()+"')").appendTo(h)),this.parameters.caption!==a&&(e=o('<div class="'+this.parameters.caption.styleClass+"n2-ss-caption n2-ow n2-caption-"+this.parameters.caption.placement+'" style="'+this.parameters.caption.style+'"></div>'),"before"===this.parameters.caption.placement?e.prependTo(h):e.appendTo(h),this.parameters.title!==a&&e.append('<div class="n2-ow '+this.parameters.title.font+'">'+s.getTitle()+"</div>"),this.parameters.description===a||(s=s.getDescription())&&e.append('<div class="n2-ow '+this.parameters.description.font+'">'+s+"</div>"))}var n="universalclick",r="onDotClick";"mouseenter"===this.parameters.action?(n="universalenter",r="onDotHover"):this.slider.hasTouch()&&(n="n2click"),this.dots=this.scroller.find(".nextend-thumbnail-scroller-group > div").on(n,this[r].bind(this)),this.images=this.dots.find(".n2-ss-thumb-image")},t.prototype.onTap=function(t){i||(o(t.target).trigger("n2click"),i=!0,setTimeout(function(){i=!1},500))},t.prototype.onBeforeShow=function(){var t=!1;switch(this.parameters.area){case 5:t="left";break;case 8:t="right"}t&&(this.offset=parseFloat(this.$widget.data("offset")),this.slider.responsive.addHorizontalSpacingControl(t,this)),this.renderThumbnails(),this.slider.hasTouch()&&(N2Classes.EventBurrito(this.$widget.get(0),{mouse:!0,axis:"x",start:function(){this.bar.width();this._touch={start:parseInt(this.scroller.css(n2const.rtl.left)),max:0},this.getScrollerWidth()<this.thumbnailDimension.width*Math.ceil(this.dots.length/this.group)&&(this._touch.max=-Math.round(this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group-1))),this._touch.current=this._touch.start}.bind(this),move:function(t,i,e,s,h){return this._touch.current=Math.max(this._touch.max,Math.min(0,this._touch.start+e.x)),this.scroller.css(n2const.rtl.left,this._touch.current),5<Math.abs(e.x)}.bind(this),end:function(t,i,e,s,h){Math.abs(this._touch.start-this._touch.current)<40?this.resetPane():this._touch.current>this._touch.start?this.previousPane():this.nextPane(),Math.abs(e.x)<10&&Math.abs(e.y)<10?this.onTap(t):nextend.preventClick(),delete this._touch}.bind(this)}),this.slider.parameters.controls.drag||this.$widget.on("click",this.onTap.bind(this))),this.widthPercent=this.$widget.data("width-percent"),this.thumbnailDimension={widthLocal:this.dots.width(),width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0),widthBorder:parseInt(this.dots.css("borderLeftWidth"))+parseInt(this.dots.css("borderRightWidth"))+parseInt(this.dots.css("paddingLeft"))+parseInt(this.dots.css("paddingRight")),heightBorder:parseInt(this.dots.css("borderTopWidth"))+parseInt(this.dots.css("borderBottomWidth"))+parseInt(this.dots.css("paddingTop"))+parseInt(this.dots.css("paddingBottom"))},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension.width,this.scroller.height(this.thumbnailDimension.height*this.ratio*this.group),this.bar.height(this.scroller.outerHeight(!0)),this.horizontalSpacing=this.bar.outerWidth()-this.bar.width(),this.slider.sliderElement.on({SlideWillChange:this.onSlideSwitch.bind(this),visibleRealSlidesChanged:this.onVisibleRealSlidesChanged.bind(this)})},t.prototype.onWidgetsReady=function(){this.activateDots(this.slider.currentSlide.index),this.slider.sliderElement.on("SliderResize",this.onSliderResize.bind(this)),this.onSliderResize()},t.prototype.filterSliderVerticalCSS=function(t){};var e=!(t.prototype.onSliderResize=function(){var t,i,e,s;this.slider.visibleRealSlides.length&&(this.lastScrollerWidth!==this.getScrollerWidth()&&(t=1,i=(e=this.getScrollerWidth())-2*this.sideDimension,(s=e/this.thumbnailDimension.width)<this.dots.length/this.group&&(s=i/this.thumbnailDimension.width),this.localSideDimension=this.sideDimension,this.parameters.minimumThumbnailCount>=s&&(this.localSideDimension=.1*e,t=(i=e-2*this.localSideDimension)/(this.parameters.minimumThumbnailCount*this.thumbnailDimension.width),s=i/(this.thumbnailDimension.width*t),(s=e/(this.thumbnailDimension.width*t))<this.dots.length/this.group&&(s=i/(this.thumbnailDimension.width*t))),this.ratio!==t&&((e={}).width=Math.floor(this.thumbnailDimension.width*t-this.thumbnailDimension.widthMargin-this.thumbnailDimension.widthBorder),e.height=Math.floor((this.thumbnailDimension.height-this.parameters.captionSize)*t-this.thumbnailDimension.heightMargin+this.parameters.captionSize-this.thumbnailDimension.heightBorder),this.dots.css(e),i=this.dots.width()/this.thumbnailDimension.widthLocal,(e={}).width=Math.ceil(this.imageDimension.width*i),e.height=Math.ceil(this.imageDimension.height*i),this.images.css(e),this.bar.css("height","auto"),this.ratio=t),this.itemsPerPane=Math.floor(s),s=this.slider.responsive.dynamicHeightSlide||this.slider.currentSlide,this.currentI=s.index,this.scroller.css(n2const.rtl.left,this.getScrollerTargetLeft(this.getPaneByIndex(this.currentI))),this.scroller.css("width",this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group))),this.scroller.height(this.thumbnailDimension.height*this.ratio*this.group),this.bar.height(this.scroller.outerHeight(!0)))});return t.prototype.onDotClick=function(t){nextend.shouldPreventClick||(e||(this.slider.directionalChangeToReal(o(t.currentTarget).data("slide").index),e=!0),setTimeout(function(){e=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(o(t.currentTarget).data("slide").index)},t.prototype.onSlideSwitch=function(t,i){this.activateDots(i.index),this.goToDot(this.slider.getRealIndex(i.index))},t.prototype.activateDots=function(t){this.dots.removeClass("n2-active");for(var i=this.slider.slides[t].slides,e=0;i.length>e;e++)i[e].$thumbnail.addClass("n2-active")},t.prototype.resetPane=function(){this.goToDot(this.currentI)},t.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemsPerPane*this.group)},t.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemsPerPane*this.group)},t.prototype.getPaneByIndex=function(t){return t=Math.max(0,Math.min(this.dots.length-1,t)),this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/this.itemsPerPane):Math.floor(t/this.group/this.itemsPerPane)},t.prototype.getScrollerTargetLeft=function(t){this.lastScrollerWidth=this.getScrollerWidth();var i=0;t===Math.floor((this.dots.length-1)/this.group/this.itemsPerPane)?(i=-(t*this.itemsPerPane*this.thumbnailDimension.width*this.ratio),0===t?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):(0<t?(i=-(t*this.itemsPerPane*this.thumbnailDimension.width*this.ratio-this.localSideDimension),this.previous.addClass("n2-active")):(i=0,this.previous.removeClass("n2-active")),this.next.addClass("n2-active"));var e=this.getScrollerWidth(),t=this.thumbnailDimension.width*this.ratio*Math.ceil(this.dots.length/this.group);return e<t&&(i=Math.max(i,-(t-e))),i},t.prototype.goToDot=function(t){this.tween&&this.tween.progress()<1&&this.tween.pause();var i={};i[n2const.rtl.left]=this.getScrollerTargetLeft(this.getPaneByIndex(t)),this.tween=NextendTween.to(this.scroller,.5,i),this.currentI=t},t.prototype.onVisibleRealSlidesChanged=function(){this.dots.remove(),this.renderThumbnails(),this.lastScrollerWidth=0},t.prototype.getScrollerWidth=function(){return this.widthPercent?Math.ceil(this.slider.responsive.resizeContext.sliderWidth*this.widthPercent/100)-this.horizontalSpacing:this.bar.width()},t.prototype.getSize=function(){return 0},t.prototype.refreshSliderSize=function(t){},t});
|
Public/SmartSlider3/Widget/Thumbnail/Basic/Assets/dist/thumbnail-vertical.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
N2D("SmartSliderWidgetThumbnailDefaultVertical","SmartSliderWidget",function(
|
1 |
+
N2D("SmartSliderWidgetThumbnailDefaultVertical","SmartSliderWidget",function(o,a){"use strict";var i=!1,l={videoDark:'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="24" fill="#000" opacity=".6"/><path fill="#FFF" d="M19.8 32c-.124 0-.247-.028-.36-.08-.264-.116-.436-.375-.44-.664V16.744c.005-.29.176-.55.44-.666.273-.126.592-.1.84.07l10.4 7.257c.2.132.32.355.32.595s-.12.463-.32.595l-10.4 7.256c-.14.1-.31.15-.48.15z"/></svg>'};function t(t,i){this.key="thumbnail",this.parameters=o.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},i),N2Classes.SmartSliderWidget.prototype.constructor.call(this,t)}((t.prototype=Object.create(N2Classes.SmartSliderWidget.prototype)).constructor=t).prototype.onStart=function(){this.currentI=0,this.offset=0,this.group=parseInt(this.parameters.group),this.$widget=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.$widget.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller"),this.$groups=o();for(var t=0;t<this.group;t++)this.$groups=this.$groups.add(o('<div class="nextend-thumbnail-scroller-group"></div>').appendTo(this.scroller));this.$previousButton=this.$widget.find(".nextend-thumbnail-previous").on("click",this.previousPane.bind(this)),this.$nextButton=this.$widget.find(".nextend-thumbnail-next").on("click",this.nextPane.bind(this)),this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this)),this.slider.stages.done("WidgetsReady",this.onWidgetsReady.bind(this))},t.prototype.renderThumbnails=function(){var t;this.parameters.invertGroupDirection&&(t=Math.ceil(this.slider.visibleRealSlides.length/this.group));for(var i=0;i<this.slider.visibleRealSlides.length;i++){var e,s=this.slider.visibleRealSlides[i],h=o('<div class="'+this.parameters.slideStyle+' n2-ow" style="'+this.parameters.containerStyle+'"></div>');this.parameters.invertGroupDirection?h.appendTo(this.$groups.eq(Math.floor(i/t))):h.appendTo(this.$groups.eq(i%this.group)),h.data("slide",s),s.$thumbnail=h,this.parameters.thumbnail!==a&&(e=s.getThumbnailType(),e=l[e]!==a?l[e]:"",o('<div class="n2-ss-thumb-image n2-ow" style="width:'+this.parameters.thumbnail.width+"px; height:"+this.parameters.thumbnail.height+"px;"+this.parameters.thumbnail.code+'">'+e+"</div>").css("background-image","url('"+s.getThumbnail()+"')").appendTo(h)),this.parameters.caption!==a&&(e=o('<div class="'+this.parameters.caption.styleClass+"n2-ss-caption n2-ow n2-caption-"+this.parameters.caption.placement+'" style="'+this.parameters.caption.style+'"></div>'),"before"===this.parameters.caption.placement?e.prependTo(h):e.appendTo(h),this.parameters.title!==a&&e.append('<div class="n2-ow '+this.parameters.title.font+'">'+s.getTitle()+"</div>"),this.parameters.description===a||(s=s.getDescription())&&e.append('<div class="n2-ow '+this.parameters.description.font+'">'+s+"</div>"))}var r="universalclick",n="onDotClick";"mouseenter"===this.parameters.action?(r="universalenter",n="onDotHover"):this.slider.hasTouch()&&(r="n2click"),this.dots=this.scroller.find(".nextend-thumbnail-scroller-group > div").on(r,this[n].bind(this)),this.images=this.dots.find(".n2-ss-thumb-image")},t.prototype.onTap=function(t){i||(o(t.target).trigger("n2click"),i=!0,setTimeout(function(){i=!1},500))},t.prototype.onBeforeShow=function(){var t=!1;switch(this.parameters.area){case 5:t="left";break;case 8:t="right"}t&&(this.offset=parseFloat(this.$widget.data("offset")),this.slider.responsive.addHorizontalSpacingControl(t,this)),this.renderThumbnails(),this.slider.hasTouch()&&(N2Classes.EventBurrito(this.$widget.get(0),{mouse:!0,axis:"y",start:function(){this.bar.height();this._touch={start:parseInt(this.scroller.css("top")),max:0};var t=this.getScrollerHeight(),i=this.thumbnailDimension.height*Math.ceil(this.dots.length/this.group);t<i&&(this._touch.max=-(i-t)),this._touch.current=this._touch.start}.bind(this),move:function(t,i,e,s,h){return this._touch.current=Math.max(this._touch.max,Math.min(0,this._touch.start+e.y)),this.scroller.css("top",this._touch.current),5<Math.abs(e.y)}.bind(this),end:function(t,i,e,s,h){Math.abs(this._touch.start-this._touch.current)<40?this.resetPane():this._touch.current>this._touch.start?this.previousPane():this.nextPane(),Math.abs(e.x)<10&&Math.abs(e.y)<10?this.onTap(t):nextend.preventClick(),delete this._touch}.bind(this)}),this.slider.parameters.controls.drag||this.$widget.on("click",this.onTap.bind(this))),this.heightPercent=this.$widget.data("height-percent"),this.thumbnailDimension={width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension.height,this.scroller.width(this.thumbnailDimension.width*this.group),this.bar.width(this.scroller.outerWidth(!0)),this.verticalSpacing=this.bar.outerHeight()-this.bar.height(),this.slider.responsive.addFilter("SliderHeight",this.verticalFilterSliderHeight.bind(this)),this.slider.sliderElement.on({SlideWillChange:this.onSlideSwitch.bind(this),visibleRealSlidesChanged:this.onVisibleRealSlidesChanged.bind(this)})},t.prototype.onWidgetsReady=function(){this.activateDots(this.slider.currentSlide.index)};var e=!(t.prototype.filterSliderVerticalCSS=function(t){var i;this.slider.visibleRealSlides.length&&(this.itemsPerPane=Math.floor(this.getScrollerHeight()/this.thumbnailDimension.height),this.itemsPerPane<this.dots.length/this.group&&(this.itemsPerPane=Math.floor((this.getScrollerHeight()-2*this.sideDimension)/this.thumbnailDimension.height)),i=this.slider.responsive.dynamicHeightSlide||this.slider.currentSlide,this.currentI=i.index,t.push(new N2Classes.CSSData(this.scroller,{top:this.getScrollerTargetTop(this.getPaneByIndex(this.currentI)),height:this.thumbnailDimension.height*Math.ceil(this.dots.length/this.group)})))});return t.prototype.onDotClick=function(t){nextend.shouldPreventClick||(e||(this.slider.directionalChangeToReal(o(t.currentTarget).data("slide").index),e=!0),setTimeout(function(){e=!1}.bind(this),400))},t.prototype.onDotHover=function(t){this.slider.directionalChangeToReal(o(t.currentTarget).data("slide").index)},t.prototype.onSlideSwitch=function(t,i){this.activateDots(i.index),this.goToDot(this.slider.getRealIndex(i.index))},t.prototype.activateDots=function(t){this.dots.removeClass("n2-active");for(var i=this.slider.slides[t].slides,e=0;i.length>e;e++)i[e].$thumbnail.addClass("n2-active")},t.prototype.resetPane=function(){this.goToDot(this.currentI)},t.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemsPerPane*this.group)},t.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemsPerPane*this.group)},t.prototype.verticalFilterSliderHeight=function(t){return this.isVisible()?Math.max(t,this.parameters.minimumThumbnailCount*this.thumbnailDimension.height):t},t.prototype.getPaneByIndex=function(t){return t=Math.max(0,Math.min(this.dots.length-1,t)),this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/this.itemsPerPane):Math.floor(t/this.group/this.itemsPerPane)},t.prototype.getScrollerTargetTop=function(t){var i=0;t===Math.floor((this.dots.length-1)/this.group/this.itemsPerPane)?(i=-(t*this.itemsPerPane*this.thumbnailDimension.height),0===t?this.$previousButton.removeClass("n2-active"):this.$previousButton.addClass("n2-active"),this.$nextButton.removeClass("n2-active")):(0<t?(i=-(t*this.itemsPerPane*this.thumbnailDimension.height-this.sideDimension),this.$previousButton.addClass("n2-active")):(i=0,this.$previousButton.removeClass("n2-active")),this.$nextButton.addClass("n2-active"));var e=this.getScrollerHeight(),t=this.thumbnailDimension.height*Math.ceil(this.dots.length/this.group);return e<t&&(i=Math.max(i,-(t-e))),i},t.prototype.goToDot=function(t){this.tween&&this.tween.progress()<1&&this.tween.pause(),this.tween=NextendTween.to(this.scroller,.5,{top:this.getScrollerTargetTop(this.getPaneByIndex(t))}),this.currentI=t},t.prototype.refreshSliderSize=function(t){},t.prototype.getSize=function(){return this.$widget.width()+this.offset},t.prototype.onVisibleRealSlidesChanged=function(){this.dots.remove(),this.renderThumbnails()},t.prototype.calculateDimensions=function(t){var i;this.isVisible()?(t[this.key+"width"]=this.$widget.width(),i=this.heightPercent?Math.floor(t.sliderInnerHeight*this.heightPercent/100):this.bar.height(),t[this.key+"height"]=i):(t[this.key+"width"]=0,t[this.key+"height"]=0)},t.prototype.getScrollerHeight=function(){return this.heightPercent?Math.ceil(this.slider.responsive.resizeContext.sliderHeight*this.heightPercent/100)-this.verticalSpacing:this.scroller.height()},t});
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: slider, wordpress slider, image slider, layer slider, responsive slider, s
|
|
4 |
Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 3.4.1.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -209,6 +209,12 @@ Of course! Smart Slider use protocol relative urls which works fine on http:// a
|
|
209 |
|
210 |
== Changelog ==
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
= 3.4.1.14 - 26. November 2020 =
|
213 |
* Feature: Accessibility improvements
|
214 |
* Fix: WPRocket RocketCDN compatibility
|
4 |
Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 3.4.1.15
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
209 |
|
210 |
== Changelog ==
|
211 |
|
212 |
+
= 3.4.1.15 - 13. January 2021 =
|
213 |
+
* Feature: PHP 8 compatibility
|
214 |
+
* Fix: WordPress post generator dates
|
215 |
+
* Fix: Thumbnail hover switching
|
216 |
+
* Fix: WP Rocket compatibility
|
217 |
+
|
218 |
= 3.4.1.14 - 26. November 2020 =
|
219 |
* Feature: Accessibility improvements
|
220 |
* Fix: WPRocket RocketCDN compatibility
|
smart-slider-3.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Smart Slider 3
|
4 |
Plugin URI: https://smartslider3.com/
|
5 |
Description: The perfect all-in-one responsive slider solution for WordPress.
|
6 |
-
Version: 3.4.1.
|
7 |
Requires PHP: 7.0
|
8 |
Requires at least: 4.9
|
9 |
Author: Nextend
|
3 |
Plugin Name: Smart Slider 3
|
4 |
Plugin URI: https://smartslider3.com/
|
5 |
Description: The perfect all-in-one responsive slider solution for WordPress.
|
6 |
+
Version: 3.4.1.15
|
7 |
Requires PHP: 7.0
|
8 |
Requires at least: 4.9
|
9 |
Author: Nextend
|