PageSourceSearch

https://www.movellus.com/wp-content/cache/min/1/wp-content/plugins…/assets/js/tabs-custom.js?ver=1784754200

js movellus.com collected 2026-09-25 18:52:58 UTC 46,296 bytes, 788 lines download raw bytes

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