text: !function(t,e){function n(t){var e=t.length,n=ue.type(t);return ue.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){var e=Te[t]={};return ue.each(t.match(pe)||[],function(t,n){e[n]=!0}),e}function s(t,n,i,s){if(ue.acceptData(t)){var a,o,r=ue.expando,l=t.nodeType,c=l?ue.cache:t,u=l?t[r]:t[r]&&r;if(u&&c[u]&&(s||c[u].data)||i!==e||"string"!=typeof n)return u||(u=l?t[r]=ee.pop()||ue.guid++:r),c[u]||(c[u]=l?{}:{toJSON:ue.noop}),("object"==typeof n||"function"==typeof n)&&(s?c[u]=ue.extend(c[u],n):c[u].data=ue.extend(c[u].data,n)),o=c[u],s||(o.data||(o.data={}),o=o.data),i!==e&&(o[ue.camelCase(n)]=i),"string"==typeof n?(a=o[n],null==a&&(a=o[ue.camelCase(n)])):a=o,a}}function a(t,e,n){if(ue.acceptData(t)){var i,s,a=t.nodeType,o=a?ue.cache:t,l=a?t[ue.expando]:ue.expando;if(o[l]){if(e&&(i=n?o[l]:o[l].data)){ue.isArray(e)?e=e.concat(ue.map(e,ue.camelCase)):e in i?e=[e]:(e=ue.camelCase(e),e=e in i?[e]:e.split(" ")),s=e.length;for(;s--;)delete i[e[s]];if(n?!r(i):!ue.isEmptyObject(i))return}(n||(delete o[l].data,r(o[l])))&&(a?ue.cleanData([t],!0):ue.support.deleteExpando||o!=o.window?delete o[l]:o[l]=null)}}}function o(t,n,i){if(i===e&&1===t.nodeType){var s="data-"+n.replace(Se,"-$1").toLowerCase();if(i=t.getAttribute(s),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:Fe.test(i)?ue.parseJSON(i):i}catch(a){}ue.data(t,n,i)}else i=e}return i}function r(t){var e;for(e in t)if(("data"!==e||!ue.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function l(){return!0}function c(){return!1}function u(){try{return U.activeElement}catch(t){}}function d(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function p(t,e,n){if(ue.isFunction(e))return ue.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ue.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Re.test(e))return ue.filter(e,t,n);e=ue.filter(e,t)}return ue.grep(t,function(t){return ue.inArray(t,e)>=0!==n})}function f(t){var e=Ye.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function h(t,e){return ue.nodeName(t,"table")&&ue.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function g(t){return t.type=(null!==ue.find.attr(t,"type"))+"/"+t.type,t}function m(t){var e=an.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function v(t,e){for(var n,i=0;null!=(n=t[i]);i++)ue._data(n,"globalEval",!e||ue._data(e[i],"globalEval"))}function y(t,e){if(1===e.nodeType&&ue.hasData(t)){var n,i,s,a=ue._data(t),o=ue._data(e,a),r=a.events;if(r){delete o.handle,o.events={};for(n in r)for(i=0,s=r[n].length;s>i;i++)ue.event.add(e,n,r[n][i])}o.data&&(o.data=ue.extend({},o.data))}}function b(t,e){var n,i,s;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!ue.support.noCloneEvent&&e[ue.expando]){s=ue._data(e);for(i in s.events)ue.removeEvent(e,i,s.handle);e.removeAttribute(ue.expando)}"script"===n&&e.text!==t.text?(g(e).text=t.text,m(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),ue.support.html5Clone&&t.innerHTML&&!ue.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&en.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}function _(t,n){var i,s,a=0,o=typeof t.getElementsByTagName!==Z?t.getElementsByTagName(n||"*"):typeof t.querySelectorAll!==Z?t.querySelectorAll(n||"*"):e;if(!o)for(o=[],i=t.childNodes||t;null!=(s=i[a]);a++)!n||ue.nodeName(s,n)?o.push(s):ue.merge(o,_(s,n));return n===e||n&&ue.nodeName(t,n)?ue.merge([t],o):o}function x(t){en.test(t.type)&&(t.defaultChecked=t.checked)}function k(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,s=Tn.length;s--;)if(e=Tn[s]+n,e in t)return e;return i}function w(t,e){return t=e||t,"none"===ue.css(t,"display")||!ue.contains(t.ownerDocument,t)}function C(t,e){for(var n,i,s,a=[],o=0,r=t.length;r>o;o++)i=t[o],i.style&&(a[o]=ue._data(i,"olddisplay"),n=i.style.display,e?(a[o]||"none"!==n||(i.style.display=""),""===i.style.display&&w(i)&&(a[o]=ue._data(i,"olddisplay",E(i.nodeName)))):a[o]||(s=w(i),(n&&"none"!==n||!s)&&ue._data(i,"olddisplay",s?n:ue.css(i,"display"))));for(o=0;r>o;o++)i=t[o],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?a[o]||"":"none"));return t}function T(t,e,n){var i=yn.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function F(t,e,n,i,s){for(var a=n===(i?"border":"content")?4:"width"===e?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=ue.css(t,n+Cn[a],!0,s)),i?("content"===n&&(o-=ue.css(t,"padding"+Cn[a],!0,s)),"margin"!==n&&(o-=ue.css(t,"border"+Cn[a]+"Width",!0,s))):(o+=ue.css(t,"padding"+Cn[a],!0,s),"padding"!==n&&(o+=ue.css(t,"border"+Cn[a]+"Width",!0,s)));return o}function S(t,e,n){var i=!0,s="width"===e?t.offsetWidth:t.offsetHeight,a=dn(t),o=ue.support.boxSizing&&"border-box"===ue.css(t,"boxSizing",!1,a);if(0>=s||null==s){if(s=pn(t,e,a),(0>s||null==s)&&(s=t.style[e]),bn.test(s))return s;i=o&&(ue.support.boxSizingReliable||s===t.style[e]),s=parseFloat(s)||0}return s+F(t,e,n||(o?"border":"content"),i,a)+"px"}function E(t){var e=U,n=xn[t];return n||(n=D(t,e),"none"!==n&&n||(un=(un||ue("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(un[0].contentWindow||un[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=D(t,e),un.detach()),xn[t]=n),n}function D(t,e){var n=ue(e.createElement(t)).appendTo(e.body),i=ue.css(n[0],"display");return n.remove(),i}function A(t,e,n,i){var s;if(ue.isArray(e))ue.each(e,function(e,s){n||Sn.test(t)?i(t,s):A(t+"["+("object"==typeof s?e:"")+"]",s,n,i)});else if(n||"object"!==ue.type(e))i(t,e);else for(s in e)A(t+"["+s+"]",e[s],n,i)}function j(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,s=0,a=e.toLowerCase().match(pe)||[];if(ue.isFunction(n))for(;i=a[s++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function N(t,e,n,i){function s(r){var l;return a[r]=!0,ue.each(t[r]||[],function(t,r){var c=r(e,n,i);return"string"!=typeof c||o||a[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}var a={},o=t===Bn;return s(e.dataTypes[0])||!a["*"]&&s("*")}function $(t,n){var i,s,a=ue.ajaxSettings.flatOptions||{};for(s in n)n[s]!==e&&((a[s]?t:i||(i={}))[s]=n[s]);return i&&ue.extend(!0,t,i),t}function H(t,n,i){for(var s,a,o,r,l=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),a===e&&(a=t.mimeType||n.getResponseHeader("Content-Type"));if(a)for(r in l)if(l[r]&&l[r].test(a)){c.unshift(r);break}if(c[0]in i)o=c[0];else{for(r in i){if(!c[0]||t.converters[r+" "+c[0]]){o=r;break}s||(s=r)}o=o||s}return o?(o!==c[0]&&c.unshift(o),i[o]):void 0}function L(t,e,n,i){var s,a,o,r,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(a=u.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=c[l+" "+a]||c["* "+a],!o)for(s in c)if(r=s.split(" "),r[1]===a&&(o=c[l+" "+r[0]]||c["* "+r[0]])){o===!0?o=c[s]:c[s]!==!0&&(a=r[0],u.unshift(r[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function M(){try{return new t.XMLHttpRequest}catch(e){}}function q(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function I(){return setTimeout(function(){Kn=e}),Kn=ue.now()}function O(t,e,n){for(var i,s=(ai[e]||[]).concat(ai["*"]),a=0,o=s.length;o>a;a++)if(i=s[a].call(n,e,t))return i}function P(t,e,n){var i,s,a=0,o=si.length,r=ue.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Kn||I(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,a=1-i,o=0,l=c.tweens.length;l>o;o++)c.tweens[o].run(a);return r.notifyWith(t,[c,a,n]),1>a&&l?n:(r.resolveWith(t,[c]),!1)},c=r.promise({elem:t,props:ue.extend({},e),opts:ue.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Kn||I(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ue.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(s)return this;for(s=!0;i>n;n++)c.tweens[n].run(1);return e?r.resolveWith(t,[c,e]):r.rejectWith(t,[c,e]),this}}),u=c.props;for(z(u,c.opts.specialEasing);o>a;a++)if(i=si[a].call(c,t,u,c.opts))return i;return ue.map(u,O,c),ue.isFunction(c.opts.start)&&c.opts.start.call(t,c),ue.fx.timer(ue.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(t,e){var n,i,s,a,o;for(n in t)if(i=ue.camelCase(n),s=e[i],a=t[n],ue.isArray(a)&&(s=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),o=ue.cssHooks[i],o&&"expand"in o){a=o.expand(a),delete t[i];for(n in a)n in t||(t[n]=a[n],e[n]=s)}else e[i]=s}function R(t,e,n){var i,s,a,o,r,l,c=this,u={},d=t.style,p=t.nodeType&&w(t),f=ue._data(t,"fxshow");n.queue||(r=ue._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,c.always(function(){c.always(function(){r.unqueued--,ue.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===ue.css(t,"display")&&"none"===ue.css(t,"float")&&(ue.support.inlineBlockNeedsLayout&&"inline"!==E(t.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",ue.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],ei.exec(s)){if(delete e[i],a=a||"toggle"===s,s===(p?"hide":"show"))continue;u[i]=f&&f[i]||ue.style(t,i)}if(!ue.isEmptyObject(u)){f?"hidden"in f&&(p=f.hidden):f=ue._data(t,"fxshow",{}),a&&(f.hidden=!p),p?ue(t).show():c.done(function(){ue(t).hide()}),c.done(function(){var e;ue._removeData(t,"fxshow");for(e in u)ue.style(t,e,u[e])});for(i in u)o=O(p?f[i]:0,i,c),i in f||(f[i]=o.start,p&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function W(t,e,n,i,s){return new W.prototype.init(t,e,n,i,s)}function B(t,e){var n,i={height:t},s=0;for(e=e?1:0;4>s;s+=2-e)n=Cn[s],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function X(t){return ue.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var Y,Q,Z=typeof e,J=t.location,U=t.document,V=U.documentElement,G=t.jQuery,K=t.$,te={},ee=[],ne="1.10.2",ie=ee.concat,se=ee.push,ae=ee.slice,oe=ee.indexOf,re=te.toString,le=te.hasOwnProperty,ce=ne.trim,ue=function(t,e){return new ue.fn.init(t,e,Q)},de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=/\S+/g,fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ge=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,me=/^[\],:{}\s]*$/,ve=/(?:^|:|,)(?:\s*\[)+/g,ye=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,be=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,_e=/^-ms-/,xe=/-([\da-z])/gi,ke=function(t,e){return e.toUpperCase()},we=function(t){(U.addEventListener||"load"===t.type||"complete"===U.readyState)&&(Ce(),ue.ready())},Ce=function(){U.addEventListener?(U.removeEventListener("DOMContentLoaded",we,!1),t.removeEventListener("load",we,!1)):(U.detachEvent("onreadystatechange",we),t.detachEvent("onload",we))};ue.fn=ue.prototype={jquery:ne,constructor:ue,init:function(t,n,i){var s,a;if(!t)return this;if("string"==typeof t){if(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:he.exec(t),!s||!s[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(s[1]){if(n=n instanceof ue?n[0]:n,ue.merge(this,ue.parseHTML(s[1],n&&n.nodeType?n.ownerDocument||n:U,!0)),ge.test(s[1])&&ue.isPlainObject(n))for(s in n)ue.isFunction(this[s])?this[s](n[s]):this.attr(s,n[s]);return this}if(a=U.getElementById(s[2]),a&&a.parentNode){if(a.id!==s[2])return i.find(t);this.length=1,this[0]=a}return this.context=U,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ue.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),ue.makeArray(t,this))},selector:"",length:0,toArray:function(){return ae.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=ue.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ue.each(this,t,e)},ready:function(t){return ue.ready.promise().done(t),this},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(ue.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:se,sort:[].sort,splice:[].splice},ue.fn.init.prototype=ue.fn,ue.extend=ue.fn.extend=function(){var t,n,i,s,a,o,r=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[1]||{},l=2),"object"==typeof r||ue.isFunction(r)||(r={}),c===l&&(r=this,--l);c>l;l++)if(null!=(a=arguments[l]))for(s in a)t=r[s],i=a[s],r!==i&&(u&&i&&(ue.isPlainObject(i)||(n=ue.isArray(i)))?(n?(n=!1,o=t&&ue.isArray(t)?t:[]):o=t&&ue.isPlainObject(t)?t:{},r[s]=ue.extend(u,o,i)):i!==e&&(r[s]=i));return r},ue.extend({expando:"jQuery"+(ne+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===ue&&(t.$=K),e&&t.jQuery===ue&&(t.jQuery=G),ue},isReady:!1,readyWait:1,holdReady:function(t){t?ue.readyWait++:ue.ready(!0)},ready:function(t){if(t===!0?!--ue.readyWait:!ue.isReady){if(!U.body)return setTimeout(ue.ready);ue.isReady=!0,t!==!0&&--ue.readyWait>0||(Y.resolveWith(U,[ue]),ue.fn.trigger&&ue(U).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===ue.type(t)},isArray:Array.isArray||function(t){return"array"===ue.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?te[re.call(t)]||"object":typeof t},isPlainObject:function(t){var n;if(!t||"object"!==ue.type(t)||t.nodeType||ue.isWindow(t))return!1;try{if(t.constructor&&!le.call(t,"constructor")&&!le.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}if(ue.support.ownLast)for(n in t)return le.call(t,n);for(n in t);return n===e||le.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||U;var i=ge.exec(t),s=!n&&[];return i?[e.createElement(i[1])]:(i=ue.buildFragment([t],e,s),s&&ue(s).remove(),ue.merge([],i.childNodes))},parseJSON:function(e){return t.JSON&&t.JSON.parse?t.JSON.parse(e):null===e?e:"string"==typeof e&&(e=ue.trim(e),e&&me.test(e.replace(ye,"@").replace(be,"]").replace(ve,"")))?new Function("return "+e)():(ue.error("Invalid JSON: "+e),void 0)},parseXML:function(n){var i,s;if(!n||"string"!=typeof n)return null;try{t.DOMParser?(s=new DOMParser,i=s.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(a){i=e}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||ue.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&ue.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(_e,"ms-").replace(xe,ke)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var s,a=0,o=t.length,r=n(t);if(i){if(r)for(;o>a&&(s=e.apply(t[a],i),s!==!1);a++);else for(a in t)if(s=e.apply(t[a],i),s===!1)break}else if(r)for(;o>a&&(s=e.call(t[a],a,t[a]),s!==!1);a++);else for(a in t)if(s=e.call(t[a],a,t[a]),s===!1)break;return t},trim:ce&&!ce.call("﻿ ")?function(t){return null==t?"":ce.call(t)}:function(t){return null==t?"":(t+"").replace(fe,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ue.merge(i,"string"==typeof t?[t]:t):se.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(oe)return oe.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var i=n.length,s=t.length,a=0;if("number"==typeof i)for(;i>a;a++)t[s++]=n[a];else for(;n[a]!==e;)t[s++]=n[a++];return t.length=s,t},grep:function(t,e,n){var i,s=[],a=0,o=t.length;for(n=!!n;o>a;a++)i=!!e(t[a],a),n!==i&&s.push(t[a]);return s},map:function(t,e,i){var s,a=0,o=t.length,r=n(t),l=[];if(r)for(;o>a;a++)s=e(t[a],a,i),null!=s&&(l[l.length]=s);else for(a in t)s=e(t[a],a,i),null!=s&&(l[l.length]=s);return ie.apply([],l)},guid:1,proxy:function(t,n){var i,s,a;return"string"==typeof n&&(a=t[n],n=t,t=a),ue.isFunction(t)?(i=ae.call(arguments,2),s=function(){return t.apply(n||this,i.concat(ae.call(arguments)))},s.guid=t.guid=t.guid||ue.guid++,s):e},access:function(t,n,i,s,a,o,r){var l=0,c=t.length,u=null==i;if("object"===ue.type(i)){a=!0;for(l in i)ue.access(t,n,l,i[l],!0,o,r)}else if(s!==e&&(a=!0,ue.isFunction(s)||(r=!0),u&&(r?(n.call(t,s),n=null):(u=n,n=function(t,e,n){return u.call(ue(t),n)})),n))for(;c>l;l++)n(t[l],i,r?s:s.call(t[l],l,n(t[l],i)));return a?t:u?n.call(t):c?n(t[0],i):o},now:function(){return(new Date).getTime()},swap:function(t,e,n,i){var s,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];s=n.apply(t,i||[]);for(a in e)t.style[a]=o[a];return s}}),ue.ready.promise=function(e){if(!Y)if(Y=ue.Deferred(),"complete"===U.readyState)setTimeout(ue.ready);else if(U.addEventListener)U.addEventListener("DOMContentLoaded",we,!1),t.addEventListener("load",we,!1);else{U.attachEvent("onreadystatechange",we),t.attachEvent("onload",we);var n=!1;try{n=null==t.frameElement&&U.documentElement}catch(i){}n&&n.doScroll&&!function s(){if(!ue.isReady){try{n.doScroll("left")}catch(t){return setTimeout(s,50)}Ce(),ue.ready()}}()}return Y.promise(e)},ue.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){te["[object "+e+"]"]=e.toLowerCase()}),Q=ue(U),function(t,e){function n(t,e,n,i){var s,a,o,r,l,c,u,d,h,g;if((e?e.ownerDocument||e:P)!==N&&j(e),e=e||N,n=n||[],!t||"string"!=typeof t)return n;if(1!==(r=e.nodeType)&&9!==r)return[];if(H&&!i){if(s=be.exec(t))if(o=s[1]){if(9===r){if(a=e.getElementById(o),!a||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(o))&&I(e,a)&&a.id===o)return n.push(a),n}else{if(s[2])return te.apply(n,e.getElementsByTagName(t)),n;if((o=s[3])&&w.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(o)),n}if(w.qsa&&(!L||!L.test(t))){if(d=u=O,h=e,g=9===r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){for(c=p(t),(u=e.getAttribute("id"))?d=u.replace(ke,"\\$&"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=c.length;l--;)c[l]=d+f(c[l]);h=fe.test(t)&&e.parentNode||e,g=c.join(",")}if(g)try{return te.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{u||e.removeAttribute("id")}}}return x(t.replace(ce,"$1"),e,n,i)}function i(){function t(n,i){return e.push(n+=" ")>T.cacheLength&&delete t[e.shift()],t[n]=i}var e=[];return t}function s(t){return t[O]=!0,t}function a(t){var e=N.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=t.length;i--;)T.attrHandle[n[i]]=e}function r(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||J)-(~t.sourceIndex||J);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return s(function(e){return e=+e,s(function(n,i){for(var s,a=t([],n.length,e),o=a.length;o--;)n[s=a[o]]&&(n[s]=!(i[s]=n[s]))})})}function d(){}function p(t,e){var i,s,a,o,r,l,c,u=B[t+" "];if(u)return e?0:u.slice(0);for(r=t,l=[],c=T.preFilter;r;){(!i||(s=de.exec(r)))&&(s&&(r=r.slice(s[0].length)||r),l.push(a=[])),i=!1,(s=pe.exec(r))&&(i=s.shift(),a.push({value:i,type:s[0].replace(ce," ")}),r=r.slice(i.length));for(o in T.filter)!(s=ve[o].exec(r))||c[o]&&!(s=c[o](s))||(i=s.shift(),a.push({value:i,type:o,matches:s}),r=r.slice(i.length));if(!i)break}return e?r.length:r?n.error(t):B(t,l).slice(0)}function f(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function h(t,e,n){var i=e.dir,s=n&&"parentNode"===i,a=R++;return e.first?function(e,n,a){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,a)}:function(e,n,o){var r,l,c,u=z+" "+a;if(o){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=e[O]||(e[O]={}),(l=c[i])&&l[0]===u){if((r=l[1])===!0||r===C)return r===!0}else if(l=c[i]=[u],l[1]=t(e,n,o)||C,l[1]===!0)return!0}}function g(t){return t.length>1?function(e,n,i){for(var s=t.length;s--;)if(!t[s](e,n,i))return!1;return!0}:t[0]}function m(t,e,n,i,s){for(var a,o=[],r=0,l=t.length,c=null!=e;l>r;r++)(a=t[r])&&(!n||n(a,i,s))&&(o.push(a),c&&e.push(r));return o}function v(t,e,n,i,a,o){return i&&!i[O]&&(i=v(i)),a&&!a[O]&&(a=v(a,o)),s(function(s,o,r,l){var c,u,d,p=[],f=[],h=o.length,g=s||_(e||"*",r.nodeType?[r]:r,[]),v=!t||!s&&e?g:m(g,p,t,r,l),y=n?a||(s?t:h||i)?[]:o:v;if(n&&n(v,y,r,l),i)for(c=m(y,f),i(c,[],r,l),u=c.length;u--;)(d=c[u])&&(y[f[u]]=!(v[f[u]]=d));if(s){if(a||t){if(a){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(v[u]=d);a(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=a?ne.call(s,d):p[u])>-1&&(s[c]=!(o[c]=d))}}else y=m(y===o?y.splice(h,y.length):y),a?a(null,o,y,l):te.apply(o,y)})}function y(t){for(var e,n,i,s=t.length,a=T.relative[t[0].type],o=a||T.relative[" "],r=a?1:0,l=h(function(t){return t===e},o,!0),c=h(function(t){return ne.call(e,t)>-1},o,!0),u=[function(t,n,i){return!a&&(i||n!==D)||((e=n).nodeType?l(t,n,i):c(t,n,i))}];s>r;r++)if(n=T.relative[t[r].type])u=[h(g(u),n)];else{if(n=T.filter[t[r].type].apply(null,t[r].matches),n[O]){for(i=++r;s>i&&!T.relative[t[i].type];i++);return v(r>1&&g(u),r>1&&f(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(ce,"$1"),n,i>r&&y(t.slice(r,i)),s>i&&y(t=t.slice(i)),s>i&&f(t))}u.push(n)}return g(u)}function b(t,e){var i=0,a=e.length>0,o=t.length>0,r=function(s,r,l,c,u){var d,p,f,h=[],g=0,v="0",y=s&&[],b=null!=u,_=D,x=s||o&&T.find.TAG("*",u&&r.parentNode||r),k=z+=null==_?1:Math.random()||.1;for(b&&(D=r!==N&&r,C=i);null!=(d=x[v]);v++){if(o&&d){for(p=0;f=t[p++];)if(f(d,r,l)){c.push(d);break}b&&(z=k,C=++i)}a&&((d=!f&&d)&&g--,s&&y.push(d))}if(g+=v,a&&v!==g){for(p=0;f=e[p++];)f(y,h,r,l);if(s){if(g>0)for(;v--;)y[v]||h[v]||(h[v]=G.call(c));h=m(h)}te.apply(c,h),b&&!s&&h.length>0&&g+e.length>1&&n.uniqueSort(c)}return b&&(z=k,D=_),y};return a?s(r):r}function _(t,e,i){for(var s=0,a=e.length;a>s;s++)n(t,e[s],i);return i}function x(t,e,n,i){var s,a,o,r,l,c=p(t);if(!i&&1===c.length){if(a=c[0]=c[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&w.getById&&9===e.nodeType&&H&&T.relative[a[1].type]){if(e=(T.find.ID(o.matches[0].replace(we,Ce),e)||[])[0],!e)return n;t=t.slice(a.shift().value.length)}for(s=ve.needsContext.test(t)?0:a.length;s--&&(o=a[s],!T.relative[r=o.type]);)if((l=T.find[r])&&(i=l(o.matches[0].replace(we,Ce),fe.test(a[0].type)&&e.parentNode||e))){if(a.splice(s,1),t=i.length&&f(a),!t)return te.apply(n,i),n;break}}return E(t,c)(i,e,!H,n,fe.test(t)),n}var k,w,C,T,F,S,E,D,A,j,N,$,H,L,M,q,I,O="sizzle"+-new Date,P=t.document,z=0,R=0,W=i(),B=i(),X=i(),Y=!1,Q=function(t,e){return t===e?(Y=!0,0):0},Z=typeof e,J=1<<31,U={}.hasOwnProperty,V=[],G=V.pop,K=V.push,te=V.push,ee=V.slice,ne=V.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ie="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",se="[\\x20\\t\\r\\n\\f]",ae="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe=ae.replace("w","w#"),re="\\["+se+"*("+ae+")"+se+"*(?:([*^$|!~]?=)"+se+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+oe+")|)|)"+se+"*\\]",le=":("+ae+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+re.replace(3,8)+")*)|.*)\\)|)",ce=new RegExp("^"+se+"+|((?:^|[^\\\\])(?:\\\\.)*)"+se+"+$","g"),de=new RegExp("^"+se+"*,"+se+"*"),pe=new RegExp("^"+se+"*([>+~]|"+se+")"+se+"*"),fe=new RegExp(se+"*[+~]"),he=new RegExp("="+se+"*([^\\]'\"]*)"+se+"*\\]","g"),ge=new RegExp(le),me=new RegExp("^"+oe+"$"),ve={ID:new RegExp("^#("+ae+")"),CLASS:new RegExp("^\\.("+ae+")"),TAG:new RegExp("^("+ae.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+le),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+se+"*(even|odd|(([+-]|)(\\d*)n|)"+se+"*(?:([+-]|)"+se+"*(\\d+)|))"+se+"*\\)|)","i"),bool:new RegExp("^(?:"+ie+")$","i"),needsContext:new RegExp("^"+se+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+se+"*((?:-\\d)?\\d*)"+se+"*\\)|)(?=[^-]|$)","i")},ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_e=/^(?:input|select|textarea|button)$/i,xe=/^h\d$/i,ke=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+se+"?|("+se+")|.)","ig"),Ce=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{te.apply(V=ee.call(P.childNodes),P.childNodes),V[P.childNodes.length].nodeType}catch(Te){te={apply:V.length?function(t,e){K.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}S=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},w=n.support={},j=n.setDocument=function(t){var e=t?t.ownerDocument||t:P,n=e.defaultView;return e!==N&&9===e.nodeType&&e.documentElement?(N=e,$=e.documentElement,H=!S(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){j()}),w.attributes=a(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=a(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=a(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),w.getById=a(function(t){return $.appendChild(t).id=O,!e.getElementsByName||!e.getElementsByName(O).length}),w.getById?(T.find.ID=function(t,e){if(typeof e.getElementById!==Z&&H){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(t){var e=t.replace(we,Ce);return function(t){return t.getAttribute("id")===e}}):(delete T.find.ID,T.filter.ID=function(t){var e=t.replace(we,Ce);return function(t){var n=typeof t.getAttributeNode!==Z&&t.getAttributeNode("id");return n&&n.value===e}}),T.find.TAG=w.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==Z?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],s=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[s++];)1===n.nodeType&&i.push(n);return i}return a},T.find.CLASS=w.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==Z&&H?e.getElementsByClassName(t):void 0},M=[],L=[],(w.qsa=ye.test(e.querySelectorAll))&&(a(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||L.push("\\["+se+"*(?:value|"+ie+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),a(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&L.push("[*^$]="+se+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=ye.test(q=$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector))&&a(function(t){w.disconnectedMatch=q.call(t,"div"),q.call(t,"[s!='']:x"),M.push("!=",le)}),L=L.length&&new RegExp(L.join("|")),M=M.length&&new RegExp(M.join("|")),I=ye.test($.contains)||$.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},Q=$.compareDocumentPosition?function(t,n){if(t===n)return Y=!0,0;var i=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return i?1&i||!w.sortDetached&&n.compareDocumentPosition(t)===i?t===e||I(P,t)?-1:n===e||I(P,n)?1:A?ne.call(A,t)-ne.call(A,n):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,s=0,a=t.parentNode,o=n.parentNode,l=[t],c=[n];if(t===n)return Y=!0,0;if(!a||!o)return t===e?-1:n===e?1:a?-1:o?1:A?ne.call(A,t)-ne.call(A,n):0;if(a===o)return r(t,n);for(i=t;i=i.parentNode;)l.unshift(i);for(i=n;i=i.parentNode;)c.unshift(i);for(;l[s]===c[s];)s++;return s?r(l[s],c[s]):l[s]===P?-1:c[s]===P?1:0},e):N},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==N&&j(t),e=e.replace(he,"='$1']"),!(!w.matchesSelector||!H||M&&M.test(e)||L&&L.test(e)))try{var i=q.call(t,e);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(s){}return n(e,N,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==N&&j(t),I(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==N&&j(t);var i=T.attrHandle[n.toLowerCase()],s=i&&U.call(T.attrHandle,n.toLowerCase())?i(t,n,!H):e;return s===e?w.attributes||!H?t.getAttribute(n):(s=t.getAttributeNode(n))&&s.specified?s.value:null:s},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var e,n=[],i=0,s=0;if(Y=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(Q),Y){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)t.splice(n[i],1)}return t},F=n.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+=F(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[i];i++)n+=F(e);return n},T=n.selectors={cacheLength:50,createPseudo:s,match:ve,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(we,Ce),t[3]=(t[4]||t[5]||"").replace(we,Ce),"~="===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]||n.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]&&n.error(t[0]),t},PSEUDO:function(t){var n,i=!t[5]&&t[2];return ve.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:i&&ge.test(i)&&(n=p(i,!0))&&(n=i.indexOf(")",i.length-n)-i.length)&&(t[0]=t[0].slice(0,n),t[2]=i.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(we,Ce).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+se+")"+t+"("+se+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==Z&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(s){var a=n.attr(s,t);return null==a?"!="===e:e?(a+="","="===e?a===i:"!="===e?a!==i:"^="===e?i&&0===a.indexOf(i):"*="===e?i&&a.indexOf(i)>-1:"$="===e?i&&a.slice(-i.length)===i:"~="===e?(" "+a+" ").indexOf(i)>-1:"|="===e?a===i||a.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,s){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),r="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=a!==o?"nextSibling":"previousSibling",m=e.parentNode,v=r&&e.nodeName.toLowerCase(),y=!l&&!r;if(m){if(a){for(;g;){for(d=e;d=d[g];)if(r?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=g="only"===t&&!h&&"nextSibling"}return!0}if(h=[o?m.firstChild:m.lastChild],o&&y){for(u=m[O]||(m[O]={}),c=u[t]||[],f=c[0]===z&&c[1],p=c[0]===z&&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]=[z,f,p];break}}else if(y&&(c=(e[O]||(e[O]={}))[t])&&c[0]===z)p=c[1];else for(;(d=++f&&d&&d[g]||(p=f=0)||h.pop())&&((r?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[O]||(d[O]={}))[t]=[z,p]),d!==e)););return p-=s,p===i||p%i===0&&p/i>=0
  }}},PSEUDO:function(t,e){var i,a=T.pseudos[t]||T.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return a[O]?a(e):a.length>1?(i=[t,t,"",e],T.setFilters.hasOwnProperty(t.toLowerCase())?s(function(t,n){for(var i,s=a(t,e),o=s.length;o--;)i=ne.call(t,s[o]),t[i]=!(n[i]=s[o])}):function(t){return a(t,0,i)}):a}},pseudos:{not:s(function(t){var e=[],n=[],i=E(t.replace(ce,"$1"));return i[O]?s(function(t,e,n,s){for(var a,o=i(t,null,s,[]),r=t.length;r--;)(a=o[r])&&(t[r]=!(e[r]=a))}):function(t,s,a){return e[0]=t,i(e,null,a,n),!n.pop()}}),has:s(function(t){return function(e){return n(t,e).length>0}}),contains:s(function(t){return function(e){return(e.textContent||e.innerText||F(e)).indexOf(t)>-1}}),lang:s(function(t){return me.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(we,Ce).toLowerCase(),function(e){var n;do if(n=H?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===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===$},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},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,t.selected===!0},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!T.pseudos.empty(t)},header:function(t){return xe.test(t.nodeName)},input:function(t){return _e.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:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},T.pseudos.nth=T.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[k]=l(k);for(k in{submit:!0,reset:!0})T.pseudos[k]=c(k);d.prototype=T.filters=T.pseudos,T.setFilters=new d,E=n.compile=function(t,e){var n,i=[],s=[],a=X[t+" "];if(!a){for(e||(e=p(t)),n=e.length;n--;)a=y(e[n]),a[O]?i.push(a):s.push(a);a=X(t,b(s,i))}return a},w.sortStable=O.split("").sort(Q).join("")===O,w.detectDuplicates=Y,j(),w.sortDetached=a(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),a(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&a(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),a(function(t){return null==t.getAttribute("disabled")})||o(ie,function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&i.specified?i.value:t[e]===!0?e.toLowerCase():null}),ue.find=n,ue.expr=n.selectors,ue.expr[":"]=ue.expr.pseudos,ue.unique=n.uniqueSort,ue.text=n.getText,ue.isXMLDoc=n.isXML,ue.contains=n.contains}(t);var Te={};ue.Callbacks=function(t){t="string"==typeof t?Te[t]||i(t):ue.extend({},t);var n,s,a,o,r,l,c=[],u=!t.once&&[],d=function(e){for(s=t.memory&&e,a=!0,r=l||0,l=0,o=c.length,n=!0;c&&o>r;r++)if(c[r].apply(e[0],e[1])===!1&&t.stopOnFalse){s=!1;break}n=!1,c&&(u?u.length&&d(u.shift()):s?c=[]:p.disable())},p={add:function(){if(c){var e=c.length;!function i(e){ue.each(e,function(e,n){var s=ue.type(n);"function"===s?t.unique&&p.has(n)||c.push(n):n&&n.length&&"string"!==s&&i(n)})}(arguments),n?o=c.length:s&&(l=e,d(s))}return this},remove:function(){return c&&ue.each(arguments,function(t,e){for(var i;(i=ue.inArray(e,c,i))>-1;)c.splice(i,1),n&&(o>=i&&o--,r>=i&&r--)}),this},has:function(t){return t?ue.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],o=0,this},disable:function(){return c=u=s=e,this},disabled:function(){return!c},lock:function(){return u=e,s||p.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||a&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):d(e)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!a}};return p},ue.extend({Deferred:function(t){var e=[["resolve","done",ue.Callbacks("once memory"),"resolved"],["reject","fail",ue.Callbacks("once memory"),"rejected"],["notify","progress",ue.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ue.Deferred(function(n){ue.each(e,function(e,a){var o=a[0],r=ue.isFunction(t[e])&&t[e];s[a[1]](function(){var t=r&&r.apply(this,arguments);t&&ue.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===i?n.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ue.extend(t,i):i}},s={};return i.pipe=i.then,ue.each(e,function(t,a){var o=a[2],r=a[3];i[a[1]]=o.add,r&&o.add(function(){n=r},e[1^t][2].disable,e[2][2].lock),s[a[0]]=function(){return s[a[0]+"With"](this===s?i:this,arguments),this},s[a[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e,n,i,s=0,a=ae.call(arguments),o=a.length,r=1!==o||t&&ue.isFunction(t.promise)?o:0,l=1===r?t:ue.Deferred(),c=function(t,n,i){return function(s){n[t]=this,i[t]=arguments.length>1?ae.call(arguments):s,i===e?l.notifyWith(n,i):--r||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);o>s;s++)a[s]&&ue.isFunction(a[s].promise)?a[s].promise().done(c(s,i,a)).fail(l.reject).progress(c(s,n,e)):--r;return r||l.resolveWith(i,a),l.promise()}}),ue.support=function(e){var n,i,s,a,o,r,l,c,u,d=U.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],i=d.getElementsByTagName("a")[0],!i||!i.style||!n.length)return e;a=U.createElement("select"),r=a.appendChild(U.createElement("option")),s=d.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute="t"!==d.className,e.leadingWhitespace=3===d.firstChild.nodeType,e.tbody=!d.getElementsByTagName("tbody").length,e.htmlSerialize=!!d.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=!!s.value,e.optSelected=r.selected,e.enctype=!!U.createElement("form").enctype,e.html5Clone="<:nav></:nav>"!==U.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,s.checked=!0,e.noCloneChecked=s.cloneNode(!0).checked,a.disabled=!0,e.optDisabled=!r.disabled;try{delete d.test}catch(p){e.deleteExpando=!1}s=U.createElement("input"),s.setAttribute("value",""),e.input=""===s.getAttribute("value"),s.value="t",s.setAttribute("type","radio"),e.radioValue="t"===s.value,s.setAttribute("checked","t"),s.setAttribute("name","t"),o=U.createDocumentFragment(),o.appendChild(s),e.appendChecked=s.checked,e.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){e.noCloneEvent=!1}),d.cloneNode(!0).click());for(u in{submit:!0,change:!0,focusin:!0})d.setAttribute(l="on"+u,"t"),e[u+"Bubbles"]=l in t||d.attributes[l].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===d.style.backgroundClip;for(u in ue(e))break;return e.ownLast="0"!==u,ue(function(){var n,i,s,a="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",o=U.getElementsByTagName("body")[0];o&&(n=U.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",o.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=d.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===s[0].offsetHeight,s[0].style.display="",s[1].style.display="none",e.reliableHiddenOffsets=c&&0===s[0].offsetHeight,d.innerHTML="",d.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%;",ue.swap(o,null!=o.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===d.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(d,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(d,null)||{width:"4px"}).width,i=d.appendChild(U.createElement("div")),i.style.cssText=d.style.cssText=a,i.style.marginRight=i.style.width="0",d.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),typeof d.style.zoom!==Z&&(d.innerHTML="",d.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==d.offsetWidth,e.inlineBlockNeedsLayout&&(o.style.zoom=1)),o.removeChild(n),n=d=s=i=null)}),n=a=o=r=i=s=null,e}({});var Fe=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Se=/([A-Z])/g;ue.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ue.cache[t[ue.expando]]:t[ue.expando],!!t&&!r(t)},data:function(t,e,n){return s(t,e,n)},removeData:function(t,e){return a(t,e)},_data:function(t,e,n){return s(t,e,n,!0)},_removeData:function(t,e){return a(t,e,!0)},acceptData:function(t){if(t.nodeType&&1!==t.nodeType&&9!==t.nodeType)return!1;var e=t.nodeName&&ue.noData[t.nodeName.toLowerCase()];return!e||e!==!0&&t.getAttribute("classid")===e}}),ue.fn.extend({data:function(t,n){var i,s,a=null,r=0,l=this[0];if(t===e){if(this.length&&(a=ue.data(l),1===l.nodeType&&!ue._data(l,"parsedAttrs"))){for(i=l.attributes;r<i.length;r++)s=i[r].name,0===s.indexOf("data-")&&(s=ue.camelCase(s.slice(5)),o(l,s,a[s]));ue._data(l,"parsedAttrs",!0)}return a}return"object"==typeof t?this.each(function(){ue.data(this,t)}):arguments.length>1?this.each(function(){ue.data(this,t,n)}):l?o(l,t,ue.data(l,t)):null},removeData:function(t){return this.each(function(){ue.removeData(this,t)})}}),ue.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ue._data(t,e),n&&(!i||ue.isArray(n)?i=ue._data(t,e,ue.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ue.queue(t,e),i=n.length,s=n.shift(),a=ue._queueHooks(t,e),o=function(){ue.dequeue(t,e)};"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===e&&n.unshift("inprogress"),delete a.stop,s.call(t,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ue._data(t,n)||ue._data(t,n,{empty:ue.Callbacks("once memory").add(function(){ue._removeData(t,e+"queue"),ue._removeData(t,n)})})}}),ue.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length<i?ue.queue(this[0],t):n===e?this:this.each(function(){var e=ue.queue(this,t,n);ue._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ue.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ue.dequeue(this,t)})},delay:function(t,e){return t=ue.fx?ue.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var i,s=1,a=ue.Deferred(),o=this,r=this.length,l=function(){--s||a.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";r--;)i=ue._data(o[r],t+"queueHooks"),i&&i.empty&&(s++,i.empty.add(l));return l(),a.promise(n)}});var Ee,De,Ae=/[\t\r\n\f]/g,je=/\r/g,Ne=/^(?:input|select|textarea|button|object)$/i,$e=/^(?:a|area)$/i,He=/^(?:checked|selected)$/i,Le=ue.support.getSetAttribute,Me=ue.support.input;ue.fn.extend({attr:function(t,e){return ue.access(this,ue.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ue.removeAttr(this,t)})},prop:function(t,e){return ue.access(this,ue.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ue.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(n){}})},addClass:function(t){var e,n,i,s,a,o=0,r=this.length,l="string"==typeof t&&t;if(ue.isFunction(t))return this.each(function(e){ue(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(pe)||[];r>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ae," "):" ")){for(a=0;s=e[a++];)i.indexOf(" "+s+" ")<0&&(i+=s+" ");n.className=ue.trim(i)}return this},removeClass:function(t){var e,n,i,s,a,o=0,r=this.length,l=0===arguments.length||"string"==typeof t&&t;if(ue.isFunction(t))return this.each(function(e){ue(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(pe)||[];r>o;o++)if(n=this[o],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ae," "):"")){for(a=0;s=e[a++];)for(;i.indexOf(" "+s+" ")>=0;)i=i.replace(" "+s+" "," ");n.className=t?ue.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ue.isFunction(t)?this.each(function(n){ue(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,s=ue(this),a=t.match(pe)||[];e=a[i++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else(n===Z||"boolean"===n)&&(this.className&&ue._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ue._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ae," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,s,a=this[0];{if(arguments.length)return s=ue.isFunction(t),this.each(function(n){var a;1===this.nodeType&&(a=s?t.call(this,n,ue(this).val()):t,null==a?a="":"number"==typeof a?a+="":ue.isArray(a)&&(a=ue.map(a,function(t){return null==t?"":t+""})),i=ue.valHooks[this.type]||ue.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,a,"value")!==e||(this.value=a))});if(a)return i=ue.valHooks[a.type]||ue.valHooks[a.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(a,"value"))!==e?n:(n=a.value,"string"==typeof n?n.replace(je,""):null==n?"":n)}}}),ue.extend({valHooks:{option:{get:function(t){var e=ue.find.attr(t,"value");return null!=e?e:t.text}},select:{get:function(t){for(var e,n,i=t.options,s=t.selectedIndex,a="select-one"===t.type||0>s,o=a?null:[],r=a?s+1:i.length,l=0>s?r:a?s:0;r>l;l++)if(n=i[l],!(!n.selected&&l!==s||(ue.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ue.nodeName(n.parentNode,"optgroup"))){if(e=ue(n).val(),a)return e;o.push(e)}return o},set:function(t,e){for(var n,i,s=t.options,a=ue.makeArray(e),o=s.length;o--;)i=s[o],(i.selected=ue.inArray(ue(i).val(),a)>=0)&&(n=!0);return n||(t.selectedIndex=-1),a}}},attr:function(t,n,i){var s,a,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Z?ue.prop(t,n,i):(1===o&&ue.isXMLDoc(t)||(n=n.toLowerCase(),s=ue.attrHooks[n]||(ue.expr.match.bool.test(n)?De:Ee)),i===e?s&&"get"in s&&null!==(a=s.get(t,n))?a:(a=ue.find.attr(t,n),null==a?e:a):null!==i?s&&"set"in s&&(a=s.set(t,i,n))!==e?a:(t.setAttribute(n,i+""),i):(ue.removeAttr(t,n),void 0))},removeAttr:function(t,e){var n,i,s=0,a=e&&e.match(pe);if(a&&1===t.nodeType)for(;n=a[s++];)i=ue.propFix[n]||n,ue.expr.match.bool.test(n)?Me&&Le||!He.test(n)?t[i]=!1:t[ue.camelCase("default-"+n)]=t[i]=!1:ue.attr(t,n,""),t.removeAttribute(Le?n:i)},attrHooks:{type:{set:function(t,e){if(!ue.support.radioValue&&"radio"===e&&ue.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,a,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return o=1!==r||!ue.isXMLDoc(t),o&&(n=ue.propFix[n]||n,a=ue.propHooks[n]),i!==e?a&&"set"in a&&(s=a.set(t,i,n))!==e?s:t[n]=i:a&&"get"in a&&null!==(s=a.get(t,n))?s:t[n]},propHooks:{tabIndex:{get:function(t){var e=ue.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||$e.test(t.nodeName)&&t.href?0:-1}}}}),De={set:function(t,e,n){return e===!1?ue.removeAttr(t,n):Me&&Le||!He.test(n)?t.setAttribute(!Le&&ue.propFix[n]||n,n):t[ue.camelCase("default-"+n)]=t[n]=!0,n}},ue.each(ue.expr.match.bool.source.match(/\w+/g),function(t,n){var i=ue.expr.attrHandle[n]||ue.find.attr;ue.expr.attrHandle[n]=Me&&Le||!He.test(n)?function(t,n,s){var a=ue.expr.attrHandle[n],o=s?e:(ue.expr.attrHandle[n]=e)!=i(t,n,s)?n.toLowerCase():null;return ue.expr.attrHandle[n]=a,o}:function(t,n,i){return i?e:t[ue.camelCase("default-"+n)]?n.toLowerCase():null}}),Me&&Le||(ue.attrHooks.value={set:function(t,e,n){return ue.nodeName(t,"input")?(t.defaultValue=e,void 0):Ee&&Ee.set(t,e,n)}}),Le||(Ee={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}},ue.expr.attrHandle.id=ue.expr.attrHandle.name=ue.expr.attrHandle.coords=function(t,n,i){var s;return i?e:(s=t.getAttributeNode(n))&&""!==s.value?s.value:null},ue.valHooks.button={get:function(t,n){var i=t.getAttributeNode(n);return i&&i.specified?i.value:e},set:Ee.set},ue.attrHooks.contenteditable={set:function(t,e,n){Ee.set(t,""===e?!1:e,n)}},ue.each(["width","height"],function(t,e){ue.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),ue.support.hrefNormalized||ue.each(["href","src"],function(t,e){ue.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ue.support.style||(ue.attrHooks.style={get:function(t){return t.style.cssText||e},set:function(t,e){return t.style.cssText=e+""}}),ue.support.optSelected||(ue.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ue.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ue.propFix[this.toLowerCase()]=this}),ue.support.enctype||(ue.propFix.enctype="encoding"),ue.each(["radio","checkbox"],function(){ue.valHooks[this]={set:function(t,e){return ue.isArray(e)?t.checked=ue.inArray(ue(t).val(),e)>=0:void 0}},ue.support.checkOn||(ue.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var qe=/^(?:input|select|textarea)$/i,Ie=/^key/,Oe=/^(?:mouse|contextmenu)|click/,Pe=/^(?:focusinfocus|focusoutblur)$/,ze=/^([^.]*)(?:\.(.+)|)$/;ue.event={global:{},add:function(t,n,i,s,a){var o,r,l,c,u,d,p,f,h,g,m,v=ue._data(t);if(v){for(i.handler&&(c=i,i=c.handler,a=c.selector),i.guid||(i.guid=ue.guid++),(r=v.events)||(r=v.events={}),(d=v.handle)||(d=v.handle=function(t){return typeof ue===Z||t&&ue.event.triggered===t.type?e:ue.event.dispatch.apply(d.elem,arguments)},d.elem=t),n=(n||"").match(pe)||[""],l=n.length;l--;)o=ze.exec(n[l])||[],h=m=o[1],g=(o[2]||"").split(".").sort(),h&&(u=ue.event.special[h]||{},h=(a?u.delegateType:u.bindType)||h,u=ue.event.special[h]||{},p=ue.extend({type:h,origType:m,data:s,handler:i,guid:i.guid,selector:a,needsContext:a&&ue.expr.match.needsContext.test(a),namespace:g.join(".")},c),(f=r[h])||(f=r[h]=[],f.delegateCount=0,u.setup&&u.setup.call(t,s,g,d)!==!1||(t.addEventListener?t.addEventListener(h,d,!1):t.attachEvent&&t.attachEvent("on"+h,d))),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),a?f.splice(f.delegateCount++,0,p):f.push(p),ue.event.global[h]=!0);t=null}},remove:function(t,e,n,i,s){var a,o,r,l,c,u,d,p,f,h,g,m=ue.hasData(t)&&ue._data(t);if(m&&(u=m.events)){for(e=(e||"").match(pe)||[""],c=e.length;c--;)if(r=ze.exec(e[c])||[],f=g=r[1],h=(r[2]||"").split(".").sort(),f){for(d=ue.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,p=u[f]||[],r=r[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=p.length;a--;)o=p[a],!s&&g!==o.origType||n&&n.guid!==o.guid||r&&!r.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(p.splice(a,1),o.selector&&p.delegateCount--,d.remove&&d.remove.call(t,o));l&&!p.length&&(d.teardown&&d.teardown.call(t,h,m.handle)!==!1||ue.removeEvent(t,f,m.handle),delete u[f])}else for(f in u)ue.event.remove(t,f+e[c],n,i,!0);ue.isEmptyObject(u)&&(delete m.handle,ue._removeData(t,"events"))}},trigger:function(n,i,s,a){var o,r,l,c,u,d,p,f=[s||U],h=le.call(n,"type")?n.type:n,g=le.call(n,"namespace")?n.namespace.split("."):[];if(l=d=s=s||U,3!==s.nodeType&&8!==s.nodeType&&!Pe.test(h+ue.event.triggered)&&(h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort()),r=h.indexOf(":")<0&&"on"+h,n=n[ue.expando]?n:new ue.Event(h,"object"==typeof n&&n),n.isTrigger=a?2:3,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=s),i=null==i?[n]:ue.makeArray(i,[n]),u=ue.event.special[h]||{},a||!u.trigger||u.trigger.apply(s,i)!==!1)){if(!a&&!u.noBubble&&!ue.isWindow(s)){for(c=u.delegateType||h,Pe.test(c+h)||(l=l.parentNode);l;l=l.parentNode)f.push(l),d=l;d===(s.ownerDocument||U)&&f.push(d.defaultView||d.parentWindow||t)}for(p=0;(l=f[p++])&&!n.isPropagationStopped();)n.type=p>1?c:u.bindType||h,o=(ue._data(l,"events")||{})[n.type]&&ue._data(l,"handle"),o&&o.apply(l,i),o=r&&l[r],o&&ue.acceptData(l)&&o.apply&&o.apply(l,i)===!1&&n.preventDefault();if(n.type=h,!a&&!n.isDefaultPrevented()&&(!u._default||u._default.apply(f.pop(),i)===!1)&&ue.acceptData(s)&&r&&s[h]&&!ue.isWindow(s)){d=s[r],d&&(s[r]=null),ue.event.triggered=h;try{s[h]()}catch(m){}ue.event.triggered=e,d&&(s[r]=d)}return n.result}},dispatch:function(t){t=ue.event.fix(t);var n,i,s,a,o,r=[],l=ae.call(arguments),c=(ue._data(this,"events")||{})[t.type]||[],u=ue.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(r=ue.event.handlers.call(this,t,c),n=0;(a=r[n++])&&!t.isPropagationStopped();)for(t.currentTarget=a.elem,o=0;(s=a.handlers[o++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,i=((ue.event.special[s.origType]||{}).handle||s.handler).apply(a.elem,l),i!==e&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,s,a,o,r=[],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&&(c.disabled!==!0||"click"!==t.type)){for(a=[],o=0;l>o;o++)s=n[o],i=s.selector+" ",a[i]===e&&(a[i]=s.needsContext?ue(i,this).index(c)>=0:ue.find(i,this,null,[c]).length),a[i]&&a.push(s);a.length&&r.push({elem:c,handlers:a})}return l<n.length&&r.push({elem:this,handlers:n.slice(l)}),r},fix:function(t){if(t[ue.expando])return t;var e,n,i,s=t.type,a=t,o=this.fixHooks[s];for(o||(this.fixHooks[s]=o=Oe.test(s)?this.mouseHooks:Ie.test(s)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,t=new ue.Event(a),e=i.length;e--;)n=i[e],t[n]=a[n];return t.target||(t.target=a.srcElement||U),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,o.filter?o.filter(t,a):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,s,a,o=n.button,r=n.fromElement;return null==t.pageX&&null!=n.clientX&&(s=t.target.ownerDocument||U,a=s.documentElement,i=s.body,t.pageX=n.clientX+(a&&a.scrollLeft||i&&i.scrollLeft||0)-(a&&a.clientLeft||i&&i.clientLeft||0),t.pageY=n.clientY+(a&&a.scrollTop||i&&i.scrollTop||0)-(a&&a.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&r&&(t.relatedTarget=r===t.target?n.toElement:r),t.which||o===e||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==u()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ue.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return ue.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var s=ue.extend(new ue.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?ue.event.trigger(s,null,e):ue.event.dispatch.call(e,s),s.isDefaultPrevented()&&n.preventDefault()}},ue.removeEvent=U.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===Z&&(t[i]=null),t.detachEvent(i,n))},ue.Event=function(t,e){return this instanceof ue.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?l:c):this.type=t,e&&ue.extend(this,e),this.timeStamp=t&&t.timeStamp||ue.now(),this[ue.expando]=!0,void 0):new ue.Event(t,e)},ue.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=l,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=l,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l,this.stopPropagation()}},ue.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){ue.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,s=t.relatedTarget,a=t.handleObj;return(!s||s!==i&&!ue.contains(i,s))&&(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),ue.support.submitBubbles||(ue.event.special.submit={setup:function(){return ue.nodeName(this,"form")?!1:(ue.event.add(this,"click._submit keypress._submit",function(t){var n=t.target,i=ue.nodeName(n,"input")||ue.nodeName(n,"button")?n.form:e;i&&!ue._data(i,"submitBubbles")&&(ue.event.add(i,"submit._submit",function(t){t._submit_bubble=!0}),ue._data(i,"submitBubbles",!0))}),void 0)},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&ue.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return ue.nodeName(this,"form")?!1:(ue.event.remove(this,"._submit"),void 0)}}),ue.support.changeBubbles||(ue.event.special.change={setup:function(){return qe.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ue.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),ue.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),ue.event.simulate("change",this,t,!0)})),!1):(ue.event.add(this,"beforeactivate._change",function(t){var e=t.target;qe.test(e.nodeName)&&!ue._data(e,"changeBubbles")&&(ue.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ue.event.simulate("change",this.parentNode,t,!0)}),ue._data(e,"changeBubbles",!0))}),void 0)},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ue.event.remove(this,"._change"),!qe.test(this.nodeName)}}),ue.support.focusinBubbles||ue.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){ue.event.simulate(e,t.target,ue.event.fix(t),!0)};ue.event.special[e]={setup:function(){0===n++&&U.addEventListener(t,i,!0)},teardown:function(){0===--n&&U.removeEventListener(t,i,!0)}}}),ue.fn.extend({on:function(t,n,i,s,a){var o,r;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=e);for(o in t)this.on(o,n,i,t[o],a);return this}if(null==i&&null==s?(s=n,i=n=e):null==s&&("string"==typeof n?(s=i,i=e):(s=i,i=n,n=e)),s===!1)s=c;else if(!s)return this;return 1===a&&(r=s,s=function(t){return ue().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=ue.guid++)),this.each(function(){ue.event.add(this,t,s,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var s,a;if(t&&t.preventDefault&&t.handleObj)return s=t.handleObj,ue(t.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if("object"==typeof t){for(a in t)this.off(a,n,t[a]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=c),this.each(function(){ue.event.remove(this,t,i,n)})},trigger:function(t,e){return this.each(function(){ue.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?ue.event.trigger(t,e,n,!0):void 0}});var Re=/^.[^:#\[\.,]*$/,We=/^(?:parents|prev(?:Until|All))/,Be=ue.expr.match.needsContext,Xe={children:!0,contents:!0,next:!0,prev:!0};ue.fn.extend({find:function(t){var e,n=[],i=this,s=i.length;if("string"!=typeof t)return this.pushStack(ue(t).filter(function(){for(e=0;s>e;e++)if(ue.contains(i[e],this))return!0}));for(e=0;s>e;e++)ue.find(t,i[e],n);return n=this.pushStack(s>1?ue.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e,n=ue(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(ue.contains(this,n[e]))return!0})},not:function(t){return this.pushStack(p(this,t||[],!0))},filter:function(t){return this.pushStack(p(this,t||[],!1))},is:function(t){return!!p(this,"string"==typeof t&&Be.test(t)?ue(t):t||[],!1).length},closest:function(t,e){for(var n,i=0,s=this.length,a=[],o=Be.test(t)||"string"!=typeof t?ue(t,e||this.context):0;s>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ue.find.matchesSelector(n,t))){n=a.push(n);break}return this.pushStack(a.length>1?ue.unique(a):a)},index:function(t){return t?"string"==typeof t?ue.inArray(this[0],ue(t)):ue.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?ue(t,e):ue.makeArray(t&&t.nodeType?[t]:t),i=ue.merge(this.get(),n);return this.pushStack(ue.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ue.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ue.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ue.dir(t,"parentNode",n)},next:function(t){return d(t,"nextSibling")},prev:function(t){return d(t,"previousSibling")},nextAll:function(t){return ue.dir(t,"nextSibling")},prevAll:function(t){return ue.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ue.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ue.dir(t,"previousSibling",n)},siblings:function(t){return ue.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ue.sibling(t.firstChild)},contents:function(t){return ue.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ue.merge([],t.childNodes)}},function(t,e){ue.fn[t]=function(n,i){var s=ue.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=ue.filter(i,s)),this.length>1&&(Xe[t]||(s=ue.unique(s)),We.test(t)&&(s=s.reverse())),this.pushStack(s)}}),ue.extend({filter:function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ue.find.matchesSelector(i,t)?[i]:[]:ue.find.matches(t,ue.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var s=[],a=t[n];a&&9!==a.nodeType&&(i===e||1!==a.nodeType||!ue(a).is(i));)1===a.nodeType&&s.push(a),a=a[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 Ye="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qe=/ jQuery\d+="(?:null|\d+)"/g,Ze=new RegExp("<(?:"+Ye+")[\\s/>]","i"),Je=/^\s+/,Ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ve=/<([\w:]+)/,Ge=/<tbody/i,Ke=/<|&#?\w+;/,tn=/<(?:script|style|link)/i,en=/^(?:checkbox|radio)$/i,nn=/checked\s*(?:[^=]|=\s*.checked.)/i,sn=/^$|\/(?:java|ecma)script/i,an=/^true\/(.*)/,on=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,rn={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ue.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ln=f(U),cn=ln.appendChild(U.createElement("div"));
  rn.optgroup=rn.option,rn.tbody=rn.tfoot=rn.colgroup=rn.caption=rn.thead,rn.th=rn.td,ue.fn.extend({text:function(t){return ue.access(this,function(t){return t===e?ue.text(this):this.empty().append((this[0]&&this[0].ownerDocument||U).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ue.filter(t,this):this,s=0;null!=(n=i[s]);s++)e||1!==n.nodeType||ue.cleanData(_(n)),n.parentNode&&(e&&ue.contains(n.ownerDocument,n)&&v(_(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ue.cleanData(_(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ue.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return ue.clone(this,t,e)})},html:function(t){return ue.access(this,function(t){var n=this[0]||{},i=0,s=this.length;if(t===e)return 1===n.nodeType?n.innerHTML.replace(Qe,""):e;if(!("string"!=typeof t||tn.test(t)||!ue.support.htmlSerialize&&Ze.test(t)||!ue.support.leadingWhitespace&&Je.test(t)||rn[(Ve.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Ue,"<$1></$2>");try{for(;s>i;i++)n=this[i]||{},1===n.nodeType&&(ue.cleanData(_(n,!1)),n.innerHTML=t);n=0}catch(a){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=ue.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var i=t[e++],s=t[e++];s&&(i&&i.parentNode!==s&&(i=this.nextSibling),ue(this).remove(),s.insertBefore(n,i))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=ie.apply([],t);var i,s,a,o,r,l,c=0,u=this.length,d=this,p=u-1,f=t[0],h=ue.isFunction(f);if(h||!(1>=u||"string"!=typeof f||ue.support.checkClone)&&nn.test(f))return this.each(function(i){var s=d.eq(i);h&&(t[0]=f.call(this,i,s.html())),s.domManip(t,e,n)});if(u&&(l=ue.buildFragment(t,this[0].ownerDocument,!1,!n&&this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(o=ue.map(_(l,"script"),g),a=o.length;u>c;c++)s=l,c!==p&&(s=ue.clone(s,!0,!0),a&&ue.merge(o,_(s,"script"))),e.call(this[c],s,c);if(a)for(r=o[o.length-1].ownerDocument,ue.map(o,m),c=0;a>c;c++)s=o[c],sn.test(s.type||"")&&!ue._data(s,"globalEval")&&ue.contains(r,s)&&(s.src?ue._evalUrl(s.src):ue.globalEval((s.text||s.textContent||s.innerHTML||"").replace(on,"")));l=i=null}return this}}),ue.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ue.fn[t]=function(t){for(var n,i=0,s=[],a=ue(t),o=a.length-1;o>=i;i++)n=i===o?this:this.clone(!0),ue(a[i])[e](n),se.apply(s,n.get());return this.pushStack(s)}}),ue.extend({clone:function(t,e,n){var i,s,a,o,r,l=ue.contains(t.ownerDocument,t);if(ue.support.html5Clone||ue.isXMLDoc(t)||!Ze.test("<"+t.nodeName+">")?a=t.cloneNode(!0):(cn.innerHTML=t.outerHTML,cn.removeChild(a=cn.firstChild)),!(ue.support.noCloneEvent&&ue.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ue.isXMLDoc(t)))for(i=_(a),r=_(t),o=0;null!=(s=r[o]);++o)i[o]&&b(s,i[o]);if(e)if(n)for(r=r||_(t),i=i||_(a),o=0;null!=(s=r[o]);o++)y(s,i[o]);else y(t,a);return i=_(a,"script"),i.length>0&&v(i,!l&&_(t,"script")),i=r=s=null,a},buildFragment:function(t,e,n,i){for(var s,a,o,r,l,c,u,d=t.length,p=f(e),h=[],g=0;d>g;g++)if(a=t[g],a||0===a)if("object"===ue.type(a))ue.merge(h,a.nodeType?[a]:a);else if(Ke.test(a)){for(r=r||p.appendChild(e.createElement("div")),l=(Ve.exec(a)||["",""])[1].toLowerCase(),u=rn[l]||rn._default,r.innerHTML=u[1]+a.replace(Ue,"<$1></$2>")+u[2],s=u[0];s--;)r=r.lastChild;if(!ue.support.leadingWhitespace&&Je.test(a)&&h.push(e.createTextNode(Je.exec(a)[0])),!ue.support.tbody)for(a="table"!==l||Ge.test(a)?"<table>"!==u[1]||Ge.test(a)?0:r:r.firstChild,s=a&&a.childNodes.length;s--;)ue.nodeName(c=a.childNodes[s],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(ue.merge(h,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=p.lastChild}else h.push(e.createTextNode(a));for(r&&p.removeChild(r),ue.support.appendChecked||ue.grep(_(h,"input"),x),g=0;a=h[g++];)if((!i||-1===ue.inArray(a,i))&&(o=ue.contains(a.ownerDocument,a),r=_(p.appendChild(a),"script"),o&&v(r),n))for(s=0;a=r[s++];)sn.test(a.type||"")&&n.push(a);return r=null,p},cleanData:function(t,e){for(var n,i,s,a,o=0,r=ue.expando,l=ue.cache,c=ue.support.deleteExpando,u=ue.event.special;null!=(n=t[o]);o++)if((e||ue.acceptData(n))&&(s=n[r],a=s&&l[s])){if(a.events)for(i in a.events)u[i]?ue.event.remove(n,i):ue.removeEvent(n,i,a.handle);l[s]&&(delete l[s],c?delete n[r]:typeof n.removeAttribute!==Z?n.removeAttribute(r):n[r]=null,ee.push(s))}},_evalUrl:function(t){return ue.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ue.fn.extend({wrapAll:function(t){if(ue.isFunction(t))return this.each(function(e){ue(this).wrapAll(t.call(this,e))});if(this[0]){var e=ue(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 ue.isFunction(t)?this.each(function(e){ue(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ue(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ue.isFunction(t);return this.each(function(n){ue(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ue.nodeName(this,"body")||ue(this).replaceWith(this.childNodes)}).end()}});var un,dn,pn,fn=/alpha\([^)]*\)/i,hn=/opacity\s*=\s*([^)]*)/,gn=/^(top|right|bottom|left)$/,mn=/^(none|table(?!-c[ea]).+)/,vn=/^margin/,yn=new RegExp("^("+de+")(.*)$","i"),bn=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),_n=new RegExp("^([+-])=("+de+")","i"),xn={BODY:"block"},kn={position:"absolute",visibility:"hidden",display:"block"},wn={letterSpacing:0,fontWeight:400},Cn=["Top","Right","Bottom","Left"],Tn=["Webkit","O","Moz","ms"];ue.fn.extend({css:function(t,n){return ue.access(this,function(t,n,i){var s,a,o={},r=0;if(ue.isArray(n)){for(a=dn(t),s=n.length;s>r;r++)o[n[r]]=ue.css(t,n[r],!1,a);return o}return i!==e?ue.style(t,n,i):ue.css(t,n)},t,n,arguments.length>1)},show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){w(this)?ue(this).show():ue(this).hide()})}}),ue.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=pn(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ue.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,o,r,l=ue.camelCase(n),c=t.style;if(n=ue.cssProps[l]||(ue.cssProps[l]=k(c,l)),r=ue.cssHooks[n]||ue.cssHooks[l],i===e)return r&&"get"in r&&(a=r.get(t,!1,s))!==e?a:c[n];if(o=typeof i,"string"===o&&(a=_n.exec(i))&&(i=(a[1]+1)*a[2]+parseFloat(ue.css(t,n)),o="number"),!(null==i||"number"===o&&isNaN(i)||("number"!==o||ue.cssNumber[l]||(i+="px"),ue.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(c[n]="inherit"),r&&"set"in r&&(i=r.set(t,i,s))===e)))try{c[n]=i}catch(u){}}},css:function(t,n,i,s){var a,o,r,l=ue.camelCase(n);return n=ue.cssProps[l]||(ue.cssProps[l]=k(t.style,l)),r=ue.cssHooks[n]||ue.cssHooks[l],r&&"get"in r&&(o=r.get(t,!0,i)),o===e&&(o=pn(t,n,s)),"normal"===o&&n in wn&&(o=wn[n]),""===i||i?(a=parseFloat(o),i===!0||ue.isNumeric(a)?a||0:o):o}}),t.getComputedStyle?(dn=function(e){return t.getComputedStyle(e,null)},pn=function(t,n,i){var s,a,o,r=i||dn(t),l=r?r.getPropertyValue(n)||r[n]:e,c=t.style;return r&&(""!==l||ue.contains(t.ownerDocument,t)||(l=ue.style(t,n)),bn.test(l)&&vn.test(n)&&(s=c.width,a=c.minWidth,o=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=r.width,c.width=s,c.minWidth=a,c.maxWidth=o)),l}):U.documentElement.currentStyle&&(dn=function(t){return t.currentStyle},pn=function(t,n,i){var s,a,o,r=i||dn(t),l=r?r[n]:e,c=t.style;return null==l&&c&&c[n]&&(l=c[n]),bn.test(l)&&!gn.test(n)&&(s=c.left,a=t.runtimeStyle,o=a&&a.left,o&&(a.left=t.currentStyle.left),c.left="fontSize"===n?"1em":l,l=c.pixelLeft+"px",c.left=s,o&&(a.left=o)),""===l?"auto":l}),ue.each(["height","width"],function(t,e){ue.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&mn.test(ue.css(t,"display"))?ue.swap(t,kn,function(){return S(t,e,i)}):S(t,e,i):void 0},set:function(t,n,i){var s=i&&dn(t);return T(t,n,i?F(t,e,i,ue.support.boxSizing&&"border-box"===ue.css(t,"boxSizing",!1,s),s):0)}}}),ue.support.opacity||(ue.cssHooks.opacity={get:function(t,e){return hn.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=ue.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ue.trim(a.replace(fn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=fn.test(a)?a.replace(fn,s):a+" "+s)}}),ue(function(){ue.support.reliableMarginRight||(ue.cssHooks.marginRight={get:function(t,e){return e?ue.swap(t,{display:"inline-block"},pn,[t,"marginRight"]):void 0}}),!ue.support.pixelPosition&&ue.fn.position&&ue.each(["top","left"],function(t,e){ue.cssHooks[e]={get:function(t,n){return n?(n=pn(t,e),bn.test(n)?ue(t).position()[e]+"px":n):void 0}}})}),ue.expr&&ue.expr.filters&&(ue.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!ue.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||ue.css(t,"display"))},ue.expr.filters.visible=function(t){return!ue.expr.filters.hidden(t)}),ue.each({margin:"",padding:"",border:"Width"},function(t,e){ue.cssHooks[t+e]={expand:function(n){for(var i=0,s={},a="string"==typeof n?n.split(" "):[n];4>i;i++)s[t+Cn[i]+e]=a[i]||a[i-2]||a[0];return s}},vn.test(t)||(ue.cssHooks[t+e].set=T)});var Fn=/%20/g,Sn=/\[\]$/,En=/\r?\n/g,Dn=/^(?:submit|button|image|reset|file)$/i,An=/^(?:input|select|textarea|keygen)/i;ue.fn.extend({serialize:function(){return ue.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ue.prop(this,"elements");return t?ue.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ue(this).is(":disabled")&&An.test(this.nodeName)&&!Dn.test(t)&&(this.checked||!en.test(t))}).map(function(t,e){var n=ue(this).val();return null==n?null:ue.isArray(n)?ue.map(n,function(t){return{name:e.name,value:t.replace(En,"\r\n")}}):{name:e.name,value:n.replace(En,"\r\n")}}).get()}}),ue.param=function(t,n){var i,s=[],a=function(t,e){e=ue.isFunction(e)?e():null==e?"":e,s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=ue.ajaxSettings&&ue.ajaxSettings.traditional),ue.isArray(t)||t.jquery&&!ue.isPlainObject(t))ue.each(t,function(){a(this.name,this.value)});else for(i in t)A(i,t[i],n,a);return s.join("&").replace(Fn,"+")},ue.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){ue.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ue.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 jn,Nn,$n=ue.now(),Hn=/\?/,Ln=/#.*$/,Mn=/([?&])_=[^&]*/,qn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,In=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,On=/^(?:GET|HEAD)$/,Pn=/^\/\//,zn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Rn=ue.fn.load,Wn={},Bn={},Xn="*/".concat("*");try{Nn=J.href}catch(Yn){Nn=U.createElement("a"),Nn.href="",Nn=Nn.href}jn=zn.exec(Nn.toLowerCase())||[],ue.fn.load=function(t,n,i){if("string"!=typeof t&&Rn)return Rn.apply(this,arguments);var s,a,o,r=this,l=t.indexOf(" ");return l>=0&&(s=t.slice(l,t.length),t=t.slice(0,l)),ue.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(o="POST"),r.length>0&&ue.ajax({url:t,type:o,dataType:"html",data:n}).done(function(t){a=arguments,r.html(s?ue("<div>").append(ue.parseHTML(t)).find(s):t)}).complete(i&&function(t,e){r.each(i,a||[t.responseText,e,t])}),this},ue.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ue.fn[e]=function(t){return this.on(e,t)}}),ue.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nn,type:"GET",isLocal:In.test(jn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xn,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":ue.parseJSON,"text xml":ue.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$($(t,ue.ajaxSettings),e):$(ue.ajaxSettings,t)},ajaxPrefilter:j(Wn),ajaxTransport:j(Bn),ajax:function(t,n){function i(t,n,i,s){var a,d,y,b,x,w=n;2!==_&&(_=2,l&&clearTimeout(l),u=e,r=s||"",k.readyState=t>0?4:0,a=t>=200&&300>t||304===t,i&&(b=H(p,k,i)),b=L(p,b,k,a),a?(p.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(ue.lastModified[o]=x),x=k.getResponseHeader("etag"),x&&(ue.etag[o]=x)),204===t||"HEAD"===p.type?w="nocontent":304===t?w="notmodified":(w=b.state,d=b.data,y=b.error,a=!y)):(y=w,(t||!w)&&(w="error",0>t&&(t=0))),k.status=t,k.statusText=(n||w)+"",a?g.resolveWith(f,[d,w,k]):g.rejectWith(f,[k,w,y]),k.statusCode(v),v=e,c&&h.trigger(a?"ajaxSuccess":"ajaxError",[k,p,a?d:y]),m.fireWith(f,[k,w]),c&&(h.trigger("ajaxComplete",[k,p]),--ue.active||ue.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var s,a,o,r,l,c,u,d,p=ue.ajaxSetup({},n),f=p.context||p,h=p.context&&(f.nodeType||f.jquery)?ue(f):ue.event,g=ue.Deferred(),m=ue.Callbacks("once memory"),v=p.statusCode||{},y={},b={},_=0,x="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!d)for(d={};e=qn.exec(r);)d[e[1].toLowerCase()]=e[2];e=d[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return _||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>_)for(e in t)v[e]=[v[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||x;return u&&u.abort(e),i(0,e),this}};if(g.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,p.url=((t||p.url||Nn)+"").replace(Ln,"").replace(Pn,jn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ue.trim(p.dataType||"*").toLowerCase().match(pe)||[""],null==p.crossDomain&&(s=zn.exec(p.url.toLowerCase()),p.crossDomain=!(!s||s[1]===jn[1]&&s[2]===jn[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(jn[3]||("http:"===jn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ue.param(p.data,p.traditional)),N(Wn,p,n,k),2===_)return k;c=p.global,c&&0===ue.active++&&ue.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!On.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(Hn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Mn.test(o)?o.replace(Mn,"$1_="+$n++):o+(Hn.test(o)?"&":"?")+"_="+$n++)),p.ifModified&&(ue.lastModified[o]&&k.setRequestHeader("If-Modified-Since",ue.lastModified[o]),ue.etag[o]&&k.setRequestHeader("If-None-Match",ue.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Xn+"; q=0.01":""):p.accepts["*"]);for(a in p.headers)k.setRequestHeader(a,p.headers[a]);if(p.beforeSend&&(p.beforeSend.call(f,k,p)===!1||2===_))return k.abort();x="abort";for(a in{success:1,error:1,complete:1})k[a](p[a]);if(u=N(Bn,p,n,k)){k.readyState=1,c&&h.trigger("ajaxSend",[k,p]),p.async&&p.timeout>0&&(l=setTimeout(function(){k.abort("timeout")},p.timeout));try{_=1,u.send(y,i)}catch(w){if(!(2>_))throw w;i(-1,w)}}else i(-1,"No Transport");return k},getJSON:function(t,e,n){return ue.get(t,e,n,"json")},getScript:function(t,n){return ue.get(t,e,n,"script")}}),ue.each(["get","post"],function(t,n){ue[n]=function(t,i,s,a){return ue.isFunction(i)&&(a=a||s,s=i,i=e),ue.ajax({url:t,type:n,dataType:a,data:i,success:s})}}),ue.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ue.globalEval(t),t}}}),ue.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ue.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=U.head||ue("head")[0]||U.documentElement;return{send:function(e,s){n=U.createElement("script"),n.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 Qn=[],Zn=/(=)\?(?=&|$)|\?\?/;ue.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qn.pop()||ue.expando+"_"+$n++;return this[t]=!0,t}}),ue.ajaxPrefilter("json jsonp",function(n,i,s){var a,o,r,l=n.jsonp!==!1&&(Zn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(a=n.jsonpCallback=ue.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Zn,"$1"+a):n.jsonp!==!1&&(n.url+=(Hn.test(n.url)?"&":"?")+n.jsonp+"="+a),n.converters["script json"]=function(){return r||ue.error(a+" was not called"),r[0]},n.dataTypes[0]="json",o=t[a],t[a]=function(){r=arguments},s.always(function(){t[a]=o,n[a]&&(n.jsonpCallback=i.jsonpCallback,Qn.push(a)),r&&ue.isFunction(o)&&o(r[0]),r=o=e}),"script"):void 0});var Jn,Un,Vn=0,Gn=t.ActiveXObject&&function(){var t;for(t in Jn)Jn[t](e,!0)};ue.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&M()||q()}:M,Un=ue.ajaxSettings.xhr(),ue.support.cors=!!Un&&"withCredentials"in Un,Un=ue.support.ajax=!!Un,Un&&ue.ajaxTransport(function(n){if(!n.crossDomain||ue.support.cors){var i;return{send:function(s,a){var o,r,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(r in n.xhrFields)l[r]=n.xhrFields[r];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");try{for(r in s)l.setRequestHeader(r,s[r])}catch(c){}l.send(n.hasContent&&n.data||null),i=function(t,s){var r,c,u,d;try{if(i&&(s||4===l.readyState))if(i=e,o&&(l.onreadystatechange=ue.noop,Gn&&delete Jn[o]),s)4!==l.readyState&&l.abort();else{d={},r=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(d.text=l.responseText);try{u=l.statusText}catch(p){u=""}r||!n.isLocal||n.crossDomain?1223===r&&(r=204):r=d.text?200:404}}catch(f){s||a(-1,f)}d&&a(r,u,d,c)},n.async?4===l.readyState?setTimeout(i):(o=++Vn,Gn&&(Jn||(Jn={},ue(t).unload(Gn)),Jn[o]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(e,!0)}}}});var Kn,ti,ei=/^(?:toggle|show|hide)$/,ni=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),ii=/queueHooks$/,si=[R],ai={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),s=ni.exec(e),a=s&&s[3]||(ue.cssNumber[t]?"":"px"),o=(ue.cssNumber[t]||"px"!==a&&+i)&&ni.exec(ue.css(n.elem,t)),r=1,l=20;if(o&&o[3]!==a){a=a||o[3],s=s||[],o=+i||1;do r=r||".5",o/=r,ue.style(n.elem,t,o+a);while(r!==(r=n.cur()/i)&&1!==r&&--l)}return s&&(o=n.start=+o||+i||0,n.unit=a,n.end=s[1]?o+(s[1]+1)*s[2]:+s[2]),n}]};ue.Animation=ue.extend(P,{tweener:function(t,e){ue.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,s=t.length;s>i;i++)n=t[i],ai[n]=ai[n]||[],ai[n].unshift(e)},prefilter:function(t,e){e?si.unshift(t):si.push(t)}}),ue.Tween=W,W.prototype={constructor:W,init:function(t,e,n,i,s,a){this.elem=t,this.prop=n,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(ue.cssNumber[n]?"":"px")},cur:function(){var t=W.propHooks[this.prop];return t&&t.get?t.get(this):W.propHooks._default.get(this)},run:function(t){var e,n=W.propHooks[this.prop];return this.pos=e=this.options.duration?ue.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):W.propHooks._default.set(this),this}},W.prototype.init.prototype=W.prototype,W.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ue.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ue.fx.step[t.prop]?ue.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ue.cssProps[t.prop]]||ue.cssHooks[t.prop])?ue.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},W.propHooks.scrollTop=W.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ue.each(["toggle","show","hide"],function(t,e){var n=ue.fn[e];ue.fn[e]=function(t,i,s){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(B(e,!0),t,i,s)}}),ue.fn.extend({fadeTo:function(t,e,n,i){return this.filter(w).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var s=ue.isEmptyObject(t),a=ue.speed(e,n,i),o=function(){var e=P(this,ue.extend({},t),a);(s||ue._data(this,"finish"))&&e.stop(!0)};return o.finish=o,s||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(t,n,i){var s=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",a=ue.timers,o=ue._data(this);if(n)o[n]&&o[n].stop&&s(o[n]);else for(n in o)o[n]&&o[n].stop&&ii.test(n)&&s(o[n]);for(n=a.length;n--;)a[n].elem!==this||null!=t&&a[n].queue!==t||(a[n].anim.stop(i),e=!1,a.splice(n,1));(e||!i)&&ue.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ue._data(this),i=n[t+"queue"],s=n[t+"queueHooks"],a=ue.timers,o=i?i.length:0;for(n.finish=!0,ue.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;o>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ue.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ue.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ue.speed=function(t,e,n){var i=t&&"object"==typeof t?ue.extend({},t):{complete:n||!n&&e||ue.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ue.isFunction(e)&&e};return i.duration=ue.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ue.fx.speeds?ue.fx.speeds[i.duration]:ue.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ue.isFunction(i.old)&&i.old.call(this),i.queue&&ue.dequeue(this,i.queue)},i},ue.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ue.timers=[],ue.fx=W.prototype.init,ue.fx.tick=function(){var t,n=ue.timers,i=0;for(Kn=ue.now();i<n.length;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||ue.fx.stop(),Kn=e},ue.fx.timer=function(t){t()&&ue.timers.push(t)&&ue.fx.start()},ue.fx.interval=13,ue.fx.start=function(){ti||(ti=setInterval(ue.fx.tick,ue.fx.interval))},ue.fx.stop=function(){clearInterval(ti),ti=null},ue.fx.speeds={slow:600,fast:200,_default:400},ue.fx.step={},ue.expr&&ue.expr.filters&&(ue.expr.filters.animated=function(t){return ue.grep(ue.timers,function(e){return t===e.elem}).length}),ue.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){ue.offset.setOffset(this,t,e)});var n,i,s={top:0,left:0},a=this[0],o=a&&a.ownerDocument;if(o)return n=o.documentElement,ue.contains(n,a)?(typeof a.getBoundingClientRect!==Z&&(s=a.getBoundingClientRect()),i=X(o),{top:s.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):s},ue.offset={setOffset:function(t,e,n){var i=ue.css(t,"position");"static"===i&&(t.style.position="relative");var s,a,o=ue(t),r=o.offset(),l=ue.css(t,"top"),c=ue.css(t,"left"),u=("absolute"===i||"fixed"===i)&&ue.inArray("auto",[l,c])>-1,d={},p={};u?(p=o.position(),s=p.top,a=p.left):(s=parseFloat(l)||0,a=parseFloat(c)||0),ue.isFunction(e)&&(e=e.call(t,n,r)),null!=e.top&&(d.top=e.top-r.top+s),null!=e.left&&(d.left=e.left-r.left+a),"using"in e?e.using.call(t,d):o.css(d)}},ue.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ue.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ue.nodeName(t[0],"html")||(n=t.offset()),n.top+=ue.css(t[0],"borderTopWidth",!0),n.left+=ue.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ue.css(i,"marginTop",!0),left:e.left-n.left-ue.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||V;t&&!ue.nodeName(t,"html")&&"static"===ue.css(t,"position");)t=t.offsetParent;return t||V})}}),ue.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);ue.fn[t]=function(s){return ue.access(this,function(t,s,a){var o=X(t);return a===e?o?n in o?o[n]:o.document.documentElement[s]:t[s]:(o?o.scrollTo(i?ue(o).scrollLeft():a,i?a:ue(o).scrollTop()):t[s]=a,void 0)},t,s,arguments.length,null)}}),ue.each({Height:"height",Width:"width"},function(t,n){ue.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,s){ue.fn[s]=function(s,a){var o=arguments.length&&(i||"boolean"!=typeof s),r=i||(s===!0||a===!0?"margin":"border");return ue.access(this,function(n,i,s){var a;return ue.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(a=n.documentElement,Math.max(n.body["scroll"+t],a["scroll"+t],n.body["offset"+t],a["offset"+t],a["client"+t])):s===e?ue.css(n,i,r):ue.style(n,i,s,r)},n,o?s:e,o,null)}})}),ue.fn.size=function(){return this.length},ue.fn.andSelf=ue.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ue:(t.jQuery=t.$=ue,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ue}))}(window),function(t,e){t.rails!==e&&t.error("jquery-ujs has already been loaded!");var n,i=t(document);t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",buttonClickSelector:"button[data-remote]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input[type=file]",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(e){var n=t('meta[name="csrf-token"]').attr("content");n&&e.setRequestHeader("X-CSRF-Token",n)},fire:function(e,n,i){var s=t.Event(n);return e.trigger(s,i),s.result!==!1},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t.attr("href")},handleRemote:function(i){var s,a,o,r,l,c,u,d;if(n.fire(i,"ajax:before")){if(r=i.data("cross-domain"),l=r===e?null:r,c=i.data("with-credentials")||null,u=i.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,i.is("form")){s=i.attr("method"),a=i.attr("action"),o=i.serializeArray();var p=i.data("ujs:submit-button");p&&(o.push(p),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(s=i.data("method"),a=i.data("url"),o=i.serialize(),i.data("params")&&(o=o+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(s=i.data("method")||"get",a=i.data("url"),o=i.serialize(),i.data("params")&&(o=o+"&"+i.data("params"))):(s=i.data("method"),a=n.href(i),o=i.data("params")||null);d={type:s||"GET",data:o,dataType:u,beforeSend:function(t,s){return s.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+s.accepts.script),n.fire(i,"ajax:beforeSend",[t,s])},success:function(t,e,n){i.trigger("ajax:success",[t,e,n])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,n){i.trigger("ajax:error",[t,e,n])},crossDomain:l},c&&(d.xhrFields={withCredentials:c}),a&&(d.url=a);var f=n.ajax(d);return i.trigger("ajax:send",f),f}return!1},handleMethod:function(i){var s=n.href(i),a=i.data("method"),o=i.attr("target"),r=t("meta[name=csrf-token]").attr("content"),l=t("meta[name=csrf-param]").attr("content"),c=t('<form method="post" action="'+s+'"></form>'),u='<input name="_method" value="'+a+'" type="hidden" />';l!==e&&r!==e&&(u+='<input name="'+l+'" value="'+r+'" type="hidden" />'),o&&c.attr("target",o),c.hide().append(u).appendTo("body"),c.submit()},disableFormElements:function(e){e.find(n.disableSelector).each(function(){var e=t(this),n=e.is("button")?"html":"val";e.data("ujs:enable-with",e[n]()),e[n](e.data("disable-with")),e.prop("disabled",!0)})},enableFormElements:function(e){e.find(n.enableSelector).each(function(){var e=t(this),n=e.is("button")?"html":"val";e.data("ujs:enable-with")&&e[n](e.data("ujs:enable-with")),e.prop("disabled",!1)})},allowAction:function(t){var e,i=t.data("confirm"),s=!1;return i?(n.fire(t,"confirm")&&(s=n.confirm(i),e=n.fire(t,"confirm:complete",[s])),s&&e):!0},blankInputs:function(e,n,i){var s,a,o=t(),r=n||"input,textarea",l=e.find(r);return l.each(function(){if(s=t(this),a=s.is("input[type=checkbox],input[type=radio]")?s.is(":checked"):s.val(),!a==!i){if(s.is("input[type=radio]")&&l.filter('input[type=radio]:checked[name="'+s.attr("name")+'"]').length)return!0;o=o.add(s)}}),o.length?o:!1},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){t.data("ujs:enable-with",t.html()),t.html(t.data("disable-with")),t.bind("click.railsDisable",function(t){return n.stopEverything(t)})},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable")}},n.fire(i,"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,i){t.crossDomain||n.CSRFProtection(i)}),i.delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(t(this))}),i.delegate(n.linkClickSelector,"click.rails",function(i){var s=t(this),a=s.data("method"),o=s.data("params");if(!n.allowAction(s))return n.stopEverything(i);if(s.is(n.linkDisableSelector)&&n.disableElement(s),s.data("remote")!==e){if(!(!i.metaKey&&!i.ctrlKey||a&&"GET"!==a||o))return!0;var r=n.handleRemote(s);return r===!1?n.enableElement(s):r.error(function(){n.enableElement(s)}),!1}return s.data("method")?(n.handleMethod(s),!1):void 0}),i.delegate(n.buttonClickSelector,"click.rails",function(e){var i=t(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(e)}),i.delegate(n.inputChangeSelector,"change.rails",function(e){var i=t(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(e)}),i.delegate(n.formSubmitSelector,"submit.rails",function(i){var s=t(this),a=s.data("remote")!==e,o=n.blankInputs(s,n.requiredInputSelector),r=n.nonBlankInputs(s,n.fileInputSelector);if(!n.allowAction(s))return n.stopEverything(i);if(o&&s.attr("novalidate")==e&&n.fire(s,"ajax:aborted:required",[o]))return n.stopEverything(i);
  if(a){if(r){setTimeout(function(){n.disableFormElements(s)},13);var l=n.fire(s,"ajax:aborted:file",[r]);return l||setTimeout(function(){n.enableFormElements(s)},13),l}return n.handleRemote(s),!1}setTimeout(function(){n.disableFormElements(s)},13)}),i.delegate(n.formInputClickSelector,"click.rails",function(e){var i=t(this);if(!n.allowAction(i))return n.stopEverything(e);var s=i.attr("name"),a=s?{name:s,value:i.val()}:null;i.closest("form").data("ujs:submit-button",a)}),i.delegate(n.formSubmitSelector,"ajax:beforeSend.rails",function(e){this==e.target&&n.disableFormElements(t(this))}),i.delegate(n.formSubmitSelector,"ajax:complete.rails",function(e){this==e.target&&n.enableFormElements(t(this))}),t(function(){var e=t("meta[name=csrf-token]").attr("content"),n=t("meta[name=csrf-param]").attr("content");t('form input[name="'+n+'"]').val(e)}))}(jQuery),function(t,e,n,i){"use strict";function s(t){var e,n=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=t,!t||!t.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return s.prototype.onClick.apply(n,arguments)},this.onMouse=function(){return s.prototype.onMouse.apply(n,arguments)},this.onTouchStart=function(){return s.prototype.onTouchStart.apply(n,arguments)},this.onTouchMove=function(){return s.prototype.onTouchMove.apply(n,arguments)},this.onTouchEnd=function(){return s.prototype.onTouchEnd.apply(n,arguments)},this.onTouchCancel=function(){return s.prototype.onTouchCancel.apply(n,arguments)},s.notNeeded(t)||(this.deviceIsAndroid&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,i){var s=Node.prototype.removeEventListener;"click"===e?s.call(t,e,n.hijacked||n,i):s.call(t,e,n,i)},t.addEventListener=function(e,n,i){var s=Node.prototype.addEventListener;"click"===e?s.call(t,e,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),i):s.call(t,e,n,i)}),"function"==typeof t.onclick&&(e=t.onclick,t.addEventListener("click",function(t){e(t)},!1),t.onclick=null))}function a(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g,"")),t}0===t("head").has(".foundation-mq-small").length&&t("head").append('<meta class="foundation-mq-small">'),0===t("head").has(".foundation-mq-medium").length&&t("head").append('<meta class="foundation-mq-medium">'),0===t("head").has(".foundation-mq-large").length&&t("head").append('<meta class="foundation-mq-large">'),0===t("head").has(".foundation-mq-xlarge").length&&t("head").append('<meta class="foundation-mq-xlarge">'),0===t("head").has(".foundation-mq-xxlarge").length&&t("head").append('<meta class="foundation-mq-xxlarge">'),s.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,s.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),s.prototype.deviceIsIOS4=s.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),s.prototype.deviceIsIOSWithBadTarget=s.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),s.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(this.deviceIsIOS&&"file"===t.type||t.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(t.className)},s.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},s.prototype.sendClick=function(t,i){var s,a;n.activeElement&&n.activeElement!==t&&n.activeElement.blur(),a=i.changedTouches[0],s=n.createEvent("MouseEvents"),s.initMouseEvent("click",!0,!0,e,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),s.forwardedTouchEvent=!0,t.dispatchEvent(s)},s.prototype.focus=function(t){var e;this.deviceIsIOS&&t.setSelectionRange?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},s.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},s.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},s.prototype.onTouchStart=function(t){var n,i,s;if(t.targetTouches.length>1)return!0;if(n=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],this.deviceIsIOS){if(s=e.getSelection(),s.rangeCount&&!s.isCollapsed)return!0;if(!this.deviceIsIOS4){if(i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(n)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=n,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<200&&t.preventDefault(),!0},s.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n?!0:!1},s.prototype.onTouchMove=function(t){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},s.prototype.findControl=function(t){return t.control!==i?t.control:t.htmlFor?n.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},s.prototype.onTouchEnd=function(t){var i,s,a,o,r,l=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.lastClickTime=t.timeStamp,s=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(r=t.changedTouches[0],l=n.elementFromPoint(r.pageX-e.pageXOffset,r.pageY-e.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=l.tagName.toLowerCase(),"label"===a){if(i=this.findControl(l)){if(this.focus(l),this.deviceIsAndroid)return!1;l=i}}else if(this.needsFocus(l))return t.timeStamp-s>100||this.deviceIsIOS&&e.top!==e&&"input"===a?(this.targetElement=null,!1):(this.focus(l),this.deviceIsIOS4&&"select"===a||(this.targetElement=null,t.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(o=l.fastClickScrollParent,o&&o.fastClickLastScrollTop!==o.scrollTop)?!0:(this.needsClick(l)||(t.preventDefault(),this.sendClick(l,t)),!1)},s.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},s.prototype.onMouse=function(t){return this.targetElement?t.forwardedTouchEvent?!0:t.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1):!0:!0:!0},s.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail?!0:(e=this.onMouse(t),e||(this.targetElement=null),e)},s.prototype.destroy=function(){var t=this.layer;this.deviceIsAndroid&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},s.notNeeded=function(t){var i;if("undefined"==typeof e.ontouchstart)return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(!s.prototype.deviceIsAndroid)return!0;if(i=n.querySelector("meta[name=viewport]"),i&&-1!==i.content.indexOf("user-scalable=no"))return!0}return"none"===t.style.msTouchAction?!0:!1},s.attach=function(t){return new s(t)},"undefined"!=typeof define&&define.amd?define(function(){return s}):"undefined"!=typeof module&&module.exports?(module.exports=s.attach,module.exports.FastClick=s):e.FastClick=s,"undefined"!=typeof s&&s.attach(n.body);var o=function(e,i){return"string"==typeof e?i?t(i.querySelectorAll(e)):t(n.querySelectorAll(e)):t(e,i)};e.matchMedia=e.matchMedia||function(t){var e,n=t.documentElement,i=n.firstElementChild||n.firstChild,s=t.createElement("body"),a=t.createElement("div");return a.id="mq-test-1",a.style.cssText="position:absolute;top:-100em",s.style.background="none",s.appendChild(a),function(t){return a.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(s,i),e=42===a.offsetWidth,n.removeChild(s),{matches:e,media:t}}}(n),function(){function t(){n&&(a(t),jQuery.fx.tick())}for(var n,i=0,s=["webkit","moz"],a=e.requestAnimationFrame,o=e.cancelAnimationFrame;i<s.length&&!a;i++)a=e[s[i]+"RequestAnimationFrame"],o=o||e[s[i]+"CancelAnimationFrame"]||e[s[i]+"CancelRequestAnimationFrame"];a?(e.requestAnimationFrame=a,e.cancelAnimationFrame=o,jQuery.fx.timer=function(e){e()&&jQuery.timers.push(e)&&!n&&(n=!0,t())},jQuery.fx.stop=function(){n=!1}):(e.requestAnimationFrame=function(t){var n=(new Date).getTime(),s=Math.max(0,16-(n-i)),a=e.setTimeout(function(){t(n+s)},s);return i=n+s,a},e.cancelAnimationFrame=function(t){clearTimeout(t)})}(jQuery),e.Foundation={name:"Foundation",version:"5.0.0",media_queries:{small:o(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:o(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:o(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:o(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:o(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:t("<style></style>").appendTo("head")[0].sheet,init:function(t,e,n,i,s){var a=[t,n,i,s],r=[];if(this.rtl=/rtl/i.test(o("html").attr("dir")),this.scope=t||this.scope,e&&"string"==typeof e&&!/reflow/i.test(e))this.libs.hasOwnProperty(e)&&r.push(this.init_lib(e,a));else for(var l in this.libs)r.push(this.init_lib(l,e));return t},init_lib:function(t,e){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),e&&e.hasOwnProperty(t)?this.libs[t].init.apply(this.libs[t],[this.scope,e[t]]):this.libs[t].init.apply(this.libs[t],e)):function(){}},patch:function(t){t.scope=this.scope,t.data_options=this.lib_methods.data_options,t.bindings=this.lib_methods.bindings,t.S=o,t.rtl=this.rtl},inherit:function(t,e){for(var n=e.split(" "),i=n.length-1;i>=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;t>i;i++)n+=e[Math.floor(Math.random()*e.length)];return n},libs:{},lib_methods:{throttle:function(t,e){var n=null;return function(){var i=this,s=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(i,s)},e)}},data_options:function(e){function n(t){return!isNaN(t-0)&&null!==t&&""!==t&&t!==!1&&t!==!0}function i(e){return"string"==typeof e?t.trim(e):e}var s,a,o,r,l={},c=e.data("options");if("object"==typeof c)return c;for(o=(c||":").split(";"),r=o.length,s=r-1;s>=0;s--)a=o[s].split(":"),/true/i.test(a[1])&&(a[1]=!0),/false/i.test(a[1])&&(a[1]=!1),n(a[1])&&(a[1]=parseInt(a[1],10)),2===a.length&&a[0].length>0&&(l[i(a[0])]=i(a[1]));return l},delay:function(t,e){return setTimeout(t,e)},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},register_media:function(e,n){Foundation.media_queries[e]===i&&(t("head").append('<meta class="'+n+'">'),Foundation.media_queries[e]=a(t("."+n).css("font-family")))},addCustomRule:function(t,e){if(e===i)Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length);else{var n=Foundation.media_queries[e];n!==i&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }")}},loaded:function(t,e){function n(){e(t[0])}function i(){if(this.one("load",n),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?(t[0].complete||4===t[0].readyState?n():i.call(t),void 0):(n(),void 0)},bindings:function(e,n){var i=this,s=!o(this).data(this.name+"-init");return"string"==typeof e?this[e].call(this):(o(this.scope).is("[data-"+this.name+"]")?(o(this.scope).data(this.name+"-init",t.extend({},this.settings,n||e,this.data_options(o(this.scope)))),s&&this.events(this.scope)):o("[data-"+this.name+"]",this.scope).each(function(){var s=!o(this).data(i.name+"-init");o(this).data(i.name+"-init",t.extend({},i.settings,n||e,i.data_options(o(this)))),s&&i.events(this)}),void 0)}}},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})}}(jQuery,this,this.document),function(t,e,n){"use strict";Foundation.libs.abide={name:"abide",version:"5.0.0",settings:{focus_on_invalid:!0,timeout:1e3,patterns:{alpha:/[a-zA-Z]+/,alpha_numeric:/[a-zA-Z0-9]+/,integer:/-?\d+/,number:/-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,password:/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,time:/(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,dateISO:/\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,month_day_year:/(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/}},timer:null,init:function(t,e,n){this.bindings(e,n)},events:function(e){{var n=this,i=t(e).attr("novalidate","novalidate");i.data("abide-init")}i.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(e){var i=/ajax/i.test(t(this).attr("data-abide"));return n.validate(t(this).find("input, textarea, select").get(),e,i)}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){n.validate([this],t)}).on("keydown.fndtn.abide",function(e){var i=t(this).closest("form").data("abide-init");clearTimeout(n.timer),n.timer=setTimeout(function(){n.validate([this],e)}.bind(this),i.timeout)})},validate:function(e,n,i){for(var s=this.parse_patterns(e),a=s.length,o=t(e[0]).closest("form"),r=/submit/.test(n.type),l=0;a>l;l++)if(!s[l]&&(r||i))return this.settings.focus_on_invalid&&e[l].focus(),o.trigger("invalid"),t(e[l]).closest("form").attr("data-invalid",""),!1;return(r||i)&&o.trigger("valid"),o.removeAttr("data-invalid"),i?!1:!0},parse_patterns:function(t){for(var e=t.length,n=[],i=e-1;i>=0;i--)n.push(this.pattern(t[i]));return this.check_validation_and_apply_styles(n)},pattern:function(t){var e=t.getAttribute("type"),n="string"==typeof t.getAttribute("required");if(this.settings.patterns.hasOwnProperty(e))return[t,this.settings.patterns[e],n];var i=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(i)&&i.length>0?[t,this.settings.patterns[i],n]:i.length>0?[t,new RegExp(i),n]:(i=/.*/,[t,i,n])},check_validation_and_apply_styles:function(e){for(var n=e.length,i=[],s=n-1;s>=0;s--){var a=e[s][0],o=e[s][2],r=a.value,l=a.getAttribute("data-equalto"),c="radio"===a.type,u=o?a.value.length>0:!0;c&&o?i.push(this.valid_radio(a,o)):l&&o?i.push(this.valid_equal(a,o)):e[s][1].test(r)&&u||!o&&a.value.length<1?(t(a).removeAttr("data-invalid").parent().removeClass("error"),i.push(!0)):(t(a).attr("data-invalid","").parent().addClass("error"),i.push(!1))}return i},valid_radio:function(e){for(var i=e.getAttribute("name"),s=n.getElementsByName(i),a=s.length,o=!1,r=0;a>r;r++)s[r].checked&&(o=!0);for(var r=0;a>r;r++)o?t(s[r]).removeAttr("data-invalid").parent().removeClass("error"):t(s[r]).attr("data-invalid","").parent().addClass("error");return o},valid_equal:function(e){var i=n.getElementById(e.getAttribute("data-equalto")).value,s=e.value,a=i===s;return a?t(e).removeAttr("data-invalid").parent().removeClass("error"):t(e).attr("data-invalid","").parent().addClass("error"),a}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.0.1",settings:{active_class:"active",toggleable:!0},init:function(t,e,n){this.bindings(e,n)},events:function(){t(this.scope).off(".accordion").on("click.fndtn.accordion","[data-accordion] > dd > a",function(e){var n=t(this).parent(),i=t("#"+this.href.split("#")[1]),s=t("> dd > .content",i.closest("[data-accordion]")),a=n.parent().data("accordion-init"),o=t("> dd > .content."+a.active_class,n.parent());return e.preventDefault(),o[0]==i[0]&&a.toggleable?i.toggleClass(a.active_class):(s.removeClass(a.active_class),i.addClass(a.active_class),void 0)})},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.alert={name:"alert",version:"5.0.0",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(t,e,n){this.bindings(e,n)},events:function(){t(this.scope).off(".alert").on("click.fndtn.alert","[data-alert] a.close",function(e){var n=t(this).closest("[data-alert]"),i=n.data("alert-init");e.preventDefault(),n[i.animation](i.speed,function(){t(this).trigger("closed").remove(),i.callback()})})},reflow:function(){}}}(jQuery,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.0.0",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(e,n,i){var s=this;Foundation.inherit(this,"throttle loaded"),this.bindings(n,i),t(this.scope).is("[data-clearing]")?this.assemble(t("li",this.scope)):t("[data-clearing]",this.scope).each(function(){s.assemble(t("li",this))})},events:function(n){var i=this;t(this.scope).off(".clearing").on("click.fndtn.clearing","ul[data-clearing] li",function(e,n,s){var n=n||t(this),s=s||n,a=n.next("li"),o=n.closest("[data-clearing]").data("clearing-init"),r=t(e.target);e.preventDefault(),o||(i.init(),o=n.closest("[data-clearing]").data("clearing-init")),s.hasClass("visible")&&n[0]===s[0]&&a.length>0&&i.is_open(n)&&(s=a,r=t("img",s)),i.open(r,n,s),i.update_paddles(s)}).on("click.fndtn.clearing",".clearing-main-next",function(t){i.nav(t,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(t){i.nav(t,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}).on("keydown.fndtn.clearing",function(t){i.keydown(t)}),t(e).off(".clearing").on("resize.fndtn.clearing",function(){i.resize()}),this.swipe_events(n)},swipe_events:function(){var e=this;t(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(e){e.touches||(e=e.originalEvent);var n={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:i};t(this).data("swipe-transition",n),e.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(n){if(n.touches||(n=n.originalEvent),!(n.touches.length>1||n.scale&&1!==n.scale)){var i=t(this).data("swipe-transition");if("undefined"==typeof i&&(i={}),i.delta_x=n.touches[0].pageX-i.start_page_x,"undefined"==typeof i.is_scrolling&&(i.is_scrolling=!!(i.is_scrolling||Math.abs(i.delta_x)<Math.abs(n.touches[0].pageY-i.start_page_y))),!i.is_scrolling&&!i.active){n.preventDefault();var s=i.delta_x<0?"next":"prev";i.active=!0,e.nav(n,s)}}}).on("touchend.fndtn.clearing",".visible-img",function(e){t(this).data("swipe-transition",{}),e.stopPropagation()})},assemble:function(e){var n=e.parent();if(!n.parent().hasClass("carousel")){n.after('<div id="foundationClearingHolder"></div>');var i=t("#foundationClearingHolder"),s=n.data("clearing-init"),a=n.detach(),o={grid:'<div class="carousel">'+a[0].outerHTML+"</div>",viewing:s.templates.viewing},r='<div class="clearing-assembled"><div>'+o.viewing+o.grid+"</div></div>";return i.after(r).remove()}},open:function(e,n,i){var s=i.closest(".clearing-assembled"),a=t("div",s).first(),o=t(".visible-img",a),r=t("img",o).not(e);this.locked()||(r.attr("src",this.load(e)).css("visibility","hidden"),this.loaded(r,function(){r.css("visibility","visible"),s.addClass("clearing-blackout"),a.addClass("clearing-container"),o.show(),this.fix_height(i).caption(t(".clearing-caption",o),e).center(r).shift(n,i,function(){i.siblings().removeClass("visible"),i.addClass("visible")})}.bind(this)))},close:function(e,n){e.preventDefault();var i,s,a=function(t){return/blackout/.test(t.selector)?t:t.closest(".clearing-blackout")}(t(n));return n===e.target&&a&&(i=t("div",a).first(),s=t(".visible-img",i),this.settings.prev_index=0,t("ul[data-clearing]",a).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),s.hide()),!1},is_open:function(t){return t.parent().prop("style").length>0},keydown:function(e){var n=t("ul[data-clearing]",".clearing-blackout");39===e.which&&this.go(n,"next"),37===e.which&&this.go(n,"prev"),27===e.which&&t("a.clearing-close").trigger("click")},nav:function(e,n){var i=t("ul[data-clearing]",".clearing-blackout");e.preventDefault(),this.go(i,n)},resize:function(){var e=t("img",".clearing-blackout .visible-img");e.length&&this.center(e)},fix_height:function(e){var n=e.parent().children();return n.each(function(){var e=t(this),n=e.find("img");e.height()>n.outerHeight()&&e.addClass("fix-height")}).closest("ul").width(100*n.length+"%"),this},update_paddles:function(e){var n=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t(".clearing-main-next",n).removeClass("disabled"):t(".clearing-main-next",n).addClass("disabled"),e.prev().length>0?t(".clearing-main-prev",n).removeClass("disabled"):t(".clearing-main-prev",n).addClass("disabled")},center:function(t){return this.rtl?t.css({marginRight:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2)}):t.css({marginLeft:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2)}),this},load:function(t){if("A"===t[0].nodeName)var e=t.attr("href");else var e=t.parent().attr("href");return this.preload(t),e?e:t.attr("src")},preload:function(t){this.img(t.closest("li").next()).img(t.closest("li").prev())},img:function(e){if(e.length){var n=new Image,i=t("a",e);n.src=i.length?i.attr("href"):t("img",e).attr("src")}return this},caption:function(t,e){var n=e.data("caption");return n?t.html(n).show():t.text("").hide(),this},go:function(e,n){var i=t(".visible",e),s=i[n]();s.length&&t("img",s).trigger("click",[i,s])},shift:function(t,e,n){var i,s=e.parent(),a=this.settings.prev_index||e.index(),o=this.direction(s,t,e),r=parseInt(s.css("left"),10),l=e.outerWidth();e.index()===a||/skip/.test(o)?/skip/.test(o)&&(i=e.index()-this.settings.up_count,this.lock(),i>0?s.animate({left:-(i*l)},300,this.unlock()):s.animate({left:0},300,this.unlock())):/left/.test(o)?(this.lock(),s.animate({left:r+l},300,this.unlock())):/right/.test(o)&&(this.lock(),s.animate({left:r-l},300,this.unlock())),n()},direction:function(e,n,i){var s,a=t("li",e),o=a.outerWidth()+a.outerWidth()/4,r=Math.floor(t(".clearing-container").outerWidth()/o)-1,l=a.index(i);return this.settings.up_count=r,s=this.adjacent(this.settings.prev_index,l)?l>r&&l>this.settings.prev_index?"right":l>r-1&&l<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=l,s},adjacent:function(t,e){for(var n=e+1;n>=e-1;n--)if(n===t)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){t(this.scope).off(".fndtn.clearing"),t(e).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.0.0",settings:{active_class:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(t,e,n){Foundation.inherit(this,"throttle"),this.bindings(e,n)},events:function(){var n=this;t(this.scope).off(".dropdown").on("click.fndtn.dropdown","[data-dropdown]",function(e){var i=t(this).data("dropdown-init");e.preventDefault(),(!i.is_hover||Modernizr.touch)&&n.toggle(t(this))}).on("mouseenter.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(){var e=t(this);if(clearTimeout(n.timeout),e.data("dropdown"))var i=t("#"+e.data("dropdown")),s=e;else{var i=e;s=t("[data-dropdown='"+i.attr("id")+"']")}var a=s.data("dropdown-init");a.is_hover&&n.open.apply(n,[i,s])}).on("mouseleave.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(){var e=t(this);n.timeout=setTimeout(function(){if(e.data("dropdown")){var i=e.data("dropdown-init");i.is_hover&&n.close.call(n,t("#"+e.data("dropdown")))}else{var s=t('[data-dropdown="'+t(this).attr("id")+'"]'),i=s.data("dropdown-init");i.is_hover&&n.close.call(n,e)}}.bind(this),150)}).on("click.fndtn.dropdown",function(e){var i=t(e.target).closest("[data-dropdown-content]");if(!t(e.target).data("dropdown")&&!t(e.target).parent().data("dropdown"))return!t(e.target).data("revealId")&&i.length>0&&(t(e.target).is("[data-dropdown-content]")||t.contains(i.first()[0],e.target))?(e.stopPropagation(),void 0):(n.close.call(n,t("[data-dropdown-content]")),void 0)}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed),t(e).off(".dropdown").on("resize.fndtn.dropdown",n.throttle(function(){n.resize.call(n)},50)).trigger("resize")},close:function(e){var n=this;e.each(function(){t(this).hasClass(n.settings.active_class)&&(t(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.active_class),t(this).trigger("closed"))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.trigger("opened")},toggle:function(e){var n=t("#"+e.data("dropdown"));0!==n.length&&(this.close.call(this,t("[data-dropdown-content]").not(n)),n.hasClass(this.settings.active_class)?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(),a=i.offset();if(a.top-=s.offset().top,a.left-=s.offset().left,this.small())n.css({position:"absolute",width:"95%","max-width":"none",top:a.top+i.outerHeight()}),n.css(Foundation.rtl?"right":"left","2.5%");else{if(!Foundation.rtl&&t(e).width()>n.outerWidth()+i.offset().left){var o=a.left;n.hasClass("right")&&n.removeClass("right")}else{n.hasClass("right")||n.addClass("right");var o=a.left-(n.outerWidth()-i.outerWidth())}n.attr("style","").css({position:"absolute",top:a.top+i.outerHeight(),left:o})}return n},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},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(){}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.0.0",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":Foundation.media_queries.small,small:Foundation.media_queries.small,medium:Foundation.media_queries.medium,large:Foundation.media_queries.large,xlarge:Foundation.media_queries.xlarge,xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,n,i){if(/IMG/.test(e[0].nodeName)){var s=e[0].src;if(new RegExp(n,"i").test(s))return;return e[0].src=n,i(e[0].src)}var a=e.data("interchange-last-path");if(a!=n)return t.get(n,function(t){e.html(t),e.data("interchange-last-path",n),i()})}}},init:function(t,e,n){Foundation.inherit(this,"throttle"),this.data_attr="data-"+this.settings.load_attr,this.bindings(e,n),this.load("images"),this.load("nodes")},events:function(){var n=this;return t(e).off(".interchange").on("resize.fndtn.interchange",n.throttle(function(){n.resize.call(n)},50)),this},resize:function(){var e=this.cache;if(!this.images_loaded||!this.nodes_loaded)return setTimeout(t.proxy(this.resize,this),50),void 0;for(var n in e)if(e.hasOwnProperty(n)){var i=this.results(n,e[n]);i&&this.settings.directives[i.scenario[1]](i.el,i.scenario[0],function(){if(arguments[0]instanceof Array)var t=arguments[0];else var t=Array.prototype.slice.call(arguments,0);i.el.trigger(i.scenario[1],t)})}},results:function(t,e){var n=e.length;if(n>0)for(var i=this.S('[data-uuid="'+t+'"]'),s=n-1;s>=0;s--){var a,o=e[s][2];if(a=this.settings.named_queries.hasOwnProperty(o)?matchMedia(this.settings.named_queries[o]):matchMedia(o),a.matches)return{el:i,scenario:e[s]}}return!1},load:function(t,e){return("undefined"==typeof this["cached_"+t]||e)&&this["update_"+t](),this["cached_"+t]},update_images:function(){var t=this.S("img["+this.data_attr+"]"),e=t.length,n=0,i=this.data_attr;this.cache={},this.cached_images=[],this.images_loaded=0===e;for(var s=e-1;s>=0;s--){if(n++,t[s]){var a=t[s].getAttribute(i)||"";a.length>0&&this.cached_images.push(t[s])}n===e&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var t=this.S("["+this.data_attr+"]:not(img)"),e=t.length,n=0,i=this.data_attr;this.cached_nodes=[],this.nodes_loaded=0===e;for(var s=e-1;s>=0;s--){n++;var a=t[s].getAttribute(i)||"";a.length>0&&this.cached_nodes.push(t[s]),n===e&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(n){for(var i=this["cached_"+n].length,s=i-1;s>=0;s--)this.object(t(this["cached_"+n][s]));return t(e).trigger("resize")},parse_params:function(t,e,n){return[this.trim(t),this.convert_directive(e),this.trim(n)]
  },convert_directive:function(t){var e=this.trim(t);return e.length>0?e:"replace"},object:function(t){var e=this.parse_data_attr(t),n=[],i=e.length;if(i>0)for(var s=i-1;s>=0;s--){var a=e[s].split(/\((.*?)(\))$/);if(a.length>1){var o=a[0].split(","),r=this.parse_params(o[0],o[1],a[1]);n.push(r)}}return this.store(t,n)},uuid:function(t){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}var n=t||"-";return e()+e()+n+e()+n+e()+n+e()+n+e()+e()+e()},store:function(t,e){var n=this.uuid(),i=t.data("uuid");return i?this.cache[i]:(t.attr("data-uuid",n),this.cache[n]=e)},trim:function(e){return"string"==typeof e?t.trim(e):e},parse_data_attr:function(t){for(var e=t.data(this.settings.load_attr).split(/\[(.*?)\]/),n=e.length,i=[],s=n-1;s>=0;s--)e[s].replace(/[\W\d]+/,"").length>4&&i.push(e[s]);return i},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.joyride={name:"joyride",version:"5.0.0",defaults:{expose:!1,modal:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(t,e,n){Foundation.inherit(this,"throttle delay"),this.settings=this.defaults,this.bindings(e,n)},events:function(){var n=this;t(this.scope).off(".joyride").on("click.fndtn.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.fndtn.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end()}.bind(this)),t(e).off(".joyride").on("resize.fndtn.joyride",n.throttle(function(){if(t("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){var e=t(n.settings.exposed);e.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))},start:function(){var e=this,n=t("[data-joyride]",this.scope),i=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],s=i.length;!n.length>0||(this.settings.init||this.events(),this.settings=n.data("joyride-init"),this.settings.$content_el=n,this.settings.$body=t(this.settings.tip_container),this.settings.body_offset=t(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,"function"!=typeof t.cookie&&(this.settings.cookie_monster=!1),(!this.settings.cookie_monster||this.settings.cookie_monster&&null===t.cookie(this.settings.cookie_name))&&(this.settings.$tip_content.each(function(n){var a=t(this);this.settings=t.extend({},e.defaults,e.data_options(a));for(var o=s-1;o>=0;o--)e.settings[i[o]]=parseInt(e.settings[i[o]],10);e.create({$li:a,index:n})}),!this.settings.start_timer_on_click&&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){var n;return n=0===e&&this.settings.start_timer_on_click&&this.settings.timer>0||0===this.settings.timer?"":t(this.settings.template.timer)[0].outerHTML},button_text:function(e){return this.settings.next_button?(e=t.trim(e)||"Next",e=t(this.settings.template.button).append(e)[0].outerHTML):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.tip_container).append(s)},show:function(e){var n=null;this.settings.$li===i||-1===t.inArray(this.settings.$li.index(),this.settings.pause_after)?(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.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=t.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],/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.tip_animation)?(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.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),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 matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},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.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),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").eq(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"),s=function(){return i?t(n.getElementById(i)):e?t("."+e).first():t("body")};this.settings.$target=s()},scroll_to:function(){var n,i;n=t(e).height()/2,i=Math.ceil(this.settings.$target.offset().top-n+this.settings.$next_tip.outerHeight()),i>0&&t("html, body").animate({scrollTop:i},this.settings.scroll_speed,"swing")},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pause_after)},restart:function(){this.hide(),this.settings.$li=i,this.show("init")},pos_default:function(n,i){var s=(Math.ceil(t(e).height()/2),this.settings.$next_tip.offset(),this.settings.$next_tip.find(".joyride-nub")),a=Math.ceil(s.outerWidth()/2),o=Math.ceil(s.outerHeight()/2),r=n||!1;if(r&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),"undefined"==typeof 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+o+this.settings.$target.outerHeight(),left:l}),this.nub_position(s,this.settings.tip_settings.nub_position,"top")}else if(this.top()){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-this.settings.$next_tip.outerHeight()-o,left:l}),this.nub_position(s,this.settings.tip_settings.nub_position,"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+a}),this.nub_position(s,this.settings.tip_settings.nub_position,"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)-a}),this.nub_position(s,this.settings.tip_settings.nub_position,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}r&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(e){var n=this.settings.$next_tip.outerHeight(),i=(this.settings.$next_tip.offset(),this.settings.$target.outerHeight()),s=t(".joyride-nub",this.settings.$next_tip),a=Math.ceil(s.outerHeight()/2),o=e||!1;s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),o&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(s):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-n-a}),s.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+a}),s.addClass("top")),o&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(t){this.center(),t.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var e=t(".joyride-modal-bg");e.length<1&&t("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tip_animation)?e.show():e.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var n,i,s,a,o,r="expose-"+Math.floor(1e4*Math.random());if(arguments.length>0&&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}return s.length<1?(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:s.outerWidth(!0),height:s.outerHeight(!0)}),i=t(this.settings.template.expose_cover),a={zIndex:s.css("z-index"),position:s.css("position")},o=null==s.attr("class")?"":s.attr("class"),s.css("z-index",parseInt(n.css("z-index"))+1),"static"==a.position&&s.css("position","relative"),s.data("expose-css",a),s.data("orig-class",o),s.attr("class",o+" "+this.settings.expose_add_class),i.css({top:s.offset().top,left:s.offset().left,width:s.outerWidth(!0),height:s.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(i),n.addClass(r),i.addClass(r),s.data("expose",r),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,s),this.add_exposed(s),void 0)},un_expose:function(){var n,i,s,a,o,r=!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}return i.length<1?(e.console&&console.error("element not valid",i),!1):(n=i.data("expose"),s=t("."+n),arguments.length>1&&(r=arguments[1]),r===!0?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():s.remove(),a=i.data("expose-css"),"auto"==a.zIndex?i.css("z-index",""):i.css("z-index",a.zIndex),a.position!=i.css("position")&&("static"==a.position?i.css("position",""):i.css("position",a.position)),o=i.data("orig-class"),i.attr("class",o),i.removeData("orig-classes"),i.removeData("expose"),i.removeData("expose-z-index"),this.remove_exposed(i),void 0)},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;i>s;s++)if(this.settings.exposed[s]==n)return this.settings.exposed.splice(s,1),void 0},center:function(){var n=t(e);return this.settings.$next_tip.css({top:(n.height()-this.settings.$next_tip.outerHeight())/2+n.scrollTop(),left:(n.width()-this.settings.$next_tip.outerWidth())/2+n.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(n){var i=t(e),s=i.height()/2,a=Math.ceil(this.settings.$target.offset().top-s+this.settings.$next_tip.outerHeight()),o=i.width()+i.scrollLeft(),r=i.height()+a,l=i.height()+i.scrollTop(),c=i.scrollTop();return c>a&&(c=0>a?0:a),r>l&&(l=r),[n.offset().top<c,o<n.offset().left+n.outerWidth(),l<n.offset().top+n.outerHeight(),i.scrollLeft()>n.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.cookie_monster&&t.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),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.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip),t(".joyride-tip-guide").remove()},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(){}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.magellan={name:"magellan",version:"5.0.0",settings:{active_class:"active",threshold:0},init:function(){this.fixed_magellan=t("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=t("[data-magellan-destination]").last(),this.events()},events:function(){var n=this;t(this.scope).off(".magellan").on("arrival.fndtn.magellan","[data-magellan-arrival]",function(){var e=t(this),i=e.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.settings.active_class;e.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(e).removeClass(s),e.addClass(s)}),this.fixed_magellan.off(".magellan").on("update-position.fndtn.magellan",function(){t(this)}).trigger("update-position"),t(e).off(".magellan").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);"undefined"==typeof e.data("magellan-top-offset")&&e.data("magellan-top-offset",e.offset().top),"undefined"==typeof e.data("magellan-fixed-position")&&e.data("magellan-fixed-position",!1);var s=i+n.settings.threshold>e.data("magellan-top-offset"),a=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&&"undefined"!=typeof a&&0!=a&&e.css({position:"fixed",top:a+"px"}))})}),this.last_destination.length>0&&t(e).on("scroll.fndtn.magellan",function(){var i=t(e).scrollTop(),s=i+t(e).height(),a=Math.ceil(n.last_destination.offset().top);t("[data-magellan-destination]").each(function(){var e=t(this),o=e.attr("data-magellan-destination"),r=e.offset().top-e.outerHeight(!0)-i;r<=n.settings.threshold&&t("[data-magellan-arrival='"+o+"']").trigger("arrival"),s>=t(n.scope).height()&&a>i&&s>a&&t("[data-magellan-arrival]").last().trigger("arrival")})})},set_threshold:function(){"number"!=typeof this.settings.threshold&&(this.settings.threshold=this.fixed_magellan.length>0?this.fixed_magellan.outerHeight(!0):0)},off:function(){t(this.scope).off(".fndtn.magellan"),t(e).off(".fndtn.magellan")},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.0.0",settings:{},init:function(){this.events()},events:function(){t(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(e){e.preventDefault(),t(this).closest(".off-canvas-wrap").toggleClass("move-right")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(e){e.preventDefault(),t(".off-canvas-wrap").removeClass("move-right")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(e){e.preventDefault(),t(this).closest(".off-canvas-wrap").toggleClass("move-left")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(e){e.preventDefault(),t(".off-canvas-wrap").removeClass("move-left")})},reflow:function(){}}}(jQuery,this,this.document),function(t,e,n,i){"use strict";var s=function(){},a=function(s,a){if(s.hasClass(a.slides_container_class))return this;var c,u,d,p,f,h,g=this,m=s,v=0,y=!1;m.children().first().addClass(a.active_slide_class),g.update_slide_number=function(e){a.slide_number&&(u.find("span:first").text(parseInt(e)+1),u.find("span:last").text(m.children().length)),a.bullets&&(d.children().removeClass(a.bullets_active_class),t(d.children().get(e)).addClass(a.bullets_active_class))},g.update_active_link=function(e){var n=t('a[data-orbit-link="'+m.children().eq(e).attr("data-orbit-slide")+'"]');n.parents("ul").find("[data-orbit-link]").removeClass(a.bullets_active_class),n.addClass(a.bullets_active_class)},g.build_markup=function(){m.wrap('<div class="'+a.container_class+'"></div>'),c=m.parent(),m.addClass(a.slides_container_class),a.navigation_arrows&&(c.append(t('<a href="#"><span></span></a>').addClass(a.prev_class)),c.append(t('<a href="#"><span></span></a>').addClass(a.next_class))),a.timer&&(p=t("<div>").addClass(a.timer_container_class),p.append("<span>"),p.append(t("<div>").addClass(a.timer_progress_class)),p.addClass(a.timer_paused_class),c.append(p)),a.slide_number&&(u=t("<div>").addClass(a.slide_number_class),u.append("<span></span> "+a.slide_number_text+" <span></span>"),c.append(u)),a.bullets&&(d=t("<ol>").addClass(a.bullets_container_class),c.append(d),d.wrap('<div class="orbit-bullets-container"></div>'),m.children().each(function(e){var n=t("<li>").attr("data-orbit-slide",e);d.append(n)})),a.stack_on_small&&c.addClass(a.stack_on_small_class),g.update_slide_number(0),g.update_active_link(0)},g._goto=function(e,n){if(e===v)return!1;"object"==typeof h&&h.restart();var i=m.children(),s="next";y=!0,v>e&&(s="prev"),e>=i.length?e=0:0>e&&(e=i.length-1);var o=t(i.get(v)),r=t(i.get(e));o.css("zIndex",2),o.removeClass(a.active_slide_class),r.css("zIndex",4).addClass(a.active_slide_class),m.trigger("before-slide-change.fndtn.orbit"),a.before_slide_change(),g.update_active_link(e);var l=function(){var t=function(){v=e,y=!1,n===!0&&(h=g.create_timer(),h.start()),g.update_slide_number(v),m.trigger("after-slide-change.fndtn.orbit",[{slide_number:v,total_slides:i.length}]),a.after_slide_change(v,i.length)};m.height()!=r.height()&&a.variable_height?m.animate({height:r.height()},250,"linear",t):t()};if(1===i.length)return l(),!1;var c=function(){"next"===s&&f.next(o,r,l),"prev"===s&&f.prev(o,r,l)};r.height()>m.height()&&a.variable_height?m.animate({height:r.height()},250,"linear",c):c()},g.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v+1)},g.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v-1)},g.link_custom=function(e){e.preventDefault();var n=t(this).attr("data-orbit-link");if("string"==typeof n&&""!=(n=t.trim(n))){var i=c.find("[data-orbit-slide="+n+"]");-1!=i.index()&&g._goto(i.index())}},g.link_bullet=function(){var e=t(this).attr("data-orbit-slide");"string"==typeof e&&""!=(e=t.trim(e))&&g._goto(parseInt(e))},g.timer_callback=function(){g._goto(v+1,!0)},g.compute_dimensions=function(){var e=t(m.children().get(v)),n=e.height();a.variable_height||m.children().each(function(){t(this).height()>n&&(n=t(this).height())}),m.height(n)},g.create_timer=function(){var t=new o(c.find("."+a.timer_container_class),a,g.timer_callback);return t},g.stop_timer=function(){"object"==typeof h&&h.stop()},g.toggle_timer=function(){var t=c.find("."+a.timer_container_class);t.hasClass(a.timer_paused_class)?("undefined"==typeof h&&(h=g.create_timer()),h.start()):"object"==typeof h&&h.stop()},g.init=function(){g.build_markup(),a.timer&&(h=g.create_timer(),h.start()),f=new l(a,m),"slide"===a.animation&&(f=new r(a,m)),c.on("click","."+a.next_class,g.next),c.on("click","."+a.prev_class,g.prev),c.on("click","[data-orbit-slide]",g.link_bullet),c.on("click",g.toggle_timer),a.swipe&&c.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:i};c.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=c.data("swipe-transition");if("undefined"==typeof e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var n=e.delta_x<0?v+1:v-1;e.active=!0,g._goto(n)}}}).on("touchend.fndtn.orbit",function(t){c.data("swipe-transition",{}),t.stopPropagation()}),c.on("mouseenter.fndtn.orbit",function(){a.timer&&a.pause_on_hover&&g.stop_timer()}).on("mouseleave.fndtn.orbit",function(){a.timer&&a.resume_on_mouseout&&h.start()}),t(n).on("click","[data-orbit-link]",g.link_custom),t(e).on("resize",g.compute_dimensions),t(e).on("load",g.compute_dimensions),t(e).on("load",function(){c.prev(".preloader").css("display","none")}),m.trigger("ready.fndtn.orbit")},g.init()},o=function(t,e,n){var i,s,a=this,o=e.timer_speed,r=t.find("."+e.timer_progress_class),l=-1;this.update_progress=function(t){var e=r.clone();e.attr("style",""),e.css("width",t+"%"),r.replaceWith(e),r=e},this.restart=function(){clearTimeout(s),t.addClass(e.timer_paused_class),l=-1,a.update_progress(0)},this.start=function(){return t.hasClass(e.timer_paused_class)?(l=-1===l?o:l,t.removeClass(e.timer_paused_class),i=(new Date).getTime(),r.animate({width:"100%"},l,"linear"),s=setTimeout(function(){a.restart(),n()},l),t.trigger("timer-started.fndtn.orbit"),void 0):!0},this.stop=function(){if(t.hasClass(e.timer_paused_class))return!0;clearTimeout(s),t.addClass(e.timer_paused_class);var n=(new Date).getTime();l-=n-i;var r=100-l/o*100;a.update_progress(r),t.trigger("timer-stopped.fndtn.orbit")}},r=function(e){var n=e.animation_speed,i=1===t("html[dir=rtl]").length,s=i?"marginRight":"marginLeft",a={};a[s]="0%",this.next=function(t,e,i){t.animate({marginLeft:"-100%"},n),e.animate(a,n,function(){t.css(s,"100%"),i()})},this.prev=function(t,e,i){t.animate({marginLeft:"100%"},n),e.css(s,"-100%"),e.animate(a,n,function(){t.css(s,"100%"),i()})}},l=function(e){{var n=e.animation_speed;1===t("html[dir=rtl]").length}this.next=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})},this.prev=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.0.0",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:s,after_slide_change:s},init:function(e,n){var i=this;if("object"==typeof n&&t.extend(!0,i.settings,n),t(e).is("[data-orbit]")){var s=t(e),o=i.data_options(s);new a(s,t.extend({},i.settings,o))}t("[data-orbit]",e).each(function(e,n){var s=t(n),o=i.data_options(s);new a(s,t.extend({},i.settings,o))})}}}(jQuery,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.reveal={name:"reveal",version:"5.0.0",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"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(t,e,n){Foundation.inherit(this,"delay"),this.bindings(e,n)},events:function(){var e=this;return t("[data-reveal-id]",this.scope).off(".reveal").on("click.fndtn.reveal",function(n){if(n.preventDefault(),!e.locked){var i=t(this),s=i.data("reveal-ajax");if(e.locked=!0,"undefined"==typeof s)e.open.call(e,i);else{var a=s===!0?i.attr("href"):s;e.open.call(e,i,{url:a})}}}),t(this.scope).off(".reveal").on("click.fndtn.reveal",this.close_targets(),function(n){if(n.preventDefault(),!e.locked){var i=t("[data-reveal].open").data("reveal-init"),s=t(n.target)[0]===t("."+i.bg_class)[0];if(s&&!i.close_on_background_click)return;e.locked=!0,e.close.call(e,s?t("[data-reveal].open"):t(this).closest("[data-reveal]"))}}),t("[data-reveal]",this.scope).length>0?t(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):t(this.scope).on("open.fndtn.reveal","[data-reveal]",this.settings.open).on("opened.fndtn.reveal","[data-reveal]",this.settings.opened).on("opened.fndtn.reveal","[data-reveal]",this.open_video).on("close.fndtn.reveal","[data-reveal]",this.settings.close).on("closed.fndtn.reveal","[data-reveal]",this.settings.closed).on("closed.fndtn.reveal","[data-reveal]",this.close_video),t("body").on("keyup.fndtn.reveal",function(e){var n=t("[data-reveal].open"),i=n.data("reveal-init");27===e.which&&i.close_on_esc&&n.foundation("reveal","close")}),!0},open:function(e,n){if(e)if("undefined"!=typeof e.selector)var i=t("#"+e.data("reveal-id"));else{var i=t(this.scope);n=e}else var i=t(this.scope);if(!i.hasClass("open")){var s=t("[data-reveal].open");if("undefined"==typeof 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(),"undefined"!=typeof n&&n.url){var a=this,o="undefined"!=typeof n.success?n.success:null;t.extend(n,{success:function(e,n,r){t.isFunction(o)&&o(e,n,r),i.html(e),t(i).foundation("section","reflow"),a.hide(s,a.settings.css.close),a.show(i,a.settings.css.open)}}),t.ajax(n)}else this.hide(s,this.settings.css.close),this.show(i,this.settings.css.open)}},close:function(e){var e=e&&e.length?e:t(this.scope),n=t("[data-reveal].open");n.length>0&&(this.locked=!0,e.trigger("close"),this.toggle_bg(),this.hide(n,this.settings.css.close))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(){0===t("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{"class":this.settings.bg_class}).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(0===n.parent("body").length){var s=n.wrap('<div style="display: none;" />').parent();n.on("closed.fndtn.reveal.wrapped",function(){n.detach().appendTo(s),n.unwrap().unbind("closed.fndtn.reveal.wrapped")}),n.detach().appendTo("body")}if(/pop/i.test(this.settings.animation)){i.top=t(e).scrollTop()-n.data("offset")+"px";var a={top:t(e).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(i).animate(a,this.settings.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animation_speed/2)}if(/fade/i.test(this.settings.animation)){var a={opacity:1};return this.delay(function(){return n.css(i).animate(a,this.settings.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animation_speed/2)}return n.css(i).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animation_speed/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.animation_speed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animation_speed/2)}if(/fade/i.test(this.settings.animation)){var s={opacity:0};return this.delay(function(){return n.animate(s,this.settings.animation_speed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animation_speed/2)}return n.hide().css(i).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animation_speed/2):n.hide()},close_video:function(){var e=t(this).find(".flex-video"),n=e.find("iframe");n.length>0&&(n.attr("data-src",n[0].src),n.attr("src","about:blank"),e.hide())},open_video:function(){var e=t(this).find(".flex-video"),n=e.find("iframe");if(n.length>0){var s=n.attr("data-src");if("string"==typeof s)n[0].src=n.attr("data-src");else{var a=n[0].src;n[0].src=i,n[0].src=a}e.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(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.tab={name:"tab",version:"5.0.1",settings:{active_class:"active"},init:function(t,e,n){this.bindings(e,n)},events:function(){t(this.scope).off(".tab").on("click.fndtn.tab","[data-tab] > dd > a",function(e){e.preventDefault();var n=t(this).parent(),i=t("#"+this.href.split("#")[1]),s=n.siblings(),a=n.closest("[data-tab]").data("tab-init");
  n.addClass(a.active_class),s.removeClass(a.active_class),i.siblings().removeClass(a.active_class).end().addClass(a.active_class)})},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.0.0",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,tip_template:function(t,e){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,n){this.bindings(e,n)},events:function(){var e=this;Modernizr.touch?t(this.scope).off(".tooltip").on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(n){var i=t.extend({},e.settings,e.data_options(t(this)));i.disable_for_touch||(n.preventDefault(),t(i.tooltip_class).hide(),e.showOrCreateTip(t(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltip_class,function(e){e.preventDefault(),t(this).fadeOut(150)}):t(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(n){var i=t(this);/enter|over/i.test(n.type)?e.showOrCreateTip(i):("mouseout"===n.type||"mouseleave"===n.type)&&e.hide(i)})},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.tooltip_class)),"object"==typeof i?i:!1},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.tip_template(this.selector(e),t("<div></div>").html(e.attr("title")).html())),i=this.inheritable_classes(e);n.addClass(i).appendTo(this.settings.append_to),Modernizr.touch&&n.append('<span class="tap-to-close">'+this.settings.touch_close_text+"</span>"),e.removeAttr("title").attr("title",""),this.show(e)},reposition:function(e,n,i){var s,a,o,r,l;if(n.css("visibility","hidden").show(),s=e.data("width"),a=n.children(".nub"),o=a.outerHeight(),r=a.outerHeight(),l=function(t,e,n,i,s,a){return t.css({top:e?e:"auto",bottom:i?i:"auto",left:s?s:"auto",right:n?n:"auto",width:a?a:"auto"}).end()},l(n,e.offset().top+e.outerHeight()+10,"auto","auto",e.offset().left,s),this.small())l(n,e.offset().top+e.outerHeight()+10,"auto","auto",12.5,t(this.scope).width()),n.addClass("tip-override"),l(a,-o,"auto","auto",e.offset().left);else{var c=e.offset().left;Foundation.rtl&&(c=e.offset().left+e.offset().width-n.outerWidth()),l(n,e.offset().top+e.outerHeight()+10,"auto","auto",c,s),n.removeClass("tip-override"),i&&i.indexOf("tip-top")>-1?l(n,e.offset().top-n.outerHeight(),"auto","auto",c,s).removeClass("tip-override"):i&&i.indexOf("tip-left")>-1?l(n,e.offset().top+e.outerHeight()/2-2.5*o,"auto","auto",e.offset().left-n.outerWidth()-o,s).removeClass("tip-override"):i&&i.indexOf("tip-right")>-1&&l(n,e.offset().top+e.outerHeight()/2-2.5*o,"auto","auto",e.offset().left+e.outerWidth()+o,s).removeClass("tip-override")}n.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches},inheritable_classes:function(e){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additional_inheritable_classes),i=e.attr("class"),s=i?t.map(i.split(" "),function(e){return-1!==t.inArray(e,n)?e:void 0}).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){var e=this.getTip(t);e.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.tooltip_class).each(function(e){t("[data-tooltip]").get(e).attr("title",t(this).text())}).remove()},reflow:function(){}}}(jQuery,this,this.document),function(t,e,n){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.0.1",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0},init:function(e,n,i){Foundation.inherit(this,"addCustomRule register_media throttle");var s=this;s.register_media("topbar","foundation-mq-topbar"),this.bindings(n,i),t("[data-topbar]",this.scope).each(function(){{var e=t(this),n=e.data("topbar-init");t("section",this),t("> ul",this).first()}e.data("index",0);var i=e.parent();i.hasClass("fixed")||i.hasClass(n.sticky_class)?(s.settings.sticky_class=n.sticky_class,s.settings.stick_topbar=e,e.data("height",i.outerHeight()),e.data("stickyoffset",i.offset().top)):e.data("height",e.outerHeight()),n.assembled||s.assemble(e),n.is_hover?t(".has-dropdown",e).addClass("not-click"):t(".has-dropdown",e).removeClass("not-click"),s.addCustomRule(".f-topbar-fixed { padding-top: "+e.data("height")+"px }"),i.hasClass("fixed")&&t("body").addClass("f-topbar-fixed")})},toggle:function(n){var i=this;if(n)var s=t(n).closest("[data-topbar]");else var s=t("[data-topbar]");var a=s.data("topbar-init"),o=t("section, .section",s);i.breakpoint()&&(i.rtl?(o.css({right:"0%"}),t(">.name",o).css({right:"100%"})):(o.css({left:"0%"}),t(">.name",o).css({left:"100%"})),t("li.moved",o).removeClass("moved"),s.data("index",0),s.toggleClass("expanded").css("height","")),a.scrolltop?s.hasClass("expanded")?s.parent().hasClass("fixed")&&(a.scrolltop?(s.parent().removeClass("fixed"),s.addClass("fixed"),t("body").removeClass("f-topbar-fixed"),e.scrollTo(0,0)):s.parent().removeClass("expanded")):s.hasClass("fixed")&&(s.parent().addClass("fixed"),s.removeClass("fixed"),t("body").addClass("f-topbar-fixed")):(s.parent().hasClass(i.settings.sticky_class)&&s.parent().addClass("fixed"),s.parent().hasClass("fixed")&&(s.hasClass("expanded")?(s.addClass("fixed"),s.parent().addClass("expanded")):(s.removeClass("fixed"),s.parent().removeClass("expanded"),i.update_sticky_positioning())))},timer:null,events:function(){var n=this;t(this.scope).off(".topbar").on("click.fndtn.topbar","[data-topbar] .toggle-topbar",function(t){t.preventDefault(),n.toggle(this)}).on("click.fndtn.topbar","[data-topbar] li.has-dropdown",function(e){var i=t(this),s=t(e.target),a=i.closest("[data-topbar]"),o=a.data("topbar-init");return s.data("revealId")?(n.toggle(),void 0):(n.breakpoint()||(!o.is_hover||Modernizr.touch)&&(e.stopImmediatePropagation(),i.hasClass("hover")?(i.removeClass("hover").find("li").removeClass("hover"),i.parents("li.hover").removeClass("hover")):(i.addClass("hover"),"A"===s[0].nodeName&&s.parent().hasClass("has-dropdown")&&e.preventDefault())),void 0)}).on("click.fndtn.topbar","[data-topbar] .has-dropdown>a",function(e){if(n.breakpoint()){e.preventDefault();var i=t(this),s=i.closest("[data-topbar]"),a=s.find("section, .section"),o=(i.next(".dropdown").outerHeight(),i.closest("li"));s.data("index",s.data("index")+1),o.addClass("moved"),n.rtl?(a.css({right:-(100*s.data("index"))+"%"}),a.find(">.name").css({right:100*s.data("index")+"%"})):(a.css({left:-(100*s.data("index"))+"%"}),a.find(">.name").css({left:100*s.data("index")+"%"})),s.css("height",i.siblings("ul").outerHeight(!0)+s.data("height"))}}),t(e).off(".topbar").on("resize.fndtn.topbar",n.throttle(function(){n.resize.call(n)},50)).trigger("resize"),t("body").off(".topbar").on("click.fndtn.topbar touchstart.fndtn.topbar",function(e){var n=t(e.target).closest("li").closest("li.hover");n.length>0||t("[data-topbar] li").removeClass("hover")}),t(this.scope).on("click.fndtn.topbar","[data-topbar] .has-dropdown .back",function(e){e.preventDefault();var i=t(this),s=i.closest("[data-topbar]"),a=s.find("section, .section"),o=(s.data("topbar-init"),i.closest("li.moved")),r=o.parent();s.data("index",s.data("index")-1),n.rtl?(a.css({right:-(100*s.data("index"))+"%"}),a.find(">.name").css({right:100*s.data("index")+"%"})):(a.css({left:-(100*s.data("index"))+"%"}),a.find(">.name").css({left:100*s.data("index")+"%"})),0===s.data("index")?s.css("height",""):s.css("height",r.outerHeight(!0)+s.data("height")),setTimeout(function(){o.removeClass("moved")},300)})},resize:function(){var e=this;t("[data-topbar]").each(function(){var i,s=t(this),a=(s.data("topbar-init"),s.parent("."+e.settings.sticky_class));if(!e.breakpoint()){var o=s.hasClass("expanded");s.css("height","").removeClass("expanded").find("li").removeClass("hover"),o&&e.toggle(s)}a.length>0&&(a.hasClass("fixed")?(a.removeClass("fixed"),i=a.offset().top,t(n.body).hasClass("f-topbar-fixed")&&(i-=s.data("height")),s.data("stickyoffset",i),a.addClass("fixed")):(i=a.offset().top,s.data("stickyoffset",i)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},assemble:function(e){{var n=e.data("topbar-init"),i=t("section",e);t("> ul",e).first()}i.detach(),t(".has-dropdown>a",i).each(function(){var e=t(this),i=e.siblings(".dropdown"),s=e.attr("href");if(n.mobile_show_parent_link&&s&&s.length>1)var a=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+s+'">'+e.text()+"</a></li>");else var a=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');1==n.custom_back_text?t("h5>a",a).html(n.back_text):t("h5>a",a).html("&laquo; "+e.html()),i.prepend(a)}),i.appendTo(e),this.sticky(),this.assembled(e)},assembled:function(e){e.data("topbar-init",t.extend({},e.data("topbar-init"),{assembled:!0}))},height:function(e){var n=0;return t("> li",e).each(function(){n+=t(this).outerHeight(!0)}),n},sticky:function(){var n=(t(e),this);t(e).on("scroll",function(){n.update_sticky_positioning()})},update_sticky_positioning:function(){var n="."+this.settings.sticky_class,i=t(e);if(t(n).length>0){var s=this.settings.sticky_topbar.data("stickyoffset");t(n).hasClass("expanded")||(i.scrollTop()>s?t(n).hasClass("fixed")||(t(n).addClass("fixed"),t("body").addClass("f-topbar-fixed")):i.scrollTop()<=s&&t(n).hasClass("fixed")&&(t(n).removeClass("fixed"),t("body").removeClass("f-topbar-fixed")))}},off:function(){t(this.scope).off(".fndtn.topbar"),t(e).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,this,this.document),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):this.Picker=t(jQuery)}(function(t){function e(i,s,a,o){function r(){return e._.node("div",e._.node("div",e._.node("div",e._.node("div",h.component.nodes(c.open),d.box),d.wrap),d.frame),d.holder)}function l(t){t.stopPropagation(),"focus"==t.type&&h.$root.addClass(d.focused),h.open()}if(!i)return e;var c={id:Math.abs(~~(1e9*Math.random()))},u=a?t.extend(!0,{},a.defaults,o):o||{},d=t.extend({},e.klasses(),u.klass),p=t(i),f=function(){return this.start()},h=f.prototype={constructor:f,$node:p,start:function(){return c&&c.start?h:(c.methods={},c.start=!0,c.open=!1,c.type=i.type,i.autofocus=i==document.activeElement,i.type="text",i.readOnly=!u.editable,h.component=new a(h,u),h.$root=t(e._.node("div",r(),d.picker)).on({focusin:function(t){h.$root.removeClass(d.focused),t.stopPropagation()},"mousedown click":function(e){var n=e.target;n!=h.$root.children()[0]&&(e.stopPropagation(),"mousedown"!=e.type||t(n).is(":input")||"OPTION"==n.nodeName||(e.preventDefault(),i.focus()))}}).on("click","[data-pick], [data-nav], [data-clear]",function(){var n=t(this),s=n.data(),a=n.hasClass(d.navDisabled)||n.hasClass(d.disabled),o=document.activeElement;o=o&&(o.type||o.href),(a||o&&!t.contains(h.$root[0],o))&&i.focus(),s.nav&&!a?h.set("highlight",h.component.item.highlight,{nav:s.nav}):e._.isInteger(s.pick)&&!a?h.set("select",s.pick).close(!0):s.clear&&h.clear().close(!0)}),u.formatSubmit&&(h._hidden=t('<input type=hidden name="'+("string"==typeof u.hiddenPrefix?u.hiddenPrefix:"")+i.name+("string"==typeof u.hiddenSuffix?u.hiddenSuffix:"_submit")+'"'+(p.data("value")||i.value?' value="'+e._.trigger(h.component.formats.toString,h.component,[u.formatSubmit,h.component.item.select])+'"':"")+">")[0]),p.data(s,h).addClass(d.input).val(p.data("value")?e._.trigger(h.component.formats.toString,h.component,[u.format,h.component.item.select]):i.value).after(h._hidden).on("focus.P"+c.id+" click.P"+c.id,l).on("change.P"+c.id,function(){h._hidden&&(h._hidden.value=i.value?e._.trigger(h.component.formats.toString,h.component,[u.formatSubmit,h.component.item.select]):"")}),u.editable||p.on("keydown.P"+c.id,function(t){var e=t.keyCode,n=/^(8|46)$/.test(e);return 27==e?(h.close(),!1):((32==e||n||!c.open&&h.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?h.clear().close():h.open()),void 0)}),u.container?t(u.container).append(h.$root):p.after(h.$root),h.on({start:h.component.onStart,render:h.component.onRender,stop:h.component.onStop,open:h.component.onOpen,close:h.component.onClose,set:h.component.onSet}).on({start:u.onStart,render:u.onRender,stop:u.onStop,open:u.onOpen,close:u.onClose,set:u.onSet}),i.autofocus&&h.open(),h.trigger("start").trigger("render"))},render:function(t){return t?h.$root.html(r()):h.$root.find("."+d.box).html(h.component.nodes(c.open)),h.trigger("render")},stop:function(){return c.start?(h.close(),h._hidden&&h._hidden.parentNode.removeChild(h._hidden),h.$root.remove(),p.removeClass(d.input).removeData(s),setTimeout(function(){p.off(".P"+c.id)},0),i.type=c.type,i.readOnly=!1,h.trigger("stop"),c.methods={},c.start=!1,h):h},open:function(s){return c.open?h:(p.addClass(d.active),h.$root.addClass(d.opened),s!==!1&&(c.open=!0,p.trigger("focus"),n.on("click.P"+c.id+" focusin.P"+c.id,function(t){var e=t.target;e!=i&&e!=document&&h.close(e===h.$root.children()[0])}).on("keydown.P"+c.id,function(n){var s=n.keyCode,a=h.component.key[s],o=n.target;27==s?h.close(!0):o!=i||!a&&13!=s?t.contains(h.$root[0],o)&&13==s&&(n.preventDefault(),o.click()):(n.preventDefault(),a?e._.trigger(h.component.key.go,h,[e._.trigger(a)]):h.$root.find("."+d.highlighted).hasClass(d.disabled)||h.set("select",h.component.item.highlight).close())})),h.trigger("open"))},close:function(t){return t&&(p.off("focus.P"+c.id).trigger("focus"),setTimeout(function(){p.on("focus.P"+c.id,l)},0)),p.removeClass(d.active),h.$root.removeClass(d.opened+" "+d.focused),c.open?(c.open=!1,n.off(".P"+c.id),h.trigger("close")):h},clear:function(){return h.set("clear")},set:function(n,i,s){var a,o,r=t.isPlainObject(n),l=r?n:{};if(s=r&&t.isPlainObject(i)?i:s||{},n){r||(l[n]=i);for(a in l)o=l[a],h.component.item[a]&&h.component.set(a,o,s),("select"==a||"clear"==a)&&p.val("clear"==a?"":e._.trigger(h.component.formats.toString,h.component,[u.format,h.component.get(a)])).trigger("change");h.render()}return s.muted?h:h.trigger("set",l)},get:function(t,n){return t=t||"value",null!=c[t]?c[t]:"value"==t?i.value:h.component.item[t]?"string"==typeof n?e._.trigger(h.component.formats.toString,h.component,[n,h.component.get(t)]):h.component.get(t):void 0},on:function(e,n){var i,s,a=t.isPlainObject(e),o=a?e:{};if(e){a||(o[e]=n);for(i in o)s=o[i],c.methods[i]=c.methods[i]||[],c.methods[i].push(s)}return h},trigger:function(t,n){var i=c.methods[t];return i&&i.map(function(t){e._.trigger(t,h,[n])}),h}};return new f}var n=t(document);return e.klasses=function(t){return t=t||"picker",{picker:t,opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},e._={group:function(t){for(var n,i="",s=e._.trigger(t.min,t);s<=e._.trigger(t.max,t,[s]);s+=t.i)n=e._.trigger(t.item,t,[s]),i+=e._.node(t.node,n[0],n[1],n[2]);return i},node:function(e,n,i,s){return n?(n=t.isArray(n)?n.join(""):n,i=i?' class="'+i+'"':"",s=s?" "+s:"","<"+e+i+s+">"+n+"</"+e+">"):""},lead:function(t){return(10>t?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return{}.toString.call(t).indexOf("Date")>-1&&this.isInteger(t.getDate())},isInteger:function(t){return{}.toString.call(t).indexOf("Number")>-1&&t%1===0}},e.extend=function(n,i){t.fn[n]=function(s,a){var o=this.data(n);return"picker"==s?o:o&&"string"==typeof s?(e._.trigger(o[s],o,[a]),this):this.each(function(){var a=t(this);a.data(n)||new e(this,n,i,s)})},t.fn[n].defaults=i.defaults},e}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):t(Picker,jQuery)}(function(t,e){function n(t,e){var n=this,i=t.$node[0].value,s=t.$node.data("value"),a=s||i,o=s?e.formatSubmit:e.format,r=function(){return"rtl"===getComputedStyle(t.$root[0]).direction};n.settings=e,n.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"navigate create validate",view:"create validate viewset",disable:"flipItem",enable:"flipItem"},n.item={},n.item.disable=(e.disable||[]).slice(0),n.item.enable=-function(t){return t[0]===!0?t.shift():-1}(n.item.disable),n.set("min",e.min).set("max",e.max).set("now").set("select",a||n.item.now,{format:o,data:function(t){return a&&(t.indexOf("mm")>-1||t.indexOf("m")>-1)}(n.formats.toArray(o))}),n.key={40:7,38:-7,39:function(){return r()?-1:1},37:function(){return r()?1:-1},go:function(t){n.set("highlight",[n.item.highlight.year,n.item.highlight.month,n.item.highlight.date+t],{interval:t}),this.render()}},t.on("render",function(){t.$root.find("."+e.klass.selectMonth).on("change",function(){t.set("highlight",[t.get("view").year,this.value,t.get("highlight").date]),t.$root.find("."+e.klass.selectMonth).trigger("focus")}),t.$root.find("."+e.klass.selectYear).on("change",function(){t.set("highlight",[this.value,t.get("view").month,t.get("highlight").date]),t.$root.find("."+e.klass.selectYear).trigger("focus")})}).on("open",function(){t.$root.find("button, select").attr("disabled",!1)}).on("close",function(){t.$root.find("button, select").attr("disabled",!0)})}var i=7,s=6;n.prototype.set=function(t,e,n){var i=this;return i.item["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(s){return e=i[s](t,e,n)}).pop(),"select"==t?i.set("highlight",i.item.select,n):"highlight"==t?i.set("view",i.item.highlight,n):("flip"==t||"min"==t||"max"==t||"disable"==t||"enable"==t)&&i.item.select&&i.item.highlight&&i.set("select",i.item.select,n).set("highlight",i.item.highlight,n),i},n.prototype.get=function(t){return this.item[t]},n.prototype.create=function(n,i,s){var a,o=this;return i=void 0===i?n:i,i==-1/0||1/0==i?a=i:e.isPlainObject(i)&&t._.isInteger(i.pick)?i=i.obj:e.isArray(i)?(i=new Date(i[0],i[1],i[2]),i=t._.isDate(i)?i:o.create().obj):i=t._.isInteger(i)||t._.isDate(i)?o.normalize(new Date(i),s):o.now(n,i,s),{year:a||i.getFullYear(),month:a||i.getMonth(),date:a||i.getDate(),day:a||i.getDay(),obj:a||i,pick:a||i.getTime()}},n.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},n.prototype.navigate=function(n,i,s){if(e.isPlainObject(i)){for(var a=new Date(i.year,i.month+(s&&s.nav?s.nav:0),1),o=a.getFullYear(),r=a.getMonth(),l=i.date;t._.isDate(a)&&new Date(o,r,l).getMonth()!==r;)l-=1;i=[o,r,l]}return i},n.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},n.prototype.measure=function(e,n){var i=this;return n?t._.isInteger(n)&&(n=i.now(e,n,{rel:n})):n="min"==e?-1/0:1/0,n},n.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},n.prototype.validate=function(n,i,s){var a,o,r,l,c=this,u=i,d=s&&s.interval?s.interval:1,p=-1===c.item.enable,f=c.item.min,h=c.item.max,g=p&&c.item.disable.filter(function(n){if(e.isArray(n)){var s=c.create(n).pick;s<i.pick?a=!0:s>i.pick&&(o=!0)}return t._.isInteger(n)}).length;if(!s.nav&&(!p&&c.disabled(i)||p&&c.disabled(i)&&(g||a||o)||i.pick<=f.pick||i.pick>=h.pick))for(p&&!g&&(!o&&d>0||!a&&0>d)&&(d*=-1);c.disabled(i)&&(Math.abs(d)>1&&(i.month<u.month||i.month>u.month)&&(i=u,d=Math.abs(d)/d),i.pick<=f.pick?(r=!0,d=1):i.pick>=h.pick&&(l=!0,d=-1),!r||!l);)i=c.create([i.year,i.month,i.date+d]);return i},n.prototype.disabled=function(n){var i=this,s=i.item.disable.filter(function(s){return t._.isInteger(s)?n.day===(i.settings.firstDay?s:s-1)%7:e.isArray(s)||t._.isDate(s)?n.pick===i.create(s).pick:void 0});return s=s.length&&!s.filter(function(t){return e.isArray(t)&&"inverted"==t[3]}).length,-1===i.item.enable?!s:s||n.pick<i.item.min.pick||n.pick>i.item.max.pick},n.prototype.parse=function(n,i,s){var a=this,o={};if(!i||t._.isInteger(i)||e.isArray(i)||t._.isDate(i)||e.isPlainObject(i)&&t._.isInteger(i.pick))return i;if(!s||!s.format)throw"Need a formatting option to parse this..";return a.formats.toArray(s.format).map(function(e){var n=a.formats[e],s=n?t._.trigger(n,a,[i,o]):e.replace(/^!/,"").length;n&&(o[e]=i.substr(0,s)),i=i.substr(s)}),[o.yyyy||o.yy,+(o.mm||o.m)-(s.data?1:0),o.dd||o.d]},n.prototype.formats=function(){function e(t,e,n){var i=t.match(/\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)),i.length}function n(t){return t.match(/\w+/)[0].length}return{d:function(e,n){return e?t._.digits(e):n.date},dd:function(e,n){return e?2:t._.lead(n.date)},ddd:function(t,e){return t?n(t):this.settings.weekdaysShort[e.day]},dddd:function(t,e){return t?n(t):this.settings.weekdaysFull[e.day]},m:function(e,n){return e?t._.digits(e):n.month+1},mm:function(e,n){return e?2:t._.lead(n.month+1)},mmm:function(t,n){var i=this.settings.monthsShort;return t?e(t,i,n):i[n.month]},mmmm:function(t,n){var i=this.settings.monthsFull;return t?e(t,i,n):i[n.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,n){var i=this;return i.formats.toArray(e).map(function(e){return t._.trigger(i.formats[e],i,[0,n])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.flipItem=function(t,n){var i=this,s=i.item.disable,a=-1===i.item.enable;return"flip"==n?i.item.enable=a?1:-1:"enable"==t&&n===!0||"disable"==t&&n===!1?(i.item.enable=1,s=[]):"enable"==t&&n===!1||"disable"==t&&n===!0?(i.item.enable=-1,s=[]):e.isArray(n)&&(a&&"enable"==t||!a&&"disable"==t?s=i.addDisabled(s,n):a||"enable"!=t?a&&"disable"==t&&(s=i.removeDisabled(s,n)):s=i.addEnabled(s,n)),s},n.prototype.addEnabled=function(n,i){var s=this;return i.map(function(i){s.filterDisabled(n,i,1).length&&(n=s.removeDisabled(n,[i]),e.isArray(i)&&n.filter(function(e){return t._.isInteger(e)&&s.create(i).day===e-1}).length&&(i=i.slice(0),i.push("inverted"),n.push(i)))}),n},n.prototype.addDisabled=function(t,n){var i=this;return n.map(function(n){i.filterDisabled(t,n).length?e.isArray(n)&&i.filterDisabled(t,n,1).length&&(t=i.removeDisabled(t,[n])):t.push(n)}),t},n.prototype.removeDisabled=function(t,e){var n=this;return e.map(function(e){t=n.filterDisabled(t,e,1)}),t},n.prototype.filterDisabled=function(n,i,s){var a=this,o=e.isArray(i)||t._.isDate(i),r=o&&a.create(i).pick;return n.filter(function(n){var l=o&&(e.isArray(n)||t._.isDate(n))?r===a.create(n).pick:i===n;return s?!l:l})},n.prototype.nodes=function(e){var n=this,a=n.settings,o=n.item.now,r=n.item.select,l=n.item.highlight,c=n.item.view,u=n.item.disable,d=n.item.min,p=n.item.max,f=function(e){return a.firstDay&&e.push(e.shift()),t._.node("thead",t._.group({min:0,max:i-1,i:1,node:"th",item:function(t){return[e[t],a.klass.weekdays]}}))}((a.showWeekdaysFull?a.weekdaysFull:a.weekdaysShort).slice(0)),h=function(e){return t._.node("div"," ",a.klass["nav"+(e?"Next":"Prev")]+(e&&c.year>=p.year&&c.month>=p.month||!e&&c.year<=d.year&&c.month<=d.month?" "+a.klass.navDisabled:""),"data-nav="+(e||-1))},g=function(n){return a.selectMonths?t._.node("select",t._.group({min:0,max:11,i:1,node:"option",item:function(t){return[n[t],0,"value="+t+(c.month==t?" selected":"")+(c.year==d.year&&t<d.month||c.year==p.year&&t>p.month?" disabled":"")]}}),a.klass.selectMonth,e?"":"disabled"):t._.node("div",n[c.month],a.klass.month)},m=function(){var n=c.year,i=a.selectYears===!0?5:~~(a.selectYears/2);if(i){var s=d.year,o=p.year,r=n-i,l=n+i;if(s>r&&(l+=s-r,r=s),l>o){var u=r-s,f=l-o;r-=u>f?f:u,l=o}return t._.node("select",t._.group({min:r,max:l,i:1,node:"option",item:function(t){return[t,0,"value="+t+(n==t?" selected":"")]}}),a.klass.selectYear,e?"":"disabled")}return t._.node("div",n,a.klass.year)};return t._.node("div",h()+h(1)+g(a.showMonthsShort?a.monthsShort:a.monthsFull)+m(),a.klass.header)+t._.node("table",f+t._.node("tbody",t._.group({min:0,max:s-1,i:1,node:"tr",item:function(e){var s=a.firstDay&&0===n.create([c.year,c.month,1]).day?-7:0;return[t._.group({min:i*e-c.day+s+1,max:function(){return this.min+i-1},i:1,node:"td",item:function(e){return e=n.create([c.year,c.month,e+(a.firstDay?1:0)]),[t._.node("div",e.date,function(t){return t.push(c.month==e.month?a.klass.infocus:a.klass.outfocus),o.pick==e.pick&&t.push(a.klass.now),r&&r.pick==e.pick&&t.push(a.klass.selected),l&&l.pick==e.pick&&t.push(a.klass.highlighted),(u&&n.disabled(e)||e.pick<d.pick||e.pick>p.pick)&&t.push(a.klass.disabled),t.join(" ")}([a.klass.day]),"data-pick="+e.pick)]}})]}})),a.klass.table)+t._.node("div",t._.node("button",a.today,a.klass.buttonToday,"type=button data-pick="+o.pick+(e?"":" disabled"))+t._.node("button",a.clear,a.klass.buttonClear,"type=button data-clear=1"+(e?"":" disabled")),a.klass.footer)},n.defaults=function(t){return{monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",format:"d mmmm, yyyy",klass:{table:t+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today"}}}(t.klasses().picker+"__"),t.extend("pickadate",n)}),function(t){"function"==typeof define&&define.amd?define(["picker","jquery"],t):t(Picker,jQuery)}(function(t,e){function n(t,e){var n=this,i=t.$node.data("value");n.settings=e,n.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"create validate",view:"create validate",disable:"flipItem",enable:"flipItem"},n.item={},n.item.interval=e.interval||30,n.item.disable=(e.disable||[]).slice(0),n.item.enable=-function(t){return t[0]===!0?t.shift():-1}(n.item.disable),n.set("min",e.min).set("max",e.max).set("now").set("select",i||t.$node[0].value||n.item.min,{format:i?e.formatSubmit:e.format}),n.key={40:1,38:-1,39:1,37:-1,go:function(t){n.set("highlight",n.item.highlight.pick+t*n.item.interval,{interval:t*n.item.interval}),this.render()}},t.on("render",function(){var n=t.$root.children(),i=n.find("."+e.klass.viewset);i.length&&(n[0].scrollTop=~~i.position().top-2*i[0].clientHeight)}).on("open",function(){t.$root.find("button").attr("disable",!1)}).on("close",function(){t.$root.find("button").attr("disable",!0)})}var i=24,s=60,a=12,o=i*s;n.prototype.set=function(t,e,n){var i=this;return i.item["enable"==t?"disable":"flip"==t?"enable":t]=i.queue[t].split(" ").map(function(s){return e=i[s](t,e,n)}).pop(),"select"==t?i.set("highlight",i.item.select,n):"highlight"==t?i.set("view",i.item.highlight,n):"interval"==t?i.set("min",i.item.min,n).set("max",i.item.max,n):("flip"==t||"min"==t||"max"==t||"disable"==t||"enable"==t)&&i.item.select&&i.item.highlight&&("min"==t&&i.set("max",i.item.max,n),i.set("select",i.item.select,n).set("highlight",i.item.highlight,n)),i},n.prototype.get=function(t){return this.item[t]},n.prototype.create=function(n,a,r){var l=this;return a=void 0===a?n:a,t._.isDate(a)&&(a=[a.getHours(),a.getMinutes()]),e.isPlainObject(a)&&t._.isInteger(a.pick)?a=a.pick:e.isArray(a)?a=+a[0]*s+ +a[1]:t._.isInteger(a)||(a=l.now(n,a,r)),"max"==n&&a<l.item.min.pick&&(a+=o),"min"!=n&&"max"!=n&&(a-l.item.min.pick)%l.item.interval!==0&&(a+=l.item.interval),a=l.normalize(n,a,r),{hour:~~(i+a/s)%i,mins:(s+a%s)%s,time:(o+a)%o,pick:a}},n.prototype.now=function(e,n){var i=new Date,a=i.getHours()*s+i.getMinutes();return a-=a%this.item.interval,t._.isInteger(n)?n+="min"==e&&0>n&&0===a?2:1:n=1,n*this.item.interval+a},n.prototype.normalize=function(t,e){var n=this.item.interval,i="min"==t?0:(e-this.item.min.pick)%n;return e-(i+(0>e?n:0))},n.prototype.measure=function(n,a,o){var r=this;return a?a===!0||t._.isInteger(a)?a=r.now(n,a,o):e.isPlainObject(a)&&t._.isInteger(a.pick)&&(a=r.normalize(n,a.pick,o)):a="min"==n?[0,0]:[i-1,s-1],a},n.prototype.validate=function(t,e,n){var i=this,s=n&&n.interval?n.interval:i.item.interval;return i.disabled(e)&&(e=i.shift(e,s)),e=i.scope(e),i.disabled(e)&&(e=i.shift(e,-1*s)),e},n.prototype.disabled=function(n){var i=this,s=i.item.disable.filter(function(s){return t._.isInteger(s)?n.hour==s:e.isArray(s)||t._.isDate(s)?n.pick==i.create(s).pick:void 0});return s=s.length&&!s.filter(function(t){return e.isArray(t)&&"inverted"==t[2]}).length,-1===i.item.enable?!s:s||n.pick<i.item.min.pick||n.pick>i.item.max.pick},n.prototype.shift=function(t,e){var n=this,i=n.item.min.pick,s=n.item.max.pick;for(e=e||n.item.interval;n.disabled(t)&&(t=n.create(t.pick+=e),!(t.pick<=i||t.pick>=s)););return t},n.prototype.scope=function(t){var e=this.item.min.pick,n=this.item.max.pick;return this.create(t.pick>n?n:t.pick<e?e:t)},n.prototype.parse=function(n,i,a){var o=this,r={};if(!i||t._.isInteger(i)||e.isArray(i)||t._.isDate(i)||e.isPlainObject(i)&&t._.isInteger(i.pick))return i;if(!a||!a.format)throw"Need a formatting option to parse this..";return o.formats.toArray(a.format).map(function(e){var n=o.formats[e],s=n?t._.trigger(n,o,[i,r]):e.replace(/^!/,"").length;n&&(r[e]=i.substr(0,s)),i=i.substr(s)}),+r.i+s*(+(r.H||r.HH)||+(r.h||r.hh)%12+(/^p/i.test(r.A||r.a)?12:0))},n.prototype.formats={h:function(e,n){return e?t._.digits(e):n.hour%a||a},hh:function(e,n){return e?2:t._.lead(n.hour%a||a)},H:function(e,n){return e?t._.digits(e):""+n.hour%24},HH:function(e,n){return e?t._.digits(e):t._.lead(n.hour%24)},i:function(e,n){return e?2:t._.lead(n.mins)},a:function(t,e){return t?4:o/2>e.time%o?"a.m.":"p.m."},A:function(t,e){return t?2:o/2>e.time%o?"AM":"PM"},toArray:function(t){return t.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(e,n){var i=this;return i.formats.toArray(e).map(function(e){return t._.trigger(i.formats[e],i,[0,n])||e.replace(/^!/,"")}).join("")}},n.prototype.flipItem=function(t,n){var i=this,s=i.item.disable,a=-1===i.item.enable;return"flip"==n?i.item.enable=a?1:-1:"enable"==t&&n===!0||"disable"==t&&n===!1?(i.item.enable=1,s=[]):"enable"==t&&n===!1||"disable"==t&&n===!0?(i.item.enable=-1,s=[]):e.isArray(n)&&(a&&"enable"==t||!a&&"disable"==t?s=i.addDisabled(s,n):a||"enable"!=t?a&&"disable"==t&&(s=i.removeDisabled(s,n)):s=i.addEnabled(s,n)),s},n.prototype.addEnabled=function(n,i){var s=this;return i.map(function(i){s.filterDisabled(n,i,1).length&&(n=s.removeDisabled(n,[i]),e.isArray(i)&&n.filter(function(e){return t._.isInteger(e)&&s.create(i).hour===e}).length&&(i=i.slice(0),i.push("inverted"),n.push(i)))}),n},n.prototype.addDisabled=function(t,n){var i=this;return n.map(function(n){i.filterDisabled(t,n).length?e.isArray(n)&&i.filterDisabled(t,n,1).length&&(t=i.removeDisabled(t,[n])):t.push(n)}),t},n.prototype.removeDisabled=function(t,e){var n=this;return e.map(function(e){t=n.filterDisabled(t,e,1)}),t},n.prototype.filterDisabled=function(t,n,i){var s=e.isArray(n);return t.filter(function(t){var a=!s&&n===t||s&&e.isArray(t)&&n.toString()===t.toString();return i?!a:a})},n.prototype.i=function(e,n){return t._.isInteger(n)&&n>0?n:this.item.interval},n.prototype.nodes=function(e){var n=this,i=n.settings,s=n.item.select,a=n.item.highlight,o=n.item.view,r=n.item.disable;return t._.node("ul",t._.group({min:n.item.min.pick,max:n.item.max.pick,i:n.item.interval,node:"li",item:function(e){return e=n.create(e),[t._.trigger(n.formats.toString,n,[t._.trigger(i.formatLabel,n,[e])||i.format,e]),function(t,l){return s&&s.pick==l&&t.push(i.klass.selected),a&&a.pick==l&&t.push(i.klass.highlighted),o&&o.pick==l&&t.push(i.klass.viewset),r&&n.disabled(e)&&t.push(i.klass.disabled),t.join(" ")}([i.klass.listItem],e.pick),"data-pick="+e.pick]}})+t._.node("li",t._.node("button",i.clear,i.klass.buttonClear,"type=button data-clear=1"+(e?"":" disable"))),i.klass.list)},n.defaults=function(t){return{clear:"Clear",format:"h:i A",interval:30,klass:{picker:t+" "+t+"--time",holder:t+"__holder",list:t+"__list",listItem:t+"__list-item",disabled:t+"__list-item--disabled",selected:t+"__list-item--selected",highlighted:t+"__list-item--highlighted",viewset:t+"__list-item--viewset",now:t+"__list-item--now",buttonClear:t+"__button--clear"}}
  }(t.klasses().picker),t.extend("pickatime",n)}),$(function(){$(document).foundation()}),$(document).ready(function(){$(".datepicker").pickadate(),$(".timepicker").pickatime({min:[9,0],max:[24,0]})});