PageSourceSearch

https://marxist.com/media/com_jchoptimize/cache/js/ed1f7d662fad5ea…43cb75b24c67aa4b35b6fb8997c16e903c8aa5d8.js

js marxist.com collected 2026-10-02 02:18:37 UTC 51,116 bytes, 844 lines download raw bytes

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