PageSourceSearch

https://kinema106.com/wp-content/themes/amore_tcd028/includes/resources/bootstrap/js/bootstrap.js?ver=6.9.10

js kinema106.com collected 2026-10-06 21:32:00 UTC 67,397 bytes, 2,324 lines download raw bytes

vendor: 67,397 bytes, lines 1-2324
1/*!
2 * Bootstrap v3.3.1 (http://getbootstrap.com)
3 * Copyright 2011-2014 Twitter, Inc.
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 */
6
7/*!
8 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=f58353a31151a8c05d7c)
9 * Config saved to config.json and https://gist.github.com/f58353a31151a8c05d7c
10 */
11if (typeof jQuery === 'undefined') {
12  throw new Error('Bootstrap\'s JavaScript requires jQuery')
13}
14+function ($) {
15  var version = $.fn.jquery.split(' ')[0].split('.')
16  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
17    throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')
18  }
19}(jQuery);
20
21/* ========================================================================
22 * Bootstrap: alert.js v3.3.1
23 * http://getbootstrap.com/javascript/#alerts
24 * ========================================================================
25 * Copyright 2011-2014 Twitter, Inc.
26 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
27 * ======================================================================== */
28
29
30+function ($) {
31  'use strict';
32
33  // ALERT CLASS DEFINITION
34  // ======================
35
36  var dismiss = '[data-dismiss="alert"]'
37  var Alert   = function (el) {
38    $(el).on('click', dismiss, this.close)
39  }
40
41  Alert.VERSION = '3.3.1'
42
43  Alert.TRANSITION_DURATION = 150
44
45  Alert.prototype.close = function (e) {
46    var $this    = $(this)
47    var selector = $this.attr('data-target')
48
49    if (!selector) {
50      selector = $this.attr('href')
51      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
52    }
53
54    var $parent = $(selector)
55
56    if (e) e.preventDefault()
57
58    if (!$parent.length) {
59      $parent = $this.closest('.alert')
60    }
61
62    $parent.trigger(e = $.Event('close.bs.alert'))
63
64    if (e.isDefaultPrevented()) return
65
66    $parent.removeClass('in')
67
68    function removeElement() {
69      // detach from parent, fire event then clean up data
70      $parent.detach().trigger('closed.bs.alert').remove()
71    }
72
73    $.support.transition && $parent.hasClass('fade') ?
74      $parent
75        .one('bsTransitionEnd', removeElement)
76        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
77      removeElement()
78  }
79
80
81  // ALERT PLUGIN DEFINITION
82  // =======================
83
84  function Plugin(option) {
85    return this.each(function () {
86      var $this = $(this)
87      var data  = $this.data('bs.alert')
88
89      if (!data) $this.data('bs.alert', (data = new Alert(this)))
90      if (typeof option == 'string') data[option].call($this)
91    })
92  }
93
94  var old = $.fn.alert
95
96  $.fn.alert             = Plugin
97  $.fn.alert.Constructor = Alert
98
99
100  // ALERT NO CONFLICT
101  // =================
102
103  $.fn.alert.noConflict = function () {
104    $.fn.alert = old
105    return this
106  }
107
108
109  // ALERT DATA-API
110  // ==============
111
112  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
113
114}(jQuery);
115
116/* ========================================================================
117 * Bootstrap: button.js v3.3.1
118 * http://getbootstrap.com/javascript/#buttons
119 * ========================================================================
120 * Copyright 2011-2014 Twitter, Inc.
121 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
122 * ======================================================================== */
123
124
125+function ($) {
126  'use strict';
127
128  // BUTTON PUBLIC CLASS DEFINITION
129  // ==============================
130
131  var Button = function (element, options) {
132    this.$element  = $(element)
133    this.options   = $.extend({}, Button.DEFAULTS, options)
134    this.isLoading = false
135  }
136
137  Button.VERSION  = '3.3.1'
138
139  Button.DEFAULTS = {
140    loadingText: 'loading...'
141  }
142
143  Button.prototype.setState = function (state) {
144    var d    = 'disabled'
145    var $el  = this.$element
146    var val  = $el.is('input') ? 'val' : 'html'
147    var data = $el.data()
148
149    state = state + 'Text'
150
151    if (data.resetText == null) $el.data('resetText', $el[val]())
152
153    // push to event loop to allow forms to submit
154    setTimeout($.proxy(function () {
155      $el[val](data[state] == null ? this.options[state] : data[state])
156
157      if (state == 'loadingText') {
158        this.isLoading = true
159        $el.addClass(d).attr(d, d)
160      } else if (this.isLoading) {
161        this.isLoading = false
162        $el.removeClass(d).removeAttr(d)
163      }
164    }, this), 0)
165  }
166
167  Button.prototype.toggle = function () {
168    var changed = true
169    var $parent = this.$element.closest('[data-toggle="buttons"]')
170
171    if ($parent.length) {
172      var $input = this.$element.find('input')
173      if ($input.prop('type') == 'radio') {
174        if ($input.prop('checked') && this.$element.hasClass('active')) changed = false
175        else $parent.find('.active').removeClass('active')
176      }
177      if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change')
178    } else {
179      this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
180    }
181
182    if (changed) this.$element.toggleClass('active')
183  }
184
185
186  // BUTTON PLUGIN DEFINITION
187  // ========================
188
189  function Plugin(option) {
190    return this.each(function () {
191      var $this   = $(this)
192      var data    = $this.data('bs.button')
193      var options = typeof option == 'object' && option
194
195      if (!data) $this.data('bs.button', (data = new Button(this, options)))
196
197      if (option == 'toggle') data.toggle()
198      else if (option) data.setState(option)
199    })
200  }
201
202  var old = $.fn.button
203
204  $.fn.button             = Plugin
205  $.fn.button.Constructor = Button
206
207
208  // BUTTON NO CONFLICT
209  // ==================
210
211  $.fn.button.noConflict = function () {
212    $.fn.button = old
213    return this
214  }
215
216
217  // BUTTON DATA-API
218  // ===============
219
220  $(document)
221    .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
222      var $btn = $(e.target)
223      if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
224      Plugin.call($btn, 'toggle')
225      e.preventDefault()
226    })
227    .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
228      $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
229    })
230
231}(jQuery);
232
233/* ========================================================================
234 * Bootstrap: carousel.js v3.3.1
235 * http://getbootstrap.com/javascript/#carousel
236 * ========================================================================
237 * Copyright 2011-2014 Twitter, Inc.
238 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
239 * ======================================================================== */
240
241
242+function ($) {
243  'use strict';
244
245  // CAROUSEL CLASS DEFINITION
246  // =========================
247
248  var Carousel = function (element, options) {
249    this.$element    = $(element)
250    this.$indicators = this.$element.find('.carousel-indicators')
251    this.options     = options
252    this.paused      =
253    this.sliding     =
254    this.interval    =
255    this.$active     =
256    this.$items      = null
257
258    this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
259
260    this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
261      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
262      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
263  }
264
265  Carousel.VERSION  = '3.3.1'
266
267  Carousel.TRANSITION_DURATION = 600
268
269  Carousel.DEFAULTS = {
270    interval: 5000,
271    pause: 'hover',
272    wrap: true,
273    keyboard: true
274  }
275
276  Carousel.prototype.keydown = function (e) {
277    if (/input|textarea/i.test(e.target.tagName)) return
278    switch (e.which) {
279      case 37: this.prev(); break
280      case 39: this.next(); break
281      default: return
282    }
283
284    e.preventDefault()
285  }
286
287  Carousel.prototype.cycle = function (e) {
288    e || (this.paused = false)
289
290    this.interval && clearInterval(this.interval)
291
292    this.options.interval
293      && !this.paused
294      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
295
296    return this
297  }
298
299  Carousel.prototype.getItemIndex = function (item) {
300    this.$items = item.parent().children('.item')
301    return this.$items.index(item || this.$active)
302  }
303
304  Carousel.prototype.getItemForDirection = function (direction, active) {
305    var delta = direction == 'prev' ? -1 : 1
306    var activeIndex = this.getItemIndex(active)
307    var itemIndex = (activeIndex + delta) % this.$items.length
308    return this.$items.eq(itemIndex)
309  }
310
311  Carousel.prototype.to = function (pos) {
312    var that        = this
313    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
314
315    if (pos > (this.$items.length - 1) || pos < 0) return
316
317    if (this.sliding)       return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
318    if (activeIndex == pos) return this.pause().cycle()
319
320    return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
321  }
322
323  Carousel.prototype.pause = function (e) {
324    e || (this.paused = true)
325
326    if (this.$element.find('.next, .prev').length && $.support.transition) {
327      this.$element.trigger($.support.transition.end)
328      this.cycle(true)
329    }
330
331    this.interval = clearInterval(this.interval)
332
333    return this
334  }
335
336  Carousel.prototype.next = function () {
337    if (this.sliding) return
338    return this.slide('next')
339  }
340
341  Carousel.prototype.prev = function () {
342    if (this.sliding) return
343    return this.slide('prev')
344  }
345
346  Carousel.prototype.slide = function (type, next) {
347    var $active   = this.$element.find('.item.active')
348    var $next     = next || this.getItemForDirection(type, $active)
349    var isCycling = this.interval
350    var direction = type == 'next' ? 'left' : 'right'
351    var fallback  = type == 'next' ? 'first' : 'last'
352    var that      = this
353
354    if (!$next.length) {
355      if (!this.options.wrap) return
356      $next = this.$element.find('.item')[fallback]()
357    }
358
359    if ($next.hasClass('active')) return (this.sliding = false)
360
361    var relatedTarget = $next[0]
362    var slideEvent = $.Event('slide.bs.carousel', {
363      relatedTarget: relatedTarget,
364      direction: direction
365    })
366    this.$element.trigger(slideEvent)
367    if (slideEvent.isDefaultPrevented()) return
368
369    this.sliding = true
370
371    isCycling && this.pause()
372
373    if (this.$indicators.length) {
374      this.$indicators.find('.active').removeClass('active')
375      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
376      $nextIndicator && $nextIndicator.addClass('active')
377    }
378
379    var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
380    if ($.support.transition && this.$element.hasClass('slide')) {
381      $next.addClass(type)
382      $next[0].offsetWidth // force reflow
383      $active.addClass(direction)
384      $next.addClass(direction)
385      $active
386        .one('bsTransitionEnd', function () {
387          $next.removeClass([type, direction].join(' ')).addClass('active')
388          $active.removeClass(['active', direction].join(' '))
389          that.sliding = false
390          setTimeout(function () {
391            that.$element.trigger(slidEvent)
392          }, 0)
393        })
394        .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
395    } else {
396      $active.removeClass('active')
397      $next.addClass('active')
398      this.sliding = false
399      this.$element.trigger(slidEvent)
400    }
401
402    isCycling && this.cycle()
403
404    return this
405  }
406
407
408  // CAROUSEL PLUGIN DEFINITION
409  // ==========================
410
411  function Plugin(option) {
412    return this.each(function () {
413      var $this   = $(this)
414      var data    = $this.data('bs.carousel')
415      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
416      var action  = typeof option == 'string' ? option : options.slide
417
418      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
419      if (typeof option == 'number') data.to(option)
420      else if (action) data[action]()
421      else if (options.interval) data.pause().cycle()
422    })
423  }
424
425  var old = $.fn.carousel
426
427  $.fn.carousel             = Plugin
428  $.fn.carousel.Constructor = Carousel
429
430
431  // CAROUSEL NO CONFLICT
432  // ====================
433
434  $.fn.carousel.noConflict = function () {
435    $.fn.carousel = old
436    return this
437  }
438
439
440  // CAROUSEL DATA-API
441  // =================
442
443  var clickHandler = function (e) {
444    var href
445    var $this   = $(this)
446    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
447    if (!$target.hasClass('carousel')) return
448    var options = $.extend({}, $target.data(), $this.data())
449    var slideIndex = $this.attr('data-slide-to')
450    if (slideIndex) options.interval = false
451
452    Plugin.call($target, options)
453
454    if (slideIndex) {
455      $target.data('bs.carousel').to(slideIndex)
456    }
457
458    e.preventDefault()
459  }
460
461  $(document)
462    .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
463    .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
464
465  $(window).on('load', function () {
466    $('[data-ride="carousel"]').each(function () {
467      var $carousel = $(this)
468      Plugin.call($carousel, $carousel.data())
469    })
470  })
471
472}(jQuery);
473
474/* ========================================================================
475 * Bootstrap: dropdown.js v3.3.1
476 * http://getbootstrap.com/javascript/#dropdowns
477 * ========================================================================
478 * Copyright 2011-2014 Twitter, Inc.
479 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
480 * ======================================================================== */
481
482
483+function ($) {
484  'use strict';
485
486  // DROPDOWN CLASS DEFINITION
487  // =========================
488
489  var backdrop = '.dropdown-backdrop'
490  var toggle   = '[data-toggle="dropdown"]'
491  var Dropdown = function (element) {
492    $(element).on('click.bs.dropdown', this.toggle)
493  }
494
495  Dropdown.VERSION = '3.3.1'
496
497  Dropdown.prototype.toggle = function (e) {
498    var $this = $(this)
499
500    if ($this.is('.disabled, :disabled')) return
501
502    var $parent  = getParent($this)
503    var isActive = $parent.hasClass('open')
504
505    clearMenus()
506
507    if (!isActive) {
508      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
509        // if mobile we use a backdrop because click events don't delegate
510        $('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
511      }
512
513      var relatedTarget = { relatedTarget: this }
514      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
515
516      if (e.isDefaultPrevented()) return
517
518      $this
519        .trigger('focus')
520        .attr('aria-expanded', 'true')
521
522      $parent
523        .toggleClass('open')
524        .trigger('shown.bs.dropdown', relatedTarget)
525    }
526
527    // return false
528    // overriding sub-menu parent empty link #
529  }
530
531  Dropdown.prototype.keydown = function (e) {
532    if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
533
534    var $this = $(this)
535
536    e.preventDefault()
537    e.stopPropagation()
538
539    if ($this.is('.disabled, :disabled')) return
540
541    var $parent  = getParent($this)
542    var isActive = $parent.hasClass('open')
543
544    if ((!isActive && e.which != 27) || (isActive && e.which == 27)) {
545      if (e.which == 27) $parent.find(toggle).trigger('focus')
546      return $this.trigger('click')
547    }
548
549    var desc = ' li:not(.divider):visible a'
550    var $items = $parent.find('[role="menu"]' + desc + ', [role="listbox"]' + desc)
551
552    if (!$items.length) return
553
554    var index = $items.index(e.target)
555
556    if (e.which == 38 && index > 0)                 index--                        // up
557    if (e.which == 40 && index < $items.length - 1) index++                        // down
558    if (!~index)                                      index = 0
559
560    $items.eq(index).trigger('focus')
561  }
562
563  function clearMenus(e) {
564    if (e && e.which === 3) return
565    $(backdrop).remove()
566    $(toggle).each(function () {
567      var $this         = $(this)
568      var $parent       = getParent($this)
569      var relatedTarget = { relatedTarget: this }
570
571      if (!$parent.hasClass('open')) return
572
573      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
574
575      if (e.isDefaultPrevented()) return
576
577      $this.attr('aria-expanded', 'false')
578      $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
579    })
580  }
581
582  function getParent($this) {
583    var selector = $this.attr('data-target')
584
585    if (!selector) {
586      selector = $this.attr('href')
587      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
588    }
589
590    var $parent = selector && $(selector)
591
592    return $parent && $parent.length ? $parent : $this.parent()
593  }
594
595
596  // DROPDOWN PLUGIN DEFINITION
597  // ==========================
598
599  function Plugin(option) {
600    return this.each(function () {
601      var $this = $(this)
602      var data  = $this.data('bs.dropdown')
603
604      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
605      if (typeof option == 'string') data[option].call($this)
606    })
607  }
608
609  var old = $.fn.dropdown
610
611  $.fn.dropdown             = Plugin
612  $.fn.dropdown.Constructor = Dropdown
613
614
615  // DROPDOWN NO CONFLICT
616  // ====================
617
618  $.fn.dropdown.noConflict = function () {
619    $.fn.dropdown = old
620    return this
621  }
622
623
624  // APPLY TO STANDARD DROPDOWN ELEMENTS
625  // ===================================
626
627  $(document)
628    .on('click.bs.dropdown.data-api', clearMenus)
629    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
630    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
631    .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
632    .on('keydown.bs.dropdown.data-api', '[role="menu"]', Dropdown.prototype.keydown)
633    .on('keydown.bs.dropdown.data-api', '[role="listbox"]', Dropdown.prototype.keydown)
634
635}(jQuery);
636
637/* ========================================================================
638 * Bootstrap: modal.js v3.3.1
639 * http://getbootstrap.com/javascript/#modals
640 * ========================================================================
641 * Copyright 2011-2014 Twitter, Inc.
642 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
643 * ======================================================================== */
644
645
646+function ($) {
647  'use strict';
648
649  // MODAL CLASS DEFINITION
650  // ======================
651
652  var Modal = function (element, options) {
653    this.options        = options
654    this.$body          = $(document.body)
655    this.$element       = $(element)
656    this.$backdrop      =
657    this.isShown        = null
658    this.scrollbarWidth = 0
659
660    if (this.options.remote) {
661      this.$element
662        .find('.modal-content')
663        .load(this.options.remote, $.proxy(function () {
664          this.$element.trigger('loaded.bs.modal')
665        }, this))
666    }
667  }
668
669  Modal.VERSION  = '3.3.1'
670
671  Modal.TRANSITION_DURATION = 300
672  Modal.BACKDROP_TRANSITION_DURATION = 150
673
674  Modal.DEFAULTS = {
675    backdrop: true,
676    keyboard: true,
677    show: true
678  }
679
680  Modal.prototype.toggle = function (_relatedTarget) {
681    return this.isShown ? this.hide() : this.show(_relatedTarget)
682  }
683
684  Modal.prototype.show = function (_relatedTarget) {
685    var that = this
686    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
687
688    this.$element.trigger(e)
689
690    if (this.isShown || e.isDefaultPrevented()) return
691
692    this.isShown = true
693
694    this.checkScrollbar()
695    this.setScrollbar()
696    this.$body.addClass('modal-open')
697
698    this.escape()
699    this.resize()
700
701    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
702
703    this.backdrop(function () {
704      var transition = $.support.transition && that.$element.hasClass('fade')
705
706      if (!that.$element.parent().length) {
707        that.$element.appendTo(that.$body) // don't move modals dom position
708      }
709
710      that.$element
711        .show()
712        .scrollTop(0)
713
714      if (that.options.backdrop) that.adjustBackdrop()
715      that.adjustDialog()
716
717      if (transition) {
718        that.$element[0].offsetWidth // force reflow
719      }
720
721      that.$element
722        .addClass('in')
723        .attr('aria-hidden', false)
724
725      that.enforceFocus()
726
727      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
728
729      transition ?
730        that.$element.find('.modal-dialog') // wait for modal to slide in
731          .one('bsTransitionEnd', function () {
732            that.$element.trigger('focus').trigger(e)
733          })
734          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
735        that.$element.trigger('focus').trigger(e)
736    })
737  }
738
739  Modal.prototype.hide = function (e) {
740    if (e) e.preventDefault()
741
742    e = $.Event('hide.bs.modal')
743
744    this.$element.trigger(e)
745
746    if (!this.isShown || e.isDefaultPrevented()) return
747
748    this.isShown = false
749
750    this.escape()
751    this.resize()
752
753    $(document).off('focusin.bs.modal')
754
755    this.$element
756      .removeClass('in')
757      .attr('aria-hidden', true)
758      .off('click.dismiss.bs.modal')
759
760    $.support.transition && this.$element.hasClass('fade') ?
761      this.$element
762        .one('bsTransitionEnd', $.proxy(this.hideModal, this))
763        .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
764      this.hideModal()
765  }
766
767  Modal.prototype.enforceFocus = function () {
768    $(document)
769      .off('focusin.bs.modal') // guard against infinite focus loop
770      .on('focusin.bs.modal', $.proxy(function (e) {
771        if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
772          this.$element.trigger('focus')
773        }
774      }, this))
775  }
776
777  Modal.prototype.escape = function () {
778    if (this.isShown && this.options.keyboard) {
779      this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
780        e.which == 27 && this.hide()
781      }, this))
782    } else if (!this.isShown) {
783      this.$element.off('keydown.dismiss.bs.modal')
784    }
785  }
786
787  Modal.prototype.resize = function () {
788    if (this.isShown) {
789      $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
790    } else {
791      $(window).off('resize.bs.modal')
792    }
793  }
794
795  Modal.prototype.hideModal = function () {
796    var that = this
797    this.$element.hide()
798    this.backdrop(function () {
799      that.$body.removeClass('modal-open')
800      that.resetAdjustments()
801      that.resetScrollbar()
802      that.$element.trigger('hidden.bs.modal')
803    })
804  }
805
806  Modal.prototype.removeBackdrop = function () {
807    this.$backdrop && this.$backdrop.remove()
808    this.$backdrop = null
809  }
810
811  Modal.prototype.backdrop = function (callback) {
812    var that = this
813    var animate = this.$element.hasClass('fade') ? 'fade' : ''
814
815    if (this.isShown && this.options.backdrop) {
816      var doAnimate = $.support.transition && animate
817
818      this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
819        .prependTo(this.$element)
820        .on('click.dismiss.bs.modal', $.proxy(function (e) {
821          if (e.target !== e.currentTarget) return
822          this.options.backdrop == 'static'
823            ? this.$element[0].focus.call(this.$element[0])
824            : this.hide.call(this)
825        }, this))
826
827      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
828
829      this.$backdrop.addClass('in')
830
831      if (!callback) return
832
833      doAnimate ?
834        this.$backdrop
835          .one('bsTransitionEnd', callback)
836          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
837        callback()
838
839    } else if (!this.isShown && this.$backdrop) {
840      this.$backdrop.removeClass('in')
841
842      var callbackRemove = function () {
843        that.removeBackdrop()
844        callback && callback()
845      }
846      $.support.transition && this.$element.hasClass('fade') ?
847        this.$backdrop
848          .one('bsTransitionEnd', callbackRemove)
849          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
850        callbackRemove()
851
852    } else if (callback) {
853      callback()
854    }
855  }
856
857  // these following methods are used to handle overflowing modals
858
859  Modal.prototype.handleUpdate = function () {
860    if (this.options.backdrop) this.adjustBackdrop()
861    this.adjustDialog()
862  }
863
864  Modal.prototype.adjustBackdrop = function () {
865    this.$backdrop
866      .css('height', 0)
867      .css('height', this.$element[0].scrollHeight)
868  }
869
870  Modal.prototype.adjustDialog = function () {
871    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
872
873    this.$element.css({
874      paddingLeft:  !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
875      paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
876    })
877  }
878
879  Modal.prototype.resetAdjustments = function () {
880    this.$element.css({
881      paddingLeft: '',
882      paddingRight: ''
883    })
884  }
885
886  Modal.prototype.checkScrollbar = function () {
887    this.bodyIsOverflowing = document.body.scrollHeight > document.documentElement.clientHeight
888    this.scrollbarWidth = this.measureScrollbar()
889  }
890
891  Modal.prototype.setScrollbar = function () {
892    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
893    if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
894  }
895
896  Modal.prototype.resetScrollbar = function () {
897    this.$body.css('padding-right', '')
898  }
899
900  Modal.prototype.measureScrollbar = function () { // thx walsh
901    var scrollDiv = document.createElement('div')
902    scrollDiv.className = 'modal-scrollbar-measure'
903    this.$body.append(scrollDiv)
904    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
905    this.$body[0].removeChild(scrollDiv)
906    return scrollbarWidth
907  }
908
909
910  // MODAL PLUGIN DEFINITION
911  // =======================
912
913  function Plugin(option, _relatedTarget) {
914    return this.each(function () {
915      var $this   = $(this)
916      var data    = $this.data('bs.modal')
917      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
918
919      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
920      if (typeof option == 'string') data[option](_relatedTarget)
921      else if (options.show) data.show(_relatedTarget)
922    })
923  }
924
925  var old = $.fn.modal
926
927  $.fn.modal             = Plugin
928  $.fn.modal.Constructor = Modal
929
930
931  // MODAL NO CONFLICT
932  // =================
933
934  $.fn.modal.noConflict = function () {
935    $.fn.modal = old
936    return this
937  }
938
939
940  // MODAL DATA-API
941  // ==============
942
943  $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
944    var $this   = $(this)
945    var href    = $this.attr('href')
946    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
947    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
948
949    if ($this.is('a')) e.preventDefault()
950
951    $target.one('show.bs.modal', function (showEvent) {
952      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
953      $target.one('hidden.bs.modal', function () {
954        $this.is(':visible') && $this.trigger('focus')
955      })
956    })
957    Plugin.call($target, option, this)
958  })
959
960}(jQuery);
961
962/* ========================================================================
963 * Bootstrap: tooltip.js v3.3.1
964 * http://getbootstrap.com/javascript/#tooltip
965 * Inspired by the original jQuery.tipsy by Jason Frame
966 * ========================================================================
967 * Copyright 2011-2014 Twitter, Inc.
968 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
969 * ======================================================================== */
970
971
972+function ($) {
973  'use strict';
974
975  // TOOLTIP PUBLIC CLASS DEFINITION
976  // ===============================
977
978  var Tooltip = function (element, options) {
979    this.type       =
980    this.options    =
981    this.enabled    =
982    this.timeout    =
983    this.hoverState =
984    this.$element   = null
985
986    this.init('tooltip', element, options)
987  }
988
989  Tooltip.VERSION  = '3.3.1'
990
991  Tooltip.TRANSITION_DURATION = 150
992
993  Tooltip.DEFAULTS = {
994    animation: true,
995    placement: 'top',
996    selector: false,
997    template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
998    trigger: 'hover focus',
999    title: '',
1000    delay: 0,
1001    html: false,
1002    container: false,
1003    viewport: {
1004      selector: 'body',
1005      padding: 0
1006    }
1007  }
1008
1009  Tooltip.prototype.init = function (type, element, options) {
1010    this.enabled   = true
1011    this.type      = type
1012    this.$element  = $(element)
1013    this.options   = this.getOptions(options)
1014    this.$viewport = this.options.viewport && $(this.options.viewport.selector || this.options.viewport)
1015
1016    var triggers = this.options.trigger.split(' ')
1017
1018    for (var i = triggers.length; i--;) {
1019      var trigger = triggers[i]
1020
1021      if (trigger == 'click') {
1022        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1023      } else if (trigger != 'manual') {
1024        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'
1025        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
1026
1027        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1028        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1029      }
1030    }
1031
1032    this.options.selector ?
1033      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1034      this.fixTitle()
1035  }
1036
1037  Tooltip.prototype.getDefaults = function () {
1038    return Tooltip.DEFAULTS
1039  }
1040
1041  Tooltip.prototype.getOptions = function (options) {
1042    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1043
1044    if (options.delay && typeof options.delay == 'number') {
1045      options.delay = {
1046        show: options.delay,
1047        hide: options.delay
1048      }
1049    }
1050
1051    return options
1052  }
1053
1054  Tooltip.prototype.getDelegateOptions = function () {
1055    var options  = {}
1056    var defaults = this.getDefaults()
1057
1058    this._options && $.each(this._options, function (key, value) {
1059      if (defaults[key] != value) options[key] = value
1060    })
1061
1062    return options
1063  }
1064
1065  Tooltip.prototype.enter = function (obj) {
1066    var self = obj instanceof this.constructor ?
1067      obj : $(obj.currentTarget).data('bs.' + this.type)
1068
1069    if (self && self.$tip && self.$tip.is(':visible')) {
1070      self.hoverState = 'in'
1071      return
1072    }
1073
1074    if (!self) {
1075      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1076      $(obj.currentTarget).data('bs.' + this.type, self)
1077    }
1078
1079    clearTimeout(self.timeout)
1080
1081    self.hoverState = 'in'
1082
1083    if (!self.options.delay || !self.options.delay.show) return self.show()
1084
1085    self.timeout = setTimeout(function () {
1086      if (self.hoverState == 'in') self.show()
1087    }, self.options.delay.show)
1088  }
1089
1090  Tooltip.prototype.leave = function (obj) {
1091    var self = obj instanceof this.constructor ?
1092      obj : $(obj.currentTarget).data('bs.' + this.type)
1093
1094    if (!self) {
1095      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1096      $(obj.currentTarget).data('bs.' + this.type, self)
1097    }
1098
1099    clearTimeout(self.timeout)
1100
1101    self.hoverState = 'out'
1102
1103    if (!self.options.delay || !self.options.delay.hide) return self.hide()
1104
1105    self.timeout = setTimeout(function () {
1106      if (self.hoverState == 'out') self.hide()
1107    }, self.options.delay.hide)
1108  }
1109
1110  Tooltip.prototype.show = function () {
1111    var e = $.Event('show.bs.' + this.type)
1112
1113    if (this.hasContent() && this.enabled) {
1114      this.$element.trigger(e)
1115
1116      var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
1117      if (e.isDefaultPrevented() || !inDom) return
1118      var that = this
1119
1120      var $tip = this.tip()
1121
1122      var tipId = this.getUID(this.type)
1123
1124      this.setContent()
1125      $tip.attr('id', tipId)
1126      this.$element.attr('aria-describedby', tipId)
1127
1128      if (this.options.animation) $tip.addClass('fade')
1129
1130      var placement = typeof this.options.placement == 'function' ?
1131        this.options.placement.call(this, $tip[0], this.$element[0]) :
1132        this.options.placement
1133
1134      var autoToken = /\s?auto?\s?/i
1135      var autoPlace = autoToken.test(placement)
1136      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
1137
1138      $tip
1139        .detach()
1140        .css({ top: 0, left: 0, display: 'block' })
1141        .addClass(placement)
1142        .data('bs.' + this.type, this)
1143
1144      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
1145
1146      var pos          = this.getPosition()
1147      var actualWidth  = $tip[0].offsetWidth
1148      var actualHeight = $tip[0].offsetHeight
1149
1150      if (autoPlace) {
1151        var orgPlacement = placement
1152        var $container   = this.options.container ? $(this.options.container) : this.$element.parent()
1153        var containerDim = this.getPosition($container)
1154
1155        placement = placement == 'bottom' && pos.bottom + actualHeight > containerDim.bottom ? 'top'    :
1156                    placement == 'top'    && pos.top    - actualHeight < containerDim.top    ? 'bottom' :
1157                    placement == 'right'  && pos.right  + actualWidth  > containerDim.width  ? 'left'   :
1158                    placement == 'left'   && pos.left   - actualWidth  < containerDim.left   ? 'right'  :
1159                    placement
1160
1161        $tip
1162          .removeClass(orgPlacement)
1163          .addClass(placement)
1164      }
1165
1166      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
1167
1168      this.applyPlacement(calculatedOffset, placement)
1169
1170      var complete = function () {
1171        var prevHoverState = that.hoverState
1172        that.$element.trigger('shown.bs.' + that.type)
1173        that.hoverState = null
1174
1175        if (prevHoverState == 'out') that.leave(that)
1176      }
1177
1178      $.support.transition && this.$tip.hasClass('fade') ?
1179        $tip
1180          .one('bsTransitionEnd', complete)
1181          .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1182        complete()
1183    }
1184  }
1185
1186  Tooltip.prototype.applyPlacement = function (offset, placement) {
1187    var $tip   = this.tip()
1188    var width  = $tip[0].offsetWidth
1189    var height = $tip[0].offsetHeight
1190
1191    // manually read margins because getBoundingClientRect includes difference
1192    var marginTop = parseInt($tip.css('margin-top'), 10)
1193    var marginLeft = parseInt($tip.css('margin-left'), 10)
1194
1195    // we must check for NaN for ie 8/9
1196    if (isNaN(marginTop))  marginTop  = 0
1197    if (isNaN(marginLeft)) marginLeft = 0
1198
1199    offset.top  = offset.top  + marginTop
1200    offset.left = offset.left + marginLeft
1201
1202    // $.fn.offset doesn't round pixel values
1203    // so we use setOffset directly with our own function B-0
1204    $.offset.setOffset($tip[0], $.extend({
1205      using: function (props) {
1206        $tip.css({
1207          top: Math.round(props.top),
1208          left: Math.round(props.left)
1209        })
1210      }
1211    }, offset), 0)
1212
1213    $tip.addClass('in')
1214
1215    // check to see if placing tip in new offset caused the tip to resize itself
1216    var actualWidth  = $tip[0].offsetWidth
1217    var actualHeight = $tip[0].offsetHeight
1218
1219    if (placement == 'top' && actualHeight != height) {
1220      offset.top = offset.top + height - actualHeight
1221    }
1222
1223    var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
1224
1225    if (delta.left) offset.left += delta.left
1226    else offset.top += delta.top
1227
1228    var isVertical          = /top|bottom/.test(placement)
1229    var arrowDelta          = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
1230    var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'
1231
1232    $tip.offset(offset)
1233    this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
1234  }
1235
1236  Tooltip.prototype.replaceArrow = function (delta, dimension, isHorizontal) {
1237    this.arrow()
1238      .css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
1239      .css(isHorizontal ? 'top' : 'left', '')
1240  }
1241
1242  Tooltip.prototype.setContent = function () {
1243    var $tip  = this.tip()
1244    var title = this.getTitle()
1245
1246    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1247    $tip.removeClass('fade in top bottom left right')
1248  }
1249
1250  Tooltip.prototype.hide = function (callback) {
1251    var that = this
1252    var $tip = this.tip()
1253    var e    = $.Event('hide.bs.' + this.type)
1254
1255    function complete() {
1256      if (that.hoverState != 'in') $tip.detach()
1257      that.$element
1258        .removeAttr('aria-describedby')
1259        .trigger('hidden.bs.' + that.type)
1260      callback && callback()
1261    }
1262
1263    this.$element.trigger(e)
1264
1265    if (e.isDefaultPrevented()) return
1266
1267    $tip.removeClass('in')
1268
1269    $.support.transition && this.$tip.hasClass('fade') ?
1270      $tip
1271        .one('bsTransitionEnd', complete)
1272        .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1273      complete()
1274
1275    this.hoverState = null
1276
1277    return this
1278  }
1279
1280  Tooltip.prototype.fixTitle = function () {
1281    var $e = this.$element
1282    if ($e.attr('title') || typeof ($e.attr('data-original-title')) != 'string') {
1283      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
1284    }
1285  }
1286
1287  Tooltip.prototype.hasContent = function () {
1288    return this.getTitle()
1289  }
1290
1291  Tooltip.prototype.getPosition = function ($element) {
1292    $element   = $element || this.$element
1293
1294    var el     = $element[0]
1295    var isBody = el.tagName == 'BODY'
1296
1297    var elRect    = el.getBoundingClientRect()
1298    if (elRect.width == null) {
1299      // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
1300      elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
1301    }
1302    var elOffset  = isBody ? { top: 0, left: 0 } : $element.offset()
1303    var scroll    = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
1304    var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
1305
1306    return $.extend({}, elRect, scroll, outerDims, elOffset)
1307  }
1308
1309  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
1310    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } :
1311           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :
1312           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
1313        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width   }
1314
1315  }
1316
1317  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
1318    var delta = { top: 0, left: 0 }
1319    if (!this.$viewport) return delta
1320
1321    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
1322    var viewportDimensions = this.getPosition(this.$viewport)
1323
1324    if (/right|left/.test(placement)) {
1325      var topEdgeOffset    = pos.top - viewportPadding - viewportDimensions.scroll
1326      var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
1327      if (topEdgeOffset < viewportDimensions.top) { // top overflow
1328        delta.top = viewportDimensions.top - topEdgeOffset
1329      } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
1330        delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
1331      }
1332    } else {
1333      var leftEdgeOffset  = pos.left - viewportPadding
1334      var rightEdgeOffset = pos.left + viewportPadding + actualWidth
1335      if (leftEdgeOffset < viewportDimensions.left) { // left overflow
1336        delta.left = viewportDimensions.left - leftEdgeOffset
1337      } else if (rightEdgeOffset > viewportDimensions.width) { // right overflow
1338        delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
1339      }
1340    }
1341
1342    return delta
1343  }
1344
1345  Tooltip.prototype.getTitle = function () {
1346    var title
1347    var $e = this.$element
1348    var o  = this.options
1349
1350    title = $e.attr('data-original-title')
1351      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
1352
1353    return title
1354  }
1355
1356  Tooltip.prototype.getUID = function (prefix) {
1357    do prefix += ~~(Math.random() * 1000000)
1358    while (document.getElementById(prefix))
1359    return prefix
1360  }
1361
1362  Tooltip.prototype.tip = function () {
1363    return (this.$tip = this.$tip || $(this.options.template))
1364  }
1365
1366  Tooltip.prototype.arrow = function () {
1367    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
1368  }
1369
1370  Tooltip.prototype.enable = function () {
1371    this.enabled = true
1372  }
1373
1374  Tooltip.prototype.disable = function () {
1375    this.enabled = false
1376  }
1377
1378  Tooltip.prototype.toggleEnabled = function () {
1379    this.enabled = !this.enabled
1380  }
1381
1382  Tooltip.prototype.toggle = function (e) {
1383    var self = this
1384    if (e) {
1385      self = $(e.currentTarget).data('bs.' + this.type)
1386      if (!self) {
1387        self = new this.constructor(e.currentTarget, this.getDelegateOptions())
1388        $(e.currentTarget).data('bs.' + this.type, self)
1389      }
1390    }
1391
1392    self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
1393  }
1394
1395  Tooltip.prototype.destroy = function () {
1396    var that = this
1397    clearTimeout(this.timeout)
1398    this.hide(function () {
1399      that.$element.off('.' + that.type).removeData('bs.' + that.type)
1400    })
1401  }
1402
1403
1404  // TOOLTIP PLUGIN DEFINITION
1405  // =========================
1406
1407  function Plugin(option) {
1408    return this.each(function () {
1409      var $this    = $(this)
1410      var data     = $this.data('bs.tooltip')
1411      var options  = typeof option == 'object' && option
1412      var selector = options && options.selector
1413
1414      if (!data && option == 'destroy') return
1415      if (selector) {
1416        if (!data) $this.data('bs.tooltip', (data = {}))
1417        if (!data[selector]) data[selector] = new Tooltip(this, options)
1418      } else {
1419        if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1420      }
1421      if (typeof option == 'string') data[option]()
1422    })
1423  }
1424
1425  var old = $.fn.tooltip
1426
1427  $.fn.tooltip             = Plugin
1428  $.fn.tooltip.Constructor = Tooltip
1429
1430
1431  // TOOLTIP NO CONFLICT
1432  // ===================
1433
1434  $.fn.tooltip.noConflict = function () {
1435    $.fn.tooltip = old
1436    return this
1437  }
1438
1439}(jQuery);
1440
1441/* ========================================================================
1442 * Bootstrap: popover.js v3.3.1
1443 * http://getbootstrap.com/javascript/#popovers
1444 * ========================================================================
1445 * Copyright 2011-2014 Twitter, Inc.
1446 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1447 * ======================================================================== */
1448
1449
1450+function ($) {
1451  'use strict';
1452
1453  // POPOVER PUBLIC CLASS DEFINITION
1454  // ===============================
1455
1456  var Popover = function (element, options) {
1457    this.init('popover', element, options)
1458  }
1459
1460  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
1461
1462  Popover.VERSION  = '3.3.1'
1463
1464  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
1465    placement: 'right',
1466    trigger: 'click',
1467    content: '',
1468    template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
1469  })
1470
1471
1472  // NOTE: POPOVER EXTENDS tooltip.js
1473  // ================================
1474
1475  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
1476
1477  Popover.prototype.constructor = Popover
1478
1479  Popover.prototype.getDefaults = function () {
1480    return Popover.DEFAULTS
1481  }
1482
1483  Popover.prototype.setContent = function () {
1484    var $tip    = this.tip()
1485    var title   = this.getTitle()
1486    var content = this.getContent()
1487
1488    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1489    $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
1490      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
1491    ](content)
1492
1493    $tip.removeClass('fade top bottom left right in')
1494
1495    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
1496    // this manually by checking the contents.
1497    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
1498  }
1499
1500  Popover.prototype.hasContent = function () {
1501    return this.getTitle() || this.getContent()
1502  }
1503
1504  Popover.prototype.getContent = function () {
1505    var $e = this.$element
1506    var o  = this.options
1507
1508    return $e.attr('data-content')
1509      || (typeof o.content == 'function' ?
1510            o.content.call($e[0]) :
1511            o.content)
1512  }
1513
1514  Popover.prototype.arrow = function () {
1515    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
1516  }
1517
1518  Popover.prototype.tip = function () {
1519    if (!this.$tip) this.$tip = $(this.options.template)
1520    return this.$tip
1521  }
1522
1523
1524  // POPOVER PLUGIN DEFINITION
1525  // =========================
1526
1527  function Plugin(option) {
1528    return this.each(function () {
1529      var $this    = $(this)
1530      var data     = $this.data('bs.popover')
1531      var options  = typeof option == 'object' && option
1532      var selector = options && options.selector
1533
1534      if (!data && option == 'destroy') return
1535      if (selector) {
1536        if (!data) $this.data('bs.popover', (data = {}))
1537        if (!data[selector]) data[selector] = new Popover(this, options)
1538      } else {
1539        if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1540      }
1541      if (typeof option == 'string') data[option]()
1542    })
1543  }
1544
1545  var old = $.fn.popover
1546
1547  $.fn.popover             = Plugin
1548  $.fn.popover.Constructor = Popover
1549
1550
1551  // POPOVER NO CONFLICT
1552  // ===================
1553
1554  $.fn.popover.noConflict = function () {
1555    $.fn.popover = old
1556    return this
1557  }
1558
1559}(jQuery);
1560
1561/* ========================================================================
1562 * Bootstrap: tab.js v3.3.1
1563 * http://getbootstrap.com/javascript/#tabs
1564 * ========================================================================
1565 * Copyright 2011-2014 Twitter, Inc.
1566 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1567 * ======================================================================== */
1568
1569
1570+function ($) {
1571  'use strict';
1572
1573  // TAB CLASS DEFINITION
1574  // ====================
1575
1576  var Tab = function (element) {
1577    this.element = $(element)
1578  }
1579
1580  Tab.VERSION = '3.3.1'
1581
1582  Tab.TRANSITION_DURATION = 150
1583
1584  Tab.prototype.show = function () {
1585    var $this    = this.element
1586    var $ul      = $this.closest('ul:not(.dropdown-menu)')
1587    var selector = $this.data('target')
1588
1589    if (!selector) {
1590      selector = $this.attr('href')
1591      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
1592    }
1593
1594    if ($this.parent('li').hasClass('active')) return
1595
1596    var $previous = $ul.find('.active:last a')
1597    var hideEvent = $.Event('hide.bs.tab', {
1598      relatedTarget: $this[0]
1599    })
1600    var showEvent = $.Event('show.bs.tab', {
1601      relatedTarget: $previous[0]
1602    })
1603
1604    $previous.trigger(hideEvent)
1605    $this.trigger(showEvent)
1606
1607    if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
1608
1609    var $target = $(selector)
1610
1611    this.activate($this.closest('li'), $ul)
1612    this.activate($target, $target.parent(), function () {
1613      $previous.trigger({
1614        type: 'hidden.bs.tab',
1615        relatedTarget: $this[0]
1616      })
1617      $this.trigger({
1618        type: 'shown.bs.tab',
1619        relatedTarget: $previous[0]
1620      })
1621    })
1622  }
1623
1624  Tab.prototype.activate = function (element, container, callback) {
1625    var $active    = container.find('> .active')
1626    var transition = callback
1627      && $.support.transition
1628      && (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
1629
1630    function next() {
1631      $active
1632        .removeClass('active')
1633        .find('> .dropdown-menu > .active')
1634          .removeClass('active')
1635        .end()
1636        .find('[data-toggle="tab"]')
1637          .attr('aria-expanded', false)
1638
1639      element
1640        .addClass('active')
1641        .find('[data-toggle="tab"]')
1642          .attr('aria-expanded', true)
1643
1644      if (transition) {
1645        element[0].offsetWidth // reflow for transition
1646        element.addClass('in')
1647      } else {
1648        element.removeClass('fade')
1649      }
1650
1651      if (element.parent('.dropdown-menu')) {
1652        element
1653          .closest('li.dropdown')
1654            .addClass('active')
1655          .end()
1656          .find('[data-toggle="tab"]')
1657            .attr('aria-expanded', true)
1658      }
1659
1660      callback && callback()
1661    }
1662
1663    $active.length && transition ?
1664      $active
1665        .one('bsTransitionEnd', next)
1666        .emulateTransitionEnd(Tab.TRANSITION_DURATION) :
1667      next()
1668
1669    $active.removeClass('in')
1670  }
1671
1672
1673  // TAB PLUGIN DEFINITION
1674  // =====================
1675
1676  function Plugin(option) {
1677    return this.each(function () {
1678      var $this = $(this)
1679      var data  = $this.data('bs.tab')
1680
1681      if (!data) $this.data('bs.tab', (data = new Tab(this)))
1682      if (typeof option == 'string') data[option]()
1683    })
1684  }
1685
1686  var old = $.fn.tab
1687
1688  $.fn.tab             = Plugin
1689  $.fn.tab.Constructor = Tab
1690
1691
1692  // TAB NO CONFLICT
1693  // ===============
1694
1695  $.fn.tab.noConflict = function () {
1696    $.fn.tab = old
1697    return this
1698  }
1699
1700
1701  // TAB DATA-API
1702  // ============
1703
1704  var clickHandler = function (e) {
1705    e.preventDefault()
1706    Plugin.call($(this), 'show')
1707  }
1708
1709  $(document)
1710    .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
1711    .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
1712
1713}(jQuery);
1714
1715/* ========================================================================
1716 * Bootstrap: affix.js v3.3.1
1717 * http://getbootstrap.com/javascript/#affix
1718 * ========================================================================
1719 * Copyright 2011-2014 Twitter, Inc.
1720 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1721 * ======================================================================== */
1722
1723
1724+function ($) {
1725  'use strict';
1726
1727  // AFFIX CLASS DEFINITION
1728  // ======================
1729
1730  var Affix = function (element, options) {
1731    this.options = $.extend({}, Affix.DEFAULTS, options)
1732
1733    this.$target = $(this.options.target)
1734      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
1735      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
1736
1737    this.$element     = $(element)
1738    this.affixed      =
1739    this.unpin        =
1740    this.pinnedOffset = null
1741
1742    this.checkPosition()
1743  }
1744
1745  Affix.VERSION  = '3.3.1'
1746
1747  Affix.RESET    = 'affix affix-top affix-bottom'
1748
1749  Affix.DEFAULTS = {
1750    offset: 0,
1751    target: window
1752  }
1753
1754  Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
1755    var scrollTop    = this.$target.scrollTop()
1756    var position     = this.$element.offset()
1757    var targetHeight = this.$target.height()
1758
1759    if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
1760
1761    if (this.affixed == 'bottom') {
1762      if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
1763      return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
1764    }
1765
1766    var initializing   = this.affixed == null
1767    var colliderTop    = initializing ? scrollTop : position.top
1768    var colliderHeight = initializing ? targetHeight : height
1769
1770    if (offsetTop != null && colliderTop <= offsetTop) return 'top'
1771    if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
1772
1773    return false
1774  }
1775
1776  Affix.prototype.getPinnedOffset = function () {
1777    if (this.pinnedOffset) return this.pinnedOffset
1778    this.$element.removeClass(Affix.RESET).addClass('affix')
1779    var scrollTop = this.$target.scrollTop()
1780    var position  = this.$element.offset()
1781    return (this.pinnedOffset = position.top - scrollTop)
1782  }
1783
1784  Affix.prototype.checkPositionWithEventLoop = function () {
1785    setTimeout($.proxy(this.checkPosition, this), 1)
1786  }
1787
1788  Affix.prototype.checkPosition = function () {
1789    if (!this.$element.is(':visible')) return
1790
1791    var height       = this.$element.height()
1792    var offset       = this.options.offset
1793    var offsetTop    = offset.top
1794    var offsetBottom = offset.bottom
1795    var scrollHeight = $('body').height()
1796
1797    if (typeof offset != 'object')         offsetBottom = offsetTop = offset
1798    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)
1799    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
1800
1801    var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
1802
1803    if (this.affixed != affix) {
1804      if (this.unpin != null) this.$element.css('top', '')
1805
1806      var affixType = 'affix' + (affix ? '-' + affix : '')
1807      var e         = $.Event(affixType + '.bs.affix')
1808
1809      this.$element.trigger(e)
1810
1811      if (e.isDefaultPrevented()) return
1812
1813      this.affixed = affix
1814      this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
1815
1816      this.$element
1817        .removeClass(Affix.RESET)
1818        .addClass(affixType)
1819        .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
1820    }
1821
1822    if (affix == 'bottom') {
1823      this.$element.offset({
1824        top: scrollHeight - height - offsetBottom
1825      })
1826    }
1827  }
1828
1829
1830  // AFFIX PLUGIN DEFINITION
1831  // =======================
1832
1833  function Plugin(option) {
1834    return this.each(function () {
1835      var $this   = $(this)
1836      var data    = $this.data('bs.affix')
1837      var options = typeof option == 'object' && option
1838
1839      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
1840      if (typeof option == 'string') data[option]()
1841    })
1842  }
1843
1844  var old = $.fn.affix
1845
1846  $.fn.affix             = Plugin
1847  $.fn.affix.Constructor = Affix
1848
1849
1850  // AFFIX NO CONFLICT
1851  // =================
1852
1853  $.fn.affix.noConflict = function () {
1854    $.fn.affix = old
1855    return this
1856  }
1857
1858
1859  // AFFIX DATA-API
1860  // ==============
1861
1862  $(window).on('load', function () {
1863    $('[data-spy="affix"]').each(function () {
1864      var $spy = $(this)
1865      var data = $spy.data()
1866
1867      data.offset = data.offset || {}
1868
1869      if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
1870      if (data.offsetTop    != null) data.offset.top    = data.offsetTop
1871
1872      Plugin.call($spy, data)
1873    })
1874  })
1875
1876}(jQuery);
1877
1878/* ========================================================================
1879 * Bootstrap: collapse.js v3.3.1
1880 * http://getbootstrap.com/javascript/#collapse
1881 * ========================================================================
1882 * Copyright 2011-2014 Twitter, Inc.
1883 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1884 * ======================================================================== */
1885
1886
1887+function ($) {
1888  'use strict';
1889
1890  // COLLAPSE PUBLIC CLASS DEFINITION
1891  // ================================
1892
1893  var Collapse = function (element, options) {
1894    this.$element      = $(element)
1895    this.options       = $.extend({}, Collapse.DEFAULTS, options)
1896    this.$trigger      = $(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]')
1897    this.transitioning = null
1898
1899    if (this.options.parent) {
1900      this.$parent = this.getParent()
1901    } else {
1902      this.addAriaAndCollapsedClass(this.$element, this.$trigger)
1903    }
1904
1905    if (this.options.toggle) this.toggle()
1906  }
1907
1908  Collapse.VERSION  = '3.3.1'
1909
1910  Collapse.TRANSITION_DURATION = 350
1911
1912  Collapse.DEFAULTS = {
1913    toggle: true,
1914    trigger: '[data-toggle="collapse"]'
1915  }
1916
1917  Collapse.prototype.dimension = function () {
1918    var hasWidth = this.$element.hasClass('width')
1919    return hasWidth ? 'width' : 'height'
1920  }
1921
1922  Collapse.prototype.show = function () {
1923    if (this.transitioning || this.$element.hasClass('in')) return
1924
1925    var activesData
1926    var actives = this.$parent && this.$parent.find('> .panel').children('.in, .collapsing')
1927
1928    if (actives && actives.length) {
1929      activesData = actives.data('bs.collapse')
1930      if (activesData && activesData.transitioning) return
1931    }
1932
1933    var startEvent = $.Event('show.bs.collapse')
1934    this.$element.trigger(startEvent)
1935    if (startEvent.isDefaultPrevented()) return
1936
1937    if (actives && actives.length) {
1938      Plugin.call(actives, 'hide')
1939      activesData || actives.data('bs.collapse', null)
1940    }
1941
1942    var dimension = this.dimension()
1943
1944    this.$element
1945      .removeClass('collapse')
1946      .addClass('collapsing')[dimension](0)
1947      .attr('aria-expanded', true)
1948
1949    this.$trigger
1950      .removeClass('collapsed')
1951      .attr('aria-expanded', true)
1952
1953    this.transitioning = 1
1954
1955    var complete = function () {
1956      this.$element
1957        .removeClass('collapsing')
1958        .addClass('collapse in')[dimension]('')
1959      this.transitioning = 0
1960      this.$element
1961        .trigger('shown.bs.collapse')
1962    }
1963
1964    if (!$.support.transition) return complete.call(this)
1965
1966    var scrollSize = $.camelCase(['scroll', dimension].join('-'))
1967
1968    this.$element
1969      .one('bsTransitionEnd', $.proxy(complete, this))
1970      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
1971  }
1972
1973  Collapse.prototype.hide = function () {
1974    if (this.transitioning || !this.$element.hasClass('in')) return
1975
1976    var startEvent = $.Event('hide.bs.collapse')
1977    this.$element.trigger(startEvent)
1978    if (startEvent.isDefaultPrevented()) return
1979
1980    var dimension = this.dimension()
1981
1982    this.$element[dimension](this.$element[dimension]())[0].offsetHeight
1983
1984    this.$element
1985      .addClass('collapsing')
1986      .removeClass('collapse in')
1987      .attr('aria-expanded', false)
1988
1989    this.$trigger
1990      .addClass('collapsed')
1991      .attr('aria-expanded', false)
1992
1993    this.transitioning = 1
1994
1995    var complete = function () {
1996      this.transitioning = 0
1997      this.$element
1998        .removeClass('collapsing')
1999        .addClass('collapse')
2000        .trigger('hidden.bs.collapse')
2001    }
2002
2003    if (!$.support.transition) return complete.call(this)
2004
2005    this.$element
2006      [dimension](0)
2007      .one('bsTransitionEnd', $.proxy(complete, this))
2008      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)
2009  }
2010
2011  Collapse.prototype.toggle = function () {
2012    this[this.$element.hasClass('in') ? 'hide' : 'show']()
2013  }
2014
2015  Collapse.prototype.getParent = function () {
2016    return $(this.options.parent)
2017      .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
2018      .each($.proxy(function (i, element) {
2019        var $element = $(element)
2020        this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
2021      }, this))
2022      .end()
2023  }
2024
2025  Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
2026    var isOpen = $element.hasClass('in')
2027
2028    $element.attr('aria-expanded', isOpen)
2029    $trigger
2030      .toggleClass('collapsed', !isOpen)
2031      .attr('aria-expanded', isOpen)
2032  }
2033
2034  function getTargetFromTrigger($trigger) {
2035    var href
2036    var target = $trigger.attr('data-target')
2037      || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
2038
2039    return $(target)
2040  }
2041
2042
2043  // COLLAPSE PLUGIN DEFINITION
2044  // ==========================
2045
2046  function Plugin(option) {
2047    return this.each(function () {
2048      var $this   = $(this)
2049      var data    = $this.data('bs.collapse')
2050      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
2051
2052      if (!data && options.toggle && option == 'show') options.toggle = false
2053      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
2054      if (typeof option == 'string') data[option]()
2055    })
2056  }
2057
2058  var old = $.fn.collapse
2059
2060  $.fn.collapse             = Plugin
2061  $.fn.collapse.Constructor = Collapse
2062
2063
2064  // COLLAPSE NO CONFLICT
2065  // ====================
2066
2067  $.fn.collapse.noConflict = function () {
2068    $.fn.collapse = old
2069    return this
2070  }
2071
2072
2073  // COLLAPSE DATA-API
2074  // =================
2075
2076  $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
2077    var $this   = $(this)
2078
2079    if (!$this.attr('data-target')) e.preventDefault()
2080
2081    var $target = getTargetFromTrigger($this)
2082    var data    = $target.data('bs.collapse')
2083    var option  = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this })
2084
2085    Plugin.call($target, option)
2086  })
2087
2088}(jQuery);
2089
2090/* ========================================================================
2091 * Bootstrap: scrollspy.js v3.3.1
2092 * http://getbootstrap.com/javascript/#scrollspy
2093 * ========================================================================
2094 * Copyright 2011-2014 Twitter, Inc.
2095 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2096 * ======================================================================== */
2097
2098
2099+function ($) {
2100  'use strict';
2101
2102  // SCROLLSPY CLASS DEFINITION
2103  // ==========================
2104
2105  function ScrollSpy(element, options) {
2106    var process  = $.proxy(this.process, this)
2107
2108    this.$body          = $('body')
2109    this.$scrollElement = $(element).is('body') ? $(window) : $(element)
2110    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)
2111    this.selector       = (this.options.target || '') + ' .nav li > a'
2112    this.offsets        = []
2113    this.targets        = []
2114    this.activeTarget   = null
2115    this.scrollHeight   = 0
2116
2117    this.$scrollElement.on('scroll.bs.scrollspy', process)
2118    this.refresh()
2119    this.process()
2120  }
2121
2122  ScrollSpy.VERSION  = '3.3.1'
2123
2124  ScrollSpy.DEFAULTS = {
2125    offset: 10
2126  }
2127
2128  ScrollSpy.prototype.getScrollHeight = function () {
2129    return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
2130  }
2131
2132  ScrollSpy.prototype.refresh = function () {
2133    var offsetMethod = 'offset'
2134    var offsetBase   = 0
2135
2136    if (!$.isWindow(this.$scrollElement[0])) {
2137      offsetMethod = 'position'
2138      offsetBase   = this.$scrollElement.scrollTop()
2139    }
2140
2141    this.offsets = []
2142    this.targets = []
2143    this.scrollHeight = this.getScrollHeight()
2144
2145    var self     = this
2146
2147    this.$body
2148      .find(this.selector)
2149      .map(function () {
2150        var $el   = $(this)
2151        var href  = $el.data('target') || $el.attr('href')
2152        var $href = /^#./.test(href) && $(href)
2153
2154        return ($href
2155          && $href.length
2156          && $href.is(':visible')
2157          && [[$href[offsetMethod]().top + offsetBase, href]]) || null
2158      })
2159      .sort(function (a, b) { return a[0] - b[0] })
2160      .each(function () {
2161        self.offsets.push(this[0])
2162        self.targets.push(this[1])
2163      })
2164  }
2165
2166  ScrollSpy.prototype.process = function () {
2167    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset
2168    var scrollHeight = this.getScrollHeight()
2169    var maxScroll    = this.options.offset + scrollHeight - this.$scrollElement.height()
2170    var offsets      = this.offsets
2171    var targets      = this.targets
2172    var activeTarget = this.activeTarget
2173    var i
2174
2175    if (this.scrollHeight != scrollHeight) {
2176      this.refresh()
2177    }
2178
2179    if (scrollTop >= maxScroll) {
2180      return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
2181    }
2182
2183    if (activeTarget && scrollTop < offsets[0]) {
2184      this.activeTarget = null
2185      return this.clear()
2186    }
2187
2188    for (i = offsets.length; i--;) {
2189      activeTarget != targets[i]
2190        && scrollTop >= offsets[i]
2191        && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
2192        && this.activate(targets[i])
2193    }
2194  }
2195
2196  ScrollSpy.prototype.activate = function (target) {
2197    this.activeTarget = target
2198
2199    this.clear()
2200
2201    var selector = this.selector +
2202        '[data-target="' + target + '"],' +
2203        this.selector + '[href="' + target + '"]'
2204
2205    var active = $(selector)
2206      .parents('li')
2207      .addClass('active')
2208
2209    if (active.parent('.dropdown-menu').length) {
2210      active = active
2211        .closest('li.dropdown')
2212        .addClass('active')
2213    }
2214
2215    active.trigger('activate.bs.scrollspy')
2216  }
2217
2218  ScrollSpy.prototype.clear = function () {
2219    $(this.selector)
2220      .parentsUntil(this.options.target, '.active')
2221      .removeClass('active')
2222  }
2223
2224
2225  // SCROLLSPY PLUGIN DEFINITION
2226  // ===========================
2227
2228  function Plugin(option) {
2229    return this.each(function () {
2230      var $this   = $(this)
2231      var data    = $this.data('bs.scrollspy')
2232      var options = typeof option == 'object' && option
2233
2234      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
2235      if (typeof option == 'string') data[option]()
2236    })
2237  }
2238
2239  var old = $.fn.scrollspy
2240
2241  $.fn.scrollspy             = Plugin
2242  $.fn.scrollspy.Constructor = ScrollSpy
2243
2244
2245  // SCROLLSPY NO CONFLICT
2246  // =====================
2247
2248  $.fn.scrollspy.noConflict = function () {
2249    $.fn.scrollspy = old
2250    return this
2251  }
2252
2253
2254  // SCROLLSPY DATA-API
2255  // ==================
2256
2257  $(window).on('load.bs.scrollspy.data-api', function () {
2258    $('[data-spy="scroll"]').each(function () {
2259      var $spy = $(this)
2260      Plugin.call($spy, $spy.data())
2261    })
2262  })
2263
2264}(jQuery);
2265
2266/* ========================================================================
2267 * Bootstrap: transition.js v3.3.1
2268 * http://getbootstrap.com/javascript/#transitions
2269 * ========================================================================
2270 * Copyright 2011-2014 Twitter, Inc.
2271 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2272 * ======================================================================== */
2273
2274
2275+function ($) {
2276  'use strict';
2277
2278  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
2279  // ============================================================
2280
2281  function transitionEnd() {
2282    var el = document.createElement('bootstrap')
2283
2284    var transEndEventNames = {
2285      WebkitTransition : 'webkitTransitionEnd',
2286      MozTransition    : 'transitionend',
2287      OTransition      : 'oTransitionEnd otransitionend',
2288      transition       : 'transitionend'
2289    }
2290
2291    for (var name in transEndEventNames) {
2292      if (el.style[name] !== undefined) {
2293        return { end: transEndEventNames[name] }
2294      }
2295    }
2296
2297    return false // explicit for ie8 (  ._.)
2298  }
2299
2300  // http://blog.alexmaccaw.com/css-transitions
2301  $.fn.emulateTransitionEnd = function (duration) {
2302    var called = false
2303    var $el = this
2304    $(this).one('bsTransitionEnd', function () { called = true })
2305    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
2306    setTimeout(callback, duration)
2307    return this
2308  }
2309
2310  $(function () {
2311    $.support.transition = transitionEnd()
2312
2313    if (!$.support.transition) return
2314
2315    $.event.special.bsTransitionEnd = {
2316      bindType: $.support.transition.end,
2317      delegateType: $.support.transition.end,
2318      handle: function (e) {
2319        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
2320      }
2321    }
2322  })
2323
2324}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.