js/bootstrap/bootstrap.min.js
changeset 0 4869aea77e21
equal deleted inserted replaced
-1:000000000000 0:4869aea77e21
       
     1 /*!
       
     2  * Bootstrap v3.3.5 (http://getbootstrap.com)
       
     3  * Copyright 2011-2015 Twitter, Inc.
       
     4  * Licensed under the MIT license
       
     5  */
       
     6 if ("undefined" == typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");
       
     7 +function (a) {
       
     8     "use strict";
       
     9     var b = a.fn.jquery.split(" ")[0].split(".");
       
    10     if (b[0] < 2 && b[1] < 9 || 1 == b[0] && 9 == b[1] && b[2] < 1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")
       
    11 }(jQuery), +function (a) {
       
    12     "use strict";
       
    13     function b() {
       
    14         var a = document.createElement("bootstrap"), b = {
       
    15             WebkitTransition: "webkitTransitionEnd",
       
    16             MozTransition: "transitionend",
       
    17             OTransition: "oTransitionEnd otransitionend",
       
    18             transition: "transitionend"
       
    19         };
       
    20         for (var c in b)if (void 0 !== a.style[c])return {end: b[c]};
       
    21         return !1
       
    22     }
       
    23 
       
    24     a.fn.emulateTransitionEnd = function (b) {
       
    25         var c = !1, d = this;
       
    26         a(this).one("bsTransitionEnd", function () {
       
    27             c = !0
       
    28         });
       
    29         var e = function () {
       
    30             c || a(d).trigger(a.support.transition.end)
       
    31         };
       
    32         return setTimeout(e, b), this
       
    33     }, a(function () {
       
    34         a.support.transition = b(), a.support.transition && (a.event.special.bsTransitionEnd = {
       
    35             bindType: a.support.transition.end,
       
    36             delegateType: a.support.transition.end,
       
    37             handle: function (b) {
       
    38                 return a(b.target).is(this) ? b.handleObj.handler.apply(this, arguments) : void 0
       
    39             }
       
    40         })
       
    41     })
       
    42 }(jQuery), +function (a) {
       
    43     "use strict";
       
    44     function b(b) {
       
    45         return this.each(function () {
       
    46             var c = a(this), e = c.data("bs.alert");
       
    47             e || c.data("bs.alert", e = new d(this)), "string" == typeof b && e[b].call(c)
       
    48         })
       
    49     }
       
    50 
       
    51     var c = '[data-dismiss="alert"]', d = function (b) {
       
    52         a(b).on("click", c, this.close)
       
    53     };
       
    54     d.VERSION = "3.3.5", d.TRANSITION_DURATION = 150, d.prototype.close = function (b) {
       
    55         function c() {
       
    56             g.detach().trigger("closed.bs.alert").remove()
       
    57         }
       
    58 
       
    59         var e = a(this), f = e.attr("data-target");
       
    60         f || (f = e.attr("href"), f = f && f.replace(/.*(?=#[^\s]*$)/, ""));
       
    61         var g = a(f);
       
    62         b && b.preventDefault(), g.length || (g = e.closest(".alert")), g.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (g.removeClass("in"), a.support.transition && g.hasClass("fade") ? g.one("bsTransitionEnd", c).emulateTransitionEnd(d.TRANSITION_DURATION) : c())
       
    63     };
       
    64     var e = a.fn.alert;
       
    65     a.fn.alert = b, a.fn.alert.Constructor = d, a.fn.alert.noConflict = function () {
       
    66         return a.fn.alert = e, this
       
    67     }, a(document).on("click.bs.alert.data-api", c, d.prototype.close)
       
    68 }(jQuery), +function (a) {
       
    69     "use strict";
       
    70     function b(b) {
       
    71         return this.each(function () {
       
    72             var d = a(this), e = d.data("bs.button"), f = "object" == typeof b && b;
       
    73             e || d.data("bs.button", e = new c(this, f)), "toggle" == b ? e.toggle() : b && e.setState(b)
       
    74         })
       
    75     }
       
    76 
       
    77     var c = function (b, d) {
       
    78         this.$element = a(b), this.options = a.extend({}, c.DEFAULTS, d), this.isLoading = !1
       
    79     };
       
    80     c.VERSION = "3.3.5", c.DEFAULTS = {loadingText: "loading..."}, c.prototype.setState = function (b) {
       
    81         var c = "disabled", d = this.$element, e = d.is("input") ? "val" : "html", f = d.data();
       
    82         b += "Text", null == f.resetText && d.data("resetText", d[e]()), setTimeout(a.proxy(function () {
       
    83             d[e](null == f[b] ? this.options[b] : f[b]), "loadingText" == b ? (this.isLoading = !0, d.addClass(c).attr(c, c)) : this.isLoading && (this.isLoading = !1, d.removeClass(c).removeAttr(c))
       
    84         }, this), 0)
       
    85     }, c.prototype.toggle = function () {
       
    86         var a = !0, b = this.$element.closest('[data-toggle="buttons"]');
       
    87         if (b.length) {
       
    88             var c = this.$element.find("input");
       
    89             "radio" == c.prop("type") ? (c.prop("checked") && (a = !1), b.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == c.prop("type") && (c.prop("checked") !== this.$element.hasClass("active") && (a = !1), this.$element.toggleClass("active")), c.prop("checked", this.$element.hasClass("active")), a && c.trigger("change")
       
    90         } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")
       
    91     };
       
    92     var d = a.fn.button;
       
    93     a.fn.button = b, a.fn.button.Constructor = c, a.fn.button.noConflict = function () {
       
    94         return a.fn.button = d, this
       
    95     }, a(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function (c) {
       
    96         var d = a(c.target);
       
    97         d.hasClass("btn") || (d = d.closest(".btn")), b.call(d, "toggle"), a(c.target).is('input[type="radio"]') || a(c.target).is('input[type="checkbox"]') || c.preventDefault()
       
    98     }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function (b) {
       
    99         a(b.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(b.type))
       
   100     })
       
   101 }(jQuery), +function (a) {
       
   102     "use strict";
       
   103     function b(b) {
       
   104         return this.each(function () {
       
   105             var d = a(this), e = d.data("bs.carousel"), f = a.extend({}, c.DEFAULTS, d.data(), "object" == typeof b && b), g = "string" == typeof b ? b : f.slide;
       
   106             e || d.data("bs.carousel", e = new c(this, f)), "number" == typeof b ? e.to(b) : g ? e[g]() : f.interval && e.pause().cycle()
       
   107         })
       
   108     }
       
   109 
       
   110     var c = function (b, c) {
       
   111         this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", a.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", a.proxy(this.pause, this)).on("mouseleave.bs.carousel", a.proxy(this.cycle, this))
       
   112     };
       
   113     c.VERSION = "3.3.5", c.TRANSITION_DURATION = 600, c.DEFAULTS = {interval: 5e3, pause: "hover", wrap: !0, keyboard: !0}, c.prototype.keydown = function (a) {
       
   114         if (!/input|textarea/i.test(a.target.tagName)) {
       
   115             switch (a.which) {
       
   116                 case 37:
       
   117                     this.prev();
       
   118                     break;
       
   119                 case 39:
       
   120                     this.next();
       
   121                     break;
       
   122                 default:
       
   123                     return
       
   124             }
       
   125             a.preventDefault()
       
   126         }
       
   127     }, c.prototype.cycle = function (b) {
       
   128         return b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(a.proxy(this.next, this), this.options.interval)), this
       
   129     }, c.prototype.getItemIndex = function (a) {
       
   130         return this.$items = a.parent().children(".item"), this.$items.index(a || this.$active)
       
   131     }, c.prototype.getItemForDirection = function (a, b) {
       
   132         var c = this.getItemIndex(b), d = "prev" == a && 0 === c || "next" == a && c == this.$items.length - 1;
       
   133         if (d && !this.options.wrap)return b;
       
   134         var e = "prev" == a ? -1 : 1, f = (c + e) % this.$items.length;
       
   135         return this.$items.eq(f)
       
   136     }, c.prototype.to = function (a) {
       
   137         var b = this, c = this.getItemIndex(this.$active = this.$element.find(".item.active"));
       
   138         return a > this.$items.length - 1 || 0 > a ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function () {
       
   139             b.to(a)
       
   140         }) : c == a ? this.pause().cycle() : this.slide(a > c ? "next" : "prev", this.$items.eq(a))
       
   141     }, c.prototype.pause = function (b) {
       
   142         return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
       
   143     }, c.prototype.next = function () {
       
   144         return this.sliding ? void 0 : this.slide("next")
       
   145     }, c.prototype.prev = function () {
       
   146         return this.sliding ? void 0 : this.slide("prev")
       
   147     }, c.prototype.slide = function (b, d) {
       
   148         var e = this.$element.find(".item.active"), f = d || this.getItemForDirection(b, e), g = this.interval, h = "next" == b ? "left" : "right", i = this;
       
   149         if (f.hasClass("active"))return this.sliding = !1;
       
   150         var j = f[0], k = a.Event("slide.bs.carousel", {relatedTarget: j, direction: h});
       
   151         if (this.$element.trigger(k), !k.isDefaultPrevented()) {
       
   152             if (this.sliding = !0, g && this.pause(), this.$indicators.length) {
       
   153                 this.$indicators.find(".active").removeClass("active");
       
   154                 var l = a(this.$indicators.children()[this.getItemIndex(f)]);
       
   155                 l && l.addClass("active")
       
   156             }
       
   157             var m = a.Event("slid.bs.carousel", {relatedTarget: j, direction: h});
       
   158             return a.support.transition && this.$element.hasClass("slide") ? (f.addClass(b), f[0].offsetWidth, e.addClass(h), f.addClass(h), e.one("bsTransitionEnd", function () {
       
   159                 f.removeClass([b, h].join(" ")).addClass("active"), e.removeClass(["active", h].join(" ")), i.sliding = !1, setTimeout(function () {
       
   160                     i.$element.trigger(m)
       
   161                 }, 0)
       
   162             }).emulateTransitionEnd(c.TRANSITION_DURATION)) : (e.removeClass("active"), f.addClass("active"), this.sliding = !1, this.$element.trigger(m)), g && this.cycle(), this
       
   163         }
       
   164     };
       
   165     var d = a.fn.carousel;
       
   166     a.fn.carousel = b, a.fn.carousel.Constructor = c, a.fn.carousel.noConflict = function () {
       
   167         return a.fn.carousel = d, this
       
   168     };
       
   169     var e = function (c) {
       
   170         var d, e = a(this), f = a(e.attr("data-target") || (d = e.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, ""));
       
   171         if (f.hasClass("carousel")) {
       
   172             var g = a.extend({}, f.data(), e.data()), h = e.attr("data-slide-to");
       
   173             h && (g.interval = !1), b.call(f, g), h && f.data("bs.carousel").to(h), c.preventDefault()
       
   174         }
       
   175     };
       
   176     a(document).on("click.bs.carousel.data-api", "[data-slide]", e).on("click.bs.carousel.data-api", "[data-slide-to]", e), a(window).on("load", function () {
       
   177         a('[data-ride="carousel"]').each(function () {
       
   178             var c = a(this);
       
   179             b.call(c, c.data())
       
   180         })
       
   181     })
       
   182 }(jQuery), +function (a) {
       
   183     "use strict";
       
   184     function b(b) {
       
   185         var c, d = b.attr("data-target") || (c = b.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, "");
       
   186         return a(d)
       
   187     }
       
   188 
       
   189     function c(b) {
       
   190         return this.each(function () {
       
   191             var c = a(this), e = c.data("bs.collapse"), f = a.extend({}, d.DEFAULTS, c.data(), "object" == typeof b && b);
       
   192             !e && f.toggle && /show|hide/.test(b) && (f.toggle = !1), e || c.data("bs.collapse", e = new d(this, f)), "string" == typeof b && e[b]()
       
   193         })
       
   194     }
       
   195 
       
   196     var d = function (b, c) {
       
   197         this.$element = a(b), this.options = a.extend({}, d.DEFAULTS, c), this.$trigger = a('[data-toggle="collapse"][href="#' + b.id + '"],[data-toggle="collapse"][data-target="#' + b.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()
       
   198     };
       
   199     d.VERSION = "3.3.5", d.TRANSITION_DURATION = 350, d.DEFAULTS = {toggle: !0}, d.prototype.dimension = function () {
       
   200         var a = this.$element.hasClass("width");
       
   201         return a ? "width" : "height"
       
   202     }, d.prototype.show = function () {
       
   203         if (!this.transitioning && !this.$element.hasClass("in")) {
       
   204             var b, e = this.$parent && this.$parent.children(".panel").children(".in, .collapsing");
       
   205             if (!(e && e.length && (b = e.data("bs.collapse"), b && b.transitioning))) {
       
   206                 var f = a.Event("show.bs.collapse");
       
   207                 if (this.$element.trigger(f), !f.isDefaultPrevented()) {
       
   208                     e && e.length && (c.call(e, "hide"), b || e.data("bs.collapse", null));
       
   209                     var g = this.dimension();
       
   210                     this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;
       
   211                     var h = function () {
       
   212                         this.$element.removeClass("collapsing").addClass("collapse in")[g](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
       
   213                     };
       
   214                     if (!a.support.transition)return h.call(this);
       
   215                     var i = a.camelCase(["scroll", g].join("-"));
       
   216                     this.$element.one("bsTransitionEnd", a.proxy(h, this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])
       
   217                 }
       
   218             }
       
   219         }
       
   220     }, d.prototype.hide = function () {
       
   221         if (!this.transitioning && this.$element.hasClass("in")) {
       
   222             var b = a.Event("hide.bs.collapse");
       
   223             if (this.$element.trigger(b), !b.isDefaultPrevented()) {
       
   224                 var c = this.dimension();
       
   225                 this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;
       
   226                 var e = function () {
       
   227                     this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")
       
   228                 };
       
   229                 return a.support.transition ? void this.$element[c](0).one("bsTransitionEnd", a.proxy(e, this)).emulateTransitionEnd(d.TRANSITION_DURATION) : e.call(this)
       
   230             }
       
   231         }
       
   232     }, d.prototype.toggle = function () {
       
   233         this[this.$element.hasClass("in") ? "hide" : "show"]()
       
   234     }, d.prototype.getParent = function () {
       
   235         return a(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(a.proxy(function (c, d) {
       
   236             var e = a(d);
       
   237             this.addAriaAndCollapsedClass(b(e), e)
       
   238         }, this)).end()
       
   239     }, d.prototype.addAriaAndCollapsedClass = function (a, b) {
       
   240         var c = a.hasClass("in");
       
   241         a.attr("aria-expanded", c), b.toggleClass("collapsed", !c).attr("aria-expanded", c)
       
   242     };
       
   243     var e = a.fn.collapse;
       
   244     a.fn.collapse = c, a.fn.collapse.Constructor = d, a.fn.collapse.noConflict = function () {
       
   245         return a.fn.collapse = e, this
       
   246     }, a(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function (d) {
       
   247         var e = a(this);
       
   248         e.attr("data-target") || d.preventDefault();
       
   249         var f = b(e), g = f.data("bs.collapse"), h = g ? "toggle" : e.data();
       
   250         c.call(f, h)
       
   251     })
       
   252 }(jQuery), +function (a) {
       
   253     "use strict";
       
   254     function b(b) {
       
   255         var c = b.attr("data-target");
       
   256         c || (c = b.attr("href"), c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ""));
       
   257         var d = c && a(c);
       
   258         return d && d.length ? d : b.parent()
       
   259     }
       
   260 
       
   261     function c(c) {
       
   262         c && 3 === c.which || (a(e).remove(), a(f).each(function () {
       
   263             var d = a(this), e = b(d), f = {relatedTarget: this};
       
   264             e.hasClass("open") && (c && "click" == c.type && /input|textarea/i.test(c.target.tagName) && a.contains(e[0], c.target) || (e.trigger(c = a.Event("hide.bs.dropdown", f)), c.isDefaultPrevented() || (d.attr("aria-expanded", "false"), e.removeClass("open").trigger("hidden.bs.dropdown", f))))
       
   265         }))
       
   266     }
       
   267 
       
   268     function d(b) {
       
   269         return this.each(function () {
       
   270             var c = a(this), d = c.data("bs.dropdown");
       
   271             d || c.data("bs.dropdown", d = new g(this)), "string" == typeof b && d[b].call(c)
       
   272         })
       
   273     }
       
   274 
       
   275     var e = ".dropdown-backdrop", f = '[data-toggle="dropdown"]', g = function (b) {
       
   276         a(b).on("click.bs.dropdown", this.toggle)
       
   277     };
       
   278     g.VERSION = "3.3.5", g.prototype.toggle = function (d) {
       
   279         var e = a(this);
       
   280         if (!e.is(".disabled, :disabled")) {
       
   281             var f = b(e), g = f.hasClass("open");
       
   282             if (c(), !g) {
       
   283                 "ontouchstart" in document.documentElement && !f.closest(".navbar-nav").length && a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click", c);
       
   284                 var h = {relatedTarget: this};
       
   285                 if (f.trigger(d = a.Event("show.bs.dropdown", h)), d.isDefaultPrevented())return;
       
   286                 e.trigger("focus").attr("aria-expanded", "true"), f.toggleClass("open").trigger("shown.bs.dropdown", h)
       
   287             }
       
   288             return !1
       
   289         }
       
   290     }, g.prototype.keydown = function (c) {
       
   291         if (/(38|40|27|32)/.test(c.which) && !/input|textarea/i.test(c.target.tagName)) {
       
   292             var d = a(this);
       
   293             if (c.preventDefault(), c.stopPropagation(), !d.is(".disabled, :disabled")) {
       
   294                 var e = b(d), g = e.hasClass("open");
       
   295                 if (!g && 27 != c.which || g && 27 == c.which)return 27 == c.which && e.find(f).trigger("focus"), d.trigger("click");
       
   296                 var h = " li:not(.disabled):visible a", i = e.find(".dropdown-menu" + h);
       
   297                 if (i.length) {
       
   298                     var j = i.index(c.target);
       
   299                     38 == c.which && j > 0 && j--, 40 == c.which && j < i.length - 1 && j++, ~j || (j = 0), i.eq(j).trigger("focus")
       
   300                 }
       
   301             }
       
   302         }
       
   303     };
       
   304     var h = a.fn.dropdown;
       
   305     a.fn.dropdown = d, a.fn.dropdown.Constructor = g, a.fn.dropdown.noConflict = function () {
       
   306         return a.fn.dropdown = h, this
       
   307     }, a(document).on("click.bs.dropdown.data-api", c).on("click.bs.dropdown.data-api", ".dropdown form", function (a) {
       
   308         a.stopPropagation()
       
   309     }).on("click.bs.dropdown.data-api", f, g.prototype.toggle).on("keydown.bs.dropdown.data-api", f, g.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", g.prototype.keydown)
       
   310 }(jQuery), +function (a) {
       
   311     "use strict";
       
   312     function b(b, d) {
       
   313         return this.each(function () {
       
   314             var e = a(this), f = e.data("bs.modal"), g = a.extend({}, c.DEFAULTS, e.data(), "object" == typeof b && b);
       
   315             f || e.data("bs.modal", f = new c(this, g)), "string" == typeof b ? f[b](d) : g.show && f.show(d)
       
   316         })
       
   317     }
       
   318 
       
   319     var c = function (b, c) {
       
   320         this.options = c, this.$body = a(document.body), this.$element = a(b), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, a.proxy(function () {
       
   321             this.$element.trigger("loaded.bs.modal")
       
   322         }, this))
       
   323     };
       
   324     c.VERSION = "3.3.5", c.TRANSITION_DURATION = 300, c.BACKDROP_TRANSITION_DURATION = 150, c.DEFAULTS = {backdrop: !0, keyboard: !0, show: !0}, c.prototype.toggle = function (a) {
       
   325         return this.isShown ? this.hide() : this.show(a)
       
   326     }, c.prototype.show = function (b) {
       
   327         var d = this, e = a.Event("show.bs.modal", {relatedTarget: b});
       
   328         this.$element.trigger(e), this.isShown || e.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function () {
       
   329             d.$element.one("mouseup.dismiss.bs.modal", function (b) {
       
   330                 a(b.target).is(d.$element) && (d.ignoreBackdropClick = !0)
       
   331             })
       
   332         }), this.backdrop(function () {
       
   333             var e = a.support.transition && d.$element.hasClass("fade");
       
   334             d.$element.parent().length || d.$element.appendTo(d.$body), d.$element.show().scrollTop(0), d.adjustDialog(), e && d.$element[0].offsetWidth, d.$element.addClass("in"), d.enforceFocus();
       
   335             var f = a.Event("shown.bs.modal", {relatedTarget: b});
       
   336             e ? d.$dialog.one("bsTransitionEnd", function () {
       
   337                 d.$element.trigger("focus").trigger(f)
       
   338             }).emulateTransitionEnd(c.TRANSITION_DURATION) : d.$element.trigger("focus").trigger(f)
       
   339         }))
       
   340     }, c.prototype.hide = function (b) {
       
   341         b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", a.proxy(this.hideModal, this)).emulateTransitionEnd(c.TRANSITION_DURATION) : this.hideModal())
       
   342     }, c.prototype.enforceFocus = function () {
       
   343         a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function (a) {
       
   344             this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.trigger("focus")
       
   345         }, this))
       
   346     }, c.prototype.escape = function () {
       
   347         this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", a.proxy(function (a) {
       
   348             27 == a.which && this.hide()
       
   349         }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")
       
   350     }, c.prototype.resize = function () {
       
   351         this.isShown ? a(window).on("resize.bs.modal", a.proxy(this.handleUpdate, this)) : a(window).off("resize.bs.modal")
       
   352     }, c.prototype.hideModal = function () {
       
   353         var a = this;
       
   354         this.$element.hide(), this.backdrop(function () {
       
   355             a.$body.removeClass("modal-open"), a.resetAdjustments(), a.resetScrollbar(), a.$element.trigger("hidden.bs.modal")
       
   356         })
       
   357     }, c.prototype.removeBackdrop = function () {
       
   358         this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
       
   359     }, c.prototype.backdrop = function (b) {
       
   360         var d = this, e = this.$element.hasClass("fade") ? "fade" : "";
       
   361         if (this.isShown && this.options.backdrop) {
       
   362             var f = a.support.transition && e;
       
   363             if (this.$backdrop = a(document.createElement("div")).addClass("modal-backdrop " + e).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", a.proxy(function (a) {
       
   364                     return this.ignoreBackdropClick ? void(this.ignoreBackdropClick = !1) : void(a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()))
       
   365                 }, this)), f && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b)return;
       
   366             f ? this.$backdrop.one("bsTransitionEnd", b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : b()
       
   367         } else if (!this.isShown && this.$backdrop) {
       
   368             this.$backdrop.removeClass("in");
       
   369             var g = function () {
       
   370                 d.removeBackdrop(), b && b()
       
   371             };
       
   372             a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : g()
       
   373         } else b && b()
       
   374     }, c.prototype.handleUpdate = function () {
       
   375         this.adjustDialog()
       
   376     }, c.prototype.adjustDialog = function () {
       
   377         var a = this.$element[0].scrollHeight > document.documentElement.clientHeight;
       
   378         this.$element.css({paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : "", paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : ""})
       
   379     }, c.prototype.resetAdjustments = function () {
       
   380         this.$element.css({paddingLeft: "", paddingRight: ""})
       
   381     }, c.prototype.checkScrollbar = function () {
       
   382         var a = window.innerWidth;
       
   383         if (!a) {
       
   384             var b = document.documentElement.getBoundingClientRect();
       
   385             a = b.right - Math.abs(b.left)
       
   386         }
       
   387         this.bodyIsOverflowing = document.body.clientWidth < a, this.scrollbarWidth = this.measureScrollbar()
       
   388     }, c.prototype.setScrollbar = function () {
       
   389         var a = parseInt(this.$body.css("padding-right") || 0, 10);
       
   390         this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", a + this.scrollbarWidth)
       
   391     }, c.prototype.resetScrollbar = function () {
       
   392         this.$body.css("padding-right", this.originalBodyPad)
       
   393     }, c.prototype.measureScrollbar = function () {
       
   394         var a = document.createElement("div");
       
   395         a.className = "modal-scrollbar-measure", this.$body.append(a);
       
   396         var b = a.offsetWidth - a.clientWidth;
       
   397         return this.$body[0].removeChild(a), b
       
   398     };
       
   399     var d = a.fn.modal;
       
   400     a.fn.modal = b, a.fn.modal.Constructor = c, a.fn.modal.noConflict = function () {
       
   401         return a.fn.modal = d, this
       
   402     }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function (c) {
       
   403         var d = a(this), e = d.attr("href"), f = a(d.attr("data-target") || e && e.replace(/.*(?=#[^\s]+$)/, "")), g = f.data("bs.modal") ? "toggle" : a.extend({remote: !/#/.test(e) && e}, f.data(), d.data());
       
   404         d.is("a") && c.preventDefault(), f.one("show.bs.modal", function (a) {
       
   405             a.isDefaultPrevented() || f.one("hidden.bs.modal", function () {
       
   406                 d.is(":visible") && d.trigger("focus")
       
   407             })
       
   408         }), b.call(f, g, this)
       
   409     })
       
   410 }(jQuery), +function (a) {
       
   411     "use strict";
       
   412     function b(b) {
       
   413         return this.each(function () {
       
   414             var d = a(this), e = d.data("bs.tooltip"), f = "object" == typeof b && b;
       
   415             (e || !/destroy|hide/.test(b)) && (e || d.data("bs.tooltip", e = new c(this, f)), "string" == typeof b && e[b]())
       
   416         })
       
   417     }
       
   418 
       
   419     var c = function (a, b) {
       
   420         this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", a, b)
       
   421     };
       
   422     c.VERSION = "3.3.5", c.TRANSITION_DURATION = 150, c.DEFAULTS = {
       
   423         animation: !0,
       
   424         placement: "top",
       
   425         selector: !1,
       
   426         template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
       
   427         trigger: "hover focus",
       
   428         title: "",
       
   429         delay: 0,
       
   430         html: !1,
       
   431         container: !1,
       
   432         viewport: {selector: "body", padding: 0}
       
   433     }, c.prototype.init = function (b, c, d) {
       
   434         if (this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d), this.$viewport = this.options.viewport && a(a.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {
       
   435                 click: !1,
       
   436                 hover: !1,
       
   437                 focus: !1
       
   438             }, 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!");
       
   439         for (var e = this.options.trigger.split(" "), f = e.length; f--;) {
       
   440             var g = e[f];
       
   441             if ("click" == g)this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this)); else if ("manual" != g) {
       
   442                 var h = "hover" == g ? "mouseenter" : "focusin", i = "hover" == g ? "mouseleave" : "focusout";
       
   443                 this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this))
       
   444             }
       
   445         }
       
   446         this.options.selector ? this._options = a.extend({}, this.options, {trigger: "manual", selector: ""}) : this.fixTitle()
       
   447     }, c.prototype.getDefaults = function () {
       
   448         return c.DEFAULTS
       
   449     }, c.prototype.getOptions = function (b) {
       
   450         return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = {show: b.delay, hide: b.delay}), b
       
   451     }, c.prototype.getDelegateOptions = function () {
       
   452         var b = {}, c = this.getDefaults();
       
   453         return this._options && a.each(this._options, function (a, d) {
       
   454             c[a] != d && (b[a] = d)
       
   455         }), b
       
   456     }, c.prototype.enter = function (b) {
       
   457         var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type);
       
   458         return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusin" == b.type ? "focus" : "hover"] = !0), c.tip().hasClass("in") || "in" == c.hoverState ? void(c.hoverState = "in") : (clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? void(c.timeout = setTimeout(function () {
       
   459             "in" == c.hoverState && c.show()
       
   460         }, c.options.delay.show)) : c.show())
       
   461     }, c.prototype.isInStateTrue = function () {
       
   462         for (var a in this.inState)if (this.inState[a])return !0;
       
   463         return !1
       
   464     }, c.prototype.leave = function (b) {
       
   465         var c = b instanceof this.constructor ? b : a(b.currentTarget).data("bs." + this.type);
       
   466         return c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c)), b instanceof a.Event && (c.inState["focusout" == b.type ? "focus" : "hover"] = !1), c.isInStateTrue() ? void 0 : (clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? void(c.timeout = setTimeout(function () {
       
   467             "out" == c.hoverState && c.hide()
       
   468         }, c.options.delay.hide)) : c.hide())
       
   469     }, c.prototype.show = function () {
       
   470         var b = a.Event("show.bs." + this.type);
       
   471         if (this.hasContent() && this.enabled) {
       
   472             this.$element.trigger(b);
       
   473             var d = a.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
       
   474             if (b.isDefaultPrevented() || !d)return;
       
   475             var e = this, f = this.tip(), g = this.getUID(this.type);
       
   476             this.setContent(), f.attr("id", g), this.$element.attr("aria-describedby", g), this.options.animation && f.addClass("fade");
       
   477             var h = "function" == typeof this.options.placement ? this.options.placement.call(this, f[0], this.$element[0]) : this.options.placement, i = /\s?auto?\s?/i, j = i.test(h);
       
   478             j && (h = h.replace(i, "") || "top"), f.detach().css({
       
   479                 top: 0,
       
   480                 left: 0,
       
   481                 display: "block"
       
   482             }).addClass(h).data("bs." + this.type, this), this.options.container ? f.appendTo(this.options.container) : f.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);
       
   483             var k = this.getPosition(), l = f[0].offsetWidth, m = f[0].offsetHeight;
       
   484             if (j) {
       
   485                 var n = h, o = this.getPosition(this.$viewport);
       
   486                 h = "bottom" == h && k.bottom + m > o.bottom ? "top" : "top" == h && k.top - m < o.top ? "bottom" : "right" == h && k.right + l > o.width ? "left" : "left" == h && k.left - l < o.left ? "right" : h, f.removeClass(n).addClass(h)
       
   487             }
       
   488             var p = this.getCalculatedOffset(h, k, l, m);
       
   489             this.applyPlacement(p, h);
       
   490             var q = function () {
       
   491                 var a = e.hoverState;
       
   492                 e.$element.trigger("shown.bs." + e.type), e.hoverState = null, "out" == a && e.leave(e)
       
   493             };
       
   494             a.support.transition && this.$tip.hasClass("fade") ? f.one("bsTransitionEnd", q).emulateTransitionEnd(c.TRANSITION_DURATION) : q()
       
   495         }
       
   496     }, c.prototype.applyPlacement = function (b, c) {
       
   497         var d = this.tip(), e = d[0].offsetWidth, f = d[0].offsetHeight, g = parseInt(d.css("margin-top"), 10), h = parseInt(d.css("margin-left"), 10);
       
   498         isNaN(g) && (g = 0), isNaN(h) && (h = 0), b.top += g, b.left += h, a.offset.setOffset(d[0], a.extend({
       
   499             using: function (a) {
       
   500                 d.css({top: Math.round(a.top), left: Math.round(a.left)})
       
   501             }
       
   502         }, b), 0), d.addClass("in");
       
   503         var i = d[0].offsetWidth, j = d[0].offsetHeight;
       
   504         "top" == c && j != f && (b.top = b.top + f - j);
       
   505         var k = this.getViewportAdjustedDelta(c, b, i, j);
       
   506         k.left ? b.left += k.left : b.top += k.top;
       
   507         var l = /top|bottom/.test(c), m = l ? 2 * k.left - e + i : 2 * k.top - f + j, n = l ? "offsetWidth" : "offsetHeight";
       
   508         d.offset(b), this.replaceArrow(m, d[0][n], l)
       
   509     }, c.prototype.replaceArrow = function (a, b, c) {
       
   510         this.arrow().css(c ? "left" : "top", 50 * (1 - a / b) + "%").css(c ? "top" : "left", "")
       
   511     }, c.prototype.setContent = function () {
       
   512         var a = this.tip(), b = this.getTitle();
       
   513         a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right")
       
   514     }, c.prototype.hide = function (b) {
       
   515         function d() {
       
   516             "in" != e.hoverState && f.detach(), e.$element.removeAttr("aria-describedby").trigger("hidden.bs." + e.type), b && b()
       
   517         }
       
   518 
       
   519         var e = this, f = a(this.$tip), g = a.Event("hide.bs." + this.type);
       
   520         return this.$element.trigger(g), g.isDefaultPrevented() ? void 0 : (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one("bsTransitionEnd", d).emulateTransitionEnd(c.TRANSITION_DURATION) : d(), this.hoverState = null, this)
       
   521     }, c.prototype.fixTitle = function () {
       
   522         var a = this.$element;
       
   523         (a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", "")
       
   524     }, c.prototype.hasContent = function () {
       
   525         return this.getTitle()
       
   526     }, c.prototype.getPosition = function (b) {
       
   527         b = b || this.$element;
       
   528         var c = b[0], d = "BODY" == c.tagName, e = c.getBoundingClientRect();
       
   529         null == e.width && (e = a.extend({}, e, {width: e.right - e.left, height: e.bottom - e.top}));
       
   530         var f = d ? {
       
   531             top: 0,
       
   532             left: 0
       
   533         } : b.offset(), g = {scroll: d ? document.documentElement.scrollTop || document.body.scrollTop : b.scrollTop()}, h = d ? {
       
   534             width: a(window).width(),
       
   535             height: a(window).height()
       
   536         } : null;
       
   537         return a.extend({}, e, g, h, f)
       
   538     }, c.prototype.getCalculatedOffset = function (a, b, c, d) {
       
   539         return "bottom" == a ? {top: b.top + b.height, left: b.left + b.width / 2 - c / 2} : "top" == a ? {
       
   540             top: b.top - d,
       
   541             left: b.left + b.width / 2 - c / 2
       
   542         } : "left" == a ? {top: b.top + b.height / 2 - d / 2, left: b.left - c} : {top: b.top + b.height / 2 - d / 2, left: b.left + b.width}
       
   543     }, c.prototype.getViewportAdjustedDelta = function (a, b, c, d) {
       
   544         var e = {top: 0, left: 0};
       
   545         if (!this.$viewport)return e;
       
   546         var f = this.options.viewport && this.options.viewport.padding || 0, g = this.getPosition(this.$viewport);
       
   547         if (/right|left/.test(a)) {
       
   548             var h = b.top - f - g.scroll, i = b.top + f - g.scroll + d;
       
   549             h < g.top ? e.top = g.top - h : i > g.top + g.height && (e.top = g.top + g.height - i)
       
   550         } else {
       
   551             var j = b.left - f, k = b.left + f + c;
       
   552             j < g.left ? e.left = g.left - j : k > g.right && (e.left = g.left + g.width - k)
       
   553         }
       
   554         return e
       
   555     }, c.prototype.getTitle = function () {
       
   556         var a, b = this.$element, c = this.options;
       
   557         return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title)
       
   558     }, c.prototype.getUID = function (a) {
       
   559         do a += ~~(1e6 * Math.random()); while (document.getElementById(a));
       
   560         return a
       
   561     }, c.prototype.tip = function () {
       
   562         if (!this.$tip && (this.$tip = a(this.options.template), 1 != this.$tip.length))throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");
       
   563         return this.$tip
       
   564     }, c.prototype.arrow = function () {
       
   565         return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
       
   566     }, c.prototype.enable = function () {
       
   567         this.enabled = !0
       
   568     }, c.prototype.disable = function () {
       
   569         this.enabled = !1
       
   570     }, c.prototype.toggleEnabled = function () {
       
   571         this.enabled = !this.enabled
       
   572     }, c.prototype.toggle = function (b) {
       
   573         var c = this;
       
   574         b && (c = a(b.currentTarget).data("bs." + this.type), c || (c = new this.constructor(b.currentTarget, this.getDelegateOptions()), a(b.currentTarget).data("bs." + this.type, c))), b ? (c.inState.click = !c.inState.click, c.isInStateTrue() ? c.enter(c) : c.leave(c)) : c.tip().hasClass("in") ? c.leave(c) : c.enter(c)
       
   575     }, c.prototype.destroy = function () {
       
   576         var a = this;
       
   577         clearTimeout(this.timeout), this.hide(function () {
       
   578             a.$element.off("." + a.type).removeData("bs." + a.type), a.$tip && a.$tip.detach(), a.$tip = null, a.$arrow = null, a.$viewport = null
       
   579         })
       
   580     };
       
   581     var d = a.fn.tooltip;
       
   582     a.fn.tooltip = b, a.fn.tooltip.Constructor = c, a.fn.tooltip.noConflict = function () {
       
   583         return a.fn.tooltip = d, this
       
   584     }
       
   585 }(jQuery), +function (a) {
       
   586     "use strict";
       
   587     function b(b) {
       
   588         return this.each(function () {
       
   589             var d = a(this), e = d.data("bs.popover"), f = "object" == typeof b && b;
       
   590             (e || !/destroy|hide/.test(b)) && (e || d.data("bs.popover", e = new c(this, f)), "string" == typeof b && e[b]())
       
   591         })
       
   592     }
       
   593 
       
   594     var c = function (a, b) {
       
   595         this.init("popover", a, b)
       
   596     };
       
   597     if (!a.fn.tooltip)throw new Error("Popover requires tooltip.js");
       
   598     c.VERSION = "3.3.5", c.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, {
       
   599         placement: "right",
       
   600         trigger: "click",
       
   601         content: "",
       
   602         template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
       
   603     }), c.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), c.prototype.constructor = c, c.prototype.getDefaults = function () {
       
   604         return c.DEFAULTS
       
   605     }, c.prototype.setContent = function () {
       
   606         var a = this.tip(), b = this.getTitle(), c = this.getContent();
       
   607         a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof c ? "html" : "append" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide()
       
   608     }, c.prototype.hasContent = function () {
       
   609         return this.getTitle() || this.getContent()
       
   610     }, c.prototype.getContent = function () {
       
   611         var a = this.$element, b = this.options;
       
   612         return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content)
       
   613     }, c.prototype.arrow = function () {
       
   614         return this.$arrow = this.$arrow || this.tip().find(".arrow")
       
   615     };
       
   616     var d = a.fn.popover;
       
   617     a.fn.popover = b, a.fn.popover.Constructor = c, a.fn.popover.noConflict = function () {
       
   618         return a.fn.popover = d, this
       
   619     }
       
   620 }(jQuery), +function (a) {
       
   621     "use strict";
       
   622     function b(c, d) {
       
   623         this.$body = a(document.body), this.$scrollElement = a(a(c).is(document.body) ? window : c), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", a.proxy(this.process, this)), this.refresh(), this.process()
       
   624     }
       
   625 
       
   626     function c(c) {
       
   627         return this.each(function () {
       
   628             var d = a(this), e = d.data("bs.scrollspy"), f = "object" == typeof c && c;
       
   629             e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c]()
       
   630         })
       
   631     }
       
   632 
       
   633     b.VERSION = "3.3.5", b.DEFAULTS = {offset: 10}, b.prototype.getScrollHeight = function () {
       
   634         return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
       
   635     }, b.prototype.refresh = function () {
       
   636         var b = this, c = "offset", d = 0;
       
   637         this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), a.isWindow(this.$scrollElement[0]) || (c = "position", d = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function () {
       
   638             var b = a(this), e = b.data("target") || b.attr("href"), f = /^#./.test(e) && a(e);
       
   639             return f && f.length && f.is(":visible") && [[f[c]().top + d, e]] || null
       
   640         }).sort(function (a, b) {
       
   641             return a[0] - b[0]
       
   642         }).each(function () {
       
   643             b.offsets.push(this[0]), b.targets.push(this[1])
       
   644         })
       
   645     }, b.prototype.process = function () {
       
   646         var a, b = this.$scrollElement.scrollTop() + this.options.offset, c = this.getScrollHeight(), d = this.options.offset + c - this.$scrollElement.height(), e = this.offsets, f = this.targets, g = this.activeTarget;
       
   647         if (this.scrollHeight != c && this.refresh(), b >= d)return g != (a = f[f.length - 1]) && this.activate(a);
       
   648         if (g && b < e[0])return this.activeTarget = null, this.clear();
       
   649         for (a = e.length; a--;)g != f[a] && b >= e[a] && (void 0 === e[a + 1] || b < e[a + 1]) && this.activate(f[a])
       
   650     }, b.prototype.activate = function (b) {
       
   651         this.activeTarget = b, this.clear();
       
   652         var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]', d = a(c).parents("li").addClass("active");
       
   653         d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")),
       
   654             d.trigger("activate.bs.scrollspy")
       
   655     }, b.prototype.clear = function () {
       
   656         a(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")
       
   657     };
       
   658     var d = a.fn.scrollspy;
       
   659     a.fn.scrollspy = c, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function () {
       
   660         return a.fn.scrollspy = d, this
       
   661     }, a(window).on("load.bs.scrollspy.data-api", function () {
       
   662         a('[data-spy="scroll"]').each(function () {
       
   663             var b = a(this);
       
   664             c.call(b, b.data())
       
   665         })
       
   666     })
       
   667 }(jQuery), +function (a) {
       
   668     "use strict";
       
   669     function b(b) {
       
   670         return this.each(function () {
       
   671             var d = a(this), e = d.data("bs.tab");
       
   672             e || d.data("bs.tab", e = new c(this)), "string" == typeof b && e[b]()
       
   673         })
       
   674     }
       
   675 
       
   676     var c = function (b) {
       
   677         this.element = a(b)
       
   678     };
       
   679     c.VERSION = "3.3.5", c.TRANSITION_DURATION = 150, c.prototype.show = function () {
       
   680         var b = this.element, c = b.closest("ul:not(.dropdown-menu)"), d = b.data("target");
       
   681         if (d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) {
       
   682             var e = c.find(".active:last a"), f = a.Event("hide.bs.tab", {relatedTarget: b[0]}), g = a.Event("show.bs.tab", {relatedTarget: e[0]});
       
   683             if (e.trigger(f), b.trigger(g), !g.isDefaultPrevented() && !f.isDefaultPrevented()) {
       
   684                 var h = a(d);
       
   685                 this.activate(b.closest("li"), c), this.activate(h, h.parent(), function () {
       
   686                     e.trigger({type: "hidden.bs.tab", relatedTarget: b[0]}), b.trigger({type: "shown.bs.tab", relatedTarget: e[0]})
       
   687                 })
       
   688             }
       
   689         }
       
   690     }, c.prototype.activate = function (b, d, e) {
       
   691         function f() {
       
   692             g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), h ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu").length && b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), e && e()
       
   693         }
       
   694 
       
   695         var g = d.find("> .active"), h = e && a.support.transition && (g.length && g.hasClass("fade") || !!d.find("> .fade").length);
       
   696         g.length && h ? g.one("bsTransitionEnd", f).emulateTransitionEnd(c.TRANSITION_DURATION) : f(), g.removeClass("in")
       
   697     };
       
   698     var d = a.fn.tab;
       
   699     a.fn.tab = b, a.fn.tab.Constructor = c, a.fn.tab.noConflict = function () {
       
   700         return a.fn.tab = d, this
       
   701     };
       
   702     var e = function (c) {
       
   703         c.preventDefault(), b.call(a(this), "show")
       
   704     };
       
   705     a(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', e).on("click.bs.tab.data-api", '[data-toggle="pill"]', e)
       
   706 }(jQuery), +function (a) {
       
   707     "use strict";
       
   708     function b(b) {
       
   709         return this.each(function () {
       
   710             var d = a(this), e = d.data("bs.affix"), f = "object" == typeof b && b;
       
   711             e || d.data("bs.affix", e = new c(this, f)), "string" == typeof b && e[b]()
       
   712         })
       
   713     }
       
   714 
       
   715     var c = function (b, d) {
       
   716         this.options = a.extend({}, c.DEFAULTS, d), this.$target = a(this.options.target).on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", a.proxy(this.checkPositionWithEventLoop, this)), this.$element = a(b), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()
       
   717     };
       
   718     c.VERSION = "3.3.5", c.RESET = "affix affix-top affix-bottom", c.DEFAULTS = {offset: 0, target: window}, c.prototype.getState = function (a, b, c, d) {
       
   719         var e = this.$target.scrollTop(), f = this.$element.offset(), g = this.$target.height();
       
   720         if (null != c && "top" == this.affixed)return c > e ? "top" : !1;
       
   721         if ("bottom" == this.affixed)return null != c ? e + this.unpin <= f.top ? !1 : "bottom" : a - d >= e + g ? !1 : "bottom";
       
   722         var h = null == this.affixed, i = h ? e : f.top, j = h ? g : b;
       
   723         return null != c && c >= e ? "top" : null != d && i + j >= a - d ? "bottom" : !1
       
   724     }, c.prototype.getPinnedOffset = function () {
       
   725         if (this.pinnedOffset)return this.pinnedOffset;
       
   726         this.$element.removeClass(c.RESET).addClass("affix");
       
   727         var a = this.$target.scrollTop(), b = this.$element.offset();
       
   728         return this.pinnedOffset = b.top - a
       
   729     }, c.prototype.checkPositionWithEventLoop = function () {
       
   730         setTimeout(a.proxy(this.checkPosition, this), 1)
       
   731     }, c.prototype.checkPosition = function () {
       
   732         if (this.$element.is(":visible")) {
       
   733             var b = this.$element.height(), d = this.options.offset, e = d.top, f = d.bottom, g = Math.max(a(document).height(), a(document.body).height());
       
   734             "object" != typeof d && (f = e = d), "function" == typeof e && (e = d.top(this.$element)), "function" == typeof f && (f = d.bottom(this.$element));
       
   735             var h = this.getState(g, b, e, f);
       
   736             if (this.affixed != h) {
       
   737                 null != this.unpin && this.$element.css("top", "");
       
   738                 var i = "affix" + (h ? "-" + h : ""), j = a.Event(i + ".bs.affix");
       
   739                 if (this.$element.trigger(j), j.isDefaultPrevented())return;
       
   740                 this.affixed = h, this.unpin = "bottom" == h ? this.getPinnedOffset() : null, this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix", "affixed") + ".bs.affix")
       
   741             }
       
   742             "bottom" == h && this.$element.offset({top: g - b - f})
       
   743         }
       
   744     };
       
   745     var d = a.fn.affix;
       
   746     a.fn.affix = b, a.fn.affix.Constructor = c, a.fn.affix.noConflict = function () {
       
   747         return a.fn.affix = d, this
       
   748     }, a(window).on("load", function () {
       
   749         a('[data-spy="affix"]').each(function () {
       
   750             var c = a(this), d = c.data();
       
   751             d.offset = d.offset || {}, null != d.offsetBottom && (d.offset.bottom = d.offsetBottom), null != d.offsetTop && (d.offset.top = d.offsetTop), b.call(c, d)
       
   752         })
       
   753     })
       
   754 }(jQuery);