PageSourceSearch

https://www.histoire-pour-tous.fr/t3-assets/js/js-ce32c-51863.js

js histoire-pour-tous.fr collected 2026-10-02 05:32:27 UTC 81,532 bytes, 939 lines download raw bytes

1
2
3/*===============================
4/media/jui/js/jquery-noconflict.js
5================================================================================*/;
6jQuery.noConflict();
7
8
9/*===============================
10/media/jui/js/jquery-migrate.min.js
11================================================================================*/;
12/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
13"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.no
13deName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
13,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
14
15
16
17/*===============================
18/plugins/system/t3/base-bs3/bootstrap/js/bootstrap.js
19================================================================================*/;
20/*!
21 * Bootstrap v3.3.7 (http://getbootstrap.com)
22 * Copyright 2011-2016 Twitter, Inc.
23 * Licensed under the MIT license
24 */
25if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}
26+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.')
27if((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')
28var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
vendor: 4,831 bytes, lines 29-114
29for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
30return false}
31$.fn.emulateTransitionEnd=function(duration){var called=false
32var $el=this
33$(this).one('bsTransitionEnd',function(){called=true})
34var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
35setTimeout(callback,duration)
36return this}
37$(function(){$.support.transition=transitionEnd()
38if(!$.support.transition)return
39$.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"]'
40var Alert=function(el){$(el).on('click',dismiss,this.close)}
41Alert.VERSION='3.3.7'
42Alert.TRANSITION_DURATION=150
43Alert.prototype.close=function(e){var $this=$(this)
44var selector=$this.attr('data-target')
45if(!selector){selector=$this.attr('href')
46selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
47var $parent=$(selector==='#'?[]:selector)
48if(e)e.preventDefault()
49if(!$parent.length){$parent=$this.closest('.alert')}
50$parent.trigger(e=$.Event('close.bs.alert'))
51if(e.isDefaultPrevented())return
52$parent.removeClass('in')
53function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()}
54$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()}
55function Plugin(option){return this.each(function(){var $this=$(this)
56var data=$this.data('bs.alert')
57if(!data)$this.data('bs.alert',(data=new Alert(this)))
58if(typeof option=='string')data[option].call($this)})}
59var old=$.fn.alert
60$.fn.alert=Plugin
61$.fn.alert.Constructor=Alert
62$.fn.alert.noConflict=function(){$.fn.alert=old
63return this}
64$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element)
65this.options=$.extend({},Button.DEFAULTS,options)
66this.isLoading=false}
67Button.VERSION='3.3.7'
68Button.DEFAULTS={loadingText:'loading...'}
69Button.prototype.setState=function(state){var d='disabled'
70var $el=this.$element
71var val=$el.is('input')?'val':'html'
72var data=$el.data()
73state+='Text'
74if(data.resetText==null)$el.data('resetText',$el[val]())
75setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state])
76if(state=='loadingText'){this.isLoading=true
77$el.addClass(d).attr(d,d).prop(d,true)}else if(this.isLoading){this.isLoading=false
78$el.removeClass(d).removeAttr(d).prop(d,false)}},this),0)}
79Button.prototype.toggle=function(){var changed=true
80var $parent=this.$element.closest('[data-toggle="buttons"]')
81if($parent.length){var $input=this.$element.find('input')
82if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false
83$parent.find('.active').removeClass('active')
84this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false
85this.$element.toggleClass('active')}
86$input.prop('checked',this.$element.hasClass('active'))
87if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'))
88this.$element.toggleClass('active')}}
89function Plugin(option){return this.each(function(){var $this=$(this)
90var data=$this.data('bs.button')
91var options=typeof option=='object'&&option
92if(!data)$this.data('bs.button',(data=new Button(this,options)))
93if(option=='toggle')data.toggle()
94else if(option)data.setState(option)})}
95var old=$.fn.button
96$.fn.button=Plugin
97$.fn.button.Constructor=Button
98$.fn.button.noConflict=function(){$.fn.button=old
99return this}
100$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn')
101Plugin.call($btn,'toggle')
102if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault()
103if($btn.is('input,button'))$btn.trigger('focus')
104else $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)
105this.$indicators=this.$element.find('.carousel-indicators')
106this.options=options
107this.paused=null
108this.sliding=null
109this.interval=null
110this.$active=null
111this.$items=null
112this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this))
113this.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))}
114Carousel.VERSION='3.3.7'
vendor: 4,104 bytes, lines 115-195
115Carousel.TRANSITION_DURATION=600
116Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true}
117Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return
118switch(e.which){case 37:this.prev();break
119case 39:this.next();break
120default:return}
121e.preventDefault()}
122Carousel.prototype.cycle=function(e){e||(this.paused=false)
123this.interval&&clearInterval(this.interval)
124this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval))
125return this}
126Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item')
127return this.$items.index(item||this.$active)}
128Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active)
129var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1))
130if(willWrap&&!this.options.wrap)return active
131var delta=direction=='prev'?-1:1
132var itemIndex=(activeIndex+delta)%this.$items.length
133return this.$items.eq(itemIndex)}
134Carousel.prototype.to=function(pos){var that=this
135var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
136if(pos>(this.$items.length-1)||pos<0)return
137if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)})
138if(activeIndex==pos)return this.pause().cycle()
139return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))}
140Carousel.prototype.pause=function(e){e||(this.paused=true)
141if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end)
142this.cycle(true)}
143this.interval=clearInterval(this.interval)
144return this}
145Carousel.prototype.next=function(){if(this.sliding)return
146return this.slide('next')}
147Carousel.prototype.prev=function(){if(this.sliding)return
148return this.slide('prev')}
149Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active')
150var $next=next||this.getItemForDirection(type,$active)
151var isCycling=this.interval
152var direction=type=='next'?'left':'right'
153var that=this
154if($next.hasClass('active'))return(this.sliding=false)
155var relatedTarget=$next[0]
156var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
157this.$element.trigger(slideEvent)
158if(slideEvent.isDefaultPrevented())return
159this.sliding=true
160isCycling&&this.pause()
161if(this.$indicators.length){this.$indicators.find('.active').removeClass('active')
162var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
163$nextIndicator&&$nextIndicator.addClass('active')}
164var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
165if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type)
166$next[0].offsetWidth
167$active.addClass(direction)
168$next.addClass(direction)
169$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active')
170$active.removeClass(['active',direction].join(' '))
171that.sliding=false
172setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active')
173$next.addClass('active')
174this.sliding=false
175this.$element.trigger(slidEvent)}
176isCycling&&this.cycle()
177return this}
178function Plugin(option){return this.each(function(){var $this=$(this)
179var data=$this.data('bs.carousel')
180var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option)
181var action=typeof option=='string'?option:options.slide
182if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)))
183if(typeof option=='number')data.to(option)
184else if(action)data[action]()
185else if(options.interval)data.pause().cycle()})}
186var old=$.fn.carousel
187$.fn.carousel=Plugin
188$.fn.carousel.Constructor=Carousel
189$.fn.carousel.noConflict=function(){$.fn.carousel=old
190return this}
191var clickHandler=function(e){var href
192var $this=$(this)
193var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''))
194if(!$target.hasClass('carousel'))return
195var options=$.extend({},$target.data(),$this.data())
vendor: 14,259 bytes, lines 196-431
196var slideIndex=$this.attr('data-slide-to')
197if(slideIndex)options.interval=false
198Plugin.call($target,options)
199if(slideIndex){$target.data('bs.carousel').to(slideIndex)}
200e.preventDefault()}
201$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler)
202$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this)
203Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
204this.options=$.extend({},Collapse.DEFAULTS,options)
205this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]')
206this.transitioning=null
207if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}
208if(this.options.toggle)this.toggle()}
209Collapse.VERSION='3.3.7'
210Collapse.TRANSITION_DURATION=350
211Collapse.DEFAULTS={toggle:true}
212Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
213return hasWidth?'width':'height'}
214Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
215var activesData
216var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing')
217if(actives&&actives.length){activesData=actives.data('bs.collapse')
218if(activesData&&activesData.transitioning)return}
219var startEvent=$.Event('show.bs.collapse')
220this.$element.trigger(startEvent)
221if(startEvent.isDefaultPrevented())return
222if(actives&&actives.length){Plugin.call(actives,'hide')
223activesData||actives.data('bs.collapse',null)}
224var dimension=this.dimension()
225this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
226this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
227this.transitioning=1
228var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
229this.transitioning=0
230this.$element.trigger('shown.bs.collapse')}
231if(!$.support.transition)return complete.call(this)
232var scrollSize=$.camelCase(['scroll',dimension].join('-'))
233this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
234Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
235var startEvent=$.Event('hide.bs.collapse')
236this.$element.trigger(startEvent)
237if(startEvent.isDefaultPrevented())return
238var dimension=this.dimension()
239this.$element[dimension](this.$element[dimension]())[0].offsetHeight
240this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
241this.$trigger.addClass('collapsed').attr('aria-expanded',false)
242this.transitioning=1
243var complete=function(){this.transitioning=0
244this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
245if(!$.support.transition)return complete.call(this)
246this.$element
247[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
248Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
249Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
250this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
251Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
252$element.attr('aria-expanded',isOpen)
253$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
254function getTargetFromTrigger($trigger){var href
255var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
256return $(target)}
257function Plugin(option){return this.each(function(){var $this=$(this)
258var data=$this.data('bs.collapse')
259var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
260if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false
261if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
262if(typeof option=='string')data[option]()})}
263var old=$.fn.collapse
264$.fn.collapse=Plugin
265$.fn.collapse.Constructor=Collapse
266$.fn.collapse.noConflict=function(){$.fn.collapse=old
267return this}
268$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
269if(!$this.attr('data-target'))e.preventDefault()
270var $target=getTargetFromTrigger($this)
271var data=$target.data('bs.collapse')
272var option=data?'toggle':$this.data()
273Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop'
274var toggle='[data-toggle="dropdown"]'
275var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)}
276Dropdown.VERSION='3.3.7'
277function getParent($this){var selector=$this.attr('data-target')
278if(!selector){selector=$this.attr('href')
279selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
280var $parent=selector&&$(selector)
281return $parent&&$parent.length?$parent:$this.parent()}
282function clearMenus(e){if(e&&e.which===3)return
283$(backdrop).remove()
284$(toggle).each(function(){var $this=$(this)
285var $parent=getParent($this)
286var relatedTarget={relatedTarget:this}
287if(!$parent.hasClass('open'))return
288if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return
289$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget))
290if(e.isDefaultPrevented())return
291$this.attr('aria-expanded','false')
292$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})}
293Dropdown.prototype.toggle=function(e){var $this=$(this)
294if($this.is('.disabled, :disabled'))return
295var $parent=getParent($this)
296var isActive=$parent.hasClass('open')
297clearMenus()
298if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)}
299var relatedTarget={relatedTarget:this}
300$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget))
301if(e.isDefaultPrevented())return
302$this.trigger('focus').attr('aria-expanded','true')
303$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))}
304return false}
305Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return
306var $this=$(this)
307e.preventDefault()
308e.stopPropagation()
309if($this.is('.disabled, :disabled'))return
310var $parent=getParent($this)
311var isActive=$parent.hasClass('open')
312if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus')
313return $this.trigger('click')}
314var desc=' li:not(.disabled):visible a'
315var $items=$parent.find('.dropdown-menu'+desc)
316if(!$items.length)return
317var index=$items.index(e.target)
318if(e.which==38&&index>0)index--
319if(e.which==40&&index<$items.length-1)index++
320if(!~index)index=0
321$items.eq(index).trigger('focus')}
322function Plugin(option){return this.each(function(){var $this=$(this)
323var data=$this.data('bs.dropdown')
324if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)))
325if(typeof option=='string')data[option].call($this)})}
326var old=$.fn.dropdown
327$.fn.dropdown=Plugin
328$.fn.dropdown.Constructor=Dropdown
329$.fn.dropdown.noConflict=function(){$.fn.dropdown=old
330return this}
331$(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
332this.$body=$(document.body)
333this.$element=$(element)
334this.$dialog=this.$element.find('.modal-dialog')
335this.$backdrop=null
336this.isShown=null
337this.originalBodyPad=null
338this.scrollbarWidth=0
339this.ignoreBackdropClick=false
340if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
341Modal.VERSION='3.3.7'
342Modal.TRANSITION_DURATION=300
343Modal.BACKDROP_TRANSITION_DURATION=150
344Modal.DEFAULTS={backdrop:true,keyboard:true,show:true}
345Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
346Modal.prototype.show=function(_relatedTarget){var that=this
347var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
348this.$element.trigger(e)
349if(this.isShown||e.isDefaultPrevented())return
350this.isShown=true
351this.checkScrollbar()
352this.setScrollbar()
353this.$body.addClass('modal-open')
354this.escape()
355this.resize()
356this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
357this.$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})})
358this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
359if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
360that.$element.show().scrollTop(0)
361that.adjustDialog()
362if(transition){that.$element[0].offsetWidth}
363that.$element.addClass('in')
364that.enforceFocus()
365var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
366transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})}
367Modal.prototype.hide=function(e){if(e)e.preventDefault()
368e=$.Event('hide.bs.modal')
369this.$element.trigger(e)
370if(!this.isShown||e.isDefaultPrevented())return
371this.isShown=false
372this.escape()
373this.resize()
374$(document).off('focusin.bs.modal')
375this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal')
376this.$dialog.off('mousedown.dismiss.bs.modal')
377$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()}
378Modal.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))}
379Modal.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')}}
380Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}}
381Modal.prototype.hideModal=function(){var that=this
382this.$element.hide()
383this.backdrop(function(){that.$body.removeClass('modal-open')
384that.resetAdjustments()
385that.resetScrollbar()
386that.$element.trigger('hidden.bs.modal')})}
387Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
388this.$backdrop=null}
389Modal.prototype.backdrop=function(callback){var that=this
390var animate=this.$element.hasClass('fade')?'fade':''
391if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
392this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body)
393this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false
394return}
395if(e.target!==e.currentTarget)return
396this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this))
397if(doAnimate)this.$backdrop[0].offsetWidth
398this.$backdrop.addClass('in')
399if(!callback)return
400doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
401var callbackRemove=function(){that.removeBackdrop()
402callback&&callback()}
403$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}}
404Modal.prototype.handleUpdate=function(){this.adjustDialog()}
405Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight
406this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})}
407Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})}
408Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth
409if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect()
410fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)}
411this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth
412this.scrollbarWidth=this.measureScrollbar()}
413Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10)
414this.originalBodyPad=document.body.style.paddingRight||''
415if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth)}
416Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)}
417Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
418scrollDiv.className='modal-scrollbar-measure'
419this.$body.append(scrollDiv)
420var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
421this.$body[0].removeChild(scrollDiv)
422return scrollbarWidth}
423function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this)
424var data=$this.data('bs.modal')
425var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
426if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
427if(typeof option=='string')data[option](_relatedTarget)
428else if(options.show)data.show(_relatedTarget)})}
429var old=$.fn.modal
430$.fn.modal=Plugin
431$.fn.modal.Constructor=Modal
vendor: 6,679 bytes, lines 432-536
432$.fn.modal.noConflict=function(){$.fn.modal=old
433return this}
434$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
435var href=$this.attr('href')
436var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,'')))
437var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
438if($this.is('a'))e.preventDefault()
439$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return
440$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})})
441Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=null
442this.options=null
443this.enabled=null
444this.timeout=null
445this.hoverState=null
446this.$element=null
447this.inState=null
448this.init('tooltip',element,options)}
449Tooltip.VERSION='3.3.7'
450Tooltip.TRANSITION_DURATION=150
451Tooltip.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}}
452Tooltip.prototype.init=function(type,element,options){this.enabled=true
453this.type=type
454this.$element=$(element)
455this.options=this.getOptions(options)
456this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport))
457this.inState={click:false,hover:false,focus:false}
458if(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!')}
459var triggers=this.options.trigger.split(' ')
460for(var i=triggers.length;i--;){var trigger=triggers[i]
461if(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'
462var eventOut=trigger=='hover'?'mouseleave':'focusout'
463this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this))
464this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}
465this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()}
466Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS}
467Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options)
468if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}
469return options}
470Tooltip.prototype.getDelegateOptions=function(){var options={}
471var defaults=this.getDefaults()
472this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value})
473return options}
474Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
475if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
476$(obj.currentTarget).data('bs.'+this.type,self)}
477if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=true}
478if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in'
479return}
480clearTimeout(self.timeout)
481self.hoverState='in'
482if(!self.options.delay||!self.options.delay.show)return self.show()
483self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)}
484Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return true}
485return false}
486Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
487if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
488$(obj.currentTarget).data('bs.'+this.type,self)}
489if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=false}
490if(self.isInStateTrue())return
491clearTimeout(self.timeout)
492self.hoverState='out'
493if(!self.options.delay||!self.options.delay.hide)return self.hide()
494self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)}
495Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type)
496if(this.hasContent()&&this.enabled){this.$element.trigger(e)
497var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0])
498if(e.isDefaultPrevented()||!inDom)return
499var that=this
500var $tip=this.tip()
501var tipId=this.getUID(this.type)
502this.setContent()
503$tip.attr('id',tipId)
504this.$element.attr('aria-describedby',tipId)
505if(this.options.animation)$tip.addClass('fade')
506var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement
507var autoToken=/\s?auto?\s?/i
508var autoPlace=autoToken.test(placement)
509if(autoPlace)placement=placement.replace(autoToken,'')||'top'
510$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this)
511this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element)
512this.$element.trigger('inserted.bs.'+this.type)
513var pos=this.getPosition()
514var actualWidth=$tip[0].offsetWidth
515var actualHeight=$tip[0].offsetHeight
516if(autoPlace){var orgPlacement=placement
517var viewportDim=this.getPosition(this.$viewport)
518placement=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
519$tip.removeClass(orgPlacement).addClass(placement)}
520var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight)
521this.applyPlacement(calculatedOffset,placement)
522var complete=function(){var prevHoverState=that.hoverState
523that.$element.trigger('shown.bs.'+that.type)
524that.hoverState=null
525if(prevHoverState=='out')that.leave(that)}
526$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}}
527Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip()
528var width=$tip[0].offsetWidth
529var height=$tip[0].offsetHeight
530var marginTop=parseInt($tip.css('margin-top'),10)
531var marginLeft=parseInt($tip.css('margin-left'),10)
532if(isNaN(marginTop))marginTop=0
533if(isNaN(marginLeft))marginLeft=0
534offset.top+=marginTop
535offset.left+=marginLeft
536$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left
vendor: 4,370 bytes, lines 536-598
536:Math.round(props.left)})}},offset),0)
537$tip.addClass('in')
538var actualWidth=$tip[0].offsetWidth
539var actualHeight=$tip[0].offsetHeight
540if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight}
541var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight)
542if(delta.left)offset.left+=delta.left
543else offset.top+=delta.top
544var isVertical=/top|bottom/.test(placement)
545var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight
546var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight'
547$tip.offset(offset)
548this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)}
549Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')}
550Tooltip.prototype.setContent=function(){var $tip=this.tip()
551var title=this.getTitle()
552$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title)
553$tip.removeClass('fade in top bottom left right')}
554Tooltip.prototype.hide=function(callback){var that=this
555var $tip=$(this.$tip)
556var e=$.Event('hide.bs.'+this.type)
557function complete(){if(that.hoverState!='in')$tip.detach()
558if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)}
559callback&&callback()}
560this.$element.trigger(e)
561if(e.isDefaultPrevented())return
562$tip.removeClass('in')
563$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()
564this.hoverState=null
565return this}
566Tooltip.prototype.fixTitle=function(){var $e=this.$element
567if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}}
568Tooltip.prototype.hasContent=function(){return this.getTitle()}
569Tooltip.prototype.getPosition=function($element){$element=$element||this.$element
570var el=$element[0]
571var isBody=el.tagName=='BODY'
572var elRect=el.getBoundingClientRect()
573if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
574var isSvg=window.SVGElement&&el instanceof window.SVGElement
575var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset())
576var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()}
577var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null
578return $.extend({},elRect,scroll,outerDims,elOffset)}
579Tooltip.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}}
580Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0}
581if(!this.$viewport)return delta
582var viewportPadding=this.options.viewport&&this.options.viewport.padding||0
583var viewportDimensions=this.getPosition(this.$viewport)
584if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll
585var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight
586if(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
587var rightEdgeOffset=pos.left+viewportPadding+actualWidth
588if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}}
589return delta}
590Tooltip.prototype.getTitle=function(){var title
591var $e=this.$element
592var o=this.options
593title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title)
594return title}
595Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000)
596while(document.getElementById(prefix))
597return prefix}
598Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template)
vendor: 4,602 bytes, lines 599-684
599if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}}
600return this.$tip}
601Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))}
602Tooltip.prototype.enable=function(){this.enabled=true}
603Tooltip.prototype.disable=function(){this.enabled=false}
604Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled}
605Tooltip.prototype.toggle=function(e){var self=this
606if(e){self=$(e.currentTarget).data('bs.'+this.type)
607if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions())
608$(e.currentTarget).data('bs.'+this.type,self)}}
609if(e){self.inState.click=!self.inState.click
610if(self.isInStateTrue())self.enter(self)
611else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}}
612Tooltip.prototype.destroy=function(){var that=this
613clearTimeout(this.timeout)
614this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type)
615if(that.$tip){that.$tip.detach()}
616that.$tip=null
617that.$arrow=null
618that.$viewport=null
619that.$element=null})}
620function Plugin(option){return this.each(function(){var $this=$(this)
621var data=$this.data('bs.tooltip')
622var options=typeof option=='object'&&option
623if(!data&&/destroy|hide/.test(option))return
624if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)))
625if(typeof option=='string')data[option]()})}
626var old=$.fn.tooltip
627$.fn.tooltip=Plugin
628$.fn.tooltip.Constructor=Tooltip
629$.fn.tooltip.noConflict=function(){$.fn.tooltip=old
630return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)}
631if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js')
632Popover.VERSION='3.3.7'
633Popover.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>'})
634Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype)
635Popover.prototype.constructor=Popover
636Popover.prototype.getDefaults=function(){return Popover.DEFAULTS}
637Popover.prototype.setContent=function(){var $tip=this.tip()
638var title=this.getTitle()
639var content=this.getContent()
640$tip.find('.popover-title')[this.options.html?'html':'text'](title)
641$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content)
642$tip.removeClass('fade top bottom left right in')
643if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()}
644Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()}
645Popover.prototype.getContent=function(){var $e=this.$element
646var o=this.options
647return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)}
648Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))}
649function Plugin(option){return this.each(function(){var $this=$(this)
650var data=$this.data('bs.popover')
651var options=typeof option=='object'&&option
652if(!data&&/destroy|hide/.test(option))return
653if(!data)$this.data('bs.popover',(data=new Popover(this,options)))
654if(typeof option=='string')data[option]()})}
655var old=$.fn.popover
656$.fn.popover=Plugin
657$.fn.popover.Constructor=Popover
658$.fn.popover.noConflict=function(){$.fn.popover=old
659return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body)
660this.$scrollElement=$(element).is(document.body)?$(window):$(element)
661this.options=$.extend({},ScrollSpy.DEFAULTS,options)
662this.selector=(this.options.target||'')+' .nav li > a'
663this.offsets=[]
664this.targets=[]
665this.activeTarget=null
666this.scrollHeight=0
667this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this))
668this.refresh()
669this.process()}
670ScrollSpy.VERSION='3.3.7'
671ScrollSpy.DEFAULTS={offset:10}
672ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)}
673ScrollSpy.prototype.refresh=function(){var that=this
674var offsetMethod='offset'
675var offsetBase=0
676this.offsets=[]
677this.targets=[]
678this.scrollHeight=this.getScrollHeight()
679if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position'
680offsetBase=this.$scrollElement.scrollTop()}
681this.$body.find(this.selector).map(function(){var $el=$(this)
682var href=$el.data('target')||$el.attr('href')
683var $href=/^#./.test(href)&&$(href)
684return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]]
vendor: 8,020 bytes, lines 684-825
684)||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0])
685that.targets.push(this[1])})}
686ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset
687var scrollHeight=this.getScrollHeight()
688var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height()
689var offsets=this.offsets
690var targets=this.targets
691var activeTarget=this.activeTarget
692var i
693if(this.scrollHeight!=scrollHeight){this.refresh()}
694if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)}
695if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null
696return this.clear()}
697for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}}
698ScrollSpy.prototype.activate=function(target){this.activeTarget=target
699this.clear()
700var selector=this.selector+'[data-target="'+target+'"],'+
701this.selector+'[href="'+target+'"]'
702var active=$(selector).parents('li').addClass('active')
703if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}
704active.trigger('activate.bs.scrollspy')}
705ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')}
706function Plugin(option){return this.each(function(){var $this=$(this)
707var data=$this.data('bs.scrollspy')
708var options=typeof option=='object'&&option
709if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)))
710if(typeof option=='string')data[option]()})}
711var old=$.fn.scrollspy
712$.fn.scrollspy=Plugin
713$.fn.scrollspy.Constructor=ScrollSpy
714$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old
715return this}
716$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this)
717Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
718Tab.VERSION='3.3.7'
719Tab.TRANSITION_DURATION=150
720Tab.prototype.show=function(){var $this=this.element
721var $ul=$this.closest('ul:not(.dropdown-menu)')
722var selector=$this.data('target')
723if(!selector){selector=$this.attr('href')
724selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
725if($this.parent('li').hasClass('active'))return
726var $previous=$ul.find('.active:last a')
727var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
728var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
729$previous.trigger(hideEvent)
730$this.trigger(showEvent)
731if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
732var $target=$(selector)
733this.activate($this.closest('li'),$ul)
734this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
735$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
736Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
737var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length)
738function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
739element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
740if(transition){element[0].offsetWidth
741element.addClass('in')}else{element.removeClass('fade')}
742if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}
743callback&&callback()}
744$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
745$active.removeClass('in')}
746function Plugin(option){return this.each(function(){var $this=$(this)
747var data=$this.data('bs.tab')
748if(!data)$this.data('bs.tab',(data=new Tab(this)))
749if(typeof option=='string')data[option]()})}
750var old=$.fn.tab
751$.fn.tab=Plugin
752$.fn.tab.Constructor=Tab
753$.fn.tab.noConflict=function(){$.fn.tab=old
754return this}
755var clickHandler=function(e){e.preventDefault()
756Plugin.call($(this),'show')}
757$(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)
758this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
759this.$element=$(element)
760this.affixed=null
761this.unpin=null
762this.pinnedOffset=null
763this.checkPosition()}
764Affix.VERSION='3.3.7'
765Affix.RESET='affix affix-top affix-bottom'
766Affix.DEFAULTS={offset:0,target:window}
767Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
768var position=this.$element.offset()
769var targetHeight=this.$target.height()
770if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false
771if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom'
772return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'}
773var initializing=this.affixed==null
774var colliderTop=initializing?scrollTop:position.top
775var colliderHeight=initializing?targetHeight:height
776if(offsetTop!=null&&scrollTop<=offsetTop)return'top'
777if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom'
778return false}
779Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
780this.$element.removeClass(Affix.RESET).addClass('affix')
781var scrollTop=this.$target.scrollTop()
782var position=this.$element.offset()
783return(this.pinnedOffset=position.top-scrollTop)}
784Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
785Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
786var height=this.$element.height()
787var offset=this.options.offset
788var offsetTop=offset.top
789var offsetBottom=offset.bottom
790var scrollHeight=Math.max($(document).height(),$(document.body).height())
791if(typeof offset!='object')offsetBottom=offsetTop=offset
792if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
793if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
794var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
795if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
796var affixType='affix'+(affix?'-'+affix:'')
797var e=$.Event(affixType+'.bs.affix')
798this.$element.trigger(e)
799if(e.isDefaultPrevented())return
800this.affixed=affix
801this.unpin=affix=='bottom'?this.getPinnedOffset():null
802this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
803if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
804function Plugin(option){return this.each(function(){var $this=$(this)
805var data=$this.data('bs.affix')
806var options=typeof option=='object'&&option
807if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
808if(typeof option=='string')data[option]()})}
809var old=$.fn.affix
810$.fn.affix=Plugin
811$.fn.affix.Constructor=Affix
812$.fn.affix.noConflict=function(){$.fn.affix=old
813return this}
814$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
815var data=$spy.data()
816data.offset=data.offset||{}
817if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
818if(data.offsetTop!=null)data.offset.top=data.offsetTop
819Plugin.call($spy,data)})})}(jQuery);
820
821
822/*===============================
823/plugins/system/t3/base-bs3/js/jquery.tap.min.js
824================================================================================*/;
825!function(a,b){"use strict";var c,d,e,f="._tap",g="._tapActive",h="tap",i="clientX clientY screenX screenY pageX pageY".split(" "),j={count:0,event:0},k=function(a,c){var d=c.originalEvent,e=b.Event(d);e.type=a;for(var f=0,g=i.length;g>f;f++)e[i[f]]=c[i[f]];return e}
825,l=function(a){if(a.isTrigger)return!1;var c=j.event,d=Math.abs(a.pageX-c.pageX),e=Math.abs(a.pageY-c.pageY),f=Math.max(d,e);return a.timeStamp-c.timeStamp<b.tap.TIME_DELTA&&f<b.tap.POSITION_DELTA&&(!c.touches||1===j.count)&&o.isTracking},m=function(a){if(!e)return!1;var c=Math.abs(a.pageX-e.pageX),d=Math.abs(a.pageY-e.pageY),f=Math.max(c,d);return Math.abs(a.timeStamp-e.timeStamp)<750&&f<b.tap.POSITION_DELTA},n=function(a){if(0===a.type.indexOf("touch")){a.touches=a.originalEvent.changedTouches;for(var b=a.touches[0],c=0,d=i.length;d>c;c++)a[i[c]]=b[i[c]]}a.timeStamp=Date.now?Date.now():+new Date},o={isEnabled:!1,isTracking:!1,enable:function(){o.isEnabled||(o.isEnabled=!0,c=b(a.body).on("touchstart"+f,o.onStart).on("mousedown"+f,o.onStart).on("click"+f,o.onClick))},disable:function(){o.isEnabled&&(o.isEnabled=!1,c.off(f))},onStart:function(a){a.isTrigger||(n(a),(!b.tap.LEFT_BUTTON_ONLY||a.touches||1===a.which)&&(a.touches&&(j.count=a.touches.length),o.isTracking||(a.touches||!m(a))&&(o.isTracking=!0,j.event=a,a.touches?(e=a,c.on("touchend"+f+g,o.onEnd).on("touchcancel"+f+g,o.onCancel)):c.on("mouseup"+f+g,o.onEnd))))},onEnd:function(a){var c;a.isTrigger||(n(a),l(a)&&(c=k(h,a),d=c,b(j.event.target).trigger(c)),o.onCancel(a))},onCancel:function(a){a&&"touchcancel"===a.type&&a.preventDefault(),o.isTracking=!1,c.off(g)},onClick:function(a){return!a.isTrigger&&d&&d.isDefaultPrevented()&&d.target===a.target&&d.pageX===a.pageX&&d.pageY===a.pageY&&a.timeStamp-d.timeStamp<750?(d=null,!1):void 0}};b(a).ready(o.enable),b.tap={POSITION_DELTA:10,TIME_DELTA:400,LEFT_BUTTON_ONLY:!0}}(document,jQuery);
826
827
828/*===============================
829/plugins/system/t3/base-bs3/js/script.js
830================================================================================*/;
831!function($){if($.browser==undefined||$.browser.msie==undefined){$.browser={msie:false,version:0};if(match=navigator.userAgent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)||navigator.userAgent.match(/Trident.*rv:([0-9]{1,}[\.0-9]{0,})/)){$.browser.msie=true;$.browser.version=match[1];}}
832if($.browser.msie){$('html').addClass('ie'+Math.floor($.browser.version));}
833$(document).ready(function(){if(!window.getComputedStyle){window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop=='float')prop='styleFloat';if(re.test(prop)){prop=prop.replace(re,function(){return arguments[2].toUpperCase();});}
834return el.currentStyle[prop]?el.currentStyle[prop]:null;}
835return this;}}
836var fromClass='body-data-holder',prop='content',$inspector=$('<div>').css('display','none').addClass(fromClass).appendTo($('body'));try{var computedStyle=window.getComputedStyle($inspector[0],':before');if(computedStyle){var attrs=computedStyle.getPropertyValue(prop);if(attrs){var matches=attrs.match(/([\da-z\-]+)/gi),data={};if(matches&&matches.length){for(var i=0;i<matches.length;i++){data[matches[i++]]=i<matches.length?matches[i]:null;}}
837$('body').data(data);}}}finally{$inspector.remove();}});(function(){$.support.t3transform=(function(){var style=document.createElement('div').style,vendors=['t','webkitT','MozT','msT','OT'],transform,i=0,l=vendors.length;for(;i<l;i++){transform=vendors[i]+'ransform';if(transform in style){return transform;}}
838return false;})();})();(function(){$('html').addClass('ontouchstart'in window?'touch':'no-touch');})();$(document).ready(function(){(function(){if(window.MooTools&&window.MooTools.More&&Element&&Element.implement){var mthide=Element.prototype.hide,mtshow=Element.prototype.show,mtslide=Element.prototype.slide;Element.implement({show:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
839return $.isFunction(mtshow)&&mtshow.apply(this,args);},hide:function(){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
840return $.isFunction(mthide)&&mthide.apply(this,arguments);},slide:function(args){if(arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf('isPropagationStopped')!==-1){return this;}
841return $.isFunction(mtslide)&&mtslide.apply(this,args);}})}})();$.fn.tooltip.Constructor&&$.fn.tooltip.Constructor.DEFAULTS&&($.fn.tooltip.Constructor.DEFAULTS.html=true);$.fn.popover.Constructor&&$.fn.popover.Constructor.DEFAULTS&&($.fn.popover.Constructor.DEFAULTS.html=true);$.fn.tooltip.defaults&&($.fn.tooltip.defaults.html=true);$.fn.popover.defaults&&($.fn.popover.defaults.html=true);(function(){if(window.jomsQuery&&jomsQuery.fn.collapse){$('[data-toggle="collapse"]').on('click',function(e){$($(this).attr('data-target')).eq(0).collapse('toggle');e.stopPropagation();return false;});jomsQuery('html, body').off('touchstart.dropdown.data-api');}})();(function(){if($.fn.chosen&&$(document.documentElement).attr('dir')=='rtl'){$('select').addClass('chzn-rtl');}})();});$(window).load(function(){if(!$(document.documentElement).hasClass('off-canvas-ready')&&($('.navbar-collapse-fixed-top').length||$('.navbar-collapse-fixed-bottom').length)){var btn=$('.btn-navbar[data-toggle="collapse"]');if(!btn.length){return;}
842if(btn.data('target')){var nav=$(btn.data('target'));if(!nav.length){return;}
843var fixedtop=nav.closest('.navbar-collapse-fixed-top').length;btn.on('click',function(){var wheight=(window.innerHeight||$(window).height());if(!$.support.transition){nav.parent().css('height',!btn.hasClass('collapsed')&&btn.data('t3-clicked')?'':wheight);btn.data('t3-clicked',1);}
844nav.addClass('animate').css('max-height',wheight-
845(fixedtop?(parseFloat(nav.css('top'))||0):(parseFloat(nav.css('bottom'))||0)));});nav.on('shown hidden',function(){nav.removeClass('animate');});}}});}(jQuery);
846
847
848/*===============================
849/plugins/system/t3/base-bs3/js/menu.js
850================================================================================*/;
851;(function($){var T3Menu=function(elm,options){this.$menu=$(elm);if(!this.$menu.length){return;}
852this.options=$.extend({},$.fn.t3menu.defaults,options);this.child_open=[];this.loaded=false;this.start();};T3Menu.prototype={constructor:T3Menu,start:function(){if(this.loaded){return;}
853this.loaded=true;var self=this,options=this.options,$menu=this.$menu;this.$items=$menu.find('li');this.$items.each(function(idx,li){var $item=$(this),$child=$item.children('.dropdown-menu'),$link=$item.children('a'),item={$item:$item,child:$child.length,link:$link.length,clickable:!($link.length&&$child.length),mega:$item.hasClass('mega'),status:'close',timer:null,atimer:null};$item.data('t3menu.item',item);if($child.length&&!options.hover){$item.on('click',function(e){e.stopPropagation();if($item.hasClass('group')){return;}
854if(item.status=='close'){e.preventDefault();self.show(item);}});}else{$item.on('click',function(e){if($(e.target).data('toggle'))return;e.stopPropagation()});}
855$item.find('a > .caret').on('click tap',function(e){item.clickable=false;});if(options.hover){$item.on('mouseover',function(e){if($item.hasClass('group'))
856return;var $target=$(e.target);if($target.data('show-processed'))
857return;$target.data('show-processed',true);
857setTimeout(function(){$target.data('show-processed',false);},10);self.show(item);}).on('mouseleave',function(e){if($item.hasClass('group'))
858return;var $target=$(e.target);if($target.data('hide-processed'))
859return;$target.data('hide-processed',true);setTimeout(function(){$target.data('hide-processed',false);},10);self.hide(item,$target);});if($link.length&&$child.length){$link.on('click',function(e){if(item.clickable){e.stopPropagation();}
860return item.clickable;});}}});$(document.body).on('tap hideall.t3menu',function(e){clearTimeout(self.timer);self.timer=setTimeout($.proxy(self.hide_alls,self),e.type=='tap'?500:self.options.hidedelay);});$menu.find('.mega-dropdown-menu').on('hideall.t3menu',function(e){e.stopPropagation();e.preventDefault();return false;});$menu.find('input, select, textarea, label').on('click tap',function(e){e.stopPropagation();});var $megatab=$menu.find('.mega-tab');if($megatab.length){$megatab.each(function(){var $tabul=$(this).find('>div>ul'),$tabItems=$tabul.children('.dropdown-submenu'),$tabs=$tabul.find('>li>.dropdown-menu'),tabheight=0,$parentItem=$(this).closest('li');$tabItems.data('mega-tab-item',1);var megatabs=$parentItem.data('mega-tabs')?$parentItem.data('mega-tabs'):[];megatabs.push($tabul);$parentItem.data('mega-tabs',megatabs);$tabItems.first().data('mega-tab-active',true).addClass('open');var $p=$tabul.parents('.dropdown-menu');$p.each(function(){var $this=$(this);$this.data('prev-style',$this.attr('style')).css({visibility:"visible",display:"block"});})
861$tabs.each(function(){var $this=$(this),thisstyle=$this.attr('style');$this.css({visibility:"hidden",display:"block"});tabheight=Math.max(tabheight,$this.children().innerHeight());if(thisstyle){$this.attr('style',thisstyle);}else{$this.removeAttr('style');}});$tabul.css('min-height',tabheight);$p.each(function(){var $this=$(this);if($this.data('prev-style'))
862$this.attr('style',$this.data('prev-style'));else
863$this.removeAttr('style');$this.removeData('prev-style');})})}
864$menu.find('.modal').appendTo('body');},show:function(item){if(item.$item.data('mega-tab-item')){item.$item.parent().children().removeClass('open').data('mega-tab-active',false);item.$item.addClass('open').data('mega-tab-active',true);}
865if($.inArray(item,this.child_open)<this.child_open.length-1){this.hide_others(item);}
866$(document.body).trigger('hideall.t3menu',[this]);clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.ftimer);clearTimeout(item.ctimer);if(item.status!='open'||!item.$item.hasClass('open')||!this.child_open.length){if(item.mega){clearTimeout(item.astimer);clearTimeout(item.atimer);this.position(item.$item);item.astimer=setTimeout(function(){item.$item.addClass('animating')},10);item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration+50);item.timer=setTimeout(function(){item.$item.addClass('open');},100);}else{item.$item.addClass('open');}
867item.status='open';if(item.child&&$.inArray(item,this.child_open)==-1){this.child_open.push(item);}}
868item.ctimer=setTimeout($.proxy(this.clickable,this,item),300);},hide:function(item,$target){clearTimeout(this.timer);clearTimeout(item.timer);clearTimeout(item.astimer);clearTimeout(item.atimer);clearTimeout(item.ftimer);if($target&&$target.is('input',item.$item)){return;}
869if(item.mega){item.$item.addClass('animating');item.atimer=setTimeout(function(){item.$item.removeClass('animating')},this.options.duration);item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
870item.$item.removeClass('open')},100);}else{item.timer=setTimeout(function(){if(!item.$item.data('mega-tab-active'))
871item.$item.removeClass('open');},100);}
872item.status='close';for(var i=this.child_open.length;i--;){if(this.child_open[i]===item){this.child_open.splice(i,1);}}
873item.ftimer=setTimeout($.proxy(this.hidden,this,item),this.options.duration);this.timer=setTimeout($.proxy(this.hide_alls,this),this.options.hidedelay);},hidden:function(item){if(item.status=='close'){item.clickable=false;}},hide_others:function(item){var self=this;$.each(this.child_open.slice(),function(idx,open){if(!item||(open!=item&&!open.$item.has(item.$item).length)){self.hide(open);}});},hide_alls:function(e,inst){if(!e||e.type=='tap'||(e.type=='hideall'&&this!=inst)){var self=this;$.each(this.child_open.slice(),function(idx,item){item&&self.hide(item);});}},clickable:function(item){item.clickable=true;},position:function($item){var sub=$item.children('.mega-dropdown-menu'),is_show=sub.is(':visible');
873if(!is_show){sub.show();}
874var offset=$item.offset(),width=$item.outerWidth(),screen_width=$(window).width()
875-this.options.sb_width,sub_width=sub.outerWidth(),level=$item.data('level');if(!is_show){sub.css('display','');}
876sub.css({left:'',right:''});if(level==1){var align=$item.data('alignsub'),align_offset=0,align_delta=0,align_trans=0;if(align=='justify'){return;}
877if(!align){align='left';}
878if(align=='center'){align_offset=offset.left+(width/2);if(!$.support.t3transform){align_trans=-sub_width/2;sub.css(this.options.rtl?'right':'left',align_trans+width/2);}}else{align_offset=offset.left
879+((align=='left'&&this.options.rtl||align=='right'&&!this.options.rtl)?width:0);}
880if(this.options.rtl){if(align=='right'){if(align_offset+sub_width>screen_width){align_delta=screen_width-align_offset
881-sub_width;sub.css('left',align_delta);if(screen_width<sub_width){sub.css('left',align_delta+sub_width
882-screen_width);}}}else{if(align_offset<(align=='center'?sub_width/2:sub_width)){align_delta=align_offset
883-(align=='center'?sub_width/2:sub_width);sub.css('right',align_delta+align_trans);}
884if(align_offset
885+(align=='center'?sub_width/2:0)
886-align_delta>screen_width){sub.css('right',align_offset
887+(align=='center'?(sub_width+width)/2:0)+align_trans
888-screen_width);}}}else{if(align=='right'){if(align_offset<sub_width){align_delta=align_offset-sub_width;sub.css('right',align_delta);if(sub_width>screen_width){sub.css('right',sub_width-screen_width
889+align_delta);}}}else{if(align_offset
890+(align=='center'?sub_width/2:sub_width)>screen_width){align_delta=screen_width
891-align_offset
892-(align=='center'?sub_width/2:sub_width);sub.css('left',align_delta+align_trans);}
893if(align_offset
894-(align=='center'?sub_width/2:0)
895+align_delta<0){sub.css('left',(align=='center'?(sub_width+width)/2:0)
896+align_trans
897-align_offset);}}}}else{if(this.options.rtl){if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
898-sub_width);}}}else{if(offset.left-sub_width<0){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
899-sub_width);}}}}else{if($item.closest('.mega-dropdown-menu').parent().hasClass('mega-align-right')){if(offset.left-sub_width<0){$item.removeClass('mega-align-right');if(offset.left+width+sub_width>screen_width){sub.css('left',screen_width-offset.left
900-sub_width);}}}else{if(offset.left+width+sub_width>screen_width){$item.removeClass('mega-align-left').addClass('mega-align-right');if(offset.left-sub_width<0){sub.css('right',offset.left+width
901-sub_width);}}}}}}};$.fn.t3menu=function(option){return this.each(function(){var $this=$(this),data=$this.data('megamenu'),options=typeof option=='object'&&option;if($this.parents('#off-canvas-nav').length)
902return;if($this.parents('#t3-off-canvas').length)
903return;if(!data){$this.data('megamenu',(data=new T3Menu(this,options)));}else{if(typeof option=='string'&&data[option]){data[option]()}}})};$.fn.t3menu.defaults={duration:400,timeout:100,hidedelay:200,hover:true,sb_width:20};$(document).ready(function(){var mm_duration=$('.t3-megamenu').data('duration')||0;if(mm_duration){$('<style type="text/css">'
904+'.t3-megamenu.animate .animating > .mega-dropdown-menu,'
905+'.t3-megamenu.animate.slide .animating > .mega-dropdown-menu > div {'
906+'transition-duration: '
907+mm_duration+'ms !important;'
908+'-webkit-transition-duration: '
909+mm_duration+'ms !important;'
910+'}'+'</style>').appendTo('head');}
911var mm_timeout=mm_duration?100+mm_duration:500,mm_rtl=$(document.documentElement).attr('dir')=='rtl',mm_trigger=$(document.documentElement).hasClass('mm-hover'),sb_width=(function(){var parent=$('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),child=parent.children(),width=child.innerWidth()
912-child.height(100).innerWidth();parent.remove();return width;})();if(!$.support.transition){$('.t3-megamenu').removeClass('animate');mm_timeout=100;}
913$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});$(window).load(function(){$('ul.nav').has('.dropdown-menu').t3menu({duration:mm_duration,timeout:mm_timeout,rtl:mm_rtl,sb_width:sb_width,hover:mm_trigger});});});})(jQuery);
914
915
916/*===============================
917/templates/purity_iii/js/script.js
918================================================================================*/;
919(function($){function CountUp(element,options){this.$element=$(element);this.$counter=this.$element.find('.count-up');this.$progress=this.$element.find('.pro-bar');this.options=options;this.value=options.from;this.$element.on('mouseenter',$.proxy(this.run,this));}
920CountUp.prototype={run:function(){if(this.$element.hasClass('start')){return;}
921this.$element.addClass('start');this.$counter.stop(true).css('display','block').fadeTo(250,1).siblings('.face').css('display','none');$(this).stop(true).animate({value:this.options.to},{step:function(now){this.$counter.html(Math.round(now)+'%');},duration:this.options.duration,complete:function(){setTimeout($.proxy(function(){this.$counter.delay(250).parent().children().css({display:'',opacity:''});this.$progress.css('display','');},this),250);this.$element.off('mouseenter');}});this.$progress.css({width:'0%',display:'block'}).animate({width:this.options.to+'%'},this.options.duration);}}
922CountUp.defaults={from:0,to:100,duration:2000}
923$.fn.countup=function(option){return this.each(function(){var
924$this=$(this),data=$this.data('countup'),options=$.extend({},CountUp.defaults,$this.data(),typeof option=='object'&&option),action=typeof option=='string'?option:false;if(!data){$this.data('countup',(data=new CountUp(this,options)))}
925if(action&&data[action]){data[action]()}})}})(jQuery);(function($){$(document).ready(function(){$('.t3-navbar .t3-megamenu ul li > a').click(function(e){if($(this).hasClass('dropdown-toggle')){window.location.href=$(this).attr('href');}});(function(){$('[data-js="count-up"]').countup();})();});})(jQuery);
926
927
928/*===============================
929/plugins/system/t3/base-bs3/js/nav-collapse.js
930================================================================================*/;
931jQuery(document).ready(function($){$('.t3-navbar').each(function(){var $navwrapper=$(this),$menu=null,$placeholder=null;if($navwrapper.find('.t3-megamenu').length){$menu=$navwrapper.find('ul.level0').clone(),$placeholder=$navwrapper.prev('.navbar-collapse');if(!$placeholder.length){$placeholder=$navwrapper.closest('.container, .t3-mainnav').find('.navbar-collapse:empty');}
932var lis=$menu.find('li[data-id]'),liactive=lis.filter('.current');lis.removeClass('mega dropdown mega-align-left mega-align-right mega-align-center mega-align-adjust');lis.each(function(){var $li=$(this),$child=$li.find('>:first-child');if($child[0].nodeName=='DIV'){$child.find('>:first-child').prependTo($li);$child.remove();}
933if($li.data('hidewcol')){$child.find('.caret').remove();$child.nextAll().remove();return;}
934var subul=$li.find('ul.level'+$li.data('level'));if(subul.length){$ul=$('<ul class="level'+$li.data('level')+' dropdown-menu">');subul.each(function(){if($(this).parents('.mega-col-nav').data('hidewcol'))return;$(this).find('>li').appendTo($ul);});if($ul.children().length){$ul.appendTo($li);}}
935$li.find('>div').remove();if(!$li.children('ul').length){$child.find('.caret').remove();}
936var divider=$li.hasClass('divider');for(var x in $li.data()){$li.removeAttr('data-'+x)}
937$child.removeAttr('class');for(var x in $child.data()){$child.removeAttr('data-'+x)}
938if(divider){$li.addClass('divider');}});liactive.addClass('current active');}else{$menu=$navwrapper.find('ul.nav').clone();$placeholder=$('.t3-navbar-collapse:empty, .navbar-collapse:empty').eq(0);}
939$menu.find('a[data-toggle="dropdown"]').removeAttr('data-toggle').removeAttr('data-target');$menu.find('> li > ul.dropdown-menu').prev('a').attr('data-toggle','dropdown').attr('data-target','#').parent('li').addClass(function(){return'dropdown'+($(this).data('level')>1?' dropdown-submenu':'');});$menu.appendTo($placeholder);});});

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.