/*! jquery v3.6.3 | (c) openjs foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new error("jquery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(c,e){"use strict";var t=[],r=object.getprototypeof,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexof,n={},o=n.tostring,y=n.hasownproperty,a=y.tostring,l=a.call(object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodetype&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},s=c.document,c={type:!0,src:!0,nonce:!0,nomodule:!0};function b(e,t,n){var r,i,o=(n=n||s).createelement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getattribute&&t.getattribute(r))&&o.setattribute(r,i);n.head.appendchild(o).parentnode.removechild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",e=function(e,t){return new e.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+m+")"+m+"*"),u=new regexp(m+"|>"),x=new regexp(f),v=new regexp("^"+i+"$"),g={id:new regexp("^#("+i+")"),class:new regexp("^\\.("+i+")"),tag:new regexp("^("+i+"|[*])"),attr:new regexp("^"+w),pseudo:new regexp("^"+f),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+m+"*(even|odd|(([+-]|)(\\d*)n|)"+m+"*(?:([+-]|)"+m+"*(\\d+)|))"+m+"*\\)|)","i"),bool:new regexp("^(?:"+r+")$","i"),needscontext:new regexp("^"+m+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+m+"*((?:-\\d)?\\d*)"+m+"*\\)|)(?=[^-]|$)","i")},y=/html$/i,q=/^(?:input|select|textarea|button)$/i,j=/^h\d$/i,k=/^[^{]+\{\s*\[native \w/,z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new regexp("\\\\[\\da-fa-f]{1,6}"+m+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?string.fromcharcode(n+65536):string.fromcharcode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uffff\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charcodeat(e.length-1).tostring(16)+" ":"\\"+e},oe=function(){t()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodename.tolowercase()},{dir:"parentnode",next:"legend"});try{h.apply(t=o.call(p.childnodes),p.childnodes),t[p.childnodes.length].nodetype}catch(e){h={apply:t.length?function(e,t){l.apply(e,o.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerdocument,p=e?e.nodetype:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(t(e),e=e||c,s)){if(11!==p&&(u=z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getelementbyid(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getelementbyid(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return h.apply(n,e.getelementsbytagname(t)),n;if((i=u[3])&&d.getelementsbyclassname&&e.getelementsbyclassname)return h.apply(n,e.getelementsbyclassname(i)),n}if(d.qsa&&!n[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodename.tolowercase())){if(c=t,f=e,1===p&&(u.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentnode)||e)===e&&d.scope||((s=e.getattribute("id"))?s=s.replace(re,ie):e.setattribute("id",s=e)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.csssupportsselector&&!css.supports("selector(:is("+c+"))"))throw new error;return h.apply(n,f.queryselectorall(c)),n}catch(e){n(t,!0)}finally{s===e&&e.removeattribute("id")}}}return g(t.replace(b,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cachelength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[e]=!0,e}function ce(e){var t=c.createelement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentnode&&t.parentnode.removechild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrhandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodetype&&1===t.nodetype&&e.sourceindex-t.sourceindex;if(r)return r;if(n)while(n=n.nextsibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodename.tolowercase()&&e.type===t}}function he(n){return function(e){var t=e.nodename.tolowercase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentnode&&!1===e.disabled?"label"in e?"label"in e.parentnode?e.parentnode.disabled===t:e.disabled===t:e.isdisabled===t||e.isdisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getelementsbytagname&&e}for(e in d=se.support={},i=se.isxml=function(e){var t=e&&e.namespaceuri,n=e&&(e.ownerdocument||e).documentelement;return!y.test(t||n&&n.nodename||"html")},t=se.setdocument=function(e){var t,n,r=e?e.ownerdocument||e:p;return r!=c&&9===r.nodetype&&r.documentelement&&(a=(c=r).documentelement,s=!i(c),p!=c&&(n=c.defaultview)&&n.top!==n&&(n.addeventlistener?n.addeventlistener("unload",oe,!1):n.attachevent&&n.attachevent("onunload",oe)),d.scope=ce(function(e){return a.appendchild(e).appendchild(c.createelement("div")),"undefined"!=typeof e.queryselectorall&&!e.queryselectorall(":scope fieldset div").length}),d.csssupportsselector=ce(function(){return css.supports("selector(*)")&&c.queryselectorall(":is(:jqfake)")&&!css.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.classname="i",!e.getattribute("classname")}),d.getelementsbytagname=ce(function(e){return e.appendchild(c.createcomment("")),!e.getelementsbytagname("*").length}),d.getelementsbyclassname=k.test(c.getelementsbyclassname),d.getbyid=ce(function(e){return a.appendchild(e).id=e,!c.getelementsbyname||!c.getelementsbyname(e).length}),d.getbyid?(b.filter.id=function(e){var t=e.replace(te,ne);return function(e){return e.getattribute("id")===t}},b.find.id=function(e,t){if("undefined"!=typeof t.getelementbyid&&s){var n=t.getelementbyid(e);return n?[n]:[]}}):(b.filter.id=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getattributenode&&e.getattributenode("id");return t&&t.value===n}},b.find.id=function(e,t){if("undefined"!=typeof t.getelementbyid&&s){var n,r,i,o=t.getelementbyid(e);if(o){if((n=o.getattributenode("id"))&&n.value===e)return[o];i=t.getelementsbyname(e),r=0;while(o=i[r++])if((n=o.getattributenode("id"))&&n.value===e)return[o]}return[]}}),b.find.tag=d.getelementsbytagname?function(e,t){return"undefined"!=typeof t.getelementsbytagname?t.getelementsbytagname(e):d.qsa?t.queryselectorall(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getelementsbytagname(e);if("*"===e){while(n=o[i++])1===n.nodetype&&r.push(n);return r}return o},b.find.class=d.getelementsbyclassname&&function(e,t){if("undefined"!=typeof t.getelementsbyclassname&&s)return t.getelementsbyclassname(e)},s=[],y=[],(d.qsa=k.test(c.queryselectorall))&&(ce(function(e){var t;a.appendchild(e).innerhtml="",e.queryselectorall("[msallowcapture^='']").length&&y.push("[*^$]="+m+"*(?:''|\"\")"),e.queryselectorall("[selected]").length||y.push("\\["+m+"*(?:value|"+r+")"),e.queryselectorall("[id~="+e+"-]").length||y.push("~="),(t=c.createelement("input")).setattribute("name",""),e.appendchild(t),e.queryselectorall("[name='']").length||y.push("\\["+m+"*name"+m+"*="+m+"*(?:''|\"\")"),e.queryselectorall(":checked").length||y.push(":checked"),e.queryselectorall("a#"+e+"+*").length||y.push(".#.+[+~]"),e.queryselectorall("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerhtml="";var t=c.createelement("input");t.setattribute("type","hidden"),e.appendchild(t).setattribute("name","d"),e.queryselectorall("[name=d]").length&&y.push("name"+m+"*[*^$|!~]?="),2!==e.queryselectorall(":enabled").length&&y.push(":enabled",":disabled"),a.appendchild(e).disabled=!0,2!==e.queryselectorall(":disabled").length&&y.push(":enabled",":disabled"),e.queryselectorall("*,:x"),y.push(",.*:")})),(d.matchesselector=k.test(c=a.matches||a.webkitmatchesselector||a.mozmatchesselector||a.omatchesselector||a.msmatchesselector))&&ce(function(e){d.disconnectedmatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",f)}),d.csssupportsselector||y.push(":has"),y=y.length&&new regexp(y.join("|")),s=s.length&&new regexp(s.join("|")),t=k.test(a.comparedocumentposition),v=t||k.test(a.contains)?function(e,t){var n=9===e.nodetype&&e.documentelement||e,r=t&&t.parentnode;return e===r||!(!r||1!==r.nodetype||!(n.contains?n.contains(r):e.comparedocumentposition&&16&e.comparedocumentposition(r)))}:function(e,t){if(t)while(t=t.parentnode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.comparedocumentposition-!t.comparedocumentposition;return n||(1&(n=(e.ownerdocument||e)==(t.ownerdocument||t)?e.comparedocumentposition(t):1)||!d.sortdetached&&t.comparedocumentposition(e)===n?e==c||e.ownerdocument==p&&v(p,e)?-1:t==c||t.ownerdocument==p&&v(p,t)?1:u?p(u,e)-p(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentnode,o=t.parentnode,a=[e],s=[t];if(!i||!o)return e==c?-1:t==c?1:i?-1:o?1:u?p(u,e)-p(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentnode)a.unshift(n);n=t;while(n=n.parentnode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),c},se.matches=function(e,t){return se(e,null,null,t)},se.matchesselector=function(e,t){if(t(e),d.matchesselector&&s&&!n[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedmatch||e.document&&11!==e.document.nodetype)return n}catch(e){n(t,!0)}return 0":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},child:function(e){return e[1]=e[1].tolowercase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},pseudo:function(e){var t,n=!e[6]&&e[2];return g.child.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&x.test(n)&&(t=h(n,!0))&&(t=n.indexof(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{tag:function(e){var t=e.replace(te,ne).tolowercase();return"*"===e?function(){return!0}:function(e){return e.nodename&&e.nodename.tolowercase()===t}},class:function(e){var t=m[e+" "];return t||(t=new regexp("(^|"+m+")"+e+"("+m+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.classname&&e.classname||"undefined"!=typeof e.getattribute&&e.getattribute("class")||"")})},attr:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexof(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?e.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodetype?e.grep(e,function(e){return e===n!==r}):"string"!=typeof n?e.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(e.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||d,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof e?t[0]:t,e.merge(this,e.parsehtml(r[1],t&&t.nodetype?t.ownerdocument||t:s,!0)),n.test(r[1])&&e.isplainobject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=s.getelementbyid(r[2]))&&(this[0]=i,this.length=1),this}return e.nodetype?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(e):e.makearray(e,this)}).prototype=e.fn,d=e(s);var l=/^(?:parents|prev(?:until|all))/,h={children:!0,contents:!0,next:!0,prev:!0};function o(e,t){while((e=e[t])&&1!==e.nodetype);return e}e.fn.extend({has:function(e){var t=e(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=s.createdocumentfragment().appendchild(s.createelement("div")),(fe=s.createelement("input")).setattribute("type","radio"),fe.setattribute("checked","checked"),fe.setattribute("name","t"),ce.appendchild(fe),v.checkclone=ce.clonenode(!0).clonenode(!0).lastchild.checked,ce.innerhtml="",v.noclonechecked=!!ce.clonenode(!0).lastchild.defaultvalue,ce.innerhtml="",v.option=!!ce.lastchild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getelementsbytagname?e.getelementsbytagname(t||"*"):"undefined"!=typeof e.queryselectorall?e.queryselectorall(t||"*"):[],void 0===t||t&&a(e,t)?e.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createdocumentfragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return a(e,"table")&&a(11!==t.nodetype?t:t.firstchild,"tr")&&e(e).children("tbody")[0]||e}function de(e){return e.type=(null!==e.getattribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeattribute("type"),e}function le(e,t){var n,r,i,o,a,s;if(1===t.nodetype){if(y.hasdata(e)&&(s=y.get(e).events))for(i in y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptattrs||{}).prop({charset:n.scriptcharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),s.head.appendchild(r[0])},abort:function(){i&&i()}}});var ut,xt=[],vt=/(=)\?(?=&|$)|\?\?/;e.ajaxsetup({jsonp:"callback",jsonpcallback:function(){var e=xt.pop()||e.expando+"_"+ct.guid++;return this[e]=!0,e}}),e.ajaxprefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contenttype||"").indexof("application/x-www-form-urlencoded")&&vt.test(e.data)&&"data");if(a||"jsonp"===e.datatypes[0])return r=e.jsonpcallback=m(e.jsonpcallback)?e.jsonpcallback():e.jsonpcallback,a?e[a]=e[a].replace(vt,"$1"+r):!1!==e.jsonp&&(e.url+=(st.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||e.error(r+" was not called"),o[0]},e.datatypes[0]="json",i=c[r],c[r]=function(){o=arguments},n.always(function(){void 0===i?e(c).removeprop(r):c[r]=i,e[r]&&(e.jsonpcallback=t.jsonpcallback,xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createhtmldocument=((ut=s.implementation.createhtmldocument("").body).innerhtml="
",2===ut.childnodes.length),e.parsehtml=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createhtmldocument?((r=(t=s.implementation.createhtmldocument("")).createelement("base")).href=s.location.href,t.head.appendchild(r)):t=s),o=!n&&[],(i=n.exec(e))?[t.createelement(i[1])]:(i=xe([e],t,o),o&&o.length&&e(o).remove(),e.merge([],i.childnodes)));var r,i,o},e.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexof(" ");return-1").append(e.parsehtml(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responsetext,t,e])})}),this},e.expr.pseudos.animated=function(t){return e.grep(e.timers,function(e){return t===e.elem}).length},e.offset={setoffset:function(e,t,n){var r,i,o,a,s,u,l=e.css(e,"position"),c=e(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=e.css(e,"top"),u=e.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexof("auto")?(a=(r=c.position()).top,i=r.left):(a=parsefloat(o)||0,i=parsefloat(u)||0),m(t)&&(t=t.call(e,n,e.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},e.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){e.offset.setoffset(this,t,e)});var e,n,r=this[0];return r?r.getclientrects().length?(e=r.getboundingclientrect(),n=r.ownerdocument.defaultview,{top:e.top+n.pageyoffset,left:e.left+n.pagexoffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===e.css(r,"position"))t=r.getboundingclientrect();else{t=this.offset(),n=r.ownerdocument,e=r.offsetparent||n.documentelement;while(e&&(e===n.body||e===n.documentelement)&&"static"===e.css(e,"position"))e=e.parentnode;e&&e!==r&&1===e.nodetype&&((i=e(e).offset()).top+=e.css(e,"bordertopwidth",!0),i.left+=e.css(e,"borderleftwidth",!0))}return{top:t.top-i.top-e.css(r,"margintop",!0),left:t.left-i.left-e.css(r,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){var e=this.offsetparent;while(e&&"static"===e.css(e,"position"))e=e.offsetparent;return e||re})}}),e.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(t,i){var o="pageyoffset"===i;e.fn[t]=function(e){return b(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodetype&&(r=e.defaultview),void 0===n)return r?r[i]:e[t];r?r.scrollto(o?r.pagexoffset:n,o?n:r.pageyoffset):e[t]=n},t,e,arguments.length)}}),e.each(["top","left"],function(e,n){e.csshooks[n]=_e(v.pixelposition,function(e,t){if(t)return t=be(e,n),pe.test(t)?e(e).position()[n]+"px":t})}),e.each({height:"height",width:"width"},function(a,s){e.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){e.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return b(this,function(e,t,n){var r;return x(e)?0===o.indexof("outer")?e["inner"+a]:e.document.documentelement["client"+a]:9===e.nodetype?(r=e.documentelement,math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?e.css(e,t,i):e.style(e,t,n,i)},s,n?e:void 0,n)}})}),e.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){e.fn[t]=function(e){return this.on(t,e)}}),e.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),e.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,n){e.fn[n]=function(e,t){return 01)return this.each(function(){t(this).bxslider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slidewidth=parseint(o.settings.slidewidth),o.children=r.children(o.settings.slideselector),o.children.length1||o.settings.maxslides>1,o.carousel&&(o.settings.preloadimages="all"),o.minthreshold=o.settings.minslides*o.settings.slidewidth+(o.settings.minslides-1)*o.settings.slidemargin,o.maxthreshold=o.settings.maxslides*o.settings.slidewidth+(o.settings.maxslides-1)*o.settings.slidemargin,o.working=!1,o.controls={},o.interval=null,o.animprop="vertical"==o.settings.mode?"top":"left",o.usingcss=o.settings.usecss&&"fade"!=o.settings.mode&&function(){var t=document.createelement("div"),e=["webkitperspective","mozperspective","operspective","msperspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssprefix=e[i].replace("perspective","").tolowercase(),o.animprop="-"+o.cssprefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxslides=o.settings.minslides),r.data("origstyle",r.attr("style")),r.children(o.settings.slideselector).each(function(){t(this).data("origstyle",t(this).attr("style"))}),c()},c=function(){r.wrap('
'),o.viewport=r.parent(),o.loader=t('
'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingcss&&o.settings.easing?r.css("-"+o.cssprefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxwidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",liststyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slidemargin>0&&o.children.css("marginright",o.settings.slidemargin),"vertical"==o.settings.mode&&o.settings.slidemargin>0&&o.children.css("marginbottom",o.settings.slidemargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zindex:0,display:"none"}),o.children.eq(o.settings.startslide).css({zindex:o.settings.slidezindex,display:"block"})),o.controls.el=t('
'),o.settings.captions&&p(),o.active.last=o.settings.startslide==x()-1,o.settings.video&&r.fitvids();var e=o.children.eq(o.settings.startslide);"all"==o.settings.preloadimages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&t(),o.settings.controls&&c(),o.settings.auto&&o.settings.autocontrols&&e(),(o.settings.controls||o.settings.autocontrols||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteloop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minslides:o.settings.maxslides,i=o.children.slice(0,e).clone().addclass("bx-clone"),s=o.children.slice(-e).clone().addclass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),s(),"vertical"==o.settings.mode&&(o.settings.adaptiveheight=!0),o.viewport.height(v()),r.redrawslider(),o.settings.onsliderload(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",z),o.settings.auto&&o.settings.autostart&&h(),o.settings.ticker&&l(),o.settings.pager&&q(o.settings.startslide),o.settings.controls&&w(),o.settings.touchenabled&&!o.settings.ticker&&o()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveheight)if(o.carousel){var n=1==o.settings.moveslides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxslides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerheight()}),o.settings.slidemargin>0&&(e+=o.settings.slidemargin*(o.settings.minslides-1))):e=math.max.apply(math,s.map(function(){return t(this).outerheight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slidewidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxslides*o.settings.slidewidth+(o.settings.maxslides-1)*o.settings.slidemargin:o.settings.slidewidth),t},u=function(){var t=o.settings.slidewidth,e=o.viewport.width();return 0==o.settings.slidewidth||o.settings.slidewidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxslides>1&&"horizontal"==o.settings.mode&&(e>o.maxthreshold||e0)if(o.viewport.width()o.maxthreshold)t=o.settings.maxslides;else{var e=o.children.first().width();t=math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minslides);return t},x=function(){var t=0;if(o.settings.moveslides>0)if(o.settings.infiniteloop)t=o.children.length/m();else for(var e=0,i=0;e0&&o.settings.moveslides<=f()?o.settings.moveslides:f()},s=function(){if(o.children.length>o.settings.maxslides&&o.active.last&&!o.settings.infiniteloop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minslides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingcss){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssprefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animprop,n),r.bind("transitionend webkittransitionend otransitionend mstransitionend",function(){r.unbind("transitionend webkittransitionend otransitionend mstransitionend"),d()})):"reset"==e?r.css(o.animprop,n):"ticker"==e&&(r.css("-"+o.cssprefix+"-transition-timing-function","linear"),r.css(o.animprop,n),r.bind("transitionend webkittransitionend otransitionend mstransitionend",function(){r.unbind("transitionend webkittransitionend otransitionend mstransitionend"),b(s.resetvalue,"reset",0),n()}))}else{var a={};a[o.animprop]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){d()}):"reset"==e?r.css(o.animprop,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetvalue,"reset",0),n()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildpager&&t.isfunction(o.settings.buildpager)?(n=o.settings.buildpager(s),o.pagerel.addclass("bx-custom-pager")):(n=s+1,o.pagerel.addclass("bx-default-pager")),e+='"}o.pagerel.html(e)},t=function(){o.settings.pagercustom?o.pagerel=t(o.settings.pagercustom):(o.pagerel=t('
'),o.settings.pagerselector?t(o.settings.pagerselector).html(o.pagerel):o.controls.el.addclass("bx-has-pager").append(o.pagerel),w()),o.pagerel.on("click","a",i)},c=function(){o.controls.next=t(''+o.settings.nexttext+""),o.controls.prev=t(''+o.settings.prevtext+""),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextselector&&t(o.settings.nextselector).append(o.controls.next),o.settings.prevselector&&t(o.settings.prevselector).append(o.controls.prev),o.settings.nextselector||o.settings.prevselector||(o.controls.directionel=t('
'),o.controls.directionel.append(o.controls.prev).append(o.controls.next),o.controls.el.addclass("bx-has-controls-direction").append(o.controls.directionel))},e=function(){o.controls.start=t('"),o.controls.stop=t('"),o.controls.autoel=t('
'),o.controls.autoel.on("click",".bx-start",k),o.controls.autoel.on("click",".bx-stop",m),o.settings.autocontrolscombine?o.controls.autoel.append(o.controls.start):o.controls.autoel.append(o.controls.start).append(o.controls.stop),o.settings.autocontrolsselector?t(o.settings.autocontrolsselector).html(o.controls.autoel):o.controls.el.addclass("bx-has-controls-auto").append(o.controls.autoel),a(o.settings.autostart?"stop":"start")},p=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('
'+e+"
")})},y=function(t){o.settings.auto&&r.stopauto(),r.gotonextslide(),t.preventdefault()},z=function(t){o.settings.auto&&r.stopauto(),r.gotoprevslide(),t.preventdefault()},k=function(t){r.startauto(),t.preventdefault()},m=function(t){r.stopauto(),t.preventdefault()},i=function(e){o.settings.auto&&r.stopauto();var i=t(e.currenttarget),s=parseint(i.attr("data-slide-index"));s!=o.active.index&&r.gotoslide(s),e.preventdefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagertype?(o.settings.maxslides>1&&(i=math.ceil(o.children.length/o.settings.maxslides)),o.pagerel.html(e+1+o.settings.pagershortseparator+i),void 0):(o.pagerel.find("a").removeclass("active"),o.pagerel.each(function(i,s){t(s).find("a").eq(e).addclass("active")}),void 0)},d=function(){if(o.settings.infiniteloop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onslideafter(o.children.eq(o.active.index),o.oldindex,o.active.index)},a=function(t){o.settings.autocontrolscombine?o.controls.autoel.html(o.controls[t]):(o.controls.autoel.find("a").removeclass("active"),o.controls.autoel.find("a:not(.bx-"+t+")").addclass("active"))},w=function(){1==x()?(o.controls.prev.addclass("disabled"),o.controls.next.addclass("disabled")):!o.settings.infiniteloop&&o.settings.hidecontrolonend&&(0==o.active.index?(o.controls.prev.addclass("disabled"),o.controls.next.removeclass("disabled")):o.active.index==x()-1?(o.controls.next.addclass("disabled"),o.controls.prev.removeclass("disabled")):(o.controls.prev.removeclass("disabled"),o.controls.next.removeclass("disabled")))},h=function(){o.settings.autodelay>0?settimeout(r.startauto,o.settings.autodelay):r.startauto(),o.settings.autohover&&r.hover(function(){o.interval&&(r.stopauto(!0),o.autopaused=!0)},function(){o.autopaused&&(r.startauto(!0),o.autopaused=null)})},l=function(){var e=0;if("next"==o.settings.autodirection)r.append(o.children.clone().addclass("bx-clone"));else{r.prepend(o.children.clone().addclass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autocontrols=!1,o.settings.tickerhover&&!o.usingcss&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerwidth(!0):t(this).outerheight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-math.abs(parseint(r.css(s))));n(n)}),n()},n=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autodirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetvalue:n};b(s,"ticker",speed,a)},o=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",x)},x=function(t){if(o.working)t.preventdefault();else{o.touch.originalpos=r.position();var e=t.originalevent;o.touch.start.x=e.changedtouches[0].pagex,o.touch.start.y=e.changedtouches[0].pagey,o.viewport.bind("touchmove",y),o.viewport.bind("touchend",v)}},y=function(t){var e=t.originalevent,i=math.abs(e.changedtouches[0].pagex-o.touch.start.x),s=math.abs(e.changedtouches[0].pagey-o.touch.start.y);if(3*i>s&&o.settings.preventdefaultswipex?t.preventdefault():3*s>i&&o.settings.preventdefaultswipey&&t.preventdefault(),"fade"!=o.settings.mode&&o.settings.onetoonetouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedtouches[0].pagex-o.touch.start.x;n=o.touch.originalpos.left+r}else{var r=e.changedtouches[0].pagey-o.touch.start.y;n=o.touch.originalpos.top+r}b(n,"reset",0)}},v=function(t){o.viewport.unbind("touchmove",y);var e=t.originalevent,i=0;if(o.touch.end.x=e.changedtouches[0].pagex,o.touch.end.y=e.changedtouches[0].pagey,"fade"==o.settings.mode){var s=math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipethreshold&&(o.touch.start.x>o.touch.end.x?r.gotonextslide():r.gotoprevslide(),r.stopauto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalpos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalpos.top),!o.settings.infiniteloop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):math.abs(s)>=o.settings.swipethreshold?(0>s?r.gotonextslide():r.gotoprevslide(),r.stopauto()):b(i,"reset",200)}o.viewport.unbind("touchend",v)},z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawslider(),o.settings.onsliderresize.call(r,o.active.index))};return r.gotoslide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldindex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onslidebefore(o.children.eq(o.active.index),o.oldindex,o.active.index),"next"==i?o.settings.onslidenext(o.children.eq(o.active.index),o.oldindex,o.active.index):"prev"==i&&o.settings.onslideprev(o.children.eq(o.active.index),o.oldindex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&w(),"fade"==o.settings.mode)o.settings.adaptiveheight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveheightspeed),o.children.filter(":visible").fadeout(o.settings.speed).css({zindex:0}),o.children.eq(o.active.index).css("zindex",o.settings.slidezindex+1).fadein(o.settings.speed,function(){t(this).css("zindex",o.settings.slidezindex),d()});else{o.settings.adaptiveheight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveheightspeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteloop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerwidth()}else{var l=o.children.length-o.settings.minslides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveslides?o.settings.maxslides-m():(x()-1)*m()-(o.children.length-o.settings.maxslides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxslides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.gotonextslide=function(){if(o.settings.infiniteloop||!o.active.last){var t=parseint(o.active.index)+1;r.gotoslide(t,"next")}},r.gotoprevslide=function(){if(o.settings.infiniteloop||0!=o.active.index){var t=parseint(o.active.index)-1;r.gotoslide(t,"prev")}},r.startauto=function(t){o.interval||(o.interval=setinterval(function(){"next"==o.settings.autodirection?r.gotonextslide():r.gotoprevslide()},o.settings.pause),o.settings.autocontrols&&1!=t&&a("stop"))},r.stopauto=function(t){o.interval&&(clearinterval(o.interval),o.interval=null,o.settings.autocontrols&&1!=t&&a("start"))},r.getcurrentslide=function(){return o.active.index},r.getcurrentslideelement=function(){return o.children.eq(o.active.index)},r.getslidecount=function(){return o.children.length},r.redrawslider=function(){o.children.add(r.find(".bx-clone")).outerwidth(u()),o.viewport.css("height",v()),o.settings.ticker||s(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagercustom&&(w(),q(o.active.index))},r.destroyslider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origstyle")?t(this).attr("style",t(this).data("origstyle")):t(this).removeattr("style")}),void 0!=t(this).data("origstyle")?this.attr("style",t(this).data("origstyle")):t(this).removeattr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerel&&o.settings.controls&&o.pagerel.remove(),t(".bx-caption",this).remove(),o.controls.autoel&&o.controls.autoel.remove(),clearinterval(o.interval),o.settings.responsive&&t(window).unbind("resize",z))},r.reloadslider=function(t){void 0!=t&&(n=t),r.destroyslider(),d()},d(),this}}(jquery); $(document).ready(function(){ //返回顶部 $("#gototop").click(function(){ $("html,body").animate({scrolltop :0}, 800);return false; }); $("#gotocate").click(function(){ $("html,body").animate({scrolltop:$("#categories").offset().top},800);return false; }); // 搜索 $("#small_search").click(function(){ $("#topsearch").slidetoggle(); }); if($(window).width()>768){ //鼠标划过就展开子菜单 $('ul.nav li.dropdown').hover(function() { $(this).find('.dropdown-menu').stop(true, true).slidedown(); }, function() { $(this).find('.dropdown-menu').stop(true, true).slideup(); }); } //scrolltop $(window).scroll(function(){ var scrolls = $(window).scrolltop() if (scrolls > 10) { $(".navbar").addclass("small-nav") }else{ $(".navbar").removeclass("small-nav") } }); //左侧导航菜单 // if ($("#firstpane .menu_body:eq(0)").text().replace(/[\r\n ]/g,"").length>0) { // $("#firstpane .menu_body:eq(0)").show().prev().html("-").prev().addclass("left_active"); // }; $("ul.menu_body").each(function(){ if ($(this).text().replace(/[\r\n ]/g,"").length<=0) {$(this).prev().remove();} //去掉span }); $("#firstpane span.menu_head").click(function(){ var spanatt = $(this).next("ul.menu_body").css('display'); if (spanatt == "block"){ var spantext = "+"; $(this).prev().removeclass("left_active"); }else{ var spantext = "-"; $(this).prev().addclass("left_active"); } $(this).html(spantext).addclass("current").next("ul.menu_body").slidetoggle(300).siblings("ul.menu_body"); }); }); /*! * bootstrap v3.3.4 (http://getbootstrap.com) * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) */ if (typeof jquery === 'undefined') { throw new error('bootstrap\'s javascript requires jquery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) { throw new error('bootstrap\'s javascript requires jquery version 1.9.1 or higher') } }(jquery); /* ======================================================================== * bootstrap: transition.js v3.3.4 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // css transition support (shoutout: http://www.modernizr.com/) // ============================================================ function transitionend() { var el = document.createelement('bootstrap') var transendeventnames = { webkittransition : 'webkittransitionend', moztransition : 'transitionend', otransition : 'otransitionend otransitionend', transition : 'transitionend' } for (var name in transendeventnames) { if (el.style[name] !== undefined) { return { end: transendeventnames[name] } } } return false // explicit for ie8 ( ._.) } // http://blog.alexmaccaw.com/css-transitions $.fn.emulatetransitionend = function (duration) { var called = false var $el = this $(this).one('bstransitionend', function () { called = true }) var callback = function () { if (!called) $($el).trigger($.support.transition.end) } settimeout(callback, duration) return this } $(function () { $.support.transition = transitionend() if (!$.support.transition) return $.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); /* ======================================================================== * bootstrap: alert.js v3.3.4 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // alert class definition // ====================== var dismiss = '[data-dismiss="alert"]' var alert = function (el) { $(el).on('click', dismiss, this.close) } alert.version = '3.3.4' alert.transition_duration = 150 alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = $(selector) if (e) e.preventdefault() if (!$parent.length) { $parent = $this.closest('.alert') } $parent.trigger(e = $.event('close.bs.alert')) if (e.isdefaultprevented()) return $parent.removeclass('in') function removeelement() { // detach from parent, fire event then clean up data $parent.detach().trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasclass('fade') ? $parent .one('bstransitionend', removeelement) .emulatetransitionend(alert.transition_duration) : removeelement() } // alert plugin definition // ======================= function plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new alert(this))) if (typeof option == 'string') data[option].call($this) }) } var old = $.fn.alert $.fn.alert = plugin $.fn.alert.constructor = alert // alert no conflict // ================= $.fn.alert.noconflict = function () { $.fn.alert = old return this } // alert data-api // ============== $(document).on('click.bs.alert.data-api', dismiss, alert.prototype.close) }(jquery); /* ======================================================================== * bootstrap: button.js v3.3.4 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // button public class definition // ============================== var button = function (element, options) { this.$element = $(element) this.options = $.extend({}, button.defaults, options) this.isloading = false } button.version = '3.3.4' button.defaults = { loadingtext: 'loading...' } button.prototype.setstate = function (state) { var d = 'disabled' var $el = this.$element var val = $el.is('input') ? 'val' : 'html' var data = $el.data() state = state + 'text' if (data.resettext == null) $el.data('resettext', $el[val]()) // push to event loop to allow forms to submit settimeout($.proxy(function () { $el[val](data[state] == null ? this.options[state] : data[state]) if (state == 'loadingtext') { this.isloading = true $el.addclass(d).attr(d, d) } else if (this.isloading) { this.isloading = false $el.removeclass(d).removeattr(d) } }, this), 0) } button.prototype.toggle = function () { var changed = true var $parent = this.$element.closest('[data-toggle="buttons"]') if ($parent.length) { var $input = this.$element.find('input') if ($input.prop('type') == 'radio') { if ($input.prop('checked') && this.$element.hasclass('active')) changed = false else $parent.find('.active').removeclass('active') } if (changed) $input.prop('checked', !this.$element.hasclass('active')).trigger('change') } else { this.$element.attr('aria-pressed', !this.$element.hasclass('active')) } if (changed) this.$element.toggleclass('active') } // button plugin definition // ======================== function plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new button(this, options))) if (option == 'toggle') data.toggle() else if (option) data.setstate(option) }) } var old = $.fn.button $.fn.button = plugin $.fn.button.constructor = button // button no conflict // ================== $.fn.button.noconflict = function () { $.fn.button = old return this } // button data-api // =============== $(document) .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { var $btn = $(e.target) if (!$btn.hasclass('btn')) $btn = $btn.closest('.btn') plugin.call($btn, 'toggle') e.preventdefault() }) .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { $(e.target).closest('.btn').toggleclass('focus', /^focus(in)?$/.test(e.type)) }) }(jquery); /* ======================================================================== * bootstrap: carousel.js v3.3.4 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // carousel class definition // ========================= var carousel = function (element, options) { this.$element = $(element) this.$indicators = this.$element.find('.carousel-indicators') this.options = options this.paused = null this.sliding = null this.interval = null this.$active = null this.$items = null this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) this.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)) } carousel.version = '3.3.4' carousel.transition_duration = 600 carousel.defaults = { interval: 5000, pause: 'hover', wrap: true, keyboard: true } carousel.prototype.keydown = function (e) { if (/input|textarea/i.test(e.target.tagname)) return switch (e.which) { case 37: this.prev(); break case 39: this.next(); break default: return } e.preventdefault() } carousel.prototype.cycle = function (e) { e || (this.paused = false) this.interval && clearinterval(this.interval) this.options.interval && !this.paused && (this.interval = setinterval($.proxy(this.next, this), this.options.interval)) return this } carousel.prototype.getitemindex = function (item) { this.$items = item.parent().children('.item') return this.$items.index(item || this.$active) } carousel.prototype.getitemfordirection = function (direction, active) { var activeindex = this.getitemindex(active) var willwrap = (direction == 'prev' && activeindex === 0) || (direction == 'next' && activeindex == (this.$items.length - 1)) if (willwrap && !this.options.wrap) return active var delta = direction == 'prev' ? -1 : 1 var itemindex = (activeindex + delta) % this.$items.length return this.$items.eq(itemindex) } carousel.prototype.to = function (pos) { var that = this var activeindex = this.getitemindex(this.$active = this.$element.find('.item.active')) if (pos > (this.$items.length - 1) || pos < 0) return if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" if (activeindex == pos) return this.pause().cycle() return this.slide(pos > activeindex ? 'next' : 'prev', this.$items.eq(pos)) } carousel.prototype.pause = function (e) { e || (this.paused = true) if (this.$element.find('.next, .prev').length && $.support.transition) { this.$element.trigger($.support.transition.end) this.cycle(true) } this.interval = clearinterval(this.interval) return this } carousel.prototype.next = function () { if (this.sliding) return return this.slide('next') } carousel.prototype.prev = function () { if (this.sliding) return return this.slide('prev') } carousel.prototype.slide = function (type, next) { var $active = this.$element.find('.item.active') var $next = next || this.getitemfordirection(type, $active) var iscycling = this.interval var direction = type == 'next' ? 'left' : 'right' var that = this if ($next.hasclass('active')) return (this.sliding = false) var relatedtarget = $next[0] var slideevent = $.event('slide.bs.carousel', { relatedtarget: relatedtarget, direction: direction }) this.$element.trigger(slideevent) if (slideevent.isdefaultprevented()) return this.sliding = true iscycling && this.pause() if (this.$indicators.length) { this.$indicators.find('.active').removeclass('active') var $nextindicator = $(this.$indicators.children()[this.getitemindex($next)]) $nextindicator && $nextindicator.addclass('active') } var slidevent = $.event('slid.bs.carousel', { relatedtarget: relatedtarget, direction: direction }) // yes, "slid" if ($.support.transition && this.$element.hasclass('slide')) { $next.addclass(type) $next[0].offsetwidth // force reflow $active.addclass(direction) $next.addclass(direction) $active .one('bstransitionend', function () { $next.removeclass([type, direction].join(' ')).addclass('active') $active.removeclass(['active', direction].join(' ')) that.sliding = false settimeout(function () { that.$element.trigger(slidevent) }, 0) }) .emulatetransitionend(carousel.transition_duration) } else { $active.removeclass('active') $next.addclass('active') this.sliding = false this.$element.trigger(slidevent) } iscycling && this.cycle() return this } // carousel plugin definition // ========================== function plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, carousel.defaults, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (!data) $this.data('bs.carousel', (data = new carousel(this, options))) if (typeof option == 'number') data.to(option) else if (action) data[action]() else if (options.interval) data.pause().cycle() }) } var old = $.fn.carousel $.fn.carousel = plugin $.fn.carousel.constructor = carousel // carousel no conflict // ==================== $.fn.carousel.noconflict = function () { $.fn.carousel = old return this } // carousel data-api // ================= var clickhandler = function (e) { var href var $this = $(this) var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 if (!$target.hasclass('carousel')) return var options = $.extend({}, $target.data(), $this.data()) var slideindex = $this.attr('data-slide-to') if (slideindex) options.interval = false plugin.call($target, options) if (slideindex) { $target.data('bs.carousel').to(slideindex) } e.preventdefault() } $(document) .on('click.bs.carousel.data-api', '[data-slide]', clickhandler) .on('click.bs.carousel.data-api', '[data-slide-to]', clickhandler) $(window).on('load', function () { $('[data-ride="carousel"]').each(function () { var $carousel = $(this) plugin.call($carousel, $carousel.data()) }) }) }(jquery); /* ======================================================================== * bootstrap: collapse.js v3.3.4 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // collapse public class definition // ================================ var collapse = function (element, options) { this.$element = $(element) this.options = $.extend({}, collapse.defaults, options) this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + '[data-toggle="collapse"][data-target="#' + element.id + '"]') this.transitioning = null if (this.options.parent) { this.$parent = this.getparent() } else { this.addariaandcollapsedclass(this.$element, this.$trigger) } if (this.options.toggle) this.toggle() } collapse.version = '3.3.4' collapse.transition_duration = 350 collapse.defaults = { toggle: true } collapse.prototype.dimension = function () { var haswidth = this.$element.hasclass('width') return haswidth ? 'width' : 'height' } collapse.prototype.show = function () { if (this.transitioning || this.$element.hasclass('in')) return var activesdata var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') if (actives && actives.length) { activesdata = actives.data('bs.collapse') if (activesdata && activesdata.transitioning) return } var startevent = $.event('show.bs.collapse') this.$element.trigger(startevent) if (startevent.isdefaultprevented()) return if (actives && actives.length) { plugin.call(actives, 'hide') activesdata || actives.data('bs.collapse', null) } var dimension = this.dimension() this.$element .removeclass('collapse') .addclass('collapsing')[dimension](0) .attr('aria-expanded', true) this.$trigger .removeclass('collapsed') .attr('aria-expanded', true) this.transitioning = 1 var complete = function () { this.$element .removeclass('collapsing') .addclass('collapse in')[dimension]('') this.transitioning = 0 this.$element .trigger('shown.bs.collapse') } if (!$.support.transition) return complete.call(this) var scrollsize = $.camelcase(['scroll', dimension].join('-')) this.$element .one('bstransitionend', $.proxy(complete, this)) .emulatetransitionend(collapse.transition_duration)[dimension](this.$element[0][scrollsize]) } collapse.prototype.hide = function () { if (this.transitioning || !this.$element.hasclass('in')) return var startevent = $.event('hide.bs.collapse') this.$element.trigger(startevent) if (startevent.isdefaultprevented()) return var dimension = this.dimension() this.$element[dimension](this.$element[dimension]())[0].offsetheight this.$element .addclass('collapsing') .removeclass('collapse in') .attr('aria-expanded', false) this.$trigger .addclass('collapsed') .attr('aria-expanded', false) this.transitioning = 1 var complete = function () { this.transitioning = 0 this.$element .removeclass('collapsing') .addclass('collapse') .trigger('hidden.bs.collapse') } if (!$.support.transition) return complete.call(this) this.$element [dimension](0) .one('bstransitionend', $.proxy(complete, this)) .emulatetransitionend(collapse.transition_duration) } collapse.prototype.toggle = function () { this[this.$element.hasclass('in') ? 'hide' : 'show']() } collapse.prototype.getparent = function () { return $(this.options.parent) .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') .each($.proxy(function (i, element) { var $element = $(element) this.addariaandcollapsedclass(gettargetfromtrigger($element), $element) }, this)) .end() } collapse.prototype.addariaandcollapsedclass = function ($element, $trigger) { var isopen = $element.hasclass('in') $element.attr('aria-expanded', isopen) $trigger .toggleclass('collapsed', !isopen) .attr('aria-expanded', isopen) } function gettargetfromtrigger($trigger) { var href var target = $trigger.attr('data-target') || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 return $(target) } // collapse plugin definition // ========================== function plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, collapse.defaults, $this.data(), typeof option == 'object' && option) if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false if (!data) $this.data('bs.collapse', (data = new collapse(this, options))) if (typeof option == 'string') data[option]() }) } var old = $.fn.collapse $.fn.collapse = plugin $.fn.collapse.constructor = collapse // collapse no conflict // ==================== $.fn.collapse.noconflict = function () { $.fn.collapse = old return this } // collapse data-api // ================= $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { var $this = $(this) if (!$this.attr('data-target')) e.preventdefault() var $target = gettargetfromtrigger($this) var data = $target.data('bs.collapse') var option = data ? 'toggle' : $this.data() plugin.call($target, option) }) }(jquery); /* ======================================================================== * bootstrap: dropdown.js v3.3.4 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * copyright 2011-2015 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) * ======================================================================== */ +function ($) { 'use strict'; // dropdown class definition // ========================= var backdrop = '.dropdown-backdrop' var toggle = '[data-toggle="dropdown"]' var dropdown = function (element) { $(element).on('click.bs.dropdown', this.toggle) } dropdown.version = '3.3.4' dropdown.prototype.toggle = function (e) { var $this = $(this) if ($this.is('.disabled, :disabled')) return var $parent = getparent($this) var isactive = $parent.hasclass('open') clearmenus() if (!isactive) { if ('ontouchstart' in document.documentelement && !$parent.closest('.navbar-nav').length) { // if mobile we use a backdrop because click events don't delegate $('