Gallery – Photo Gallery and Images Gallery - Version 2.7.3

Version Description

  • New ajax preload gallery module
  • Notification init fix
  • Fix for automatic js error detection and fixing system
Download this release

Release Info

Developer robosoft
Plugin Icon 128x128 Gallery – Photo Gallery and Images Gallery
Version 2.7.3
Comparing to
See all releases

Code changes from version 2.7.2 to 2.7.3

includes/extensions/stats/js/script.js CHANGED
@@ -12,5 +12,5 @@
12
  */
13
 
14
  jQuery(document).ready( function($){
15
- jQuery("<a href='edit.php?post_type=robo_gallery_table&page=robo-gallery-stats' id='rbs_stats_button' class='page-title-action'>Statistics Gallery</a>").appendTo(jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1")[0]);
16
  });
12
  */
13
 
14
  jQuery(document).ready( function($){
15
+ jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1 ~ .page-title-action:last").after("<a href='edit.php?post_type=robo_gallery_table&page=robo-gallery-stats' id='rbs_stats_button' class='page-title-action'>Statistics Gallery</a>");
16
  });
includes/frontend/extensions/core/index.html ADDED
File without changes
includes/frontend/extensions/core/roboGalleryCore.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 2.6.6
5
+ * By Robosoft
6
+ *
7
+ * Contact: https://robosoft.co/robogallery/
8
+ * Created: 2017
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2017, Robosoft. All rights reserved.
12
+ * Available only in https://robosoft.co/robogallery/
13
+ */
14
+
15
+
16
+ if ( ! defined( 'WPINC' ) ) die;
17
+ if ( ! defined( 'ABSPATH' ) ) exit;
18
+
19
+ require_once ROBO_GALLERY_FRONTEND_PATH.'roboGalleryAbstractExtension.php';
20
+
21
+ class roboGalleryCore{
22
+
23
+ public $galleryObj = null;
24
+ protected $htmlCode = '';
25
+ protected $cssCode = '';
26
+ protected $extensions = array();
27
+
28
+ public function __construct( roboGallery $galleryObj ){
29
+
30
+ $this->galleryObj = $galleryObj;
31
+
32
+ if($galleryObj==null) return false; /* need214 error function */
33
+
34
+ $this->init();
35
+ }
36
+
37
+ protected function init(){
38
+
39
+ $this->addExtension( new RoboGalleryLoader($this) );
40
+
41
+ }
42
+
43
+
44
+ public function addHTML( $htmlCode, $postion = 'after'){
45
+
46
+ switch ($position) {
47
+ case 'before':
48
+ $this->htmlCode = $htmlCode . $this->htmlCode;
49
+ break;
50
+
51
+ case 'after':
52
+ default:
53
+ $this->htmlCode .= $htmlCode;
54
+ break;
55
+ }
56
+
57
+ }
58
+
59
+
60
+ public function addCSS( $cssCode, $postion = 'after'){
61
+
62
+ switch ($position) {
63
+ case 'before':
64
+ $this->cssCode = $cssCode . $this->cssCode;
65
+ break;
66
+
67
+ case 'after':
68
+ default:
69
+ $this->cssCode .= $cssCode;
70
+ break;
71
+ }
72
+
73
+ }
74
+
75
+ public function getHTML(){
76
+ return $this->htmlCode;
77
+ }
78
+
79
+ public function getCSS(){
80
+ return $this->cssCode;
81
+ }
82
+
83
+ public function getIdPrefix(){
84
+ return $this->galleryObj->galleryId;
85
+ }
86
+
87
+ public function addExtension(roboGalleryAbstractExtension $extension){
88
+ $extensionName = $extension->getName();
89
+ $this->extensions[ $extensionName ] = $extension;
90
+ }
91
+
92
+ public function getExtensions(){
93
+ return $this->extensions;
94
+ }
95
+
96
+ public function getExtension($name){
97
+ return isset($this->extensions[$name]) ? $this->extensions[$name] : null;
98
+ }
99
+
100
+ }
includes/frontend/extensions/index.html ADDED
File without changes
includes/frontend/extensions/loader/RoboGalleryLoader.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 2.6.6
5
+ * By Robosoft
6
+ *
7
+ * Contact: https://robosoft.co/robogallery/
8
+ * Created: 2017
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2017, Robosoft. All rights reserved.
12
+ * Available only in https://robosoft.co/robogallery/
13
+ */
14
+
15
+ if ( ! defined( 'ABSPATH' ) ) exit;
16
+
17
+
18
+ class RoboGalleryLoader extends roboGalleryAbstractExtension{
19
+
20
+
21
+ public function __construct( roboGalleryCore $galleryCore ){
22
+ $this->name = 'loader';
23
+ parent::__construct( $galleryCore );
24
+ }
25
+
26
+ protected function init(){
27
+ $this->galleryCore->addHTML( $this->getHTML(), 'before' );
28
+ $this->galleryCore->addCSS( $this->getCSS(), 'before' );
29
+ }
30
+
31
+ public function initJavaScript(){}
32
+
33
+ public function getHTML(){
34
+ return
35
+ '<div id="robo_gallery_loading_'.$this->idPrefix.'" class="'.$this->cssPrefix.'Spinner">'
36
+ .'<div class="'.$this->cssPrefix.'Rect1"></div> '
37
+ .'<div class="'.$this->cssPrefix.'Rect2"></div> '
38
+ .'<div class="'.$this->cssPrefix.'Rect3"></div> '
39
+ .'<div class="'.$this->cssPrefix.'Rect4"></div> '
40
+ .'<div class="'.$this->cssPrefix.'Rect5"></div>'
41
+ .'</div>';
42
+ }
43
+
44
+
45
+ public function getCSS(){
46
+ return
47
+ '.'.$this->cssPrefix.'Spinner{
48
+ margin: 50px auto;
49
+ width: 50px;
50
+ height: 40px;
51
+ text-align: center;
52
+ font-size: 10px;
53
+ }
54
+ .'.$this->cssPrefix.'Spinner > div{
55
+ background-color: #333;
56
+ height: 100%;
57
+ width: 6px;
58
+ display: inline-block;
59
+
60
+ -webkit-animation: '.$this->cssPrefix.'-stretchdelay 1.2s infinite ease-in-out;
61
+ animation: '.$this->cssPrefix.'-stretchdelay 1.2s infinite ease-in-out;
62
+ }
63
+ .'.$this->cssPrefix.'Spinner .'.$this->cssPrefix.'Rect2 {
64
+ -webkit-animation-delay: -1.1s;
65
+ animation-delay: -1.1s;
66
+ }
67
+ .'.$this->cssPrefix.'Spinner .'.$this->cssPrefix.'Rect3 {
68
+ -webkit-animation-delay: -1.0s;
69
+ animation-delay: -1.0s;
70
+ }
71
+ .'.$this->cssPrefix.'Spinner .'.$this->cssPrefix.'Rect4 {
72
+ -webkit-animation-delay: -0.9s;
73
+ animation-delay: -0.9s;
74
+ }
75
+ .'.$this->cssPrefix.'Spinner .'.$this->cssPrefix.'Rect5 {
76
+ -webkit-animation-delay: -0.8s;
77
+ animation-delay: -0.8s;
78
+ }
79
+ @-webkit-keyframes '.$this->cssPrefix.'-stretchdelay {
80
+ 0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
81
+ 20% { -webkit-transform: scaleY(1.0) }
82
+ }
83
+ @keyframes '.$this->cssPrefix.'-stretchdelay {
84
+ 0%, 40%, 100% {
85
+ transform: scaleY(0.4);
86
+ -webkit-transform: scaleY(0.4);
87
+ } 20% {
88
+ transform: scaleY(1.0);
89
+ -webkit-transform: scaleY(1.0);
90
+ }
91
+ }';
92
+ }
93
+
94
+ }
includes/frontend/extensions/loader/index.html ADDED
File without changes
includes/frontend/rbs_gallery_class.php CHANGED
@@ -14,6 +14,12 @@
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
 
 
 
 
 
 
 
17
  class roboGallery extends roboGalleryUtils{
18
 
19
  public $id = 0;
@@ -90,6 +96,11 @@ class roboGallery extends roboGalleryUtils{
90
  public $startTime = 0 ;
91
  public $endTime = 0 ;
92
 
 
 
 
 
 
93
  function updateCountView(){
94
  if(!$this->id) return ;
95
  $count_key = 'gallery_views_count';
@@ -120,6 +131,10 @@ class roboGallery extends roboGalleryUtils{
120
  $this->id = $options_id;
121
  }
122
  $this->helper->setId( $this->id );
 
 
 
 
123
  }
124
 
125
  $this->debug = get_option( ROBO_GALLERY_PREFIX.'debugEnable', 0 );
@@ -229,7 +244,9 @@ class roboGallery extends roboGalleryUtils{
229
  //$galleryImages = get_post_meta( $this->options_id && $this->real_id ? $this->real_id : $this->id, ROBO_GALLERY_PREFIX.'galleryImages', true );;
230
  //if( !$galleryImages || !is_array( $galleryImages ) || !count($galleryImages) || !(int)$galleryImages[0] ) return '';
231
 
232
- $this->helper->setValue( 'filterContainer', '#'.$this->galleryId.'filter', 'string' );
 
 
233
 
234
 
235
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
@@ -579,7 +596,10 @@ class roboGallery extends roboGalleryUtils{
579
  }
580
  if( $this->returnHtml ){
581
  $this->returnHtml =
582
- '<div id="robo_gallery_main_block_'.$this->galleryId.'" style="'.$this->rbsMainDivStyle.'">'
 
 
 
583
  .($pretext?'<div>'.$pretext.'</div>':'')
584
  .($menu?$this->getMenu():'').
585
  '<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
@@ -588,10 +608,11 @@ class roboGallery extends roboGalleryUtils{
588
  .($aftertext?'<div>'.$aftertext.'</div>':'')
589
  .'</div>'
590
  .$this->seoContent
591
- .$this->getErrorDialog()
 
592
  .'<script>'
593
  .$this->compileJavaScript()
594
- .$this->getCheckJsFunction()
595
  .'</script>';
596
 
597
  if( count($this->scriptList) ){ //&& !defined('ROBO_GALLERY_JS_FILES')
@@ -626,6 +647,32 @@ class roboGallery extends roboGalleryUtils{
626
  return $debugText.$this->returnHtml;
627
  }
628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
 
630
  function getHover( $img ){
631
  $hoverHTML = '';
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
 
17
+
18
+
19
+
20
+ require_once ROBO_GALLERY_FRONTEND_EXT_PATH.'core/roboGalleryCore.php';
21
+ require_once ROBO_GALLERY_FRONTEND_EXT_PATH.'loader/RoboGalleryLoader.php';
22
+
23
  class roboGallery extends roboGalleryUtils{
24
 
25
  public $id = 0;
96
  public $startTime = 0 ;
97
  public $endTime = 0 ;
98
 
99
+ public $roboGalleryCore;
100
+
101
+ public $html = '';
102
+
103
+
104
  function updateCountView(){
105
  if(!$this->id) return ;
106
  $count_key = 'gallery_views_count';
131
  $this->id = $options_id;
132
  }
133
  $this->helper->setId( $this->id );
134
+
135
+ $this->roboGalleryCore = new roboGalleryCore( $this );
136
+
137
+
138
  }
139
 
140
  $this->debug = get_option( ROBO_GALLERY_PREFIX.'debugEnable', 0 );
244
  //$galleryImages = get_post_meta( $this->options_id && $this->real_id ? $this->real_id : $this->id, ROBO_GALLERY_PREFIX.'galleryImages', true );;
245
  //if( !$galleryImages || !is_array( $galleryImages ) || !count($galleryImages) || !(int)$galleryImages[0] ) return '';
246
 
247
+ $this->helper->setValue( 'filterContainer', '#'.$this->galleryId.'filter', 'string' );
248
+ $this->helper->setValue( 'loadingContainer', '#robo_gallery_loading_'.$this->galleryId, 'string' );
249
+ $this->helper->setValue( 'mainContainer', '#robo_gallery_main_block_'.$this->galleryId, 'string' );
250
 
251
 
252
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
596
  }
597
  if( $this->returnHtml ){
598
  $this->returnHtml =
599
+ '<style type="text/css" scoped>'.$this->roboGalleryCore->getCSS().'</style>'
600
+ .$this->runEvent('html', 'before')
601
+ .$this->roboGalleryCore->getHTML()
602
+ .'<div id="robo_gallery_main_block_'.$this->galleryId.'" style="'.$this->rbsMainDivStyle.' display: none;">'
603
  .($pretext?'<div>'.$pretext.'</div>':'')
604
  .($menu?$this->getMenu():'').
605
  '<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
608
  .($aftertext?'<div>'.$aftertext.'</div>':'')
609
  .'</div>'
610
  .$this->seoContent
611
+ //.$this->getErrorDialog()
612
+ .$this->runEvent('html', 'after')
613
  .'<script>'
614
  .$this->compileJavaScript()
615
+ //.$this->getCheckJsFunction()
616
  .'</script>';
617
 
618
  if( count($this->scriptList) ){ //&& !defined('ROBO_GALLERY_JS_FILES')
647
  return $debugText.$this->returnHtml;
648
  }
649
 
650
+ function runEvent( $element, $event ){
651
+
652
+ //return $this->roboGalleryCore->runEvent( $element, $event, $this );
653
+
654
+ /*add_filter( 'robo_gallery_frontend_', 'wpcandy_time_ago' );
655
+
656
+ do_action( 'robo_gallery_frontend_'.$element.'_'.$event );
657
+ */
658
+ /*$eventResult = apply_filters(
659
+ 'robo_gallery_frontend_'.$element.'_'.$event,
660
+ '',
661
+ array(
662
+ 'id' => $this->id
663
+ )
664
+ );
665
+
666
+ print_r($eventResult);
667
+
668
+ return $eventResult;*/
669
+ /*add_action('wporg_after_settings_page_html', array($this, 'doEvent'));
670
+ add_action('wporg_after_settings_page_html', 'myprefix_add_settings');*/
671
+ }
672
+
673
+ /* function doEvent( 'element', 'event', 'order' ){
674
+ add_action('wporg_after_settings_page_html', array($this, 'doEvent'));
675
+ }*/
676
 
677
  function getHover( $img ){
678
  $hoverHTML = '';
includes/frontend/roboGalleryAbstractExtension.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 2.6.6
5
+ * By Robosoft
6
+ *
7
+ * Contact: https://robosoft.co/robogallery/
8
+ * Created: 2017
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2017, Robosoft. All rights reserved.
12
+ * Available only in https://robosoft.co/robogallery/
13
+ */
14
+
15
+
16
+ abstract class roboGalleryAbstractExtension{
17
+
18
+ protected $name = '';
19
+
20
+ protected $galleryObj = null;
21
+
22
+ public $galleryCore = null;
23
+
24
+ public $cssPrefix = '';
25
+
26
+ public $idPrefix = '';
27
+
28
+ public function __construct( roboGalleryCore $galleryCore ){
29
+
30
+ $this->galleryCore = $galleryCore;
31
+
32
+ $this->cssPrefix = 'roboGallery'.ucfirst($this->name);
33
+ $this->idPrefix = $this->galleryCore->getIdPrefix();
34
+
35
+ $this->elements['html'] = '';
36
+ $this->elements['css'] = '';
37
+ $this->elements['js'] = '';
38
+
39
+ /*
40
+ $className = get_called_class();
41
+
42
+ $settingsClassName = "{$className}Settings";
43
+
44
+ if (class_exists($settingsClassName)) {
45
+ $this->settings = new $settingsClassName($this);
46
+ }
47
+
48
+ if ($this->isEnabled()) {
49
+ $this->init();
50
+ }*/
51
+ $this->init();
52
+ }
53
+
54
+
55
+ public function setGallery( $galleryObj ){
56
+ return $this->galleryObj = $galleryObj;
57
+ }
58
+
59
+ public function setCore( roboGalleryCore $galleryCore ){
60
+ if($galleryCore==null) return false; /* need214 error function */
61
+ return $this->galleryCore = $galleryCore;
62
+ }
63
+
64
+ protected function __clone(){}
65
+
66
+ protected function init(){}
67
+
68
+ public function getName(){
69
+ return $this->name;
70
+ }
71
+
72
+
73
+ /* public function isEnabled(){
74
+ return $this->settings->get('is_enabled');
75
+ }
76
+
77
+ public function getSettings(){
78
+ return $this->settings;
79
+ }*/
80
+
81
+ public function getExtensionDir(){
82
+ return 'extensions/' . $this->name . '/';
83
+ }
84
+
85
+
86
+ }
includes/rbs_class_update.php CHANGED
@@ -12,8 +12,8 @@
12
  * Available only in https://robosoft.co/robogallery/
13
  */
14
 
15
- if(!defined('WPINC'))die;
16
- if(!defined("ABSPATH"))exit;
17
 
18
  class RoboGalleryUpdate {
19
  public $posts = array();
@@ -59,24 +59,20 @@ class RoboGalleryUpdate {
59
  $curVersion = get_option( 'RoboGalleryInstallVersion' );
60
 
61
  if( $curVersion != ROBO_GALLERY_VERSION ){
62
- delete_option('RoboGalleryInstallDate');
63
- add_option( 'RoboGalleryInstallDate', time() );
64
- add_option( "RoboGalleryInstallVersion", ROBO_GALLERY_VERSION );
65
  }
66
 
67
  $this->dbVersionOld = get_option( 'rbs_gallery_db_version' );
68
- if(!$this->dbVersionOld) $this->dbVersionOld = 0;
69
 
70
  $this->dbVersion = ROBO_GALLERY_VERSION;
71
 
72
  if( $this->dbVersionOld && $this->dbVersionOld == $this->dbVersion ) $this->needUpdate = false;
73
 
74
  if( $this->needUpdate ){
75
- delete_option("robo_gallery_after_install");
76
- add_option( 'robo_gallery_after_install', '1' );
77
-
78
- delete_option("rbs_gallery_db_version");
79
- add_option( "rbs_gallery_db_version", ROBO_GALLERY_VERSION );
80
  $this->posts = $this->getGalleryPost();
81
  $this->update();
82
  }
12
  * Available only in https://robosoft.co/robogallery/
13
  */
14
 
15
+ if(!defined('WPINC')) die;
16
+ if(!defined("ABSPATH")) exit;
17
 
18
  class RoboGalleryUpdate {
19
  public $posts = array();
59
  $curVersion = get_option( 'RoboGalleryInstallVersion' );
60
 
61
  if( $curVersion != ROBO_GALLERY_VERSION ){
62
+ update_option('RoboGalleryInstallDate', time());
63
+ update_option('RoboGalleryInstallVersion', ROBO_GALLERY_VERSION );
 
64
  }
65
 
66
  $this->dbVersionOld = get_option( 'rbs_gallery_db_version' );
67
+ if( !$this->dbVersionOld ) $this->dbVersionOld = 0;
68
 
69
  $this->dbVersion = ROBO_GALLERY_VERSION;
70
 
71
  if( $this->dbVersionOld && $this->dbVersionOld == $this->dbVersion ) $this->needUpdate = false;
72
 
73
  if( $this->needUpdate ){
74
+ update_option( 'robo_gallery_after_install', '1' );
75
+ update_option( 'rbs_gallery_db_version', ROBO_GALLERY_VERSION );
 
 
 
76
  $this->posts = $this->getGalleryPost();
77
  $this->update();
78
  }
includes/rbs_gallery_init.php CHANGED
@@ -38,6 +38,7 @@ if(!function_exists('rbs_gallery_include')){
38
  }
39
  }
40
 
 
41
  if( is_admin() ){
42
  $photonic_options = get_option( 'photonic_options', array() );
43
  if( !isset($photonic_options['disable_editor']) || $photonic_options['disable_editor']!='on' ){
38
  }
39
  }
40
 
41
+
42
  if( is_admin() ){
43
  $photonic_options = get_option( 'photonic_options', array() );
44
  if( !isset($photonic_options['disable_editor']) || $photonic_options['disable_editor']!='on' ){
js/admin/extensions/backup/rbs_backup_button.js CHANGED
@@ -13,5 +13,5 @@
13
 
14
  jQuery(document).ready( function($){
15
  //var rbsButtonBackup =
16
- jQuery("<a href='edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' id='rbs_backup_button' class='page-title-action'>Backup Gallery</a>").appendTo(jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1")[0]);
17
  });
13
 
14
  jQuery(document).ready( function($){
15
  //var rbsButtonBackup =
16
+ jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1 ~ .page-title-action:last").after("<a href='edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' id='rbs_backup_button' class='page-title-action'>Backup Gallery</a>");
17
  });
js/admin/menu.js CHANGED
@@ -24,4 +24,24 @@ jQuery(function(){
24
  event.preventDefault();
25
  window.open("http://robosoft.co/go.php?product=gallery&task=guides", "_blank");
26
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  });
24
  event.preventDefault();
25
  window.open("http://robosoft.co/go.php?product=gallery&task=guides", "_blank");
26
  });
27
+
28
+ /*var roboGalleryShowNewDialog = function(){
29
+ alert("Hi");
30
+ };
31
+
32
+ jQuery("li#menu-posts-robo_gallery_table a[href='post-new.php?post_type=robo_gallery_table']").click( function(event ){
33
+ event.preventDefault();
34
+ roboGalleryShowNewDialog();
35
+ });
36
+
37
+ jQuery('#wp-admin-bar-new-robo_gallery_table').click( function(event ){
38
+ event.preventDefault();
39
+ roboGalleryShowNewDialog();
40
+ });
41
+
42
+ jQuery('body.post-type-robo_gallery_table .wrap a.page-title-action').click( function(event ){
43
+ event.preventDefault();
44
+ roboGalleryShowNewDialog();
45
+ });*/
46
+
47
  });
js/robo_gallery.js CHANGED
@@ -49,7 +49,7 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
49
  /*! Magnific Popup - v1.0.0 - 2015-01-03
50
  * http://dimsemenov.com/plugins/magnific-popup/
51
  * Copyright (c) 2015 Dmitry Semenov; */
52
- !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)},g=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=g(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var h,v,C,y=function(){C&&(v.after(C.addClass(h)).detach(),C=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(v||(h=o.hiddenClass,v=d(h),h="mfp-"+h),C=a.after(v).detach().removeClass(h)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var w,b=function(){w&&e(document.body).removeClass(w)},I=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),w=t.st.ajax.cursor,p("Close.ajax",I),p("BeforeChange.ajax",I)},getAjax:function(n){w&&e(document.body).addClass(w),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var T,E=function(){return void 0===T&&(T=void 0!==document.createElement("p").style.MozTransform),T};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return E()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var _=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?_():"iframe"===n&&_(!0))}),p("Close.iframe",function(){_()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var P=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?S(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=P(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=P(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=P(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
53
  /*
54
  * @fileOverview TouchSwipe - jQuery Plugin
55
  * @version 1.6.15
@@ -57,16 +57,16 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
57
  * Copyright (c) 2010-2015 Matt Bryson
58
  * Dual licensed under the MIT or GPL Version 2 licenses.
59
  */
60
- !function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=c),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(D);i||(i=new t(this,n),r.data(D,i))})}function t(n,t){function P(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=E,l?We=l.length:!1!==t.preventDefaultEvents&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===T||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,!1===r?(Ve=x,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==m&&Ve!==x&&!ae()){var r,i=n.touches,l=fe(i?i[0]:n);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=y,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=ye(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===T||!i||X()){if(je=Se(l.start,l.end),Ne=Se(l.last,l.end),C(e,Ne),Ue=me(l.start,l.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var o=!0;if(t.triggerOnTouchLeave){var u=Me(this);o=De(l.end,u)}!t.triggerOnTouchEnd&&o?Ve=U(y):t.triggerOnTouchLeave&&!o&&(Ve=U(m)),Ve!=x&&Ve!=m||j(n,Ve)}}else j(n,Ve=x);!1===r&&j(n,Ve=x)}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?j(n,Ve=x):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===y?(!1!==t.preventDefaultEvents&&e.preventDefault(),j(n,Ve=m)):!t.triggerOnTouchEnd&&B()?N(n,Ve=m,h):Ve===y&&j(n,Ve=x),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&j(n,Ve=U(m))}function I(){Ye.unbind(Le,P),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=x:!i||e!=y||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==m&&t.triggerOnTouchLeave&&(n=x):n=m,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,p)),(Y()||X())&&!1!==t&&(t=N(e,n,f)),ie()&&!1!==t?t=N(e,n,d):le()&&!1!==t?t=N(e,n,g):re()&&!1!==t&&(t=N(e,n,h)),n===x&&(W()&&(t=N(e,n,p)),X()&&(t=N(e,n,f)),k(e)),n===m&&(r?r.length||k(e):k(e)),t}function N(n,c,s){var w;if(s==p){if(Ye.trigger("swipeStatus",[c,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&!1===(w=t.swipeStatus.call(Ye,n,c,je||null,Ue||0,He||0,We,ze,Ne)))return!1;if(c==m&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&!1===(w=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne)))return!1;switch(je){case r:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(w=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case i:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(w=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(w=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(w=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==f){if(Ye.trigger("pinchStatus",[c,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&!1===(w=t.pinchStatus.call(Ye,n,c,Fe||null,Ce||0,He||0,We,Qe,ze)))return!1;if(c==m&&F())switch(Fe){case u:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(w=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case a:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(w=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==h?c!==x&&c!==m||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target)))):s==d?c!==x&&c!==m||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(w=t.doubleTap.call(Ye,n,n.target))):s==g&&(c!==x&&c!==m||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(w=t.longTap.call(Ye,n,n.target)))),w}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){return!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(!1!==t.preventDefaultEvents)if(t.allowPageScroll===c)e.preventDefault();else{var u=t.allowPageScroll===s;switch(n){case r:(t.swipeLeft&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case i:(t.swipeRight&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case l:(t.swipeUp&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeDown&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z();return!_()&&r&&t&&n&&e}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===T||!S}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!S)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<b}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;return Be&&Oe()-Be<=t.fingerReleaseThreshold&&(e=!0),e}function ce(){return!(!0!==Ye.data(D+"_intouch"))}function se(e){Ye&&(!0===e?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(D+"_intouch",!0===e))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[r]=ve(r),e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){return(n/e*1).toFixed(2)}function ye(){return Qe<1?a:u}function me(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function xe(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=xe(e,n);return t<=45&&t>=0?r:t<=360&&t>=315?r:t>=135&&t<=225?i:t>45&&t<135?o:l}function Oe(){return(new Date).getTime()}function Me(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=S||M||!t.fallbackToMouseEvents,Le=Pe?M?O?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?M?O?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?M?O?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?M?"mouseleave":null:"mouseleave",Ie=M?O?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,P),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on jQuery.swipe")}this.enable=function(){return Ye.bind(Le,P),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(D,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",a="out",c="none",s="auto",p="swipe",f="pinch",h="tap",d="doubletap",g="longtap",w="horizontal",v="vertical",T="all",b=10,E="start",y="move",m="end",x="cancel",S="ontouchstart"in window,O=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!S,M=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!S,D="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(D);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:E,PHASE_MOVE:y,PHASE_END:m,PHASE_CANCEL:x},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:a},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:w,VERTICAL:v,AUTO:s},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:T}});
61
  /*
62
  stackgrid.adem.js - adwm.co
63
  Licensed under the MIT license - http://opensource.org/licenses/MIT
64
  Copyright (C) 2015 Andrew Prasetya
65
  */
66
- !function(e,t,a){var i=function(i,o){function n(e){e.find(O+", ."+j).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&n.attr("mfp-alt",i.attr("data-alt"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" alt="'+d+'" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(O);n="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?i.css("width",n*parseInt(r)):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=n&&"push-down-100%"!=n||s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):"push-down"!=n&&"push-down-100%"!=n||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){e.find(O).each(function(){var i=t(this).find(R),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+j),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var n=e[i];for(var t in e)if(t!=i)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){return k().not(".rbs-img-loaded")}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+j),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){0==--A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(j).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+j);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+j);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",j="rbs-img-hidden",F=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==F?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(j);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+j)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){z(t(this).val())}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[F]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[F]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[F]({scale:1},200)):(m.css({scale:1}),m[F]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4},J=function(e,t){var a,i;switch(e){case 0:P.reverse,a=0,i=-t.height();break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+j+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=r;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&jQuery("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));$(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());$(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));$(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,jQuery);
67
  /*
68
  * RoboGallery Script Version: 1.0
69
  * Copyright (c) 2014-2016, Robosoft. All rights reserved.
70
  * Available only in https://robosoft.co/robogallery/
71
  */
72
- function robo_gallery_js_check_mobile(){var e=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}!function(e){jQuery(".robo_gallery").on("click",".rbs-lightbox.mfp-link",function(e){e.preventDefault(),window.location.href=jQuery(this).data("mfp-src")}),jQuery(".robo_gallery").each(function(){var e=window[jQuery(this).data("options")],o=jQuery.extend({},e);o.noHoverOnMobile&&robo_gallery_js_check_mobile()&&(o.thumbnailOverlay=!1);var i=jQuery(this).collagePlus(o);1==o.touch&&(jQuery("body").swipe({swipeLeft:function(e,o,i,a,t){jQuery(".mfp-arrow-left").magnificPopup("prev")},swipeRight:function(){jQuery(".mfp-arrow-right").magnificPopup("next")},threshold:50}),jQuery("body").swipe("disable")),void 0!=roboGalleryDelay&&roboGalleryDelay>0&&setTimeout(function(){i.eveMB("resize")},roboGalleryDelay)})}(jQuery);
49
  /*! Magnific Popup - v1.0.0 - 2015-01-03
50
  * http://dimsemenov.com/plugins/magnific-popup/
51
  * Copyright (c) 2015 Dmitry Semenov; */
52
+ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,h,v,C=function(){v&&(h.after(v.addClass(g)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){C()})},getInline:function(n,i){if(C(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(h||(g=o.hiddenClass,h=d(g),g="mfp-"+g),v=a.after(h).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var y,w=function(){y&&e(document.body).removeClass(y)},b=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),y=t.st.ajax.cursor,p("Close.ajax",b),p("BeforeChange.ajax",b)},getAjax:function(n){y&&e(document.body).addClass(y),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){w(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var I;e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,I&&clearInterval(I),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){I&&clearInterval(I),I=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(I),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""}(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(I&&clearInterval(I),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var x;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var k=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?k():"iframe"===n&&k(!0))}),p("Close.iframe",function(){k()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var T=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},E=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=E(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?E(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=T(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=T(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=T(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
53
  /*
54
  * @fileOverview TouchSwipe - jQuery Plugin
55
  * @version 1.6.15
57
  * Copyright (c) 2010-2015 Matt Bryson
58
  * Dual licensed under the MIT or GPL Version 2 licenses.
59
  */
60
+ !function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";var n="left",t="right",r="up",i="down",l="in",o="out",a="none",u="auto",s="swipe",c="pinch",p="tap",h="doubletap",f="longtap",d="horizontal",g="vertical",w="all",v=10,T="start",b="move",E="end",y="cancel",m="ontouchstart"in window,x=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!m,S=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!m,O="TouchSwipe";e.fn.swipe=function(M){var D=e(this),P=D.data(O);if(P&&"string"==typeof M){if(P[M])return P[M].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+M+" does not exist on jQuery.swipe")}else if(P&&"object"==typeof M)P.option.apply(this,arguments);else if(!(P||"object"!=typeof M&&M))return function(M){return!M||void 0!==M.allowPageScroll||void 0===M.swipe&&void 0===M.swipeStatus||(M.allowPageScroll=a),void 0!==M.click&&void 0===M.tap&&(M.tap=M.click),M||(M={}),M=e.extend({},e.fn.swipe.defaults,M),this.each(function(){var D=e(this),P=D.data(O);P||(P=new function(M,D){function P(l){if(!0!==me.data(O+"_intouch")&&!(e(l.target).closest(D.excludedElements,me).length>0)){var o,a=l.originalEvent?l.originalEvent:l,u=a.touches,s=u?u[0]:a;return xe=T,u?Se=u.length:!1!==D.preventDefaultEvents&&l.preventDefault(),he=0,fe=null,de=null,Ee=null,ge=0,we=0,ve=0,Te=1,be=0,ye=function(){var e={};return e[n]=ne(n),e[t]=ne(t),e[r]=ne(r),e[i]=ne(i),e}(),Z(),K(0,s),!u||Se===D.fingers||D.fingers===w||C()?(Me=le(),2==Se&&(K(1,u[1]),we=ve=re(Oe[0].start,Oe[1].start)),(D.swipeStatus||D.pinchStatus)&&(o=j(a,xe))):o=!1,!1===o?(xe=y,j(a,xe),o):(D.hold&&(Ae=setTimeout(e.proxy(function(){me.trigger("hold",[a.target]),D.hold&&(o=D.hold.call(me,a,a.target))},this),D.longTapThreshold)),J(!0),null)}}function L(s){var c=s.originalEvent?s.originalEvent:s;if(xe!==E&&xe!==y&&!B()){var p,h=c.touches,f=$(h?h[0]:c);if(De=le(),h&&(Se=h.length),D.hold&&clearTimeout(Ae),xe=b,2==Se&&(0==we?(K(1,h[1]),we=ve=re(Oe[0].start,Oe[1].start)):($(h[1]),ve=re(Oe[0].end,Oe[1].end),Oe[0].end,Oe[1].end,Ee=Te<1?o:l),Te=(ve/we*1).toFixed(2),be=Math.abs(we-ve)),Se===D.fingers||D.fingers===w||!h||C()){if(fe=ie(f.start,f.end),de=ie(f.last,f.end),function(e,l){if(!1!==D.preventDefaultEvents)if(D.allowPageScroll===a)e.preventDefault();else{var o=D.allowPageScroll===u;switch(l){case n:(D.swipeLeft&&o||!o&&D.allowPageScroll!=d)&&e.preventDefault();break;case t:(D.swipeRight&&o||!o&&D.allowPageScroll!=d)&&e.preventDefault();break;case r:(D.swipeUp&&o||!o&&D.allowPageScroll!=g)&&e.preventDefault();break;case i:(D.swipeDown&&o||!o&&D.allowPageScroll!=g)&&e.preventDefault()}}}(s,de),he=function(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}(f.start,f.end),ge=te(),function(e,n){n=Math.max(n,ee(e)),ye[e].distance=n}(fe,he),p=j(c,xe),!D.triggerOnTouchEnd||D.triggerOnTouchLeave){var v=!0;if(D.triggerOnTouchLeave){var T=function(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}(this);v=function(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}(f.end,T)}!D.triggerOnTouchEnd&&v?xe=U(b):D.triggerOnTouchLeave&&!v&&(xe=U(E)),xe!=y&&xe!=E||j(c,xe)}}else j(c,xe=y);!1===p&&j(c,xe=y)}}function R(e){var n=e.originalEvent?e.originalEvent:e,t=n.touches;if(t){if(t.length&&!B())return function(e){Pe=le(),Le=e.touches.length+1}(n),!0;if(t.length&&B())return!0}return B()&&(Se=Le),De=le(),ge=te(),_()||!H()?j(n,xe=y):D.triggerOnTouchEnd||0==D.triggerOnTouchEnd&&xe===b?(!1!==D.preventDefaultEvents&&e.preventDefault(),j(n,xe=E)):!D.triggerOnTouchEnd&&W()?N(n,xe=E,p):xe===b&&j(n,xe=y),J(!1),null}function k(){Se=0,De=0,Me=0,we=0,ve=0,Te=1,Z(),J(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;D.triggerOnTouchLeave&&(xe=U(E),j(n,xe))}function I(){me.unbind(ae,P),me.unbind(pe,k),me.unbind(ue,L),me.unbind(se,R),ce&&me.unbind(ce,A),J(!1)}function U(e){var n=e,t=q(),r=H(),i=_();return!t||i?n=y:!r||e!=b||D.triggerOnTouchEnd&&!D.triggerOnTouchLeave?!r&&e==E&&D.triggerOnTouchLeave&&(n=y):n=E,n}function j(e,n){var t,r=e.touches;return(!F()||!X())&&!X()||(t=N(e,n,s)),(!Q()||!C())&&!C()||!1===t||(t=N(e,n,c)),G()&&z()&&!1!==t?t=N(e,n,h):ge>D.longTapThreshold&&he<v&&D.longTap&&!1!==t?t=N(e,n,f):1!==Se&&m||!(isNaN(he)||he<D.threshold)||!W()||!1===t||(t=N(e,n,p)),n===y&&(X()&&(t=N(e,n,s)),C()&&(t=N(e,n,c)),k()),n===E&&(r?r.length||k():k()),t}function N(a,u,d){var g;if(d==s){if(me.trigger("swipeStatus",[u,fe||null,he||0,ge||0,Se,Oe,de]),D.swipeStatus&&!1===(g=D.swipeStatus.call(me,a,u,fe||null,he||0,ge||0,Se,Oe,de)))return!1;if(u==E&&F()){if(clearTimeout(ke),clearTimeout(Ae),me.trigger("swipe",[fe,he,ge,Se,Oe,de]),D.swipe&&!1===(g=D.swipe.call(me,a,fe,he,ge,Se,Oe,de)))return!1;switch(fe){case n:me.trigger("swipeLeft",[fe,he,ge,Se,Oe,de]),D.swipeLeft&&(g=D.swipeLeft.call(me,a,fe,he,ge,Se,Oe,de));break;case t:me.trigger("swipeRight",[fe,he,ge,Se,Oe,de]),D.swipeRight&&(g=D.swipeRight.call(me,a,fe,he,ge,Se,Oe,de));break;case r:me.trigger("swipeUp",[fe,he,ge,Se,Oe,de]),D.swipeUp&&(g=D.swipeUp.call(me,a,fe,he,ge,Se,Oe,de));break;case i:me.trigger("swipeDown",[fe,he,ge,Se,Oe,de]),D.swipeDown&&(g=D.swipeDown.call(me,a,fe,he,ge,Se,Oe,de))}}}if(d==c){if(me.trigger("pinchStatus",[u,Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchStatus&&!1===(g=D.pinchStatus.call(me,a,u,Ee||null,be||0,ge||0,Se,Te,Oe)))return!1;if(u==E&&Q())switch(Ee){case l:me.trigger("pinchIn",[Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchIn&&(g=D.pinchIn.call(me,a,Ee||null,be||0,ge||0,Se,Te,Oe));break;case o:me.trigger("pinchOut",[Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchOut&&(g=D.pinchOut.call(me,a,Ee||null,be||0,ge||0,Se,Te,Oe))}}return d==p?u!==y&&u!==E||(clearTimeout(ke),clearTimeout(Ae),z()&&!G()?(Re=le(),ke=setTimeout(e.proxy(function(){Re=null,me.trigger("tap",[a.target]),D.tap&&(g=D.tap.call(me,a,a.target))},this),D.doubleTapThreshold)):(Re=null,me.trigger("tap",[a.target]),D.tap&&(g=D.tap.call(me,a,a.target)))):d==h?u!==y&&u!==E||(clearTimeout(ke),clearTimeout(Ae),Re=null,me.trigger("doubletap",[a.target]),D.doubleTap&&(g=D.doubleTap.call(me,a,a.target))):d==f&&(u!==y&&u!==E||(clearTimeout(ke),Re=null,me.trigger("longtap",[a.target]),D.longTap&&(g=D.longTap.call(me,a,a.target)))),g}function H(){var e=!0;return null!==D.threshold&&(e=he>=D.threshold),e}function _(){var e=!1;return null!==D.cancelThreshold&&null!==fe&&(e=ee(fe)-he>=D.cancelThreshold),e}function q(){return!(D.maxTimeThreshold&&ge>=D.maxTimeThreshold)}function Q(){var e=Y(),n=V(),t=null===D.pinchThreshold||be>=D.pinchThreshold;return e&&n&&t}function C(){return!!(D.pinchStatus||D.pinchIn||D.pinchOut)}function F(){var e=q(),n=H(),t=Y(),r=V();return!_()&&r&&t&&n&&e}function X(){return!!(D.swipe||D.swipeStatus||D.swipeLeft||D.swipeRight||D.swipeUp||D.swipeDown)}function Y(){return Se===D.fingers||D.fingers===w||!m}function V(){return 0!==Oe[0].end.x}function W(){return!!D.tap}function z(){return!!D.doubleTap}function G(){if(null==Re)return!1;var e=le();return z()&&e-Re<=D.doubleTapThreshold}function Z(){Pe=0,Le=0}function B(){var e=!1;return Pe&&le()-Pe<=D.fingerReleaseThreshold&&(e=!0),e}function J(e){me&&(!0===e?(me.bind(ue,L),me.bind(se,R),ce&&me.bind(ce,A)):(me.unbind(ue,L,!1),me.unbind(se,R,!1),ce&&me.unbind(ce,A,!1)),me.data(O+"_intouch",!0===e))}function K(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,Oe[e]=t,t}function $(e){var n=void 0!==e.identifier?e.identifier:0,t=function(e){return Oe[e]||null}(n);return null===t&&(t=K(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function ee(e){if(ye[e])return ye[e].distance}function ne(e){return{direction:e,distance:0}}function te(){return De-Me}function re(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function ie(e,l){var o=function(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}(e,l);return o<=45&&o>=0?n:o<=360&&o>=315?n:o>=135&&o<=225?t:o>45&&o<135?i:r}function le(){return(new Date).getTime()}var D=e.extend({},D),oe=m||S||!D.fallbackToMouseEvents,ae=oe?S?x?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ue=oe?S?x?"MSPointerMove":"pointermove":"touchmove":"mousemove",se=oe?S?x?"MSPointerUp":"pointerup":"touchend":"mouseup",ce=oe?S?"mouseleave":null:"mouseleave",pe=S?x?"MSPointerCancel":"pointercancel":"touchcancel",he=0,fe=null,de=null,ge=0,we=0,ve=0,Te=1,be=0,Ee=0,ye=null,me=e(M),xe="start",Se=0,Oe={},Me=0,De=0,Pe=0,Le=0,Re=0,ke=null,Ae=null;try{me.bind(ae,P),me.bind(pe,k)}catch(n){e.error("events not supported "+ae+","+pe+" on jQuery.swipe")}this.enable=function(){return me.bind(ae,P),me.bind(pe,k),me},this.disable=function(){return I(),me},this.destroy=function(){I(),me.data(O,null),me=null},this.option=function(n,t){if("object"==typeof n)D=e.extend(D,n);else if(void 0!==D[n]){if(void 0===t)return D[n];D[n]=t}else{if(!n)return D;e.error("Option "+n+" does not exist on jQuery.swipe.options")}return null}}(this,M),D.data(O,P))})}.apply(this,arguments);return D},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:T,PHASE_MOVE:b,PHASE_END:E,PHASE_CANCEL:y},e.fn.swipe.directions={LEFT:n,RIGHT:t,UP:r,DOWN:i,IN:l,OUT:o},e.fn.swipe.pageScroll={NONE:a,HORIZONTAL:d,VERTICAL:g,AUTO:u},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:w}});
61
  /*
62
  stackgrid.adem.js - adwm.co
63
  Licensed under the MIT license - http://opensource.org/licenses/MIT
64
  Copyright (C) 2015 Andrew Prasetya
65
  */
66
+ !function(e,t,a){t.fn.collagePlus=function(i){return this.each(function(o,s){var n=t(this);if(n.data("collagePlus"))return n.data("collagePlus");var r=new function(i,o){function s(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(I).find(S+":not([data-imageconverted])").each(function(){var o=t(this),s=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0),r=s.data("thumbnail");if(s[0]==a&&(s=n,r=n.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||s.data("width")==a&&s.data("height")==a){o.attr("data-imageconverted","yes");var d=s.attr("title");d==a&&(d=r);var l=t('<img style="margin:auto;" alt="'+d+'" title="'+d+'" src="'+r+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),s.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),s.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function n(e){e.find(I).each(function(){var i=t(this),o=i.find(S),s=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0);s[0]==a&&(s=n);var r=i.css("display");"none"==r&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(s.width()-d),o.height(s.height()-d),"none"==r&&i.css("margin-top",0).hide()})}function r(e){e.find(I).find(S).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),s=i.find("div[data-popup]").eq(0);o[0]==a&&(o=s);var n=parseFloat(o.data("width")),r=parseFloat(o.data("height")),d=i.parents(I).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=r*d/n;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function d(e,i,o){var s,n=e.find(I);s="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",s),n.each(function(e){var i=t(this),n=i.data("columns");n!=a&&parseInt(o)>=parseInt(n)?i.css("width",s*parseInt(n)):i.css("width",s)})}function l(t){var a=!1;for(var i in t.data("settings").resolutions){var o=t.data("settings").resolutions[i];if(o.maxWidth>=function(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}().width){d(t,o.columnWidth,o.columns),a=!0;break}}0==a&&d(t,t.data("settings").columnWidth,t.data("settings").columns)}function c(e,t){B.addClass("filtering-isotope"),m(e,t),function(){var e=B.find(I+", ."+L),t=h();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}(),f()}function f(){p().not(".rbs-img-loaded").length>0?v():g(),function(){var e=p().length;if(e<x.minBoxesPerFilter&&u().length>0)b(x.minBoxesPerFilter-e)}()}function m(e,t){z[t]=e,B.eveMB({filter:function(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var s=e[i];for(var t in e)if(t!=i)for(var n=e[t].split(","),r=0;r<n.length;r++){for(var d=s.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==n[r]?n[r]="":("*"==n[r]&&(n[r]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+n[r]);s=l.join(",")}return s}(z)})}function p(){var e=B.find(I),t=h();return"*"!=t&&(e=e.filter(t)),e}function h(){var e=B.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function u(e){var t=B.find("."+L),i=h();return"*"!=i&&e==a&&(t=t.filter(i)),t}function v(){W.html(x.LoadingWord),W.removeClass("rbs-imges-load-more"),W.addClass("rbs-imges-loading")}function g(){W.removeClass("rbs-imges-load-more"),W.removeClass("rbs-imges-loading"),W.removeClass("rbs-imges-no-more-entries"),u().length>0?(W.html(x.loadMoreWord),W.addClass("rbs-imges-load-more")):(W.html(x.noMoreEntriesWord),W.addClass("rbs-imges-no-more-entries"))}function b(e,a){if(1!=W.hasClass("rbs-imges-no-more-entries")){E++,v();var i=[];u(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(L).addClass(T),o.hide(),i.push(this))}),B.eveMB("insert",t(i),function(){0==--E&&g(),B.eveMB("layout")})}}function y(e){if(e!=a){var i=B.find("."+T+", ."+L);""==e?i.addClass("search-match"):(i.removeClass("search-match"),B.find(x.searchTarget).each(function(){var a=t(this),i=a.parents("."+T+", ."+L);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){c(".search-match","search")},100)}}function w(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function k(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function C(){var e=t.magnificPopup.instance;if(e){var a=k();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else B.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var x=t.extend({},t.fn.collagePlus.defaults,o),B=t(i).addClass("rbs-imges-container"),I=".rbs-img",S=".rbs-img-image",T="rbs-img",L="rbs-img-hidden",M=Modernizr.csstransitions?"transition":"animate",z={},E=0;"default"==x.overlayEasing&&(x.overlayEasing="transition"==M?"_default":"swing");var W=t('<div class="rbs-imges-load-more button"></div>').insertAfter(B);W.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),W.addClass(x.loadMoreClass),x.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),B.data("settings",x),B.css({"margin-left":-x.horizontalSpaceBetweenBoxes}),B.find(I).removeClass(T).addClass(L);var _=t(x.sortContainer).find(x.sort).filter(".selected"),P=_.attr("data-sort-by"),q=w(_);B.append('<div class="rbs-imges-grid-sizer"></div>'),B.eveMB({itemSelector:I,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:x.getSortData,sortBy:P,sortAscending:q}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);l(e),r(e),n(e),function(e){e.find(I).each(function(){var i=t(this).find(S),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var s=t(this.element);t.waypoints("refresh"),s.addClass("lazy-load-ready"),s.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var d,c,f=t(this.element),m=f.find("."+L)[0],p=o.length;for(d=0;d<p;d++)c=o[d],m!=a?this.element.insertBefore(c.element,m):this.element.appendChild(c.element);var h=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},u=this;!function(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(I+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}(f),l(f),r(f),function(e){e.find(I+", ."+L).find(S+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var s=e.find(".rbs-lightbox").addBack(".rbs-lightbox");s.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&s.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&s.attr("mfp-alt",i.attr("data-alt"))})}(f),s(f,!1),f.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==x.waitForAllThumbsNoMatterWhat&&s(f,!0),f.find(I).addClass("rbs-img-loaded"),function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),d=0;d<p;d++)o[d].isLayoutInstant=!0;for(this.arrange(),d=0;d<p;d++)delete o[d].isLayoutInstant;this.reveal(e)}.call(u),n(f),function(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(I+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(S),s=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(s=o.data("overlay-effect")),"push-up"==s||"push-down"==s||"push-up-100%"==s||"push-down-100%"==s){var n=o.find(".rbs-img-thumbnail-container"),r=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=s&&"push-down-100%"!=s||r.outerHeight(n.outerHeight(!1));var d=r.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==s||"push-up-100%"==s?r.appendTo(o):"push-down"!=s&&"push-down-100%"!=s||(r.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==s||"reveal-top-100%"==s)i.addClass("position-reveal-effect"),c=i.find(".thumbnail-overlay").css("top",0),"reveal-top-100%"==s&&c.css("height","100%");else if("reveal-bottom"==s||"reveal-bottom-100%"==s){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==s&&c.css("height","100%")}else if("direction"==s.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==s){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}(f),"function"==typeof i&&i();for(index in u.images){var e=u.images[index];h(e)}}).progress(function(e,t){h(t)})}}}),b(x.boxesToLoadStart,!0),W.on("click",function(){b(x.boxesToLoad)}),x.lazyLoad&&B.waypoint(function(e){B.hasClass("lazy-load-ready")&&"down"==e&&0==B.hasClass("filtering-isotope")&&(B.removeClass("lazy-load-ready"),b(x.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var O=t(x.filterContainer);O.find(x.filter).on("click",function(e){var i=t(this),o=i.parents(x.filterContainer);o.find(x.filter).removeClass(x.filterContainerSelectClass),i.addClass(x.filterContainerSelectClass);var s=i.attr("data-filter"),n="filter";o.data("id")!=a&&(n=o.data("id")),c(s,n),e.preventDefault(),W.is(".rbs-imges-no-more-entries")||W.click()}),O.each(function(){var e=t(this),i=e.find(x.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),s="filter";e.data("id")!=a&&(s=e.data("id")),m(o,s)}}),f(),y(t(x.search).val()),t(x.search).on("keyup",function(){y(t(this).val())}),t(x.sortContainer).find(x.sort).on("click",function(e){var a=t(this);a.parents(x.sortContainer).find(x.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");B.eveMB({sortBy:i,sortAscending:w(a)}),e.preventDefault()}),B.on("mouseenter.hoverdir, mouseleave.hoverdir",S,function(e){if(0!=x.thumbnailOverlay){var i=t(this),o=x.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var s=e.type,n=i.find(".rbs-img-thumbnail-container"),r=i.find(".thumbnail-overlay"),d=r.outerHeight(!1);if("push-up"==o||"push-up-100%"==o)l=i.find("div.wrapper-for-some-effects"),"mouseenter"===s?l.stop().show()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing):l.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===s?l.stop().show()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing):l.stop()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===s?n.stop().show()[M]({"margin-top":d},x.overlaySpeed,x.overlayEasing):n.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===s?n.stop().show()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing):n.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("direction"==o.substr(0,9)){var c=R(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=U(c,i);"mouseenter"==s?(r.css({left:f.from,top:f.to}),r.stop().show().fadeTo(0,1,function(){t(this).stop()[M]({left:0,top:0},x.overlaySpeed,x.overlayEasing)})):"direction-aware-fade"==o?r.fadeOut(700):r.stop()[M]({left:f.from,top:f.to},x.overlaySpeed,x.overlayEasing)}else if("fade"==o){"mouseenter"==s?(r.stop().fadeOut(0),r.fadeIn(x.overlaySpeed)):(r.stop().fadeIn(0),r.fadeOut(x.overlaySpeed));var m=r.find(".fa");"mouseenter"==s?(m.css({scale:1.4}),m[M]({scale:1},200)):(m.css({scale:1}),m[M]({scale:1.4},200))}}});var R=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),s=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(s,o)*(180/Math.PI)+180)/90+3)%4},U=function(e,t){var a,i;switch(e){case 0:x.reverse,a=0,i=-t.height();break;case 1:x.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:x.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:x.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},j=".rbs-lightbox[data-mfp-src]";if(x.considerFilteringInPopup&&(j=I+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+L+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),x.showOnlyLoadedBoxesInPopup&&(j=I+":visible .rbs-lightbox[data-mfp-src]"),x.magnificPopup){var F={delegate:j,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:x.alignTop,preload:x.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:x.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(x.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+x.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||x.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var s=i.attr("data-mfp-src");e="",x.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+s+'" target="_blank"></a>');var n=location.href,r=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=n;""==d&&(d=r),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",r);var c="";x.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+s+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+s+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+s+" data-url='"+l+"'></div>"),x.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+s+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+s+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+r+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(x.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==x.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==x.touch&&jQuery("body").swipe("disable"),x.deepLinking&&(e.location.hash="#!")}}};t.extend(F,x.lightboxOptions),B.magnificPopup(F)}if(x.deepLinking){var D=k();D&&B.find('.rbs-lightbox[data-mfp-src="'+D.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",C,!1):e.attachEvent&&e.attachEvent("onhashchange",C)}var A=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));A(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());A(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));A(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());A(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());A(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this}(this,i);n.data("collagePlus",r),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){t(".rbs-imges-drop-down").each(function(){!function(a){function i(){r.hide()}function o(){r.show()}function s(){var e=r.find(".selected"),t=e.length?e.parents("li"):r.children().first();d.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function n(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),s()}var r=a.find(".rbs-imges-drop-down-menu"),d=a.find(".rbs-imges-drop-down-header");s(),function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}()?(t("body").on("click",function(){r.is(":visible")&&i()}),d.bind("click",function(e){e.stopPropagation(),r.is(":visible")?i():o()}),r.find("> li > *").bind("click",n)):(d.bind("mouseout",i).bind("mouseover",o),r.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",n)),d.on("click","a",function(e){e.preventDefault()})}(t(this))})}()}(window,jQuery);
67
  /*
68
  * RoboGallery Script Version: 1.0
69
  * Copyright (c) 2014-2016, Robosoft. All rights reserved.
70
  * Available only in https://robosoft.co/robogallery/
71
  */
72
+ function robo_gallery_js_check_mobile(){var e=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}jQuery,jQuery(".robo_gallery").on("click",".rbs-lightbox.mfp-link",function(e){e.preventDefault(),window.location.href=jQuery(this).data("mfp-src")}),jQuery(".robo_gallery").each(function(){var e=window[jQuery(this).data("options")],o=jQuery.extend({},e);o.noHoverOnMobile&&robo_gallery_js_check_mobile()&&(o.thumbnailOverlay=!1),jQuery(this).on("beforeInitGallery",function(e){e.preventDefault(),console.log("beforeInitGallery")});jQuery(o.mainContainer).css("display","block");jQuery(o.loadingContainer).css("display","none");var i=jQuery(this).collagePlus(o);1==o.touch&&(jQuery("body").swipe({swipeLeft:function(e,o,i,a,r){jQuery(".mfp-arrow-left").magnificPopup("prev")},swipeRight:function(){jQuery(".mfp-arrow-right").magnificPopup("next")},threshold:50}),jQuery("body").swipe("disable")),void 0!=roboGalleryDelay&&roboGalleryDelay>0&&setTimeout(function(){i.eveMB("resize")},roboGalleryDelay)});
js/robo_gallery_alt.js CHANGED
@@ -11,7 +11,7 @@
11
  *
12
  * Date: 2015-04-28T16:19Z
13
  */
14
- !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("rbjQuer requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=re.type(e);return"function"!==n&&!re.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(fe.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return re.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=ye[e]={};return re.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function a(){pe.addEventListener?(pe.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(pe.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(pe.addEventListener||"load"===event.type||"complete"===pe.readyState)&&(a(),re.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ce,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Te.test(n)?re.parseJSON(n):n)}catch(e){}re.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!re.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(re.acceptData(e)){var i,o,a=re.expando,s=e.nodeType,l=s?re.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=J.pop()||re.guid++:a),l[u]||(l[u]=s?{}:{toJSON:re.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=re.extend(l[u],t):l[u].data=re.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[re.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[re.camelCase(t)]):i=o,i}}function f(e,t,n){if(re.acceptData(e)){var r,i,o=e.nodeType,a=o?re.cache:e,s=o?e[re.expando]:re.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=re.isArray(t)?t.concat(re.map(t,re.camelCase)):t in r?[t]:(t=re.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!re.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?re.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return pe.activeElement}catch(e){}}function m(e){var t=_e.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==we?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||re.nodeName(r,t)?o.push(r):re.merge(o,g(r,t));return void 0===t||t&&re.nodeName(e,t)?re.merge([e],o):o}function v(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==re.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Xe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)re._data(n,"globalEval",!t||re._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&re.hasData(e)){var n,r,i,o=re._data(e),a=re._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)re.event.add(t,n,s[n][r])}a.data&&(a.data=re.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[re.expando]){i=re._data(t);for(r in i.events)re.removeEvent(t,r,i.handle);t.removeAttribute(re.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!re.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ae.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=re(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:re.css(i[0],"display");return i.detach(),o}function E(e){var t=pe,n=Ge[e];return n||("none"!==(n=N(e,t))&&n||((t=((Ye=(Ye||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ye[0].contentDocument).document).write(),t.close(),n=N(e,t),Ye.detach()),Ge[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=ut.length;i--;)if((t=ut[i]+n)in e)return t;return r}function A(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=re._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&ke(r)&&(o[a]=re._data(r,"olddisplay",E(r.nodeName)))):(i=ke(r),(n&&"none"!==n||!i)&&re._data(r,"olddisplay",i?n:re.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function D(e,t,n){var r=ot.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function j(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=re.css(e,n+Ee[o],!0,i)),r?("content"===n&&(a-=re.css(e,"padding"+Ee[o],!0,i)),"margin"!==n&&(a-=re.css(e,"border"+Ee[o]+"Width",!0,i))):(a+=re.css(e,"padding"+Ee[o],!0,i),"padding"!==n&&(a+=re.css(e,"border"+Ee[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Qe(e),a=ne.boxSizing&&"border-box"===re.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ke(e,t,o))<0||null==i)&&(i=e.style[t]),et.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+j(e,t,n||(a?"border":"content"),r,o)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function q(){return setTimeout(function(){ct=void 0}),ct=re.now()}function _(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Ee[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(gt[t]||[]).concat(gt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function F(e,t,n){var r,i,o,a,s,l,u,c=this,f={},d=e.style,p=e.nodeType&&ke(e),h=re._data(e,"fxshow");n.queue||(null==(s=re._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,re.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=re.css(e,"display"))?re._data(e,"olddisplay")||E(e.nodeName):u)&&"none"===re.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",ne.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],dt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||re.style(e,r)}else u=void 0;if(re.isEmptyObject(f))"inline"===("none"===u?E(e.nodeName):u)&&(d.display=u);else{h?"hidden"in h&&(p=h.hidden):h=re._data(e,"fxshow",{}),o&&(h.hidden=!p),p?re(e).show():c.done(function(){re(e).hide()}),c.done(function(){var t;re._removeData(e,"fxshow");for(t in f)re.style(e,t,f[t])});for(r in f)a=M(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function O(e,t){var n,r,i,o,a;for(n in e)if(r=re.camelCase(n),i=t[r],o=e[n],re.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=re.cssHooks[r])&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function B(e,t,n){var r,i,o=0,a=mt.length,s=re.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=ct||q(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:ct||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=re.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(O(c,u.opts.specialEasing);o<a;o++)if(r=mt[o].call(u,e,c,u.opts))return r;return re.map(c,M,u),re.isFunction(u.opts.start)&&u.opts.start.call(e,u),re.fx.timer(re.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(ve)||[];if(re.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function R(e,t,n,r){function i(s){var l;return o[s]=!0,re.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===Rt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function W(e,t){var n,r,i=re.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&re.extend(!0,e,n),e}function $(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function z(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function I(e,t,n,r){var i;if(re.isArray(t))re.each(t,function(t,i){n||zt.test(e)?r(e,i):I(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==re.type(t))r(e,t);else for(i in t)I(e+"["+i+"]",t[i],n,r)}function X(){try{return new e.XMLHttpRequest}catch(e){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function V(e){return re.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var J=[],Y=J.slice,G=J.concat,Q=J.push,K=J.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re=function(e,t){return new re.fn.init(e,t)},ie=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,ae=/-([\da-z])/gi,se=function(e,t){return t.toUpperCase()};re.fn=re.prototype={rbjquer:"1.11.3",constructor:re,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:Y.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return re.each(this,e,t)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:J.sort,splice:J.splice},re.extend=re.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||re.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(re.isPlainObject(n)||(t=re.isArray(n)))?(t?(t=!1,o=e&&re.isArray(e)?e:[]):o=e&&re.isPlainObject(e)?e:{},a[r]=re.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},re.extend({expando:"rbjQuer"+("1.11.3"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray||function(e){return"array"===re.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!re.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==re.type(e)||e.nodeType||re.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&re.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(oe,"ms-").replace(ae,se)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i=0,o=e.length,a=n(e);if(r){if(a)for(;i<o&&!1!==t.apply(e[i],r);i++);else for(i in e)if(!1===t.apply(e[i],r))break}else if(a)for(;i<o&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ie,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?re.merge(r,"string"==typeof e?[e]:e):Q.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(K)return K.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,r){var i,o=0,a=e.length,s=[];if(n(e))for(;o<a;o++)null!=(i=t(e[o],o,r))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&s.push(i);return G.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),re.isFunction(e))return n=Y.call(arguments,2),r=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},r.guid=e.guid=e.guid||re.guid++,r},now:function(){return+new Date},support:ne}),re.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var le=/*!
15
  * rbSizzl CSS Selector Engine v2.2.0-pre
16
  * http://sizzlejs.com/
17
  *
@@ -21,7 +21,7 @@
21
  *
22
  * Date: 2014-12-16
23
  */
24
- function(e){function t(e,t,n,r){var i,o,a,s,u,f,d,p,h,m;if((t?t.ownerDocument||t:B)!==j&&D(t),t=t||j,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&H){if(11!==s&&(i=ge.exec(e)))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&F(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return G.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&b.getElementsByClassName)return G.apply(n,t.getElementsByClassName(a)),n}if(b.qsa&&(!q||!q.test(e))){if(p=d=O,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(f=C(e),(d=t.getAttribute("id"))?p=d.replace(ye,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=f.length;u--;)f[u]=p+c(f[u]);h=ve.test(e)&&l(t.parentNode)||t,m=f.join(",")}if(m)try{return G.apply(n,h.querySelectorAll(m)),n}catch(e){}finally{d||t.removeAttribute("id")}}}return E(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[O]=!0,e}function i(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=R++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[P,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[O]||(t[O]={}),(s=l[r])&&s[0]===P&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function d(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function h(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function m(e,t,n,i,o,a){return i&&!i[O]&&(i=m(i)),o&&!o[O]&&(o=m(o,a)),r(function(r,a,s,l){var u,c,f,d=[],m=[],g=a.length,v=r||p(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:h(v,d,e,s,l),b=n?o||(r?e:g||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(u=h(b,m),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(b[m[c]]=!(y[m[c]]=f));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(y[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?K(r,f):d[c])>-1&&(r[u]=!(a[u]=f))}}else b=h(b===a?b.splice(g,b.length):b),o?o(null,a,b,l):G.apply(a,b)})}function g(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=f(function(e){return e===t},a,!0),u=f(function(e){return K(t,e)>-1},a,!0),p=[function(e,n,r){var i=!o&&(r||n!==k)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=x.relative[e[s].type])p=[f(d(p),n)];else{if((n=x.filter[e[s].type].apply(null,e[s].matches))[O]){for(r=++s;r<i&&!x.relative[e[r].type];r++);return m(s>1&&d(p),s>1&&c(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s<r&&g(e.slice(s,r)),r<i&&g(e=e.slice(r)),r<i&&c(e))}p.push(n)}return d(p)}function v(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,p=0,m="0",g=r&&[],v=[],y=k,b=r||o&&x.find.TAG("*",u),w=P+=null==y?1:Math.random()||.1,T=b.length;for(u&&(k=a!==j&&a);m!==T&&null!=(c=b[m]);m++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(P=w)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=m,i&&m!==p){for(f=0;d=n[f++];)d(g,v,a,s);if(r){if(p>0)for(;m--;)g[m]||v[m]||(v[m]=J.call(l));v=h(v)}G.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(P=w,k=y),g};return i?r(a):a}var y,b,x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M,F,O="sizzle"+1*new Date,B=e.document,P=0,R=0,W=n(),$=n(),z=n(),I=function(e,t){return e===t&&(A=!0),0},X=1<<31,U={}.hasOwnProperty,V=[],J=V.pop,Y=V.push,G=V.push,Q=V.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne=te.replace("w","w#"),re="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ee+"*\\]",ie=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",oe=new RegExp(ee+"+","g"),ae=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),le=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(ie),fe=new RegExp("^"+ne+"$"),de={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),xe=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){D()};try{G.apply(V=Q.call(B.childNodes),B.childNodes),V[B.childNodes.length].nodeType}catch(e){G={apply:V.length?function(e,t){Y.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==j&&9===r.nodeType&&r.documentElement?(j=r,L=r.documentElement,(n=r.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),H=!T(r),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=me.test(r.getElementsByClassName),b.getById=i(function(e){return L.appendChild(e).id=O,!r.getElementsByName||!r.getElementsByName(O).length}),b.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=b.getElementsByClassName&&function(e,t){if(H)return t.getElementsByClassName(e)},_=[],q=[],(b.qsa=me.test(r.querySelectorAll))&&(i(function(e){L.appendChild(e).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||q.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+O+"-]").length||q.push("~="),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||q.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(b.matchesSelector=me.test(M=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){b.disconnectedMatch=M.call(e,"div"),M.call(e,"[s!='']:x"),_.push("!=",ie)}),q=q.length&&new RegExp(q.join("|")),_=_.length&&new RegExp(_.join("|")),t=me.test(L.compareDocumentPosition),F=t||me.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===B&&F(B,e)?-1:t===r||t.ownerDocument===B&&F(B,t)?1:S?K(S,e)-K(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:S?K(S,e)-K(S,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===B?-1:u[i]===B?1:0},r):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&D(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&H&&(!_||!_.test(n))&&(!q||!q.test(n)))try{var r=M.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&D(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&D(e);var n=x.attrHandle[t.toLowerCase()],r=n&&U.call(x.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==r?r:b.attributes||!H?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,S=!b.sortStable&&e.slice(0),e.sort(I),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},(x=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(be,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(p=(u=(c=g[O]||(g[O]={}))[e]||[])[0]===P&&u[1],d=u[0]===P&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[P,p,d];break}}else if(y&&(u=(t[O]||(t[O]={}))[e])&&u[0]===P)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[O]||(f[O]={}))[e]=[P,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[O]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=K(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(ae,"$1"));return i[O]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,xe),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,xe).toLowerCase(),function(t){var n;do{if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=x.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})x.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return u.prototype=x.filters=x.pseudos,x.setFilters=new u,C=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=$[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=x.preFilter;s;){r&&!(i=se.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ae," ")}),s=s.slice(r.length));for(a in x.filter)!(i=de[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):$(e,l).slice(0)},N=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)(o=g(t[n]))[O]?r.push(o):i.push(o);(o=z(e,v(i,r))).selector=e}return o},E=t.select=function(e,t,n,r){var i,o,a,s,u,f="function"==typeof e&&e,d=!r&&C(e=f.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&b.getById&&9===t.nodeType&&H&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(be,xe),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(be,xe),ve.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return G.apply(n,r),n;break}}return(f||N(e,d))(r,t,!H,n,ve.test(e)&&l(t.parentNode)||t),n},b.sortStable=O.split("").sort(I).join("")===O,b.detectDuplicates=!!A,D(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(j.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);re.find=le,re.expr=le.selectors,re.expr[":"]=re.expr.pseudos,re.unique=le.uniqueSort,re.text=le.getText,re.isXMLDoc=le.isXML,re.contains=le.contains;var ue=re.expr.match.needsContext,ce=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fe=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?re.find.matchesSelector(r,e)?[r]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;t<i;t++)if(re.contains(r[t],this))return!0}));for(t=0;t<i;t++)re.find(e,r[t],n);return n=this.pushStack(i>1?re.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ue.test(e)?re(e):e||[],!1).length}});var de,pe=e.document,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(re.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:he.exec(e))||!n[1]&&t)return!t||t.rbjquer?(t||de).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:pe,!0)),ce.test(n[1])&&re.isPlainObject(t))for(n in t)re.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=pe.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return de.find(e);this.length=1,this[0]=r}return this.context=pe,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?void 0!==de.ready?de.ready(e):e(re):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))}).prototype=re.fn,de=re(pe);var me=/^(?:parents|prev(?:Until|All))/,ge={children:!0,contents:!0,next:!0,prev:!0};re.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!re(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),re.fn.extend({has:function(e){var t,n=re(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(re.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ue.test(e)||"string"!=typeof e?re(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?re.unique(o):o)},index:function(e){return e?"string"==typeof e?re.inArray(this[0],re(e)):re.inArray(e.rbjquer?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.unique(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return re.dir(e,"parentNode")},parentsUntil:function(e,t,n){return re.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return re.dir(e,"nextSibling")},prevAll:function(e){return re.dir(e,"previousSibling")},nextUntil:function(e,t,n){return re.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return re.dir(e,"previousSibling",n)},siblings:function(e){return re.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return re.sibling(e.firstChild)},contents:function(e){return re.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,r){var i=re.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=re.filter(r,i)),this.length>1&&(ge[e]||(i=re.unique(i)),me.test(e)&&(i=i.reverse())),this.pushStack(i)}});var ve=/\S+/g,ye={};re.Callbacks=function(e){var t,n,r,i,a,s,l=[],u=!(e="string"==typeof e?ye[e]||o(e):re.extend({},e)).once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&a<i;a++)if(!1===l[a].apply(o[0],o[1])&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:f.disable())},f={add:function(){if(l){var r=l.length;!function t(n){re.each(n,function(n,r){var i=re.type(r);"function"===i?e.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),t?i=l.length:n&&(s=r,c(n))}return this},remove:function(){return l&&re.each(arguments,function(e,n){for(var r;(r=re.inArray(n,l,r))>-1;)l.splice(r,1),t&&(r<=i&&i--,r<=a&&a--)}),this},has:function(e){return e?re.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=[e,(n=n||[]).slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,o){var a=re.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,r):r}},i={};return r.pipe=r.then,re.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&re.isFunction(e.promise)?a:0,l=1===s?e:re.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&re.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}});var be;re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){if(!0===e?!--re.readyWait:!re.isReady){if(!pe.body)return setTimeout(re.ready);re.isReady=!0,!0!==e&&--re.readyWait>0||(be.resolveWith(pe,[re]),re.fn.triggerHandler&&(re(pe).triggerHandler("ready"),re(pe).off("ready")))}}}),re.ready.promise=function(t){if(!be)if(be=re.Deferred(),"complete"===pe.readyState)setTimeout(re.ready);else if(pe.addEventListener)pe.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{pe.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&pe.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!re.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),re.ready()}}()}return be.promise(t)};var xe,we="undefined";for(xe in re(ne))break;ne.ownLast="0"!==xe,ne.inlineBlockNeedsLayout=!1,re(function(){var e,t,n,r;(n=pe.getElementsByTagName("body")[0])&&n.style&&(t=pe.createElement("div"),(r=pe.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=pe.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(e){ne.deleteExpando=!1}}e=null}(),re.acceptData=function(e){var t=re.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ce=/([A-Z])/g;re.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?re.cache[e[re.expando]]:e[re.expando])&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),re.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=re.data(o),1===o.nodeType&&!re._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&l(o,r=re.camelCase(r.slice(5)),i[r]);re._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){re.data(this,e)}):arguments.length>1?this.each(function(){re.data(this,e,t)}):o?l(o,e,re.data(o,e)):void 0},removeData:function(e){return this.each(function(){re.removeData(this,e)})}}),re.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=re._data(e,t),n&&(!r||re.isArray(n)?r=re._data(e,t,re.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),r=n.length,i=n.shift(),o=re._queueHooks(e,t),a=function(){re.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return re._data(e,n)||re._data(e,n,{empty:re.Callbacks("once memory").add(function(){re._removeData(e,t+"queue"),re._removeData(e,n)})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):void 0===t?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=re.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=re._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ee=["Top","Right","Bottom","Left"],ke=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},Se=re.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===re.type(n)){i=!0;for(s in n)re.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,re.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(re(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Ae=/^(?:checkbox|radio)$/i;!function(){var e=pe.createElement("input"),t=pe.createElement("div"),n=pe.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==pe.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}}(),function(){var t,n,r=pe.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var De=/^(?:input|select|textarea)$/i,je=/^key/,Le=/^(?:mouse|pointer|contextmenu)|click/,He=/^(?:focusinfocus|focusoutblur)$/,qe=/^([^.]*)(?:\.(.+)|)$/;re.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=re._data(e);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=re.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return typeof re===we||e&&re.event.triggered===e.type?void 0:re.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(ve)||[""]).length;s--;)p=m=(o=qe.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=re.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=re.event.special[p]||{},f=re.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&re.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,h,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),re.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=re.hasData(e)&&re._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(ve)||[""]).length;u--;)if(s=qe.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=re.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||re.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)re.event.remove(e,p+t[u],n,r,!0);re.isEmptyObject(c)&&(delete g.handle,re._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||pe],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||pe,3!==r.nodeType&&8!==r.nodeType&&!He.test(p+re.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[re.expando]?t:new re.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:re.makeArray(n,[t]),u=re.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!re.isWindow(r)){for(l=u.delegateType||p,He.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||pe)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,(o=(re._data(s,"events")||{})[t.type]&&re._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&re.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&re.acceptData(r)&&a&&r[p]&&!re.isWindow(r)){(c=r[a])&&(r[a]=null),re.event.triggered=p;try{r[p]()}catch(e){}re.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=re.event.fix(e);var t,n,r,i,o,a=[],s=Y.call(arguments),l=(re._data(this,"events")||{})[e.type]||[],u=re.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=re.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((re.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?re(n,this).index(l)>=0:re.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[re.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Le.test(i)?this.mouseHooks:je.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new re.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||pe),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||pe).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===h()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(re.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=re.extend(new re.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?re.event.trigger(i,null,t):re.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},re.removeEvent=pe.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===we&&(e[r]=null),e.detachEvent(r,n))},re.Event=function(e,t){if(!(this instanceof re.Event))return new re.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?d:p):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),this[re.expando]=!0},re.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||re.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(re.event.special.submit={setup:function(){if(re.nodeName(this,"form"))return!1;re.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=re.nodeName(t,"input")||re.nodeName(t,"button")?t.form:void 0;n&&!re._data(n,"submitBubbles")&&(re.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),re._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&re.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(re.nodeName(this,"form"))return!1;re.event.remove(this,"._submit")}}),ne.changeBubbles||(re.event.special.change={setup:function(){if(De.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(re.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),re.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),re.event.simulate("change",this,e,!0)})),!1;re.event.add(this,"beforeactivate._change",function(e){var t=e.target;De.test(t.nodeName)&&!re._data(t,"changeBubbles")&&(re.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||re.event.simulate("change",this.parentNode,e,!0)}),re._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return re.event.remove(this,"._change"),!De.test(this.nodeName)}}),ne.focusinBubbles||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e),!0)};re.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=re._data(r,t);i||r.addEventListener(e,n,!0),re._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=re._data(r,t)-1;i?re._data(r,t,i):(r.removeEventListener(e,n,!0),re._removeData(r,t))}}}),re.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=p;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return re().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=re.guid++)),this.each(function(){re.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,re(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=p),this.each(function(){re.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return re.event.trigger(e,t,n,!0)}});var _e="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Me=/ rbjQuer\d+="(?:null|\d+)"/g,Fe=new RegExp("<(?:"+_e+")[\\s/>]","i"),Oe=/^\s+/,Be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pe=/<([\w:]+)/,Re=/<tbody/i,We=/<|&#?\w+;/,$e=/<(?:script|style|link)/i,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^$|\/(?:java|ecma)script/i,Xe=/^true\/(.*)/,Ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ve={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Je=m(pe).appendChild(pe.createElement("div"));Ve.optgroup=Ve.option,Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,re.extend({clone:function(e,t,n){var r,i,o,a,s,l=re.contains(e.ownerDocument,e);if(ne.html5Clone||re.isXMLDoc(e)||!Fe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Je.innerHTML=e.outerHTML,Je.removeChild(o=Je.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return(r=g(o,"script")).length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h<f;h++)if((o=e[h])||0===o)if("object"===re.type(o))re.merge(p,o.nodeType?[o]:o);else if(We.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(Pe.exec(o)||["",""])[1].toLowerCase(),c=Ve[l]||Ve._default,s.innerHTML=c[1]+o.replace(Be,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Oe.test(o)&&p.push(t.createTextNode(Oe.exec(o)[0])),!ne.tbody)for(i=(o="table"!==l||Re.test(o)?"<table>"!==c[1]||Re.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)re.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(re.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),ne.appendChecked||re.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===re.inArray(o,r))&&(a=re.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ie.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=re.expando,l=re.cache,u=ne.deleteExpando,c=re.event.special;null!=(n=e[a]);a++)if((t||re.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?re.event.remove(n,r):re.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==we?n.removeAttribute(s):n[s]=null,J.push(i))}}}),re.fn.extend({text:function(e){return Se(this,function(e){return void 0===e?re.text(this):this.empty().append((this[0]&&this[0].ownerDocument||pe).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||y(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?re.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||re.cleanData(g(n)),n.parentNode&&(t&&re.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&re.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&re.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return Se(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Me,""):void 0;if("string"==typeof e&&!$e.test(e)&&(ne.htmlSerialize||!Fe.test(e))&&(ne.leadingWhitespace||!Oe.test(e))&&!Ve[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Be,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(re.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,re.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=G.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,f=u-1,d=e[0],p=re.isFunction(d);if(p||u>1&&"string"==typeof d&&!ne.checkClone&&ze.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=re.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=(o=re.map(g(s,"script"),b)).length;l<u;l++)r=s,l!==f&&(r=re.clone(r,!0,!0),i&&re.merge(o,g(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,re.map(o,x),l=0;l<i;l++)r=o[l],Ie.test(r.type||"")&&!re._data(r,"globalEval")&&re.contains(a,r)&&(r.src?re._evalUrl&&re._evalUrl(r.src):re.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Ue,"")));s=n=null}return this}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,r=0,i=[],o=re(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),re(o[r])[t](n),Q.apply(i,n.get());return this.pushStack(i)}});var Ye,Ge={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return(n=pe.getElementsByTagName("body")[0])&&n.style?(t=pe.createElement("div"),r=pe.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(pe.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var Qe,Ke,Ze=/^margin/,et=new RegExp("^("+Ne+")(?!px)[a-z%]+$","i"),tt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Qe=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},Ke=function(e,t,n){var r,i,o,a,s=e.style;return n=n||Qe(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||re.contains(e.ownerDocument,e)||(a=re.style(e,t)),et.test(a)&&Ze.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):pe.documentElement.currentStyle&&(Qe=function(e){return e.currentStyle},Ke=function(e,t,n){var r,i,o,a,s=e.style;return n=n||Qe(e),null==(a=n?n[t]:void 0)&&s&&s[t]&&(a=s[t]),et.test(a)&&!tt.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;(n=pe.getElementsByTagName("body")[0])&&n.style&&(t=pe.createElement("div"),(r=pe.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(i=t.appendChild(pe.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;(n=pe.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(r=(i=n.getElementsByTagName("a")[0])&&i.style)&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,re.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),re.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var nt=/alpha\([^)]*\)/i,rt=/opacity\s*=\s*([^)]*)/,it=/^(none|table(?!-c[ea]).+)/,ot=new RegExp("^("+Ne+")(.*)$","i"),at=new RegExp("^([+-])=("+Ne+")","i"),st={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ut=["Webkit","O","Moz","ms"];re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=re.camelCase(t),l=e.style;if(t=re.cssProps[s]||(re.cssProps[s]=S(l,s)),a=re.cssHooks[t]||re.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"===(o=typeof n)&&(i=at.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(re.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||re.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=re.camelCase(t);return t=re.cssProps[s]||(re.cssProps[s]=S(e.style,s)),(a=re.cssHooks[t]||re.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ke(e,t,r)),"normal"===o&&t in lt&&(o=lt[t]),""===n||n?(i=parseFloat(o),!0===n||re.isNumeric(i)?i||0:o):o}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,r){if(n)return it.test(re.css(e,"display"))&&0===e.offsetWidth?re.swap(e,st,function(){return L(e,t,r)}):L(e,t,r)},set:function(e,n,r){var i=r&&Qe(e);return D(e,n,r?j(e,t,r,ne.boxSizing&&"border-box"===re.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(re.cssHooks.opacity={get:function(e,t){return rt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=re.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===re.trim(o.replace(nt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=nt.test(o)?o.replace(nt,i):o+" "+i)}}),re.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){if(t)return re.swap(e,{display:"inline-block"},Ke,[e,"marginRight"])}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Ee[r]+t]=o[r]||o[r-2]||o[0];return i}},Ze.test(e)||(re.cssHooks[e+t].set=D)}),re.fn.extend({css:function(e,t){return Se(this,function(e,t,n){var r,i,o={},a=0;if(re.isArray(t)){for(r=Qe(e),i=t.length;a<i;a++)o[t[a]]=re.css(e,t[a],!1,r);return o}return void 0!==n?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ke(this)?re(this).show():re(this).hide()})}}),re.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(re.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=re.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[re.cssProps[e.prop]]||re.cssHooks[e.prop])?re.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},re.fx=H.prototype.init,re.fx.step={};var ct,ft,dt=/^(?:toggle|show|hide)$/,pt=new RegExp("^(?:([+-])=|)("+Ne+")([a-z%]*)$","i"),ht=/queueHooks$/,mt=[F],gt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=pt.exec(t),o=i&&i[3]||(re.cssNumber[e]?"":"px"),a=(re.cssNumber[e]||"px"!==o&&+r)&&pt.exec(re.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",re.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};re.Animation=re.extend(B,{tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],gt[n]=gt[n]||[],gt[n].unshift(t)},prefilter:function(e,t){t?mt.unshift(e):mt.push(e)}}),re.speed=function(e,t,n){var r=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return r.duration=re.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in re.fx.speeds?re.fx.speeds[r.duration]:re.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){re.isFunction(r.old)&&r.old.call(this),r.queue&&re.dequeue(this,r.queue)},r},re.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ke).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=re.isEmptyObject(e),o=re.speed(t,n,r),a=function(){var t=B(this,re.extend({},e),o);(i||re._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=re.timers,a=re._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ht.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||re.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=re._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=re.timers,a=r?r.length:0;for(n.finish=!0,re.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}}),re.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),re.timers=[],re.fx.tick=function(){var e,t=re.timers,n=0;for(ct=re.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||re.fx.stop(),ct=void 0},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){ft||(ft=setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){clearInterval(ft),ft=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(e,t){return e=re.fx?re.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;(t=pe.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],i=(n=pe.createElement("select")).appendChild(pe.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!pe.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,(e=pe.createElement("input")).setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var vt=/\r/g;re.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=re.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,re(this).val()):e)?i="":"number"==typeof i?i+="":re.isArray(i)&&(i=re.map(i,function(e){return null==e?"":e+""})),(t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=re.valHooks[i.type]||re.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),re.extend({valHooks:{option:{get:function(e){var t=re.find.attr(e,"value");return null!=t?t:re.trim(re.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=re.makeArray(t),a=i.length;a--;)if(r=i[a],re.inArray(re.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){if(re.isArray(t))return e.checked=re.inArray(re(e).val(),t)>=0}},ne.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var yt,bt,xt=re.expr.attrHandle,wt=/^(?:checked|selected)$/i,Tt=ne.getSetAttribute,Ct=ne.input;re.fn.extend({attr:function(e,t){return Se(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===we?re.prop(e,t,n):(1===o&&re.isXMLDoc(e)||(t=t.toLowerCase(),r=re.attrHooks[t]||(re.expr.match.bool.test(t)?bt:yt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=re.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void re.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(ve);if(o&&1===e.nodeType)for(;n=o[i++];)r=re.propFix[n]||n,re.expr.match.bool.test(n)?Ct&&Tt||!wt.test(n)?e[r]=!1:e[re.camelCase("default-"+n)]=e[r]=!1:re.attr(e,n,""),e.removeAttribute(Tt?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),bt={set:function(e,t,n){return!1===t?re.removeAttr(e,n):Ct&&Tt||!wt.test(n)?e.setAttribute(!Tt&&re.propFix[n]||n,n):e[re.camelCase("default-"+n)]=e[n]=!0,n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xt[t]||re.find.attr;xt[t]=Ct&&Tt||!wt.test(t)?function(e,t,r){var i,o;return r||(o=xt[t],xt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,xt[t]=o),i}:function(e,t,n){if(!n)return e[re.camelCase("default-"+t)]?t.toLowerCase():null}}),Ct&&Tt||(re.attrHooks.value={set:function(e,t,n){if(!re.nodeName(e,"input"))return yt&&yt.set(e,t,n);e.defaultValue=t}}),Tt||(yt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},xt.id=xt.name=xt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},re.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:yt.set},re.attrHooks.contenteditable={set:function(e,t,n){yt.set(e,""!==t&&t,n)}},re.each(["width","height"],function(e,t){re.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),ne.style||(re.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Nt=/^(?:input|select|textarea|button|object)$/i,Et=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return Se(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return e=re.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),re.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!re.isXMLDoc(e))&&(t=re.propFix[t]||t,i=re.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):Nt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||re.each(["href","src"],function(e,t){re.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this}),ne.enctype||(re.propFix.enctype="encoding");var kt=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(kt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=re.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(kt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?re.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=re(this),o=e.match(ve)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==we&&"boolean"!==n||(this.className&&re._data(this,"__className__",this.className),this.className=this.className||!1===e?"":re._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(kt," ").indexOf(t)>=0)return!0;return!1}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var St=re.now(),At=/\?/,Dt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;re.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=re.trim(t+"");return i&&!re.trim(i.replace(Dt,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():re.error("Invalid JSON: "+t)},re.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+t),n};var jt,Lt,Ht=/#.*$/,qt=/([?&])_=[^&]*/,_t=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ft=/^(?:GET|HEAD)$/,Ot=/^\/\//,Bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pt={},Rt={},Wt="*/".concat("*");try{Lt=location.href}catch(e){(Lt=pe.createElement("a")).href="",Lt=Lt.href}jt=Bt.exec(Lt.toLowerCase())||[],re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt,type:"GET",isLocal:Mt.test(jt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,re.ajaxSettings),t):W(re.ajaxSettings,e)},ajaxPrefilter:P(Pt),ajaxTransport:P(Rt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(y=$(f,w,n)),y=z(f,y,w,i),i?(f.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(re.lastModified[o]=x),(x=w.getResponseHeader("etag"))&&(re.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,i=!(v=y.error))):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:v]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=re.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.rbjquer)?re(d):re.event,h=re.Deferred(),m=re.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=_t.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||Lt)+"").replace(Ht,"").replace(Ot,jt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=re.trim(f.dataType||"*").toLowerCase().match(ve)||[""],null==f.crossDomain&&(r=Bt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===jt[1]&&r[2]===jt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(jt[3]||("http:"===jt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=re.param(f.data,f.traditional)),R(Pt,f,t,w),2===b)return w;(l=re.event&&f.global)&&0==re.active++&&re.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=qt.test(o)?o.replace(qt,"$1_="+St++):o+(At.test(o)?"&":"?")+"_="+St++)),f.ifModified&&(re.lastModified[o]&&w.setRequestHeader("If-Modified-Since",re.lastModified[o]),re.etag[o]&&w.setRequestHeader("If-None-Match",re.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Wt+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,w,f)||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=R(Rt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(v,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,void 0,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,r,i){return re.isFunction(n)&&(i=i||r,r=n,n=void 0),re.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},re.fn.extend({wrapAll:function(e){if(re.isFunction(e))return this.each(function(t){re(this).wrapAll(e.call(this,t))});if(this[0]){var t=re(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||re.css(e,"display"))},re.expr.filters.visible=function(e){return!re.expr.filters.hidden(e)};var $t=/%20/g,zt=/\[\]$/,It=/\r?\n/g,Xt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,r=[],i=function(e,t){t=re.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.rbjquer&&!re.isPlainObject(e))re.each(e,function(){i(this.name,this.value)});else for(n in e)I(n,e[n],t,i);return r.join("&").replace($t,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&Ut.test(this.nodeName)&&!Xt.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}}),re.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Vt=0,Jt={},Yt=re.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ne.cors=!!Yt&&"withCredentials"in Yt,(Yt=ne.ajax=!!Yt)&&re.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Vt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Jt[a],t=void 0,o.onreadystatechange=re.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Jt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=pe.head||re("head")[0]||pe.documentElement;return{send:function(r,i){(t=pe.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Gt=[],Qt=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||re.expando+"_"+St++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qt,"$1"+i):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||re.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(i)),a&&re.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||pe;var r=ce.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=re.buildFragment([e],t,i),i&&i.length&&re(i).remove(),re.merge([],r.childNodes))};var Kt=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&Kt)return Kt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=re.trim(e.slice(s,e.length)),e=e.slice(0,s)),re.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&re.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?re("<div>").append(re.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length};var Zt=e.document.documentElement;re.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=re.css(e,"position"),c=re(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=re.css(e,"top"),l=re.css(e,"left"),("absolute"===u||"fixed"===u)&&re.inArray("auto",[o,l])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,re.contains(t,i)?(typeof i.getBoundingClientRect!==we&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===re.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(n=e.offset()),n.top+=re.css(e[0],"borderTopWidth",!0),n.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-re.css(r,"marginTop",!0),left:t.left-n.left-re.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Zt;e&&!re.nodeName(e,"html")&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Zt})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);re.fn[e]=function(r){return Se(this,function(e,r,i){var o=V(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?re(o).scrollLeft():i,n?i:re(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=k(ne.pixelPosition,function(e,n){if(n)return n=Ke(e,t),et.test(n)?re(e).position()[t]+"px":n})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){re.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return Se(this,function(t,n,r){var i;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?re.css(t,n,a):re.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),re.fn.size=function(){return this.length},re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("rbjquer",[],function(){return re});var en=e.rbjQuer,tn=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=tn),t&&e.rbjQuer===re&&(e.rbjQuer=en),re},typeof t===we&&(e.rbjQuer=e.$=re),re});
25
  /*!
26
  * eventie v1.0.5
27
  * event binding helper
@@ -83,7 +83,7 @@ https://github.com/imakewebthings/rbjquer-waypoints/blob/master/licenses.txt
83
  /*! Magnific Popup - v1.0.0 - 2015-01-03
84
  * http://dimsemenov.com/plugins/magnific-popup/
85
  * Copyright (c) 2015 Dmitry Semenov; */
86
- !function(e){"function"==typeof define&&define.amd?define(["rbjquer"],e):e("object"==typeof exports?require("rbjquer"):window.rbjQuer||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.rbjQuer,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)},g=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=g(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var h,v,C,y=function(){C&&(v.after(C.addClass(h)).detach(),C=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(v||(h=o.hiddenClass,v=d(h),h="mfp-"+h),C=a.after(v).detach().removeClass(h)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var w,b=function(){w&&e(document.body).removeClass(w)},I=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),w=t.st.ajax.cursor,p("Close.ajax",I),p("BeforeChange.ajax",I)},getAjax:function(n){w&&e(document.body).addClass(w),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var T,E=function(){return void 0===T&&(T=void 0!==document.createElement("p").style.MozTransform),T};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return E()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var _=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?_():"iframe"===n&&_(!0))}),p("Close.iframe",function(){_()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var P=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?S(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=P(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=P(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=P(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
87
  /*
88
  * @fileOverview TouchSwipe - jQuery Plugin
89
  * @version 1.6.15
@@ -97,13 +97,13 @@ https://github.com/imakewebthings/rbjquer-waypoints/blob/master/licenses.txt
97
  * Dual licensed under the MIT or GPL Version 2 licenses.
98
  *
99
  */
100
- !function(e){"function"==typeof define&&define.amd&&define.amd.rbjQuer?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):rbjQuer)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=c),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(D);i||(i=new t(this,n),r.data(D,i))})}function t(n,t){function P(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=E,l?We=l.length:!1!==t.preventDefaultEvents&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===T||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,!1===r?(Ve=y,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==x&&Ve!==y&&!ae()){var r,i=n.touches,l=fe(i?i[0]:n);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=m,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=me(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===T||!i||X()){if(je=Se(l.start,l.end),Ne=Se(l.last,l.end),C(e,Ne),Ue=xe(l.start,l.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var o=!0;if(t.triggerOnTouchLeave){var u=Me(this);o=De(l.end,u)}!t.triggerOnTouchEnd&&o?Ve=U(m):t.triggerOnTouchLeave&&!o&&(Ve=U(x)),Ve!=y&&Ve!=x||j(n,Ve)}}else j(n,Ve=y);!1===r&&j(n,Ve=y)}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?j(n,Ve=y):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===m?(!1!==t.preventDefaultEvents&&e.preventDefault(),j(n,Ve=x)):!t.triggerOnTouchEnd&&B()?N(n,Ve=x,h):Ve===m&&j(n,Ve=y),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&j(n,Ve=U(x))}function I(){Ye.unbind(Le,P),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=y:!i||e!=m||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==x&&t.triggerOnTouchLeave&&(n=y):n=x,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,p)),(Y()||X())&&!1!==t&&(t=N(e,n,f)),ie()&&!1!==t?t=N(e,n,d):le()&&!1!==t?t=N(e,n,g):re()&&!1!==t&&(t=N(e,n,h)),n===y&&(W()&&(t=N(e,n,p)),X()&&(t=N(e,n,f)),k(e)),n===x&&(r?r.length||k(e):k(e)),t}function N(n,c,s){var w;if(s==p){if(Ye.trigger("swipeStatus",[c,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&!1===(w=t.swipeStatus.call(Ye,n,c,je||null,Ue||0,He||0,We,ze,Ne)))return!1;if(c==x&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&!1===(w=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne)))return!1;switch(je){case r:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(w=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case i:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(w=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(w=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(w=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==f){if(Ye.trigger("pinchStatus",[c,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&!1===(w=t.pinchStatus.call(Ye,n,c,Fe||null,Ce||0,He||0,We,Qe,ze)))return!1;if(c==x&&F())switch(Fe){case u:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(w=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case a:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(w=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==h?c!==y&&c!==x||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target)))):s==d?c!==y&&c!==x||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(w=t.doubleTap.call(Ye,n,n.target))):s==g&&(c!==y&&c!==x||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(w=t.longTap.call(Ye,n,n.target)))),w}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){return!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(!1!==t.preventDefaultEvents)if(t.allowPageScroll===c)e.preventDefault();else{var u=t.allowPageScroll===s;switch(n){case r:(t.swipeLeft&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case i:(t.swipeRight&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case l:(t.swipeUp&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeDown&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z();return!_()&&r&&t&&n&&e}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===T||!S}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!S)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<b}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;return Be&&Oe()-Be<=t.fingerReleaseThreshold&&(e=!0),e}function ce(){return!(!0!==Ye.data(D+"_intouch"))}function se(e){Ye&&(!0===e?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(D+"_intouch",!0===e))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[r]=ve(r),e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){return(n/e*1).toFixed(2)}function me(){return Qe<1?a:u}function xe(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function ye(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=ye(e,n);return t<=45&&t>=0?r:t<=360&&t>=315?r:t>=135&&t<=225?i:t>45&&t<135?o:l}function Oe(){return(new Date).getTime()}function Me(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=S||M||!t.fallbackToMouseEvents,Le=Pe?M?O?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?M?O?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?M?O?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?M?"mouseleave":null:"mouseleave",Ie=M?O?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,P),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on rbjQuer.swipe")}this.enable=function(){return Ye.bind(Le,P),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(D,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on rbjQuer.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",a="out",c="none",s="auto",p="swipe",f="pinch",h="tap",d="doubletap",g="longtap",w="horizontal",v="vertical",T="all",b=10,E="start",m="move",x="end",y="cancel",S="ontouchstart"in window,O=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!S,M=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!S,D="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(D);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on rbjQuer.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:E,PHASE_MOVE:m,PHASE_END:x,PHASE_CANCEL:y},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:a},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:w,VERTICAL:v,AUTO:s},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:T}});
101
  /*
102
  stackgrid.adem.js - adwm.co
103
  Licensed under the MIT license - http://opensource.org/licenses/MIT
104
  Copyright (C) 2015 Andrew Prasetya
105
  */
106
- !function(e,t,a){var i=function(i,o){function n(e){e.find(O+", ."+F).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&n.attr("mfp-alt",i.attr("data-alt"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(O);n="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?i.css("width",n*parseInt(r)):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=n&&"push-down-100%"!=n||s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):"push-down"!=n&&"push-down-100%"!=n||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){e.find(O).each(function(){var i=t(this).find(R),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+F),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var n=e[i];for(var t in e)if(t!=i)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){return k().not(".rbs-img-loaded")}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+F),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){0==--A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(F).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+F);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+F);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",F="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(F);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+F)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){z(t(this).val())}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4},J=function(e,t){var a,i;switch(e){case 0:P.reverse,a=0,i=-t.height();break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+F+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=r;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&t("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));$(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());$(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));$(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,rbjQuer);
107
  /*
108
  * RoboGallery Version: 1.0
109
  * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
11
  *
12
  * Date: 2015-04-28T16:19Z
13
  */
14
+ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("rbjQuer requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=Y.type(e);return"function"!==n&&!Y.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(Y.isFunction(t))return Y.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Y.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ne.test(t))return Y.filter(t,e,n);t=Y.filter(t,e)}return Y.grep(e,function(e){return Y.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1)):(ie.detachEvent("onreadystatechange",a),e.detachEvent("onload",a))}function a(){(ie.addEventListener||"load"===event.type||"complete"===ie.readyState)&&(o(),Y.ready())}function s(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(he,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:pe.test(n)?Y.parseJSON(n):n)}catch(e){}Y.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!Y.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(e,t,n,r){if(Y.acceptData(e)){var i,o,a=Y.expando,s=e.nodeType,l=s?Y.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=R.pop()||Y.guid++:a),l[u]||(l[u]=s?{}:{toJSON:Y.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=Y.extend(l[u],t):l[u].data=Y.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[Y.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[Y.camelCase(t)]):i=o,i}}function c(e,t,n){if(Y.acceptData(e)){var r,i,o=e.nodeType,a=o?Y.cache:e,s=o?e[Y.expando]:Y.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=Y.isArray(t)?t.concat(Y.map(t,Y.camelCase)):t in r?[t]:(t=Y.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!l(r):!Y.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?Y.cleanData([e],!0):J.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function d(){return!1}function p(){try{return ie.activeElement}catch(e){}}function h(e){var t=Ee.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==de?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==de?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||Y.nodeName(r,t)?o.push(r):Y.merge(o,m(r,t));return void 0===t||t&&Y.nodeName(e,t)?Y.merge([e],o):o}function g(e,t){return Y.nodeName(e,"table")&&Y.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function v(e){return e.type=(null!==Y.find.attr(e,"type"))+"/"+e.type,e}function y(e){var t=Fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){for(var n,r=0;null!=(n=e[r]);r++)Y._data(n,"globalEval",!t||Y._data(t[r],"globalEval"))}function x(e,t){if(1===t.nodeType&&Y.hasData(e)){var n,r,i,o=Y._data(e),a=Y._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)Y.event.add(t,n,s[n][r])}a.data&&(a.data=Y.extend({},a.data))}}function w(t,n){var r,i=Y(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:Y.css(i[0],"display");return i.detach(),o}function T(e){var t=ie,n=We[e];return n||("none"!==(n=w(e,t))&&n||((t=((Re=(Re||Y("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Re[0].contentDocument).document).write(),t.close(),n=w(e,t),Re.detach()),We[e]=n),n}function C(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}function N(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=et.length;i--;)if((t=et[i]+n)in e)return t;return r}function E(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=Y._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&ve(r)&&(o[a]=Y._data(r,"olddisplay",T(r.nodeName)))):(i=ve(r),(n&&"none"!==n||!i)&&Y._data(r,"olddisplay",i?n:Y.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function k(e,t,n){var r=Ge.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function S(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=Y.css(e,n+ge[o],!0,i)),r?("content"===n&&(a-=Y.css(e,"padding"+ge[o],!0,i)),"margin"!==n&&(a-=Y.css(e,"border"+ge[o]+"Width",!0,i))):(a+=Y.css(e,"padding"+ge[o],!0,i),"padding"!==n&&(a+=Y.css(e,"border"+ge[o]+"Width",!0,i)));return a}function A(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=$e(e),a=J.boxSizing&&"border-box"===Y.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=ze(e,t,o))<0||null==i)&&(i=e.style[t]),Xe.test(i))return i;r=a&&(J.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+S(e,t,n||(a?"border":"content"),r,o)+"px"}function D(e,t,n,r,i){return new D.prototype.init(e,t,n,r,i)}function j(){return setTimeout(function(){tt=void 0}),tt=Y.now()}function L(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ge[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function H(e,t,n){for(var r,i=(st[t]||[]).concat(st["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function q(e,t,n){var r,i,o=0,a=at.length,s=Y.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=tt||j(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:Y.extend({},t),opts:Y.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:tt||j(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Y.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(r=Y.camelCase(n),i=t[r],o=e[n],Y.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=Y.cssHooks[r])&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=at[o].call(u,e,c,u.opts))return r;return Y.map(c,H,u),Y.isFunction(u.opts.start)&&u.opts.start.call(e,u),Y.fx.timer(Y.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function _(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(le)||[];if(Y.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function M(e,t,n,r){function i(s){var l;return o[s]=!0,Y.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===jt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function F(e,t){var n,r,i=Y.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&Y.extend(!0,e,n),e}function O(e,t,n,r){var i;if(Y.isArray(t))Y.each(t,function(t,i){n||qt.test(e)?r(e,i):O(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==Y.type(t))r(e,t);else for(i in t)O(e+"["+i+"]",t[i],n,r)}function B(){try{return new e.XMLHttpRequest}catch(e){}}function P(e){return Y.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var R=[],W=R.slice,$=R.concat,z=R.push,I=R.indexOf,X={},U=X.toString,V=X.hasOwnProperty,J={},Y=function(e,t){return new Y.fn.init(e,t)},G=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Q=/^-ms-/,K=/-([\da-z])/gi;Y.fn=Y.prototype={rbjquer:"1.11.3",constructor:Y,selector:"",length:0,toArray:function(){return W.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:W.call(this)},pushStack:function(e){var t=Y.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Y.each(this,e,t)},map:function(e){return this.pushStack(Y.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:R.sort,splice:R.splice},Y.extend=Y.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||Y.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(Y.isPlainObject(n)||(t=Y.isArray(n)))?(t?(t=!1,o=e&&Y.isArray(e)?e:[]):o=e&&Y.isPlainObject(e)?e:{},a[r]=Y.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},Y.extend({expando:"rbjQuer"+("1.11.3"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Y.type(e)},isArray:Array.isArray||function(e){return"array"===Y.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!Y.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==Y.type(e)||e.nodeType||Y.isWindow(e))return!1;try{if(e.constructor&&!V.call(e,"constructor")&&!V.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(J.ownLast)for(t in e)return V.call(e,t);for(t in e);return void 0===t||V.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?X[U.call(e)]||"object":typeof e},globalEval:function(t){t&&Y.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(Q,"ms-").replace(K,function(e,t){return t.toUpperCase()})},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i=0,o=e.length,a=n(e);if(r){if(a)for(;i<o&&!1!==t.apply(e[i],r);i++);else for(i in e)if(!1===t.apply(e[i],r))break}else if(a)for(;i<o&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(G,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?Y.merge(r,"string"==typeof e?[e]:e):z.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(I)return I.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,r){var i,o=0,a=e.length,s=[];if(n(e))for(;o<a;o++)null!=(i=t(e[o],o,r))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&s.push(i);return $.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),Y.isFunction(e))return n=W.call(arguments,2),r=function(){return e.apply(t||this,n.concat(W.call(arguments)))},r.guid=e.guid=e.guid||Y.guid++,r},now:function(){return+new Date},support:J}),Y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){X["[object "+t+"]"]=t.toLowerCase()});var Z=/*!
15
  * rbSizzl CSS Selector Engine v2.2.0-pre
16
  * http://sizzlejs.com/
17
  *
21
  *
22
  * Date: 2014-12-16
23
  */
24
+ function(e){function t(e,t,n,r){var i,o,a,s,u,f,d,p,h,m;if((t?t.ownerDocument||t:F)!==A&&S(t),t=t||A,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&j){if(11!==s&&(i=he.exec(e)))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&_(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return J.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&v.getElementsByClassName)return J.apply(n,t.getElementsByClassName(a)),n}if(v.qsa&&(!L||!L.test(e))){if(p=d=M,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(f=w(e),(d=t.getAttribute("id"))?p=d.replace(ge,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=f.length;u--;)f[u]=p+c(f[u]);h=me.test(e)&&l(t.parentNode)||t,m=f.join(",")}if(m)try{return J.apply(n,h.querySelectorAll(m)),n}catch(e){}finally{d||t.removeAttribute("id")}}}return C(e.replace(ie,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>y.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[M]=!0,e}function i(e){var t=A.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)y.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||z)-(~e.sourceIndex||z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=B++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[O,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[M]||(t[M]={}),(s=l[r])&&s[0]===O&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function d(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function h(e,n,i,o,a,s){return o&&!o[M]&&(o=h(o)),a&&!a[M]&&(a=h(a,s)),r(function(r,s,l,u){var c,f,d,h=[],m=[],g=s.length,v=r||function(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}(n||"*",l.nodeType?[l]:l,[]),y=!e||!r&&n?v:p(v,h,e,l,u),b=i?a||(r?e:g||o)?[]:s:y;if(i&&i(y,b,l,u),o)for(c=p(b,m),o(c,[],l,u),f=c.length;f--;)(d=c[f])&&(b[m[f]]=!(y[m[f]]=d));if(r){if(a||e){if(a){for(c=[],f=b.length;f--;)(d=b[f])&&c.push(y[f]=d);a(null,b=[],c,u)}for(f=b.length;f--;)(d=b[f])&&(c=a?G(r,d):h[f])>-1&&(r[c]=!(s[c]=d))}}else b=p(b===s?b.splice(g,b.length):b),a?a(null,s,b,u):J.apply(s,b)})}function m(e){for(var t,n,r,i=e.length,o=y.relative[e[0].type],a=o||y.relative[" "],s=o?1:0,l=f(function(e){return e===t},a,!0),u=f(function(e){return G(t,e)>-1},a,!0),p=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=y.relative[e[s].type])p=[f(d(p),n)];else{if((n=y.filter[e[s].type].apply(null,e[s].matches))[M]){for(r=++s;r<i&&!y.relative[e[r].type];r++);return h(s>1&&d(p),s>1&&c(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ie,"$1"),n,s<r&&m(e.slice(s,r)),r<i&&m(e=e.slice(r)),r<i&&c(e))}p.push(n)}return d(p)}var g,v,y,b,x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M="sizzle"+1*new Date,F=e.document,O=0,B=0,P=n(),R=n(),W=n(),$=function(e,t){return e===t&&(k=!0),0},z=1<<31,I={}.hasOwnProperty,X=[],U=X.pop,V=X.push,J=X.push,Y=X.slice,G=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",Z="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ee=Z.replace("w","w#"),te="\\["+K+"*("+Z+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ee+"))|)"+K+"*\\]",ne=":("+Z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+te+")*)|.*)\\)|)",re=new RegExp(K+"+","g"),ie=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),oe=new RegExp("^"+K+"*,"+K+"*"),ae=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),se=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),le=new RegExp(ne),ue=new RegExp("^"+ee+"$"),ce={ID:new RegExp("^#("+Z+")"),CLASS:new RegExp("^\\.("+Z+")"),TAG:new RegExp("^("+Z.replace("w","w*")+")"),ATTR:new RegExp("^"+te),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,he=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,me=/[+~]/,ge=/'|\\/g,ve=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},be=function(){S()};try{J.apply(X=Y.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(e){J={apply:X.length?function(e,t){V.apply(e,Y.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}v=t.support={},x=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,D=r.documentElement,(n=r.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",be,!1):n.attachEvent&&n.attachEvent("onunload",be)),j=!x(r),v.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),v.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),v.getElementsByClassName=pe.test(r.getElementsByClassName),v.getById=i(function(e){return D.appendChild(e).id=M,!r.getElementsByName||!r.getElementsByName(M).length}),v.getById?(y.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},y.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){return e.getAttribute("id")===t}}):(delete y.find.ID,y.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),y.find.TAG=v.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):v.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},y.find.CLASS=v.getElementsByClassName&&function(e,t){if(j)return t.getElementsByClassName(e)},H=[],L=[],(v.qsa=pe.test(r.querySelectorAll))&&(i(function(e){D.appendChild(e).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+K+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+K+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+M+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||L.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+K+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(v.matchesSelector=pe.test(q=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(e){v.disconnectedMatch=q.call(e,"div"),q.call(e,"[s!='']:x"),H.push("!=",ne)}),L=L.length&&new RegExp(L.join("|")),H=H.length&&new RegExp(H.join("|")),t=pe.test(D.compareDocumentPosition),_=t||pe.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return k=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===F&&_(F,e)?-1:t===r||t.ownerDocument===F&&_(F,t)?1:E?G(E,e)-G(E,t):0:4&n?-1:1)}:function(e,t){if(e===t)return k=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:E?G(E,e)-G(E,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===F?-1:u[i]===F?1:0},r):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&S(e),n=n.replace(se,"='$1']"),v.matchesSelector&&j&&(!H||!H.test(n))&&(!L||!L.test(n)))try{var r=q.call(e,n);if(r||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&S(e),_(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&S(e);var n=y.attrHandle[t.toLowerCase()],r=n&&I.call(y.attrHandle,t.toLowerCase())?n(e,t,!j):void 0;return void 0!==r?r:v.attributes||!j?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(k=!v.detectDuplicates,E=!v.sortStable&&e.slice(0),e.sort($),k){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return E=null,e},b=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=b(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=b(t);return n},(y=t.selectors={cacheLength:50,createPseudo:r,match:ce,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=w(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=P[e+" "];return t||(t=new RegExp("(^|"+K+")"+e+"("+K+"|$)"))&&P(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(re," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(p=(u=(c=g[M]||(g[M]={}))[e]||[])[0]===O&&u[1],d=u[0]===O&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[O,p,d];break}}else if(y&&(u=(t[M]||(t[M]={}))[e])&&u[0]===O)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[M]||(f[M]={}))[e]=[O,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=y.pseudos[e]||y.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[M]?o(n):o.length>1?(i=[e,e,"",n],y.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=G(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=T(e.replace(ie,"$1"));return i[M]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ve,ye),function(t){return(t.textContent||t.innerText||b(t)).indexOf(e)>-1}}),lang:r(function(e){return ue.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,ye).toLowerCase(),function(t){var n;do{if(n=j?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!y.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=y.pseudos.eq;for(g in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[g]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(g);for(g in{submit:!0,reset:!0})y.pseudos[g]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(g);return u.prototype=y.filters=y.pseudos,y.setFilters=new u,w=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=R[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=y.preFilter;s;){r&&!(i=oe.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ae.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ie," ")}),s=s.slice(r.length));for(a in y.filter)!(i=ce[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):R(e,l).slice(0)},T=t.compile=function(e,n){var i,o=[],a=[],s=W[e+" "];if(!s){for(n||(n=w(e)),i=n.length;i--;)(s=m(n[i]))[M]?o.push(s):a.push(s);(s=W(e,function(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,h=0,m="0",g=r&&[],v=[],b=N,x=r||o&&y.find.TAG("*",u),w=O+=null==b?1:Math.random()||.1,T=x.length;for(u&&(N=a!==A&&a);m!==T&&null!=(c=x[m]);m++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(O=w)}i&&((c=!d&&c)&&h--,r&&g.push(c))}if(h+=m,i&&m!==h){for(f=0;d=n[f++];)d(g,v,a,s);if(r){if(h>0)for(;m--;)g[m]||v[m]||(v[m]=U.call(l));v=p(v)}J.apply(l,v),u&&!r&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return u&&(O=w,N=b),g};return i?r(a):a}(a,o))).selector=e}return s},C=t.select=function(e,t,n,r){var i,o,a,s,u,f="function"==typeof e&&e,d=!r&&w(e=f.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&v.getById&&9===t.nodeType&&j&&y.relative[o[1].type]){if(!(t=(y.find.ID(a.matches[0].replace(ve,ye),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=ce.needsContext.test(e)?0:o.length;i--&&(a=o[i],!y.relative[s=a.type]);)if((u=y.find[s])&&(r=u(a.matches[0].replace(ve,ye),me.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return J.apply(n,r),n;break}}return(f||T(e,d))(r,t,!j,n,me.test(e)&&l(t.parentNode)||t),n},v.sortStable=M.split("").sort($).join("")===M,v.detectDuplicates=!!k,S(),v.sortDetached=i(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),v.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Q,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Y.find=Z,Y.expr=Z.selectors,Y.expr[":"]=Y.expr.pseudos,Y.unique=Z.uniqueSort,Y.text=Z.getText,Y.isXMLDoc=Z.isXML,Y.contains=Z.contains;var ee=Y.expr.match.needsContext,te=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ne=/^.[^:#\[\.,]*$/;Y.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Y.find.matchesSelector(r,e)?[r]:[]:Y.find.matches(e,Y.grep(t,function(e){return 1===e.nodeType}))},Y.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(Y(e).filter(function(){for(t=0;t<i;t++)if(Y.contains(r[t],this))return!0}));for(t=0;t<i;t++)Y.find(e,r[t],n);return n=this.pushStack(i>1?Y.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ee.test(e)?Y(e):e||[],!1).length}});var re,ie=e.document,oe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(Y.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:oe.exec(e))||!n[1]&&t)return!t||t.rbjquer?(t||re).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Y?t[0]:t,Y.merge(this,Y.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),te.test(n[1])&&Y.isPlainObject(t))for(n in t)Y.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=ie.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return re.find(e);this.length=1,this[0]=r}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Y.isFunction(e)?void 0!==re.ready?re.ready(e):e(Y):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Y.makeArray(e,this))}).prototype=Y.fn,re=Y(ie);var ae=/^(?:parents|prev(?:Until|All))/,se={children:!0,contents:!0,next:!0,prev:!0};Y.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!Y(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Y.fn.extend({has:function(e){var t,n=Y(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(Y.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ee.test(e)||"string"!=typeof e?Y(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Y.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Y.unique(o):o)},index:function(e){return e?"string"==typeof e?Y.inArray(this[0],Y(e)):Y.inArray(e.rbjquer?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Y.unique(Y.merge(this.get(),Y(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Y.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Y.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Y.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return Y.dir(e,"nextSibling")},prevAll:function(e){return Y.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Y.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Y.dir(e,"previousSibling",n)},siblings:function(e){return Y.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Y.sibling(e.firstChild)},contents:function(e){return Y.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Y.merge([],e.childNodes)}},function(e,t){Y.fn[e]=function(n,r){var i=Y.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Y.filter(r,i)),this.length>1&&(se[e]||(i=Y.unique(i)),ae.test(e)&&(i=i.reverse())),this.pushStack(i)}});var le=/\S+/g,ue={};Y.Callbacks=function(e){var t,n,r,i,o,a,s=[],l=!(e="string"==typeof e?ue[e]||function(e){var t=ue[e]={};return Y.each(e.match(le)||[],function(e,n){t[n]=!0}),t}(e):Y.extend({},e)).once&&[],u=function(f){for(n=e.memory&&f,r=!0,o=a||0,a=0,i=s.length,t=!0;s&&o<i;o++)if(!1===s[o].apply(f[0],f[1])&&e.stopOnFalse){n=!1;break}t=!1,s&&(l?l.length&&u(l.shift()):n?s=[]:c.disable())},c={add:function(){if(s){var r=s.length;!function t(n){Y.each(n,function(n,r){var i=Y.type(r);"function"===i?e.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),t?i=s.length:n&&(a=r,u(n))}return this},remove:function(){return s&&Y.each(arguments,function(e,n){for(var r;(r=Y.inArray(n,s,r))>-1;)s.splice(r,1),t&&(r<=i&&i--,r<=o&&o--)}),this},has:function(e){return e?Y.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=l=n=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,n||c.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!s||r&&!l||(n=[e,(n=n||[]).slice?n.slice():n],t?l.push(n):u(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},Y.extend({Deferred:function(e){var t=[["resolve","done",Y.Callbacks("once memory"),"resolved"],["reject","fail",Y.Callbacks("once memory"),"rejected"],["notify","progress",Y.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Y.Deferred(function(n){Y.each(t,function(t,o){var a=Y.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&Y.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Y.extend(e,r):r}},i={};return r.pipe=r.then,Y.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=W.call(arguments),a=o.length,s=1!==a||e&&Y.isFunction(e.promise)?a:0,l=1===s?e:Y.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?W.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&Y.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}});var ce;Y.fn.ready=function(e){return Y.ready.promise().done(e),this},Y.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Y.readyWait++:Y.ready(!0)},ready:function(e){if(!0===e?!--Y.readyWait:!Y.isReady){if(!ie.body)return setTimeout(Y.ready);Y.isReady=!0,!0!==e&&--Y.readyWait>0||(ce.resolveWith(ie,[Y]),Y.fn.triggerHandler&&(Y(ie).triggerHandler("ready"),Y(ie).off("ready")))}}}),Y.ready.promise=function(t){if(!ce)if(ce=Y.Deferred(),"complete"===ie.readyState)setTimeout(Y.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1);else{ie.attachEvent("onreadystatechange",a),e.attachEvent("onload",a);var n=!1;try{n=null==e.frameElement&&ie.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!Y.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}o(),Y.ready()}}()}return ce.promise(t)};var fe,de="undefined";for(fe in Y(J))break;J.ownLast="0"!==fe,J.inlineBlockNeedsLayout=!1,Y(function(){var e,t,n,r;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(r=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==de&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",J.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=ie.createElement("div");if(null==J.deleteExpando){J.deleteExpando=!0;try{delete e.test}catch(e){J.deleteExpando=!1}}e=null}(),Y.acceptData=function(e){var t=Y.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,he=/([A-Z])/g;Y.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?Y.cache[e[Y.expando]]:e[Y.expando])&&!l(e)},data:function(e,t,n){return u(e,t,n)},removeData:function(e,t){return c(e,t)},_data:function(e,t,n){return u(e,t,n,!0)},_removeData:function(e,t){return c(e,t,!0)}}),Y.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Y.data(o),1===o.nodeType&&!Y._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&s(o,r=Y.camelCase(r.slice(5)),i[r]);Y._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Y.data(this,e)}):arguments.length>1?this.each(function(){Y.data(this,e,t)}):o?s(o,e,Y.data(o,e)):void 0},removeData:function(e){return this.each(function(){Y.removeData(this,e)})}}),Y.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y._data(e,t),n&&(!r||Y.isArray(n)?r=Y._data(e,t,Y.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Y.queue(e,t),r=n.length,i=n.shift(),o=Y._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){Y.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y._data(e,n)||Y._data(e,n,{empty:Y.Callbacks("once memory").add(function(){Y._removeData(e,t+"queue"),Y._removeData(e,n)})})}}),Y.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Y.queue(this[0],e):void 0===t?this:this.each(function(){var n=Y.queue(this,e,t);Y._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Y.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Y.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Y.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ge=["Top","Right","Bottom","Left"],ve=function(e,t){return e=t||e,"none"===Y.css(e,"display")||!Y.contains(e.ownerDocument,e)},ye=Y.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===Y.type(n)){i=!0;for(s in n)Y.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,Y.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(Y(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},be=/^(?:checkbox|radio)$/i;!function(){var e=ie.createElement("input"),t=ie.createElement("div"),n=ie.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",J.leadingWhitespace=3===t.firstChild.nodeType,J.tbody=!t.getElementsByTagName("tbody").length,J.htmlSerialize=!!t.getElementsByTagName("link").length,J.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),J.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",J.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",J.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,J.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){J.noCloneEvent=!1}),t.cloneNode(!0).click()),null==J.deleteExpando){J.deleteExpando=!0;try{delete t.test}catch(e){J.deleteExpando=!1}}}(),function(){var t,n,r=ie.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(J[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),J[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var xe=/^(?:input|select|textarea)$/i,we=/^key/,Te=/^(?:mouse|pointer|contextmenu)|click/,Ce=/^(?:focusinfocus|focusoutblur)$/,Ne=/^([^.]*)(?:\.(.+)|)$/;Y.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=Y._data(e);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=Y.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return typeof Y===de||e&&Y.event.triggered===e.type?void 0:Y.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(le)||[""]).length;s--;)p=m=(o=Ne.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=Y.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=Y.event.special[p]||{},f=Y.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Y.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,h,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),Y.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=Y.hasData(e)&&Y._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(le)||[""]).length;u--;)if(s=Ne.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=Y.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||Y.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)Y.event.remove(e,p+t[u],n,r,!0);Y.isEmptyObject(c)&&(delete g.handle,Y._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||ie],p=V.call(t,"type")?t.type:t,h=V.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||ie,3!==r.nodeType&&8!==r.nodeType&&!Ce.test(p+Y.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[Y.expando]?t:new Y.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Y.makeArray(n,[t]),u=Y.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!Y.isWindow(r)){for(l=u.delegateType||p,Ce.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||ie)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,(o=(Y._data(s,"events")||{})[t.type]&&Y._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&Y.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&Y.acceptData(r)&&a&&r[p]&&!Y.isWindow(r)){(c=r[a])&&(r[a]=null),Y.event.triggered=p;try{r[p]()}catch(e){}Y.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=Y.event.fix(e);var t,n,r,i,o,a=[],s=W.call(arguments),l=(Y._data(this,"events")||{})[e.type]||[],u=Y.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=Y.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((Y.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?Y(n,this).index(l)>=0:Y.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[Y.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Te.test(i)?this.mouseHooks:we.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new Y.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||ie).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===p()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(Y.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return Y.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=Y.extend(new Y.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?Y.event.trigger(i,null,t):Y.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},Y.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===de&&(e[r]=null),e.detachEvent(r,n))},Y.Event=function(e,t){if(!(this instanceof Y.Event))return new Y.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?f:d):this.type=e,t&&Y.extend(this,t),this.timeStamp=e&&e.timeStamp||Y.now(),this[Y.expando]=!0},Y.Event.prototype={isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Y.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Y.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||Y.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),J.submitBubbles||(Y.event.special.submit={setup:function(){if(Y.nodeName(this,"form"))return!1;Y.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=Y.nodeName(t,"input")||Y.nodeName(t,"button")?t.form:void 0;n&&!Y._data(n,"submitBubbles")&&(Y.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),Y._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&Y.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(Y.nodeName(this,"form"))return!1;Y.event.remove(this,"._submit")}}),J.changeBubbles||(Y.event.special.change={setup:function(){if(xe.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(Y.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),Y.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),Y.event.simulate("change",this,e,!0)})),!1;Y.event.add(this,"beforeactivate._change",function(e){var t=e.target;xe.test(t.nodeName)&&!Y._data(t,"changeBubbles")&&(Y.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||Y.event.simulate("change",this.parentNode,e,!0)}),Y._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return Y.event.remove(this,"._change"),!xe.test(this.nodeName)}}),J.focusinBubbles||Y.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Y.event.simulate(t,e.target,Y.event.fix(e),!0)};Y.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y._data(r,t);i||r.addEventListener(e,n,!0),Y._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y._data(r,t)-1;i?Y._data(r,t,i):(r.removeEventListener(e,n,!0),Y._removeData(r,t))}}}),Y.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=d;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return Y().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=Y.guid++)),this.each(function(){Y.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Y(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=d),this.each(function(){Y.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Y.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Y.event.trigger(e,t,n,!0)}});var Ee="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ke=/ rbjQuer\d+="(?:null|\d+)"/g,Se=new RegExp("<(?:"+Ee+")[\\s/>]","i"),Ae=/^\s+/,De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,je=/<([\w:]+)/,Le=/<tbody/i,He=/<|&#?\w+;/,qe=/<(?:script|style|link)/i,_e=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^$|\/(?:java|ecma)script/i,Fe=/^true\/(.*)/,Oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:J.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Pe=h(ie).appendChild(ie.createElement("div"));Be.optgroup=Be.option,Be.tbody=Be.tfoot=Be.colgroup=Be.caption=Be.thead,Be.th=Be.td,Y.extend({clone:function(e,t,n){var r,i,o,a,s,l=Y.contains(e.ownerDocument,e);if(J.html5Clone||Y.isXMLDoc(e)||!Se.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Pe.innerHTML=e.outerHTML,Pe.removeChild(o=Pe.firstChild)),!(J.noCloneEvent&&J.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Y.isXMLDoc(e)))for(r=m(o),s=m(e),a=0;null!=(i=s[a]);++a)r[a]&&function(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!J.noCloneEvent&&t[Y.expando]){i=Y._data(t);for(r in i.events)Y.removeEvent(t,r,i.handle);t.removeAttribute(Y.expando)}"script"===n&&t.text!==e.text?(v(t).text=e.text,y(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),J.html5Clone&&e.innerHTML&&!Y.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(i,r[a]);if(t)if(n)for(s=s||m(e),r=r||m(o),a=0;null!=(i=s[a]);a++)x(i,r[a]);else x(e,o);return(r=m(o,"script")).length>0&&b(r,!l&&m(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=h(t),p=[],g=0;g<f;g++)if((o=e[g])||0===o)if("object"===Y.type(o))Y.merge(p,o.nodeType?[o]:o);else if(He.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(je.exec(o)||["",""])[1].toLowerCase(),c=Be[l]||Be._default,s.innerHTML=c[1]+o.replace(De,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!J.leadingWhitespace&&Ae.test(o)&&p.push(t.createTextNode(Ae.exec(o)[0])),!J.tbody)for(i=(o="table"!==l||Le.test(o)?"<table>"!==c[1]||Le.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)Y.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(Y.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),J.appendChecked||Y.grep(m(p,"input"),function(e){be.test(e.type)&&(e.defaultChecked=e.checked)}),g=0;o=p[g++];)if((!r||-1===Y.inArray(o,r))&&(a=Y.contains(o.ownerDocument,o),s=m(d.appendChild(o),"script"),a&&b(s),n))for(i=0;o=s[i++];)Me.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=Y.expando,l=Y.cache,u=J.deleteExpando,c=Y.event.special;null!=(n=e[a]);a++)if((t||Y.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?Y.event.remove(n,r):Y.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==de?n.removeAttribute(s):n[s]=null,R.push(i))}}}),Y.fn.extend({text:function(e){return ye(this,function(e){return void 0===e?Y.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){g(this,e).appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=g(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Y.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||Y.cleanData(m(n)),n.parentNode&&(t&&Y.contains(n.ownerDocument,n)&&b(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&Y.cleanData(m(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&Y.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Y.clone(this,e,t)})},html:function(e){return ye(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ke,""):void 0;if("string"==typeof e&&!qe.test(e)&&(J.htmlSerialize||!Se.test(e))&&(J.leadingWhitespace||!Ae.test(e))&&!Be[(je.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(De,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(Y.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Y.cleanData(m(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=$.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,f=u-1,d=e[0],p=Y.isFunction(d);if(p||u>1&&"string"==typeof d&&!J.checkClone&&_e.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=Y.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=(o=Y.map(m(s,"script"),v)).length;l<u;l++)r=s,l!==f&&(r=Y.clone(r,!0,!0),i&&Y.merge(o,m(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,Y.map(o,y),l=0;l<i;l++)r=o[l],Me.test(r.type||"")&&!Y._data(r,"globalEval")&&Y.contains(a,r)&&(r.src?Y._evalUrl&&Y._evalUrl(r.src):Y.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Oe,"")));s=n=null}return this}}),Y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Y.fn[e]=function(e){for(var n,r=0,i=[],o=Y(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),Y(o[r])[t](n),z.apply(i,n.get());return this.pushStack(i)}});var Re,We={};!function(){var e;J.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return(n=ie.getElementsByTagName("body")[0])&&n.style?(t=ie.createElement("div"),r=ie.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==de&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(ie.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var $e,ze,Ie=/^margin/,Xe=new RegExp("^("+me+")(?!px)[a-z%]+$","i"),Ue=/^(top|right|bottom|left)$/;e.getComputedStyle?($e=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},ze=function(e,t,n){var r,i,o,a,s=e.style;return n=n||$e(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||Y.contains(e.ownerDocument,e)||(a=Y.style(e,t)),Xe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):ie.documentElement.currentStyle&&($e=function(e){return e.currentStyle},ze=function(e,t,n){var r,i,o,a,s=e.style;return n=n||$e(e),null==(a=n?n[t]:void 0)&&s&&s[t]&&(a=s[t]),Xe.test(a)&&!Ue.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(r=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(i=t.appendChild(ie.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;(n=ie.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(r=(i=n.getElementsByTagName("a")[0])&&i.style)&&(r.cssText="float:left;opacity:.5",J.opacity="0.5"===r.opacity,J.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",J.clearCloneStyle="content-box"===n.style.backgroundClip,J.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,Y.extend(J,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),Y.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var Ve=/alpha\([^)]*\)/i,Je=/opacity\s*=\s*([^)]*)/,Ye=/^(none|table(?!-c[ea]).+)/,Ge=new RegExp("^("+me+")(.*)$","i"),Qe=new RegExp("^([+-])=("+me+")","i"),Ke={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"},et=["Webkit","O","Moz","ms"];Y.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:J.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=Y.camelCase(t),l=e.style;if(t=Y.cssProps[s]||(Y.cssProps[s]=N(l,s)),a=Y.cssHooks[t]||Y.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"==(o=typeof n)&&(i=Qe.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Y.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||Y.cssNumber[s]||(n+="px"),J.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=Y.camelCase(t);return t=Y.cssProps[s]||(Y.cssProps[s]=N(e.style,s)),(a=Y.cssHooks[t]||Y.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=ze(e,t,r)),"normal"===o&&t in Ze&&(o=Ze[t]),""===n||n?(i=parseFloat(o),!0===n||Y.isNumeric(i)?i||0:o):o}}),Y.each(["height","width"],function(e,t){Y.cssHooks[t]={get:function(e,n,r){if(n)return Ye.test(Y.css(e,"display"))&&0===e.offsetWidth?Y.swap(e,Ke,function(){return A(e,t,r)}):A(e,t,r)},set:function(e,n,r){var i=r&&$e(e);return k(0,n,r?S(e,t,r,J.boxSizing&&"border-box"===Y.css(e,"boxSizing",!1,i),i):0)}}}),J.opacity||(Y.cssHooks.opacity={get:function(e,t){return Je.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=Y.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===Y.trim(o.replace(Ve,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Ve.test(o)?o.replace(Ve,i):o+" "+i)}}),Y.cssHooks.marginRight=C(J.reliableMarginRight,function(e,t){if(t)return Y.swap(e,{display:"inline-block"},ze,[e,"marginRight"])}),Y.each({margin:"",padding:"",border:"Width"},function(e,t){Y.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ge[r]+t]=o[r]||o[r-2]||o[0];return i}},Ie.test(e)||(Y.cssHooks[e+t].set=k)}),Y.fn.extend({css:function(e,t){return ye(this,function(e,t,n){var r,i,o={},a=0;if(Y.isArray(t)){for(r=$e(e),i=t.length;a<i;a++)o[t[a]]=Y.css(e,t[a],!1,r);return o}return void 0!==n?Y.style(e,t,n):Y.css(e,t)},e,t,arguments.length>1)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ve(this)?Y(this).show():Y(this).hide()})}}),Y.Tween=D,(D.prototype={constructor:D,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Y.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.options.duration?this.pos=t=Y.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}}).init.prototype=D.prototype,(D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Y.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){Y.fx.step[e.prop]?Y.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Y.cssProps[e.prop]]||Y.cssHooks[e.prop])?Y.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Y.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Y.fx=D.prototype.init,Y.fx.step={};var tt,nt,rt=/^(?:toggle|show|hide)$/,it=new RegExp("^(?:([+-])=|)("+me+")([a-z%]*)$","i"),ot=/queueHooks$/,at=[function(e,t,n){var r,i,o,a,s,l,u,c=this,f={},d=e.style,p=e.nodeType&&ve(e),h=Y._data(e,"fxshow");n.queue||(null==(s=Y._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,Y.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=Y.css(e,"display"))?Y._data(e,"olddisplay")||T(e.nodeName):u)&&"none"===Y.css(e,"float")&&(J.inlineBlockNeedsLayout&&"inline"!==T(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",J.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],rt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||Y.style(e,r)}else u=void 0;if(Y.isEmptyObject(f))"inline"===("none"===u?T(e.nodeName):u)&&(d.display=u);else{h?"hidden"in h&&(p=h.hidden):h=Y._data(e,"fxshow",{}),o&&(h.hidden=!p),p?Y(e).show():c.done(function(){Y(e).hide()}),c.done(function(){var t;Y._removeData(e,"fxshow");for(t in f)Y.style(e,t,f[t])});for(r in f)a=H(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}],st={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=it.exec(t),o=i&&i[3]||(Y.cssNumber[e]?"":"px"),a=(Y.cssNumber[e]||"px"!==o&&+r)&&it.exec(Y.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",Y.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};Y.Animation=Y.extend(q,{tweener:function(e,t){Y.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],st[n]=st[n]||[],st[n].unshift(t)},prefilter:function(e,t){t?at.unshift(e):at.push(e)}}),Y.speed=function(e,t,n){var r=e&&"object"==typeof e?Y.extend({},e):{complete:n||!n&&t||Y.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Y.isFunction(t)&&t};return r.duration=Y.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Y.fx.speeds?Y.fx.speeds[r.duration]:Y.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){Y.isFunction(r.old)&&r.old.call(this),r.queue&&Y.dequeue(this,r.queue)},r},Y.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Y.isEmptyObject(e),o=Y.speed(t,n,r),a=function(){var t=q(this,Y.extend({},e),o);(i||Y._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Y.timers,a=Y._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ot.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||Y.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Y.timers,a=r?r.length:0;for(n.finish=!0,Y.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),Y.each(["toggle","show","hide"],function(e,t){var n=Y.fn[t];Y.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(L(t,!0),e,r,i)}}),Y.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Y.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Y.timers=[],Y.fx.tick=function(){var e,t=Y.timers,n=0;for(tt=Y.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||Y.fx.stop(),tt=void 0},Y.fx.timer=function(e){Y.timers.push(e),e()?Y.fx.start():Y.timers.pop()},Y.fx.interval=13,Y.fx.start=function(){nt||(nt=setInterval(Y.fx.tick,Y.fx.interval))},Y.fx.stop=function(){clearInterval(nt),nt=null},Y.fx.speeds={slow:600,fast:200,_default:400},Y.fn.delay=function(e,t){return e=Y.fx?Y.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;(t=ie.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],i=(n=ie.createElement("select")).appendChild(ie.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",J.getSetAttribute="t"!==t.className,J.style=/top/.test(r.getAttribute("style")),J.hrefNormalized="/a"===r.getAttribute("href"),J.checkOn=!!e.value,J.optSelected=i.selected,J.enctype=!!ie.createElement("form").enctype,n.disabled=!0,J.optDisabled=!i.disabled,(e=ie.createElement("input")).setAttribute("value",""),J.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),J.radioValue="t"===e.value}();var lt=/\r/g;Y.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=Y.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,Y(this).val()):e)?i="":"number"==typeof i?i+="":Y.isArray(i)&&(i=Y.map(i,function(e){return null==e?"":e+""})),(t=Y.valHooks[this.type]||Y.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=Y.valHooks[i.type]||Y.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(lt,""):null==n?"":n}}}),Y.extend({valHooks:{option:{get:function(e){var t=Y.find.attr(e,"value");return null!=t?t:Y.trim(Y.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(J.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Y.nodeName(n.parentNode,"optgroup"))){if(t=Y(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=Y.makeArray(t),a=i.length;a--;)if(r=i[a],Y.inArray(Y.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),Y.each(["radio","checkbox"],function(){Y.valHooks[this]={set:function(e,t){if(Y.isArray(t))return e.checked=Y.inArray(Y(e).val(),t)>=0}},J.checkOn||(Y.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ut,ct,ft=Y.expr.attrHandle,dt=/^(?:checked|selected)$/i,pt=J.getSetAttribute,ht=J.input;Y.fn.extend({attr:function(e,t){return ye(this,Y.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Y.removeAttr(this,e)})}}),Y.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===de?Y.prop(e,t,n):(1===o&&Y.isXMLDoc(e)||(t=t.toLowerCase(),r=Y.attrHooks[t]||(Y.expr.match.bool.test(t)?ct:ut)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=Y.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void Y.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(le);if(o&&1===e.nodeType)for(;n=o[i++];)r=Y.propFix[n]||n,Y.expr.match.bool.test(n)?ht&&pt||!dt.test(n)?e[r]=!1:e[Y.camelCase("default-"+n)]=e[r]=!1:Y.attr(e,n,""),e.removeAttribute(pt?n:r)},attrHooks:{type:{set:function(e,t){if(!J.radioValue&&"radio"===t&&Y.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ct={set:function(e,t,n){return!1===t?Y.removeAttr(e,n):ht&&pt||!dt.test(n)?e.setAttribute(!pt&&Y.propFix[n]||n,n):e[Y.camelCase("default-"+n)]=e[n]=!0,n}},Y.each(Y.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||Y.find.attr;ft[t]=ht&&pt||!dt.test(t)?function(e,t,r){var i,o;return r||(o=ft[t],ft[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,ft[t]=o),i}:function(e,t,n){if(!n)return e[Y.camelCase("default-"+t)]?t.toLowerCase():null}}),ht&&pt||(Y.attrHooks.value={set:function(e,t,n){if(!Y.nodeName(e,"input"))return ut&&ut.set(e,t,n);e.defaultValue=t}}),pt||(ut={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},ft.id=ft.name=ft.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},Y.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:ut.set},Y.attrHooks.contenteditable={set:function(e,t,n){ut.set(e,""!==t&&t,n)}},Y.each(["width","height"],function(e,t){Y.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),J.style||(Y.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var mt=/^(?:input|select|textarea|button|object)$/i,gt=/^(?:a|area)$/i;Y.fn.extend({prop:function(e,t){return ye(this,Y.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Y.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),Y.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!Y.isXMLDoc(e))&&(t=Y.propFix[t]||t,i=Y.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Y.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}}}),J.hrefNormalized||Y.each(["href","src"],function(e,t){Y.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),J.optSelected||(Y.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),Y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Y.propFix[this.toLowerCase()]=this}),J.enctype||(Y.propFix.enctype="encoding");var vt=/[\t\r\n\f]/g;Y.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(Y.isFunction(e))return this.each(function(t){Y(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(le)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(vt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=Y.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(Y.isFunction(e))return this.each(function(t){Y(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(le)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(vt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?Y.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):Y.isFunction(e)?this.each(function(n){Y(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=Y(this),o=e.match(le)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==de&&"boolean"!==n||(this.className&&Y._data(this,"__className__",this.className),this.className=this.className||!1===e?"":Y._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(vt," ").indexOf(t)>=0)return!0;return!1}}),Y.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Y.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Y.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var yt=Y.now(),bt=/\?/,xt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;Y.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=Y.trim(t+"");return i&&!Y.trim(i.replace(xt,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():Y.error("Invalid JSON: "+t)},Y.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||Y.error("Invalid XML: "+t),n};var wt,Tt,Ct=/#.*$/,Nt=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,kt=/^(?:GET|HEAD)$/,St=/^\/\//,At=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Dt={},jt={},Lt="*/".concat("*");try{Tt=location.href}catch(e){(Tt=ie.createElement("a")).href="",Tt=Tt.href}wt=At.exec(Tt.toLowerCase())||[],Y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Y.parseJSON,"text xml":Y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?F(F(e,Y.ajaxSettings),t):F(Y.ajaxSettings,e)},ajaxPrefilter:_(Dt),ajaxTransport:_(jt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(y=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,w,n)),y=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,y,w,i),i?(f.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(Y.lastModified[o]=x),(x=w.getResponseHeader("etag"))&&(Y.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,i=!(v=y.error))):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:v]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--Y.active||Y.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=Y.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.rbjquer)?Y(d):Y.event,h=Y.Deferred(),m=Y.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Et.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||Tt)+"").replace(Ct,"").replace(St,wt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=Y.trim(f.dataType||"*").toLowerCase().match(le)||[""],null==f.crossDomain&&(r=At.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===wt[1]&&r[2]===wt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(wt[3]||("http:"===wt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Y.param(f.data,f.traditional)),M(Dt,f,t,w),2===b)return w;(l=Y.event&&f.global)&&0==Y.active++&&Y.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!kt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(bt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Nt.test(o)?o.replace(Nt,"$1_="+yt++):o+(bt.test(o)?"&":"?")+"_="+yt++)),f.ifModified&&(Y.lastModified[o]&&w.setRequestHeader("If-Modified-Since",Y.lastModified[o]),Y.etag[o]&&w.setRequestHeader("If-None-Match",Y.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Lt+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,w,f)||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=M(jt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(v,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return Y.get(e,t,n,"json")},getScript:function(e,t){return Y.get(e,void 0,t,"script")}}),Y.each(["get","post"],function(e,t){Y[t]=function(e,n,r,i){return Y.isFunction(n)&&(i=i||r,r=n,n=void 0),Y.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),Y._evalUrl=function(e){return Y.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},Y.fn.extend({wrapAll:function(e){if(Y.isFunction(e))return this.each(function(t){Y(this).wrapAll(e.call(this,t))});if(this[0]){var t=Y(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return Y.isFunction(e)?this.each(function(t){Y(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Y(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Y.isFunction(e);return this.each(function(n){Y(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Y.nodeName(this,"body")||Y(this).replaceWith(this.childNodes)}).end()}}),Y.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!J.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||Y.css(e,"display"))},Y.expr.filters.visible=function(e){return!Y.expr.filters.hidden(e)};var Ht=/%20/g,qt=/\[\]$/,_t=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;Y.param=function(e,t){var n,r=[],i=function(e,t){t=Y.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Y.ajaxSettings&&Y.ajaxSettings.traditional),Y.isArray(e)||e.rbjquer&&!Y.isPlainObject(e))Y.each(e,function(){i(this.name,this.value)});else for(n in e)O(n,e[n],t,i);return r.join("&").replace(Ht,"+")},Y.fn.extend({serialize:function(){return Y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Y.prop(this,"elements");return e?Y.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Y(this).is(":disabled")&&Ft.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!be.test(e))}).map(function(e,t){var n=Y(this).val();return null==n?null:Y.isArray(n)?Y.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}}),Y.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&B()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:B;var Ot=0,Bt={},Pt=Y.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Bt)Bt[e](void 0,!0)}),J.cors=!!Pt&&"withCredentials"in Pt,(Pt=J.ajax=!!Pt)&&Y.ajaxTransport(function(e){if(!e.crossDomain||J.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Ot;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Bt[a],t=void 0,o.onreadystatechange=Y.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Bt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),Y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Y.globalEval(e),e}}}),Y.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),Y.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=ie.head||Y("head")[0]||ie.documentElement;return{send:function(r,i){(t=ie.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Rt=[],Wt=/(=)\?(?=&|$)|\?\?/;Y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rt.pop()||Y.expando+"_"+yt++;return this[e]=!0,e}}),Y.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=Y.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Wt,"$1"+i):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Y.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Rt.push(i)),a&&Y.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),Y.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var r=te.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=Y.buildFragment([e],t,i),i&&i.length&&Y(i).remove(),Y.merge([],r.childNodes))};var $t=Y.fn.load;Y.fn.load=function(e,t,n){if("string"!=typeof e&&$t)return $t.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=Y.trim(e.slice(s,e.length)),e=e.slice(0,s)),Y.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&Y.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?Y("<div>").append(Y.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},Y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Y.fn[t]=function(e){return this.on(t,e)}}),Y.expr.filters.animated=function(e){return Y.grep(Y.timers,function(t){return e===t.elem}).length};var zt=e.document.documentElement;Y.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=Y.css(e,"position"),c=Y(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=Y.css(e,"top"),l=Y.css(e,"left"),("absolute"===u||"fixed"===u)&&Y.inArray("auto",[o,l])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),Y.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},Y.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Y.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,Y.contains(t,i)?(typeof i.getBoundingClientRect!==de&&(r=i.getBoundingClientRect()),n=P(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===Y.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Y.nodeName(e[0],"html")||(n=e.offset()),n.top+=Y.css(e[0],"borderTopWidth",!0),n.left+=Y.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-Y.css(r,"marginTop",!0),left:t.left-n.left-Y.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||zt;e&&!Y.nodeName(e,"html")&&"static"===Y.css(e,"position");)e=e.offsetParent;return e||zt})}}),Y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);Y.fn[e]=function(r){return ye(this,function(e,r,i){var o=P(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?Y(o).scrollLeft():i,n?i:Y(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),Y.each(["top","left"],function(e,t){Y.cssHooks[t]=C(J.pixelPosition,function(e,n){if(n)return n=ze(e,t),Xe.test(n)?Y(e).position()[t]+"px":n})}),Y.each({Height:"height",Width:"width"},function(e,t){Y.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Y.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return ye(this,function(t,n,r){var i;return Y.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?Y.css(t,n,a):Y.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),Y.fn.size=function(){return this.length},Y.fn.andSelf=Y.fn.addBack,"function"==typeof define&&define.amd&&define("rbjquer",[],function(){return Y});var It=e.rbjQuer,Xt=e.$;return Y.noConflict=function(t){return e.$===Y&&(e.$=Xt),t&&e.rbjQuer===Y&&(e.rbjQuer=It),Y},typeof t===de&&(e.rbjQuer=e.$=Y),Y});
25
  /*!
26
  * eventie v1.0.5
27
  * event binding helper
83
  /*! Magnific Popup - v1.0.0 - 2015-01-03
84
  * http://dimsemenov.com/plugins/magnific-popup/
85
  * Copyright (c) 2015 Dmitry Semenov; */
86
+ !function(e){"function"==typeof define&&define.amd?define(["rbjquer"],e):e("object"==typeof exports?require("rbjquer"):window.rbjQuer||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.rbjQuer,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,h,v,C=function(){v&&(h.after(v.addClass(g)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){C()})},getInline:function(n,i){if(C(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(h||(g=o.hiddenClass,h=d(g),g="mfp-"+g),v=a.after(h).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var y,w=function(){y&&e(document.body).removeClass(y)},b=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),y=t.st.ajax.cursor,p("Close.ajax",b),p("BeforeChange.ajax",b)},getAjax:function(n){y&&e(document.body).addClass(y),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){w(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var I;e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,I&&clearInterval(I),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){I&&clearInterval(I),I=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(I),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""}(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(I&&clearInterval(I),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var x;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var k=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?k():"iframe"===n&&k(!0))}),p("Close.iframe",function(){k()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var T=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},E=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=E(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?E(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=T(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=T(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=T(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
87
  /*
88
  * @fileOverview TouchSwipe - jQuery Plugin
89
  * @version 1.6.15
97
  * Dual licensed under the MIT or GPL Version 2 licenses.
98
  *
99
  */
100
+ !function(e){"function"==typeof define&&define.amd&&define.amd.rbjQuer?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):rbjQuer)}(function(e){"use strict";var n="left",t="right",r="up",i="down",l="in",o="out",a="none",u="auto",s="swipe",c="pinch",p="tap",h="doubletap",f="longtap",d="horizontal",g="vertical",w="all",v=10,T="start",b="move",E="end",m="cancel",x="ontouchstart"in window,y=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!x,S=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!x,O="TouchSwipe";e.fn.swipe=function(M){var D=e(this),P=D.data(O);if(P&&"string"==typeof M){if(P[M])return P[M].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+M+" does not exist on rbjQuer.swipe")}else if(P&&"object"==typeof M)P.option.apply(this,arguments);else if(!(P||"object"!=typeof M&&M))return function(M){return!M||void 0!==M.allowPageScroll||void 0===M.swipe&&void 0===M.swipeStatus||(M.allowPageScroll=a),void 0!==M.click&&void 0===M.tap&&(M.tap=M.click),M||(M={}),M=e.extend({},e.fn.swipe.defaults,M),this.each(function(){var D=e(this),P=D.data(O);P||(P=new function(M,D){function P(l){if(!0!==xe.data(O+"_intouch")&&!(e(l.target).closest(D.excludedElements,xe).length>0)){var o,a=l.originalEvent?l.originalEvent:l,u=a.touches,s=u?u[0]:a;return ye=T,u?Se=u.length:!1!==D.preventDefaultEvents&&l.preventDefault(),he=0,fe=null,de=null,Ee=null,ge=0,we=0,ve=0,Te=1,be=0,me=function(){var e={};return e[n]=ne(n),e[t]=ne(t),e[r]=ne(r),e[i]=ne(i),e}(),Z(),K(0,s),!u||Se===D.fingers||D.fingers===w||C()?(Me=le(),2==Se&&(K(1,u[1]),we=ve=re(Oe[0].start,Oe[1].start)),(D.swipeStatus||D.pinchStatus)&&(o=j(a,ye))):o=!1,!1===o?(ye=m,j(a,ye),o):(D.hold&&(Ae=setTimeout(e.proxy(function(){xe.trigger("hold",[a.target]),D.hold&&(o=D.hold.call(xe,a,a.target))},this),D.longTapThreshold)),J(!0),null)}}function L(s){var c=s.originalEvent?s.originalEvent:s;if(ye!==E&&ye!==m&&!B()){var p,h=c.touches,f=$(h?h[0]:c);if(De=le(),h&&(Se=h.length),D.hold&&clearTimeout(Ae),ye=b,2==Se&&(0==we?(K(1,h[1]),we=ve=re(Oe[0].start,Oe[1].start)):($(h[1]),ve=re(Oe[0].end,Oe[1].end),Oe[0].end,Oe[1].end,Ee=Te<1?o:l),Te=(ve/we*1).toFixed(2),be=Math.abs(we-ve)),Se===D.fingers||D.fingers===w||!h||C()){if(fe=ie(f.start,f.end),de=ie(f.last,f.end),function(e,l){if(!1!==D.preventDefaultEvents)if(D.allowPageScroll===a)e.preventDefault();else{var o=D.allowPageScroll===u;switch(l){case n:(D.swipeLeft&&o||!o&&D.allowPageScroll!=d)&&e.preventDefault();break;case t:(D.swipeRight&&o||!o&&D.allowPageScroll!=d)&&e.preventDefault();break;case r:(D.swipeUp&&o||!o&&D.allowPageScroll!=g)&&e.preventDefault();break;case i:(D.swipeDown&&o||!o&&D.allowPageScroll!=g)&&e.preventDefault()}}}(s,de),he=function(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}(f.start,f.end),ge=te(),function(e,n){n=Math.max(n,ee(e)),me[e].distance=n}(fe,he),p=j(c,ye),!D.triggerOnTouchEnd||D.triggerOnTouchLeave){var v=!0;if(D.triggerOnTouchLeave){var T=function(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}(this);v=function(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}(f.end,T)}!D.triggerOnTouchEnd&&v?ye=U(b):D.triggerOnTouchLeave&&!v&&(ye=U(E)),ye!=m&&ye!=E||j(c,ye)}}else j(c,ye=m);!1===p&&j(c,ye=m)}}function R(e){var n=e.originalEvent?e.originalEvent:e,t=n.touches;if(t){if(t.length&&!B())return function(e){Pe=le(),Le=e.touches.length+1}(n),!0;if(t.length&&B())return!0}return B()&&(Se=Le),De=le(),ge=te(),_()||!H()?j(n,ye=m):D.triggerOnTouchEnd||0==D.triggerOnTouchEnd&&ye===b?(!1!==D.preventDefaultEvents&&e.preventDefault(),j(n,ye=E)):!D.triggerOnTouchEnd&&W()?N(n,ye=E,p):ye===b&&j(n,ye=m),J(!1),null}function k(){Se=0,De=0,Me=0,we=0,ve=0,Te=1,Z(),J(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;D.triggerOnTouchLeave&&(ye=U(E),j(n,ye))}function I(){xe.unbind(ae,P),xe.unbind(pe,k),xe.unbind(ue,L),xe.unbind(se,R),ce&&xe.unbind(ce,A),J(!1)}function U(e){var n=e,t=q(),r=H(),i=_();return!t||i?n=m:!r||e!=b||D.triggerOnTouchEnd&&!D.triggerOnTouchLeave?!r&&e==E&&D.triggerOnTouchLeave&&(n=m):n=E,n}function j(e,n){var t,r=e.touches;return(!F()||!X())&&!X()||(t=N(e,n,s)),(!Q()||!C())&&!C()||!1===t||(t=N(e,n,c)),G()&&z()&&!1!==t?t=N(e,n,h):ge>D.longTapThreshold&&he<v&&D.longTap&&!1!==t?t=N(e,n,f):1!==Se&&x||!(isNaN(he)||he<D.threshold)||!W()||!1===t||(t=N(e,n,p)),n===m&&(X()&&(t=N(e,n,s)),C()&&(t=N(e,n,c)),k()),n===E&&(r?r.length||k():k()),t}function N(a,u,d){var g;if(d==s){if(xe.trigger("swipeStatus",[u,fe||null,he||0,ge||0,Se,Oe,de]),D.swipeStatus&&!1===(g=D.swipeStatus.call(xe,a,u,fe||null,he||0,ge||0,Se,Oe,de)))return!1;if(u==E&&F()){if(clearTimeout(ke),clearTimeout(Ae),xe.trigger("swipe",[fe,he,ge,Se,Oe,de]),D.swipe&&!1===(g=D.swipe.call(xe,a,fe,he,ge,Se,Oe,de)))return!1;switch(fe){case n:xe.trigger("swipeLeft",[fe,he,ge,Se,Oe,de]),D.swipeLeft&&(g=D.swipeLeft.call(xe,a,fe,he,ge,Se,Oe,de));break;case t:xe.trigger("swipeRight",[fe,he,ge,Se,Oe,de]),D.swipeRight&&(g=D.swipeRight.call(xe,a,fe,he,ge,Se,Oe,de));break;case r:xe.trigger("swipeUp",[fe,he,ge,Se,Oe,de]),D.swipeUp&&(g=D.swipeUp.call(xe,a,fe,he,ge,Se,Oe,de));break;case i:xe.trigger("swipeDown",[fe,he,ge,Se,Oe,de]),D.swipeDown&&(g=D.swipeDown.call(xe,a,fe,he,ge,Se,Oe,de))}}}if(d==c){if(xe.trigger("pinchStatus",[u,Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchStatus&&!1===(g=D.pinchStatus.call(xe,a,u,Ee||null,be||0,ge||0,Se,Te,Oe)))return!1;if(u==E&&Q())switch(Ee){case l:xe.trigger("pinchIn",[Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchIn&&(g=D.pinchIn.call(xe,a,Ee||null,be||0,ge||0,Se,Te,Oe));break;case o:xe.trigger("pinchOut",[Ee||null,be||0,ge||0,Se,Te,Oe]),D.pinchOut&&(g=D.pinchOut.call(xe,a,Ee||null,be||0,ge||0,Se,Te,Oe))}}return d==p?u!==m&&u!==E||(clearTimeout(ke),clearTimeout(Ae),z()&&!G()?(Re=le(),ke=setTimeout(e.proxy(function(){Re=null,xe.trigger("tap",[a.target]),D.tap&&(g=D.tap.call(xe,a,a.target))},this),D.doubleTapThreshold)):(Re=null,xe.trigger("tap",[a.target]),D.tap&&(g=D.tap.call(xe,a,a.target)))):d==h?u!==m&&u!==E||(clearTimeout(ke),clearTimeout(Ae),Re=null,xe.trigger("doubletap",[a.target]),D.doubleTap&&(g=D.doubleTap.call(xe,a,a.target))):d==f&&(u!==m&&u!==E||(clearTimeout(ke),Re=null,xe.trigger("longtap",[a.target]),D.longTap&&(g=D.longTap.call(xe,a,a.target)))),g}function H(){var e=!0;return null!==D.threshold&&(e=he>=D.threshold),e}function _(){var e=!1;return null!==D.cancelThreshold&&null!==fe&&(e=ee(fe)-he>=D.cancelThreshold),e}function q(){return!(D.maxTimeThreshold&&ge>=D.maxTimeThreshold)}function Q(){var e=Y(),n=V(),t=null===D.pinchThreshold||be>=D.pinchThreshold;return e&&n&&t}function C(){return!!(D.pinchStatus||D.pinchIn||D.pinchOut)}function F(){var e=q(),n=H(),t=Y(),r=V();return!_()&&r&&t&&n&&e}function X(){return!!(D.swipe||D.swipeStatus||D.swipeLeft||D.swipeRight||D.swipeUp||D.swipeDown)}function Y(){return Se===D.fingers||D.fingers===w||!x}function V(){return 0!==Oe[0].end.x}function W(){return!!D.tap}function z(){return!!D.doubleTap}function G(){if(null==Re)return!1;var e=le();return z()&&e-Re<=D.doubleTapThreshold}function Z(){Pe=0,Le=0}function B(){var e=!1;return Pe&&le()-Pe<=D.fingerReleaseThreshold&&(e=!0),e}function J(e){xe&&(!0===e?(xe.bind(ue,L),xe.bind(se,R),ce&&xe.bind(ce,A)):(xe.unbind(ue,L,!1),xe.unbind(se,R,!1),ce&&xe.unbind(ce,A,!1)),xe.data(O+"_intouch",!0===e))}function K(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,Oe[e]=t,t}function $(e){var n=void 0!==e.identifier?e.identifier:0,t=function(e){return Oe[e]||null}(n);return null===t&&(t=K(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function ee(e){if(me[e])return me[e].distance}function ne(e){return{direction:e,distance:0}}function te(){return De-Me}function re(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function ie(e,l){var o=function(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}(e,l);return o<=45&&o>=0?n:o<=360&&o>=315?n:o>=135&&o<=225?t:o>45&&o<135?i:r}function le(){return(new Date).getTime()}var D=e.extend({},D),oe=x||S||!D.fallbackToMouseEvents,ae=oe?S?y?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ue=oe?S?y?"MSPointerMove":"pointermove":"touchmove":"mousemove",se=oe?S?y?"MSPointerUp":"pointerup":"touchend":"mouseup",ce=oe?S?"mouseleave":null:"mouseleave",pe=S?y?"MSPointerCancel":"pointercancel":"touchcancel",he=0,fe=null,de=null,ge=0,we=0,ve=0,Te=1,be=0,Ee=0,me=null,xe=e(M),ye="start",Se=0,Oe={},Me=0,De=0,Pe=0,Le=0,Re=0,ke=null,Ae=null;try{xe.bind(ae,P),xe.bind(pe,k)}catch(n){e.error("events not supported "+ae+","+pe+" on rbjQuer.swipe")}this.enable=function(){return xe.bind(ae,P),xe.bind(pe,k),xe},this.disable=function(){return I(),xe},this.destroy=function(){I(),xe.data(O,null),xe=null},this.option=function(n,t){if("object"==typeof n)D=e.extend(D,n);else if(void 0!==D[n]){if(void 0===t)return D[n];D[n]=t}else{if(!n)return D;e.error("Option "+n+" does not exist on rbjQuer.swipe.options")}return null}}(this,M),D.data(O,P))})}.apply(this,arguments);return D},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:T,PHASE_MOVE:b,PHASE_END:E,PHASE_CANCEL:m},e.fn.swipe.directions={LEFT:n,RIGHT:t,UP:r,DOWN:i,IN:l,OUT:o},e.fn.swipe.pageScroll={NONE:a,HORIZONTAL:d,VERTICAL:g,AUTO:u},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:w}});
101
  /*
102
  stackgrid.adem.js - adwm.co
103
  Licensed under the MIT license - http://opensource.org/licenses/MIT
104
  Copyright (C) 2015 Andrew Prasetya
105
  */
106
+ !function(e,t,a){t.fn.collagePlus=function(i){return this.each(function(o,s){var n=t(this);if(n.data("collagePlus"))return n.data("collagePlus");var r=new function(i,o){function s(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(I).find(S+":not([data-imageconverted])").each(function(){var o=t(this),s=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0),r=s.data("thumbnail");if(s[0]==a&&(s=n,r=n.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||s.data("width")==a&&s.data("height")==a){o.attr("data-imageconverted","yes");var d=s.attr("title");d==a&&(d=r);var l=t('<img style="margin:auto;" title="'+d+'" src="'+r+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),s.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),s.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function n(e){e.find(I).each(function(){var i=t(this),o=i.find(S),s=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0);s[0]==a&&(s=n);var r=i.css("display");"none"==r&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(s.width()-d),o.height(s.height()-d),"none"==r&&i.css("margin-top",0).hide()})}function r(e){e.find(I).find(S).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),s=i.find("div[data-popup]").eq(0);o[0]==a&&(o=s);var n=parseFloat(o.data("width")),r=parseFloat(o.data("height")),d=i.parents(I).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=r*d/n;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function d(e,i,o){var s,n=e.find(I);s="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",s),n.each(function(e){var i=t(this),n=i.data("columns");n!=a&&parseInt(o)>=parseInt(n)?i.css("width",s*parseInt(n)):i.css("width",s)})}function l(t){var a=!1;for(var i in t.data("settings").resolutions){var o=t.data("settings").resolutions[i];if(o.maxWidth>=function(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}().width){d(t,o.columnWidth,o.columns),a=!0;break}}0==a&&d(t,t.data("settings").columnWidth,t.data("settings").columns)}function c(e,t){B.addClass("filtering-isotope"),m(e,t),function(){var e=B.find(I+", ."+L),t=h();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}(),f()}function f(){p().not(".rbs-img-loaded").length>0?v():g(),function(){var e=p().length;if(e<x.minBoxesPerFilter&&u().length>0)b(x.minBoxesPerFilter-e)}()}function m(e,t){z[t]=e,B.eveMB({filter:function(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var s=e[i];for(var t in e)if(t!=i)for(var n=e[t].split(","),r=0;r<n.length;r++){for(var d=s.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==n[r]?n[r]="":("*"==n[r]&&(n[r]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+n[r]);s=l.join(",")}return s}(z)})}function p(){var e=B.find(I),t=h();return"*"!=t&&(e=e.filter(t)),e}function h(){var e=B.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function u(e){var t=B.find("."+L),i=h();return"*"!=i&&e==a&&(t=t.filter(i)),t}function v(){W.html(x.LoadingWord),W.removeClass("rbs-imges-load-more"),W.addClass("rbs-imges-loading")}function g(){W.removeClass("rbs-imges-load-more"),W.removeClass("rbs-imges-loading"),W.removeClass("rbs-imges-no-more-entries"),u().length>0?(W.html(x.loadMoreWord),W.addClass("rbs-imges-load-more")):(W.html(x.noMoreEntriesWord),W.addClass("rbs-imges-no-more-entries"))}function b(e,a){if(1!=W.hasClass("rbs-imges-no-more-entries")){E++,v();var i=[];u(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(L).addClass(T),o.hide(),i.push(this))}),B.eveMB("insert",t(i),function(){0==--E&&g(),B.eveMB("layout")})}}function y(e){if(e!=a){var i=B.find("."+T+", ."+L);""==e?i.addClass("search-match"):(i.removeClass("search-match"),B.find(x.searchTarget).each(function(){var a=t(this),i=a.parents("."+T+", ."+L);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){c(".search-match","search")},100)}}function w(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function k(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function C(){var e=t.magnificPopup.instance;if(e){var a=k();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else B.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var x=t.extend({},t.fn.collagePlus.defaults,o),B=t(i).addClass("rbs-imges-container"),I=".rbs-img",S=".rbs-img-image",T="rbs-img",L="rbs-img-hidden",M=Modernizr.csstransitions?"transition":"animate",z={},E=0;"default"==x.overlayEasing&&(x.overlayEasing="transition"==M?"_default":"swing");var W=t('<div class="rbs-imges-load-more button"></div>').insertAfter(B);W.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),W.addClass(x.loadMoreClass),x.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),B.data("settings",x),B.css({"margin-left":-x.horizontalSpaceBetweenBoxes}),B.find(I).removeClass(T).addClass(L);var _=t(x.sortContainer).find(x.sort).filter(".selected"),P=_.attr("data-sort-by"),q=w(_);B.append('<div class="rbs-imges-grid-sizer"></div>'),B.eveMB({itemSelector:I,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:x.getSortData,sortBy:P,sortAscending:q}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);l(e),r(e),n(e),function(e){e.find(I).each(function(){var i=t(this).find(S),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var s=t(this.element);t.waypoints("refresh"),s.addClass("lazy-load-ready"),s.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var d,c,f=t(this.element),m=f.find("."+L)[0],p=o.length;for(d=0;d<p;d++)c=o[d],m!=a?this.element.insertBefore(c.element,m):this.element.appendChild(c.element);var h=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},u=this;!function(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(I+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}(f),l(f),r(f),function(e){e.find(I+", ."+L).find(S+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var s=e.find(".rbs-lightbox").addBack(".rbs-lightbox");s.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&s.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&s.attr("mfp-alt",i.attr("data-alt"))})}(f),s(f,!1),f.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==x.waitForAllThumbsNoMatterWhat&&s(f,!0),f.find(I).addClass("rbs-img-loaded"),function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),d=0;d<p;d++)o[d].isLayoutInstant=!0;for(this.arrange(),d=0;d<p;d++)delete o[d].isLayoutInstant;this.reveal(e)}.call(u),n(f),function(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(I+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(S),s=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(s=o.data("overlay-effect")),"push-up"==s||"push-down"==s||"push-up-100%"==s||"push-down-100%"==s){var n=o.find(".rbs-img-thumbnail-container"),r=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=s&&"push-down-100%"!=s||r.outerHeight(n.outerHeight(!1));var d=r.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==s||"push-up-100%"==s?r.appendTo(o):"push-down"!=s&&"push-down-100%"!=s||(r.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==s||"reveal-top-100%"==s)i.addClass("position-reveal-effect"),c=i.find(".thumbnail-overlay").css("top",0),"reveal-top-100%"==s&&c.css("height","100%");else if("reveal-bottom"==s||"reveal-bottom-100%"==s){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==s&&c.css("height","100%")}else if("direction"==s.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==s){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}(f),"function"==typeof i&&i();for(index in u.images){var e=u.images[index];h(e)}}).progress(function(e,t){h(t)})}}}),b(x.boxesToLoadStart,!0),W.on("click",function(){b(x.boxesToLoad)}),x.lazyLoad&&B.waypoint(function(e){B.hasClass("lazy-load-ready")&&"down"==e&&0==B.hasClass("filtering-isotope")&&(B.removeClass("lazy-load-ready"),b(x.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var O=t(x.filterContainer);O.find(x.filter).on("click",function(e){var i=t(this),o=i.parents(x.filterContainer);o.find(x.filter).removeClass(x.filterContainerSelectClass),i.addClass(x.filterContainerSelectClass);var s=i.attr("data-filter"),n="filter";o.data("id")!=a&&(n=o.data("id")),c(s,n),e.preventDefault(),W.is(".rbs-imges-no-more-entries")||W.click()}),O.each(function(){var e=t(this),i=e.find(x.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),s="filter";e.data("id")!=a&&(s=e.data("id")),m(o,s)}}),f(),y(t(x.search).val()),t(x.search).on("keyup",function(){y(t(this).val())}),t(x.sortContainer).find(x.sort).on("click",function(e){var a=t(this);a.parents(x.sortContainer).find(x.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");B.eveMB({sortBy:i,sortAscending:w(a)}),e.preventDefault()}),B.on("mouseenter.hoverdir, mouseleave.hoverdir",S,function(e){if(0!=x.thumbnailOverlay){var i=t(this),o=x.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var s=e.type,n=i.find(".rbs-img-thumbnail-container"),r=i.find(".thumbnail-overlay"),d=r.outerHeight(!1);if("push-up"==o||"push-up-100%"==o)l=i.find("div.wrapper-for-some-effects"),"mouseenter"===s?l.stop().show()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing):l.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===s?l.stop().show()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing):l.stop()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===s?n.stop().show()[M]({"margin-top":d},x.overlaySpeed,x.overlayEasing):n.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===s?n.stop().show()[M]({"margin-top":-d},x.overlaySpeed,x.overlayEasing):n.stop()[M]({"margin-top":0},x.overlaySpeed,x.overlayEasing);else if("direction"==o.substr(0,9)){var c=R(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=U(c,i);"mouseenter"==s?(r.css({left:f.from,top:f.to}),r.stop().show().fadeTo(0,1,function(){t(this).stop()[M]({left:0,top:0},x.overlaySpeed,x.overlayEasing)})):"direction-aware-fade"==o?r.fadeOut(700):r.stop()[M]({left:f.from,top:f.to},x.overlaySpeed,x.overlayEasing)}else if("fade"==o){"mouseenter"==s?(r.stop().fadeOut(0),r.fadeIn(x.overlaySpeed)):(r.stop().fadeIn(0),r.fadeOut(x.overlaySpeed));var m=r.find(".fa");"mouseenter"==s?(m.css({scale:1.4}),m[M]({scale:1},200)):(m.css({scale:1}),m[M]({scale:1.4},200))}}});var R=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),s=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(s,o)*(180/Math.PI)+180)/90+3)%4},U=function(e,t){var a,i;switch(e){case 0:x.reverse,a=0,i=-t.height();break;case 1:x.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:x.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:x.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},F=".rbs-lightbox[data-mfp-src]";if(x.considerFilteringInPopup&&(F=I+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+L+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),x.showOnlyLoadedBoxesInPopup&&(F=I+":visible .rbs-lightbox[data-mfp-src]"),x.magnificPopup){var j={delegate:F,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:x.alignTop,preload:x.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:x.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(x.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+x.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||x.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var s=i.attr("data-mfp-src");e="",x.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+s+'" target="_blank"></a>');var n=location.href,r=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=n;""==d&&(d=r),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",r);var c="";x.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+s+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+s+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+s+" data-url='"+l+"'></div>"),x.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+s+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+r+"</div></div>"),x.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+s+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+r+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(x.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==x.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==x.touch&&t("body").swipe("disable"),x.deepLinking&&(e.location.hash="#!")}}};t.extend(j,x.lightboxOptions),B.magnificPopup(j)}if(x.deepLinking){var D=k();D&&B.find('.rbs-lightbox[data-mfp-src="'+D.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",C,!1):e.attachEvent&&e.attachEvent("onhashchange",C)}var A=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));A(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());A(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));A(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());A(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());A(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this}(this,i);n.data("collagePlus",r),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){t(".rbs-imges-drop-down").each(function(){!function(a){function i(){r.hide()}function o(){r.show()}function s(){var e=r.find(".selected"),t=e.length?e.parents("li"):r.children().first();d.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function n(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),s()}var r=a.find(".rbs-imges-drop-down-menu"),d=a.find(".rbs-imges-drop-down-header");s(),function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}()?(t("body").on("click",function(){r.is(":visible")&&i()}),d.bind("click",function(e){e.stopPropagation(),r.is(":visible")?i():o()}),r.find("> li > *").bind("click",n)):(d.bind("mouseout",i).bind("mouseover",o),r.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",n)),d.on("click","a",function(e){e.preventDefault()})}(t(this))})}()}(window,rbjQuer);
107
  /*
108
  * RoboGallery Version: 1.0
109
  * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, images gallery, gallery images, wordpress gallery plugin, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
- Stable tag: 2.7.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -259,6 +259,11 @@ If any problem occurs, please contact us.
259
 
260
  == Changelog ==
261
 
 
 
 
 
 
262
  = 2.7.2 =
263
  * New advanced, automatic js error detection and fixing system
264
 
@@ -428,6 +433,11 @@ If any problem occurs, please contact us.
428
 
429
  == Upgrade Notice ==
430
 
 
 
 
 
 
431
  = 2.7.2 =
432
  New advanced, automatic js error detection and fixing system
433
 
4
  Tags: gallery, photo gallery, images gallery, gallery images, wordpress gallery plugin, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
+ Stable tag: 2.7.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
259
 
260
  == Changelog ==
261
 
262
+ = 2.7.3 =
263
+ * New ajax preload gallery module
264
+ * Notification init fix
265
+ * Fix for automatic js error detection and fixing system
266
+
267
  = 2.7.2 =
268
  * New advanced, automatic js error detection and fixing system
269
 
433
 
434
  == Upgrade Notice ==
435
 
436
+ = 2.7.3 =
437
+ New ajax preload gallery module
438
+ Notification init fix
439
+ Fix for automatic js error detection and fixing system
440
+
441
  = 2.7.2 =
442
  New advanced, automatic js error detection and fixing system
443
 
robogallery.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Robo Gallery
4
  Plugin URI: https://robosoft.co/wordpress-gallery-plugin
5
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
6
- Version: 2.7.2
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
@@ -15,7 +15,7 @@ if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
- define("ROBO_GALLERY_VERSION", '2.7.2');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
@@ -53,6 +53,9 @@ if( $keyResult=rbs_gallery_pro_check() ){
53
 
54
  define("ROBO_GALLERY_INCLUDES_PATH", ROBO_GALLERY_PATH.'includes/');
55
  define("ROBO_GALLERY_FRONTEND_PATH", ROBO_GALLERY_INCLUDES_PATH.'frontend/');
 
 
 
56
  define("ROBO_GALLERY_OPTIONS_PATH", ROBO_GALLERY_INCLUDES_PATH.'options/');
57
  define("ROBO_GALLERY_EXTENSIONS_PATH", ROBO_GALLERY_INCLUDES_PATH.'extensions/');
58
  define("ROBO_GALLERY_CMB_PATH", ROBO_GALLERY_PATH.'cmb2/');
3
  Plugin Name: Robo Gallery
4
  Plugin URI: https://robosoft.co/wordpress-gallery-plugin
5
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
6
+ Version: 2.7.3
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
+ define("ROBO_GALLERY_VERSION", '2.7.3');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
53
 
54
  define("ROBO_GALLERY_INCLUDES_PATH", ROBO_GALLERY_PATH.'includes/');
55
  define("ROBO_GALLERY_FRONTEND_PATH", ROBO_GALLERY_INCLUDES_PATH.'frontend/');
56
+ define("ROBO_GALLERY_FRONTEND_EXT_PATH",ROBO_GALLERY_FRONTEND_PATH.'extensions/');
57
+
58
+
59
  define("ROBO_GALLERY_OPTIONS_PATH", ROBO_GALLERY_INCLUDES_PATH.'options/');
60
  define("ROBO_GALLERY_EXTENSIONS_PATH", ROBO_GALLERY_INCLUDES_PATH.'extensions/');
61
  define("ROBO_GALLERY_CMB_PATH", ROBO_GALLERY_PATH.'cmb2/');