"use strict"; !(function () { "use strict";function t(t, e) { var i;for (i in e) e.hasownproperty(i) && (t[i] = e[i]);return t; }function e(t) { if (!this || this.find !== e.prototype.find) return new e(t);if ((this.length = 0, t)) if (("string" == typeof t && (t = this.find(t)), t.nodetype || t === t.window)) this.length = 1, this[0] = t;else { var i = t.length;for (this.length = i; i;) i -= 1, this[i] = t[i]; } }e.extend = t, e.contains = function (t, e) { do if ((e = e.parentnode, e === t)) return !0; while (e);return !1; }, e.parsejson = function (t) { return window.json && json.parse(t); }, t(e.prototype, { find: function find(t) { var i = this[0] || document;return "string" == typeof t && (t = i.queryselectorall ? i.queryselectorall(t) : "#" === t.charat(0) ? i.getelementbyid(t.slice(1)) : i.getelementsbytagname(t)), new e(t); }, hasclass: function hasclass(t) { return !!this[0] && new regexp("(^|\\s+)" + t + "(\\s+|$)").test(this[0].classname); }, addclass: function addclass(t) { for (var e, i = this.length; i;) { if ((i -= 1, e = this[i], !e.classname)) return e.classname = t, this;if (this.hasclass(t)) return this;e.classname += " " + t; }return this; }, removeclass: function removeclass(t) { for (var e, i = new regexp("(^|\\s+)" + t + "(\\s+|$)"), s = this.length; s;) s -= 1, e = this[s], e.classname = e.classname.replace(i, " ");return this; }, on: function on(t, e) { for (var i, s, n = t.split(/\s+/); n.length;) for (t = n.shift(), i = this.length; i;) i -= 1, s = this[i], s.addeventlistener ? s.addeventlistener(t, e, !1) : s.attachevent && s.attachevent("on" + t, e);return this; }, off: function off(t, e) { for (var i, s, n = t.split(/\s+/); n.length;) for (t = n.shift(), i = this.length; i;) i -= 1, s = this[i], s.removeeventlistener ? s.removeeventlistener(t, e, !1) : s.detachevent && s.detachevent("on" + t, e);return this; }, empty: function empty() { for (var t, e = this.length; e;) for (e -= 1, t = this[e]; t.haschildnodes();) t.removechild(t.lastchild);return this; }, first: function first() { return new e(this[0]); } }), "function" == typeof define && define.amd ? define(function () { return e; }) : (window.blueimp = window.blueimp || {}, window.blueimp.helper = e); })(), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper"], t) : (window.blueimp = window.blueimp || {}, window.blueimp.gallery = t(window.blueimp.helper || window.jquery)); })(function (t) { "use strict";function e(t, i) { return void 0 === document.body.style.maxheight ? null : this && this.options === e.prototype.options ? t && t.length ? (this.list = t, this.num = t.length, this.initoptions(i), void this.initialize()) : void this.console.log("blueimp gallery: no or empty list provided as first argument.", t) : new e(t, i); }return t.extend(e.prototype, { options: { container: "#blueimp-gallery", slidescontainer: "div", titleelement: "h3", displayclass: "blueimp-gallery-display", controlsclass: "blueimp-gallery-controls", singleclass: "blueimp-gallery-single", leftedgeclass: "blueimp-gallery-left", rightedgeclass: "blueimp-gallery-right", playingclass: "blueimp-gallery-playing", slideclass: "slide", slideloadingclass: "slide-loading", slideerrorclass: "slide-error", slidecontentclass: "slide-content", toggleclass: "toggle", prevclass: "prev", nextclass: "next", closeclass: "close", playpauseclass: "play-pause", typeproperty: "type", titleproperty: "title", urlproperty: "href", srcsetproperty: "urlset", displaytransition: !0, clearslides: !0, stretchimages: !1, togglecontrolsonreturn: !0, togglecontrolsonslideclick: !0, toggleslideshowonspace: !0, enablekeyboardnavigation: !0, closeonescape: !0, closeonslideclick: !0, closeonswipeupordown: !0, emulatetouchevents: !0, stoptoucheventspropagation: !1, hidepagescrollbars: !0, disablescroll: !0, carousel: !1, continuous: !0, unloadelements: !0, startslideshow: !1, slideshowinterval: 5e3, index: 0, preloadrange: 2, transitionspeed: 400, slideshowtransitionspeed: void 0, event: void 0, onopen: void 0, onopened: void 0, onslide: void 0, onslideend: void 0, onslidecomplete: void 0, onclose: void 0, onclosed: void 0 }, carouseloptions: { hidepagescrollbars: !1, togglecontrolsonreturn: !1, toggleslideshowonspace: !1, enablekeyboardnavigation: !1, closeonescape: !1, closeonslideclick: !1, closeonswipeupordown: !1, disablescroll: !1, startslideshow: !0 }, console: window.console && "function" == typeof window.console.log ? window.console : { log: function log() {} }, support: (function (e) { function i() { var t, i, s = n.transition;document.body.appendchild(e), s && (t = s.name.slice(0, -9) + "ransform", void 0 !== e.style[t] && (e.style[t] = "translatez(0)", i = window.getcomputedstyle(e).getpropertyvalue(s.prefix + "transform"), n.transform = { prefix: s.prefix, name: t, translate: !0, translatez: !!i && "none" !== i })), void 0 !== e.style.backgroundsize && (n.backgroundsize = {}, e.style.backgroundsize = "contain", n.backgroundsize.contain = "contain" === window.getcomputedstyle(e).getpropertyvalue("background-size"), e.style.backgroundsize = "cover", n.backgroundsize.cover = "cover" === window.getcomputedstyle(e).getpropertyvalue("background-size")), document.body.removechild(e); }var s, n = { touch: void 0 !== window.ontouchstart || window.documenttouch && document instanceof documenttouch }, o = { webkittransition: { end: "webkittransitionend", prefix: "-webkit-" }, moztransition: { end: "transitionend", prefix: "-moz-" }, otransition: { end: "otransitionend", prefix: "-o-" }, transition: { end: "transitionend", prefix: "" } };for (s in o) if (o.hasownproperty(s) && void 0 !== e.style[s]) { n.transition = o[s], n.transition.name = s;break; }return document.body ? i() : t(document).on("domcontentloaded", i), n; })(document.createelement("div")), requestanimationframe: window.requestanimationframe || window.webkitrequestanimationframe || window.mozrequestanimationframe, initialize: function initialize() { return this.initstartindex(), this.initwidget() !== !1 && (this.initeventlisteners(), this.onslide(this.index), this.ontransitionend(), void (this.options.startslideshow && this.play())); }, slide: function slide(t, e) { window.cleartimeout(this.timeout);var i, s, n, o = this.index;if (o !== t && 1 !== this.num) { if ((e || (e = this.options.transitionspeed), this.support.transform)) { for (this.options.continuous || (t = this.circle(t)), i = math.abs(o - t) / (o - t), this.options.continuous && (s = i, i = -this.positions[this.circle(t)] / this.slidewidth, i !== s && (t = -i * this.num + t)), n = math.abs(o - t) - 1; n;) n -= 1, this.move(this.circle((t > o ? t : o) - n - 1), this.slidewidth * i, 0);t = this.circle(t), this.move(o, this.slidewidth * i, e), this.move(t, 0, e), this.options.continuous && this.move(this.circle(t - i), -(this.slidewidth * i), 0); } else t = this.circle(t), this.animate(o * -this.slidewidth, t * -this.slidewidth, e);this.onslide(t); } }, getindex: function getindex() { return this.index; }, getnumber: function getnumber() { return this.num; }, prev: function prev() { (this.options.continuous || this.index) && this.slide(this.index - 1); }, next: function next() { (this.options.continuous || this.index < this.num - 1) && this.slide(this.index + 1); }, play: function play(t) { var e = this;window.cleartimeout(this.timeout), this.interval = t || this.options.slideshowinterval, this.elements[this.index] > 1 && (this.timeout = this.settimeout(!this.requestanimationframe && this.slide || function (t, i) { e.animationframeid = e.requestanimationframe.call(window, function () { e.slide(t, i); }); }, [this.index + 1, this.options.slideshowtransitionspeed], this.interval)), this.container.addclass(this.options.playingclass); }, pause: function pause() { window.cleartimeout(this.timeout), this.interval = null, this.container.removeclass(this.options.playingclass); }, add: function add(t) { var e;for (t.concat || (t = array.prototype.slice.call(t)), this.list.concat || (this.list = array.prototype.slice.call(this.list)), this.list = this.list.concat(t), this.num = this.list.length, this.num > 2 && null === this.options.continuous && (this.options.continuous = !0, this.container.removeclass(this.options.leftedgeclass)), this.container.removeclass(this.options.rightedgeclass).removeclass(this.options.singleclass), e = this.num - t.length; e < this.num; e += 1) this.addslide(e), this.positionslide(e);this.positions.length = this.num, this.initslides(!0); }, resetslides: function resetslides() { this.slidescontainer.empty(), this.unloadallslides(), this.slides = []; }, handleclose: function handleclose() { var t = this.options;this.destroyeventlisteners(), this.pause(), this.container[0].style.display = "none", this.container.removeclass(t.displayclass).removeclass(t.singleclass).removeclass(t.leftedgeclass).removeclass(t.rightedgeclass), t.hidepagescrollbars && (document.body.style.overflow = this.bodyoverflowstyle), this.options.clearslides && this.resetslides(), this.options.onclosed && this.options.onclosed.call(this); }, close: function close() { function t(i) { i.target === e.container[0] && (e.container.off(e.support.transition.end, t), e.handleclose()); }var e = this;this.options.onclose && this.options.onclose.call(this), this.support.transition && this.options.displaytransition ? (this.container.on(this.support.transition.end, t), this.container.removeclass(this.options.displayclass)) : this.handleclose(); }, circle: function circle(t) { return (this.num + t % this.num) % this.num; }, move: function move(t, e, i) { this.translatex(t, e, i), this.positions[t] = e; }, translate: function translate(t, e, i, s) { var n = this.slides[t].style, o = this.support.transition, r = this.support.transform;n[o.name + "duration"] = s + "ms", n[r.name] = "translate(" + e + "px, " + i + "px)" + (r.translatez ? " translatez(0)" : ""); }, translatex: function translatex(t, e, i) { this.translate(t, e, 0, i); }, translatey: function translatey(t, e, i) { this.translate(t, 0, e, i); }, animate: function animate(t, e, i) { if (!i) return void (this.slidescontainer[0].style.left = e + "px");var s = this, n = new date().gettime(), o = window.setinterval(function () { var r = new date().gettime() - n;return r > i ? (s.slidescontainer[0].style.left = e + "px", s.ontransitionend(), void window.clearinterval(o)) : void (s.slidescontainer[0].style.left = (e - t) * (math.floor(r / i * 100) / 100) + t + "px"); }, 4); }, preventdefault: function preventdefault(t) { t.preventdefault ? t.preventdefault() : t.returnvalue = !1; }, stoppropagation: function stoppropagation(t) { t.stoppropagation ? t.stoppropagation() : t.cancelbubble = !0; }, onresize: function onresize() { this.initslides(!0); }, onmousedown: function onmousedown(t) { t.which && 1 === t.which && "video" !== t.target.nodename && (t.preventdefault(), (t.originalevent || t).touches = [{ pagex: t.pagex, pagey: t.pagey }], this.ontouchstart(t)); }, onmousemove: function onmousemove(t) { this.touchstart && ((t.originalevent || t).touches = [{ pagex: t.pagex, pagey: t.pagey }], this.ontouchmove(t)); }, onmouseup: function onmouseup(t) { this.touchstart && (this.ontouchend(t), delete this.touchstart); }, onmouseout: function onmouseout(e) { if (this.touchstart) { var i = e.target, s = e.relatedtarget;s && (s === i || t.contains(i, s)) || this.onmouseup(e); } }, ontouchstart: function ontouchstart(t) { this.options.stoptoucheventspropagation && this.stoppropagation(t);var e = (t.originalevent || t).touches[0];this.touchstart = { x: e.pagex, y: e.pagey, time: date.now() }, this.isscrolling = void 0, this.touchdelta = {}; }, ontouchmove: function ontouchmove(t) { this.options.stoptoucheventspropagation && this.stoppropagation(t);var e, i, s = (t.originalevent || t).touches[0], n = (t.originalevent || t).scale, o = this.index;if (!(s.length > 1 || n && 1 !== n)) if ((this.options.disablescroll && t.preventdefault(), this.touchdelta = { x: s.pagex - this.touchstart.x, y: s.pagey - this.touchstart.y }, e = this.touchdelta.x, void 0 === this.isscrolling && (this.isscrolling = this.isscrolling || math.abs(e) < math.abs(this.touchdelta.y)), this.isscrolling)) this.translatey(o, this.touchdelta.y + this.positions[o], 0);else for (t.preventdefault(), window.cleartimeout(this.timeout), this.options.continuous ? i = [this.circle(o + 1), o, this.circle(o - 1)] : (this.touchdelta.x = e /= !o && e > 0 || o === this.num - 1 && e < 0 ? math.abs(e) / this.slidewidth + 1 : 1, i = [o], o && i.push(o - 1), o < this.num - 1 && i.unshift(o + 1)); i.length;) o = i.pop(), this.translatex(o, e + this.positions[o], 0); }, ontouchend: function ontouchend(t) { this.options.stoptoucheventspropagation && this.stoppropagation(t);var e, i, s, n, o, r = this.index, a = this.options.transitionspeed, l = this.slidewidth, h = number(date.now() - this.touchstart.time) < 250, d = h && math.abs(this.touchdelta.x) > 20 || math.abs(this.touchdelta.x) > l / 2, c = !r && this.touchdelta.x > 0 || r === this.num - 1 && this.touchdelta.x < 0, u = !d && this.options.closeonswipeupordown && (h && math.abs(this.touchdelta.y) > 20 || math.abs(this.touchdelta.y) > this.slideheight / 2);this.options.continuous && (c = !1), e = this.touchdelta.x < 0 ? -1 : 1, this.isscrolling ? u ? this.close() : this.translatey(r, 0, a) : d && !c ? (i = r + e, s = r - e, n = l * e, o = -l * e, this.options.continuous ? (this.move(this.circle(i), n, 0), this.move(this.circle(r - 2 * e), o, 0)) : i >= 0 && i < this.num && this.move(i, n, 0), this.move(r, this.positions[r] + n, a), this.move(this.circle(s), this.positions[this.circle(s)] + n, a), r = this.circle(s), this.onslide(r)) : this.options.continuous ? (this.move(this.circle(r - 1), -l, a), this.move(r, 0, a), this.move(this.circle(r + 1), l, a)) : (r && this.move(r - 1, -l, a), this.move(r, 0, a), r < this.num - 1 && this.move(r + 1, l, a)); }, ontouchcancel: function ontouchcancel(t) { this.touchstart && (this.ontouchend(t), delete this.touchstart); }, ontransitionend: function ontransitionend(t) { var e = this.slides[this.index];t && e !== t.target || (this.interval && this.play(), this.settimeout(this.options.onslideend, [this.index, e])); }, oncomplete: function oncomplete(e) { var i, s = e.target || e.srcelement, n = s && s.parentnode;s && n && (i = this.getnodeindex(n), t(n).removeclass(this.options.slideloadingclass), "error" === e.type ? (t(n).addclass(this.options.slideerrorclass), this.elements[i] = 3) : this.elements[i] = 2, s.clientheight > this.container[0].clientheight && (s.style.maxheight = this.container[0].clientheight), this.interval && this.slides[this.index] === n && this.play(), this.settimeout(this.options.onslidecomplete, [i, n])); }, onload: function onload(t) { this.oncomplete(t); }, onerror: function onerror(t) { this.oncomplete(t); }, onkeydown: function onkeydown(t) { switch (t.which || t.keycode) {case 13: this.options.togglecontrolsonreturn && (this.preventdefault(t), this.togglecontrols());break;case 27: this.options.closeonescape && (this.close(), t.stopimmediatepropagation());break;case 32: this.options.toggleslideshowonspace && (this.preventdefault(t), this.toggleslideshow());break;case 37: this.options.enablekeyboardnavigation && (this.preventdefault(t), this.prev());break;case 39: this.options.enablekeyboardnavigation && (this.preventdefault(t), this.next());} }, handleclick: function handleclick(e) { function i(e) { return t(n).hasclass(e) || t(o).hasclass(e); }var s = this.options, n = e.target || e.srcelement, o = n.parentnode;i(s.toggleclass) ? (this.preventdefault(e), this.togglecontrols()) : i(s.prevclass) ? (this.preventdefault(e), this.prev()) : i(s.nextclass) ? (this.preventdefault(e), this.next()) : i(s.closeclass) ? (this.preventdefault(e), this.close()) : i(s.playpauseclass) ? (this.preventdefault(e), this.toggleslideshow()) : o === this.slidescontainer[0] ? s.closeonslideclick ? (this.preventdefault(e), this.close()) : s.togglecontrolsonslideclick && (this.preventdefault(e), this.togglecontrols()) : o.parentnode && o.parentnode === this.slidescontainer[0] && s.togglecontrolsonslideclick && (this.preventdefault(e), this.togglecontrols()); }, onclick: function onclick(t) { return this.options.emulatetouchevents && this.touchdelta && (math.abs(this.touchdelta.x) > 20 || math.abs(this.touchdelta.y) > 20) ? void delete this.touchdelta : this.handleclick(t); }, updateedgeclasses: function updateedgeclasses(t) { t ? this.container.removeclass(this.options.leftedgeclass) : this.container.addclass(this.options.leftedgeclass), t === this.num - 1 ? this.container.addclass(this.options.rightedgeclass) : this.container.removeclass(this.options.rightedgeclass); }, handleslide: function handleslide(t) { this.options.continuous || this.updateedgeclasses(t), this.loadelements(t), this.options.unloadelements && this.unloadelements(t), this.settitle(t); }, onslide: function onslide(t) { this.index = t, this.handleslide(t), this.settimeout(this.options.onslide, [t, this.slides[t]]); }, settitle: function settitle(t) { var e = this.slides[t].firstchild.title, i = this.titleelement;i.length && (this.titleelement.empty(), e && i[0].appendchild(document.createtextnode(e))); }, settimeout: function settimeout(t, e, i) { var s = this;return t && window.settimeout(function () { t.apply(s, e || []); }, i || 0); }, imagefactory: function imagefactory(e, i) { function s(e) { if (!n) { if ((e = { type: e.type, target: o }, !o.parentnode)) return a.settimeout(s, [e]);n = !0, t(l).off("load error", s), d && "load" === e.type && (o.style.background = 'url("' + h + '") center no-repeat', o.style.backgroundsize = d), i(e); } }var n, o, r, a = this, l = this.imageprototype.clonenode(!1), h = e, d = this.options.stretchimages;return "string" != typeof h && (h = this.getitemproperty(e, this.options.urlproperty), r = this.getitemproperty(e, this.options.titleproperty)), d === !0 && (d = "contain"), d = this.support.backgroundsize && this.support.backgroundsize[d] && d, d ? o = this.elementprototype.clonenode(!1) : (o = l, l.draggable = !1), r && (o.title = r), t(l).on("load error", s), l.src = h, o; }, createelement: function createelement(e, i) { var s = e && this.getitemproperty(e, this.options.typeproperty), n = s && this[s.split("/")[0] + "factory"] || this.imagefactory, o = e && n.call(this, e, i), r = this.getitemproperty(e, this.options.srcsetproperty);return o || (o = this.elementprototype.clonenode(!1), this.settimeout(i, [{ type: "error", target: o }])), r && o.setattribute("srcset", r), t(o).addclass(this.options.slidecontentclass), o; }, loadelement: function loadelement(e) { this.elements[e] || (this.slides[e].firstchild ? this.elements[e] = t(this.slides[e]).hasclass(this.options.slideerrorclass) ? 3 : 2 : (this.elements[e] = 1, t(this.slides[e]).addclass(this.options.slideloadingclass), this.slides[e].appendchild(this.createelement(this.list[e], this.proxylistener)))); }, loadelements: function loadelements(t) { var e, i = math.min(this.num, 2 * this.options.preloadrange + 1), s = t;for (e = 0; e < i; e += 1) s += e * (e % 2 === 0 ? -1 : 1), s = this.circle(s), this.loadelement(s); }, unloadelements: function unloadelements(t) { var e, i;for (e in this.elements) this.elements.hasownproperty(e) && (i = math.abs(t - e), i > this.options.preloadrange && i + this.options.preloadrange < this.num && (this.unloadslide(e), delete this.elements[e])); }, addslide: function addslide(t) { var e = this.slideprototype.clonenode(!1);e.setattribute("data-index", t), this.slidescontainer[0].appendchild(e), this.slides.push(e); }, positionslide: function positionslide(t) { var e = this.slides[t];e.style.width = this.slidewidth + "px", this.support.transform && (e.style.left = t * -this.slidewidth + "px", this.move(t, this.index > t ? -this.slidewidth : this.index < t ? this.slidewidth : 0, 0)); }, initslides: function initslides(e) { var i, s;for (e || (this.positions = [], this.positions.length = this.num, this.elements = {}, this.imageprototype = document.createelement("img"), this.elementprototype = document.createelement("div"), this.slideprototype = document.createelement("div"), t(this.slideprototype).addclass(this.options.slideclass), this.slides = this.slidescontainer[0].children, i = this.options.clearslides || this.slides.length !== this.num), this.slidewidth = this.container[0].offsetwidth, this.slideheight = this.container[0].offsetheight, this.slidescontainer[0].style.width = this.num * this.slidewidth + "px", i && this.resetslides(), s = 0; s < this.num; s += 1) i && this.addslide(s), this.positionslide(s);this.options.continuous && this.support.transform && (this.move(this.circle(this.index - 1), -this.slidewidth, 0), this.move(this.circle(this.index + 1), this.slidewidth, 0)), this.support.transform || (this.slidescontainer[0].style.left = this.index * -this.slidewidth + "px"); }, unloadslide: function unloadslide(t) { var e, i;e = this.slides[t], i = e.firstchild, null !== i && e.removechild(i); }, unloadallslides: function unloadallslides() { var t, e;for (t = 0, e = this.slides.length; t < e; t++) this.unloadslide(t); }, togglecontrols: function togglecontrols() { var t = this.options.controlsclass;this.container.hasclass(t) ? this.container.removeclass(t) : this.container.addclass(t); }, toggleslideshow: function toggleslideshow() { this.interval ? this.pause() : this.play(); }, getnodeindex: function getnodeindex(t) { return parseint(t.getattribute("data-index"), 10); }, getnestedproperty: function getnestedproperty(t, e) { return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g, function (e, i, s, n, o) { var r = o || i || s || n && parseint(n, 10);e && t && (t = t[r]); }), t; }, getdataproperty: function getdataproperty(e, i) { if (e.getattribute) { var s = e.getattribute("data-" + i.replace(/([a-z])/g, "-$1").tolowercase());if ("string" == typeof s) { if (/^(true|false|null|-?\d+(\.\d+)?|\{[\s\s]*\}|\[[\s\s]*\])$/.test(s)) try { return t.parsejson(s); } catch (t) {}return s; } } }, getitemproperty: function getitemproperty(t, e) { var i = t[e];return void 0 === i && (i = this.getdataproperty(t, e), void 0 === i && (i = this.getnestedproperty(t, e))), i; }, initstartindex: function initstartindex() { var t, e = this.options.index, i = this.options.urlproperty;if (e && "number" != typeof e) for (t = 0; t < this.num; t += 1) if (this.list[t] === e || this.getitemproperty(this.list[t], i) === this.getitemproperty(e, i)) { e = t;break; }this.index = this.circle(parseint(e, 10) || 0); }, initeventlisteners: function initeventlisteners() { function e(t) { var e = i.support.transition && i.support.transition.end === t.type ? "transitionend" : t.type;i["on" + e](t); }var i = this, s = this.slidescontainer;t(window).on("resize", e), t(document.body).on("keydown", e), this.container.on("click", e), this.support.touch ? s.on("touchstart touchmove touchend touchcancel", e) : this.options.emulatetouchevents && this.support.transition && s.on("mousedown mousemove mouseup mouseout", e), this.support.transition && s.on(this.support.transition.end, e), this.proxylistener = e; }, destroyeventlisteners: function destroyeventlisteners() { var e = this.slidescontainer, i = this.proxylistener;t(window).off("resize", i), t(document.body).off("keydown", i), this.container.off("click", i), this.support.touch ? e.off("touchstart touchmove touchend touchcancel", i) : this.options.emulatetouchevents && this.support.transition && e.off("mousedown mousemove mouseup mouseout", i), this.support.transition && e.off(this.support.transition.end, i); }, handleopen: function handleopen() { this.options.onopened && this.options.onopened.call(this); }, initwidget: function initwidget() { function e(t) { t.target === i.container[0] && (i.container.off(i.support.transition.end, e), i.handleopen()); }var i = this;return this.container = t(this.options.container), this.container.length ? (this.slidescontainer = this.container.find(this.options.slidescontainer).first(), this.slidescontainer.length ? (this.titleelement = this.container.find(this.options.titleelement).first(), 1 === this.num && this.container.addclass(this.options.singleclass), this.options.onopen && this.options.onopen.call(this), this.support.transition && this.options.displaytransition ? this.container.on(this.support.transition.end, e) : this.handleopen(), this.options.hidepagescrollbars && (this.bodyoverflowstyle = document.body.style.overflow, document.body.style.overflow = "hidden"), this.container[0].style.display = "block", this.initslides(), void this.container.addclass(this.options.displayclass)) : (this.console.log("blueimp gallery: slides container not found.", this.options.slidescontainer), !1)) : (this.console.log("blueimp gallery: widget container not found.", this.options.container), !1); }, initoptions: function initoptions(e) { this.options = t.extend({}, this.options), (e && e.carousel || this.options.carousel && (!e || e.carousel !== !1)) && t.extend(this.options, this.carouseloptions), t.extend(this.options, e), this.num < 3 && (this.options.continuous = !!this.options.continuous && null), this.support.transition || (this.options.emulatetouchevents = !1), this.options.event && this.preventdefault(this.options.event); } }), e; }), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper", "./blueimp-gallery"], t) : t(window.blueimp.helper || window.jquery, window.blueimp.gallery); })(function (t, e) { "use strict";t.extend(e.prototype.options, { fullscreen: !1 });var i = e.prototype.initialize, s = e.prototype.close;return t.extend(e.prototype, { getfullscreenelement: function getfullscreenelement() { return document.fullscreenelement || document.webkitfullscreenelement || document.mozfullscreenelement || document.msfullscreenelement; }, requestfullscreen: function requestfullscreen(t) { t.requestfullscreen ? t.requestfullscreen() : t.webkitrequestfullscreen ? t.webkitrequestfullscreen() : t.mozrequestfullscreen ? t.mozrequestfullscreen() : t.msrequestfullscreen && t.msrequestfullscreen(); }, exitfullscreen: function exitfullscreen() { document.exitfullscreen ? document.exitfullscreen() : document.webkitcancelfullscreen ? document.webkitcancelfullscreen() : document.mozcancelfullscreen ? document.mozcancelfullscreen() : document.msexitfullscreen && document.msexitfullscreen(); }, initialize: function initialize() { i.call(this), this.options.fullscreen && !this.getfullscreenelement() && this.requestfullscreen(this.container[0]); }, close: function close() { this.getfullscreenelement() === this.container[0] && this.exitfullscreen(), s.call(this); } }), e; }), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper", "./blueimp-gallery"], t) : t(window.blueimp.helper || window.jquery, window.blueimp.gallery); })(function (t, e) { "use strict";t.extend(e.prototype.options, { indicatorcontainer: "ol", activeindicatorclass: "active", thumbnailproperty: "thumbnail", thumbnailindicators: !0 });var i = e.prototype.initslides, s = e.prototype.addslide, n = e.prototype.resetslides, o = e.prototype.handleclick, r = e.prototype.handleslide, a = e.prototype.handleclose;return t.extend(e.prototype, { createindicator: function createindicator(e) { var i, s, n = this.indicatorprototype.clonenode(!1), o = this.getitemproperty(e, this.options.titleproperty), r = this.options.thumbnailproperty;return this.options.thumbnailindicators && (r && (i = this.getitemproperty(e, r)), void 0 === i && (s = e.getelementsbytagname && t(e).find("img")[0], s && (i = s.src)), i && (n.style.backgroundimage = 'url("' + i + '")')), o && (n.title = o), n; }, addindicator: function addindicator(t) { if (this.indicatorcontainer.length) { var e = this.createindicator(this.list[t]);e.setattribute("data-index", t), this.indicatorcontainer[0].appendchild(e), this.indicators.push(e); } }, setactiveindicator: function setactiveindicator(e) { this.indicators && (this.activeindicator && this.activeindicator.removeclass(this.options.activeindicatorclass), this.activeindicator = t(this.indicators[e]), this.activeindicator.addclass(this.options.activeindicatorclass)); }, initslides: function initslides(t) { t || (this.indicatorcontainer = this.container.find(this.options.indicatorcontainer), this.indicatorcontainer.length && (this.indicatorprototype = document.createelement("li"), this.indicators = this.indicatorcontainer[0].children)), i.call(this, t); }, addslide: function addslide(t) { s.call(this, t), this.addindicator(t); }, resetslides: function resetslides() { n.call(this), this.indicatorcontainer.empty(), this.indicators = []; }, handleclick: function handleclick(t) { var e = t.target || t.srcelement, i = e.parentnode;if (i === this.indicatorcontainer[0]) this.preventdefault(t), this.slide(this.getnodeindex(e));else { if (i.parentnode !== this.indicatorcontainer[0]) return o.call(this, t);this.preventdefault(t), this.slide(this.getnodeindex(i)); } }, handleslide: function handleslide(t) { r.call(this, t), this.setactiveindicator(t); }, handleclose: function handleclose() { this.activeindicator && this.activeindicator.removeclass(this.options.activeindicatorclass), a.call(this); } }), e; }), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper", "./blueimp-gallery"], t) : t(window.blueimp.helper || window.jquery, window.blueimp.gallery); })(function (t, e) { "use strict";t.extend(e.prototype.options, { videocontentclass: "video-content", videoloadingclass: "video-loading", videoplayingclass: "video-playing", videoposterproperty: "poster", videosourcesproperty: "sources" });var i = e.prototype.handleslide;return t.extend(e.prototype, { handleslide: function handleslide(t) { i.call(this, t), this.playingvideo && this.playingvideo.pause(); }, videofactory: function videofactory(e, i, s) { var n, o, r, a, l, h = this, d = this.options, c = this.elementprototype.clonenode(!1), u = t(c), p = [{ type: "error", target: c }], m = s || document.createelement("video"), y = this.getitemproperty(e, d.urlproperty), f = this.getitemproperty(e, d.typeproperty), g = this.getitemproperty(e, d.titleproperty), v = this.getitemproperty(e, d.videoposterproperty), c = this.getitemproperty(e, d.videosourcesproperty);if ((u.addclass(d.videocontentclass), g && (c.title = g), m.canplaytype)) if (y && f && m.canplaytype(f)) m.src = y;else if (c) for (; c.length;) if ((o = c.shift(), y = this.getitemproperty(o, d.urlproperty), f = this.getitemproperty(o, d.typeproperty), y && f && m.canplaytype(f))) { m.src = y;break; }return v && (m.poster = v, n = this.imageprototype.clonenode(!1), t(n).addclass(d.toggleclass), n.src = v, n.draggable = !1, c.appendchild(n)), r = document.createelement("a"), r.setattribute("target", "_blank"), s || r.setattribute("download", g), r.href = y, m.src && (m.controls = !0, (s || t(m)).on("error", function () { h.settimeout(i, p); }).on("pause", function () { m.seeking || (a = !1, u.removeclass(h.options.videoloadingclass).removeclass(h.options.videoplayingclass), l && h.container.addclass(h.options.controlsclass), delete h.playingvideo, h.interval && h.play()); }).on("playing", function () { a = !1, u.removeclass(h.options.videoloadingclass).addclass(h.options.videoplayingclass), h.container.hasclass(h.options.controlsclass) ? (l = !0, h.container.removeclass(h.options.controlsclass)) : l = !1; }).on("play", function () { window.cleartimeout(h.timeout), a = !0, u.addclass(h.options.videoloadingclass), h.playingvideo = m; }), t(r).on("click", function (t) { h.preventdefault(t), a ? m.pause() : m.play(); }), c.appendchild(s && s.element || m)), c.appendchild(r), this.settimeout(i, [{ type: "load", target: c }]), c; } }), e; }), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper", "./blueimp-gallery-video"], t) : t(window.blueimp.helper || window.jquery, window.blueimp.gallery); })(function (t, e) { "use strict";if (!window.postmessage) return e;t.extend(e.prototype.options, { vimeovideoidproperty: "vimeo", vimeoplayerurl: "//player.vimeo.com/video/video_id?api=1&player_id=player_id", vimeoplayeridprefix: "vimeo-player-", vimeoclicktoplay: !0 });var i = e.prototype.textfactory || e.prototype.imagefactory, s = function s(t, e, i, _s) { this.url = t, this.videoid = e, this.playerid = i, this.clicktoplay = _s, this.element = document.createelement("div"), this.listeners = {}; }, n = 0;return t.extend(s.prototype, { canplaytype: function canplaytype() { return !0; }, on: function on(t, e) { return this.listeners[t] = e, this; }, loadapi: function loadapi() { function e() { !s && n.playonready && n.play(), s = !0; }for (var i, s, n = this, o = "//f.vimeocdn.com/js/froogaloop2.min.js", r = document.getelementsbytagname("script"), a = r.length; a;) if ((a -= 1, r[a].src === o)) { i = r[a];break; }i || (i = document.createelement("script"), i.src = o), t(i).on("load", e), r[0].parentnode.insertbefore(i, r[0]), /loaded|complete/.test(i.readystate) && e(); }, onready: function onready() { var t = this;this.ready = !0, this.player.addevent("play", function () { t.hasplayed = !0, t.onplaying(); }), this.player.addevent("pause", function () { t.onpause(); }), this.player.addevent("finish", function () { t.onpause(); }), this.playonready && this.play(); }, onplaying: function onplaying() { this.playstatus < 2 && (this.listeners.playing(), this.playstatus = 2); }, onpause: function onpause() { this.listeners.pause(), delete this.playstatus; }, insertiframe: function insertiframe() { var t = document.createelement("iframe");t.src = this.url.replace("video_id", this.videoid).replace("player_id", this.playerid), t.id = this.playerid, this.element.parentnode.replacechild(t, this.element), this.element = t; }, play: function play() { var t = this;this.playstatus || (this.listeners.play(), this.playstatus = 1), this.ready ? !this.hasplayed && (this.clicktoplay || window.navigator && /ip(hone|od|ad)/.test(window.navigator.platform)) ? this.onplaying() : this.player.api("play") : (this.playonready = !0, window.$f ? this.player || (this.insertiframe(), this.player = $f(this.element), this.player.addevent("ready", function () { t.onready(); })) : this.loadapi()); }, pause: function pause() { this.ready ? this.player.api("pause") : this.playstatus && (delete this.playonready, this.listeners.pause(), delete this.playstatus); } }), t.extend(e.prototype, { vimeoplayer: s, textfactory: function textfactory(t, e) { var o = this.options, r = this.getitemproperty(t, o.vimeovideoidproperty);return r ? (void 0 === this.getitemproperty(t, o.urlproperty) && (t[o.urlproperty] = "//vimeo.com/" + r), n += 1, this.videofactory(t, e, new s(o.vimeoplayerurl, r, o.vimeoplayeridprefix + n, o.vimeoclicktoplay))) : i.call(this, t, e); } }), e; }), (function (t) { "use strict";"function" == typeof define && define.amd ? define(["./blueimp-helper", "./blueimp-gallery-video"], t) : t(window.blueimp.helper || window.jquery, window.blueimp.gallery); })(function (t, e) { "use strict";if (!window.postmessage) return e;t.extend(e.prototype.options, { youtubevideoidproperty: "youtube", youtubeplayervars: { wmode: "transparent" }, youtubeclicktoplay: !0 });var i = e.prototype.textfactory || e.prototype.imagefactory, s = function s(t, e, i) { this.videoid = t, this.playervars = e, this.clicktoplay = i, this.element = document.createelement("div"), this.listeners = {}; };return t.extend(s.prototype, { canplaytype: function canplaytype() { return !0; }, on: function on(t, e) { return this.listeners[t] = e, this; }, loadapi: function loadapi() { var t, e = this, i = window.onyoutubeiframeapiready, s = "//www.youtube.com/iframe_api", n = document.getelementsbytagname("script"), o = n.length;for (window.onyoutubeiframeapiready = function () { i && i.apply(this), e.playonready && e.play(); }; o;) if ((o -= 1, n[o].src === s)) return;t = document.createelement("script"), t.src = s, n[0].parentnode.insertbefore(t, n[0]); }, onready: function onready() { this.ready = !0, this.playonready && this.play(); }, onplaying: function onplaying() { this.playstatus < 2 && (this.listeners.playing(), this.playstatus = 2); }, onpause: function onpause() { e.prototype.settimeout.call(this, this.checkseek, null, 2e3); }, checkseek: function checkseek() { this.statechange !== yt.playerstate.paused && this.statechange !== yt.playerstate.ended || (this.listeners.pause(), delete this.playstatus); }, onstatechange: function onstatechange(t) { switch (t.data) {case yt.playerstate.playing: this.hasplayed = !0, this.onplaying();break;case yt.playerstate.paused:case yt.playerstate.ended: this.onpause();}this.statechange = t.data; }, onerror: function onerror(t) { this.listeners.error(t); }, play: function play() { var t = this;this.playstatus || (this.listeners.play(), this.playstatus = 1), this.ready ? !this.hasplayed && (this.clicktoplay || window.navigator && /ip(hone|od|ad)/.test(window.navigator.platform)) ? this.onplaying() : this.player.playvideo() : (this.playonready = !0, window.yt && yt.player ? this.player || (this.player = new yt.player(this.element, { videoid: this.videoid, playervars: this.playervars, events: { onready: function onready() { t.onready(); }, onstatechange: function onstatechange(e) { t.onstatechange(e); }, onerror: function onerror(e) { t.onerror(e); } } })) : this.loadapi()); }, pause: function pause() { this.ready ? this.player.pausevideo() : this.playstatus && (delete this.playonready, this.listeners.pause(), delete this.playstatus); } }), t.extend(e.prototype, { youtubeplayer: s, textfactory: function textfactory(t, e) { var n = this.options, o = this.getitemproperty(t, n.youtubevideoidproperty);return o ? (void 0 === this.getitemproperty(t, n.urlproperty) && (t[n.urlproperty] = "//www.youtube.com/watch?v=" + o), void 0 === this.getitemproperty(t, n.videoposterproperty) && (t[n.videoposterproperty] = "//img.youtube.com/vi/" + o + "/maxresdefault.jpg"), this.videofactory(t, e, new s(o, n.youtubeplayervars, n.youtubeclicktoplay))) : i.call(this, t, e); } }), e; }); //# sourcemappingurl=/node_modules/blueimp-gallery/js/blueimp-gallery.min.js.map