/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(g,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=g.document?b(g,!0):function(g){if(!g.document)throw new Error("jQuery requires a window with a document");return b(g)}:b(g)}("undefined"!=typeof window?window:this,function(g,b){"use strict";var f=[],a=Object.getPrototypeOf,d=f.slice,j=f.flat?function(g){return f.flat.call(g)}:function(g){return f.concat.apply([],g)},e=f.push,J=f.indexOf,c={},H=c.toString,bZ=c.hasOwnProperty,cR=bZ.toString,dD=cR.call(Object),aU={},ei=function(g){return"function"==typeof g&&"number"!=typeof g.nodeType},aK=function(g){return null!=g&&g===g.window},aa=g.document,bY={type:!0,src:!0,nonce:!0,noModule:!0};function fV(g,b,f){var a,d,j=(f=f||aa).createElement("script");if(j.text=g,b)for(a in bY)(d=b[a]||b.getAttribute&&b.getAttribute(a))&&j.setAttribute(a,d);f.head.appendChild(j).parentNode.removeChild(j)}function gU(g){return null==g?g+"":"object"==typeof g||"function"==typeof g?c[H.call(g)]||"object":typeof g}var fa="3.5.1",fg=function(g,b){return new fg.fn.init(g,b)};function fN(g){var b=!!g&&"length"in g&&g.length,f=gU(g);return!ei(g)&&!aK(g)&&("array"===f||0===b||"number"==typeof b&&0+~]|"+l+")"+l+"*"),t=new RegExp(l+"|>"),u=new RegExp(o),v=new RegExp("^"+m+"$"),w={ID:new RegExp("^#("+m+")"),CLASS:new RegExp("^\\.("+m+")"),TAG:new RegExp("^("+m+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+o),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+l+"*(even|odd|(([+-]|)(\\d*)n|)"+l+"*(?:([+-]|)"+l+"*(\\d+)|))"+l+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+l+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+l+"*((?:-\\d)?\\d*)"+l+"*\\)|)(?=[^-]|$)","i")},x=/HTML$/i,y=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,A=/^[^{]+\{\s*\[native \w/,B=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,C=/[+~]/,D=new RegExp("\\\\[\\da-fA-F]{1,6}"+l+"?|\\\\([^\\r\\n\\f])","g"),E=function(g,b){var f="0x"+g.slice(1)-65536;return b||(f<0?String.fromCharCode(f+65536):String.fromCharCode(f>>10|55296,1023&f|56320))},F=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,G=function(g,b){return b?"\0"===g?"�":g.slice(0,-1)+"\\"+g.charCodeAt(g.length-1).toString(16)+" ":"\\"+g},I=function(){dD()},K=Y(function(g){return!0===g.disabled&&"fieldset"===g.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{eU.apply(eW=h.call(fg.childNodes),fg.childNodes),eW[fg.childNodes.length].nodeType}catch(b){eU={apply:eW.length?function(g,b){ej.apply(g,h.call(b))}:function(g,b){var f=g.length,a=0;while(g[f++]=b[a++]);g.length=f-1}}}function L(g,b,a,d){var j,J,H,bZ,cR,ei,bY,fV=b&&b.ownerDocument,fg=b?b.nodeType:9;if(a=a||[],"string"!=typeof g||!g||1!==fg&&9!==fg&&11!==fg)return a;if(!d&&(dD(b),b=b||aU,aK)){if(11!==fg&&(cR=B.exec(g)))if(j=cR[1]){if(9===fg){if(!(H=b.getElementById(j)))return a;if(H.id===j)return a.push(H),a}else if(fV&&(H=fV.getElementById(j))&&gU(b,H)&&H.id===j)return a.push(H),a}else{if(cR[2])return eU.apply(a,b.getElementsByTagName(g)),a;if((j=cR[3])&&f.getElementsByClassName&&b.getElementsByClassName)return eU.apply(a,b.getElementsByClassName(j)),a}if(f.qsa&&!cd[g+" "]&&(!aa||!aa.test(g))&&(1!==fg||"object"!==b.nodeName.toLowerCase())){if(bY=g,fV=b,1===fg&&(t.test(g)||s.test(g))){(fV=C.test(g)&&V(b.parentNode)||b)===b&&f.scope||((bZ=b.getAttribute("id"))?bZ=bZ.replace(F,G):b.setAttribute("id",bZ=fa)),J=(ei=e(g)).length;while(J--)ei[J]=(bZ?"#"+bZ:":scope")+" "+X(ei[J]);bY=ei.join(",")}try{return eU.apply(a,fV.querySelectorAll(bY)),a}catch(b){cd(g,!0)}finally{bZ===fa&&b.removeAttribute("id")}}}return c(g.replace(q,"$1"),b,a,d)}function M(){var g=[];return function b(f,d){return g.push(f+" ")>a.cacheLength&&delete b[g.shift()],b[f+" "]=d}}function N(g){return g[fa]=!0,g}function O(g){var b=aU.createElement("fieldset");try{return!!g(b)}catch(g){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function P(g,b){var f=g.split("|"),d=f.length;while(d--)a.attrHandle[f[d]]=b}function Q(g,b){var f=b&&g,a=f&&1===g.nodeType&&1===b.nodeType&&g.sourceIndex-b.sourceIndex;if(a)return a;if(f)while(f=f.nextSibling)if(f===b)return-1;return g?1:-1}function R(g){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===g}}function S(g){return function(b){var f=b.nodeName.toLowerCase();return("input"===f||"button"===f)&&b.type===g}}function T(g){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===g:b.disabled===g:b.isDisabled===g||b.isDisabled!==!g&&K(b)===g:b.disabled===g:"label"in b&&b.disabled===g}}function U(g){return N(function(b){return b=+b,N(function(f,a){var d,j=g([],f.length,b),e=j.length;while(e--)f[d=j[e]]&&(f[d]=!(a[d]=f[d]))})})}function V(g){return g&&"undefined"!=typeof g.getElementsByTagName&&g}for(b in f=L.support={},j=L.isXML=function(g){var b=g.namespaceURI,f=(g.ownerDocument||g).documentElement;return!x.test(b||f&&f.nodeName||"HTML")},dD=L.setDocument=function(g){var b,d,e=g?g.ownerDocument||g:fg;return e!=aU&&9===e.nodeType&&e.documentElement&&(ei=(aU=e).documentElement,aK=!j(aU),fg!=aU&&(d=aU.defaultView)&&d.top!==d&&(d.addEventListener?d.addEventListener("unload",I,!1):d.attachEvent&&d.attachEvent("onunload",I)),f.scope=O(function(g){return ei.appendChild(g).appendChild(aU.createElement("div")),"undefined"!=typeof g.querySelectorAll&&!g.querySelectorAll(":scope fieldset div").length}),f.attributes=O(function(g){return g.className="i",!g.getAttribute("className")}),f.getElementsByTagName=O(function(g){return g.appendChild(aU.createComment("")),!g.getElementsByTagName("*").length}),f.getElementsByClassName=A.test(aU.getElementsByClassName),f.getById=O(function(g){return ei.appendChild(g).id=fa,!aU.getElementsByName||!aU.getElementsByName(fa).length}),f.getById?(a.filter.ID=function(g){var b=g.replace(D,E);return function(g){return g.getAttribute("id")===b}},a.find.ID=function(g,b){if("undefined"!=typeof b.getElementById&&aK){var f=b.getElementById(g);return f?[f]:[]}}):(a.filter.ID=function(g){var b=g.replace(D,E);return function(g){var f="undefined"!=typeof g.getAttributeNode&&g.getAttributeNode("id");return f&&f.value===b}},a.find.ID=function(g,b){if("undefined"!=typeof b.getElementById&&aK){var f,a,d,j=b.getElementById(g);if(j){if((f=j.getAttributeNode("id"))&&f.value===g)return[j];d=b.getElementsByName(g),a=0;while(j=d[a++])if((f=j.getAttributeNode("id"))&&f.value===g)return[j]}return[]}}),a.find.TAG=f.getElementsByTagName?function(g,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(g):f.qsa?b.querySelectorAll(g):void 0}:function(g,b){var f,a=[],d=0,j=b.getElementsByTagName(g);if("*"===g){while(f=j[d++])1===f.nodeType&&a.push(f);return a}return j},a.find.CLASS=f.getElementsByClassName&&function(g,b){if("undefined"!=typeof b.getElementsByClassName&&aK)return b.getElementsByClassName(g)},bY=[],aa=[],(f.qsa=A.test(aU.querySelectorAll))&&(O(function(g){var b;ei.appendChild(g).innerHTML="",g.querySelectorAll("[msallowcapture^='']").length&&aa.push("[*^$]="+l+"*(?:''|\"\")"),g.querySelectorAll("[selected]").length||aa.push("\\["+l+"*(?:value|"+k+")"),g.querySelectorAll("[id~="+fa+"-]").length||aa.push("~="),(b=aU.createElement("input")).setAttribute("name",""),g.appendChild(b),g.querySelectorAll("[name='']").length||aa.push("\\["+l+"*name"+l+"*="+l+"*(?:''|\"\")"),g.querySelectorAll(":checked").length||aa.push(":checked"),g.querySelectorAll("a#"+fa+"+*").length||aa.push(".#.+[+~]"),g.querySelectorAll("\\\f"),aa.push("[\\r\\n\\f]")}),O(function(g){g.innerHTML="";var b=aU.createElement("input");b.setAttribute("type","hidden"),g.appendChild(b).setAttribute("name","D"),g.querySelectorAll("[name=d]").length&&aa.push("name"+l+"*[*^$|!~]?="),2!==g.querySelectorAll(":enabled").length&&aa.push(":enabled",":disabled"),ei.appendChild(g).disabled=!0,2!==g.querySelectorAll(":disabled").length&&aa.push(":enabled",":disabled"),g.querySelectorAll("*,:x"),aa.push(",.*:")})),(f.matchesSelector=A.test(fV=ei.matches||ei.webkitMatchesSelector||ei.mozMatchesSelector||ei.oMatchesSelector||ei.msMatchesSelector))&&O(function(g){f.disconnectedMatch=fV.call(g,"*"),fV.call(g,"[s!='']:x"),bY.push("!=",o)}),aa=aa.length&&new RegExp(aa.join("|")),bY=bY.length&&new RegExp(bY.join("|")),b=A.test(ei.compareDocumentPosition),gU=b||A.test(ei.contains)?function(g,b){var f=9===g.nodeType?g.documentElement:g,a=b&&b.parentNode;return g===a||!(!a||1!==a.nodeType||!(f.contains?f.contains(a):g.compareDocumentPosition&&16&g.compareDocumentPosition(a)))}:function(g,b){if(b)while(b=b.parentNode)if(b===g)return!0;return!1},cS=b?function(g,b){if(g===b)return cR=!0,0;var a=!g.compareDocumentPosition-!b.compareDocumentPosition;return a||(1&(a=(g.ownerDocument||g)==(b.ownerDocument||b)?g.compareDocumentPosition(b):1)||!f.sortDetached&&b.compareDocumentPosition(g)===a?g==aU||g.ownerDocument==fg&&gU(fg,g)?-1:b==aU||b.ownerDocument==fg&&gU(fg,b)?1:bZ?i(bZ,g)-i(bZ,b):0:4&a?-1:1)}:function(g,b){if(g===b)return cR=!0,0;var f,a=0,d=g.parentNode,j=b.parentNode,e=[g],J=[b];if(!d||!j)return g==aU?-1:b==aU?1:d?-1:j?1:bZ?i(bZ,g)-i(bZ,b):0;if(d===j)return Q(g,b);f=g;while(f=f.parentNode)e.unshift(f);f=b;while(f=f.parentNode)J.unshift(f);while(e[a]===J[a])a++;return a?Q(e[a],J[a]):e[a]==fg?-1:J[a]==fg?1:0}),aU},L.matches=function(g,b){return L(g,null,null,b)},L.matchesSelector=function(g,b){if(dD(g),f.matchesSelector&&aK&&!cd[b+" "]&&(!bY||!bY.test(b))&&(!aa||!aa.test(b)))try{var a=fV.call(g,b);if(a||f.disconnectedMatch||g.document&&11!==g.document.nodeType)return a}catch(g){cd(b,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(g){return g[1]=g[1].replace(D,E),g[3]=(g[3]||g[4]||g[5]||"").replace(D,E),"~="===g[2]&&(g[3]=" "+g[3]+" "),g.slice(0,4)},CHILD:function(g){return g[1]=g[1].toLowerCase(),"nth"===g[1].slice(0,3)?(g[3]||L.error(g[0]),g[4]=+(g[4]?g[5]+(g[6]||1):2*("even"===g[3]||"odd"===g[3])),g[5]=+(g[7]+g[8]||"odd"===g[3])):g[3]&&L.error(g[0]),g},PSEUDO:function(g){var b,f=!g[6]&&g[2];return w.CHILD.test(g[0])?null:(g[3]?g[2]=g[4]||g[5]||"":f&&u.test(f)&&(b=e(f,!0))&&(b=f.indexOf(")",f.length-b)-f.length)&&(g[0]=g[0].slice(0,b),g[2]=f.slice(0,b)),g.slice(0,3))}},filter:{TAG:function(g){var b=g.replace(D,E).toLowerCase();return"*"===g?function(){return!0}:function(g){return g.nodeName&&g.nodeName.toLowerCase()===b}},CLASS:function(g){var b=fU[g+" "];return b||(b=new RegExp("(^|"+l+")"+g+"("+l+"|$)"))&&fU(g,function(g){return b.test("string"==typeof g.className&&g.className||"undefined"!=typeof g.getAttribute&&g.getAttribute("class")||"")})},ATTR:function(g,b,f){return function(a){var d=L.attr(a,g);return null==d?"!="===b:!b||(d+="","="===b?d===f:"!="===b?d!==f:"^="===b?f&&0===d.indexOf(f):"*="===b?f&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function cZ(g,b,f){return ei(b)?fg.grep(g,function(g,a){return!!b.call(g,a,g)!==f}):b.nodeType?fg.grep(g,function(g){return g===b!==f}):"string"!=typeof b?fg.grep(g,function(g){return-1)[^>]*|#([\w-]+))$/;(fg.fn.init=function(g,b,f){var a,d;if(!g)return this;if(f=f||eW,"string"==typeof g){if(!(a="<"===g[0]&&">"===g[g.length-1]&&3<=g.length?[null,g,null]:cT.exec(g))||!a[1]&&b)return!b||b.jquery?(b||f).find(g):this.constructor(b).find(g);if(a[1]){if(b=b instanceof fg?b[0]:b,fg.merge(this,fg.parseHTML(a[1],b&&b.nodeType?b.ownerDocument||b:aa,!0)),cS.test(a[1])&&fg.isPlainObject(b))for(a in b)ei(this[a])?this[a](b[a]):this.attr(a,b[a]);return this}return(d=aa.getElementById(a[2]))&&(this[0]=d,this.length=1),this}return g.nodeType?(this[0]=g,this.length=1,this):ei(g)?void 0!==f.ready?f.ready(g):g(fg):fg.makeArray(g,this)}).prototype=fg.fn,eW=fg(aa);var ej=/^(?:parents|prev(?:Until|All))/,eU={children:!0,contents:!0,next:!0,prev:!0};function h(g,b){while((g=g[b])&&1!==g.nodeType);return g}fg.fn.extend({has:function(g){var b=fg(g,this),f=b.length;return this.filter(function(){for(var g=0;g\x20\t\r\n\f]*)/i,S=/^$|^module$|\/(?:java|ecma)script/i;O=aa.createDocumentFragment().appendChild(aa.createElement("div")),(P=aa.createElement("input")).setAttribute("type","radio"),P.setAttribute("checked","checked"),P.setAttribute("name","t"),O.appendChild(P),aU.checkClone=O.cloneNode(!0).cloneNode(!0).lastChild.checked,O.innerHTML="",aU.noCloneChecked=!!O.cloneNode(!0).lastChild.defaultValue,O.innerHTML="",aU.option=!!O.lastChild;var T={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function U(g,b){var f;return f="undefined"!=typeof g.getElementsByTagName?g.getElementsByTagName(b||"*"):"undefined"!=typeof g.querySelectorAll?g.querySelectorAll(b||"*"):[],void 0===b||b&&cd(g,b)?fg.merge([g],f):f}function V(g,b){for(var f=0,a=g.length;f",""]);var W=/<|&#?\w+;/;function X(g,b,f,a,d){for(var j,e,J,c,H,bZ,cR=b.createDocumentFragment(),dD=[],aU=0,ei=g.length;aU\s*$/g;function cg(g,b){return cd(g,"table")&&cd(11!==b.nodeType?b:b.firstChild,"tr")&&fg(g).children("tbody")[0]||g}function Hg(g){return g.type=(null!==g.getAttribute("type"))+"/"+g.type,g}function bZg(g){return"true/"===(g.type||"").slice(0,5)?g.type=g.type.slice(5):g.removeAttribute("type"),g}function cRg(g,b){var f,a,d,j,e,J;if(1===b.nodeType){if(x.hasData(g)&&(J=x.get(g).events))for(d in x.remove(b,"handle events"),J)for(f=0,a=J[d].length;f").attr(g.scriptAttrs||{}).prop({charset:g.scriptCharset,src:g.url}).on("load error",f=function(g){b.remove(),f=null,g&&d("error"===g.type?404:200,g.type)}),aa.head.appendChild(b[0])},abort:function(){f&&f()}}});var $g,_g=[],gb=/(=)\?(?=&|$)|\?\?/;fg.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var g=_g.pop()||fg.expando+"_"+Cg.guid++;return this[g]=!0,g}}),fg.ajaxPrefilter("json jsonp",function(b,f,a){var d,j,e,J=!1!==b.jsonp&&(gb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&gb.test(b.data)&&"data");if(J||"jsonp"===b.dataTypes[0])return d=b.jsonpCallback=ei(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,J?b[J]=b[J].replace(gb,"$1"+d):!1!==b.jsonp&&(b.url+=(Dg.test(b.url)?"&":"?")+b.jsonp+"="+d),b.converters["script json"]=function(){return e||fg.error(d+" was not called"),e[0]},b.dataTypes[0]="json",j=g[d],g[d]=function(){e=arguments},a.always(function(){void 0===j?fg(g).removeProp(d):g[d]=j,b[d]&&(b.jsonpCallback=f.jsonpCallback,_g.push(d)),e&&ei(j)&&j(e[0]),e=j=void 0}),"script"}),aU.createHTMLDocument=(($g=aa.implementation.createHTMLDocument("").body).innerHTML="
",2===$g.childNodes.length),fg.parseHTML=function(g,b,f){return"string"!=typeof g?[]:("boolean"==typeof b&&(f=b,b=!1),b||(aU.createHTMLDocument?((a=(b=aa.implementation.createHTMLDocument("")).createElement("base")).href=aa.location.href,b.head.appendChild(a)):b=aa),j=!f&&[],(d=cS.exec(g))?[b.createElement(d[1])]:(d=X([g],b,j),j&&j.length&&fg(j).remove(),fg.merge([],d.childNodes)));var a,d,j},fg.fn.load=function(g,b,f){var a,d,j,e=this,J=g.indexOf(" ");return-1").append(fg.parseHTML(g)).find(a):g)}).always(f&&function(g,b){e.each(function(){f.apply(this,j||[g.responseText,b,g])})}),this},fg.expr.pseudos.animated=function(g){return fg.grep(fg.timers,function(b){return g===b.elem}).length},fg.offset={setOffset:function(g,b,f){var a,d,j,e,J,c,H=fg.css(g,"position"),bZ=fg(g),cR={};"static"===H&&(g.style.position="relative"),J=bZ.offset(),j=fg.css(g,"top"),c=fg.css(g,"left"),("absolute"===H||"fixed"===H)&&-1<(j+c).indexOf("auto")?(e=(a=bZ.position()).top,d=a.left):(e=parseFloat(j)||0,d=parseFloat(c)||0),ei(b)&&(b=b.call(g,f,fg.extend({},J))),null!=b.top&&(cR.top=b.top-J.top+e),null!=b.left&&(cR.left=b.left-J.left+d),"using"in b?b.using.call(g,cR):("number"==typeof cR.top&&(cR.top+="px"),"number"==typeof cR.left&&(cR.left+="px"),bZ.css(cR))}},fg.fn.extend({offset:function(g){if(arguments.length)return void 0===g?this:this.each(function(b){fg.offset.setOffset(this,g,b)});var b,f,a=this[0];return a?a.getClientRects().length?(b=a.getBoundingClientRect(),f=a.ownerDocument.defaultView,{top:b.top+f.pageYOffset,left:b.left+f.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var g,b,f,a=this[0],d={top:0,left:0};if("fixed"===fg.css(a,"position"))b=a.getBoundingClientRect();else{b=this.offset(),f=a.ownerDocument,g=a.offsetParent||f.documentElement;while(g&&(g===f.body||g===f.documentElement)&&"static"===fg.css(g,"position"))g=g.parentNode;g&&g!==a&&1===g.nodeType&&((d=fg(g).offset()).top+=fg.css(g,"borderTopWidth",!0),d.left+=fg.css(g,"borderLeftWidth",!0))}return{top:b.top-d.top-fg.css(a,"marginTop",!0),left:b.left-d.left-fg.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var g=this.offsetParent;while(g&&"static"===fg.css(g,"position"))g=g.offsetParent;return g||F})}}),fg.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(g,b){var f="pageYOffset"===b;fg.fn[g]=function(a){return q(this,function(g,a,d){var j;if(aK(g)?j=g:9===g.nodeType&&(j=g.defaultView),void 0===d)return j?j[b]:g[a];j?j.scrollTo(f?j.pageXOffset:d,f?d:j.pageYOffset):g[a]=d},g,a,arguments.length)}}),fg.each(["top","left"],function(g,b){fg.cssHooks[b]=gUg(aU.pixelPosition,function(g,f){if(f)return f=fVg(g,b),eig.test(f)?fg(g).position()[b]+"px":f})}),fg.each({Height:"height",Width:"width"},function(g,b){fg.each({padding:"inner"+g,content:b,"":"outer"+g},function(f,a){fg.fn[a]=function(d,j){var e=arguments.length&&(f||"boolean"!=typeof d),J=f||(!0===d||!0===j?"margin":"border");return q(this,function(b,f,d){var j;return aK(b)?0===a.indexOf("outer")?b["inner"+g]:b.document.documentElement["client"+g]:9===b.nodeType?(j=b.documentElement,Math.max(b.body["scroll"+g],j["scroll"+g],b.body["offset"+g],j["offset"+g],j["client"+g])):void 0===d?fg.css(b,f,J):fg.style(b,f,d,J)},b,e?d:void 0,e)}})}),fg.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(g,b){fg.fn[b]=function(g){return this.on(b,g)}}),fg.fn.extend({bind:function(g,b,f){return this.on(g,null,b,f)},unbind:function(g,b){return this.off(g,null,b)},delegate:function(g,b,f,a){return this.on(b,g,f,a)},undelegate:function(g,b,f){return 1===arguments.length?this.off(g,"**"):this.off(b,g||"**",f)},hover:function(g,b){return this.mouseenter(g).mouseleave(b||g)}}),fg.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(g,b){fg.fn[b]=function(g,f){return 0",{size:1}).attr("size")&&e.attrFn,c=e.attr,b=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},M=e.attrHooks.value&&e.attrHooks.value.set||function(){return g},cQ=/^(?:input|button)$/i,aM=/^[238]$/,f=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,T=/^(?:checked|selected)$/i;d(e,"attrFn",ab||{},"jQuery.attrFn is deprecated"),e.attr=function(Y,d,Ya,b){var M=d.toLowerCase(),fS=Y&&Y.nodeType;return b&&(c.length<4&&a("jQuery.fn.attr( props, pass ) is deprecated"),Y&&!aM.test(fS)&&(ab?d in ab:e.isFunction(e.fn[d])))?e(Y)[d](Ya):("type"===d&&Ya!==g&&cQ.test(Y.nodeName)&&Y.parentNode&&a("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[M]&&f.test(M)&&(e.attrHooks[M]={get:function(Y,a){var d,Ya=e.prop(Y,a);return Ya===!0||"boolean"!=typeof Ya&&(d=Y.getAttributeNode(a))&&d.nodeValue!==!1?a.toLowerCase():g},set:function(Y,g,a){var d;return g===!1?e.removeAttr(Y,a):(d=e.propFix[a]||a,d in Y&&(Y[d]=!0),Y.setAttribute(a,a.toLowerCase())),a}},T.test(M)&&a("jQuery.fn.attr('"+M+"') might use property instead of attribute")),c.call(e,Y,d,Ya))},e.attrHooks.value={get:function(e,Y){var g=(e.nodeName||"").toLowerCase();return"button"===g?b.apply(this,arguments):("input"!==g&&"option"!==g&&a("jQuery.fn.attr('value') no longer gets properties"),Y in e?e.value:null)},set:function(e,Y){var g=(e.nodeName||"").toLowerCase();return"button"===g?M.apply(this,arguments):("input"!==g&&"option"!==g&&a("jQuery.fn.attr('value', val) no longer sets properties"),void(e.value=Y))}};var fS,dh,eL=e.fn.init,cL=e.find,fj=e.parseJSON,gE=/^\s*)([^>]*)$/;e.fn.init=function(Y,d,Ya){var ab,c;return Y&&"string"==typeof Y&&!e.isPlainObject(d)&&(ab=aV.exec(e.trim(Y)))&&ab[0]&&(gE.test(Y)||a("$(html) HTML strings must start with '<' character"),ab[3]&&a("$(html) HTML text after last tag is ignored"),"#"===ab[0].charAt(0)&&(a("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),d&&d.context&&d.context.nodeType&&(d=d.context),e.parseHTML)?eL.call(this,e.parseHTML(ab[2],d&&d.ownerDocument||d||document,!0),d,Ya):(c=eL.apply(this,arguments),Y&&Y.selector!==g?(c.selector=Y.selector,c.context=Y.context):(c.selector="string"==typeof Y?Y:"",Y&&(c.context=Y.nodeType?Y:d||document)),c)},e.fn.init.prototype=e.fn,e.find=function(e){var Y=Array.prototype.slice.call(arguments);if("string"==typeof e&&aW.test(e))try{document.querySelector(e)}catch(g){e=e.replace(gG,function(e,Y,g,a){return"["+Y+g+'"'+a+'"]'});try{document.querySelector(e),a("Attribute selector with '#' must be quoted: "+Y[0]),Y[0]=e}catch(e){a("Attribute selector with '#' was not fixed: "+Y[0])}}return cL.apply(this,Y)};var eN;for(eN in cL)Object.prototype.hasOwnProperty.call(cL,eN)&&(e.find[eN]=cL[eN]);e.parseJSON=function(e){return e?fj.apply(this,arguments):(a("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var Y=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:Y[1]||"",version:Y[2]||"0"}},e.browser||(fS=e.uaMatch(navigator.userAgent),dh={},fS.browser&&(dh[fS.browser]=!0,dh.version=fS.version),dh.chrome?dh.webkit=!0:dh.webkit&&(dh.safari=!0),e.browser=dh),d(e,"browser",e.browser,"jQuery.browser is deprecated"),e.boxModel=e.support.boxModel="CSS1Compat"===document.compatMode,d(e,"boxModel",e.boxModel,"jQuery.boxModel is deprecated"),d(e.support,"boxModel",e.support.boxModel,"jQuery.support.boxModel is deprecated"),e.sub=function(){function Y(e,g){return new Y.fn.init(e,g)}e.extend(!0,Y,this),Y.superclass=this,Y.fn=Y.prototype=this(),Y.fn.constructor=Y,Y.sub=this.sub,Y.fn.init=function(a,d){var Ya=e.fn.init.call(this,a,d,g);return Ya instanceof Y?Ya:Y(Ya)},Y.fn.init.prototype=Y.fn;var g=Y(document);return a("jQuery.sub() is deprecated"),Y},e.fn.size=function(){return a("jQuery.fn.size() is deprecated; use the .length property"),this.length};var cLd=!1;e.swap&&e.each(["height","width","reliableMarginRight"],function(Y,g){var a=e.cssHooks[g]&&e.cssHooks[g].get;a&&(e.cssHooks[g].get=function(){var e;return cLd=!0,e=a.apply(this,arguments),cLd=!1,e})}),e.swap=function(e,Y,g,d){var Ya,ab,c={};cLd||a("jQuery.swap() is undocumented and deprecated");for(ab in Y)c[ab]=e.style[ab],e.style[ab]=Y[ab];Ya=g.apply(e,d||[]);for(ab in Y)e.style[ab]=c[ab];return Ya},e.ajaxSetup({converters:{"text json":e.parseJSON}});var L=e.fn.data;e.fn.data=function(Y){var d,Ya,ab=this[0];return!ab||"events"!==Y||1!==arguments.length||(d=e.data(ab,Y),Ya=e._data(ab,Y),d!==g&&d!==Ya||Ya===g)?L.apply(this,arguments):(a("Use of jQuery.fn.data('events') is deprecated"),Ya)};var ce=/\/(java|ecma)script/i;e.clean||(e.clean=function(Y,g,d,Ya){g=g||document,g=!g.nodeType&&g[0]||g,g=g.ownerDocument||g,a("jQuery.clean() is deprecated");var ab,c,b,M,cQ=[];if(e.merge(cQ,e.buildFragment(Y,g).childNodes),d)for(b=function(e){return!e.type||ce.test(e.type)?Ya?Ya.push(e.parentNode?e.parentNode.removeChild(e):e):d.appendChild(e):void 0},ab=0;null!=(c=cQ[ab]);ab++)e.nodeName(c,"script")&&b(c)||(d.appendChild(c),"undefined"!=typeof c.getElementsByTagName&&(M=e.grep(e.merge([],c.getElementsByTagName("script")),b),cQ.splice.apply(cQ,[ab+1,0].concat(M)),ab+=M.length));return cQ});var gM=e.event.add,gS=e.event.remove,cU=e.event.trigger,cP=e.fn.toggle,da=e.fn.live,cT=e.fn.die,gU=e.fn.load,h="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",i=new RegExp("\\b(?:"+h+")\\b"),j=/(?:^|\s)hover(\.\S+|)\b/,k=function(Y){return"string"!=typeof Y||e.event.special.hover?Y:(j.test(Y)&&a("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),Y&&Y.replace(j,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&d(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,Y,g,d,Ya){e!==document&&i.test(Y)&&a("AJAX events should be attached to document: "+Y),gM.call(this,e,k(Y||""),g,d,Ya)},e.event.remove=function(e,Y,g,a,d){gS.call(this,e,k(Y)||"",g,a,d)},e.each(["load","unload","error"],function(Y,g){e.fn[g]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===g&&"string"==typeof e[0]?gU.apply(this,e):(a("jQuery.fn."+g+"() is deprecated"),e.splice(0,0,g),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e.fn.toggle=function(Y,g){if(!e.isFunction(Y)||!e.isFunction(g))return cP.apply(this,arguments);a("jQuery.fn.toggle(handler, handler...) is deprecated");var d=arguments,Ya=Y.guid||e.guid++,ab=0,c=function(g){var a=(e._data(this,"lastToggle"+Y.guid)||0)%ab;return e._data(this,"lastToggle"+Y.guid,a+1),g.preventDefault(),d[a].apply(this,arguments)||!1};for(c.guid=Ya;ab dwh) ? dwh - scrollTop : 0; for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i], elementTop = s.stickyWrapper.offset().top, etse = elementTop - s.topSpacing - extra; //update height in case of dynamic content s.stickyWrapper.css('height', s.stickyElement.outerHeight()); if (scrollTop <= etse) { if (s.currentTop !== null) { s.stickyElement .css({ 'width': '', 'position': '', 'top': '', 'z-index': '' }); s.stickyElement.parent().removeClass(s.className); s.stickyElement.trigger('sticky-end', [s]); s.currentTop = null; } } else { var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; if (newTop < 0) { newTop = newTop + s.topSpacing; } else { newTop = s.topSpacing; } if (s.currentTop !== newTop) { var newWidth; if (s.getWidthFrom) { newWidth = $(s.getWidthFrom).width() || null; } else if (s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth == null) { newWidth = s.stickyElement.width(); } s.stickyElement .css('width', newWidth) .css('position', 'fixed') .css('top', newTop) .css('z-index', s.zIndex); s.stickyElement.parent().addClass(s.className); if (s.currentTop === null) { s.stickyElement.trigger('sticky-start', [s]); } else { // sticky is started but it have to be repositioned s.stickyElement.trigger('sticky-update', [s]); } if (s.currentTop === s.topSpacing && s.currentTop > newTop || s.currentTop === null && newTop < s.topSpacing) { // just reached bottom || just started to stick but bottom is already reached s.stickyElement.trigger('sticky-bottom-reached', [s]); } else if(s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { // sticky is started && sticked at topSpacing && overflowing from top just finished s.stickyElement.trigger('sticky-bottom-unreached', [s]); } s.currentTop = newTop; } // Check if sticky has reached end of container and stop sticking var stickyWrapperContainer = s.stickyWrapper.parent(); var unstick = (s.stickyElement.offset().top + s.stickyElement.outerHeight() >= stickyWrapperContainer.offset().top + stickyWrapperContainer.outerHeight()) && (s.stickyElement.offset().top <= s.topSpacing); if( unstick ) { s.stickyElement .css('position', 'absolute') .css('top', '') .css('bottom', 0) .css('z-index', ''); } else { s.stickyElement .css('position', 'fixed') .css('top', newTop) .css('bottom', '') .css('z-index', s.zIndex); } } } }, resizer = function() { windowHeight = $window.height(); for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i]; var newWidth = null; if (s.getWidthFrom) { if (s.responsiveWidth) { newWidth = $(s.getWidthFrom).width(); } } else if(s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth != null) { s.stickyElement.css('width', newWidth); } } }, methods = { init: function(options) { return this.each(function() { var o = $.extend({}, defaults, options); var stickyElement = $(this); var stickyId = stickyElement.attr('id'); var wrapperId = stickyId ? stickyId + '-' + defaults.wrapperClassName : defaults.wrapperClassName; var wrapper = $('
') .attr('id', wrapperId) .addClass(o.wrapperClassName); stickyElement.wrapAll(function() { if ($(this).parent("#" + wrapperId).length == 0) { return wrapper; } }); var stickyWrapper = stickyElement.parent(); if (o.center) { stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); } if (stickyElement.css("float") === "right") { stickyElement.css({"float":"none"}).parent().css({"float":"right"}); } o.stickyElement = stickyElement; o.stickyWrapper = stickyWrapper; o.currentTop = null; sticked.push(o); methods.setWrapperHeight(this); methods.setupChangeListeners(this); }); }, setWrapperHeight: function(stickyElement) { var element = $(stickyElement); var stickyWrapper = element.parent(); if (stickyWrapper) { stickyWrapper.css('height', element.outerHeight()); } }, setupChangeListeners: function(stickyElement) { if (window.MutationObserver) { var mutationObserver = new window.MutationObserver(function(mutations) { if (mutations[0].addedNodes.length || mutations[0].removedNodes.length) { methods.setWrapperHeight(stickyElement); } }); mutationObserver.observe(stickyElement, {subtree: true, childList: true}); } else { if (window.addEventListener) { stickyElement.addEventListener('DOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }, false); stickyElement.addEventListener('DOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }, false); } else if (window.attachEvent) { stickyElement.attachEvent('onDOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }); stickyElement.attachEvent('onDOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }); } } }, update: scroller, unstick: function(options) { return this.each(function() { var that = this; var unstickyElement = $(that); var removeIdx = -1; var i = sticked.length; while (i-- > 0) { if (sticked[i].stickyElement.get(0) === that) { splice.call(sticked,i,1); removeIdx = i; } } if(removeIdx !== -1) { unstickyElement.unwrap(); unstickyElement .css({ 'width': '', 'position': '', 'top': '', 'float': '', 'z-index': '' }) ; } }); } }; // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): if (window.addEventListener) { window.addEventListener('scroll', scroller, false); window.addEventListener('resize', resizer, false); } else if (window.attachEvent) { window.attachEvent('onscroll', scroller); window.attachEvent('onresize', resizer); } $.fn.sticky = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.init.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $.fn.unstick = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.unstick.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $(function() { setTimeout(scroller, 0); }); }));