';$body.appendChild($modal);$modalInner = $modal.querySelector('.inner');$modalImage = $modal.querySelector('img');$modalImage.addEventListener('load', function() {$modalImage.style.setProperty('--natural-width', $modalImage.naturalWidth + 'px');$modalImage.style.setProperty('--natural-height', $modalImage.naturalHeight + 'px');$modal.classList.add('done');setTimeout(function() {if (!$modal.classList.contains('visible'))return;$modal.classList.add('loaded');setTimeout(function() {$modal.classList.remove('switching', 'from-left', 'from-right', 'done');}, _this.delay);}, ($modal.classList.contains('switching') ? 0 : _this.delay));});$modalImage.addEventListener('contextmenu', function() {if (_this.protect)event.preventDefault();}, true);$modalImage.addEventListener('dragstart', function() {if (_this.protect)event.preventDefault();}, true);$modalCaption = $modal.querySelector('.caption');$modalNext = $modal.querySelector('.next');$modalPrevious = $modal.querySelector('.previous');switch (client.browser) {case 'safari':case 'firefox':$modalInner.style.boxShadow = 'none';break;default:break;}$modal.show = function(index, offset, direction) {var item,i, j, found;if (_this.locked)return;if (typeof index != 'number')index = _this.current;if (typeof offset == 'number') {found = false;j = 0;for (j = 0; j < _this.$links.length; j++) {index += offset;if (index < 0)index = _this.$links.length - 1; else if (index >= _this.$links.length)index = 0;if (index == _this.current)break;item = _this.$links.item(index);if (!item)break;if (item.dataset.lightboxIgnore != '1') {found = true;break;}}if (!found)return;} else {if (index < 0)index = _this.$links.length - 1; else if (index >= _this.$links.length)index = 0;if (index == _this.current)return;item = _this.$links.item(index);if (!item)return;if (item.dataset.lightboxIgnore == '1')return;}if (client.mobile)_this.zoomIntervalId = setInterval(function() {_this.zoomHandler();}, 250);_this.locked = true;if (_this.current !== null) {$modal.classList.remove('loaded');$modal.classList.add('switching');switch (direction) {case -1:$modal.classList.add('from-left');break;case 1:$modal.classList.add('from-right');break;default:break;}setTimeout(function() {_this.current = index;$modalImage.src = item.href;if (_this.captions)$modalCaption.innerHTML = item.querySelector('[data-caption]').dataset.caption;setTimeout(function() {$modal.focus();_this.locked = false;}, _this.delay);}, _this.delay);} else {_this.current = index;$modalImage.src = item.href;if (_this.captions)$modalCaption.innerHTML = item.querySelector('[data-caption]').dataset.caption;$modal.classList.add('visible');setTimeout(function() {$modal.focus();_this.locked = false;}, _this.delay);}};$modal.hide = function() {if (_this.locked)return;if (!$modal.classList.contains('visible'))return;_this.locked = true;$modal.classList.remove('visible');$modal.classList.remove('loaded');$modal.classList.remove('switching', 'from-left', 'from-right', 'done');clearInterval(_this.zoomIntervalId);setTimeout(function() {$modalImage.src = '';_this.locked = false;$body.focus();_this.current = null;}, _this.delay);};$modal.next = function(direction) {$modal.show(null, 1, direction);};$modal.previous = function(direction) {$modal.show(null, -1, direction);};$modal.first = function() {$modal.show(0);};$modal.last = function() {$modal.show(_this.$links.length - 1);};$modalInner.addEventListener('touchstart', function(event) {if (!_this.navigation)return;if (event.touches.length > 1)return;dragStart = {x: event.touches[0].clientX,y: event.touches[0].clientY};});$modalInner.addEventListener('touchmove', function(event) {var dx, dy;if (!_this.navigation)return;if (!dragStart|| event.touches.length > 1)return;dragEnd = {x: event.touches[0].clientX,y: event.touches[0].clientY};dx = dragStart.x - dragEnd.x;dy = dragStart.y - dragEnd.y;if (Math.abs(dx) < 50)return;event.preventDefault();if (dx > 0)$modal.next(-1); else if (dx < 0)$modal.previous(1);});$modalInner.addEventListener('touchend', function(event) {if (!_this.navigation)return;dragStart = null;dragEnd = null;});$modal.addEventListener('click', function(event) {if (event.target&& (event.target.tagName == 'A' || event.target.tagName == 'SPOILER-TEXT'))return;$modal.hide();});$modal.addEventListener('keydown', function(event) {if (!$modal.classList.contains('visible'))return;switch (event.keyCode) {case 39:case 32:if (!_this.navigation)break;event.preventDefault();event.stopPropagation();$modal.next();break;case 37:if (!_this.navigation)break;event.preventDefault();event.stopPropagation();$modal.previous();break;case 36:if (!_this.navigation)break;event.preventDefault();event.stopPropagation();$modal.first();break;case 35:if (!_this.navigation)break;event.preventDefault();event.stopPropagation();$modal.last();break;case 27:event.preventDefault();event.stopPropagation();$modal.hide();break;}});$modalNext.addEventListener('click', function(event) {$modal.next();});$modalPrevious.addEventListener('click', function(event) {$modal.previous();});this.$modal = $modal;this.$modalImage = $modalImage;this.$modalCaption = $modalCaption;this.$modalNext = $modalNext;this.$modalPrevious = $modalPrevious;};lightboxGallery.prototype.show = function(href, config) {this.$links = config.$links;this.navigation = config.navigation;this.captions = config.captions;this.mobile = config.mobile;this.mobileNavigation = config.mobileNavigation;this.scheme = config.scheme;this.protect = config.protect;this.$modal.classList.remove('light', 'dark');switch (this.scheme) {case 'light':this.$modal.classList.add('light');break;case 'dark':this.$modal.classList.add('dark');break;case 'auto':if (window.matchMedia('(prefers-color-scheme: light)').matches)this.$modal.classList.add('light'); else this.$modal.classList.add('dark');break;}if (this.navigation) {this.$modalNext.style.display = '';this.$modalPrevious.style.display = '';if (client.mobile&& !this.mobileNavigation) {this.$modalNext.style.display = 'none';this.$modalPrevious.style.display = 'none';}} else {this.$modalNext.style.display = 'none';this.$modalPrevious.style.display = 'none';}if (this.captions)this.$modalCaption.style.display = ''; else this.$modalCaption.style.display = 'none';if (this.protect) {this.$modalImage.style.WebkitTouchCallout = 'none';this.$modalImage.style.userSelect = 'none';} else {this.$modalImage.style.WebkitTouchCallout = '';this.$modalImage.style.userSelect = '';}if (client.mobile && !this.mobile)return;this.$modal.show(href);};lightboxGallery.prototype.zoomHandler = function() {var threshold = window.matchMedia('(orientation: portrait)').matches ? 50 : 100;if (window.outerWidth > window.innerWidth + threshold)this.$modal.classList.add('zooming'); else this.$modal.classList.remove('zooming');};var _lightboxGallery = new lightboxGallery;_lightboxGallery.init({id: 'gallery02',navigation: true,captions: true,mobile: true,mobileNavigation: true,scheme: 'dark',});_lightboxGallery.init({id: 'gallery03',navigation: true,captions: true,mobile: true,mobileNavigation: true,scheme: 'dark',});_lightboxGallery.init({id: 'gallery01',navigation: true,captions: true,mobile: true,mobileNavigation: true,scheme: 'dark',});function timer(id, options) {var _this = this,f;this.id = id;this.timestamp = options.timestamp;this.duration = options.duration;this.unit = options.unit;this.mode = options.mode;this.length = options.length;this.completeUrl = options.completeUrl;this.completion = options.completion;this.defer = options.defer;this.persistent = options.persistent;this.labelStyle = options.labelStyle;this.completed = false;this.status = null;this.$timer = document.getElementById(this.id);this.$parent = document.querySelector('#' + _this.$timer.id + ' ul');this.weeks = {$li: null,$digit: null,$components: null};this.days = {$li: null,$digit: null,$components: null};this.hours = {$li: null,$digit: null,$components: null};this.minutes = {$li: null,$digit: null,$components: null};this.seconds = {$li: null,$digit: null,$components: null};if (this.defer)this.$timer.addEventListener('loadelements', () => {this.init();}); else this.init();};timer.prototype.init = function() {var _this = this,kt, kd;kt = this.id + '-timestamp';kd = this.id + '-duration';switch (this.mode) {case 'duration':this.timestamp = parseInt(Date.now() / 1000) + this.duration;if (this.persistent) {if (registry.get(kd) != this.duration)registry.unset(kt);registry.set(kd, this.duration);if (registry.exists(kt))this.timestamp = parseInt(registry.get(kt)); else registry.set(kt, this.timestamp);} else {if (registry.exists(kt))registry.unset(kt);if (registry.exists(kd))registry.unset(kd);}break;default:break;}window.setInterval(function() {_this.updateDigits();_this.updateSize();}, 250);this.updateDigits();on('resize', function() {_this.updateSize();});this.updateSize();};timer.prototype.updateSize = function() {var $items, $item, $digit, $components, $component, $label, $sublabel, $symbols,w, iw, h, f, i, j, found;$items = document.querySelectorAll('#' + this.$timer.id + ' ul li .item');$symbols = document.querySelectorAll('#' + this.$timer.id + ' .symbol');$components = document.querySelectorAll('#' + this.$timer.id + ' .component');h = 0;f = 0;for (j = 0; j < $components.length; j++) {$components[j].style.lineHeight = '';$components[j].style.height = '';}for (j = 0; j < $symbols.length; j++) {$symbols[j].style.fontSize = '';$symbols[j].style.lineHeight = '';$symbols[j].style.height = '';}for (i = 0; i < $items.length; i++) {$item = $items[i];$component = $item.children[0].children[0];w = $component.offsetWidth;iw = $item.offsetWidth;$digit = $item.children[0];$digit.style.fontSize = '';$digit.style.fontSize = (w * 1.65) + 'px';h = Math.max(h, $digit.offsetHeight);f = Math.max(f, (w * 1.65));if ($item.children.length > 1) {$label = $item.children[1];found = false;for (j = 0; j < $label.children.length; j++) {$sublabel = $label.children[j];$sublabel.style.display = '';if (!found && $sublabel.offsetWidth < iw) {found = true;$sublabel.style.display = '';} else $sublabel.style.display = 'none';}}}if ($items.length == 1) {var x = $items[0].children[0],xs = getComputedStyle(x),xsa = getComputedStyle(x, ':after');if (xsa.content != 'none')h = parseInt(xsa.height) - parseInt(xs.marginTop) - parseInt(xs.marginBottom) + 24;}for (j = 0; j < $components.length; j++) {$components[j].style.lineHeight = h + 'px';$components[j].style.height = h + 'px';}for (j = 0; j < $symbols.length; j++) {$symbols[j].style.fontSize = (f * 0.5) + 'px';$symbols[j].style.lineHeight = h + 'px';$symbols[j].style.height = h + 'px';}this.$parent.style.height = '';this.$parent.style.height = this.$parent.offsetHeight + 'px';};timer.prototype.updateDigits = function() {var _this = this,x = [{class: 'weeks',digit: 0,divisor: 604800,label: {full: 'Weeks',abbreviated: 'Wks',initialed: 'W'}},{class: 'days',digit: 0,divisor: 86400,label: {full: 'Days',abbreviated: 'Days',initialed: 'D'}},{class: 'hours',digit: 0,divisor: 3600,label: {full: 'Hours',abbreviated: 'Hrs',initialed: 'H'}},{class: 'minutes',digit: 0,divisor: 60,label: {full: 'Minutes',abbreviated: 'Mins',initialed: 'M'}},{class: 'seconds',digit: 0,divisor: 1,label: {full: 'Seconds',abbreviated: 'Secs',initialed: 'S'}},],now, diff,zeros, status, i, j, x, z, t, s;now = parseInt(Date.now() / 1000);switch (this.mode) {case 'countdown':case 'duration':if (this.timestamp >= now)diff = this.timestamp - now; else {diff = 0;if (!this.completed) {this.completed = true;if (this.completion)(this.completion)();if (this.completeUrl)window.setTimeout(function() {window.location.href = _this.completeUrl;}, 1000);}}break;case 'countup':diff = Math.max(0, now - this.timestamp);break;default:case 'default':if (this.timestamp >= now)diff = this.timestamp - now; else diff = now - this.timestamp;break;}switch (this.unit) {case 'weeks':break;case 'days':x = x.slice(1);break;case 'hours':x = x.slice(2);break;default:break;}for (i = 0; i < x.length; i++) {x[i].digit = Math.floor(diff / x[i].divisor);diff -= x[i].digit * x[i].divisor;}zeros = 0;for (i = 0; i < x.length; i++)if (x[i].digit == 0)zeros++; else break;while (zeros > 0 && x.length > this.length) {x.shift();zeros--;}z = [];for (i = 0; i < x.length; i++)z.push(x[i].class);status = z.join('-');if (status == this.status) {var $digit, $components;for (i = 0; i < x.length; i++) {$digit = document.querySelector('#' + this.id + ' .' + x[i].class + ' .digit');$components = document.querySelectorAll('#' + this.id + ' .' + x[i].class + ' .digit .component');if (!$digit)continue;z = [];t = String(x[i].digit);if (x[i].digit < 10) {z.push('0');z.push(t);} else for (j = 0; j < t.length; j++)z.push(t.substr(j, 1));$digit.classList.remove('count1', 'count2', 'count3', 'count4', 'count5');$digit.classList.add('count' + z.length);if ($components.length == z.length) {for (j = 0; j < $components.length && j < z.length; j++)$components[j].innerHTML = z[j];} else {s = '';for (j = 0; j < $components.length && j < z.length; j++)s += '' + z[j] + '';$digit.innerHTML = s;}}} else {s = '';for (i = 0; i < x.length && i < this.length; i++) {z = [];t = String(x[i].digit);if (x[i].digit < 10) {z.push('0');z.push(t);} else for (j = 0; j < t.length; j++)z.push(t.substr(j, 1));if (i > 0)s += '' +':' +'';s += '' +'';s += '';for (j = 0; j < z.length; j++)s += '' + z[j] + '';s += '';switch (this.labelStyle) {default:case 'full':s += '' +'' + x[i].label.full + '' +'' + x[i].label.abbreviated + '' +'' + x[i].label.initialed + '' +'';break;case 'abbreviated':s += '' +'' + x[i].label.abbreviated + '' +'' + x[i].label.initialed + '' +'';break;case 'initialed':s += '' +'' + x[i].label.initialed + '' +'';break;case 'none':break;}s += '
' +'';}_this.$parent.innerHTML = s;this.status = status;}};new timer('timer02',{mode: 'countdown',length: 4,unit: 'days',completeUrl: '',timestamp: 1741996800,labelStyle: 'full'});new timer('timer01',{mode: 'countdown',length: 4,unit: 'days',completeUrl: '',timestamp: 1741996800,labelStyle: 'full'});onvisible.add('.container.style4', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('.container.style3', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('.container.style2', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('#container38', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('.container.style5', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('#icons05', { style: 'bounce-up', speed: 750, intensity: 0, threshold: 3, delay: 0, stagger: 125, staggerSelector: ':scope > li', replay: false });onvisible.add('#icons03', { style: 'bounce-up', speed: 750, intensity: 0, threshold: 3, delay: 0, stagger: 125, staggerSelector: ':scope > li', replay: false });onvisible.add('.container.style6', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });onvisible.add('.container.style7', { style: 'fade-up', speed: 500, intensity: 0, threshold: 2, delay: 0, replay: false });ready.run();})();