PageSourceSearch

https://tnticc.org/wp-content/cache/autoptimize/autoptimize_single…1549ee2896513a1ed5714b1b1a0f0.php?ver=3.3.7

js tnticc.org collected 2026-10-07 20:48:40 UTC 47,193 bytes, 800 lines download raw bytes

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