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,mBAEtBlI,EAAMV,IAAI2J,OAEd,GAAGjJ,EAAMT,EAAE2F,iBAAmB,GAClC,EAEA3G,EAAEiG,GAAGC,aAAe,SAASuC,GACzB,OAAO7H,KAAKoJ,MAAK,WACb,GAAKhK,EAAEc,KAAKF,KAAM,gBAGd,IACIZ,EAAEY,MAAME,KAAK,gBAAgBK,MAGjC,CAFE,MAAOmP,GACLpO,QAAQC,MAAM,0CAA2CmO,EAC7D,MANAtQ,EAAEc,KAAKF,KAAM,eAAgB,IAAI4H,EAAO5H,KAAM6H,GAQtD,GACJ,EAEAzI,EAAEiG,GAAGC,aAAaC,QAAU,CAAC,CAEhC,CAn1CD,GAFQ,IAAUnG,CATb","sources":["webpack://website/./node_modules/lg-video/dist/lg-video.js","webpack://website/./node_modules/lightgallery/dist/js/lightgallery.js"],"sourcesContent":["/*! lg-video - v1.4.0 - November-07-2020\n* http://sachinchoolur.github.io/lightGallery\n* Copyright (c) 2020 Sachin N; Licensed GPLv3 */\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define(['jquery'], function (a0) {\n return (factory(a0));\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('jquery'));\n } else {\n factory(root[\"jQuery\"]);\n }\n}(this, function ($) {\n\n(function() {\n \n 'use strict';\n\n var defaults = {\n videoMaxWidth: '855px',\n\n autoplayFirstVideo: true,\n\n youtubePlayerParams: false,\n vimeoPlayerParams: false,\n dailymotionPlayerParams: false,\n vkPlayerParams: false,\n\n videojs: false,\n videojsOptions: {}\n };\n\n var Video = function(element) {\n\n this.core = $(element).data('lightGallery');\n\n this.$el = $(element);\n this.core.s = $.extend({}, defaults, this.core.s);\n this.videoLoaded = false;\n\n this.init();\n\n return this;\n };\n\n Video.prototype.init = function() {\n var _this = this;\n\n // Event triggered when video url found without poster\n _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));\n\n // Set max width for video\n _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));\n\n if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {\n _this.core.$el.on('onSlideClick.lg.tm', function() {\n var $el = _this.core.$slide.eq(_this.core.index);\n _this.loadVideoOnclick($el);\n });\n } else {\n\n // For IE 9 and bellow\n _this.core.$slide.on('click.lg', function() {\n _this.loadVideoOnclick($(this));\n });\n }\n\n _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));\n\n _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {\n _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');\n });\n \n if (_this.core.s.autoplayFirstVideo) {\n _this.core.$el.on('onAferAppendSlide.lg.tm', function (e, index) {\n if (!_this.core.lGalleryOn) {\n var $el = _this.core.$slide.eq(index);\n setTimeout(function () {\n _this.loadVideoOnclick($el);\n }, 100);\n }\n });\n }\n };\n\n Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {\n var _this = this;\n var video = '';\n var autoplay = 1;\n var a = '';\n var isVideo = this.core.isVideo(src, index) || {};\n var videoTitle;\n\n if (_this.core.s.dynamic) {\n videoTitle = _this.core.s.dynamicEl[_this.core.index].title;\n } else {\n videoTitle = _this.core.$items.eq(_this.core.index).attr('title') || _this.core.$items.eq(_this.core.index).find('img').first().attr('alt');\n }\n\n videoTitle = videoTitle ? 'title=\"' + videoTitle + '\"' : '';\n\n // Enable autoplay based on setting for first video if poster doesn't exist\n if (noPoster) {\n if (this.videoLoaded) {\n autoplay = 0;\n } else {\n autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;\n }\n }\n\n if (isVideo.youtube) {\n\n a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';\n if (this.core.s.youtubePlayerParams) {\n a = a + '&' + $.param(this.core.s.youtubePlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.vimeo) {\n\n a = '?autoplay=' + autoplay;\n if (this.core.s.vimeoPlayerParams) {\n a = a + '&' + $.param(this.core.s.vimeoPlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.dailymotion) {\n\n a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';\n if (this.core.s.dailymotionPlayerParams) {\n a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.html5) {\n var fL = html.substring(0, 1);\n if (fL === '.' || fL === '#') {\n html = $(html).html();\n }\n\n video = html;\n\n } else if (isVideo.vk) {\n\n a = '&autoplay=' + autoplay;\n if (this.core.s.vkPlayerParams) {\n a = a + '&' + $.param(this.core.s.vkPlayerParams);\n }\n\n video = '';\n\n }\n\n return video;\n };\n\n Video.prototype.loadVideoOnclick = function($el){\n\n var _this = this;\n // check slide has poster\n if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {\n\n // check already video element present\n if (!$el.hasClass('lg-has-video')) {\n\n $el.addClass('lg-video-playing lg-has-video');\n\n var _src;\n var _html;\n var _loadVideo = function(_src, _html) {\n\n $el.find('.lg-video').append(_this.loadVideo(_src, '', false, _this.core.index, _html));\n\n if (_html) {\n if (_this.core.s.videojs) {\n try {\n videojs(_this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {\n this.play();\n });\n } catch (e) {\n console.error('lightGallery:- Make sure you have included videojs');\n }\n } else {\n _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0).play();\n }\n }\n\n };\n\n if (_this.core.s.dynamic) {\n\n _src = _this.core.s.dynamicEl[_this.core.index].src;\n _html = _this.core.s.dynamicEl[_this.core.index].html;\n\n _loadVideo(_src, _html);\n\n } else {\n\n _src = _this.core.$items.eq(_this.core.index).attr('href') || _this.core.$items.eq(_this.core.index).attr('data-src');\n _html = _this.core.$items.eq(_this.core.index).attr('data-html');\n\n _loadVideo(_src, _html);\n\n }\n\n var $tempImg = $el.find('.lg-object');\n $el.find('.lg-video').append($tempImg);\n\n // @todo loading icon for html5 videos also\n // for showing the loading indicator while loading video\n if (!$el.find('.lg-video-object').hasClass('lg-html5')) {\n $el.removeClass('lg-complete');\n $el.find('.lg-video-object').on('load.lg error.lg', function() {\n $el.addClass('lg-complete');\n });\n }\n\n } else {\n\n var youtubePlayer = $el.find('.lg-youtube').get(0);\n var vimeoPlayer = $el.find('.lg-vimeo').get(0);\n var dailymotionPlayer = $el.find('.lg-dailymotion').get(0);\n var html5Player = $el.find('.lg-html5').get(0);\n if (youtubePlayer) {\n youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n } else if (vimeoPlayer) {\n try {\n new Vimeo.Player(vimeoPlayer).play().catch(function(error) {\n console.error('error playing the video:', error.name);\n });\n } catch (e) {\n console.warn('lightGallery:- Make sure you have included https://github.com/vimeo/player.js');\n }\n } else if (dailymotionPlayer) {\n dailymotionPlayer.contentWindow.postMessage('play', '*');\n\n } else if (html5Player) {\n if (_this.core.s.videojs) {\n try {\n videojs(html5Player).play();\n } catch (e) {\n console.error('lightGallery:- Make sure you have included videojs');\n }\n } else {\n html5Player.play();\n }\n }\n\n $el.addClass('lg-video-playing');\n\n }\n }\n };\n\n Video.prototype.destroy = function() {\n this.videoLoaded = false;\n };\n\n function onHasVideo(event, index, src, html) {\n /*jshint validthis:true */\n var _this = this;\n _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));\n if (html) {\n if (_this.core.s.videojs) {\n try {\n videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {\n if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {\n this.play();\n }\n });\n } catch (e) {\n console.error('lightGallery:- Make sure you have included videojs');\n }\n } else {\n if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {\n _this.core.$slide.eq(index).find('.lg-html5').get(0).play();\n }\n }\n }\n }\n\n function onAferAppendSlide(event, index) {\n /*jshint validthis:true */\n var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');\n if (!$videoCont.hasClass('lg-has-iframe')) {\n $videoCont.css('max-width', this.core.s.videoMaxWidth);\n this.videoLoaded = true;\n }\n }\n\n function onBeforeSlide(event, prevIndex, index) {\n /*jshint validthis:true */\n var _this = this;\n\n var $videoSlide = _this.core.$slide.eq(prevIndex);\n var youtubePlayer = $videoSlide.find('.lg-youtube').get(0);\n var vimeoPlayer = $videoSlide.find('.lg-vimeo').get(0);\n var dailymotionPlayer = $videoSlide.find('.lg-dailymotion').get(0);\n var vkPlayer = $videoSlide.find('.lg-vk').get(0);\n var html5Player = $videoSlide.find('.lg-html5').get(0);\n if (youtubePlayer) {\n youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*');\n } else if (vimeoPlayer) {\n try {\n new Vimeo.Player(vimeoPlayer).pause().catch(function(error) {\n console.error('Unable to pause the video:', error.name);\n });\n } catch (e) {\n console.warn('lightGallery:- Make sure you have included https://github.com/vimeo/player.js');\n }\n } else if (dailymotionPlayer) {\n dailymotionPlayer.contentWindow.postMessage('pause', '*');\n\n } else if (html5Player) {\n if (_this.core.s.videojs) {\n try {\n videojs(html5Player).pause();\n } catch (e) {\n console.error('lightGallery:- Make sure you have included videojs');\n }\n } else {\n html5Player.pause();\n }\n } if (vkPlayer) {\n $(vkPlayer).attr('src', $(vkPlayer).attr('src').replace('&autoplay', '&noplay'));\n }\n\n var _src;\n if (_this.core.s.dynamic) {\n _src = _this.core.s.dynamicEl[index].src;\n } else {\n _src = _this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src');\n\n }\n\n var _isVideo = _this.core.isVideo(_src, index) || {};\n if (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) {\n _this.core.$outer.addClass('lg-hide-download');\n }\n\n }\n\n $.fn.lightGallery.modules.video = Video;\n\n })();\n\n\n}));\n","/*! lightgallery - v1.10.0 - 2020-11-07\n* http://sachinchoolur.github.io/lightGallery/\n* Copyright (c) 2020 Sachin N; Licensed GPLv3 */\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define(['jquery'], function (a0) {\n return (factory(a0));\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('jquery'));\n } else {\n factory(root[\"jQuery\"]);\n }\n}(this, function ($) {\n\n(function() {\n 'use strict';\n\n var defaults = {\n\n mode: 'lg-slide',\n\n // Ex : 'ease'\n cssEasing: 'ease',\n\n //'for jquery animation'\n easing: 'linear',\n speed: 600,\n height: '100%',\n width: '100%',\n addClass: '',\n startClass: 'lg-start-zoom',\n backdropDuration: 150,\n\n // Set 0, if u don't want to hide the controls \n hideBarsDelay: 6000,\n\n useLeft: false,\n\n // aria-labelledby attribute fot gallery\n ariaLabelledby: '',\n \n //aria-describedby attribute for gallery\n ariaDescribedby: '',\n\n closable: true,\n loop: true,\n escKey: true,\n keyPress: true,\n controls: true,\n slideEndAnimatoin: true,\n hideControlOnEnd: false,\n mousewheel: true,\n\n getCaptionFromTitleOrAlt: true,\n\n // .lg-item || '.lg-sub-html'\n appendSubHtmlTo: '.lg-sub-html',\n\n subHtmlSelectorRelative: false,\n\n /**\n * @desc number of preload slides\n * will execute only after the current slide is fully loaded.\n *\n * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th\n * slide will be loaded in the background after the 4th slide is fully loaded..\n * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...\n *\n */\n preload: 1,\n showAfterLoad: true,\n selector: '',\n selectWithin: '',\n nextHtml: '',\n prevHtml: '',\n\n // 0, 1\n index: false,\n\n iframeMaxWidth: '100%',\n\n download: true,\n counter: true,\n appendCounterTo: '.lg-toolbar',\n\n swipeThreshold: 50,\n enableSwipe: true,\n enableDrag: true,\n\n dynamic: false,\n dynamicEl: [],\n galleryId: 1,\n supportLegacyBrowser: true\n };\n\n function Plugin(element, options) {\n\n // Current lightGallery element\n this.el = element;\n\n // Current jquery element\n this.$el = $(element);\n\n // lightGallery settings\n this.s = $.extend({}, defaults, options);\n\n // When using dynamic mode, ensure dynamicEl is an array\n if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {\n throw ('When using dynamic mode, you must also define dynamicEl as an Array.');\n }\n\n // lightGallery modules\n this.modules = {};\n\n // false when lightgallery complete first slide;\n this.lGalleryOn = false;\n\n this.lgBusy = false;\n\n // Timeout function for hiding controls;\n this.hideBarTimeout = false;\n\n // To determine browser supports for touch events;\n this.isTouch = ('ontouchstart' in document.documentElement);\n\n // Disable hideControlOnEnd if sildeEndAnimation is true\n if (this.s.slideEndAnimatoin) {\n this.s.hideControlOnEnd = false;\n }\n\n // Gallery items\n if (this.s.dynamic) {\n this.$items = this.s.dynamicEl;\n } else {\n if (this.s.selector === 'this') {\n this.$items = this.$el;\n } else if (this.s.selector !== '') {\n if (this.s.selectWithin) {\n this.$items = $(this.s.selectWithin).find(this.s.selector);\n } else {\n this.$items = this.$el.find($(this.s.selector));\n }\n } else {\n this.$items = this.$el.children();\n }\n }\n\n // .lg-item\n this.$slide = '';\n\n // .lg-outer\n this.$outer = '';\n\n this.init();\n\n return this;\n }\n\n Plugin.prototype.init = function() {\n\n var _this = this;\n\n // s.preload should not be more than $item.length\n if (_this.s.preload > _this.$items.length) {\n _this.s.preload = _this.$items.length;\n }\n\n // if dynamic option is enabled execute immediately\n var _hash = window.location.hash;\n if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {\n\n _this.index = parseInt(_hash.split('&slide=')[1], 10);\n\n $('body').addClass('lg-from-hash');\n if (!$('body').hasClass('lg-on')) {\n setTimeout(function() {\n _this.build(_this.index);\n });\n\n $('body').addClass('lg-on');\n }\n }\n\n if (_this.s.dynamic) {\n\n _this.$el.trigger('onBeforeOpen.lg');\n\n _this.index = _this.s.index || 0;\n\n // prevent accidental double execution\n if (!$('body').hasClass('lg-on')) {\n setTimeout(function() {\n _this.build(_this.index);\n $('body').addClass('lg-on');\n });\n }\n } else {\n\n // Using different namespace for click because click event should not unbind if selector is same object('this')\n _this.$items.on('click.lgcustom', function(event) {\n\n // For IE8\n try {\n event.preventDefault();\n event.preventDefault();\n } catch (er) {\n event.returnValue = false;\n }\n\n _this.$el.trigger('onBeforeOpen.lg');\n\n _this.index = _this.s.index || _this.$items.index(this);\n\n // prevent accidental double execution\n if (!$('body').hasClass('lg-on')) {\n _this.build(_this.index);\n $('body').addClass('lg-on');\n }\n });\n }\n\n };\n\n Plugin.prototype.build = function(index) {\n\n var _this = this;\n\n _this.structure();\n\n // module constructor\n $.each($.fn.lightGallery.modules, function(key) {\n _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el);\n });\n\n // initiate slide function\n _this.slide(index, false, false, false);\n\n if (_this.s.keyPress) {\n _this.keyPress();\n }\n\n if (_this.$items.length > 1) {\n\n _this.arrow();\n\n setTimeout(function() {\n _this.enableDrag();\n _this.enableSwipe();\n }, 50);\n\n if (_this.s.mousewheel) {\n _this.mousewheel();\n }\n } else {\n _this.$slide.on('click.lg', function() {\n _this.$el.trigger('onSlideClick.lg');\n });\n }\n\n _this.counter();\n\n _this.closeGallery();\n\n _this.$el.trigger('onAfterOpen.lg');\n\n // Hide controllers if mouse doesn't move for some period\n if (_this.s.hideBarsDelay > 0) {\n\n // Hide controllers if mouse doesn't move for some period\n _this.$outer.on('mousemove.lg click.lg touchstart.lg', function () {\n _this.$outer.removeClass('lg-hide-items');\n\n clearTimeout(_this.hideBarTimeout);\n\n // Timeout will be cleared on each slide movement also\n _this.hideBarTimeout = setTimeout(function () {\n _this.$outer.addClass('lg-hide-items');\n }, _this.s.hideBarsDelay);\n\n });\n }\n\n _this.$outer.trigger('mousemove.lg');\n\n };\n\n Plugin.prototype.structure = function() {\n var list = '';\n var controls = '';\n var i = 0;\n var subHtmlCont = '';\n var template;\n var _this = this;\n\n $('body').append('
');\n $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');\n\n // Create gallery items\n for (i = 0; i < this.$items.length; i++) {\n list += '';\n }\n\n // Create controlls\n if (this.s.controls && this.$items.length > 1) {\n controls = '