window.Modernizr=function(t,e,n){function i(t){d.cssText=t}function s(t,e){return typeof t===e}var o,r,a={},l=e.documentElement,c="modernizr",u=e.createElement(c),d=u.style,p={}.toString,f=" -webkit- -moz- -o- -ms- ".split(" "),h="http://www.w3.org/2000/svg",g={},m=[],v=m.slice,y=function(t,n,i,s){var o,r,a,u,d=e.createElement("div"),p=e.body,f=p||e.createElement("body");if(parseInt(i,10))for(;i--;)(a=e.createElement("div")).id=s?s[i]:c+(i+1),d.appendChild(a);return o=["­",'"].join(""),d.id=c,(p?d:f).innerHTML+=o,f.appendChild(d),p||(f.style.background="",f.style.overflow="hidden",u=l.style.overflow,l.style.overflow="hidden",l.appendChild(f)),r=n(d,t),p?d.parentNode.removeChild(d):(f.parentNode.removeChild(f),l.style.overflow=u),!!r},b={}.hasOwnProperty;for(var x in r=s(b,"undefined")||s(b.call,"undefined")?function(t,e){return e in t&&s(t.constructor.prototype[e],"undefined")}:function(t,e){return b.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var n=v.call(arguments,1),i=function(){if(this instanceof i){var s=function(){};s.prototype=e.prototype;var o=new s,r=e.apply(o,n.concat(v.call(arguments)));return Object(r)===r?r:o}return e.apply(t,n.concat(v.call(arguments)))};return i}),g.touch=function(){var n;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?n=!0:y(["@media (",f.join("touch-enabled),("),c,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){n=9===t.offsetTop}),n},g.localstorage=function(){try{return localStorage.setItem(c,c),localStorage.removeItem(c),!0}catch(t){return!1}},g.svg=function(){return!!e.createElementNS&&!!e.createElementNS(h,"svg").createSVGRect},g.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==h},g.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(p.call(e.createElementNS(h,"clipPath")))},g)r(g,x)&&(o=x.toLowerCase(),a[o]=g[x](),m.push((a[o]?"":"no-")+o));return a.addTest=function(t,e){if("object"==typeof t)for(var i in t)r(t,i)&&a.addTest(i,t[i]);else{if(t=t.toLowerCase(),a[t]!==n)return a;e="function"==typeof e?e():e,l.className+=" "+(e?"":"no-")+t,a[t]=e}return a},i(""),u=null,function(t,e){function n(){var t=h.elements;return"string"==typeof t?t.split(" "):t}function i(t){var e=f[t[d]];return e||(e={},p++,t[d]=p,f[p]=e),e}function s(t,n,s){return n||(n=e),a?n.createElement(t):(s||(s=i(n)),(o=s.cache[t]?s.cache[t].cloneNode():u.test(t)?(s.cache[t]=s.createElem(t)).cloneNode():s.createElem(t)).canHaveChildren&&!c.test(t)?s.frag.appendChild(o):o);var o}function o(t){t||(t=e);var o=i(t);return h.shivCSS&&!r&&!o.hasCSS&&(o.hasCSS=!!function(t,e){var n=t.createElement("p"),i=t.getElementsByTagName("head")[0]||t.documentElement;return n.innerHTML="x",i.insertBefore(n.lastChild,i.firstChild)}(t,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),a||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(n){return h.shivMethods?s(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/\w+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(h,e.frag)}(t,o),t}var r,a,l=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,d="_html5shiv",p=0,f={};!function(){try{var t=e.createElement("a");t.innerHTML="",r="hidden"in t,a=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){r=!0,a=!0}}();var h={elements:l.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==l.shivCSS,supportsUnknownElements:a,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:o,createElement:s,createDocumentFragment:function(t,s){if(t||(t=e),a)return t.createDocumentFragment();for(var o=(s=s||i(t)).frag.cloneNode(),r=0,l=n(),c=l.length;r)[^>]*|#([\w-]*))$/,T=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,N=/(?:^|:|,)(?:\s*\[)+/g,j=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,E=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,S=/^-ms-/,$=/-([\da-z])/gi,A=function(t,e){return e.toUpperCase()},D=function(t){(r.addEventListener||"load"===t.type||"complete"===r.readyState)&&(L(),b.ready())},L=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",D,!1),t.removeEventListener("load",D,!1)):(r.detachEvent("onreadystatechange",D),t.detachEvent("onload",D))};function H(t){var e=t.length,n=b.type(t);return!b.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)))}b.fn=b.prototype={jquery:"1.10.1",constructor:b,init:function(t,n,i){var s,o;if(!t)return this;if("string"==typeof t){if(!(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:C.exec(t))||!s[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(s[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(s[1],n&&n.nodeType?n.ownerDocument||n:r,!0)),T.test(s[1])&&b.isPlainObject(n))for(s in n)b.isFunction(this[s])?this[s](n[s]):this.attr(s,n[s]);return this}if((o=r.getElementById(s[2]))&&o.parentNode){if(o.id!==s[2])return i.find(t);this.length=1,this[0]=o}return this.context=r,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):b.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),b.makeArray(t,this))},selector:"",length:0,toArray:function(){return h.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t){var e=b.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return b.each(this,t,e)},ready:function(t){return b.ready.promise().done(t),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n0||(n.resolveWith(r,[b]),b.fn.trigger&&b(r).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===b.type(t)},isArray:Array.isArray||function(t){return"array"===b.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?u[m.call(t)]||"object":typeof t},isPlainObject:function(t){var n;if(!t||"object"!==b.type(t)||t.nodeType||b.isWindow(t))return!1;try{if(t.constructor&&!v.call(t,"constructor")&&!v.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(b.support.ownLast)for(n in t)return v.call(t,n);for(n in t);return n===e||v.call(t,n)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||r;var i=T.exec(t),s=!n&&[];return i?[e.createElement(i[1])]:(i=b.buildFragment([t],e,s),s&&b(s).remove(),b.merge([],i.childNodes))},parseJSON:function(e){return t.JSON&&t.JSON.parse?t.JSON.parse(e):null===e?e:"string"==typeof e&&(e=b.trim(e))&&k.test(e.replace(j,"@").replace(E,"]").replace(N,""))?new Function("return "+e)():void b.error("Invalid JSON: "+e)},parseXML:function(n){var i;if(!n||"string"!=typeof n)return null;try{t.DOMParser?i=(new DOMParser).parseFromString(n,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(n))}catch(t){i=e}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&b.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(S,"ms-").replace($,A)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i=0,s=t.length,o=H(t);if(n){if(o)for(;i+~]|"+z+")"+z+"*"),U=new RegExp(z+"*[+~]"),J=new RegExp("="+z+"*([^\\]'\"]*)"+z+"*\\]","g"),V=new RegExp(B),Y=new RegExp("^"+P+"$"),Q={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},G=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),it=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{H.apply(A=F.call(_.childNodes),_.childNodes),A[_.childNodes.length].nodeType}catch(t){H={apply:A.length?function(t,e){L.apply(t,F.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,n,s){var r,a,c,u,f,m,v,b,w,C;if((e?e.ownerDocument||e:_)!==p&&d(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(u=(e=e||p).nodeType)&&9!==u)return[];if(h&&!s){if(r=K.exec(t))if(c=r[1]){if(9===u){if(!(a=e.getElementById(c))||!a.parentNode)return n;if(a.id===c)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&y(e,a)&&a.id===c)return n.push(a),n}else{if(r[2])return H.apply(n,e.getElementsByTagName(t)),n;if((c=r[3])&&i.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(c)),n}if(i.qsa&&(!g||!g.test(t))){if(b=v=x,w=e,C=9===u&&t,1===u&&"object"!==e.nodeName.toLowerCase()){for(m=vt(t),(v=e.getAttribute("id"))?b=v.replace(et,"\\$&"):e.setAttribute("id",b),b="[id='"+b+"'] ",f=m.length;f--;)m[f]=b+yt(m[f]);w=U.test(t)&&e.parentNode||e,C=m.join(",")}if(C)try{return H.apply(n,w.querySelectorAll(C)),n}catch(t){}finally{v||e.removeAttribute("id")}}}return function(t,e,n,s){var r,a,c,u,d,p=vt(t);if(!s&&1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(c=a[0]).type&&i.getById&&9===e.nodeType&&h&&o.relative[a[1].type]){if(!(e=(o.find.ID(c.matches[0].replace(nt,it),e)||[])[0]))return n;t=t.slice(a.shift().value.length)}for(r=Q.needsContext.test(t)?0:a.length;r--&&(c=a[r],!o.relative[u=c.type]);)if((d=o.find[u])&&(s=d(c.matches[0].replace(nt,it),U.test(a[0].type)&&e.parentNode||e))){if(a.splice(r,1),!(t=s.length&&yt(a)))return H.apply(n,s),n;break}}return l(t,p)(s,e,!h,n,U.test(t)),n}(t.replace(I,"$1"),e,n,s)}function ot(t){return G.test(t+"")}function rt(){var t=[];return function e(n,i){return t.push(n+=" ")>o.cacheLength&&delete e[t.shift()],e[n]=i}}function at(t){return t[x]=!0,t}function lt(t){var e=p.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e,n){for(var i,s=(t=t.split("|")).length,r=n?null:e;s--;)(i=o.attrHandle[t[s]])&&i!==e||(o.attrHandle[t[s]]=r)}function ut(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:!0===t[e]?e.toLowerCase():null}function dt(t,e){return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}function pt(t){if("input"===t.nodeName.toLowerCase())return t.defaultValue}function ft(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||S)-(~t.sourceIndex||S);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function gt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return at(function(e){return e=+e,at(function(n,i){for(var s,o=t([],n.length,e),r=o.length;r--;)n[s=o[r]]&&(n[s]=!(i[s]=n[s]))})})}for(n in a=st.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},i=st.support={},d=st.setDocument=function(t){var e=t?t.ownerDocument||t:_,n=e.parentWindow;return e!==p&&9===e.nodeType&&e.documentElement?(p=e,f=e.documentElement,h=!a(e),n&&n.frameElement&&n.attachEvent("onbeforeunload",function(){d()}),i.attributes=lt(function(t){return t.innerHTML="",ct("type|href|height|width",dt,"#"===t.firstChild.getAttribute("href")),ct(O,ut,null==t.getAttribute("disabled")),t.className="i",!t.getAttribute("className")}),i.input=lt(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}),ct("value",pt,i.attributes&&i.input),i.getElementsByTagName=lt(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=lt(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),i.getById=lt(function(t){return f.appendChild(t).id=x,!e.getElementsByName||!e.getElementsByName(x).length}),i.getById?(o.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(t){var e=t.replace(nt,it);return function(t){return t.getAttribute("id")===e}}):(delete o.find.ID,o.filter.ID=function(t){var e=t.replace(nt,it);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),o.find.TAG=i.getElementsByTagName?function(t,e){if(void 0!==e.getElementsByTagName)return e.getElementsByTagName(t)}:function(t,e){var n,i=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[s++];)1===n.nodeType&&i.push(n);return i}return o},o.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},m=[],g=[],(i.qsa=ot(e.querySelectorAll))&&(lt(function(t){t.innerHTML="",t.querySelectorAll("[selected]").length||g.push("\\["+z+"*(?:value|"+O+")"),t.querySelectorAll(":checked").length||g.push(":checked")}),lt(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&g.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=ot(v=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&<(function(t){i.disconnectedMatch=v.call(t,"div"),v.call(t,"[s!='']:x"),m.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),y=ot(f.contains)||f.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},i.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(e.createElement("div"))}),E=f.compareDocumentPosition?function(t,n){if(t===n)return j=!0,0;var s=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return s?1&s||!i.sortDetached&&n.compareDocumentPosition(t)===s?t===e||y(_,t)?-1:n===e||y(_,n)?1:u?M.call(u,t)-M.call(u,n):0:4&s?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,s=0,o=t.parentNode,r=n.parentNode,a=[t],l=[n];if(t===n)return j=!0,0;if(!o||!r)return t===e?-1:n===e?1:o?-1:r?1:u?M.call(u,t)-M.call(u,n):0;if(o===r)return ft(t,n);for(i=t;i=i.parentNode;)a.unshift(i);for(i=n;i=i.parentNode;)l.unshift(i);for(;a[s]===l[s];)s++;return s?ft(a[s],l[s]):a[s]===_?-1:l[s]===_?1:0},e):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(J,"='$1']"),i.matchesSelector&&h&&(!m||!m.test(e))&&(!g||!g.test(e)))try{var n=v.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var n=o.attrHandle[e.toLowerCase()],s=n&&$.call(o.attrHandle,e.toLowerCase())?n(t,e,!h):void 0;return void 0===s?i.attributes||!h?t.getAttribute(e):(s=t.getAttributeNode(e))&&s.specified?s.value:null:s},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],s=0,o=0;if(j=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(E),j){for(;e=t[o++];)e===t[o]&&(s=n.push(o));for(;s--;)t.splice(n[s],1)}return t},r=st.getText=function(t){var e,n="",i=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[i];i++)n+=r(e);return n},o=st.selectors={cacheLength:50,createPseudo:at,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,it),t[3]=(t[4]||t[5]||"").replace(nt,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]&&void 0!==t[4]?t[2]=t[4]:n&&V.test(n)&&(e=vt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&T(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var s=st.attr(i,t);return null==s?"!="===e:!e||(s+="","="===e?s===n:"!="===e?s!==n:"^="===e?n&&0===s.indexOf(n):"*="===e?n&&s.indexOf(n)>-1:"$="===e?n&&s.slice(-n.length)===n:"~="===e?(" "+s+" ").indexOf(n)>-1:"|="===e&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===s?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,p,f,h,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=g="only"===t&&!h&&"nextSibling"}return!0}if(h=[r?m.firstChild:m.lastChild],r&&y){for(f=(c=(u=m[x]||(m[x]={}))[t]||[])[0]===w&&c[1],p=c[0]===w&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===e){u[t]=[w,f,p];break}}else if(y&&(c=(e[x]||(e[x]={}))[t])&&c[0]===w)p=c[1];else for(;(d=++f&&d&&d[g]||(p=f=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[x]||(d[x]={}))[t]=[w,p]),d!==e)););return(p-=s)===i||p%i==0&&p/i>=0}}},PSEUDO:function(t,e){var n,i=o.pseudos[t]||o.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[x]?i(e):i.length>1?(n=[t,t,"",e],o.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,n){for(var s,o=i(t,e),r=o.length;r--;)t[s=M.call(t,o[r])]=!(n[s]=o[r])}):function(t){return i(t,0,n)}):i}},pseudos:{not:at(function(t){var e=[],n=[],i=l(t.replace(I,"$1"));return i[x]?at(function(t,e,n,s){for(var o,r=i(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,s,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:at(function(t){return function(e){return st(t,e).length>0}}),contains:at(function(t){return function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:at(function(t){return Y.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(nt,it).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!o.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,n){return[n<0?n+e:n]}),even:mt(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:mt(function(t,e,n){for(var i=n<0?n+e:n;++i1?function(e,n,i){for(var s=t.length;s--;)if(!t[s](e,n,i))return!1;return!0}:t[0]}function _t(t,e,n,i,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a-1&&(o[c]=!(r[c]=d))}}else v=_t(v===r?v.splice(h,v.length):v),s?s(null,r,v,l):H.apply(r,v)})}function Ct(t){for(var e,n,i,s=t.length,r=o.relative[t[0].type],a=r||o.relative[" "],l=r?1:0,u=bt(function(t){return t===e},a,!0),d=bt(function(t){return M.call(e,t)>-1},a,!0),p=[function(t,n,i){return!r&&(i||n!==c)||((e=n).nodeType?u(t,n,i):d(t,n,i))}];l1&&xt(p),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(I,"$1"),n,l0,r=t.length>0,a=function(a,l,u,d,f){var h,g,m,v=[],y=0,b="0",x=a&&[],_=null!=f,C=c,T=a||r&&o.find.TAG("*",f&&l.parentNode||l),k=w+=null==C?1:Math.random()||.1;for(_&&(c=l!==p&&l,s=n);null!=(h=T[b]);b++){if(r&&h){for(g=0;m=t[g++];)if(m(h,l,u)){d.push(h);break}_&&(w=k,s=++n)}i&&((h=!m&&h)&&y--,a&&x.push(h))}if(y+=b,i&&b!==y){for(g=0;m=e[g++];)m(x,v,l,u);if(a){if(y>0)for(;b--;)x[b]||v[b]||(v[b]=D.call(d));v=_t(v)}H.apply(d,v),_&&!a&&v.length>0&&y+e.length>1&&st.uniqueSort(d)}return _&&(w=k,c=C),x};return i?at(a):a}(r,i))}return a},o.pseudos.nth=o.pseudos.eq,Tt.prototype=o.filters=o.pseudos,o.setFilters=new Tt,i.sortStable=x.split("").sort(E).join("")===x,d(),[0,0].sort(E),i.detectDuplicates=j,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(t);var F={};b.Callbacks=function(t){t="string"==typeof t?F[t]||function(t){var e=F[t]={};return b.each(t.match(_)||[],function(t,n){e[n]=!0}),e}(t):b.extend({},t);var n,i,s,o,r,a,l=[],c=!t.once&&[],u=function(e){for(i=t.memory&&e,s=!0,r=a||0,a=0,o=l.length,n=!0;l&&r-1;)l.splice(i,1),n&&(i<=o&&o--,i<=r&&r--)}),this},has:function(t){return t?b.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=c=i=e,this},disabled:function(){return!l},lock:function(){return c=e,i||d.disable(),this},locked:function(){return!c},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!l||s&&!c||(n?c.push(e):u(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},b.extend({Deferred:function(t){var e=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return b.Deferred(function(n){b.each(e,function(e,o){var r=o[0],a=b.isFunction(t[e])&&t[e];s[o[1]](function(){var t=a&&a.apply(this,arguments);t&&b.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?b.extend(t,i):i}},s={};return i.pipe=i.then,b.each(e,function(t,o){var r=o[2],a=o[3];i[o[1]]=r.add,a&&r.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?i:this,arguments),this},s[o[0]+"With"]=r.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e,n,i,s=0,o=h.call(arguments),r=o.length,a=1!==r||t&&b.isFunction(t.promise)?r:0,l=1===a?t:b.Deferred(),c=function(t,n,i){return function(s){n[t]=this,i[t]=arguments.length>1?h.call(arguments):s,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(r>1)for(e=new Array(r),n=new Array(r),i=new Array(r);s
a",n=f.getElementsByTagName("*")||[],!(i=f.getElementsByTagName("a")[0])||!i.style||!n.length)return e;c=(a=r.createElement("select")).appendChild(r.createElement("option")),o=f.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute="t"!==f.className,e.leadingWhitespace=3===f.firstChild.nodeType,e.tbody=!f.getElementsByTagName("tbody").length,e.htmlSerialize=!!f.getElementsByTagName("link").length,e.style=/top/.test(i.getAttribute("style")),e.hrefNormalized="/a"===i.getAttribute("href"),e.opacity=/^0.5/.test(i.style.opacity),e.cssFloat=!!i.style.cssFloat,e.checkOn=!!o.value,e.optSelected=c.selected,e.enctype=!!r.createElement("form").enctype,e.html5Clone="<:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML,e.inlineBlockNeedsLayout=!1,e.shrinkWrapBlocks=!1,e.pixelPosition=!1,e.deleteExpando=!0,e.noCloneEvent=!0,e.reliableMarginRight=!0,e.boxSizingReliable=!0,o.checked=!0,e.noCloneChecked=o.cloneNode(!0).checked,a.disabled=!0,e.optDisabled=!c.disabled;try{delete f.test}catch(t){e.deleteExpando=!1}for(p in(o=r.createElement("input")).setAttribute("value",""),e.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),e.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),(l=r.createDocumentFragment()).appendChild(o),e.appendChecked=o.checked,e.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,f.attachEvent&&(f.attachEvent("onclick",function(){e.noCloneEvent=!1}),f.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})f.setAttribute(u="on"+p,"t"),e[p+"Bubbles"]=u in t||!1===f.attributes[u].expando;for(p in f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===f.style.backgroundClip,b(e))break;return e.ownLast="0"!==p,b(function(){var n,i,o,a="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=r.getElementsByTagName("body")[0];l&&((n=r.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(f),f.innerHTML="
t
",(o=f.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",e.reliableHiddenOffsets=d&&0===o[0].offsetHeight,f.innerHTML="",f.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===f.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(f,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(f,null)||{width:"4px"}).width,(i=f.appendChild(r.createElement("div"))).style.cssText=f.style.cssText=a,i.style.marginRight=i.style.width="0",f.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),typeof f.style.zoom!==s&&(f.innerHTML="",f.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.innerHTML="
",f.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==f.offsetWidth,e.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=f=o=i=null)}),n=a=l=c=i=o=null,e}({});var M=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function z(t,n,i,s){if(b.acceptData(t)){var o,r,a=b.expando,l=t.nodeType,c=l?b.cache:t,u=l?t[a]:t[a]&&a;if(u&&c[u]&&(s||c[u].data)||i!==e||"string"!=typeof n)return u||(u=l?t[a]=d.pop()||b.guid++:a),c[u]||(c[u]=l?{}:{toJSON:b.noop}),"object"!=typeof n&&"function"!=typeof n||(s?c[u]=b.extend(c[u],n):c[u].data=b.extend(c[u].data,n)),r=c[u],s||(r.data||(r.data={}),r=r.data),i!==e&&(r[b.camelCase(n)]=i),"string"==typeof n?null==(o=r[n])&&(o=r[b.camelCase(n)]):o=r,o}}function q(t,e,n){if(b.acceptData(t)){var i,s,o=t.nodeType,r=o?b.cache:t,a=o?t[b.expando]:b.expando;if(r[a]){if(e&&(i=n?r[a]:r[a].data)){s=(e=b.isArray(e)?e.concat(b.map(e,b.camelCase)):e in i?[e]:(e=b.camelCase(e))in i?[e]:e.split(" ")).length;for(;s--;)delete i[e[s]];if(n?!W(i):!b.isEmptyObject(i))return}(n||(delete r[a].data,W(r[a])))&&(o?b.cleanData([t],!0):b.support.deleteExpando||r!=r.window?delete r[a]:r[a]=null)}}}function P(t,n,i){if(i===e&&1===t.nodeType){var s="data-"+n.replace(O,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(s))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:M.test(i)?b.parseJSON(i):i)}catch(t){}b.data(t,n,i)}else i=e}return i}function W(t){var e;for(e in t)if(("data"!==e||!b.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}b.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?b.cache[t[b.expando]]:t[b.expando])&&!W(t)},data:function(t,e,n){return z(t,e,n)},removeData:function(t,e){return q(t,e)},_data:function(t,e,n){return z(t,e,n,!0)},_removeData:function(t,e){return q(t,e,!0)},acceptData:function(t){if(t.nodeType&&1!==t.nodeType&&9!==t.nodeType)return!1;var e=t.nodeName&&b.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),b.fn.extend({data:function(t,n){var i,s,o=null,r=0,a=this[0];if(t===e){if(this.length&&(o=b.data(a),1===a.nodeType&&!b._data(a,"parsedAttrs"))){for(i=a.attributes;r1?this.each(function(){b.data(this,t,n)}):a?P(a,t,b.data(a,t)):null},removeData:function(t){return this.each(function(){b.removeData(this,t)})}}),b.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=b._data(t,e),n&&(!i||b.isArray(n)?i=b._data(t,e,b.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=b.queue(t,e),i=n.length,s=n.shift(),o=b._queueHooks(t,e);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===e&&n.unshift("inprogress"),delete o.stop,s.call(t,function(){b.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return b._data(t,n)||b._data(t,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(t,e+"queue"),b._removeData(t,n)})})}}),b.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length1)},removeAttr:function(t){return this.each(function(){b.removeAttr(this,t)})},prop:function(t,e){return b.access(this,b.prop,t,e,arguments.length>1)},removeProp:function(t){return t=b.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(t){}})},addClass:function(t){var e,n,i,s,o,r=0,a=this.length,l="string"==typeof t&&t;if(b.isFunction(t))return this.each(function(e){b(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(_)||[];r=0;)i=i.replace(" "+s+" "," ");n.className=t?b.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t,i="boolean"==typeof e;return b.isFunction(t)?this.each(function(n){b(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var o,r=0,a=b(this),l=e,c=t.match(_)||[];o=c[r++];)l=i?l:!a.hasClass(o),a[l?"addClass":"removeClass"](o);else n!==s&&"boolean"!==n||(this.className&&b._data(this,"__className__",this.className),this.className=this.className||!1===t?"":b._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n=0)return!0;return!1},val:function(t){var n,i,s,o=this[0];return arguments.length?(s=b.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=s?t.call(this,n,b(this).val()):t)?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(t){return null==t?"":t+""})),(i=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,o,"value")!==e||(this.value=o))})):o?(i=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()])&&"get"in i&&(n=i.get(o,"value"))!==e?n:"string"==typeof(n=o.value)?n.replace(X,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(t){var e=b.find.attr(t,"value");return null!=e?e:t.text}},select:{get:function(t){for(var e,n,i=t.options,s=t.selectedIndex,o="select-one"===t.type||s<0,r=o?null:[],a=o?s+1:i.length,l=s<0?a:o?s:0;l=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,i){var o,r,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===s?b.prop(t,n,i):(1===a&&b.isXMLDoc(t)||(n=n.toLowerCase(),o=b.attrHooks[n]||(b.expr.match.bool.test(n)?I:B)),i===e?o&&"get"in o&&null!==(r=o.get(t,n))?r:null==(r=b.find.attr(t,n))?e:r:null!==i?o&&"set"in o&&(r=o.set(t,i,n))!==e?r:(t.setAttribute(n,i+""),i):void b.removeAttr(t,n))},removeAttr:function(t,e){var n,i,s=0,o=e&&e.match(_);if(o&&1===t.nodeType)for(;n=o[s++];)i=b.propFix[n]||n,b.expr.match.bool.test(n)?Q&&Y||!V.test(n)?t[i]=!1:t[b.camelCase("default-"+n)]=t[i]=!1:b.attr(t,n,""),t.removeAttribute(Y?n:i)},attrHooks:{type:{set:function(t,e){if(!b.support.radioValue&&"radio"===e&&b.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{for:"htmlFor",class:"className"},prop:function(t,n,i){var s,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return(1!==r||!b.isXMLDoc(t))&&(n=b.propFix[n]||n,o=b.propHooks[n]),i!==e?o&&"set"in o&&(s=o.set(t,i,n))!==e?s:t[n]=i:o&&"get"in o&&null!==(s=o.get(t,n))?s:t[n]},propHooks:{tabIndex:{get:function(t){var e=b.find.attr(t,"tabindex");return e?parseInt(e,10):U.test(t.nodeName)||J.test(t.nodeName)&&t.href?0:-1}}}}),I={set:function(t,e,n){return!1===e?b.removeAttr(t,n):Q&&Y||!V.test(n)?t.setAttribute(!Y&&b.propFix[n]||n,n):t[b.camelCase("default-"+n)]=t[n]=!0,n}},b.each(b.expr.match.bool.source.match(/\w+/g),function(t,n){var i=b.expr.attrHandle[n]||b.find.attr;b.expr.attrHandle[n]=Q&&Y||!V.test(n)?function(t,n,s){var o=b.expr.attrHandle[n],r=s?e:(b.expr.attrHandle[n]=e)!=i(t,n,s)?n.toLowerCase():null;return b.expr.attrHandle[n]=o,r}:function(t,n,i){return i?e:t[b.camelCase("default-"+n)]?n.toLowerCase():null}}),Q&&Y||(b.attrHooks.value={set:function(t,e,n){if(!b.nodeName(t,"input"))return B&&B.set(t,e,n);t.defaultValue=e}}),Y||(B={set:function(t,n,i){var s=t.getAttributeNode(i);return s||t.setAttributeNode(s=t.ownerDocument.createAttribute(i)),s.value=n+="","value"===i||n===t.getAttribute(i)?n:e}},b.expr.attrHandle.id=b.expr.attrHandle.name=b.expr.attrHandle.coords=function(t,n,i){var s;return i?e:(s=t.getAttributeNode(n))&&""!==s.value?s.value:null},b.valHooks.button={get:function(t,n){var i=t.getAttributeNode(n);return i&&i.specified?i.value:e},set:B.set},b.attrHooks.contenteditable={set:function(t,e,n){B.set(t,""!==e&&e,n)}},b.each(["width","height"],function(t,e){b.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),b.support.hrefNormalized||b.each(["href","src"],function(t,e){b.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),b.support.style||(b.attrHooks.style={get:function(t){return t.style.cssText||e},set:function(t,e){return t.style.cssText=e+""}}),b.support.optSelected||(b.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.support.enctype||(b.propFix.enctype="encoding"),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(t,e){if(b.isArray(e))return t.checked=b.inArray(b(t).val(),e)>=0}},b.support.checkOn||(b.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var G=/^(?:input|select|textarea)$/i,K=/^key/,Z=/^(?:mouse|contextmenu)|click/,tt=/^(?:focusinfocus|focusoutblur)$/,et=/^([^.]*)(?:\.(.+)|)$/;function nt(){return!0}function it(){return!1}function st(){try{return r.activeElement}catch(t){}}b.event={global:{},add:function(t,n,i,o,r){var a,l,c,u,d,p,f,h,g,m,v,y=b._data(t);if(y){for(i.handler&&(i=(u=i).handler,r=u.selector),i.guid||(i.guid=b.guid++),(l=y.events)||(l=y.events={}),(p=y.handle)||((p=y.handle=function(t){return typeof b===s||t&&b.event.triggered===t.type?e:b.event.dispatch.apply(p.elem,arguments)}).elem=t),c=(n=(n||"").match(_)||[""]).length;c--;)g=v=(a=et.exec(n[c])||[])[1],m=(a[2]||"").split(".").sort(),g&&(d=b.event.special[g]||{},g=(r?d.delegateType:d.bindType)||g,d=b.event.special[g]||{},f=b.extend({type:g,origType:v,data:o,handler:i,guid:i.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:m.join(".")},u),(h=l[g])||((h=l[g]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,o,m,p)||(t.addEventListener?t.addEventListener(g,p,!1):t.attachEvent&&t.attachEvent("on"+g,p))),d.add&&(d.add.call(t,f),f.handler.guid||(f.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,f):h.push(f),b.event.global[g]=!0);t=null}},remove:function(t,e,n,i,s){var o,r,a,l,c,u,d,p,f,h,g,m=b.hasData(t)&&b._data(t);if(m&&(u=m.events)){for(c=(e=(e||"").match(_)||[""]).length;c--;)if(f=g=(a=et.exec(e[c])||[])[1],h=(a[2]||"").split(".").sort(),f){for(d=b.event.special[f]||{},p=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)r=p[o],!s&&g!==r.origType||n&&n.guid!==r.guid||a&&!a.test(r.namespace)||i&&i!==r.selector&&("**"!==i||!r.selector)||(p.splice(o,1),r.selector&&p.delegateCount--,d.remove&&d.remove.call(t,r));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,m.handle)||b.removeEvent(t,f,m.handle),delete u[f])}else for(f in u)b.event.remove(t,f+e[c],n,i,!0);b.isEmptyObject(u)&&(delete m.handle,b._removeData(t,"events"))}},trigger:function(n,i,s,o){var a,l,c,u,d,p,f,h=[s||r],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(c=p=s=s||r,3!==s.nodeType&&8!==s.nodeType&&!tt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,(n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n)).isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=s),i=null==i?[n]:b.makeArray(i,[n]),d=b.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(s,i))){if(!o&&!d.noBubble&&!b.isWindow(s)){for(u=d.delegateType||g,tt.test(u+g)||(c=c.parentNode);c;c=c.parentNode)h.push(c),p=c;p===(s.ownerDocument||r)&&h.push(p.defaultView||p.parentWindow||t)}for(f=0;(c=h[f++])&&!n.isPropagationStopped();)n.type=f>1?u:d.bindType||g,(a=(b._data(c,"events")||{})[n.type]&&b._data(c,"handle"))&&a.apply(c,i),(a=l&&c[l])&&b.acceptData(c)&&a.apply&&!1===a.apply(c,i)&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!d._default||!1===d._default.apply(h.pop(),i))&&b.acceptData(s)&&l&&s[g]&&!b.isWindow(s)){(p=s[l])&&(s[l]=null),b.event.triggered=g;try{s[g]()}catch(t){}b.event.triggered=e,p&&(s[l]=p)}return n.result}},dispatch:function(t){t=b.event.fix(t);var n,i,s,o,r,a,l=h.call(arguments),c=(b._data(this,"events")||{})[t.type]||[],u=b.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(a=b.event.handlers.call(this,t,c),n=0;(o=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,r=0;(s=o.handlers[r++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(s.namespace)||(t.handleObj=s,t.data=s.data,(i=((b.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l))!==e&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,s,o,r,a=[],l=n.delegateCount,c=t.target;if(l&&c.nodeType&&(!t.button||"click"!==t.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==t.type)){for(o=[],r=0;r=0:b.find(i,this,null,[c]).length),o[i]&&o.push(s);o.length&&a.push({elem:c,handlers:o})}return l=0!==n})}function dt(t){var e=pt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}b.fn.extend({find:function(t){var e,n=[],i=this,s=i.length;if("string"!=typeof t)return this.pushStack(b(t).filter(function(){for(e=0;e1?b.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e,n=b(t,this),i=n.length;return this.filter(function(){for(e=0;e-1:1===n.nodeType&&b.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?b.unique(o):o)},index:function(t){return t?"string"==typeof t?b.inArray(this[0],b(t)):b.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?b(t,e):b.makeArray(t&&t.nodeType?[t]:t),i=b.merge(this.get(),n);return this.pushStack(b.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),b.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return b.dir(t,"parentNode")},parentsUntil:function(t,e,n){return b.dir(t,"parentNode",n)},next:function(t){return ct(t,"nextSibling")},prev:function(t){return ct(t,"previousSibling")},nextAll:function(t){return b.dir(t,"nextSibling")},prevAll:function(t){return b.dir(t,"previousSibling")},nextUntil:function(t,e,n){return b.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return b.dir(t,"previousSibling",n)},siblings:function(t){return b.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return b.sibling(t.firstChild)},contents:function(t){return b.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:b.merge([],t.childNodes)}},function(t,e){b.fn[t]=function(n,i){var s=b.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=b.filter(i,s)),this.length>1&&(lt[t]||(s=b.unique(s)),rt.test(t)&&(s=s.reverse())),this.pushStack(s)}}),b.extend({filter:function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?b.find.matchesSelector(i,t)?[i]:[]:b.find.matches(t,b.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var s=[],o=t[n];o&&9!==o.nodeType&&(i===e||1!==o.nodeType||!b(o).is(i));)1===o.nodeType&&s.push(o),o=o[n];return s},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var pt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ft=/ jQuery\d+="(?:null|\d+)"/g,ht=new RegExp("<(?:"+pt+")[\\s/>]","i"),gt=/^\s+/,mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,yt=/\s*$/g,Nt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:b.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},jt=dt(r).appendChild(r.createElement("div"));function Et(t,e){return b.nodeName(t,"table")&&b.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function St(t){return t.type=(null!==b.find.attr(t,"type"))+"/"+t.type,t}function $t(t){var e=Tt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function At(t,e){for(var n,i=0;null!=(n=t[i]);i++)b._data(n,"globalEval",!e||b._data(e[i],"globalEval"))}function Dt(t,e){if(1===e.nodeType&&b.hasData(t)){var n,i,s,o=b._data(t),r=b._data(e,o),a=o.events;if(a)for(n in delete r.handle,r.events={},a)for(i=0,s=a[n].length;i");try{for(;i")?o=t.cloneNode(!0):(jt.innerHTML=t.outerHTML,jt.removeChild(o=jt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||b.isXMLDoc(t)))for(i=Ht(o),a=Ht(t),r=0;null!=(s=a[r]);++r)i[r]&&Lt(s,i[r]);if(e)if(n)for(a=a||Ht(t),i=i||Ht(o),r=0;null!=(s=a[r]);r++)Dt(s,i[r]);else Dt(t,o);return(i=Ht(o,"script")).length>0&&At(i,!l&&Ht(t,"script")),i=a=s=null,o},buildFragment:function(t,e,n,i){for(var s,o,r,a,l,c,u,d=t.length,p=dt(e),f=[],h=0;h")+u[2],s=u[0];s--;)a=a.lastChild;if(!b.support.leadingWhitespace&>.test(o)&&f.push(e.createTextNode(gt.exec(o)[0])),!b.support.tbody)for(s=(o="table"!==l||yt.test(o)?""!==u[1]||yt.test(o)?0:a:a.firstChild)&&o.childNodes.length;s--;)b.nodeName(c=o.childNodes[s],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(b.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=p.lastChild}else f.push(e.createTextNode(o));for(a&&p.removeChild(a),b.support.appendChecked||b.grep(Ht(f,"input"),Ft),h=0;o=f[h++];)if((!i||-1===b.inArray(o,i))&&(r=b.contains(o.ownerDocument,o),a=Ht(p.appendChild(o),"script"),r&&At(a),n))for(s=0;o=a[s++];)Ct.test(o.type||"")&&n.push(o);return a=null,p},cleanData:function(t,e){for(var n,i,o,r,a=0,l=b.expando,c=b.cache,u=b.support.deleteExpando,p=b.event.special;null!=(n=t[a]);a++)if((e||b.acceptData(n))&&(r=(o=n[l])&&c[o])){if(r.events)for(i in r.events)p[i]?b.event.remove(n,i):b.removeEvent(n,i,r.handle);c[o]&&(delete c[o],u?delete n[l]:typeof n.removeAttribute!==s?n.removeAttribute(l):n[l]=null,d.push(o))}},_evalUrl:function(t){return b.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),b.fn.extend({wrapAll:function(t){if(b.isFunction(t))return this.each(function(e){b(this).wrapAll(t.call(this,e))});if(this[0]){var e=b(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return b.isFunction(t)?this.each(function(e){b(this).wrapInner(t.call(this,e))}):this.each(function(){var e=b(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=b.isFunction(t);return this.each(function(n){b(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()}});var Mt,Ot,zt,qt=/alpha\([^)]*\)/i,Pt=/opacity\s*=\s*([^)]*)/,Wt=/^(top|right|bottom|left)$/,Bt=/^(none|table(?!-c[ea]).+)/,It=/^margin/,Rt=new RegExp("^("+x+")(.*)$","i"),Xt=new RegExp("^("+x+")(?!px)[a-z%]+$","i"),Ut=new RegExp("^([+-])=("+x+")","i"),Jt={BODY:"block"},Vt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:0,fontWeight:400},Qt=["Top","Right","Bottom","Left"],Gt=["Webkit","O","Moz","ms"];function Kt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,s=Gt.length;s--;)if((e=Gt[s]+n)in t)return e;return i}function Zt(t,e){return t=e||t,"none"===b.css(t,"display")||!b.contains(t.ownerDocument,t)}function te(t,e){for(var n,i,s,o=[],r=0,a=t.length;r").css("cssText","display:block !important")).appendTo(e.documentElement))[0].contentWindow||Mt[0].contentDocument).document).write(""),e.close(),n=oe(t,e),Mt.detach()),Jt[t]=n),n}function oe(t,e){var n=b(e.createElement(t)).appendTo(e.body),i=b.css(n[0],"display");return n.remove(),i}b.fn.extend({css:function(t,n){return b.access(this,function(t,n,i){var s,o,r={},a=0;if(b.isArray(n)){for(o=Ot(t),s=n.length;a1)},show:function(){return te(this,!0)},hide:function(){return te(this)},toggle:function(t){var e="boolean"==typeof t;return this.each(function(){(e?t:Zt(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:b.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,l=b.camelCase(n),c=t.style;if(n=b.cssProps[l]||(b.cssProps[l]=Kt(c,l)),a=b.cssHooks[n]||b.cssHooks[l],i===e)return a&&"get"in a&&(o=a.get(t,!1,s))!==e?o:c[n];if(!("string"===(r=typeof i)&&(o=Ut.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(b.css(t,n)),r="number"),null==i||"number"===r&&isNaN(i)||("number"!==r||b.cssNumber[l]||(i+="px"),b.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(i=a.set(t,i,s))===e)))try{c[n]=i}catch(t){}}},css:function(t,n,i,s){var o,r,a,l=b.camelCase(n);return n=b.cssProps[l]||(b.cssProps[l]=Kt(t.style,l)),(a=b.cssHooks[n]||b.cssHooks[l])&&"get"in a&&(r=a.get(t,!0,i)),r===e&&(r=zt(t,n,s)),"normal"===r&&n in Yt&&(r=Yt[n]),""===i||i?(o=parseFloat(r),!0===i||b.isNumeric(o)?o||0:r):r}}),t.getComputedStyle?(Ot=function(e){return t.getComputedStyle(e,null)},zt=function(t,n,i){var s,o,r,a=i||Ot(t),l=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(""!==l||b.contains(t.ownerDocument,t)||(l=b.style(t,n)),Xt.test(l)&&It.test(n)&&(s=c.width,o=c.minWidth,r=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=s,c.minWidth=o,c.maxWidth=r)),l}):r.documentElement.currentStyle&&(Ot=function(t){return t.currentStyle},zt=function(t,n,i){var s,o,r,a=i||Ot(t),l=a?a[n]:e,c=t.style;return null==l&&c&&c[n]&&(l=c[n]),Xt.test(l)&&!Wt.test(n)&&(s=c.left,(r=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),c.left="fontSize"===n?"1em":l,l=c.pixelLeft+"px",c.left=s,r&&(o.left=r)),""===l?"auto":l}),b.each(["height","width"],function(t,e){b.cssHooks[e]={get:function(t,n,i){if(n)return 0===t.offsetWidth&&Bt.test(b.css(t,"display"))?b.swap(t,Vt,function(){return ie(t,e,i)}):ie(t,e,i)},set:function(t,n,i){var s=i&&Ot(t);return ee(0,n,i?ne(t,e,i,b.support.boxSizing&&"border-box"===b.css(t,"boxSizing",!1,s),s):0)}}}),b.support.opacity||(b.cssHooks.opacity={get:function(t,e){return Pt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,s=b.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===b.trim(o.replace(qt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=qt.test(o)?o.replace(qt,s):o+" "+s)}}),b(function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(t,e){if(e)return b.swap(t,{display:"inline-block"},zt,[t,"marginRight"])}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],function(t,e){b.cssHooks[e]={get:function(t,n){if(n)return n=zt(t,e),Xt.test(n)?b(t).position()[e]+"px":n}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!b.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||b.css(t,"display"))},b.expr.filters.visible=function(t){return!b.expr.filters.hidden(t)}),b.each({margin:"",padding:"",border:"Width"},function(t,e){b.cssHooks[t+e]={expand:function(n){for(var i=0,s={},o="string"==typeof n?n.split(" "):[n];i<4;i++)s[t+Qt[i]+e]=o[i]||o[i-2]||o[0];return s}},It.test(t)||(b.cssHooks[t+e].set=ee)});var re=/%20/g,ae=/\[\]$/,le=/\r?\n/g,ce=/^(?:submit|button|image|reset|file)$/i,ue=/^(?:input|select|textarea|keygen)/i;function de(t,e,n,i){var s;if(b.isArray(e))b.each(e,function(e,s){n||ae.test(t)?i(t,s):de(t+"["+("object"==typeof s?e:"")+"]",s,n,i)});else if(n||"object"!==b.type(e))i(t,e);else for(s in e)de(t+"["+s+"]",e[s],n,i)}b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=b.prop(this,"elements");return t?b.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!b(this).is(":disabled")&&ue.test(this.nodeName)&&!ce.test(t)&&(this.checked||!_t.test(t))}).map(function(t,e){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,function(t){return{name:e.name,value:t.replace(le,"\r\n")}}):{name:e.name,value:n.replace(le,"\r\n")}}).get()}}),b.param=function(t,n){var i,s=[],o=function(t,e){e=b.isFunction(e)?e():null==e?"":e,s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(t)||t.jquery&&!b.isPlainObject(t))b.each(t,function(){o(this.name,this.value)});else for(i in t)de(i,t[i],n,o);return s.join("&").replace(re,"+")},b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){b.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),b.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var pe,fe,he=b.now(),ge=/\?/,me=/#.*$/,ve=/([?&])_=[^&]*/,ye=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,be=/^(?:GET|HEAD)$/,xe=/^\/\//,_e=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,we=b.fn.load,Ce={},Te={},ke="*/".concat("*");try{fe=o.href}catch(t){(fe=r.createElement("a")).href="",fe=fe.href}function Ne(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,s=0,o=e.toLowerCase().match(_)||[];if(b.isFunction(n))for(;i=o[s++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function je(t,e,n,i){var s={},o=t===Te;function r(a){var l;return s[a]=!0,b.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}return r(e.dataTypes[0])||!s["*"]&&r("*")}function Ee(t,n){var i,s,o=b.ajaxSettings.flatOptions||{};for(s in n)n[s]!==e&&((o[s]?t:i||(i={}))[s]=n[s]);return i&&b.extend(!0,t,i),t}pe=_e.exec(fe.toLowerCase())||[],b.fn.load=function(t,n,i){if("string"!=typeof t&&we)return we.apply(this,arguments);var s,o,r,a=this,l=t.indexOf(" ");return l>=0&&(s=t.slice(l,t.length),t=t.slice(0,l)),b.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(r="POST"),a.length>0&&b.ajax({url:t,type:r,dataType:"html",data:n}).done(function(t){o=arguments,a.html(s?b("
").append(b.parseHTML(t)).find(s):t)}).complete(i&&function(t,e){a.each(i,o||[t.responseText,e,t])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){b.fn[e]=function(t){return this.on(e,t)}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fe,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ke,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ee(Ee(t,b.ajaxSettings),e):Ee(b.ajaxSettings,t)},ajaxPrefilter:Ne(Ce),ajaxTransport:Ne(Te),ajax:function(t,n){"object"==typeof t&&(n=t,t=e),n=n||{};var i,s,o,r,a,l,c,u,d=b.ajaxSetup({},n),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?b(p):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=d.statusCode||{},v={},y={},x=0,w="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!u)for(u={};e=ye.exec(r);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return x||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)m[e]=[m[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),T(0,e),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,d.url=((t||d.url||fe)+"").replace(me,"").replace(xe,pe[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=b.trim(d.dataType||"*").toLowerCase().match(_)||[""],null==d.crossDomain&&(i=_e.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===pe[1]&&i[2]===pe[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(pe[3]||("http:"===pe[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=b.param(d.data,d.traditional)),je(Ce,d,n,C),2===x)return C;for(s in(l=d.global)&&0==b.active++&&b.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!be.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(ge.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=ve.test(o)?o.replace(ve,"$1_="+he++):o+(ge.test(o)?"&":"?")+"_="+he++)),d.ifModified&&(b.lastModified[o]&&C.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&C.setRequestHeader("If-None-Match",b.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ke+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(s,d.headers[s]);if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||2===x))return C.abort();for(s in w="abort",{success:1,error:1,complete:1})C[s](d[s]);if(c=je(Te,d,n,C)){C.readyState=1,l&&f.trigger("ajaxSend",[C,d]),d.async&&d.timeout>0&&(a=setTimeout(function(){C.abort("timeout")},d.timeout));try{x=1,c.send(v,T)}catch(t){if(!(x<2))throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,n,i,s){var u,v,y,_,w,T=n;2!==x&&(x=2,a&&clearTimeout(a),c=e,r=s||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(_=function(t,n,i){var s,o,r,a,l=t.contents,c=t.dataTypes;for(;"*"===c[0];)c.shift(),o===e&&(o=t.mimeType||n.getResponseHeader("Content-Type"));if(o)for(a in l)if(l[a]&&l[a].test(o)){c.unshift(a);break}if(c[0]in i)r=c[0];else{for(a in i){if(!c[0]||t.converters[a+" "+c[0]]){r=a;break}s||(s=a)}r=r||s}if(r)return r!==c[0]&&c.unshift(r),i[r]}(d,C,i)),_=function(t,e,n,i){var s,o,r,a,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];o=u.shift();for(;o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,_,C,u),u?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(b.etag[o]=w)),204===t||"HEAD"===d.type?T="nocontent":304===t?T="notmodified":(T=_.state,v=_.data,u=!(y=_.error))):(y=T,!t&&T||(T="error",t<0&&(t=0))),C.status=t,C.statusText=(n||T)+"",u?h.resolveWith(p,[v,T,C]):h.rejectWith(p,[C,T,y]),C.statusCode(m),m=e,l&&f.trigger(u?"ajaxSuccess":"ajaxError",[C,d,u?v:y]),g.fireWith(p,[C,T]),l&&(f.trigger("ajaxComplete",[C,d]),--b.active||b.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return b.get(t,e,n,"json")},getScript:function(t,n){return b.get(t,e,n,"script")}}),b.each(["get","post"],function(t,n){b[n]=function(t,i,s,o){return b.isFunction(i)&&(o=o||s,s=i,i=e),b.ajax({url:t,type:n,dataType:o,data:i,success:s})}}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return b.globalEval(t),t}}}),b.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),b.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=r.head||b("head")[0]||r.documentElement;return{send:function(e,s){(n=r.createElement("script")).async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||s(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(e,!0)}}}});var Se=[],$e=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Se.pop()||b.expando+"_"+he++;return this[t]=!0,t}}),b.ajaxPrefilter("json jsonp",function(n,i,s){var o,r,a,l=!1!==n.jsonp&&($e.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&$e.test(n.data)&&"data");if(l||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace($e,"$1"+o):!1!==n.jsonp&&(n.url+=(ge.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return a||b.error(o+" was not called"),a[0]},n.dataTypes[0]="json",r=t[o],t[o]=function(){a=arguments},s.always(function(){t[o]=r,n[o]&&(n.jsonpCallback=i.jsonpCallback,Se.push(o)),a&&b.isFunction(r)&&r(a[0]),a=r=e}),"script"});var Ae,De,Le=0,He=t.ActiveXObject&&function(){var t;for(t in Ae)Ae[t](e,!0)};function Fe(){try{return new t.XMLHttpRequest}catch(t){}}b.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&Fe()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Fe,De=b.ajaxSettings.xhr(),b.support.cors=!!De&&"withCredentials"in De,(De=b.support.ajax=!!De)&&b.ajaxTransport(function(n){var i;if(!n.crossDomain||b.support.cors)return{send:function(s,o){var r,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");try{for(a in s)l.setRequestHeader(a,s[a])}catch(t){}l.send(n.hasContent&&n.data||null),i=function(t,s){var a,c,u,d;try{if(i&&(s||4===l.readyState))if(i=e,r&&(l.onreadystatechange=b.noop,He&&delete Ae[r]),s)4!==l.readyState&&l.abort();else{d={},a=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(d.text=l.responseText);try{u=l.statusText}catch(t){u=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=d.text?200:404}}catch(t){s||o(-1,t)}d&&o(a,u,d,c)},n.async?4===l.readyState?setTimeout(i):(r=++Le,He&&(Ae||(Ae={},b(t).unload(He)),Ae[r]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(e,!0)}}});var Me,Oe,ze=/^(?:toggle|show|hide)$/,qe=new RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Pe=/queueHooks$/,We=[function(t,e,n){var i,s,o,r,a,l,c=this,u={},d=t.style,p=t.nodeType&&Zt(t),f=b._data(t,"fxshow");n.queue||(null==(a=b._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,b.queue(t,"fx").length||a.empty.fire()})}));1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(t,"display")&&"none"===b.css(t,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==se(t.nodeName)?d.zoom=1:d.display="inline-block"));n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in e)if(s=e[i],ze.exec(s)){if(delete e[i],o=o||"toggle"===s,s===(p?"hide":"show"))continue;u[i]=f&&f[i]||b.style(t,i)}if(!b.isEmptyObject(u))for(i in f?"hidden"in f&&(p=f.hidden):f=b._data(t,"fxshow",{}),o&&(f.hidden=!p),p?b(t).show():c.done(function(){b(t).hide()}),c.done(function(){var e;for(e in b._removeData(t,"fxshow"),u)b.style(t,e,u[e])}),u)r=Re(p?f[i]:0,i,c),i in f||(f[i]=r.start,p&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}],Be={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),s=qe.exec(e),o=s&&s[3]||(b.cssNumber[t]?"":"px"),r=(b.cssNumber[t]||"px"!==o&&+i)&&qe.exec(b.css(n.elem,t)),a=1,l=20;if(r&&r[3]!==o){o=o||r[3],s=s||[],r=+i||1;do{r/=a=a||".5",b.style(n.elem,t,r+o)}while(a!==(a=n.cur()/i)&&1!==a&&--l)}return s&&(r=n.start=+r||+i||0,n.unit=o,n.end=s[1]?r+(s[1]+1)*s[2]:+s[2]),n}]};function Ie(){return setTimeout(function(){Me=e}),Me=b.now()}function Re(t,e,n){for(var i,s=(Be[e]||[]).concat(Be["*"]),o=0,r=s.length;o-1?(s=(d=r.position()).top,o=d.left):(s=parseFloat(l)||0,o=parseFloat(c)||0),b.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):r.css(u)}},b.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===b.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),b.nodeName(t[0],"html")||(n=t.offset()),n.top+=b.css(t[0],"borderTopWidth",!0),n.left+=b.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-b.css(i,"marginTop",!0),left:e.left-n.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||a;t&&!b.nodeName(t,"html")&&"static"===b.css(t,"position");)t=t.offsetParent;return t||a})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);b.fn[t]=function(s){return b.access(this,function(t,s,o){var r=Ve(t);if(o===e)return r?n in r?r[n]:r.document.documentElement[s]:t[s];r?r.scrollTo(i?b(r).scrollLeft():o,i?o:b(r).scrollTop()):t[s]=o},t,s,arguments.length,null)}}),b.each({Height:"height",Width:"width"},function(t,n){b.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,s){b.fn[s]=function(s,o){var r=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===o?"margin":"border");return b.access(this,function(n,i,s){var o;return b.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):s===e?b.css(n,i,a):b.style(n,i,s,a)},n,r?s:e,r,null)}})}),b.fn.size=function(){return this.length},b.fn.andSelf=b.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=b:(t.jQuery=t.$=b,"function"==typeof define&&define.amd&&define("jquery",[],function(){return b}))}(window);var libFuncName=null;if("undefined"==typeof jQuery&&"undefined"==typeof Zepto&&"function"==typeof $)libFuncName=$;else if("function"==typeof jQuery)libFuncName=jQuery;else{if("function"!=typeof Zepto)throw new TypeError;libFuncName=Zepto}function randombg(){}!function(t,e,n,i){"use strict";var s,o,r,a,l,c;e.matchMedia=e.matchMedia||(r=(s=n).documentElement,a=r.firstElementChild||r.firstChild,l=s.createElement("body"),(c=s.createElement("div")).id="mq-test-1",c.style.cssText="position:absolute;top:-100em",l.style.background="none",l.appendChild(c),function(t){return c.innerHTML='­',r.insertBefore(l,a),o=42===c.offsetWidth,r.removeChild(l),{matches:o,media:t}}),Array.prototype.filter||(Array.prototype.filter=function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"==typeof t){for(var i=[],s=arguments[1],o=0;o>>0;if(0===n)return-1;var i=0;if(arguments.length>1&&((i=Number(arguments[1]))!=i?i=0:0!=i&&i!=1/0&&i!=-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var s=i>=0?i:Math.max(n-Math.abs(i),0);s0)for(var u=a.length-1;u>=0;u--)c.push(this.init_lib(a[u],l))}else for(var d in/reflow/i.test(n)&&(l[1]="reflow"),this.libs)c.push(this.init_lib(d,l));return"function"==typeof n&&l.unshift(n),this.response_obj(c,l)},response_obj:function(t,e){for(var n=0,i=e.length;n=0;i--)this.lib_methods.hasOwnProperty(n[i])&&(this.libs[t.name][n[i]]=this.lib_methods[n[i]])},random_str:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");t||(t=Math.floor(Math.random()*e.length));for(var n="",i=0;i=0;n--)i=r[n].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),s=i[1],isNaN(s-0)||null===s||""===s||!1===s||!0===s||(i[1]=parseInt(i[1],10)),2===i.length&&i[0].length>0&&(o[a(i[0])]=a(i[1]));return o},delay:function(t,e){return setTimeout(t,e)},scrollTo:function(n,i,s){if(!(s<0)){var o=(i-t(e).scrollTop())/s*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(o,10))||(e.scrollTo(0,t(e).scrollTop()+o),this.scrollTo(n,i,s-10))}.bind(this),10)}},scrollLeft:function(t){if(t.length)return"scrollLeft"in t[0]?t[0].scrollLeft:t[0].pageXOffset},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&0===t.length)return!0;for(var e in t)if(hasOwnProperty.call(t,e))return!1;return!0}},fix_outer:function(t){t.outerHeight=function(t,e){return"function"==typeof Zepto?t.height():void 0!==e?t.outerHeight(e):t.outerHeight()},t.outerWidth=function(t,e){return"function"==typeof Zepto?t.width():void 0!==e?t.outerWidth(e):t.outerWidth()}},error:function(t){return t.name+" "+t.message+"; "+t.more},off:function(){return t(this.scope).off(".fndtn"),t(e).off(".fndtn"),!0},zj:t},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(libFuncName,this,this.document),function(t,e,n){var i=/\+/g;function s(t){return t}function o(t){return decodeURIComponent(t.replace(i," "))}var r=t.cookie=function(n,i,a){if(void 0!==i){if(a=t.extend({},r.defaults,a),null===i&&(a.expires=-1),"number"==typeof a.expires){var l=a.expires,c=a.expires=new Date;c.setDate(c.getDate()+l)}return i=r.json?JSON.stringify(i):String(i),e.cookie=[encodeURIComponent(n),"=",r.raw?i:encodeURIComponent(i),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var u=r.raw?s:o,d=e.cookie.split("; "),p=0,f=d.length;p0&&(t(e.target).is("[data-dropdown-content]")||t.contains(n.first()[0],e.target))?e.stopPropagation():i.close.call(i,t("[data-dropdown-content]")))}),t(e).on("resize.fndtn.dropdown",i.throttle(function(){i.resize.call(i)},50)).trigger("resize"),this.settings.init=!0},close:function(e){var n=this;e.each(function(){t(this).hasClass(n.settings.activeClass)&&(t(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass),t(this).trigger("closed"))})},open:function(t,e){this.css(t.addClass(this.settings.activeClass),e),t.trigger("opened")},toggle:function(e){var n=t("#"+e.data("dropdown"));this.close.call(this,t("[data-dropdown-content]").not(n)),n.hasClass(this.settings.activeClass)?this.close.call(this,n):(this.close.call(this,t("[data-dropdown-content]")),this.open.call(this,n,e))},resize:function(){var e=t("[data-dropdown-content].open"),n=t("[data-dropdown='"+e.attr("id")+"']");e.length&&n.length&&this.css(e,n)},css:function(n,i){var s=n.offsetParent(),o=i.offset();if(o.top-=s.offset().top,o.left-=s.offset().left,this.small())n.css({position:"absolute",width:"95%",left:"2.5%","max-width":"none",top:o.top+this.outerHeight(i)});else{if(!Foundation.rtl&&t(e).width()>this.outerWidth(n)+i.offset().left){var r=o.left;n.hasClass("right")&&n.removeClass("right")}else{n.hasClass("right")||n.addClass("right");r=o.left-(this.outerWidth(n)-this.outerWidth(i))}n.attr("style","").css({position:"absolute",top:o.top+this.outerHeight(i),left:r})}return n},small:function(){return t(e).width()<768||t("html").hasClass("lt-ie9")},off:function(){t(this.scope).off(".fndtn.dropdown"),t("html, body").off(".fndtn.dropdown"),t(e).off(".fndtn.dropdown"),t("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.forms={name:"forms",version:"4.3.1",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(e,n,i){return"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,i)},assemble:function(){t('form.custom input[type="radio"]',t(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),t('form.custom input[type="checkbox"]',t(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),t("form.custom select",t(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var i=this;t(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(e){e.preventDefault(),e.stopPropagation(),i.toggle_checkbox(t(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(e){e.preventDefault(),e.stopPropagation(),i.toggle_radio(t(this))}).on("change.fndtn.forms","form.custom select",function(e,n){t(this).is('[data-customforms="disabled"]')||i.refresh_custom_select(t(this),n)}).on("click.fndtn.forms","form.custom label",function(e){if(t(e.target).is("label")){var n,s,o=t("#"+i.escape(t(this).attr("for"))).not('[data-customforms="disabled"]');0!==o.length&&("checkbox"===o.attr("type")?(e.preventDefault(),0===(n=t(this).find("span.custom.checkbox")).length&&(n=o.add(this).siblings("span.custom.checkbox").first()),i.toggle_checkbox(n)):"radio"===o.attr("type")&&(e.preventDefault(),0===(s=t(this).find("span.custom.radio")).length&&(s=o.add(this).siblings("span.custom.radio").first()),i.toggle_radio(s)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(e){var n=t(this).closest("div.custom.dropdown"),o=s(n,"select");if(n.hasClass("open")||t(i.scope).trigger("click"),e.preventDefault(),!1===o.is(":disabled"))return n.toggleClass("open"),n.hasClass("open")?t(i.scope).on("click.fndtn.forms.customdropdown",function(){n.removeClass("open"),t(i.scope).off(".fndtn.forms.customdropdown")}):t(i.scope).on(".fndtn.forms.customdropdown"),!1}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(e){var i=t(this),o=i.closest("div.custom.dropdown"),r=s(o,"select"),a=0;if(e.preventDefault(),e.stopPropagation(),!t(this).hasClass("disabled")){t("div.dropdown").not(o).removeClass("open");var l=i.closest("ul").find("li.selected");if(l.removeClass("selected"),i.addClass("selected"),o.removeClass("open").find("a.current").text(i.text()),i.closest("ul").find("li").each(function(t){i[0]===this&&(a=t)}),r[0].selectedIndex=a,r.data("prevalue",l.html()),void 0!==n.createEvent){var c=n.createEvent("HTMLEvents");c.initEvent("change",!0,!0),r[0].dispatchEvent(c)}else r[0].fireEvent("onchange")}}),t(e).on("keydown",function(e){n.activeElement;var i=Foundation.libs.forms,s=t(".custom.dropdown.open");if(s.length>0){if(e.preventDefault(),13===e.which&&s.find("li.selected").trigger("click"),27===e.which&&s.removeClass("open"),e.which>=65&&e.which<=90){var o=i.go_to(s,e.which),r=s.find("li.selected");o&&(r.removeClass("selected"),i.scrollTo(o.addClass("selected"),300))}if(38===e.which){var a=(r=s.find("li.selected")).prev(":not(.disabled)");a.length>0&&(a.parent()[0].scrollTop=a.parent().scrollTop()-i.outerHeight(a),r.removeClass("selected"),a.addClass("selected"))}else if(40===e.which){(o=(r=s.find("li.selected")).next(":not(.disabled)")).length>0&&(o.parent()[0].scrollTop=o.parent().scrollTop()+i.outerHeight(o),r.removeClass("selected"),o.addClass("selected"))}}}),this.settings.init=!0},go_to:function(t,e){var n=t.find("li"),i=n.length;if(i>0)for(var s=0;s').insertAfter(i)),o.toggleClass("checked",i.is(":checked")),o.toggleClass("disabled",i.is(":disabled"))},append_custom_select:function(e,n){var i,s=Foundation.libs.forms,o=t(n),r=o.next("div.custom.dropdown"),a=r.find("ul"),l=(r.find(".current"),r.find(".selector"),o.find("option")),c=l.filter(":selected"),u=o.attr("class")?o.attr("class").split(" "):[],d=0,p="",f=!1;if(0===r.length){var h=o.hasClass("small")?"small":o.hasClass("medium")?"medium":o.hasClass("large")?"large":o.hasClass("expand")?"expand":"";(r=t('
    ')).find(".selector"),a=r.find("ul"),p=l.map(function(){return"
  • "+t(this).html()+"
  • "}).get().join(""),a.append(p),f=r.prepend(''+c.html()+"").find(".current"),o.after(r).addClass("hidden-field")}else p=l.map(function(){return"
  • "+t(this).html()+"
  • "}).get().join(""),a.html("").append(p);(s.assign_id(o,r),r.toggleClass("disabled",o.is(":disabled")),i=a.find("li"),s.cache[r.data("id")]=i.length,l.each(function(e){this.selected&&(i.eq(e).addClass("selected"),f&&f.html(t(this).html())),t(this).is(":disabled")&&i.eq(e).addClass("disabled")}),r.is(".small, .medium, .large, .expand"))||(r.addClass("open"),(s=Foundation.libs.forms).hidden_fix.adjust(a),d=s.outerWidth(i)>d?s.outerWidth(i):d,Foundation.libs.forms.hidden_fix.reset(),r.removeClass("open"))},assign_id:function(t,e){var n=[+new Date,Foundation.random_str(5)].join("-");t.attr("data-id",n),e.attr("data-id",n)},refresh_custom_select:function(e,n){var i=this,s=0,o=e.next(),r=e.find("option"),a=o.find("li");(a.length!==this.cache[o.data("id")]||n)&&(o.find("ul").html(""),r.each(function(){var e=t("
  • "+t(this).html()+"
  • ");o.find("ul").append(e)}),r.each(function(e){this.selected&&(o.find("li").eq(e).addClass("selected"),o.find(".current").html(t(this).html())),t(this).is(":disabled")&&o.find("li").eq(e).addClass("disabled")}),o.removeAttr("style").find("ul").removeAttr("style"),o.find("li").each(function(){o.addClass("open"),i.outerWidth(t(this))>s&&(s=i.outerWidth(t(this))),o.removeClass("open")}),a=o.find("li"),this.cache[o.data("id")]=a.length)},toggle_checkbox:function(t){var e=t.prev(),n=e[0];!1===e.is(":disabled")&&(n.checked=!n.checked,t.toggleClass("checked"),e.trigger("change"))},toggle_radio:function(t){var e=t.prevAll('input[type="radio"]:last'),n=e.closest("form.custom"),i=e[0];!1===e.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(e.attr("name"))+'"]').nextAll("span.custom.radio").not(t).removeClass("checked"),t.hasClass("checked")||t.toggleClass("checked"),i.checked=t.hasClass("checked"),e.trigger("change"))},escape:function(t){return t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},hidden_fix:{tmp:[],hidden:null,adjust:function(e){var n=this;n.hidden=e.parents(),n.hidden=n.hidden.add(e).filter(":hidden"),n.hidden.each(function(){var e=t(this);n.tmp.push(e.attr("style")),e.css({visibility:"hidden",display:"block"})})},reset:function(){var e=this;e.hidden.each(function(n){var i=t(this),s=e.tmp[n];void 0===s?i.removeAttr("style"):i.attr("style",s)}),e.tmp=[],e.hidden=null}},off:function(){t(this.scope).off(".fndtn.forms")},reflow:function(){}};var s=function(e,n){for(e=e.prev();e.length;){if(e.is(n))return e;e=e.prev()}return t()}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.joyride={name:"joyride",version:"4.2.2",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'×',timer:'
    ',tip:'
    ',wrapper:'
    ',button:'',modal:'
    ',expose:'
    ',exposeCover:'
    '},exposeAddClass:""},settings:{},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),"object"==typeof n?t.extend(!0,this.settings,this.defaults,n):t.extend(!0,this.settings,this.defaults,i),"string"!=typeof n?(this.settings.init||this.events(),this.settings.init):this[n].call(this,i)},events:function(){var n=this;t(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end()}.bind(this)),t(e).on("resize.fndtn.joyride",n.throttle(function(){if(t("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0)t(n.settings.exposed).each(function(){var e=t(this);n.un_expose(e),n.expose(e)});n.is_phone()?n.pos_phone():n.pos_default(!1,!0)}},100)),this.settings.init=!0},start:function(){var e=this,n=t(this.scope).find("[data-joyride]"),i=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],s=i.length;this.settings.init||this.init(),this.settings.$content_el=n,this.settings.$body=t(this.settings.tipContainer),this.settings.body_offset=t(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},"function"!=typeof t.cookie&&(this.settings.cookieMonster=!1),(!this.settings.cookieMonster||this.settings.cookieMonster&&null===t.cookie(this.settings.cookieName))&&(this.settings.$tip_content.each(function(n){var o=t(this);t.extend(!0,e.settings,e.data_options(o));for(var r=s-1;r>=0;r--)e.settings[i[r]]=parseInt(e.settings[i[r]],10);e.create({$li:o,index:n})}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init"))},resume:function(){this.set_li(),this.show()},tip_template:function(e){var n,i;return e.tip_class=e.tip_class||"",n=t(this.settings.template.tip).addClass(e.tip_class),i=t.trim(t(e.li).html())+this.button_text(e.button_text)+this.settings.template.link+this.timer_instance(e.index),n.append(t(this.settings.template.wrapper)),n.first().attr("data-index",e.index),t(".joyride-content-wrapper",n).append(i),n[0]},timer_instance:function(e){return 0===e&&this.settings.startTimerOnClick&&this.settings.timer>0||0===this.settings.timer?"":this.outerHTML(t(this.settings.template.timer)[0])},button_text:function(e){return this.settings.nextButton?(e=t.trim(e)||"Next",e=this.outerHTML(t(this.settings.template.button).append(e)[0])):e="",e},create:function(e){var n=e.$li.attr("data-button")||e.$li.attr("data-text"),i=e.$li.attr("class"),s=t(this.tip_template({tip_class:i,index:e.index,button_text:n,li:e.$li}));t(this.settings.tipContainer).append(s)},show:function(e){var n=null;void 0===this.settings.$li||-1===t.inArray(this.settings.$li.index(),this.settings.pauseAfter)?(this.settings.paused?this.settings.paused=!1:this.set_li(e),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(e&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=t.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return Modernizr?Modernizr.mq("only screen and (max-width: 767px)")||t(".lt-ie9").length>0:this.settings.$window.width()<767},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||t(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(t.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=t(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","")},set_target:function(){var e=this.settings.$li.attr("data-class"),i=this.settings.$li.attr("data-id");this.settings.$target=i?t(n.getElementById(i)):e?t("."+e).first():t("body")},scroll_to:function(){var n,i;n=t(e).height()/2,(i=Math.ceil(this.settings.$target.offset().top-n+this.outerHeight(this.settings.$next_tip)))>0&&this.scrollTo(t("html, body"),i,this.settings.scrollSpeed)},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)},restart:function(){this.hide(),this.settings.$li=void 0,this.show("init")},pos_default:function(n,i){Math.ceil(t(e).height()/2),this.settings.$next_tip.offset();var s=this.settings.$next_tip.find(".joyride-nub"),o=Math.ceil(this.outerWidth(s)/2),r=Math.ceil(this.outerHeight(s)/2),a=n||!1;if(a&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),void 0===i&&(i=!1),/body/i.test(this.settings.$target.selector))this.settings.$li.length&&this.pos_modal(s);else{if(this.bottom()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top+r+this.outerHeight(this.settings.$target),left:l}),this.nub_position(s,this.settings.tipSettings.nubPosition,"top")}else if(this.top()){l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.outerHeight(this.settings.$next_tip)-r,left:l}),this.nub_position(s,this.settings.tipSettings.nubPosition,"bottom")}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+o}),this.nub_position(s,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-o}),this.nub_position(s,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts0&&arguments[0]instanceof t)s=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;s=this.settings.$target}if(s.length<1)return e.console&&console.error("element not valid",s),!1;n=t(this.settings.template.expose),this.settings.$body.append(n),n.css({top:s.offset().top,left:s.offset().left,width:this.outerWidth(s,!0),height:this.outerHeight(s,!0)}),i=t(this.settings.template.exposeCover),o={zIndex:s.css("z-index"),position:s.css("position")},r=null==s.attr("class")?"":s.attr("class"),s.css("z-index",parseInt(n.css("z-index"))+1),"static"==o.position&&s.css("position","relative"),s.data("expose-css",o),s.data("orig-class",r),s.attr("class",r+" "+this.settings.exposeAddClass),i.css({top:s.offset().top,left:s.offset().left,width:this.outerWidth(s,!0),height:this.outerHeight(s,!0)}),this.settings.$body.append(i),n.addClass(a),i.addClass(a),s.data("expose",a),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,s),this.add_exposed(s)},un_expose:function(){var n,i,s,o,r,a=!1;if(arguments.length>0&&arguments[0]instanceof t)i=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return e.console&&console.error("element not valid",i),!1;n=i.data("expose"),s=t("."+n),arguments.length>1&&(a=arguments[1]),!0===a?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():s.remove(),"auto"==(o=i.data("expose-css")).zIndex?i.css("z-index",""):i.css("z-index",o.zIndex),o.position!=i.css("position")&&("static"==o.position?i.css("position",""):i.css("position",o.position)),r=i.data("orig-class"),i.attr("class",r),i.removeData("orig-classes"),i.removeData("expose"),i.removeData("expose-z-index"),this.remove_exposed(i)},add_exposed:function(e){this.settings.exposed=this.settings.exposed||[],e instanceof t||"object"==typeof e?this.settings.exposed.push(e[0]):"string"==typeof e&&this.settings.exposed.push(e)},remove_exposed:function(e){var n,i;e instanceof t?n=e[0]:"string"==typeof e&&(n=e),this.settings.exposed=this.settings.exposed||[],i=this.settings.exposed.length;for(var s=0;sl&&(l=a),[n.offset().topn.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,n){"auto"===e?t.addClass(n):t.addClass(e)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookieMonster&&t.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),t(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),t(".joyride-tip-guide").remove()},outerHTML:function(t){return t.outerHTML||(new XMLSerializer).serializeToString(t)},off:function(){t(this.scope).off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.2.2",settings:{activeClass:"active",threshold:0},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"data_options"),"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||(this.fixed_magellan=t("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=t("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,i)},events:function(){var n=this;t(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(e){var i=t(this),s=i.closest("[data-magellan-expedition]").attr("data-magellan-active-class")||n.settings.activeClass;i.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(i).removeClass(s),i.addClass(s)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){t(this)}).trigger("update-position"),t(e).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var i=t(e).scrollTop();n.fixed_magellan.each(function(){var e=t(this);void 0===e.data("magellan-top-offset")&&e.data("magellan-top-offset",e.offset().top),void 0===e.data("magellan-fixed-position")&&e.data("magellan-fixed-position",!1);var s=i+n.settings.threshold>e.data("magellan-top-offset"),o=e.attr("data-magellan-top-offset");e.data("magellan-fixed-position")!=s&&(e.data("magellan-fixed-position",s),s?(e.addClass("fixed"),e.css({position:"fixed",top:0})):(e.removeClass("fixed"),e.css({position:"",top:""})),s&&void 0!==o&&0!=o&&e.css({position:"fixed",top:o+"px"}))})}),this.last_destination.length>0&&t(e).on("scroll.fndtn.magellan",function(i){var s=t(e).scrollTop(),o=s+t(e).height(),r=Math.ceil(n.last_destination.offset().top);t("[data-magellan-destination]").each(function(){var e=t(this),i=e.attr("data-magellan-destination");e.offset().top-s<=n.settings.threshold&&t("[data-magellan-arrival='"+i+"']").trigger("arrival"),o>=t(n.scope).height()&&r>s&&r0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){t(this.scope).off(".fndtn.magellan")},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";var s=function(){},o=function(i,s){if(i.hasClass(s.slides_container_class))return this;var o,c,u,d,p,f,h=this,g=i,m=0;g.children().first().addClass(s.active_slide_class),h.update_slide_number=function(e){s.slide_number&&(c.find("span:first").text(parseInt(e)+1),c.find("span:last").text(g.children().length)),s.bullets&&(u.children().removeClass(s.bullets_active_class),t(u.children().get(e)).addClass(s.bullets_active_class))},h.build_markup=function(){g.wrap('
    '),o=g.parent(),g.addClass(s.slides_container_class),s.navigation_arrows&&(o.append(t("").addClass(s.prev_class).append("")),o.append(t("").addClass(s.next_class).append(""))),s.timer&&((d=t("
    ").addClass(s.timer_container_class)).append(""),d.append(t("
    ").addClass(s.timer_progress_class)),d.addClass(s.timer_paused_class),o.append(d)),s.slide_number&&((c=t("
    ").addClass(s.slide_number_class)).append(" of "),o.append(c)),s.bullets&&(u=t("
      ").addClass(s.bullets_container_class),o.append(u),g.children().each(function(e,n){var i=t("
    1. ").attr("data-orbit-slide",e);u.append(i)})),s.stack_on_small&&o.addClass(s.stack_on_small_class),h.update_slide_number(0)},h._goto=function(e,n){if(e===m)return!1;"object"==typeof f&&f.restart();var i=g.children(),o="next";!0,e=i.length?e=0:e<0&&(e=i.length-1);var r=t(i.get(m)),a=t(i.get(e));r.css("zIndex",2),a.css("zIndex",4).addClass("active"),g.trigger("orbit:before-slide-change"),s.before_slide_change();var l=function(){var t=function(){m=e,!1,!0===n&&(f=h.create_timer()).start(),h.update_slide_number(m),g.trigger("orbit:after-slide-change",[{slide_number:m,total_slides:i.length}]),s.after_slide_change(m,i.length)};g.height()!=a.height()?g.animate({height:a.height()},250,"linear",t):t()};if(1===i.length)return l(),!1;var c=function(){"next"===o&&p.next(r,a,l),"prev"===o&&p.prev(r,a,l)};a.height()>g.height()?g.animate({height:a.height()},250,"linear",c):c()},h.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),h._goto(m+1)},h.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),h._goto(m-1)},h.link_custom=function(e){e.preventDefault();var n=t(this).attr("data-orbit-link");if("string"==typeof n&&""!=(n=t.trim(n))){var i=o.find("[data-orbit-slide="+n+"]");-1!=i.index()&&h._goto(i.index())}},h.link_bullet=function(e){var n=t(this).attr("data-orbit-slide");"string"==typeof n&&""!=(n=t.trim(n))&&h._goto(n)},h.timer_callback=function(){h._goto(m+1,!0)},h.compute_dimensions=function(){var e=t(g.children().get(m)).height();s.variable_height||g.children().each(function(){t(this).height()>e&&(e=t(this).height())}),g.height(e)},h.create_timer=function(){return new r(o.find("."+s.timer_container_class),s,h.timer_callback)},h.stop_timer=function(){"object"==typeof f&&f.stop()},h.toggle_timer=function(){o.find("."+s.timer_container_class).hasClass(s.timer_paused_class)?(void 0===f&&(f=h.create_timer()),f.start()):"object"==typeof f&&f.stop()},h.init=function(){h.build_markup(),s.timer&&(f=h.create_timer()).start(),p=new l(g),"slide"===s.animation&&(p=new a(g)),o.on("click","."+s.next_class,h.next),o.on("click","."+s.prev_class,h.prev),o.on("click","[data-orbit-slide]",h.link_bullet),o.on("click",h.toggle_timer),o.on("touchstart.fndtn.orbit",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:void 0};o.data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.orbit",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var e=o.data("swipe-transition");if(void 0===e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,void 0===e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)").attr(n.extend((e=this,i={},s=/^jQuery\d+$/,n.each(e.attributes,function(t,e){e.specified&&!s.test(e.name)&&(i[e.name]=e.value)}),i),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":r}).bind("focus.placeholder",c),o.data({"placeholder-textinput":t,"placeholder-id":r}).before(t)}o=o.removeAttr("id").hide().prev().attr("id",r).show()}o.addClass("placeholder"),o[0].value=o.attr("placeholder")}else o.removeClass("placeholder")}o&&r?(s=a.placeholder=function(){return this}).input=s.textarea=!0:((s=a.placeholder=function(){return this.filter((o?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":c,"blur.placeholder":u}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=o,s.textarea=r,i={get:function(t){var e=n(t);return e.data("placeholder-enabled")&&e.hasClass("placeholder")?"":t.value},set:function(t,i){var s=n(t);return s.data("placeholder-enabled")?(""==i?(t.value=i,t!=e.activeElement&&u.call(t)):s.hasClass("placeholder")&&c.call(t,!0,i)||(t.value=i),s):t.value=i}},o||(l.input=i),r||(l.textarea=i),n(function(){n(e).delegate("form","submit.placeholder",function(){var t=n(".placeholder",this).each(c);setTimeout(function(){t.each(u)},10)})}),n(t).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}(this,document,Foundation.zj),function(t,e,n,i){"use strict";Foundation.libs.placeholder={name:"placeholder",version:"4.2.2",init:function(n,i,s){this.scope=n||this.scope,"string"!=typeof i&&(e.onload=function(){t("input, textarea").placeholder()})}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.2.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,n,i){return Foundation.inherit(this,"data_options delay"),"object"==typeof n?t.extend(!0,this.settings,n):void 0!==i&&t.extend(!0,this.settings,i),"string"!=typeof n?(this.events(),this.settings.init):this[n].call(this,i)},events:function(){var e=this;return t(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(n){if(n.preventDefault(),!e.locked){var i=t(this),s=i.data("reveal-ajax");if(e.locked=!0,void 0===s)e.open.call(e,i);else{var o=!0===s?i.attr("href"):s;e.open.call(e,i,{url:o})}}}).on("click.fndtn.reveal",this.close_targets(),function(n){if(n.preventDefault(),!e.locked){var i=t.extend({},e.settings,e.data_options(t(".reveal-modal.open")));if(t(n.target)[0]===t("."+i.bgClass)[0]&&!i.closeOnBackgroundClick)return;e.locked=!0,e.close.call(e,t(this).closest(".reveal-modal"))}}).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),t("body").bind("keyup.reveal",function(n){var i=t(".reveal-modal.open"),s=t.extend({},e.settings,e.data_options(i));27===n.which&&s.closeOnEsc&&i.foundation("reveal","close")}),!0},open:function(e,n){if(e)if(void 0!==e.selector)var i=t("#"+e.data("reveal-id"));else{i=t(this.scope);n=e}else i=t(this.scope);if(!i.hasClass("open")){var s=t(".reveal-modal.open");if(void 0===i.data("css-top")&&i.data("css-top",parseInt(i.css("top"),10)).data("offset",this.cache_offset(i)),i.trigger("open"),s.length<1&&this.toggle_bg(i),void 0!==n&&n.url){var o=this,r=void 0!==n.success?n.success:null;t.extend(n,{success:function(e,n,a){t.isFunction(r)&&r(e,n,a),i.html(e),t(i).foundation("section","reflow"),o.hide(s,o.settings.css.close),o.show(i,o.settings.css.open)}}),t.ajax(n)}else this.hide(s,this.settings.css.close),this.show(i,this.settings.css.open)}},close:function(e){e=e&&e.length?e:t(this.scope);var n=t(".reveal-modal.open");n.length>0&&(this.locked=!0,e.trigger("close"),this.toggle_bg(e),this.hide(n,this.settings.css.close))},close_targets:function(){var t="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?t+", ."+this.settings.bgClass:t},toggle_bg:function(e){0===t(".reveal-modal-bg").length&&(this.settings.bg=t("
      ",{class:this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(n,i){if(i){if(/pop/i.test(this.settings.animation)){i.top=t(e).scrollTop()-n.data("offset")+"px";var s={top:t(e).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(i).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){s={opacity:1};return this.delay(function(){return n.css(i).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.css(i).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show()},hide:function(n,i){if(i){if(/pop/i.test(this.settings.animation)){var s={top:-t(e).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){s={opacity:0};return this.delay(function(){return n.animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.hide().css(i).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide()},close_video:function(e){var n=t(this).find(".flex-video"),i=n.find("iframe");i.length>0&&(i.attr("data-src",i[0].src),i.attr("src","about:blank"),n.hide())},open_video:function(e){var n=t(this).find(".flex-video"),i=n.find("iframe");if(i.length>0){if("string"==typeof i.attr("data-src"))i[0].src=i.attr("data-src");else{var s=i[0].src;i[0].src=void 0,i[0].src=s}n.show()}},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10);return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n){"use strict";Foundation.libs.section={name:"section",version:"4.3.1",settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",resized_data_attr:"data-section-resized",small_style_data_attr:"data-section-small-style",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:"active",callback:function(){}},init:function(e,n,i){return Foundation.inherit(this,"throttle data_options position_right offset_right"),"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.events(),!0):this[n].call(this,i)},events:function(){for(var i=this,s=[],o=i.settings.section_selector,r=i.settings.region_selector.split(","),a=i.settings.title_selector.split(","),l=0,c=r.length;l"+u+">"+a[d];s.push(f+" a"),s.push(f)}t(i.scope).on("click.fndtn.section",s.join(","),function(e){var n=t(this).closest(i.settings.title_selector);i.close_navs(n),n.siblings(i.settings.content_selector).length>0&&i.toggle_active.call(n[0],e)}),t(e).on("resize.fndtn.section",i.throttle(function(){i.resize()},30)).on("hashchange.fndtn.section",i.set_active_from_hash),t(n).on("click.fndtn.section",function(e){e.isPropagationStopped&&e.isPropagationStopped()||e.target!==n&&i.close_navs(t(e.target).closest(i.settings.title_selector))}),t(e).triggerHandler("resize.fndtn.section"),t(e).triggerHandler("hashchange.fndtn.section")},close_navs:function(e){var n=Foundation.libs.section,i=t(n.settings.nav_selector).filter(function(){return!t.extend({},n.settings,n.data_options(t(this))).one_up});if(e.length>0){var s=e.parent().parent();(n.is_horizontal_nav(s)||n.is_vertical_nav(s))&&(i=i.filter(function(){return this!==s[0]}))}i.children(n.settings.region_selector).removeClass(n.settings.active_class)},toggle_active:function(e){var n=t(this),i=Foundation.libs.section,s=n.parent(),o=n.siblings(i.settings.content_selector),r=s.parent(),a=t.extend({},i.settings,i.data_options(r)),l=r.children(i.settings.region_selector).filter("."+i.settings.active_class);!a.deep_linking&&o.length>0&&e.preventDefault(),e.stopPropagation(),s.hasClass(i.settings.active_class)?!a.one_up&&(i.small(r)||i.is_vertical_nav(r)||i.is_horizontal_nav(r)||i.is_accordion(r))&&s.removeClass(i.settings.active_class):(l.removeClass(i.settings.active_class),s.addClass(i.settings.active_class),i.resize(s.find(i.settings.section_selector).not("["+i.settings.resized_data_attr+"]"),!0)),a.callback(r)},check_resize_timer:null,resize:function(e,i){var s=Foundation.libs.section,o=s.small(t(n)),r=function(t,e){return!s.is_accordion(t)&&!t.is("["+s.settings.resized_data_attr+"]")&&(!o||s.is_horizontal_tabs(t))&&e===("none"===t.css("display")||!t.parent().is(":visible"))};e=e||t(s.settings.section_selector),clearTimeout(s.check_resize_timer),o||e.removeAttr(s.settings.small_style_data_attr),e.filter(function(){return r(t(this),!1)}).each(function(){var e=t(this),n=e.children(s.settings.region_selector),o=n.children(s.settings.title_selector),r=n.children(s.settings.content_selector),a=0;if(i&&0==e.children(s.settings.region_selector).filter("."+s.settings.active_class).length){var l=t.extend({},s.settings,s.data_options(e));l.deep_linking||!l.one_up&&(s.is_horizontal_nav(e)||s.is_vertical_nav(e)||s.is_accordion(e))||n.filter(":visible").first().addClass(s.settings.active_class)}if(s.is_horizontal_tabs(e)||s.is_auto(e)){var c=0;o.each(function(){var e=t(this);if(e.is(":visible")){e.css(s.rtl?"right":"left",c);var n=parseInt(e.css("border-"+(s.rtl?"left":"right")+"-width"),10);"Nan"===n.toString()&&(n=0),c+=s.outerWidth(e)-n,a=Math.max(a,s.outerHeight(e))}}),o.css("height",a),n.each(function(){var e=t(this),n=e.children(s.settings.content_selector),i=parseInt(n.css("border-top-width"),10);"Nan"===i.toString()&&(i=0),e.css("padding-top",a-i)}),e.css("min-height",a)}else if(s.is_horizontal_nav(e)){var u=!0;o.each(function(){a=Math.max(a,s.outerHeight(t(this)))}),n.each(function(){var n=t(this);n.css("margin-left","-"+(u?e:n.children(s.settings.title_selector)).css("border-left-width")),u=!1}),n.css("margin-top","-"+e.css("border-top-width")),o.css("height",a),r.css("top",a),e.css("min-height",a)}else if(s.is_vertical_tabs(e)){var d=0;o.each(function(){var e=t(this);if(e.is(":visible")){e.css("top",d);var n=parseInt(e.css("border-top-width"),10);"Nan"===n.toString()&&(n=0),d+=s.outerHeight(e)-n}}),r.css("min-height",d+1)}else if(s.is_vertical_nav(e)){var p=0,f=!0;o.each(function(){p=Math.max(p,s.outerWidth(t(this)))}),n.each(function(){var n=t(this);n.css("margin-top","-"+(f?e:n.children(s.settings.title_selector)).css("border-top-width")),f=!1}),o.css("width",p),r.css(s.rtl?"right":"left",p),e.css("width",p)}e.attr(s.settings.resized_data_attr,!0)}),t(s.settings.section_selector).filter(function(){return r(t(this),!0)}).length>0&&(s.check_resize_timer=setTimeout(function(){s.resize(e.filter(function(){return r(t(this),!1)}),!0)},700)),o&&e.attr(s.settings.small_style_data_attr,!0)},is_vertical_nav:function(t){return/vertical-nav/i.test(t.data("section"))},is_horizontal_nav:function(t){return/horizontal-nav/i.test(t.data("section"))},is_accordion:function(t){return/accordion/i.test(t.data("section"))},is_horizontal_tabs:function(t){return/^tabs$/i.test(t.data("section"))},is_vertical_tabs:function(t){return/vertical-tabs/i.test(t.data("section"))},is_auto:function(t){var e=t.data("section");return""===e||/auto/i.test(e)},set_active_from_hash:function(){var n=Foundation.libs.section,i=e.location.hash.substring(1);t(n.settings.section_selector).each(function(){var e=t(this),s=t.extend({},n.settings,n.data_options(e)),o=e.children(n.settings.region_selector),r=s.deep_linking&&i.length>0,a=!1;o.each(function(){var e=t(this);if(a)e.removeClass(n.settings.active_class);else if(r){var s=e.children(n.settings.content_selector).data("slug");s&&new RegExp(s,"i").test(i)?(e.hasClass(n.settings.active_class)||e.addClass(n.settings.active_class),a=!0):e.removeClass(n.settings.active_class)}else e.hasClass(n.settings.active_class)&&(a=!0)}),a||s.deep_linking||!s.one_up&&(n.is_horizontal_nav(e)||n.is_vertical_nav(e)||n.is_accordion(e))||o.filter(":visible").first().addClass(n.settings.active_class)})},reflow:function(){var e=Foundation.libs.section;t(e.settings.section_selector).removeAttr(e.settings.resized_data_attr),e.throttle(function(){e.resize()},30)()},small:function(e){var n=t.extend({},this.settings,this.data_options(e));return!this.is_horizontal_tabs(e)&&(!(!e||!this.is_accordion(e))||(!!t("html").hasClass("lt-ie9")||(!!t("html").hasClass("ie8compat")||t(this.scope).width()'+e+''}},cache:{},init:function(e,n,i){Foundation.inherit(this,"data_options");var s=this;if("object"==typeof n?t.extend(!0,this.settings,n):void 0!==i&&t.extend(!0,this.settings,i),"string"==typeof n)return this[n].call(this,i);Modernizr.touch?t(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(e){var n=t.extend({},s.settings,s.data_options(t(this)));n["disable-for-touch"]||(e.preventDefault(),t(n.tooltipClass).hide(),s.showOrCreateTip(t(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(e){e.preventDefault(),t(this).fadeOut(150)}):t(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(e){var n=t(this);/enter|over/i.test(e.type)?s.showOrCreateTip(n):"mouseout"!==e.type&&"mouseleave"!==e.type||s.hide(n)})},showOrCreateTip:function(t){var e=this.getTip(t);return e&&e.length>0?this.show(t):this.create(t)},getTip:function(e){var n=this.selector(e),i=null;return n&&(i=t('span[data-selector="'+n+'"]'+this.settings.tooltipClass)),"object"==typeof i&&i},selector:function(t){var e=t.attr("id"),n=t.attr("data-tooltip")||t.attr("data-selector");return(e&&e.length<1||!e)&&"string"!=typeof n&&(n="tooltip"+Math.random().toString(36).substring(7),t.attr("data-selector",n)),e&&e.length>0?e:n},create:function(e){var n=t(this.settings.tipTemplate(this.selector(e),t("
      ").html(e.attr("title")).html())),i=this.inheritable_classes(e);n.addClass(i).appendTo(this.settings.appendTo),Modernizr.touch&&n.append('tap to close '),e.removeAttr("title").attr("title",""),this.show(e)},reposition:function(n,i,s){var o,r,a,l;if(i.css("visibility","hidden").show(),o=n.data("width"),r=i.children(".nub"),a=this.outerHeight(r),this.outerHeight(r),(l=function(t,e,n,i,s,o){return t.css({top:e||"auto",bottom:i||"auto",left:s||"auto",right:n||"auto",width:o||"auto"}).end()})(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",n.offset().left,o),t(e).width()<767)l(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",12.5,t(this.scope).width()),i.addClass("tip-override"),l(r,-a,"auto","auto",n.offset().left);else{var c=n.offset().left;Foundation.rtl&&(c=n.offset().left+n.offset().width-this.outerWidth(i)),l(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",c,o),i.removeClass("tip-override"),s&&s.indexOf("tip-top")>-1?l(i,n.offset().top-this.outerHeight(i),"auto","auto",c,o).removeClass("tip-override"):s&&s.indexOf("tip-left")>-1?l(i,n.offset().top+this.outerHeight(n)/2-2.5*a,"auto","auto",n.offset().left-this.outerWidth(i)-a,o).removeClass("tip-override"):s&&s.indexOf("tip-right")>-1&&l(i,n.offset().top+this.outerHeight(n)/2-2.5*a,"auto","auto",n.offset().left+this.outerWidth(n)+a,o).removeClass("tip-override")}i.css("visibility","visible").hide()},inheritable_classes:function(e){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),i=e.attr("class"),s=i?t.map(i.split(" "),function(e,i){if(-1!==t.inArray(e,n))return e}).join(" "):"";return t.trim(s)},show:function(t){var e=this.getTip(t);this.reposition(t,e,t.attr("class")),e.fadeIn(150)},hide:function(t){this.getTip(t).fadeOut(150)},reload:function(){var e=t(this);return e.data("fndtn-tooltips")?e.foundationTooltips("destroy").foundationTooltips("init"):e.foundationTooltips("init")},off:function(){t(this.scope).off(".fndtn.tooltip"),t(this.settings.tooltipClass).each(function(e){t("[data-tooltip]").get(e).attr("title",t(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.3.1",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!0,scrolltop:!0,init:!1},init:function(n,i,s){Foundation.inherit(this,"data_options");var o=this;return"object"==typeof i?t.extend(!0,this.settings,i):void 0!==s&&t.extend(!0,this.settings,s),"string"!=typeof i?(t(".top-bar, [data-topbar]").each(function(){t.extend(!0,o.settings,o.data_options(t(this))),o.settings.$w=t(e),o.settings.$topbar=t(this),o.settings.$section=o.settings.$topbar.find("section"),o.settings.$titlebar=o.settings.$topbar.children("ul").first(),o.settings.$topbar.data("index",0);var n=t("
      ").insertAfter(o.settings.$topbar);o.settings.breakPoint=n.width(),n.remove(),o.assemble(),o.settings.is_hover&&o.settings.$topbar.find(".has-dropdown").addClass("not-click"),o.settings.$topbar.parent().hasClass("fixed")&&t("body").css("padding-top",o.outerHeight(o.settings.$topbar))}),o.settings.init||this.events(),this.settings.init):this[i].call(this,s)},timer:null,events:function(){var n=this,i=this.outerHeight(t(".top-bar, [data-topbar]"));t(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(s){var o=t(this).closest(".top-bar, [data-topbar]"),r=o.find("section, .section");o.children("ul").first();s.preventDefault(),n.breakpoint()&&(n.rtl?(r.css({right:"0%"}),r.find(">.name").css({right:"100%"})):(r.css({left:"0%"}),r.find(">.name").css({left:"100%"})),r.find("li.moved").removeClass("moved"),o.data("index",0),o.toggleClass("expanded").css("height","")),o.hasClass("expanded")?o.parent().hasClass("fixed")&&(o.parent().removeClass("fixed"),o.addClass("fixed"),t("body").css("padding-top","0"),n.settings.scrolltop&&e.scrollTo(0,0)):o.hasClass("fixed")&&(o.parent().addClass("fixed"),o.removeClass("fixed"),t("body").css("padding-top",i))}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(e){if(!n.breakpoint()){var i=t(this),s=t(e.target);i.closest("[data-topbar], .top-bar").data("topbar");n.settings.is_hover&&!Modernizr.touch||(e.stopImmediatePropagation(),"A"===s[0].nodeName&&s.parent().hasClass("has-dropdown")&&e.preventDefault(),i.hasClass("hover")?i.removeClass("hover").find("li").removeClass("hover"):i.addClass("hover"))}}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(e){if(n.breakpoint()){e.preventDefault();var i=t(this),s=i.closest(".top-bar, [data-topbar]"),o=s.find("section, .section"),r=s.children("ul").first(),a=(i.next(".dropdown").outerHeight(),i.closest("li"));s.data("index",s.data("index")+1),a.addClass("moved"),n.rtl?(o.css({right:-100*s.data("index")+"%"}),o.find(">.name").css({right:100*s.data("index")+"%"})):(o.css({left:-100*s.data("index")+"%"}),o.find(">.name").css({left:100*s.data("index")+"%"})),s.css("height",n.outerHeight(i.siblings("ul"),!0)+n.height(r))}}),t(e).on("resize.fndtn.topbar",function(){n.breakpoint()||t(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover")}.bind(this)),t("body").on("click.fndtn.topbar",function(e){t(e.target).closest("[data-topbar], .top-bar").length>0||t(".top-bar li, [data-topbar] li").removeClass("hover")}),t(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(e){e.preventDefault();var i=t(this),s=i.closest(".top-bar, [data-topbar]"),o=s.children("ul").first(),r=s.find("section, .section"),a=i.closest("li.moved"),l=a.parent();s.data("index",s.data("index")-1),n.rtl?(r.css({right:-100*s.data("index")+"%"}),r.find(">.name").css({right:100*s.data("index")+"%"})):(r.css({left:-100*s.data("index")+"%"}),r.find(">.name").css({left:100*s.data("index")+"%"})),0===s.data("index")?s.css("height",""):s.css("height",n.outerHeight(l,!0)+n.height(o)),setTimeout(function(){a.removeClass("moved")},300)})},breakpoint:function(){return t(n).width()<=this.settings.breakPoint||t("html").hasClass("lt-ie9")},assemble:function(){var e=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=t(this),i=n.siblings(".dropdown"),s=n.attr("href");if(e.settings.mobile_show_parent_link&&s&&s.length>1)var o=t('
    2. '+n.text()+"
    3. ");else o=t('
    4. ');1==e.settings.custom_back_text?o.find("h5>a").html("« "+e.settings.back_text):o.find("h5>a").html("« "+n.html()),i.prepend(o)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},height:function(e){var n=0,i=this;return e.find("> li").each(function(){n+=i.outerHeight(t(this),!0)}),n},sticky:function(){var n="."+this.settings.stickyClass;if(t(n).length>0){var i,s=t(n).length?t(n).offset().top:0,o=t(e),r=this.outerHeight(t(".top-bar"));t(e).resize(function(){clearTimeout(i),i=setTimeout(function(){s=t(n).offset().top},105)}),o.scroll(function(){o.scrollTop()>s?(t(n).addClass("fixed"),t("body").css("padding-top",r)):o.scrollTop()<=s&&(t(n).removeClass("fixed"),t("body").css("padding-top","0"))})}},off:function(){t(this.scope).off(".fndtn.topbar"),t(e).off(".fndtn.topbar")},reflow:function(){}}}(Foundation.zj,this,this.document);