text:  + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var i = t(this),
                  n = i.data("bs.stage"),
                  s = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);
              n || i.data("bs.stage", n = new o(this, s)), "string" == typeof e && n[e]()
          })
      }
      var i = '[data-toggle="stage"]',
          o = function(t, e) {
              this.element = t, this.options = e
          };
      o.VERSION = "3.3.5", o.TRANSITION_DURATION = 150, o.DEFAULTS = {
          easing: "cubic-bezier(.2,.7,.5,1)",
          duration: 300,
          delay: 0,
          distance: 250,
          hiddenElements: "#sidebar"
      }, o.prototype.isOpen = function() {
          return t(this.element).hasClass("stage-open")
      }, o.prototype.toggle = function() {
          this.isOpen() ? this.close() : this.open()
      }, o.prototype.open = function() {
          var e = this;
          return t(document.body).css("overflow", "hidden"), "ontouchstart" in document.documentElement && t(document).on("touchmove.bs.stage", function(t) {
              t.preventDefault()
          }), t(this.options.hiddenElements).removeClass("hidden"), t(window).one("keydown.bs.stage", t.proxy(function(t) {
              27 == t.which && this.close()
          }, this)), t(this.element).on("click.bs.stage", t.proxy(this.close, this)).trigger("open.bs.stage").addClass("stage-open"), t.support.transition ? (t(this.element).css({
              "-webkit-transition": "-webkit-transform " + this.options.duration + "ms " + this.options.easing,
              "-ms-transition": "-ms-transform " + this.options.duration + "ms " + this.options.easing,
              transition: "transform " + this.options.duration + "ms " + this.options.easing
          }), this.element.offsetWidth, void t(this.element).css({
              "-webkit-transform": "translateX(" + this.options.distance + "px)",
              "-ms-transform": "translateX(" + this.options.distance + "px)",
              transform: "translateX(" + this.options.distance + "px)"
          }).one("bsTransitionEnd", function() {
              t(e.element).trigger("opened.bs.stage")
          }).emulateTransitionEnd(this.options.duration)) : void t(e.element).css({
              left: this.options.distance + "px",
              position: "relative"
          }).trigger("opened.bs.stage")
      }, o.prototype.close = function() {
          function e() {
              t(document.body).css("overflow", "auto"), "ontouchstart" in document.documentElement && t(document).off("touchmove.bs.stage"), t(i.options.hiddenElements).addClass("hidden"), t(i.element).removeClass("stage-open").css({
                  "-webkit-transition": "",
                  "-ms-transition": "",
                  transition: ""
              }).css({
                  "-webkit-transform": "",
                  "-ms-transform": "",
                  transform: ""
              }).trigger("closed.bs.stage")
          }
          t(window).off("keydown.bs.stage");
          var i = this;
          return t.support.transition ? void t(this.element).trigger("close.bs.stage").off("click.bs.stage").css({
              "-webkit-transform": "none",
              "-ms-transform": "none",
              transform: "none"
          }).one("bsTransitionEnd", e).emulateTransitionEnd(this.options.duration) : (t(this.element).trigger("close.bs.stage").css({
              left: "",
              position: ""
          }).off("click.bs.stage"), e())
      };
      var n = t.fn.stage;
      t.fn.stage = e, t.fn.stage.Constructor = o, t.fn.stage.noConflict = function() {
          return t.fn.stage = n, this
      }, t(document).on("click", i, function() {
          var e = t(this).data(),
              i = t(this.getAttribute("data-target"));
          i.data("bs.stage") || i.stage(e), i.stage("toggle")
      })
  }(jQuery),+ function(t) {
      "use strict";
  
      function e() {
          var t = document.createElement("bootstrap"),
              e = {
                  WebkitTransition: "webkitTransitionEnd",
                  MozTransition: "transitionend",
                  OTransition: "oTransitionEnd otransitionend",
                  transition: "transitionend"
              };
          for (var i in e)
              if (void 0 !== t.style[i]) return {
                  end: e[i]
              };
          return !1
      }
      t.fn.emulateTransitionEnd = function(e) {
          var i = !1,
              o = this;
          t(this).one("bsTransitionEnd", function() {
              i = !0
          });
          var n = function() {
              i || t(o).trigger(t.support.transition.end)
          };
          return setTimeout(n, e), this
      }, t(function() {
          t.support.transition = e(), t.support.transition && (t.event.special.bsTransitionEnd = {
              bindType: t.support.transition.end,
              delegateType: t.support.transition.end,
              handle: function(e) {
                  return t(e.target).is(this) ? e.handleObj.handler.apply(this, arguments) : void 0
              }
          })
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.affix"),
                  s = "object" == typeof e && e;
              n || o.data("bs.affix", n = new i(this, s)), "string" == typeof e && n[e]()
          })
      }
      var i = function(e, o) {
          this.options = t.extend({}, i.DEFAULTS, o), this.$target = t(this.options.target).on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this)), this.$element = t(e), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()
      };
      i.VERSION = "3.3.6", i.RESET = "affix affix-top affix-bottom", i.DEFAULTS = {
          offset: 0,
          target: window
      }, i.prototype.getState = function(t, e, i, o) {
          var n = this.$target.scrollTop(),
              s = this.$element.offset(),
              a = this.$target.height();
          if (null != i && "top" == this.affixed) return i > n ? "top" : !1;
          if ("bottom" == this.affixed) return null != i ? n + this.unpin <= s.top ? !1 : "bottom" : t - o >= n + a ? !1 : "bottom";
          var r = null == this.affixed,
              l = r ? n : s.top,
              h = r ? a : e;
          return null != i && i >= n ? "top" : null != o && l + h >= t - o ? "bottom" : !1
      }, i.prototype.getPinnedOffset = function() {
          if (this.pinnedOffset) return this.pinnedOffset;
          this.$element.removeClass(i.RESET).addClass("affix");
          var t = this.$target.scrollTop(),
              e = this.$element.offset();
          return this.pinnedOffset = e.top - t
      }, i.prototype.checkPositionWithEventLoop = function() {
          setTimeout(t.proxy(this.checkPosition, this), 1)
      }, i.prototype.checkPosition = function() {
          if (this.$element.is(":visible")) {
              var e = this.$element.height(),
                  o = this.options.offset,
                  n = o.top,
                  s = o.bottom,
                  a = Math.max(t(document).height(), t(document.body).height());
              "object" != typeof o && (s = n = o), "function" == typeof n && (n = o.top(this.$element)), "function" == typeof s && (s = o.bottom(this.$element));
              var r = this.getState(a, e, n, s);
              if (this.affixed != r) {
                  null != this.unpin && this.$element.css("top", "");
                  var l = "affix" + (r ? "-" + r : ""),
                      h = t.Event(l + ".bs.affix");
                  if (this.$element.trigger(h), h.isDefaultPrevented()) return;
                  this.affixed = r, this.unpin = "bottom" == r ? this.getPinnedOffset() : null, this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix", "affixed") + ".bs.affix")
              }
              "bottom" == r && this.$element.offset({
                  top: a - e - s
              })
          }
      };
      var o = t.fn.affix;
      t.fn.affix = e, t.fn.affix.Constructor = i, t.fn.affix.noConflict = function() {
          return t.fn.affix = o, this
      }, t(window).on("load", function() {
          t('[data-spy="affix"]').each(function() {
              var i = t(this),
                  o = i.data();
              o.offset = o.offset || {}, null != o.offsetBottom && (o.offset.bottom = o.offsetBottom), null != o.offsetTop && (o.offset.top = o.offsetTop), e.call(i, o)
          })
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var i = t(this),
                  n = i.data("bs.alert");
              n || i.data("bs.alert", n = new o(this)), "string" == typeof e && n[e].call(i)
          })
      }
      var i = '[data-dismiss="alert"]',
          o = function(e) {
              t(e).on("click", i, this.close)
          };
      o.VERSION = "3.3.6", o.TRANSITION_DURATION = 150, o.prototype.close = function(e) {
          function i() {
              a.detach().trigger("closed.bs.alert").remove()
          }
          var n = t(this),
              s = n.attr("data-target");
          s || (s = n.attr("href"), s = s && s.replace(/.*(?=#[^\s]*$)/, ""));
          var a = t(s);
          e && e.preventDefault(), a.length || (a = n.closest(".alert")), a.trigger(e = t.Event("close.bs.alert")), e.isDefaultPrevented() || (a.removeClass("in"), t.support.transition && a.hasClass("fade") ? a.one("bsTransitionEnd", i).emulateTransitionEnd(o.TRANSITION_DURATION) : i())
      };
      var n = t.fn.alert;
      t.fn.alert = e, t.fn.alert.Constructor = o, t.fn.alert.noConflict = function() {
          return t.fn.alert = n, this
      }, t(document).on("click.bs.alert.data-api", i, o.prototype.close)
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.button"),
                  s = "object" == typeof e && e;
              n || o.data("bs.button", n = new i(this, s)), "toggle" == e ? n.toggle() : e && n.setState(e)
          })
      }
      var i = function(e, o) {
          this.$element = t(e), this.options = t.extend({}, i.DEFAULTS, o), this.isLoading = !1
      };
      i.VERSION = "3.3.6", i.DEFAULTS = {
          loadingText: "loading..."
      }, i.prototype.setState = function(e) {
          var i = "disabled",
              o = this.$element,
              n = o.is("input") ? "val" : "html",
              s = o.data();
          e += "Text", null == s.resetText && o.data("resetText", o[n]()), setTimeout(t.proxy(function() {
              o[n](null == s[e] ? this.options[e] : s[e]), "loadingText" == e ? (this.isLoading = !0, o.addClass(i).attr(i, i)) : this.isLoading && (this.isLoading = !1, o.removeClass(i).removeAttr(i))
          }, this), 0)
      }, i.prototype.toggle = function() {
          var t = !0,
              e = this.$element.closest('[data-toggle="buttons"]');
          if (e.length) {
              var i = this.$element.find("input");
              "radio" == i.prop("type") ? (i.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == i.prop("type") && (i.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), i.prop("checked", this.$element.hasClass("active")), t && i.trigger("change")
          } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")
      };
      var o = t.fn.button;
      t.fn.button = e, t.fn.button.Constructor = i, t.fn.button.noConflict = function() {
          return t.fn.button = o, this
      }, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function(i) {
          var o = t(i.target);
          o.hasClass("btn") || (o = o.closest(".btn")), e.call(o, "toggle"), t(i.target).is('input[type="radio"]') || t(i.target).is('input[type="checkbox"]') || i.preventDefault()
      }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function(e) {
          t(e.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(e.type))
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.carousel"),
                  s = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e),
                  a = "string" == typeof e ? e : s.slide;
              n || o.data("bs.carousel", n = new i(this, s)), "number" == typeof e ? n.to(e) : a ? n[a]() : s.interval && n.pause().cycle()
          })
      }
      var i = function(e, i) {
          this.$element = t(e), this.$indicators = this.$element.find(".carousel-indicators"), this.options = i, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", t.proxy(this.pause, this)).on("mouseleave.bs.carousel", t.proxy(this.cycle, this))
      };
      i.VERSION = "3.3.6", i.TRANSITION_DURATION = 600, i.DEFAULTS = {
          interval: 5e3,
          pause: "hover",
          wrap: !0,
          keyboard: !0
      }, i.prototype.keydown = function(t) {
          if (!/input|textarea/i.test(t.target.tagName)) {
              switch (t.which) {
                  case 37:
                      this.prev();
                      break;
                  case 39:
                      this.next();
                      break;
                  default:
                      return
              }
              t.preventDefault()
          }
      }, i.prototype.cycle = function(e) {
          return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this
      }, i.prototype.getItemIndex = function(t) {
          return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active)
      }, i.prototype.getItemForDirection = function(t, e) {
          var i = this.getItemIndex(e),
              o = "prev" == t && 0 === i || "next" == t && i == this.$items.length - 1;
          if (o && !this.options.wrap) return e;
          var n = "prev" == t ? -1 : 1,
              s = (i + n) % this.$items.length;
          return this.$items.eq(s)
      }, i.prototype.to = function(t) {
          var e = this,
              i = this.getItemIndex(this.$active = this.$element.find(".item.active"));
          return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {
              e.to(t)
          }) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", this.$items.eq(t))
      }, i.prototype.pause = function(e) {
          return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
      }, i.prototype.next = function() {
          return this.sliding ? void 0 : this.slide("next")
      }, i.prototype.prev = function() {
          return this.sliding ? void 0 : this.slide("prev")
      }, i.prototype.slide = function(e, o) {
          var n = this.$element.find(".item.active"),
              s = o || this.getItemForDirection(e, n),
              a = this.interval,
              r = "next" == e ? "left" : "right",
              l = this;
          if (s.hasClass("active")) return this.sliding = !1;
          var h = s[0],
              d = t.Event("slide.bs.carousel", {
                  relatedTarget: h,
                  direction: r
              });
          if (this.$element.trigger(d), !d.isDefaultPrevented()) {
              if (this.sliding = !0, a && this.pause(), this.$indicators.length) {
                  this.$indicators.find(".active").removeClass("active");
                  var c = t(this.$indicators.children()[this.getItemIndex(s)]);
                  c && c.addClass("active")
              }
              var p = t.Event("slid.bs.carousel", {
                  relatedTarget: h,
                  direction: r
              });
              return t.support.transition && this.$element.hasClass("slide") ? (s.addClass(e), s[0].offsetWidth, n.addClass(r), s.addClass(r), n.one("bsTransitionEnd", function() {
                  s.removeClass([e, r].join(" ")).addClass("active"), n.removeClass(["active", r].join(" ")), l.sliding = !1, setTimeout(function() {
                      l.$element.trigger(p)
                  }, 0)
              }).emulateTransitionEnd(i.TRANSITION_DURATION)) : (n.removeClass("active"), s.addClass("active"), this.sliding = !1, this.$element.trigger(p)), a && this.cycle(), this
          }
      };
      var o = t.fn.carousel;
      t.fn.carousel = e, t.fn.carousel.Constructor = i, t.fn.carousel.noConflict = function() {
          return t.fn.carousel = o, this
      };
      var n = function(i) {
          var o, n = t(this),
              s = t(n.attr("data-target") || (o = n.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, ""));
          if (s.hasClass("carousel")) {
              var a = t.extend({}, s.data(), n.data()),
                  r = n.attr("data-slide-to");
              r && (a.interval = !1), e.call(s, a), r && s.data("bs.carousel").to(r), i.preventDefault()
          }
      };
      t(document).on("click.bs.carousel.data-api", "[data-slide]", n).on("click.bs.carousel.data-api", "[data-slide-to]", n), t(window).on("load", function() {
          t('[data-ride="carousel"]').each(function() {
              var i = t(this);
              e.call(i, i.data())
          })
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          var i, o = e.attr("data-target") || (i = e.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "");
          return t(o)
      }
  
      function i(e) {
          return this.each(function() {
              var i = t(this),
                  n = i.data("bs.collapse"),
                  s = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);
              !n && s.toggle && /show|hide/.test(e) && (s.toggle = !1), n || i.data("bs.collapse", n = new o(this, s)), "string" == typeof e && n[e]()
          })
      }
      var o = function(e, i) {
          this.$element = t(e), this.options = t.extend({}, o.DEFAULTS, i), this.$trigger = t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()
      };
      o.VERSION = "3.3.6", o.TRANSITION_DURATION = 350, o.DEFAULTS = {
          toggle: !0
      }, o.prototype.dimension = function() {
          var t = this.$element.hasClass("width");
          return t ? "width" : "height"
      }, o.prototype.show = function() {
          if (!this.transitioning && !this.$element.hasClass("in")) {
              var e, n = this.$parent && this.$parent.children(".panel").children(".in, .collapsing");
              if (!(n && n.length && (e = n.data("bs.collapse"), e && e.transitioning))) {
                  var s = t.Event("show.bs.collapse");
                  if (this.$element.trigger(s), !s.isDefaultPrevented()) {
                      n && n.length && (i.call(n, "hide"), e || n.data("bs.collapse", null));
                      var a = this.dimension();
                      this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;
                      var r = function() {
                          this.$element.removeClass("collapsing").addClass("collapse in")[a](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
                      };
                      if (!t.support.transition) return r.call(this);
                      var l = t.camelCase(["scroll", a].join("-"));
                      this.$element.one("bsTransitionEnd", t.proxy(r, this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l])
                  }
              }
          }
      }, o.prototype.hide = function() {
          if (!this.transitioning && this.$element.hasClass("in")) {
              var e = t.Event("hide.bs.collapse");
              if (this.$element.trigger(e), !e.isDefaultPrevented()) {
                  var i = this.dimension();
                  this.$element[i](this.$element[i]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;
                  var n = function() {
                      this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")
                  };
                  return t.support.transition ? void this.$element[i](0).one("bsTransitionEnd", t.proxy(n, this)).emulateTransitionEnd(o.TRANSITION_DURATION) : n.call(this)
              }
          }
      }, o.prototype.toggle = function() {
          this[this.$element.hasClass("in") ? "hide" : "show"]()
      }, o.prototype.getParent = function() {
          return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy(function(i, o) {
              var n = t(o);
              this.addAriaAndCollapsedClass(e(n), n)
          }, this)).end()
      }, o.prototype.addAriaAndCollapsedClass = function(t, e) {
          var i = t.hasClass("in");
          t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i)
      };
      var n = t.fn.collapse;
      t.fn.collapse = i, t.fn.collapse.Constructor = o, t.fn.collapse.noConflict = function() {
          return t.fn.collapse = n, this
      }, t(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function(o) {
          var n = t(this);
          n.attr("data-target") || o.preventDefault();
          var s = e(n),
              a = s.data("bs.collapse"),
              r = a ? "toggle" : n.data();
          i.call(s, r)
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          var i = e.attr("data-target");
          i || (i = e.attr("href"), i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ""));
          var o = i && t(i);
          return o && o.length ? o : e.parent()
      }
  
      function i(i) {
          i && 3 === i.which || (t(n).remove(), t(s).each(function() {
              var o = t(this),
                  n = e(o),
                  s = {
                      relatedTarget: this
                  };
              n.hasClass("open") && (i && "click" == i.type && /input|textarea/i.test(i.target.tagName) && t.contains(n[0], i.target) || (n.trigger(i = t.Event("hide.bs.dropdown", s)), i.isDefaultPrevented() || (o.attr("aria-expanded", "false"), n.removeClass("open").trigger(t.Event("hidden.bs.dropdown", s)))))
          }))
      }
  
      function o(e) {
          return this.each(function() {
              var i = t(this),
                  o = i.data("bs.dropdown");
              o || i.data("bs.dropdown", o = new a(this)), "string" == typeof e && o[e].call(i)
          })
      }
      var n = ".dropdown-backdrop",
          s = '[data-toggle="dropdown"]',
          a = function(e) {
              t(e).on("click.bs.dropdown", this.toggle)
          };
      a.VERSION = "3.3.6", a.prototype.toggle = function(o) {
          var n = t(this);
          if (!n.is(".disabled, :disabled")) {
              var s = e(n),
                  a = s.hasClass("open");
              if (i(), !a) {
                  "ontouchstart" in document.documentElement && !s.closest(".navbar-nav").length && t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click", i);
                  var r = {
                      relatedTarget: this
                  };
                  if (s.trigger(o = t.Event("show.bs.dropdown", r)), o.isDefaultPrevented()) return;
                  n.trigger("focus").attr("aria-expanded", "true"), s.toggleClass("open").trigger(t.Event("shown.bs.dropdown", r))
              }
              return !1
          }
      }, a.prototype.keydown = function(i) {
          if (/(38|40|27|32)/.test(i.which) && !/input|textarea/i.test(i.target.tagName)) {
              var o = t(this);
              if (i.preventDefault(), i.stopPropagation(), !o.is(".disabled, :disabled")) {
                  var n = e(o),
                      a = n.hasClass("open");
                  if (!a && 27 != i.which || a && 27 == i.which) return 27 == i.which && n.find(s).trigger("focus"), o.trigger("click");
                  var r = " li:not(.disabled):visible a",
                      l = n.find(".dropdown-menu" + r);
                  if (l.length) {
                      var h = l.index(i.target);
                      38 == i.which && h > 0 && h--, 40 == i.which && h < l.length - 1 && h++, ~h || (h = 0), l.eq(h).trigger("focus")
                  }
              }
          }
      };
      var r = t.fn.dropdown;
      t.fn.dropdown = o, t.fn.dropdown.Constructor = a, t.fn.dropdown.noConflict = function() {
          return t.fn.dropdown = r, this
      }, t(document).on("click.bs.dropdown.data-api", i).on("click.bs.dropdown.data-api", ".dropdown form", function(t) {
          t.stopPropagation()
      }).on("click.bs.dropdown.data-api", s, a.prototype.toggle).on("keydown.bs.dropdown.data-api", s, a.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", a.prototype.keydown)
  
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.tooltip"),
                  s = "object" == typeof e && e;
              (n || !/destroy|hide/.test(e)) && (n || o.data("bs.tooltip", n = new i(this, s)), "string" == typeof e && n[e]())
          })
      }
      var i = function(t, e) {
          this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e)
      };
      i.VERSION = "3.3.6", i.TRANSITION_DURATION = 150, i.DEFAULTS = {
          animation: !0,
          placement: "top",
          selector: !1,
          template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
          trigger: "hover focus",
          title: "",
          delay: 0,
          html: !1,
          container: !1,
          viewport: {
              selector: "body",
              padding: 0
          }
      }, i.prototype.init = function(e, i, o) {
          if (this.enabled = !0, this.type = e, this.$element = t(i), this.options = this.getOptions(o), this.$viewport = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {
                  click: !1,
                  hover: !1,
                  focus: !1
              }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!");
          for (var n = this.options.trigger.split(" "), s = n.length; s--;) {
              var a = n[s];
              if ("click" == a) this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this));
              else if ("manual" != a) {
                  var r = "hover" == a ? "mouseenter" : "focusin",
                      l = "hover" == a ? "mouseleave" : "focusout";
                  this.$element.on(r + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this))
              }
          }
          this.options.selector ? this._options = t.extend({}, this.options, {
              trigger: "manual",
              selector: ""
          }) : this.fixTitle()
      }, i.prototype.getDefaults = function() {
          return i.DEFAULTS
      }, i.prototype.getOptions = function(e) {
          return e = t.extend({}, this.getDefaults(), this.$element.data(), e), e.delay && "number" == typeof e.delay && (e.delay = {
              show: e.delay,
              hide: e.delay
          }), e
      }, i.prototype.getDelegateOptions = function() {
          var e = {},
              i = this.getDefaults();
          return this._options && t.each(this._options, function(t, o) {
              i[t] != o && (e[t] = o)
          }), e
      }, i.prototype.enter = function(e) {
          var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
          return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusin" == e.type ? "focus" : "hover"] = !0), i.tip().hasClass("in") || "in" == i.hoverState ? void(i.hoverState = "in") : (clearTimeout(i.timeout), i.hoverState = "in", i.options.delay && i.options.delay.show ? void(i.timeout = setTimeout(function() {
              "in" == i.hoverState && i.show()
          }, i.options.delay.show)) : i.show())
      }, i.prototype.isInStateTrue = function() {
          for (var t in this.inState)
              if (this.inState[t]) return !0;
          return !1
      }, i.prototype.leave = function(e) {
          var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
          return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusout" == e.type ? "focus" : "hover"] = !1), i.isInStateTrue() ? void 0 : (clearTimeout(i.timeout), i.hoverState = "out", i.options.delay && i.options.delay.hide ? void(i.timeout = setTimeout(function() {
              "out" == i.hoverState && i.hide()
          }, i.options.delay.hide)) : i.hide())
      }, i.prototype.show = function() {
          var e = t.Event("show.bs." + this.type);
          if (this.hasContent() && this.enabled) {
              this.$element.trigger(e);
              var o = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
              if (e.isDefaultPrevented() || !o) return;
              var n = this,
                  s = this.tip(),
                  a = this.getUID(this.type);
              this.setContent(), s.attr("id", a), this.$element.attr("aria-describedby", a), this.options.animation && s.addClass("fade");
              var r = "function" == typeof this.options.placement ? this.options.placement.call(this, s[0], this.$element[0]) : this.options.placement,
                  l = /\s?auto?\s?/i,
                  h = l.test(r);
              h && (r = r.replace(l, "") || "top"), s.detach().css({
                  top: 0,
                  left: 0,
                  display: "block"
              }).addClass(r).data("bs." + this.type, this), this.options.container ? s.appendTo(this.options.container) : s.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);
              var d = this.getPosition(),
                  c = s[0].offsetWidth,
                  p = s[0].offsetHeight;
              if (h) {
                  var f = r,
                      u = this.getPosition(this.$viewport);
                  r = "bottom" == r && d.bottom + p > u.bottom ? "top" : "top" == r && d.top - p < u.top ? "bottom" : "right" == r && d.right + c > u.width ? "left" : "left" == r && d.left - c < u.left ? "right" : r, s.removeClass(f).addClass(r)
              }
              var g = this.getCalculatedOffset(r, d, c, p);
              this.applyPlacement(g, r);
              var m = function() {
                  var t = n.hoverState;
                  n.$element.trigger("shown.bs." + n.type), n.hoverState = null, "out" == t && n.leave(n)
              };
              t.support.transition && this.$tip.hasClass("fade") ? s.one("bsTransitionEnd", m).emulateTransitionEnd(i.TRANSITION_DURATION) : m()
          }
      }, i.prototype.applyPlacement = function(e, i) {
          var o = this.tip(),
              n = o[0].offsetWidth,
              s = o[0].offsetHeight,
              a = parseInt(o.css("margin-top"), 10),
              r = parseInt(o.css("margin-left"), 10);
          isNaN(a) && (a = 0), isNaN(r) && (r = 0), e.top += a, e.left += r, t.offset.setOffset(o[0], t.extend({
              using: function(t) {
                  o.css({
                      top: Math.round(t.top),
                      left: Math.round(t.left)
                  })
              }
          }, e), 0), o.addClass("in");
          var l = o[0].offsetWidth,
              h = o[0].offsetHeight;
          "top" == i && h != s && (e.top = e.top + s - h);
          var d = this.getViewportAdjustedDelta(i, e, l, h);
          d.left ? e.left += d.left : e.top += d.top;
          var c = /top|bottom/.test(i),
              p = c ? 2 * d.left - n + l : 2 * d.top - s + h,
              f = c ? "offsetWidth" : "offsetHeight";
          o.offset(e), this.replaceArrow(p, o[0][f], c)
      }, i.prototype.replaceArrow = function(t, e, i) {
          this.arrow().css(i ? "left" : "top", 50 * (1 - t / e) + "%").css(i ? "top" : "left", "")
      }, i.prototype.setContent = function() {
          var t = this.tip(),
              e = this.getTitle();
          t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right")
      }, i.prototype.hide = function(e) {
          function o() {
              "in" != n.hoverState && s.detach(), n.$element.removeAttr("aria-describedby").trigger("hidden.bs." + n.type), e && e()
          }
          var n = this,
              s = t(this.$tip),
              a = t.Event("hide.bs." + this.type);
          return this.$element.trigger(a), a.isDefaultPrevented() ? void 0 : (s.removeClass("in"), t.support.transition && s.hasClass("fade") ? s.one("bsTransitionEnd", o).emulateTransitionEnd(i.TRANSITION_DURATION) : o(), this.hoverState = null, this)
      }, i.prototype.fixTitle = function() {
          var t = this.$element;
          (t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")
      }, i.prototype.hasContent = function() {
          return this.getTitle()
      }, i.prototype.getPosition = function(e) {
          e = e || this.$element;
          var i = e[0],
              o = "BODY" == i.tagName,
              n = i.getBoundingClientRect();
          null == n.width && (n = t.extend({}, n, {
              width: n.right - n.left,
              height: n.bottom - n.top
          }));
          var s = o ? {
                  top: 0,
                  left: 0
              } : e.offset(),
              a = {
                  scroll: o ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()
              },
              r = o ? {
                  width: t(window).width(),
                  height: t(window).height()
              } : null;
          return t.extend({}, n, a, r, s)
      }, i.prototype.getCalculatedOffset = function(t, e, i, o) {
          return "bottom" == t ? {
              top: e.top + e.height,
              left: e.left + e.width / 2 - i / 2
          } : "top" == t ? {
              top: e.top - o,
              left: e.left + e.width / 2 - i / 2
          } : "left" == t ? {
              top: e.top + e.height / 2 - o / 2,
              left: e.left - i
          } : {
              top: e.top + e.height / 2 - o / 2,
              left: e.left + e.width
          }
      }, i.prototype.getViewportAdjustedDelta = function(t, e, i, o) {
          var n = {
              top: 0,
              left: 0
          };
          if (!this.$viewport) return n;
          var s = this.options.viewport && this.options.viewport.padding || 0,
              a = this.getPosition(this.$viewport);
          if (/right|left/.test(t)) {
              var r = e.top - s - a.scroll,
                  l = e.top + s - a.scroll + o;
              r < a.top ? n.top = a.top - r : l > a.top + a.height && (n.top = a.top + a.height - l)
          } else {
              var h = e.left - s,
                  d = e.left + s + i;
              h < a.left ? n.left = a.left - h : d > a.right && (n.left = a.left + a.width - d)
          }
          return n
      }, i.prototype.getTitle = function() {
          var t, e = this.$element,
              i = this.options;
          return t = e.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(e[0]) : i.title)
      }, i.prototype.getUID = function(t) {
          do t += ~~(1e6 * Math.random()); while (document.getElementById(t));
          return t
      }, i.prototype.tip = function() {
          if (!this.$tip && (this.$tip = t(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");
          return this.$tip
      }, i.prototype.arrow = function() {
          return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
      }, i.prototype.enable = function() {
          this.enabled = !0
      }, i.prototype.disable = function() {
          this.enabled = !1
      }, i.prototype.toggleEnabled = function() {
          this.enabled = !this.enabled
      }, i.prototype.toggle = function(e) {
          var i = this;
          e && (i = t(e.currentTarget).data("bs." + this.type), i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i))), e ? (i.inState.click = !i.inState.click, i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass("in") ? i.leave(i) : i.enter(i)
      }, i.prototype.destroy = function() {
          var t = this;
          clearTimeout(this.timeout), this.hide(function() {
              t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null
          })
      };
      var o = t.fn.tooltip;
      t.fn.tooltip = e, t.fn.tooltip.Constructor = i, t.fn.tooltip.noConflict = function() {
          return t.fn.tooltip = o, this
      }
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.popover"),
                  s = "object" == typeof e && e;
              (n || !/destroy|hide/.test(e)) && (n || o.data("bs.popover", n = new i(this, s)), "string" == typeof e && n[e]())
          })
      }
      var i = function(t, e) {
          this.init("popover", t, e)
      };
      if (!t.fn.tooltip) throw new Error("Popover requires tooltip.js");
      i.VERSION = "3.3.6", i.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {
          placement: "right",
          trigger: "click",
          content: "",
          template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
      }), i.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype), i.prototype.constructor = i, i.prototype.getDefaults = function() {
          return i.DEFAULTS
      }, i.prototype.setContent = function() {
          var t = this.tip(),
              e = this.getTitle(),
              i = this.getContent();
          t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof i ? "html" : "append" : "text"](i), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide()
      }, i.prototype.hasContent = function() {
          return this.getTitle() || this.getContent()
      }, i.prototype.getContent = function() {
          var t = this.$element,
              e = this.options;
          return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content)
      }, i.prototype.arrow = function() {
          return this.$arrow = this.$arrow || this.tip().find(".arrow")
      };
      var o = t.fn.popover;
      t.fn.popover = e, t.fn.popover.Constructor = i, t.fn.popover.noConflict = function() {
          return t.fn.popover = o, this
      }
  }(jQuery), + function(t) {
      "use strict";
  
      function e(i, o) {
          this.$body = t(document.body), this.$scrollElement = t(t(i).is(document.body) ? window : i), this.options = t.extend({}, e.DEFAULTS, o), this.selector = this.options.selector || (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", t.proxy(this.process, this)), this.refresh(), this.process()
      }
  
      function i(i) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.scrollspy"),
                  s = "object" == typeof i && i;
              n || o.data("bs.scrollspy", n = new e(this, s)), "string" == typeof i && n[i]()
          })
      }
      e.VERSION = "3.3.6", e.DEFAULTS = {
          offset: 10
      }, e.prototype.getScrollHeight = function() {
          return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
      }, e.prototype.refresh = function() {
          var e = this,
              i = "offset",
              o = 0;
          this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), t.isWindow(this.$scrollElement[0]) || (i = "position", o = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function() {
              var e = t(this),
                  n = e.data("target") || e.attr("href"),
                  s = /^#./.test(n) && t(n);
              return s && s.length && s.is(":visible") && [
                  [s[i]().top + o, n]
              ] || null
          }).sort(function(t, e) {
              return t[0] - e[0]
          }).each(function() {
              e.offsets.push(this[0]), e.targets.push(this[1])
          })
      }, e.prototype.process = function() {
          var t, e = this.$scrollElement.scrollTop() + this.options.offset,
              i = this.getScrollHeight(),
              o = this.options.offset + i - this.$scrollElement.height(),
              n = this.offsets,
              s = this.targets,
              a = this.activeTarget;
          if (this.scrollHeight != i && this.refresh(), e >= o) return a != (t = s[s.length - 1]) && this.activate(t);
          if (a && e < n[0]) return this.activeTarget = null, this.clear();
          for (t = n.length; t--;) a != s[t] && e >= n[t] && (void 0 === n[t + 1] || e < n[t + 1]) && this.activate(s[t])
      }, e.prototype.activate = function(e) {
          this.activeTarget = e, this.clear();
          var i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]',
              o = t(i).parents("li").addClass("active");
          o.parent(".dropdown-menu").length && (o = o.closest("li.dropdown").addClass("active")), o.trigger("activate.bs.scrollspy")
      }, e.prototype.clear = function() {
          t(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")
      };
      var o = t.fn.scrollspy;
      t.fn.scrollspy = i, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function() {
          return t.fn.scrollspy = o, this
      }, t(window).on("load.bs.scrollspy.data-api", function() {
          t('[data-spy="scroll"]').each(function() {
              var e = t(this);
              i.call(e, e.data())
          })
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.tab");
              n || o.data("bs.tab", n = new i(this)), "string" == typeof e && n[e]()
          })
      }
      var i = function(e) {
          this.element = t(e)
      };
      i.VERSION = "3.3.6", i.TRANSITION_DURATION = 150, i.prototype.show = function() {
          var e = this.element,
              i = e.closest("ul:not(.dropdown-menu)"),
              o = e.data("target");
          if (o || (o = e.attr("href"), o = o && o.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active")) {
              var n = i.find(".active:last a"),
                  s = t.Event("hide.bs.tab", {
                      relatedTarget: e[0]
                  }),
                  a = t.Event("show.bs.tab", {
                      relatedTarget: n[0]
                  });
              if (n.trigger(s), e.trigger(a), !a.isDefaultPrevented() && !s.isDefaultPrevented()) {
                  var r = t(o);
                  this.activate(e.closest("li"), i), this.activate(r, r.parent(), function() {
                      n.trigger({
                          type: "hidden.bs.tab",
                          relatedTarget: e[0]
                      }), e.trigger({
                          type: "shown.bs.tab",
                          relatedTarget: n[0]
                      })
                  })
              }
          }
      }, i.prototype.activate = function(e, o, n) {
          function s() {
              a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), r ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("fade"), e.parent(".dropdown-menu").length && e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), n && n()
          }
          var a = o.find("> .active"),
              r = n && t.support.transition && (a.length && a.hasClass("fade") || !!o.find("> .fade").length);
          a.length && r ? a.one("bsTransitionEnd", s).emulateTransitionEnd(i.TRANSITION_DURATION) : s(), a.removeClass("in")
      };
      var o = t.fn.tab;
      t.fn.tab = e, t.fn.tab.Constructor = i, t.fn.tab.noConflict = function() {
          return t.fn.tab = o, this
      };
      var n = function(i) {
          i.preventDefault(), e.call(t(this), "show")
      };
      t(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', n).on("click.bs.tab.data-api", '[data-toggle="pill"]', n)
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var i = t(this),
                  n = i.data("bs.enter"),
                  s = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);
              n || i.data("bs.enter", n = new o(this, s)), "string" == typeof e && n[e]()
          })
      }
      var i = '[data-transition="entrance"]',
          o = function(e, i) {
              t.support.transition && (this.element = e, this.options = i, this.handler = null, this.addEventListeners())
          };
      o.VERSION = "3.3.5", o.DEFAULTS = {
          easing: "cubic-bezier(.2,.7,.5,1)",
          duration: 1200,
          delay: 0
      }, o.prototype.addEventListeners = function() {
          var e = t.proxy(this.checkForEnter, this);
          this.listener = t(window).on("scroll.enter", this.handler = function() {
              window.requestAnimationFrame(e)
          }), this.checkForEnter()
      }, o.prototype.removeEventListeners = function() {
          t(window).off("scroll.enter", this.handler)
      }, o.prototype.checkForEnter = function() {
          var e = window.innerHeight,
              i = this.element.getBoundingClientRect();
          e - i.top >= 0 && setTimeout(t.proxy(this.triggerEntrance, this), this.options.delay)
      }, o.prototype.triggerEntrance = function() {
          this.removeEventListeners(), t(this.element).css({
              "-webkit-transition": "-webkit-transform " + this.options.duration + "ms " + this.options.easing,
              "-ms-transition": "-ms-transform " + this.options.duration + "ms " + this.options.easing,
              transition: "transform " + this.options.duration + "ms " + this.options.easing
          }).css({
              "-webkit-transform": "none",
              "-ms-transform": "none",
              transform: "none"
          }).trigger("enter.bs.enter")
      };
      var n = t.fn.enter;
      t.fn.enter = e, t.fn.enter.Constructor = o, t.fn.enter.noConflict = function() {
          return t.fn.enter = n, this
      }, t(function() {
          t(i).enter()
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e(e) {
          return this.each(function() {
              var o = t(this),
                  n = o.data("bs.image-grid"),
                  s = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e);
              n || o.data("bs.image-grid", n = new i(this, s)), "string" == typeof e && n[e].call(o)
          })
      }
      var i = function(e, o) {
          this.cleanWhitespace(e), this.row = 0, this.rownum = 1, this.elements = [], this.element = e, this.albumWidth = t(e).width(), this.images = t(e).children(), this.options = t.extend({}, i.DEFAULTS, o), t(window).on("resize", t.proxy(this.handleResize, this)), this.processImages()
      };
      i.VERSION = "3.3.1", i.TRANSITION_DURATION = 350, i.DEFAULTS = {
          padding: 10,
          targetHeight: 300,
          display: "inline-block"
      }, i.prototype.handleResize = function() {
          this.row = 0, this.rownum = 1, this.elements = [], this.albumWidth = t(this.element).width(), this.images = t(this.element).children(), this.processImages()
      }, i.prototype.processImages = function() {
          var e = this;
          this.images.each(function(i) {
              var o = t(this),
                  n = o.is("img") ? o : o.find("img"),
                  s = "undefined" != typeof n.data("width") ? n.data("width") : n.width(),
                  a = "undefined" != typeof n.data("height") ? n.data("height") : n.height();
              n.data("width", s), n.data("height", a);
              var r = Math.ceil(s / a * e.options.targetHeight),
                  l = Math.ceil(e.options.targetHeight);
              e.elements.push([this, r, l]), e.row += r + e.options.padding, e.row > e.albumWidth && e.elements.length && (e.resizeRow(e.row - e.options.padding), e.row = 0, e.elements = [], e.rownum += 1), e.images.length - 1 == i && e.elements.length && (e.resizeRow(e.row), e.row = 0, e.elements = [], e.rownum += 1)
          })
      }, i.prototype.resizeRow = function(e) {
          for (var i = this.options.padding * (this.elements.length - 1), o = this.albumWidth - i, n = o / (e - i), s = i, a = (e < this.albumWidth, 0); a < this.elements.length; a++) {
              var r = t(this.elements[a][0]),
                  l = Math.floor(this.elements[a][1] * n),
                  h = Math.floor(this.elements[a][2] * n),
                  d = a < this.elements.length - 1;
              s += l, !d && s < this.albumWidth && (l += this.albumWidth - s), l--;
              var c = r.is("img") ? r : r.find("img");
              c.width(l), c.height(h), this.applyModifications(r, d)
          }
      }, i.prototype.applyModifications = function(t, e) {
          var i = {
              "margin-bottom": this.options.padding + "px",
              "margin-right": e ? this.options.padding + "px" : 0,
              display: this.options.display,
              "vertical-align": "bottom"
          };
          t.css(i)
      }, i.prototype.cleanWhitespace = function(e) {
          t(e).contents().filter(function() {
              return 3 == this.nodeType && !/\S/.test(this.nodeValue)
          }).remove()
      };
      var o = t.fn.imageGrid;
      t.fn.imageGrid = e, t.fn.imageGrid.Constructor = i, t.fn.imageGrid.noConflict = function() {
          return t.fn.imageGrid = o, this
      }, t(function() {
          t('[data-grid="images"]').imageGrid()
      })
  }(jQuery), + function(t) {
      "use strict";
  
      function e() {
          this._activeZoom = this._initialScrollPosition = this._initialTouchPosition = this._touchMoveListener = null, this._$document = t(document), this._$window = t(window), this._$body = t(document.body), this._boundClick = t.proxy(this._clickHandler, this)
      }
  
      function i(e) {
          this._fullHeight = this._fullWidth = this._overlay = this._targetImageWrap = null, this._targetImage = e, this._$body = t(document.body)
      }
      e.prototype.listen = function() {
          this._$body.on("click", '[data-action="zoom"]', t.proxy(this._zoom, this))
      }, e.prototype._zoom = function(e) {
          var o = e.target;
          if (o && "IMG" == o.tagName && !this._$body.hasClass("zoom-overlay-open")) return e.metaKey || e.ctrlKey ? window.open(e.target.getAttribute("data-original") || e.target.src, "_blank") : void(o.width >= t(window).width() - i.OFFSET || (this._activeZoomClose(!0), this._activeZoom = new i(o), this._activeZoom.zoomImage(), this._$window.on("scroll.zoom", t.proxy(this._scrollHandler, this)), this._$document.on("keyup.zoom", t.proxy(this._keyHandler, this)), this._$document.on("touchstart.zoom", t.proxy(this._touchStart, this)), document.addEventListener ? document.addEventListener("click", this._boundClick, !0) : document.attachEvent("onclick", this._boundClick, !0), "bubbles" in e ? e.bubbles && e.stopPropagation() : e.cancelBubble = !0))
      }, e.prototype._activeZoomClose = function(t) {
          this._activeZoom && (t ? this._activeZoom.dispose() : this._activeZoom.close(), this._$window.off(".zoom"), this._$document.off(".zoom"), document.removeEventListener("click", this._boundClick, !0), this._activeZoom = null)
      }, e.prototype._scrollHandler = function(e) {
          null === this._initialScrollPosition && (this._initialScrollPosition = t(window).scrollTop());
          var i = this._initialScrollPosition - t(window).scrollTop();
          Math.abs(i) >= 40 && this._activeZoomClose()
      }, e.prototype._keyHandler = function(t) {
          27 == t.keyCode && this._activeZoomClose()
      }, e.prototype._clickHandler = function(t) {
          t.preventDefault ? t.preventDefault() : event.returnValue = !1, "bubbles" in t ? t.bubbles && t.stopPropagation() : t.cancelBubble = !0, this._activeZoomClose()
      }, e.prototype._touchStart = function(e) {
          this._initialTouchPosition = e.touches[0].pageY, t(e.target).on("touchmove.zoom", t.proxy(this._touchMove, this))
      }, e.prototype._touchMove = function(e) {
          Math.abs(e.touches[0].pageY - this._initialTouchPosition) > 10 && (this._activeZoomClose(), t(e.target).off("touchmove.zoom"))
      }, i.OFFSET = 80, i._MAX_WIDTH = 2560, i._MAX_HEIGHT = 4096, i.prototype.zoomImage = function() {
          var e = document.createElement("img");
          e.onload = t.proxy(function() {
              this._fullHeight = Number(e.height), this._fullWidth = Number(e.width), this._zoomOriginal()
          }, this), e.src = this._targetImage.src
      }, i.prototype._zoomOriginal = function() {
          this._targetImageWrap = document.createElement("div"), this._targetImageWrap.className = "zoom-img-wrap", this._targetImage.parentNode.insertBefore(this._targetImageWrap, this._targetImage), this._targetImageWrap.appendChild(this._targetImage), t(this._targetImage).addClass("zoom-img").attr("data-action", "zoom-out"), this._overlay = document.createElement("div"), this._overlay.className = "zoom-overlay", document.body.appendChild(this._overlay), this._calculateZoom(), this._triggerAnimation()
      }, i.prototype._calculateZoom = function() {
          this._targetImage.offsetWidth;
          var e = this._fullWidth,
              o = this._fullHeight,
              n = (t(window).scrollTop(), e / this._targetImage.width),
              s = t(window).height() - i.OFFSET,
              a = t(window).width() - i.OFFSET,
              r = e / o,
              l = a / s;
          this._imgScaleFactor = a > e && s > o ? n : l > r ? s / o * n : a / e * n
      }, i.prototype._triggerAnimation = function() {
          this._targetImage.offsetWidth;
          var e = t(this._targetImage).offset(),
              i = t(window).scrollTop(),
              o = i + t(window).height() / 2,
              n = t(window).width() / 2,
              s = e.top + this._targetImage.height / 2,
              a = e.left + this._targetImage.width / 2;
          this._translateY = o - s, this._translateX = n - a;
          var r = "scale(" + this._imgScaleFactor + ")",
              l = "translate(" + this._translateX + "px, " + this._translateY + "px)";
          t.support.transition && (l += " translateZ(0)"), t(this._targetImage).css({
              "-webkit-transform": r,
              "-ms-transform": r,
              transform: r
          }), t(this._targetImageWrap).css({
              "-webkit-transform": l,
              "-ms-transform": l,
              transform: l
          }), this._$body.addClass("zoom-overlay-open")
      }, i.prototype.close = function() {
          return this._$body.removeClass("zoom-overlay-open").addClass("zoom-overlay-transitioning"), t(this._targetImage).css({
              "-webkit-transform": "",
              "-ms-transform": "",
              transform: ""
          }), t(this._targetImageWrap).css({
              "-webkit-transform": "",
              "-ms-transform": "",
              transform: ""
          }), t.support.transition ? void t(this._targetImage).one(t.support.transition.end, t.proxy(this.dispose, this)).emulateTransitionEnd(300) : this.dispose()
      }, i.prototype.dispose = function() {
          this._targetImageWrap && this._targetImageWrap.parentNode && (t(this._targetImage).removeClass("zoom-img").attr("data-action", "zoom"), this._targetImageWrap.parentNode.replaceChild(this._targetImage, this._targetImageWrap), this._overlay.parentNode.removeChild(this._overlay), this._$body.removeClass("zoom-overlay-transitioning"))
      }, t(function() {
          (new e).listen()
      })
  }(jQuery);