!function(){"use strict";var t="undefined"!=typeof window?window:global;if("function"!=typeof t.require){var e={},n={},i=function(t,e){return{}.hasOwnProperty.call(t,e)},r=function(t,e){var n,i,r=[];n=/^\.\.?(\/|$)/.test(e)?[t,e].join("/").split("/"):e.split("/");for(var s=0,o=n.length;o>s;s++)i=n[s],".."===i?r.pop():"."!==i&&""!==i&&r.push(i);return r.join("/")},s=function(t){return t.split("/").slice(0,-1).join("/")},o=function(e){return function(n){var i=s(e),o=r(i,n);return t.require(o,e)}},a=function(t,e){var i={id:t,exports:{}};return n[t]=i,e(i.exports,o(t),i),i.exports},l=function(t,s){var o=r(t,".");if(null==s&&(s="/"),i(n,o))return n[o].exports;if(i(e,o))return a(o,e[o]);var l=r(o,"./index");if(i(n,l))return n[l].exports;if(i(e,l))return a(l,e[l]);throw new Error('Cannot find module "'+t+'" from '+'"'+s+'"')},u=function(t,n){if("object"==typeof t)for(var r in t)i(t,r)&&(e[r]=t[r]);else e[t]=n},c=function(){var t=[];for(var n in e)i(e,n)&&t.push(n);return t};t.require=l,t.require.define=u,t.require.register=u,t.require.list=c,t.require.brunch=!0}}(),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=te.type(t);return"function"===n||te.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){if(te.isFunction(e))return te.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return te.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ae.test(e))return te.filter(e,t,n);e=te.filter(e,t)}return te.grep(t,function(t){return V.call(e,t)>=0!==n})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function s(t){var e=pe[t]={};return te.each(t.match(fe)||[],function(t,n){e[n]=!0}),e}function o(){K.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),te.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=te.expando+Math.random()}function l(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(xe,"-$1").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:be.test(n)?te.parseJSON(n):n}catch(r){}ye.set(t,e,n)}else n=void 0;return n}function u(){return!0}function c(){return!1}function d(){try{return K.activeElement}catch(t){}}function h(t,e){return te.nodeName(t,"table")&&te.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function f(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Oe.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,i=t.length;i>n;n++)ve.set(t[n],"globalEval",!e||ve.get(e[n],"globalEval"))}function m(t,e){var n,i,r,s,o,a,l,u;if(1===e.nodeType){if(ve.hasData(t)&&(s=ve.access(t),o=ve.set(e,s),u=s.events)){delete o.handle,o.events={};for(r in u)for(n=0,i=u[r].length;i>n;n++)te.event.add(e,r,u[r][n])}ye.hasData(t)&&(a=ye.access(t),l=te.extend({},a),ye.set(e,l))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&te.nodeName(t,e)?te.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Ce.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var i=te(n.createElement(e)).appendTo(n.body),r=t.getDefaultComputedStyle?t.getDefaultComputedStyle(i[0]).display:te.css(i[0],"display");return i.detach(),r}function x(t){var e=K,n=ze[t];return n||(n=b(t,e),"none"!==n&&n||(Me=(Me||te("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Me[0].contentDocument,e.write(),e.close(),n=b(t,e),Me.detach()),ze[t]=n),n}function _(t,e,n){var i,r,s,o,a=t.style;return n=n||Ue(t),n&&(o=n.getPropertyValue(e)||n[e]),n&&(""!==o||te.contains(t.ownerDocument,t)||(o=te.style(t,e)),qe.test(o)&&Ie.test(e)&&(i=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function w(t,e){return{get:function(){return t()?(delete this.get,void 0):(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),i=e,r=Ye.length;r--;)if(e=Ye[r]+n,e in t)return e;return i}function C(t,e,n){var i=We.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function T(t,e,n,i,r){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,o=0;4>s;s+=2)"margin"===n&&(o+=te.css(t,n+we[s],!0,r)),i?("content"===n&&(o-=te.css(t,"padding"+we[s],!0,r)),"margin"!==n&&(o-=te.css(t,"border"+we[s]+"Width",!0,r))):(o+=te.css(t,"padding"+we[s],!0,r),"padding"!==n&&(o+=te.css(t,"border"+we[s]+"Width",!0,r)));return o}function E(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,s=Ue(t),o="border-box"===te.css(t,"boxSizing",!1,s);if(0>=r||null==r){if(r=_(t,e,s),(0>r||null==r)&&(r=t.style[e]),qe.test(r))return r;i=o&&(G.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+T(t,e,n||(o?"border":"content"),i,s)+"px"}function S(t,e){for(var n,i,r,s=[],o=0,a=t.length;a>o;o++)i=t[o],i.style&&(s[o]=ve.get(i,"olddisplay"),n=i.style.display,e?(s[o]||"none"!==n||(i.style.display=""),""===i.style.display&&ke(i)&&(s[o]=ve.access(i,"olddisplay",x(i.nodeName)))):s[o]||(r=ke(i),(n&&"none"!==n||!r)&&ve.set(i,"olddisplay",r?n:te.css(i,"display"))));for(o=0;a>o;o++)i=t[o],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[o]||"":"none"));return t}function j(t,e,n,i,r){return new j.prototype.init(t,e,n,i,r)}function A(){return setTimeout(function(){Je=void 0}),Je=te.now()}function F(t,e){var n,i=0,r={height:t};for(e=e?1:0;4>i;i+=2-e)n=we[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function H(t,e,n){for(var i,r=(nn[e]||[]).concat(nn["*"]),s=0,o=r.length;o>s;s++)if(i=r[s].call(n,e,t))return i}function $(t,e,n){var i,r,s,o,a,l,u,c=this,d={},h=t.style,f=t.nodeType&&ke(t),p=ve.get(t,"fxshow");n.queue||(a=te._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,te.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],u=te.css(t,"display"),"none"===u&&(u=x(t.nodeName)),"inline"===u&&"none"===te.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],Ke.exec(r)){if(delete e[i],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!p||void 0===p[i])continue;f=!0}d[i]=p&&p[i]||te.style(t,i)}if(!te.isEmptyObject(d)){p?"hidden"in p&&(f=p.hidden):p=ve.access(t,"fxshow",{}),s&&(p.hidden=!f),f?te(t).show():c.done(function(){te(t).hide()}),c.done(function(){var e;ve.remove(t,"fxshow");for(e in d)te.style(t,e,d[e])});for(i in d)o=H(f?p[i]:0,i,c),i in p||(p[i]=o.start,f&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function N(t,e){var n,i,r,s,o;for(n in t)if(i=te.camelCase(n),r=e[i],s=t[n],te.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),o=te.cssHooks[i],o&&"expand"in o){s=o.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=r)}else e[i]=r}function D(t,e,n){var i,r,s=0,o=en.length,a=te.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Je||A(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,s=1-i,o=0,l=u.tweens.length;l>o;o++)u.tweens[o].run(s);return a.notifyWith(t,[u,s,n]),1>s&&l?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:te.extend({},e),opts:te.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Je||A(),duration:n.duration,tweens:[],createTween:function(e,n){var i=te.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)u.tweens[n].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),c=u.props;for(N(c,u.opts.specialEasing);o>s;s++)if(i=en[s].call(u,t,c,u.opts))return i;return te.map(c,H,u),te.isFunction(u.opts.start)&&u.opts.start.call(t,u),te.fx.timer(te.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function P(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(fe)||[];if(te.isFunction(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function O(t,e,n,i){function r(a){var l;return s[a]=!0,te.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||o||s[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var s={},o=t===wn;return r(e.dataTypes[0])||!s["*"]&&r("*")}function R(t,e){var n,i,r=te.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&te.extend(!0,t,i),t}function L(t,e,n){for(var i,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}function M(t,e,n,i){var r,s,o,a,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=c.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=u[l+" "+s]||u["* "+s],!o)for(r in u)if(a=r.split(" "),a[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){o===!0?o=u[r]:u[r]!==!0&&(s=a[0],c.unshift(a[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 "+s}}}return{state:"success",data:e}}function z(t,e,n,i){var r;if(te.isArray(e))te.each(e,function(e,r){n||En.test(t)?i(t,r):z(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==te.type(e))i(t,e);else for(r in e)z(t+"["+r+"]",e[r],n,i)}function I(t){return te.isWindow(t)?t:9===t.nodeType&&t.defaultView}var q=[],U=q.slice,B=q.concat,W=q.push,V=q.indexOf,X={},Z=X.toString,Y=X.hasOwnProperty,J="".trim,G={},K=t.document,Q="2.1.0",te=function(t,e){return new te.fn.init(t,e)},ee=/^-ms-/,ne=/-([\da-z])/gi,ie=function(t,e){return e.toUpperCase()};te.fn=te.prototype={jquery:Q,constructor:te,selector:"",length:0,toArray:function(){return U.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:U.call(this)},pushStack:function(t){var e=te.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return te.each(this,t,e)},map:function(t){return this.pushStack(te.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(U.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]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:q.sort,splice:q.splice},te.extend=te.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||te.isFunction(o)||(o={}),a===l&&(o=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)n=o[e],i=t[e],o!==i&&(u&&i&&(te.isPlainObject(i)||(r=te.isArray(i)))?(r?(r=!1,s=n&&te.isArray(n)?n:[]):s=n&&te.isPlainObject(n)?n:{},o[e]=te.extend(u,s,i)):void 0!==i&&(o[e]=i));return o},te.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===te.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return t-parseFloat(t)>=0},isPlainObject:function(t){if("object"!==te.type(t)||t.nodeType||te.isWindow(t))return!1;try{if(t.constructor&&!Y.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?X[Z.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=te.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ee,"ms-").replace(ne,ie)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,s=0,o=t.length,a=n(t);if(i){if(a)for(;o>s&&(r=e.apply(t[s],i),r!==!1);s++);else for(s in t)if(r=e.apply(t[s],i),r===!1)break}else if(a)for(;o>s&&(r=e.call(t[s],s,t[s]),r!==!1);s++);else for(s in t)if(r=e.call(t[s],s,t[s]),r===!1)break;return t},trim:function(t){return null==t?"":J.call(t)},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?te.merge(i,"string"==typeof t?[t]:t):W.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:V.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;n>i;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],s=0,o=t.length,a=!n;o>s;s++)i=!e(t[s],s),i!==a&&r.push(t[s]);return r},map:function(t,e,i){var r,s=0,o=t.length,a=n(t),l=[];if(a)for(;o>s;s++)r=e(t[s],s,i),null!=r&&l.push(r);else for(s in t)r=e(t[s],s,i),null!=r&&l.push(r);return B.apply([],l)},guid:1,proxy:function(t,e){var n,i,r;return"string"==typeof e&&(n=t[e],e=t,t=n),te.isFunction(t)?(i=U.call(arguments,2),r=function(){return t.apply(e||this,i.concat(U.call(arguments)))},r.guid=t.guid=t.guid||te.guid++,r):void 0},now:Date.now,support:G}),te.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){X["[object "+e+"]"]=e.toLowerCase()});var re=function(t){function e(t,e,n,i){var r,s,o,a,l,u,d,p,g,m;if((e?e.ownerDocument||e:z)!==$&&H(e),e=e||$,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(D&&!i){if(r=ye.exec(t))if(o=r[1]){if(9===a){if(s=e.getElementById(o),!s||!s.parentNode)return n;if(s.id===o)return n.push(s),n}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(o))&&L(e,s)&&s.id===o)return n.push(s),n}else{if(r[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((o=r[3])&&k.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(o)),n}if(k.qsa&&(!P||!P.test(t))){if(p=d=M,g=e,m=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(u=h(t),(d=e.getAttribute("id"))?p=d.replace(xe,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+f(u[l]);g=be.test(t)&&c(e.parentNode)||e,m=u.join(",")}if(m)try{return Q.apply(n,g.querySelectorAll(m)),n}catch(v){}finally{d||e.removeAttribute("id")}}}return _(t.replace(le,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[M]=!0,t}function r(t){var e=$.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)C.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Z)-(~t.sourceIndex||Z);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return i(function(e){return e=+e,i(function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function c(t){return t&&typeof t.getElementsByTagName!==X&&t}function d(){}function h(t,n){var i,r,s,o,a,l,u,c=B[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=C.preFilter;a;){(!i||(r=ue.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=ce.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(le," ")}),a=a.slice(i.length));for(o in C.filter)!(r=pe[o].exec(a))||u[o]&&!(r=u[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.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 p(t,e,n){var i=e.dir,r=n&&"parentNode"===i,s=q++;return e.first?function(e,n,s){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,s)}:function(e,n,o){var a,l,u=[I,s];if(o){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,o))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(l=e[M]||(e[M]={}),(a=l[i])&&a[0]===I&&a[1]===s)return u[2]=a[2];if(l[i]=u,u[2]=t(e,n,o))return!0}}}function g(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,e,n,i,r){for(var s,o=[],a=0,l=t.length,u=null!=e;l>a;a++)(s=t[a])&&(!n||n(s,i,r))&&(o.push(s),u&&e.push(a));return o}function v(t,e,n,r,s,o){return r&&!r[M]&&(r=v(r)),s&&!s[M]&&(s=v(s,o)),i(function(i,o,a,l){var u,c,d,h=[],f=[],p=o.length,g=i||x(e||"*",a.nodeType?[a]:a,[]),v=!t||!i&&e?g:m(g,h,t,a,l),y=n?s||(i?t:p||r)?[]:o:v;if(n&&n(v,y,a,l),r)for(u=m(y,f),r(u,[],a,l),c=u.length;c--;)(d=u[c])&&(y[f[c]]=!(v[f[c]]=d));if(i){if(s||t){if(s){for(u=[],c=y.length;c--;)(d=y[c])&&u.push(v[c]=d);s(null,y=[],u,l)}for(c=y.length;c--;)(d=y[c])&&(u=s?ee.call(i,d):h[c])>-1&&(i[u]=!(o[u]=d))}}else y=m(y===o?y.splice(p,y.length):y),s?s(null,o,y,l):Q.apply(o,y)})}function y(t){for(var e,n,i,r=t.length,s=C.relative[t[0].type],o=s||C.relative[" "],a=s?1:0,l=p(function(t){return t===e},o,!0),u=p(function(t){return ee.call(e,t)>-1},o,!0),c=[function(t,n,i){return!s&&(i||n!==j)||((e=n).nodeType?l(t,n,i):u(t,n,i))}];r>a;a++)if(n=C.relative[t[a].type])c=[p(g(c),n)];else{if(n=C.filter[t[a].type].apply(null,t[a].matches),n[M]){for(i=++a;r>i&&!C.relative[t[i].type];i++);return v(a>1&&g(c),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(le,"$1"),n,i>a&&y(t.slice(a,i)),r>i&&y(t=t.slice(i)),r>i&&f(t))}c.push(n)}return g(c)}function b(t,n){var r=n.length>0,s=t.length>0,o=function(i,o,a,l,u){var c,d,h,f=0,p="0",g=i&&[],v=[],y=j,b=i||s&&C.find.TAG("*",u),x=I+=null==y?1:Math.random()||.1,_=b.length;for(u&&(j=o!==$&&o);p!==_&&null!=(c=b[p]);p++){if(s&&c){for(d=0;h=t[d++];)if(h(c,o,a)){l.push(c);break}u&&(I=x)}r&&((c=!h&&c)&&f--,i&&g.push(c))}if(f+=p,r&&p!==f){for(d=0;h=n[d++];)h(g,v,o,a);if(i){if(f>0)for(;p--;)g[p]||v[p]||(v[p]=G.call(l));v=m(v)}Q.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(I=x,j=y),g};return r?i(o):o}function x(t,n,i){for(var r=0,s=n.length;s>r;r++)e(t,n[r],i);return i}function _(t,e,n,i){var r,s,o,a,l,u=h(t);if(!i&&1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&k.getById&&9===e.nodeType&&D&&C.relative[s[1].type]){if(e=(C.find.ID(o.matches[0].replace(_e,we),e)||[])[0],!e)return n;t=t.slice(s.shift().value.length)}for(r=pe.needsContext.test(t)?0:s.length;r--&&(o=s[r],!C.relative[a=o.type]);)if((l=C.find[a])&&(i=l(o.matches[0].replace(_e,we),be.test(s[0].type)&&c(e.parentNode)||e))){if(s.splice(r,1),t=i.length&&f(s),!t)return Q.apply(n,i),n;break}}return S(t,u)(i,e,!D,n,be.test(t)&&c(e.parentNode)||e),n}var w,k,C,T,E,S,j,A,F,H,$,N,D,P,O,R,L,M="sizzle"+-new Date,z=t.document,I=0,q=0,U=n(),B=n(),W=n(),V=function(t,e){return t===e&&(F=!0),0},X="undefined",Z=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,te=J.slice,ee=J.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se=re.replace("w","w#"),oe="\\["+ie+"*("+re+")"+ie+"*(?:([*^$|!~]?=)"+ie+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+se+")|)|)"+ie+"*\\]",ae=":("+re+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+oe.replace(3,8)+")*)|.*)\\)|)",le=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),ue=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),de=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),he=new RegExp(ae),fe=new RegExp("^"+se+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),we=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(55296|i>>10,56320|1023&i)};try{Q.apply(J=te.call(z.childNodes),z.childNodes),J[z.childNodes.length].nodeType}catch(ke){Q={apply:J.length?function(t,e){K.apply(t,te.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}k=e.support={},E=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},H=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:z,i=n.defaultView;return n!==$&&9===n.nodeType&&n.documentElement?($=n,N=n.documentElement,D=!E(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){H()},!1):i.attachEvent&&i.attachEvent("onunload",function(){H()})),k.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=ve.test(n.getElementsByClassName)&&r(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),k.getById=r(function(t){return N.appendChild(t).id=M,!n.getElementsByName||!n.getElementsByName(M).length}),k.getById?(C.find.ID=function(t,e){if(typeof e.getElementById!==X&&D){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace(_e,we);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(_e,we);return function(t){var n=typeof t.getAttributeNode!==X&&t.getAttributeNode("id");return n&&n.value===e}}),C.find.TAG=k.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==X?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},C.find.CLASS=k.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==X&&D?e.getElementsByClassName(t):void 0},O=[],P=[],(k.qsa=ve.test(n.querySelectorAll))&&(r(function(t){t.innerHTML="<select t=''><option selected=''></option></select>",t.querySelectorAll("[t^='']").length&&P.push("[*^$]="+ie+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+ie+"*(?:value|"+ne+")"),t.querySelectorAll(":checked").length||P.push(":checked")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+ie+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(k.matchesSelector=ve.test(R=N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){k.disconnectedMatch=R.call(t,"div"),R.call(t,"[s!='']:x"),O.push("!=",ae)}),P=P.length&&new RegExp(P.join("|")),O=O.length&&new RegExp(O.join("|")),e=ve.test(N.compareDocumentPosition),L=e||ve.test(N.contains)?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},V=e?function(t,e){if(t===e)return F=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!k.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===z&&L(z,t)?-1:e===n||e.ownerDocument===z&&L(z,e)?1:A?ee.call(A,t)-ee.call(A,e):0:4&i?-1:1)}:function(t,e){if(t===e)return F=!0,0;var i,r=0,s=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!s||!a)return t===n?-1:e===n?1:s?-1:a?1:A?ee.call(A,t)-ee.call(A,e):0;if(s===a)return o(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)u.unshift(i);for(;l[r]===u[r];)r++;return r?o(l[r],u[r]):l[r]===z?-1:u[r]===z?1:0},n):$},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==$&&H(t),n=n.replace(de,"='$1']"),!(!k.matchesSelector||!D||O&&O.test(n)||P&&P.test(n)))try{var i=R.call(t,n);if(i||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return e(n,$,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==$&&H(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==$&&H(t);var n=C.attrHandle[e.toLowerCase()],i=n&&Y.call(C.attrHandle,e.toLowerCase())?n(t,e,!D):void 0;return void 0!==i?i:k.attributes||!D?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(F=!k.detectDuplicates,A=!k.sortStable&&t.slice(0),t.sort(V),F){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return A=null,t},T=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=T(e);return n},C=e.selectors={cacheLength:50,createPseudo:i,match:pe,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(_e,we),t[3]=(t[4]||t[5]||"").replace(_e,we),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return pe.CHILD.test(t[0])?null:(t[3]&&void 0!==t[4]?t[2]=t[4]:n&&he.test(n)&&(e=h(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_e,we).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+ie+")"+t+"("+ie+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==X&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var s=e.attr(r,t);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(s){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&y){for(c=m[M]||(m[M]={}),u=c[t]||[],f=u[0]===I&&u[1],h=u[0]===I&&u[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(h=f=0)||p.pop();)if(1===d.nodeType&&++h&&d===e){c[t]=[I,f,h];break}}else if(y&&(u=(e[M]||(e[M]={}))[t])&&u[0]===I)h=u[1];else for(;(d=++f&&d&&d[g]||(h=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++h||(y&&((d[M]||(d[M]={}))[t]=[I,h]),d!==e)););return h-=r,h===i||0===h%i&&h/i>=0}}},PSEUDO:function(t,n){var r,s=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[M]?s(n):s.length>1?(r=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=s(t,n),o=r.length;o--;)i=ee.call(t,r[o]),t[i]=!(e[i]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:i(function(t){var e=[],n=[],r=S(t.replace(le,"$1"));return r[M]?i(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:i(function(t){return fe.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_e,we).toLowerCase(),function(e){var n;do if(n=D?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===N},focus:function(t){return t===$.activeElement&&(!$.hasFocus||$.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.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return me.test(t.nodeName)},input:function(t){return ge.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"))||"text"===e.toLowerCase())},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})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return d.prototype=C.filters=C.pseudos,C.setFilters=new d,S=e.compile=function(t,e){var n,i=[],r=[],s=W[t+" "];if(!s){for(e||(e=h(t)),n=e.length;n--;)s=y(e[n]),s[M]?i.push(s):r.push(s);s=W(t,b(r,i))}return s},k.sortStable=M.split("").sort(V).join("")===M,k.detectDuplicates=!!F,H(),k.sortDetached=r(function(t){return 1&t.compareDocumentPosition($.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),k.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")
})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(ne,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);te.find=re,te.expr=re.selectors,te.expr[":"]=te.expr.pseudos,te.unique=re.uniqueSort,te.text=re.getText,te.isXMLDoc=re.isXML,te.contains=re.contains;var se=te.expr.match.needsContext,oe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ae=/^.[^:#\[\.,]*$/;te.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?te.find.matchesSelector(i,t)?[i]:[]:te.find.matches(t,te.grep(e,function(t){return 1===t.nodeType}))},te.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(te(t).filter(function(){for(e=0;n>e;e++)if(te.contains(r[e],this))return!0}));for(e=0;n>e;e++)te.find(t,r[e],i);return i=this.pushStack(n>1?te.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&se.test(t)?te(t):t||[],!1).length}});var le,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=te.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ue.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||le).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof te?e[0]:e,te.merge(this,te.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),oe.test(n[1])&&te.isPlainObject(e))for(n in e)te.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return i=K.getElementById(n[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):te.isFunction(t)?"undefined"!=typeof le.ready?le.ready(t):t(te):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),te.makeArray(t,this))};ce.prototype=te.fn,le=te(K);var de=/^(?:parents|prev(?:Until|All))/,he={children:!0,contents:!0,next:!0,prev:!0};te.extend({dir:function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&te(t).is(n))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),te.fn.extend({has:function(t){var e=te(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(te.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,s=[],o=se.test(t)||"string"!=typeof t?te(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&te.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?te.unique(s):s)},index:function(t){return t?"string"==typeof t?V.call(te(t),this[0]):V.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(te.unique(te.merge(this.get(),te(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),te.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return te.dir(t,"parentNode")},parentsUntil:function(t,e,n){return te.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return te.dir(t,"nextSibling")},prevAll:function(t){return te.dir(t,"previousSibling")},nextUntil:function(t,e,n){return te.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return te.dir(t,"previousSibling",n)},siblings:function(t){return te.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return te.sibling(t.firstChild)},contents:function(t){return t.contentDocument||te.merge([],t.childNodes)}},function(t,e){te.fn[t]=function(n,i){var r=te.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=te.filter(i,r)),this.length>1&&(he[t]||te.unique(r),de.test(t)&&r.reverse()),this.pushStack(r)}});var fe=/\S+/g,pe={};te.Callbacks=function(t){t="string"==typeof t?pe[t]||s(t):te.extend({},t);var e,n,i,r,o,a,l=[],u=!t.once&&[],c=function(s){for(e=t.memory&&s,n=!0,a=r||0,r=0,o=l.length,i=!0;l&&o>a;a++)if(l[a].apply(s[0],s[1])===!1&&t.stopOnFalse){e=!1;break}i=!1,l&&(u?u.length&&c(u.shift()):e?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function s(e){te.each(e,function(e,n){var i=te.type(n);"function"===i?t.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),i?o=l.length:e&&(r=n,c(e))}return this},remove:function(){return l&&te.each(arguments,function(t,e){for(var n;(n=te.inArray(e,l,n))>-1;)l.splice(n,1),i&&(o>=n&&o--,a>=n&&a--)}),this},has:function(t){return t?te.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||d.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||n&&!u||(e=e||[],e=[t,e.slice?e.slice():e],i?u.push(e):c(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},te.extend({Deferred:function(t){var e=[["resolve","done",te.Callbacks("once memory"),"resolved"],["reject","fail",te.Callbacks("once memory"),"rejected"],["notify","progress",te.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return te.Deferred(function(n){te.each(e,function(e,s){var o=te.isFunction(t[e])&&t[e];r[s[1]](function(){var t=o&&o.apply(this,arguments);t&&te.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?te.extend(t,i):i}},r={};return i.pipe=i.then,te.each(e,function(t,s){var o=s[2],a=s[3];i[s[1]]=o.add,a&&o.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?i:this,arguments),this},r[s[0]+"With"]=o.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,s=U.call(arguments),o=s.length,a=1!==o||t&&te.isFunction(t.promise)?o:0,l=1===a?t:te.Deferred(),u=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?U.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(o>1)for(e=new Array(o),n=new Array(o),i=new Array(o);o>r;r++)s[r]&&te.isFunction(s[r].promise)?s[r].promise().done(u(r,i,s)).fail(l.reject).progress(u(r,n,e)):--a;return a||l.resolveWith(i,s),l.promise()}});var ge;te.fn.ready=function(t){return te.ready.promise().done(t),this},te.extend({isReady:!1,readyWait:1,holdReady:function(t){t?te.readyWait++:te.ready(!0)},ready:function(t){(t===!0?--te.readyWait:te.isReady)||(te.isReady=!0,t!==!0&&--te.readyWait>0||(ge.resolveWith(K,[te]),te.fn.trigger&&te(K).trigger("ready").off("ready")))}}),te.ready.promise=function(e){return ge||(ge=te.Deferred(),"complete"===K.readyState?setTimeout(te.ready):(K.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),ge.promise(e)},te.ready.promise();var me=te.access=function(t,e,n,i,r,s,o){var a=0,l=t.length,u=null==n;if("object"===te.type(n)){r=!0;for(a in n)te.access(t,e,a,n[a],!0,s,o)}else if(void 0!==i&&(r=!0,te.isFunction(i)||(o=!0),u&&(o?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(te(t),n)})),e))for(;l>a;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):s};te.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=te.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=a.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(i){e[this.expando]=n,te.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),s=this.cache[r];if("string"==typeof e)s[e]=n;else if(te.isEmptyObject(s))te.extend(this.cache[r],e);else for(i in e)s[i]=e[i];return s},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,te.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,s=this.key(t),o=this.cache[s];if(void 0===e)this.cache[s]={};else{te.isArray(e)?i=e.concat(e.map(te.camelCase)):(r=te.camelCase(e),e in o?i=[e,r]:(i=r,i=i in o?[i]:i.match(fe)||[])),n=i.length;for(;n--;)delete o[i[n]]}},hasData:function(t){return!te.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var ve=new a,ye=new a,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xe=/([A-Z])/g;te.extend({hasData:function(t){return ye.hasData(t)||ve.hasData(t)},data:function(t,e,n){return ye.access(t,e,n)},removeData:function(t,e){ye.remove(t,e)},_data:function(t,e,n){return ve.access(t,e,n)},_removeData:function(t,e){ve.remove(t,e)}}),te.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=ye.get(s),1===s.nodeType&&!ve.get(s,"hasDataAttrs"))){for(n=o.length;n--;)i=o[n].name,0===i.indexOf("data-")&&(i=te.camelCase(i.slice(5)),l(s,i,r[i]));ve.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){ye.set(this,t)}):me(this,function(e){var n,i=te.camelCase(t);if(s&&void 0===e){if(n=ye.get(s,t),void 0!==n)return n;if(n=ye.get(s,i),void 0!==n)return n;if(n=l(s,i,void 0),void 0!==n)return n}else this.each(function(){var n=ye.get(this,i);ye.set(this,i,e),-1!==t.indexOf("-")&&void 0!==n&&ye.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ye.remove(this,t)})}}),te.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ve.get(t,e),n&&(!i||te.isArray(n)?i=ve.access(t,e,te.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=te.queue(t,e),i=n.length,r=n.shift(),s=te._queueHooks(t,e),o=function(){te.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ve.get(t,n)||ve.access(t,n,{empty:te.Callbacks("once memory").add(function(){ve.remove(t,[e+"queue",n])})})}}),te.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?te.queue(this[0],t):void 0===e?this:this.each(function(){var n=te.queue(this,t,e);te._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&te.dequeue(this,t)})},dequeue:function(t){return this.each(function(){te.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=te.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)n=ve.get(s[o],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var _e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,we=["Top","Right","Bottom","Left"],ke=function(t,e){return t=e||t,"none"===te.css(t,"display")||!te.contains(t.ownerDocument,t)},Ce=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div"));e.innerHTML="<input type='radio' checked='checked' name='t'/>",G.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",G.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Te="undefined";G.focusinBubbles="onfocusin"in t;var Ee=/^key/,Se=/^(?:mouse|contextmenu)|click/,je=/^(?:focusinfocus|focusoutblur)$/,Ae=/^([^.]*)(?:\.(.+)|)$/;te.event={global:{},add:function(t,e,n,i,r){var s,o,a,l,u,c,d,h,f,p,g,m=ve.get(t);if(m)for(n.handler&&(s=n,n=s.handler,r=s.selector),n.guid||(n.guid=te.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return typeof te!==Te&&te.event.triggered!==e.type?te.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(fe)||[""],u=e.length;u--;)a=Ae.exec(e[u])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f&&(d=te.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=te.event.special[f]||{},c=te.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&te.expr.match.needsContext.test(r),namespace:p.join(".")},s),(h=l[f])||(h=l[f]=[],h.delegateCount=0,d.setup&&d.setup.call(t,i,p,o)!==!1||t.addEventListener&&t.addEventListener(f,o,!1)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),te.event.global[f]=!0)},remove:function(t,e,n,i,r){var s,o,a,l,u,c,d,h,f,p,g,m=ve.hasData(t)&&ve.get(t);if(m&&(l=m.events)){for(e=(e||"").match(fe)||[""],u=e.length;u--;)if(a=Ae.exec(e[u])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(d=te.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,h=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)c=h[s],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(s,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));o&&!h.length&&(d.teardown&&d.teardown.call(t,p,m.handle)!==!1||te.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)te.event.remove(t,f+e[u],n,i,!0);te.isEmptyObject(l)&&(delete m.handle,ve.remove(t,"events"))}},trigger:function(e,n,i,r){var s,o,a,l,u,c,d,h=[i||K],f=Y.call(e,"type")?e.type:e,p=Y.call(e,"namespace")?e.namespace.split("."):[];if(o=a=i=i||K,3!==i.nodeType&&8!==i.nodeType&&!je.test(f+te.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,e=e[te.expando]?e:new te.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:te.makeArray(n,[e]),d=te.event.special[f]||{},r||!d.trigger||d.trigger.apply(i,n)!==!1)){if(!r&&!d.noBubble&&!te.isWindow(i)){for(l=d.delegateType||f,je.test(l+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(i.ownerDocument||K)&&h.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=h[s++])&&!e.isPropagationStopped();)e.type=s>1?l:d.bindType||f,c=(ve.get(o,"events")||{})[e.type]&&ve.get(o,"handle"),c&&c.apply(o,n),c=u&&o[u],c&&c.apply&&te.acceptData(o)&&(e.result=c.apply(o,n),e.result===!1&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&d._default.apply(h.pop(),n)!==!1||!te.acceptData(i)||u&&te.isFunction(i[f])&&!te.isWindow(i)&&(a=i[u],a&&(i[u]=null),te.event.triggered=f,i[f](),te.event.triggered=void 0,a&&(i[u]=a)),e.result}},dispatch:function(t){t=te.event.fix(t);var e,n,i,r,s,o=[],a=U.call(arguments),l=(ve.get(this,"events")||{})[t.type]||[],u=te.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(o=te.event.handlers.call(this,t,l),e=0;(r=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,i=((te.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,s,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(i=[],n=0;a>n;n++)s=e[n],r=s.selector+" ",void 0===i[r]&&(i[r]=s.needsContext?te(r,this).index(l)>=0:te.find(r,this,null,[l]).length),i[r]&&i.push(s);i.length&&o.push({elem:l,handlers:i})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},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 offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,s=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||K,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[te.expando])return t;var e,n,i,r=t.type,s=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Se.test(r)?this.mouseHooks:Ee.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,t=new te.Event(s),e=i.length;e--;)n=i[e],t[n]=s[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,s):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==d()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===d()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&te.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return te.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=te.extend(new te.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?te.event.trigger(r,null,e):te.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},te.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},te.Event=function(t,e){return this instanceof te.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.getPreventDefault&&t.getPreventDefault()?u:c):this.type=t,e&&te.extend(this,e),this.timeStamp=t&&t.timeStamp||te.now(),this[te.expando]=!0,void 0):new te.Event(t,e)},te.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u,this.stopPropagation()}},te.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){te.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,s=t.handleObj;return(!r||r!==i&&!te.contains(i,r))&&(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),G.focusinBubbles||te.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){te.event.simulate(e,t.target,te.event.fix(t),!0)};te.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=ve.access(i,e);r||i.addEventListener(t,n,!0),ve.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=ve.access(i,e)-1;r?ve.access(i,e,r):(i.removeEventListener(t,n,!0),ve.remove(i,e))}}}),te.fn.extend({on:function(t,e,n,i,r){var s,o;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(o in t)this.on(o,e,n,t[o],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),i===!1)i=c;else if(!i)return this;return 1===r&&(s=i,i=function(t){return te().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=te.guid++)),this.each(function(){te.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,te(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=c),this.each(function(){te.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){te.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?te.event.trigger(t,e,n,!0):void 0}});var Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,He=/<([\w:]+)/,$e=/<|&#?\w+;/,Ne=/<(?:script|style|link)/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^$|\/(?:java|ecma)script/i,Oe=/^true\/(.*)/,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Le.optgroup=Le.option,Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td,te.extend({clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),l=te.contains(t.ownerDocument,t);if(!(G.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||te.isXMLDoc(t)))for(o=v(a),s=v(t),i=0,r=s.length;r>i;i++)y(s[i],o[i]);if(e)if(n)for(s=s||v(t),o=o||v(a),i=0,r=s.length;r>i;i++)m(s[i],o[i]);else m(t,a);return o=v(a,"script"),o.length>0&&g(o,!l&&v(t,"script")),a},buildFragment:function(t,e,n,i){for(var r,s,o,a,l,u,c=e.createDocumentFragment(),d=[],h=0,f=t.length;f>h;h++)if(r=t[h],r||0===r)if("object"===te.type(r))te.merge(d,r.nodeType?[r]:r);else if($e.test(r)){for(s=s||c.appendChild(e.createElement("div")),o=(He.exec(r)||["",""])[1].toLowerCase(),a=Le[o]||Le._default,s.innerHTML=a[1]+r.replace(Fe,"<$1></$2>")+a[2],u=a[0];u--;)s=s.lastChild;te.merge(d,s.childNodes),s=c.firstChild,s.textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",h=0;r=d[h++];)if((!i||-1===te.inArray(r,i))&&(l=te.contains(r.ownerDocument,r),s=v(c.appendChild(r),"script"),l&&g(s),n))for(u=0;r=s[u++];)Pe.test(r.type||"")&&n.push(r);return c},cleanData:function(t){for(var e,n,i,r,s,o,a=te.event.special,l=0;void 0!==(n=t[l]);l++){if(te.acceptData(n)&&(s=n[ve.expando],s&&(e=ve.cache[s]))){if(i=Object.keys(e.events||{}),i.length)for(o=0;void 0!==(r=i[o]);o++)a[r]?te.event.remove(n,r):te.removeEvent(n,r,e.handle);ve.cache[s]&&delete ve.cache[s]}delete ye.cache[n[ye.expando]]}}}),te.fn.extend({text:function(t){return me(this,function(t){return void 0===t?te.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=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?te.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||te.cleanData(v(n)),n.parentNode&&(e&&te.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(te.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return te.clone(this,t,e)})},html:function(t){return me(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ne.test(t)&&!Le[(He.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Fe,"<$1></$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(te.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,te.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=B.apply([],t);var n,i,r,s,o,a,l=0,u=this.length,c=this,d=u-1,h=t[0],g=te.isFunction(h);if(g||u>1&&"string"==typeof h&&!G.checkClone&&De.test(h))return this.each(function(n){var i=c.eq(n);g&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(u&&(n=te.buildFragment(t,this[0].ownerDocument,!1,this),i=n.firstChild,1===n.childNodes.length&&(n=i),i)){for(r=te.map(v(n,"script"),f),s=r.length;u>l;l++)o=n,l!==d&&(o=te.clone(o,!0,!0),s&&te.merge(r,v(o,"script"))),e.call(this[l],o,l);if(s)for(a=r[r.length-1].ownerDocument,te.map(r,p),l=0;s>l;l++)o=r[l],Pe.test(o.type||"")&&!ve.access(o,"globalEval")&&te.contains(a,o)&&(o.src?te._evalUrl&&te._evalUrl(o.src):te.globalEval(o.textContent.replace(Re,"")))}return this}}),te.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){te.fn[t]=function(t){for(var n,i=[],r=te(t),s=r.length-1,o=0;s>=o;o++)n=o===s?this:this.clone(!0),te(r[o])[e](n),W.apply(i,n.get());return this.pushStack(i)}});var Me,ze={},Ie=/^margin/,qe=new RegExp("^("+_e+")(?!px)[a-z%]+$","i"),Ue=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",s.appendChild(o);var e=t.getComputedStyle(a,null);n="1%"!==e.top,i="4px"===e.width,s.removeChild(o)}var n,i,r="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",s=K.documentElement,o=K.createElement("div"),a=K.createElement("div");a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",G.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",o.appendChild(a),t.getComputedStyle&&te.extend(G,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==i&&e(),i},reliableMarginRight:function(){var e,n=a.appendChild(K.createElement("div"));return n.style.cssText=a.style.cssText=r,n.style.marginRight=n.style.width="0",a.style.width="1px",s.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),s.removeChild(o),a.innerHTML="",e}})}(),te.swap=function(t,e,n,i){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=n.apply(t,i||[]);for(s in e)t.style[s]=o[s];return r};var Be=/^(none|table(?!-c[ea]).+)/,We=new RegExp("^("+_e+")(.*)$","i"),Ve=new RegExp("^([+-])=("+_e+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:0,fontWeight:400},Ye=["Webkit","O","Moz","ms"];te.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=_(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":"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=te.camelCase(e),l=t.style;return e=te.cssProps[a]||(te.cssProps[a]=k(l,a)),o=te.cssHooks[e]||te.cssHooks[a],void 0===n?o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:l[e]:(s=typeof n,"string"===s&&(r=Ve.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(te.css(t,e)),s="number"),null!=n&&n===n&&("number"!==s||te.cssNumber[a]||(n+="px"),G.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(l[e]="",l[e]=n)),void 0)}},css:function(t,e,n,i){var r,s,o,a=te.camelCase(e);return e=te.cssProps[a]||(te.cssProps[a]=k(t.style,a)),o=te.cssHooks[e]||te.cssHooks[a],o&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=_(t,e,i)),"normal"===r&&e in Ze&&(r=Ze[e]),""===n||n?(s=parseFloat(r),n===!0||te.isNumeric(s)?s||0:r):r}}),te.each(["height","width"],function(t,e){te.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&Be.test(te.css(t,"display"))?te.swap(t,Xe,function(){return E(t,e,i)}):E(t,e,i):void 0},set:function(t,n,i){var r=i&&Ue(t);return C(t,n,i?T(t,e,i,"border-box"===te.css(t,"boxSizing",!1,r),r):0)}}}),te.cssHooks.marginRight=w(G.reliableMarginRight,function(t,e){return e?te.swap(t,{display:"inline-block"},_,[t,"marginRight"]):void 0}),te.each({margin:"",padding:"",border:"Width"},function(t,e){te.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];4>i;i++)r[t+we[i]+e]=s[i]||s[i-2]||s[0];return r}},Ie.test(t)||(te.cssHooks[t+e].set=C)}),te.fn.extend({css:function(t,e){return me(this,function(t,e,n){var i,r,s={},o=0;if(te.isArray(e)){for(i=Ue(t),r=e.length;r>o;o++)s[e[o]]=te.css(t,e[o],!1,i);return s}return void 0!==n?te.style(t,e,n):te.css(t,e)},t,e,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ke(this)?te(this).show():te(this).hide()})}}),te.Tween=j,j.prototype={constructor:j,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(te.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.pos=e=this.options.duration?te.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):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=te.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){te.fx.step[t.prop]?te.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[te.cssProps[t.prop]]||te.cssHooks[t.prop])?te.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},te.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},te.fx=j.prototype.init,te.fx.step={};var Je,Ge,Ke=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+_e+")([a-z%]*)$","i"),tn=/queueHooks$/,en=[$],nn={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=Qe.exec(e),s=r&&r[3]||(te.cssNumber[t]?"":"px"),o=(te.cssNumber[t]||"px"!==s&&+i)&&Qe.exec(te.css(n.elem,t)),a=1,l=20;if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+i||1;do a=a||".5",o/=a,te.style(n.elem,t,o+s);while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(o=n.start=+o||+i||0,n.unit=s,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};te.Animation=te.extend(D,{tweener:function(t,e){te.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],nn[n]=nn[n]||[],nn[n].unshift(e)},prefilter:function(t,e){e?en.unshift(t):en.push(t)}}),te.speed=function(t,e,n){var i=t&&"object"==typeof t?te.extend({},t):{complete:n||!n&&e||te.isFunction(t)&&t,duration:t,easing:n&&e||e&&!te.isFunction(e)&&e};return i.duration=te.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in te.fx.speeds?te.fx.speeds[i.duration]:te.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){te.isFunction(i.old)&&i.old.call(this),i.queue&&te.dequeue(this,i.queue)},i},te.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ke).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=te.isEmptyObject(t),s=te.speed(e,n,i),o=function(){var e=D(this,te.extend({},t),s);(r||ve.get(this,"finish"))&&e.stop(!0)
};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=te.timers,o=ve.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&tn.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));(e||!n)&&te.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ve.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=te.timers,o=i?i.length:0;for(n.finish=!0,te.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),te.each(["toggle","show","hide"],function(t,e){var n=te.fn[e];te.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,r)}}),te.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){te.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),te.timers=[],te.fx.tick=function(){var t,e=0,n=te.timers;for(Je=te.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||te.fx.stop(),Je=void 0},te.fx.timer=function(t){te.timers.push(t),t()?te.fx.start():te.timers.pop()},te.fx.interval=13,te.fx.start=function(){Ge||(Ge=setInterval(te.fx.tick,te.fx.interval))},te.fx.stop=function(){clearInterval(Ge),Ge=null},te.fx.speeds={slow:600,fast:200,_default:400},te.fn.delay=function(t,e){return t=te.fx?te.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),n=e.appendChild(K.createElement("option"));t.type="checkbox",G.checkOn=""!==t.value,G.optSelected=n.selected,e.disabled=!0,G.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",G.radioValue="t"===t.value}();var rn,sn,on=te.expr.attrHandle;te.fn.extend({attr:function(t,e){return me(this,te.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){te.removeAttr(this,t)})}}),te.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===Te?te.prop(t,e,n):(1===s&&te.isXMLDoc(t)||(e=e.toLowerCase(),i=te.attrHooks[e]||(te.expr.match.bool.test(e)?sn:rn)),void 0===n?i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=te.find.attr(t,e),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):(te.removeAttr(t,e),void 0))},removeAttr:function(t,e){var n,i,r=0,s=e&&e.match(fe);if(s&&1===t.nodeType)for(;n=s[r++];)i=te.propFix[n]||n,te.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!G.radioValue&&"radio"===e&&te.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),sn={set:function(t,e,n){return e===!1?te.removeAttr(t,n):t.setAttribute(n,n),n}},te.each(te.expr.match.bool.source.match(/\w+/g),function(t,e){var n=on[e]||te.find.attr;on[e]=function(t,e,i){var r,s;return i||(s=on[e],on[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,on[e]=s),r}});var an=/^(?:input|select|textarea|button)$/i;te.fn.extend({prop:function(t,e){return me(this,te.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[te.propFix[t]||t]})}}),te.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,r,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return s=1!==o||!te.isXMLDoc(t),s&&(e=te.propFix[e]||e,r=te.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||an.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),G.optSelected||(te.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),te.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){te.propFix[this.toLowerCase()]=this});var ln=/[\t\r\n\f]/g;te.fn.extend({addClass:function(t){var e,n,i,r,s,o,a="string"==typeof t&&t,l=0,u=this.length;if(te.isFunction(t))return this.each(function(e){te(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(fe)||[];u>l;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):" ")){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=te.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,i,r,s,o,a=0===arguments.length||"string"==typeof t&&t,l=0,u=this.length;if(te.isFunction(t))return this.each(function(e){te(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(fe)||[];u>l;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):"")){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");o=t?te.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):te.isFunction(t)?this.each(function(n){te(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,r=te(this),s=t.match(fe)||[];e=s[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===Te||"boolean"===n)&&(this.className&&ve.set(this,"__className__",this.className),this.className=this.className||t===!1?"":ve.get(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(ln," ").indexOf(e)>=0)return!0;return!1}});var un=/\r/g;te.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=te.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,te(this).val()):t,null==r?r="":"number"==typeof r?r+="":te.isArray(r)&&(r=te.map(r,function(t){return null==t?"":t+""})),e=te.valHooks[this.type]||te.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=te.valHooks[r.type]||te.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(un,""):null==n?"":n)}}}),te.extend({valHooks:{select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,s="select-one"===t.type||0>r,o=s?null:[],a=s?r+1:i.length,l=0>r?a:s?r:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==r||(G.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&te.nodeName(n.parentNode,"optgroup"))){if(e=te(n).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,s=te.makeArray(e),o=r.length;o--;)i=r[o],(i.selected=te.inArray(te(i).val(),s)>=0)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),te.each(["radio","checkbox"],function(){te.valHooks[this]={set:function(t,e){return te.isArray(e)?t.checked=te.inArray(te(t).val(),e)>=0:void 0}},G.checkOn||(te.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),te.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){te.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),te.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 cn=te.now(),dn=/\?/;te.parseJSON=function(t){return JSON.parse(t+"")},te.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(i){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&te.error("Invalid XML: "+t),e};var hn,fn,pn=/#.*$/,gn=/([?&])_=[^&]*/,mn=/^(.*?):[ \t]*([^\r\n]*)$/gm,vn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yn=/^(?:GET|HEAD)$/,bn=/^\/\//,xn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,_n={},wn={},kn="*/".concat("*");try{fn=location.href}catch(Cn){fn=K.createElement("a"),fn.href="",fn=fn.href}hn=xn.exec(fn.toLowerCase())||[],te.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fn,type:"GET",isLocal:vn.test(hn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kn,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":te.parseJSON,"text xml":te.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?R(R(t,te.ajaxSettings),e):R(te.ajaxSettings,t)},ajaxPrefilter:P(_n),ajaxTransport:P(wn),ajax:function(t,e){function n(t,e,n,o){var l,c,v,y,x,w=e;2!==b&&(b=2,a&&clearTimeout(a),i=void 0,s=o||"",_.readyState=t>0?4:0,l=t>=200&&300>t||304===t,n&&(y=L(d,_,n)),y=M(d,y,_,l),l?(d.ifModified&&(x=_.getResponseHeader("Last-Modified"),x&&(te.lastModified[r]=x),x=_.getResponseHeader("etag"),x&&(te.etag[r]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=y.state,c=y.data,v=y.error,l=!v)):(v=w,(t||!w)&&(w="error",0>t&&(t=0))),_.status=t,_.statusText=(e||w)+"",l?p.resolveWith(h,[c,w,_]):p.rejectWith(h,[_,w,v]),_.statusCode(m),m=void 0,u&&f.trigger(l?"ajaxSuccess":"ajaxError",[_,d,l?c:v]),g.fireWith(h,[_,w]),u&&(f.trigger("ajaxComplete",[_,d]),--te.active||te.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,s,o,a,l,u,c,d=te.ajaxSetup({},e),h=d.context||d,f=d.context&&(h.nodeType||h.jquery)?te(h):te.event,p=te.Deferred(),g=te.Callbacks("once memory"),m=d.statusCode||{},v={},y={},b=0,x="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!o)for(o={};e=mn.exec(s);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||x;return i&&i.abort(e),n(0,e),this}};if(p.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,d.url=((t||d.url||fn)+"").replace(pn,"").replace(bn,hn[1]+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=te.trim(d.dataType||"*").toLowerCase().match(fe)||[""],null==d.crossDomain&&(l=xn.exec(d.url.toLowerCase()),d.crossDomain=!(!l||l[1]===hn[1]&&l[2]===hn[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(hn[3]||("http:"===hn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=te.param(d.data,d.traditional)),O(_n,d,e,_),2===b)return _;u=d.global,u&&0===te.active++&&te.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!yn.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(dn.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=gn.test(r)?r.replace(gn,"$1_="+cn++):r+(dn.test(r)?"&":"?")+"_="+cn++)),d.ifModified&&(te.lastModified[r]&&_.setRequestHeader("If-Modified-Since",te.lastModified[r]),te.etag[r]&&_.setRequestHeader("If-None-Match",te.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&_.setRequestHeader("Content-Type",d.contentType),_.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+kn+"; q=0.01":""):d.accepts["*"]);for(c in d.headers)_.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(d.beforeSend.call(h,_,d)===!1||2===b))return _.abort();x="abort";for(c in{success:1,error:1,complete:1})_[c](d[c]);if(i=O(wn,d,e,_)){_.readyState=1,u&&f.trigger("ajaxSend",[_,d]),d.async&&d.timeout>0&&(a=setTimeout(function(){_.abort("timeout")},d.timeout));try{b=1,i.send(v,n)}catch(w){if(!(2>b))throw w;n(-1,w)}}else n(-1,"No Transport");return _},getJSON:function(t,e,n){return te.get(t,e,n,"json")},getScript:function(t,e){return te.get(t,void 0,e,"script")}}),te.each(["get","post"],function(t,e){te[e]=function(t,n,i,r){return te.isFunction(n)&&(r=r||i,i=n,n=void 0),te.ajax({url:t,type:e,dataType:r,data:n,success:i})}}),te.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){te.fn[e]=function(t){return this.on(e,t)}}),te._evalUrl=function(t){return te.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},te.fn.extend({wrapAll:function(t){var e;return te.isFunction(t)?this.each(function(e){te(this).wrapAll(t.call(this,e))}):(this[0]&&(e=te(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return te.isFunction(t)?this.each(function(e){te(this).wrapInner(t.call(this,e))}):this.each(function(){var e=te(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=te.isFunction(t);return this.each(function(n){te(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){te.nodeName(this,"body")||te(this).replaceWith(this.childNodes)}).end()}}),te.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},te.expr.filters.visible=function(t){return!te.expr.filters.hidden(t)};var Tn=/%20/g,En=/\[\]$/,Sn=/\r?\n/g,jn=/^(?:submit|button|image|reset|file)$/i,An=/^(?:input|select|textarea|keygen)/i;te.param=function(t,e){var n,i=[],r=function(t,e){e=te.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=te.ajaxSettings&&te.ajaxSettings.traditional),te.isArray(t)||t.jquery&&!te.isPlainObject(t))te.each(t,function(){r(this.name,this.value)});else for(n in t)z(n,t[n],e,r);return i.join("&").replace(Tn,"+")},te.fn.extend({serialize:function(){return te.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=te.prop(this,"elements");return t?te.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!te(this).is(":disabled")&&An.test(this.nodeName)&&!jn.test(t)&&(this.checked||!Ce.test(t))}).map(function(t,e){var n=te(this).val();return null==n?null:te.isArray(n)?te.map(n,function(t){return{name:e.name,value:t.replace(Sn,"\r\n")}}):{name:e.name,value:n.replace(Sn,"\r\n")}}).get()}}),te.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Fn=0,Hn={},$n={0:200,1223:204},Nn=te.ajaxSettings.xhr();t.ActiveXObject&&te(t).on("unload",function(){for(var t in Hn)Hn[t]()}),G.cors=!!Nn&&"withCredentials"in Nn,G.ajax=Nn=!!Nn,te.ajaxTransport(function(t){var e;return G.cors||Nn&&!t.crossDomain?{send:function(n,i){var r,s=t.xhr(),o=++Fn;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)s.setRequestHeader(r,n[r]);e=function(t){return function(){e&&(delete Hn[o],e=s.onload=s.onerror=null,"abort"===t?s.abort():"error"===t?i(s.status,s.statusText):i($n[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:void 0,s.getAllResponseHeaders()))}},s.onload=e(),s.onerror=e("error"),e=Hn[o]=e("abort"),s.send(t.hasContent&&t.data||null)},abort:function(){e&&e()}}:void 0}),te.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return te.globalEval(t),t}}}),te.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),te.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=te("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Dn=[],Pn=/(=)\?(?=&|$)|\?\?/;te.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Dn.pop()||te.expando+"_"+cn++;return this[t]=!0,t}}),te.ajaxPrefilter("json jsonp",function(e,n,i){var r,s,o,a=e.jsonp!==!1&&(Pn.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pn.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=te.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Pn,"$1"+r):e.jsonp!==!1&&(e.url+=(dn.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||te.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},i.always(function(){t[r]=s,e[r]&&(e.jsonpCallback=n.jsonpCallback,Dn.push(r)),o&&te.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),te.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var i=oe.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=te.buildFragment([t],e,r),r&&r.length&&te(r).remove(),te.merge([],i.childNodes))};var On=te.fn.load;te.fn.load=function(t,e,n){if("string"!=typeof t&&On)return On.apply(this,arguments);var i,r,s,o=this,a=t.indexOf(" ");return a>=0&&(i=t.slice(a),t=t.slice(0,a)),te.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&te.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){s=arguments,o.html(i?te("<div>").append(te.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){o.each(n,s||[t.responseText,e,t])}),this},te.expr.filters.animated=function(t){return te.grep(te.timers,function(e){return t===e.elem}).length};var Rn=t.document.documentElement;te.offset={setOffset:function(t,e,n){var i,r,s,o,a,l,u,c=te.css(t,"position"),d=te(t),h={};"static"===c&&(t.style.position="relative"),a=d.offset(),s=te.css(t,"top"),l=te.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1,u?(i=d.position(),o=i.top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),te.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+o),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):d.css(h)}},te.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){te.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},s=i&&i.ownerDocument;if(s)return e=s.documentElement,te.contains(e,i)?(typeof i.getBoundingClientRect!==Te&&(r=i.getBoundingClientRect()),n=I(s),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===te.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),te.nodeName(t[0],"html")||(i=t.offset()),i.top+=te.css(t[0],"borderTopWidth",!0),i.left+=te.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-te.css(n,"marginTop",!0),left:e.left-i.left-te.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Rn;t&&!te.nodeName(t,"html")&&"static"===te.css(t,"position");)t=t.offsetParent;return t||Rn})}}),te.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i="pageYOffset"===n;te.fn[e]=function(r){return me(this,function(e,r,s){var o=I(e);return void 0===s?o?o[n]:e[r]:(o?o.scrollTo(i?t.pageXOffset:s,i?s:t.pageYOffset):e[r]=s,void 0)},e,r,arguments.length,null)}}),te.each(["top","left"],function(t,e){te.cssHooks[e]=w(G.pixelPosition,function(t,n){return n?(n=_(t,e),qe.test(n)?te(t).position()[e]+"px":n):void 0})}),te.each({Height:"height",Width:"width"},function(t,e){te.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){te.fn[i]=function(i,r){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||r===!0?"margin":"border");return me(this,function(e,n,i){var r;return te.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?te.css(e,n,o):te.style(e,n,i,o)},e,s?i:void 0,s,null)}})}),te.fn.size=function(){return this.length},te.fn.andSelf=te.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return te});var Ln=t.jQuery,Mn=t.$;return te.noConflict=function(e){return t.$===te&&(t.$=Mn),e&&t.jQuery===te&&(t.jQuery=Ln),te},typeof e===Te&&(t.jQuery=t.$=te),te});var libFuncName=null;if("undefined"==typeof jQuery&&"undefined"==typeof Zepto&&"function"==typeof $)libFuncName=$;else if("function"==typeof jQuery)libFuncName=jQuery;else{if("function"!=typeof Zepto)throw new TypeError;libFuncName=Zepto}!function(t,e,n){"use strict";e.matchMedia=e.matchMedia||function(t){var e,n=t.documentElement,i=n.firstElementChild||n.firstChild,r=t.createElement("body"),s=t.createElement("div");return s.id="mq-test-1",s.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(s),function(t){return s.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(r,i),e=42===s.offsetWidth,n.removeChild(r),{matches:e,media:t}}}(n),Array.prototype.filter||(Array.prototype.filter=function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"==typeof t){for(var i=[],r=arguments[1],s=0;n>s;s++)if(s in e){var o=e[s];t&&t.call(r,o,s,e)&&i.push(o)}return i}}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0===n)return-1;var i=0;if(arguments.length>1&&(i=Number(arguments[1]),i!=i?i=0:0!=i&&1/0!=i&&i!=-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);n>r;r++)if(r in e&&e[r]===t)return r;return-1}),t.fn.stop=t.fn.stop||function(){return this},e.Foundation={name:"Foundation",version:"4.3.1",cache:{},init:function(e,n,i,r,s,o){var a,l=[e,i,r,s],u=[],o=o||!1;if(o&&(this.nc=o),this.rtl=/rtl/i.test(t("html").attr("dir")),this.scope=e||this.scope,n&&"string"==typeof n&&!/reflow/i.test(n)){if(/off/i.test(n))return this.off();if(a=n.split(" "),a.length>0)for(var c=a.length-1;c>=0;c--)u.push(this.init_lib(a[c],l))}else{/reflow/i.test(n)&&(l[1]="reflow");for(var d in this.libs)u.push(this.init_lib(d,l))}return"function"==typeof n&&l.unshift(n),this.response_obj(u,l)},response_obj:function(t,e){for(var n=0,i=e.length;i>n;n++)if("function"==typeof e[n])return e[n]({errors:t.filter(function(t){return"string"==typeof t?t:void 0})});return t},init_lib:function(t,e){return this.trap(function(){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),this.libs[t].init.apply(this.libs[t],e)):function(){}}.bind(this),t)},trap:function(t,e){if(!this.nc)try{return t()}catch(n){return this.error({name:e,message:"could not be initialized",more:n.name+" "+n.message})}return t()},patch:function(t){this.fix_outer(t),t.scope=this.scope,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:{set_data:function(t,e){var n=[this.name,+new Date,Foundation.random_str(5)].join("-");return Foundation.cache[n]=e,t.attr("data-"+this.name+"-id",n),e},get_data:function(t){return Foundation.cache[t.attr("data-"+this.name+"-id")]},remove_data:function(e){e?(delete Foundation.cache[e.attr("data-"+this.name+"-id")],e.attr("data-"+this.name+"-id","")):t("[data-"+this.name+"-id]").each(function(){delete Foundation.cache[t(this).attr("data-"+this.name+"-id")],t(this).attr("data-"+this.name+"-id","")})},throttle:function(t,e){var n=null;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(i,r)},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 r,s,o={},a=(e.attr("data-options")||":").split(";"),l=a.length;for(r=l-1;r>=0;r--)s=a[r].split(":"),/true/i.test(s[1])&&(s[1]=!0),/false/i.test(s[1])&&(s[1]=!1),n(s[1])&&(s[1]=parseInt(s[1],10)),2===s.length&&s[0].length>0&&(o[i(s[0])]=i(s[1]));return o},delay:function(t,e){return setTimeout(t,e)},scrollTo:function(n,i,r){if(!(0>r)){var s=i-t(e).scrollTop(),o=10*(s/r);this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(o,10))||(e.scrollTo(0,t(e).scrollTop()+o),this.scrollTo(n,i,r-10))}.bind(this),10)}},scrollLeft:function(t){return t.length?"scrollLeft"in t[0]?t[0].scrollLeft:t[0].pageXOffset:void 0},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&0===t.length)return!0;for(var e in t)if(hasOwnProperty.call(t,e))return!1;return!0}},fix_outer:function(t){t.outerHeight=function(t,e){return"function"==typeof Zepto?t.height():"undefined"!=typeof e?t.outerHeight(e):t.outerHeight()},t.outerWidth=function(t,e){return"function"==typeof Zepto?t.width():"undefined"!=typeof e?t.outerWidth(e):t.outerWidth()}},error:function(t){return t.name+" "+t.message+"; "+t.more},off:function(){return t(this.scope).off(".fndtn"),t(e).off(".fndtn"),!0},zj:t},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(libFuncName,this,this.document),function(t){"use strict";Foundation.libs.alerts={name:"alerts",version:"4.3.2",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"data_options"),"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||this.events(),this.settings.init):this[n].call(this,i)},events:function(){var e=this;t(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(n){var i=t(this).closest("[data-alert]"),r=t.extend({},e.settings,e.data_options(i));n.preventDefault(),i[r.animation](r.speed,function(){t(this).remove(),r.callback()})}),this.settings.init=!0},off:function(){t(this.scope).off(".fndtn.alerts")},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.clearing={name:"clearing",version:"4.3.2",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 r=this;return Foundation.inherit(this,"set_data get_data remove_data throttle data_options"),"object"==typeof n&&(i=t.extend(!0,this.settings,n)),"string"!=typeof n?(t(this.scope).find("ul[data-clearing]").each(function(){var e=t(this),n=n||{},i=e.find("li"),s=r.get_data(e);!s&&i.length>0&&(n.$parent=e.parent(),r.set_data(e,t.extend({},r.settings,n,r.data_options(e))),r.assemble(e.find("li")),r.settings.init||r.events().swipe_events())}),this.settings.init):this[n].call(this,i)},events:function(){var n=this;return t(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(e,i,r){var i=i||t(this),r=r||i,s=i.next("li"),o=n.get_data(i.parent()),a=t(e.target);e.preventDefault(),o||n.init(),r.hasClass("visible")&&i[0]===r[0]&&s.length>0&&n.is_open(i)&&(r=s,a=r.find("img")),n.open(a,i,r),n.update_paddles(r)}).on("click.fndtn.clearing",".clearing-main-next",function(t){this.nav(t,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(t){this.nav(t,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}).on("keydown.fndtn.clearing",function(t){this.keydown(t)}.bind(this)),t(e).on("resize.fndtn.clearing",function(){this.resize()}.bind(this)),this.settings.init=!0,this},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 r=i.delta_x<0?"next":"prev";i.active=!0,e.nav(n,r)}}}).on("touchend.fndtn.clearing",".visible-img",function(e){t(this).data("swipe-transition",{}),e.stopPropagation()})},assemble:function(e){var n=e.parent();n.after('<div id="foundationClearingHolder"></div>');var i=t("#foundationClearingHolder"),r=this.get_data(n),s=n.detach(),o={grid:'<div class="carousel">'+this.outerHTML(s[0])+"</div>",viewing:r.templates.viewing},a='<div class="clearing-assembled"><div>'+o.viewing+o.grid+"</div></div>";return i.after(a).remove()},open:function(t,e,n){var i=n.closest(".clearing-assembled"),r=i.find("div").first(),s=r.find(".visible-img"),o=s.find("img").not(t);this.locked()||(o.attr("src",this.load(t)).css("visibility","hidden"),this.loaded(o,function(){o.css("visibility","visible"),i.addClass("clearing-blackout"),r.addClass("clearing-container"),s.show(),this.fix_height(n).caption(s.find(".clearing-caption"),t).center(o).shift(e,n,function(){n.siblings().removeClass("visible"),n.addClass("visible")})}.bind(this)))},close:function(e,n){e.preventDefault();var i,r,s=function(t){return/blackout/.test(t.selector)?t:t.closest(".clearing-blackout")}(t(n));return n===e.target&&s&&(i=s.find("div").first(),r=i.find(".visible-img"),this.settings.prev_index=0,s.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),r.hide()),!1},is_open:function(t){return t.parent().prop("style").length>0},keydown:function(e){var n=t(".clearing-blackout").find("ul[data-clearing]");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(".clearing-blackout").find("ul[data-clearing]");e.preventDefault(),this.go(i,n)},resize:function(){var e=t(".clearing-blackout .visible-img").find("img");e.length&&this.center(e)},fix_height:function(e){var n=e.parent().children(),i=this;return n.each(function(){var e=t(this),n=e.find("img");e.height()>i.outerHeight(n)&&e.addClass("fix-height")}).closest("ul").width(100*n.length+"%"),this},update_paddles:function(t){var e=t.closest(".carousel").siblings(".visible-img");
t.next().length>0?e.find(".clearing-main-next").removeClass("disabled"):e.find(".clearing-main-next").addClass("disabled"),t.prev().length>0?e.find(".clearing-main-prev").removeClass("disabled"):e.find(".clearing-main-prev").addClass("disabled")},center:function(t){return this.rtl?t.css({marginRight:-(this.outerWidth(t)/2),marginTop:-(this.outerHeight(t)/2)}):t.css({marginLeft:-(this.outerWidth(t)/2),marginTop:-(this.outerHeight(t)/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())},loaded:function(t,e){function n(){e()}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)},img:function(t){if(t.length){var e=new Image,n=t.find("a");e.src=n.length?n.attr("href"):t.find("img").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(t,e){var n=t.find(".visible"),i=n[e]();i.length&&i.find("img").trigger("click",[n,i])},shift:function(t,e,n){var i,r=e.parent(),s=this.settings.prev_index||e.index(),o=this.direction(r,t,e),a=parseInt(r.css("left"),10),l=this.outerWidth(e);e.index()===s||/skip/.test(o)?/skip/.test(o)&&(i=e.index()-this.settings.up_count,this.lock(),i>0?r.animate({left:-(i*l)},300,this.unlock()):r.animate({left:0},300,this.unlock())):/left/.test(o)?(this.lock(),r.animate({left:a+l},300,this.unlock())):/right/.test(o)&&(this.lock(),r.animate({left:a-l},300,this.unlock())),n()},direction:function(e,n,i){var r,s=e.find("li"),o=this.outerWidth(s)+this.outerWidth(s)/4,a=Math.floor(this.outerWidth(t(".clearing-container"))/o)-1,l=s.index(i);return this.settings.up_count=a,r=this.adjacent(this.settings.prev_index,l)?l>a&&l>this.settings.prev_index?"right":l>a-1&&l<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=l,r},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},outerHTML:function(t){return t.outerHTML||(new XMLSerializer).serializeToString(t)},off:function(){t(this.scope).off(".fndtn.clearing"),t(e).off(".fndtn.clearing"),this.remove_data(),this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document),function(t,e,n){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"4.3.2",settings:{activeClass:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"throttle scrollLeft data_options"),"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||this.events(),this.settings.init):this[n].call(this,i)},events:function(){var i=this;t(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(e){var n=t.extend({},i.settings,i.data_options(t(this)));e.preventDefault(),n.is_hover||i.toggle(t(this))}).on("mouseenter","[data-dropdown]",function(){var e=t.extend({},i.settings,i.data_options(t(this)));e.is_hover&&i.toggle(t(this))}).on("mouseleave","[data-dropdown-content]",function(){var e=t('[data-dropdown="'+t(this).attr("id")+'"]'),n=t.extend({},i.settings,i.data_options(e));n.is_hover&&i.close.call(i,t(this))}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed),t(n).on("click.fndtn.dropdown",function(e){var n=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")&&n.length>0&&(t(e.target).is("[data-dropdown-content]")||t.contains(n.first()[0],e.target))?(e.stopPropagation(),void 0):(i.close.call(i,t("[data-dropdown-content]")),void 0)}),t(e).on("resize.fndtn.dropdown",i.throttle(function(){i.resize.call(i)},50)).trigger("resize"),this.settings.init=!0},close:function(e){var n=this;e.each(function(){t(this).hasClass(n.settings.activeClass)&&(t(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass),t(this).trigger("closed"))})},open:function(t,e){this.css(t.addClass(this.settings.activeClass),e),t.trigger("opened")},toggle:function(e){var n=t("#"+e.data("dropdown"));0!==n.length&&(this.close.call(this,t("[data-dropdown-content]").not(n)),n.hasClass(this.settings.activeClass)?this.close.call(this,n):(this.close.call(this,t("[data-dropdown-content]")),this.open.call(this,n,e)))},resize:function(){var e=t("[data-dropdown-content].open"),n=t("[data-dropdown='"+e.attr("id")+"']");e.length&&n.length&&this.css(e,n)},css:function(n,i){var r=n.offsetParent(),s=i.offset();if(s.top-=r.offset().top,s.left-=r.offset().left,this.small())n.css({position:"absolute",width:"95%","max-width":"none",top:s.top+this.outerHeight(i)}),n.css(Foundation.rtl?"right":"left","2.5%");else{if(!Foundation.rtl&&t(e).width()>this.outerWidth(n)+i.offset().left&&!this.data_options(i).align_right){var o=s.left;n.hasClass("right")&&n.removeClass("right")}else{n.hasClass("right")||n.addClass("right");var o=s.left-(this.outerWidth(n)-this.outerWidth(i))}n.attr("style","").css({position:"absolute",top:s.top+this.outerHeight(i),left:o})}return n},small:function(){return t(e).width()<768||t("html").hasClass("lt-ie9")},off:function(){t(this.scope).off(".fndtn.dropdown"),t("html, body").off(".fndtn.dropdown"),t(e).off(".fndtn.dropdown"),t("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";Foundation.libs.forms={name:"forms",version:"4.3.2",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(e,n,i){return"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,i)},assemble:function(){var e=this;t('form.custom input[type="radio"],[type="checkbox"]',t(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(function(t,n){e.set_custom_markup(n)}).change(function(){e.set_custom_markup(this)}),t("form.custom select",t(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var i=this;t(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(e){e.preventDefault(),e.stopPropagation(),i.toggle_checkbox(t(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(e){e.preventDefault(),e.stopPropagation(),i.toggle_radio(t(this))}).on("change.fndtn.forms","form.custom select",function(e,n){t(this).is('[data-customforms="disabled"]')||i.refresh_custom_select(t(this),n)}).on("click.fndtn.forms","form.custom label",function(e){if(t(e.target).is("label")){var n,r,s=t("#"+i.escape(t(this).attr("for"))).not('[data-customforms="disabled"]');0!==s.length&&("checkbox"===s.attr("type")?(e.preventDefault(),n=t(this).find("span.custom.checkbox"),0===n.length&&(n=s.add(this).siblings("span.custom.checkbox").first()),i.toggle_checkbox(n)):"radio"===s.attr("type")&&(e.preventDefault(),r=t(this).find("span.custom.radio"),0===r.length&&(r=s.add(this).siblings("span.custom.radio").first()),i.toggle_radio(r)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(e){var n=t(this),s=n.closest("div.custom.dropdown"),o=r(s,"select");return s.hasClass("open")||t(i.scope).trigger("click"),e.preventDefault(),!1===o.is(":disabled")?(s.toggleClass("open"),s.hasClass("open")?t(i.scope).on("click.fndtn.forms.customdropdown",function(){s.removeClass("open"),t(i.scope).off(".fndtn.forms.customdropdown")}):t(i.scope).on(".fndtn.forms.customdropdown"),!1):void 0}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(e){var i=t(this),s=i.closest("div.custom.dropdown"),o=r(s,"select"),a=0;if(e.preventDefault(),e.stopPropagation(),!t(this).hasClass("disabled")){t("div.dropdown").not(s).removeClass("open");var l=i.closest("ul").find("li.selected");if(l.removeClass("selected"),i.addClass("selected"),s.removeClass("open").find("a.current").text(i.text()),i.closest("ul").find("li").each(function(t){i[0]===this&&(a=t)}),o[0].selectedIndex=a,o.data("prevalue",l.html()),"undefined"!=typeof n.createEvent){var u=n.createEvent("HTMLEvents");u.initEvent("change",!0,!0),o[0].dispatchEvent(u)}else o[0].fireEvent("onchange")}}),t(e).on("keydown",function(e){var i=(n.activeElement,Foundation.libs.forms),s=t(".custom.dropdown"),o=r(s,"select"),a=t("input,select,textarea,button");if(s.length>0&&s.hasClass("open")){if(e.preventDefault(),9===e.which&&(t(a[t(a).index(o)+1]).focus(),s.removeClass("open")),13===e.which&&s.find("li.selected").trigger("click"),27===e.which&&s.removeClass("open"),e.which>=65&&e.which<=90){var l=i.go_to(s,e.which),u=s.find("li.selected");l&&(u.removeClass("selected"),i.scrollTo(l.addClass("selected"),300))}if(38===e.which){var u=s.find("li.selected"),c=u.prev(":not(.disabled)");c.length>0&&(c.parent()[0].scrollTop=c.parent().scrollTop()-i.outerHeight(c),u.removeClass("selected"),c.addClass("selected"))}else if(40===e.which){var u=s.find("li.selected"),l=u.next(":not(.disabled)");l.length>0&&(l.parent()[0].scrollTop=l.parent().scrollTop()+i.outerHeight(l),u.removeClass("selected"),l.addClass("selected"))}}}),t(e).on("keyup",function(){var e=n.activeElement,i=t(".custom.dropdown");e===i.find(".current")[0]&&i.find(".selector").focus().click()}),this.settings.init=!0},go_to:function(t,e){var n=t.find("li"),i=n.length;if(i>0)for(var r=0;i>r;r++){var s=n.eq(r).text().charAt(0).toLowerCase();if(s===String.fromCharCode(e).toLowerCase())return n.eq(r)}},scrollTo:function(t,e){if(!(0>e)){var n=t.parent(),i=this.outerHeight(t),r=i*t.index()-n.scrollTop(),s=10*(r/e);this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(s,10))||(n[0].scrollTop=n.scrollTop()+s,this.scrollTo(t,e-10))}.bind(this),10)}},set_custom_markup:function(e){var n=t(e),i=n.attr("type"),r=n.next("span.custom."+i);n.parent().hasClass("switch")||n.addClass("hidden-field"),0===r.length&&(r=t('<span class="custom '+i+'"></span>').insertAfter(n)),r.toggleClass("checked",n.is(":checked")),r.toggleClass("disabled",n.is(":disabled"))},append_custom_select:function(e,n){var i,r=Foundation.libs.forms,s=t(n),o=s.next("div.custom.dropdown"),a=o.find("ul"),l=(o.find(".current"),o.find(".selector")),u=s.find("option"),c=u.filter(":selected"),d=s.attr("class")?s.attr("class").split(" "):[],h=0,f="",p=!1;if(0===o.length){var g=s.hasClass("small")?"small":s.hasClass("medium")?"medium":s.hasClass("large")?"large":s.hasClass("expand")?"expand":"";o=t('<div class="'+["custom","dropdown",g].concat(d).filter(function(t,e,n){return""===t?!1:n.indexOf(t)===e}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>'),l=o.find(".selector"),a=o.find("ul"),f=u.map(function(){var e=t(this).attr("class")?t(this).attr("class"):"";return"<li class='"+e+"'>"+t(this).html()+"</li>"}).get().join(""),a.append(f),p=o.prepend('<a href="#" class="current">'+(c.html()||"")+"</a>").find(".current"),s.after(o).addClass("hidden-field")}else f=u.map(function(){return"<li>"+t(this).html()+"</li>"}).get().join(""),a.html("").append(f);if(r.assign_id(s,o),o.toggleClass("disabled",s.is(":disabled")),i=a.find("li"),r.cache[o.data("id")]=i.length,u.each(function(e){this.selected&&(i.eq(e).addClass("selected"),p&&p.html(t(this).html())),t(this).is(":disabled")&&i.eq(e).addClass("disabled")}),!o.is(".small, .medium, .large, .expand")){o.addClass("open");var r=Foundation.libs.forms;r.hidden_fix.adjust(a),h=r.outerWidth(i)>h?r.outerWidth(i):h,Foundation.libs.forms.hidden_fix.reset(),o.removeClass("open")}},assign_id:function(t,e){var n=[+new Date,Foundation.random_str(5)].join("-");t.attr("data-id",n),e.attr("data-id",n)},refresh_custom_select:function(e,n){var i=this,r=0,s=e.next(),o=e.find("option"),a=s.find("ul"),l=s.find("li");if(o.length!==this.cache[s.data("id")]||n){a.html("");var u="";o.each(function(){var e=t(this),n=e.html(),i=this.selected;u+='<li class="'+(i?" selected ":"")+(e.is(":disabled")?" disabled ":"")+'">'+n+"</li>",i&&s.find(".current").html(n)}),a.html(u),s.removeAttr("style"),a.removeAttr("style"),s.find("li").each(function(){s.addClass("open"),i.outerWidth(t(this))>r&&(r=i.outerWidth(t(this))),s.removeClass("open")}),l=s.find("li"),this.cache[s.data("id")]=l.length}},refresh_custom_selection:function(e){var n=t("option:selected",e).text();t("a.current",e.next()).text(n)},toggle_checkbox:function(t){var e=t.prev(),n=e[0];!1===e.is(":disabled")&&(n.checked=n.checked?!1:!0,t.toggleClass("checked"),e.trigger("change"))},toggle_radio:function(t){var e=t.prev(),n=e.closest("form.custom"),i=e[0];!1===e.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(e.attr("name"))+'"]').next().not(t).removeClass("checked"),t.hasClass("checked")||t.toggleClass("checked"),i.checked=t.hasClass("checked"),e.trigger("change"))},escape:function(t){return t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},hidden_fix:{tmp:[],hidden:null,adjust:function(e){var n=this;n.hidden=e.parents(),n.hidden=n.hidden.add(e).filter(":hidden"),n.hidden.each(function(){var e=t(this);n.tmp.push(e.attr("style")),e.css({visibility:"hidden",display:"block"})})},reset:function(){var e=this;e.hidden.each(function(n){var r=t(this),s=e.tmp[n];s===i?r.removeAttr("style"):r.attr("style",s)}),e.tmp=[],e.hidden=null}},off:function(){t(this.scope).off(".fndtn.forms")},reflow:function(){}};var r=function(e,n){for(var e=e.prev();e.length;){if(e.is(n))return e;e=e.prev()}return t()}}(Foundation.zj,this,this.document),function(t,e){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.2.0",settings:{activeClass:"active"},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"data_options"),"object"==typeof n&&t.extend(!0,this.settings,n),"string"!=typeof n?(this.settings.init||(this.fixed_magellan=t("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=t("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,i)},events:function(){var n=this;t(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(){var e=t(this),i=e.closest("[data-magellan-expedition]"),r=i.attr("data-magellan-active-class")||n.settings.activeClass;e.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(e).removeClass(r),e.addClass(r)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){t(this)}).trigger("update-position"),t(e).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var i=t(e).scrollTop();n.fixed_magellan.each(function(){var e=t(this);"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 r=i+n.settings.threshold>e.data("magellan-top-offset"),s=e.attr("data-magellan-top-offset");e.data("magellan-fixed-position")!=r&&(e.data("magellan-fixed-position",r),r?e.css({position:"fixed",top:0}):e.css({position:"",top:""}),r&&"undefined"!=typeof s&&0!=s&&e.css({position:"fixed",top:s+"px"}))})}),this.last_destination.length>0&&t(e).on("scroll.fndtn.magellan",function(){var i=t(e).scrollTop(),r=i+t(e).height(),s=Math.ceil(n.last_destination.offset().top);t("[data-magellan-destination]").each(function(){var e=t(this),o=e.attr("data-magellan-destination"),a=e.offset().top-i;a<=n.settings.threshold&&t("[data-magellan-arrival='"+o+"']").trigger("arrival"),r>=t(n.scope).height()&&s>i&&r>s&&t("[data-magellan-arrival]").last().trigger("arrival")})}),this.settings.init=!0},set_threshold:function(){this.settings.threshold||(this.settings.threshold=this.fixed_magellan.length>0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){t(this.scope).off(".fndtn.magellan")},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";var r=function(){},s=function(r,s){if(r.hasClass(s.slides_container_class))return this;var u,c,d,h,f,p,g=this,m=r,v=0,y=!1;m.children().first().addClass(s.active_slide_class),g.update_slide_number=function(e){s.slide_number&&(c.find("span:first").text(parseInt(e)+1),c.find("span:last").text(m.children().length)),s.bullets&&(d.children().removeClass(s.bullets_active_class),t(d.children().get(e)).addClass(s.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(s.bullets_active_class),n.addClass(s.bullets_active_class)},g.build_markup=function(){m.wrap('<div class="'+s.container_class+'"></div>'),u=m.parent(),m.addClass(s.slides_container_class),s.navigation_arrows&&(u.append(t('<a href="#"><span></span></a>').addClass(s.prev_class)),u.append(t('<a href="#"><span></span></a>').addClass(s.next_class))),s.timer&&(h=t("<div>").addClass(s.timer_container_class),h.append("<span>"),h.append(t("<div>").addClass(s.timer_progress_class)),h.addClass(s.timer_paused_class),u.append(h)),s.slide_number&&(c=t("<div>").addClass(s.slide_number_class),c.append("<span></span> "+s.slide_number_text+" <span></span>"),u.append(c)),s.bullets&&(d=t("<ol>").addClass(s.bullets_container_class),u.append(d),m.children().each(function(e){var n=t("<li>").attr("data-orbit-slide",e);d.append(n)})),s.stack_on_small&&u.addClass(s.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 p&&p.restart();var i=m.children(),r="next";y=!0,v>e&&(r="prev"),e>=i.length?e=0:0>e&&(e=i.length-1);var o=t(i.get(v)),a=t(i.get(e));o.css("zIndex",2),o.removeClass(s.active_slide_class),a.css("zIndex",4).addClass(s.active_slide_class),m.trigger("orbit:before-slide-change"),s.before_slide_change(),g.update_active_link(e);var l=function(){var t=function(){v=e,y=!1,n===!0&&(p=g.create_timer(),p.start()),g.update_slide_number(v),m.trigger("orbit:after-slide-change",[{slide_number:v,total_slides:i.length}]),s.after_slide_change(v,i.length)};m.height()!=a.height()&&s.variable_height?m.animate({height:a.height()},250,"linear",t):t()};if(1===i.length)return l(),!1;var u=function(){"next"===r&&f.next(o,a,l),"prev"===r&&f.prev(o,a,l)};a.height()>m.height()&&s.variable_height?m.animate({height:a.height()},250,"linear",u):u()},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=u.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();s.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(u.find("."+s.timer_container_class),s,g.timer_callback);return t},g.stop_timer=function(){"object"==typeof p&&p.stop()},g.toggle_timer=function(){var t=u.find("."+s.timer_container_class);t.hasClass(s.timer_paused_class)?("undefined"==typeof p&&(p=g.create_timer()),p.start()):"object"==typeof p&&p.stop()},g.init=function(){g.build_markup(),s.timer&&(p=g.create_timer(),p.start()),f=new l(s,m),"slide"===s.animation&&(f=new a(s,m)),u.on("click","."+s.next_class,g.next),u.on("click","."+s.prev_class,g.prev),u.on("click","[data-orbit-slide]",g.link_bullet),u.on("click",g.toggle_timer),s.swipe&&u.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};u.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=u.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){u.data("swipe-transition",{}),t.stopPropagation()}),u.on("mouseenter.fndtn.orbit",function(){s.timer&&s.pause_on_hover&&g.stop_timer()}).on("mouseleave.fndtn.orbit",function(){s.timer&&s.resume_on_mouseout&&p.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(){u.prev(".preloader").css("display","none")}),m.trigger("orbit:ready")},g.init()},o=function(t,e,n){var i,r,s=this,o=e.timer_speed,a=t.find("."+e.timer_progress_class),l=-1;this.update_progress=function(t){var e=a.clone();e.attr("style",""),e.css("width",t+"%"),a.replaceWith(e),a=e},this.restart=function(){clearTimeout(r),t.addClass(e.timer_paused_class),l=-1,s.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(),a.animate({width:"100%"},l,"linear"),r=setTimeout(function(){s.restart(),n()},l),t.trigger("orbit:timer-started"),void 0):!0},this.stop=function(){if(t.hasClass(e.timer_paused_class))return!0;clearTimeout(r),t.addClass(e.timer_paused_class);var n=(new Date).getTime();l-=n-i;var a=100-100*(l/o);s.update_progress(a),t.trigger("orbit:timer-stopped")}},a=function(e){var n=e.animation_speed,i=1===t("html[dir=rtl]").length,r=i?"marginRight":"marginLeft",s={};s[r]="0%",this.next=function(t,e,i){e.animate(s,n,"linear",function(){t.css(r,"100%"),i()})},this.prev=function(t,e,i){e.css(r,"-100%"),e.animate(s,n,"linear",function(){t.css(r,"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:"4.3.2",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:r,after_slide_change:r},init:function(e,n){var i=this;if(Foundation.inherit(i,"data_options"),"object"==typeof n&&t.extend(!0,i.settings,n),t(e).is("[data-orbit]")){var r=t(e),o=i.data_options(r);new s(r,t.extend({},i.settings,o))}t("[data-orbit]",e).each(function(e,n){var r=t(n),o=i.data_options(r);new s(r,t.extend({},i.settings,o))})}}}(Foundation.zj,this,this.document),function(t){"use strict";function e(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):void 0}function n(t,e){var n,i;for(n=0,i=t.length;i>n;n++)if(t[n]===e)return!0;return!1}function i(t,e){var n;t.createTextRange?(n=t.createTextRange(),n.move("character",e),n.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function r(t,e){try{return t.type=e,!0}catch(n){return!1}}t.Placeholders={Utils:{addEventListener:e,inArray:n,moveCaret:i,changeType:r}}}(this),function(t){"use strict";function e(){}function n(t){var e;return t.value===t.getAttribute($)&&"true"===t.getAttribute(N)?(t.setAttribute(N,"false"),t.value="",t.className=t.className.replace(H,""),e=t.getAttribute(D),e&&(t.type=e),!0):!1}function i(t){var e,n=t.getAttribute($);return""===t.value&&n?(t.setAttribute(N,"true"),t.value=n,t.className+=" "+F,e=t.getAttribute(D),e?t.type="text":"password"===t.type&&U.changeType(t,"text")&&t.setAttribute(D,"password"),!0):!1}function r(t,e){var n,i,r,s,o;if(t&&t.getAttribute($))e(t);else for(n=t?t.getElementsByTagName("input"):p,i=t?t.getElementsByTagName("textarea"):g,o=0,s=n.length+i.length;s>o;o++)r=o<n.length?n[o]:i[o-n.length],e(r)}function s(t){r(t,n)}function o(t){r(t,i)}function a(t){return function(){m&&t.value===t.getAttribute($)&&"true"===t.getAttribute(N)?U.moveCaret(t,0):n(t)}}function l(t){return function(){i(t)}}function u(t){return function(e){return y=t.value,"true"===t.getAttribute(N)&&y===t.getAttribute($)&&U.inArray(j,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0}}function c(t){return function(){var e;"true"===t.getAttribute(N)&&t.value!==y&&(t.className=t.className.replace(H,""),t.value=t.value.replace(t.getAttribute($),""),t.setAttribute(N,!1),e=t.getAttribute(D),e&&(t.type=e)),""===t.value&&(t.blur(),U.moveCaret(t,0))}}function d(t){return function(){t===document.activeElement&&t.value===t.getAttribute($)&&"true"===t.getAttribute(N)&&U.moveCaret(t,0)}}function h(t){return function(){s(t)}}function f(t){t.form&&(k=t.form,k.getAttribute(P)||(U.addEventListener(k,"submit",h(k)),k.setAttribute(P,"true"))),U.addEventListener(t,"focus",a(t)),U.addEventListener(t,"blur",l(t)),m&&(U.addEventListener(t,"keydown",u(t)),U.addEventListener(t,"keyup",c(t)),U.addEventListener(t,"click",d(t))),t.setAttribute(O,"true"),t.setAttribute($,_),i(t)}var p,g,m,v,y,b,x,_,w,k,C,T,E,S=["text","search","url","tel","email","password","number","textarea"],j=[27,33,34,35,36,37,38,39,40,8,46],A="#ccc",F="placeholdersjs",H=new RegExp("(?:^|\\s)"+F+"(?!\\S)"),$="data-placeholder-value",N="data-placeholder-active",D="data-placeholder-type",P="data-placeholder-submit",O="data-placeholder-bound",R="data-placeholder-focus",L="data-placeholder-live",M=document.createElement("input"),z=document.getElementsByTagName("head")[0],I=document.documentElement,q=t.Placeholders,U=q.Utils;if(q.nativeSupport=void 0!==M.placeholder,!q.nativeSupport){for(p=document.getElementsByTagName("input"),g=document.getElementsByTagName("textarea"),m="false"===I.getAttribute(R),v="false"!==I.getAttribute(L),b=document.createElement("style"),b.type="text/css",x=document.createTextNode("."+F+" { color:"+A+"; }"),b.styleSheet?b.styleSheet.cssText=x.nodeValue:b.appendChild(x),z.insertBefore(b,z.firstChild),E=0,T=p.length+g.length;T>E;E++)C=E<p.length?p[E]:g[E-p.length],_=C.attributes.placeholder,_&&(_=_.nodeValue,_&&U.inArray(S,C.type)&&f(C));w=setInterval(function(){for(E=0,T=p.length+g.length;T>E;E++)C=E<p.length?p[E]:g[E-p.length],_=C.attributes.placeholder,_&&(_=_.nodeValue,_&&U.inArray(S,C.type)&&(C.getAttribute(O)||f(C),(_!==C.getAttribute($)||"password"===C.type&&!C.getAttribute(D))&&("password"===C.type&&!C.getAttribute(D)&&U.changeType(C,"text")&&C.setAttribute(D,"password"),C.value===C.getAttribute($)&&(C.value=_),C.setAttribute($,_))));v||clearInterval(w)},100)}q.disable=q.nativeSupport?e:s,q.enable=q.nativeSupport?e:o}(this),function(t,e,n,i){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.3.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,n,i){return Foundation.inherit(this,"data_options delay"),"object"==typeof n?t.extend(!0,this.settings,n):"undefined"!=typeof i&&t.extend(!0,this.settings,i),"string"!=typeof n?(this.events(),this.settings.init):this[n].call(this,i)},events:function(){var e=this;return t(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(n){if(n.preventDefault(),!e.locked){var i=t(this),r=i.data("reveal-ajax");if(e.locked=!0,"undefined"==typeof r)e.open.call(e,i);else{var s=r===!0?i.attr("href"):r;e.open.call(e,i,{url:s})}}}).on("click.fndtn.reveal touchend",this.close_targets(),function(n){if(n.preventDefault(),!e.locked){var i=t.extend({},e.settings,e.data_options(t(".reveal-modal.open"))),r=t(n.target)[0]===t("."+i.bgClass)[0];if(r&&!i.closeOnBackgroundClick)return;e.locked=!0,e.close.call(e,r?t(".reveal-modal.open"):t(this).closest(".reveal-modal"))}}),t(this.scope).hasClass("reveal-modal")?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",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),t("body").bind("keyup.reveal",function(n){var i=t(".reveal-modal.open"),r=t.extend({},e.settings,e.data_options(i));27===n.which&&r.closeOnEsc&&i.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 r=t(".reveal-modal.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"),r.length<1&&this.toggle_bg(),"undefined"!=typeof n&&n.url){var s=this,o="undefined"!=typeof n.success?n.success:null;t.extend(n,{success:function(e,n,a){t.isFunction(o)&&o(e,n,a),i.html(e),t(i).foundation("section","reflow"),s.hide(r,s.settings.css.close),s.show(i,s.settings.css.open)}}),t.ajax(n)}else this.hide(r,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(".reveal-modal.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.dismissModalClass;return this.settings.closeOnBackgroundClick?t+", ."+this.settings.bgClass:t},toggle_bg:function(){0===t("."+this.settings.bgClass).length&&(this.settings.bg=t("<div />",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(n,i){if(i){if(0===n.parent("body").length){var r=n.wrap('<div style="display: none;" />').parent();n.on("closed.fndtn.reveal.wrapped",function(){n.detach().appendTo(r),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 s={top:t(e).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(i).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")
}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var s={opacity:1};return this.delay(function(){return n.css(i).animate(s,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.css(i).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show()},hide:function(n,i){if(i){if(/pop/i.test(this.settings.animation)){var r={top:-t(e).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(r,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var r={opacity:0};return this.delay(function(){return n.animate(r,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(i).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.hide().css(i).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide()},close_video:function(){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 r=n.attr("data-src");if("string"==typeof r)n[0].src=n.attr("data-src");else{var s=n[0].src;n[0].src=i,n[0].src=s}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(){}}}(Foundation.zj,this,this.document),function(t,e,n){"use strict";Foundation.libs.section={name:"section",version:"4.3.2",settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,multi_expand:!1,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",resized_data_attr:"data-section-resized",small_style_data_attr:"data-section-small-style",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:"active",callback:function(){}},init:function(e,n,i){var r=this;return Foundation.inherit(this,"throttle data_options position_right offset_right"),"object"==typeof n&&t.extend(!0,r.settings,n),"string"!=typeof n?(this.events(),!0):this[n].call(this,i)},events:function(){for(var i=this,r=[],s=i.settings.section_selector,o=i.settings.region_selector.split(","),a=i.settings.title_selector.split(","),l=0,u=o.length;u>l;l++)for(var c=o[l],d=0,h=a.length;h>d;d++){var f=s+">"+c+">"+a[d];r.push(f+" a"),r.push(f)}t(i.scope).on("click.fndtn.section",r.join(","),function(e){var n=t(this).closest(i.settings.title_selector);i.close_navs(n),n.siblings(i.settings.content_selector).length>0&&i.toggle_active.call(n[0],e)}),t(e).on("resize.fndtn.section",i.throttle(function(){i.resize()},30)).on("hashchange.fndtn.section",i.set_active_from_hash),t(n).on("click.fndtn.section",function(e){e.isPropagationStopped&&e.isPropagationStopped()||e.target!==n&&i.close_navs(t(e.target).closest(i.settings.title_selector))}),t(e).triggerHandler("resize.fndtn.section"),t(e).triggerHandler("hashchange.fndtn.section")},close_navs:function(e){var n=Foundation.libs.section,i=t(n.settings.nav_selector).filter(function(){return!t.extend({},n.settings,n.data_options(t(this))).one_up});if(e.length>0){var r=e.parent().parent();(n.is_horizontal_nav(r)||n.is_vertical_nav(r))&&(i=i.filter(function(){return this!==r[0]}))}i.children(n.settings.region_selector).removeClass(n.settings.active_class)},toggle_active:function(e){var n=t(this),i=Foundation.libs.section,r=n.parent(),s=n.siblings(i.settings.content_selector),o=r.parent(),a=t.extend({},i.settings,i.data_options(o)),l=o.children(i.settings.region_selector).filter("."+i.settings.active_class);!a.deep_linking&&s.length>0&&e.preventDefault(),e.stopPropagation(),r.hasClass(i.settings.active_class)?(r.hasClass(i.settings.active_class)&&i.is_accordion(o)||!a.one_up&&(i.small(o)||i.is_vertical_nav(o)||i.is_horizontal_nav(o)||i.is_accordion(o)))&&(r.removeClass(i.settings.active_class),r.trigger("closed.fndtn.section")):((!i.is_accordion(o)||i.is_accordion(o)&&!i.settings.multi_expand)&&(l.removeClass(i.settings.active_class),l.trigger("closed.fndtn.section")),r.addClass(i.settings.active_class),i.resize(r.find(i.settings.section_selector).not("["+i.settings.resized_data_attr+"]"),!0),r.trigger("opened.fndtn.section")),a.callback(o)},check_resize_timer:null,resize:function(e,n){var i=Foundation.libs.section,r=t(i.settings.section_selector),s=i.small(r),o=function(t,e){return!(i.is_accordion(t)||t.is("["+i.settings.resized_data_attr+"]")||s&&!i.is_horizontal_tabs(t)||e!==("none"===t.css("display")||!t.parent().is(":visible")))};e=e||t(i.settings.section_selector),clearTimeout(i.check_resize_timer),s||e.removeAttr(i.settings.small_style_data_attr),e.filter(function(){return o(t(this),!1)}).each(function(){var e=t(this),r=e.children(i.settings.region_selector),s=r.children(i.settings.title_selector),o=r.children(i.settings.content_selector),a=0;if(n&&0==e.children(i.settings.region_selector).filter("."+i.settings.active_class).length){var l=t.extend({},i.settings,i.data_options(e));l.deep_linking||!l.one_up&&(i.is_horizontal_nav(e)||i.is_vertical_nav(e)||i.is_accordion(e))||r.filter(":visible").first().addClass(i.settings.active_class)}if(i.is_horizontal_tabs(e)||i.is_auto(e)){var u=0;s.each(function(){var e=t(this);if(e.is(":visible")){e.css(i.rtl?"right":"left",u);var n=parseInt(e.css("border-"+(i.rtl?"left":"right")+"-width"),10);"Nan"===n.toString()&&(n=0),u+=i.outerWidth(e)-n,a=Math.max(a,i.outerHeight(e))}}),s.css("height",a),r.each(function(){var e=t(this),n=e.children(i.settings.content_selector),r=parseInt(n.css("border-top-width"),10);"Nan"===r.toString()&&(r=0),e.css("padding-top",a-r)}),e.css("min-height",a)}else if(i.is_horizontal_nav(e)){var c=!0;s.each(function(){a=Math.max(a,i.outerHeight(t(this)))}),r.each(function(){var n=t(this);n.css("margin-left","-"+(c?e:n.children(i.settings.title_selector)).css("border-left-width")),c=!1}),r.css("margin-top","-"+e.css("border-top-width")),s.css("height",a),o.css("top",a),e.css("min-height",a)}else if(i.is_vertical_tabs(e)){var d=0;s.each(function(){var e=t(this);if(e.is(":visible")){e.css("top",d);var n=parseInt(e.css("border-top-width"),10);"Nan"===n.toString()&&(n=0),d+=i.outerHeight(e)-n}}),o.css("min-height",d+1)}else if(i.is_vertical_nav(e)){var h=0,f=!0;s.each(function(){h=Math.max(h,i.outerWidth(t(this)))}),r.each(function(){var n=t(this);n.css("margin-top","-"+(f?e:n.children(i.settings.title_selector)).css("border-top-width")),f=!1}),s.css("width",h),o.css(i.rtl?"right":"left",h),e.css("width",h)}e.attr(i.settings.resized_data_attr,!0)}),t(i.settings.section_selector).filter(function(){return o(t(this),!0)}).length>0&&(i.check_resize_timer=setTimeout(function(){i.resize(e.filter(function(){return o(t(this),!1)}),!0)},700)),s&&e.attr(i.settings.small_style_data_attr,!0)},is_vertical_nav:function(t){return/vertical-nav/i.test(t.data("section"))},is_horizontal_nav:function(t){return/horizontal-nav/i.test(t.data("section"))},is_accordion:function(t){return/accordion/i.test(t.data("section"))},is_horizontal_tabs:function(t){return/^tabs$/i.test(t.data("section"))},is_vertical_tabs:function(t){return/vertical-tabs/i.test(t.data("section"))},is_auto:function(t){var e=t.data("section");return""===e||/auto/i.test(e)},set_active_from_hash:function(){var n,i=Foundation.libs.section,r=e.location.hash.substring(1),s=t(i.settings.section_selector);s.each(function(){var e=t(this),s=e.children(i.settings.region_selector);return s.each(function(){var s=t(this),o=s.children(i.settings.content_selector).data("slug");return new RegExp(o,"i").test(r)?(n=e,!1):void 0}),null!=n?!1:void 0}),null!=n&&s.each(function(){if(n==t(this)){var e=t(this),s=t.extend({},i.settings,i.data_options(e)),o=e.children(i.settings.region_selector),a=s.deep_linking&&r.length>0,l=!1;o.each(function(){var e=t(this);if(l)e.removeClass(i.settings.active_class);else if(a){var n=e.children(i.settings.content_selector).data("slug");n&&new RegExp(n,"i").test(r)?(e.hasClass(i.settings.active_class)||e.addClass(i.settings.active_class),l=!0):e.removeClass(i.settings.active_class)}else e.hasClass(i.settings.active_class)&&(l=!0)}),l||!s.one_up&&(i.is_horizontal_nav(e)||i.is_vertical_nav(e)||i.is_accordion(e))||o.filter(":visible").first().addClass(i.settings.active_class)}})},reflow:function(){var e=Foundation.libs.section;t(e.settings.section_selector).removeAttr(e.settings.resized_data_attr),e.throttle(function(){e.resize()},30)()},small:function(e){var n=t.extend({},this.settings,this.data_options(e));return this.is_horizontal_tabs(e)?!1:e&&this.is_accordion(e)?!0:t("html").hasClass("lt-ie9")?!0:t("html").hasClass("ie8compat")?!0:t(this.scope).width()<n.small_breakpoint},off:function(){t(this.scope).off(".fndtn.section"),t(e).off(".fndtn.section"),t(n).off(".fndtn.section")}},t.fn.reflow_section=function(t){var e=this,n=Foundation.libs.section;return e.removeAttr(n.settings.resized_data_attr),n.throttle(function(){n.resize(e,t)},30)(),this}}(Foundation.zj,window,document),function(t,e){"use strict";Foundation.libs.tooltips={name:"tooltips",version:"4.3.2",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",touchCloseText:"tap to close",appendTo:"body","disable-for-touch":!1,tipTemplate:function(t,e){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(e,n,i){Foundation.inherit(this,"data_options");var r=this;return"object"==typeof n?t.extend(!0,this.settings,n):"undefined"!=typeof i&&t.extend(!0,this.settings,i),"string"==typeof n?this[n].call(this,i):(Modernizr.touch?t(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(e){var n=t.extend({},r.settings,r.data_options(t(this)));n["disable-for-touch"]||(e.preventDefault(),t(n.tooltipClass).hide(),r.showOrCreateTip(t(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(e){e.preventDefault(),t(this).fadeOut(150)}):t(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(e){var n=t(this);/enter|over/i.test(e.type)?r.showOrCreateTip(n):("mouseout"===e.type||"mouseleave"===e.type)&&r.hide(n)}),void 0)},showOrCreateTip:function(t){var e=this.getTip(t);return e&&e.length>0?this.show(t):this.create(t)},getTip:function(e){var n=this.selector(e),i=null;return n&&(i=t('span[data-selector="'+n+'"]'+this.settings.tooltipClass)),"object"==typeof i?i:!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.tipTemplate(this.selector(e),t("<div></div>").html(e.attr("title")).html())),i=this.inheritable_classes(e);n.addClass(i).appendTo(this.settings.appendTo),Modernizr.touch&&n.append('<span class="tap-to-close">'+this.settings.touchCloseText+"</span>"),e.removeAttr("title").attr("title",""),this.show(e)},reposition:function(n,i,r){var s,o,a,l,u;if(i.css("visibility","hidden").show(),s=n.data("width"),o=i.children(".nub"),a=this.outerHeight(o),l=this.outerHeight(o),u=function(t,e,n,i,r,s){return t.css({top:e?e:"auto",bottom:i?i:"auto",left:r?r:"auto",right:n?n:"auto",width:s?s:"auto"}).end()},u(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",n.offset().left,s),t(e).width()<767)u(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",12.5,t(this.scope).width()),i.addClass("tip-override"),u(o,-a,"auto","auto",n.offset().left);else{var c=n.offset().left;Foundation.rtl&&(c=n.offset().left+n.offset().width-this.outerWidth(i)),u(i,n.offset().top+this.outerHeight(n)+10,"auto","auto",c,s),i.removeClass("tip-override"),r&&r.indexOf("tip-top")>-1?u(i,n.offset().top-this.outerHeight(i),"auto","auto",c,s).removeClass("tip-override"):r&&r.indexOf("tip-left")>-1?u(i,n.offset().top+this.outerHeight(n)/2-2.5*a,"auto","auto",n.offset().left-this.outerWidth(i)-a,s).removeClass("tip-override"):r&&r.indexOf("tip-right")>-1&&u(i,n.offset().top+this.outerHeight(n)/2-2.5*a,"auto","auto",n.offset().left+this.outerWidth(n)+a,s).removeClass("tip-override")}i.css("visibility","visible").hide()},inheritable_classes:function(e){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),i=e.attr("class"),r=i?t.map(i.split(" "),function(e){return-1!==t.inArray(e,n)?e:void 0}).join(" "):"";return t.trim(r)},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.tooltipClass).each(function(e){t("[data-tooltip]").get(e).attr("title",t(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.3.2",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0,init:!1},init:function(n,i,r){Foundation.inherit(this,"data_options addCustomRule");var s=this;return"object"==typeof i?t.extend(!0,this.settings,i):"undefined"!=typeof r&&t.extend(!0,this.settings,r),"string"!=typeof i?(t(".top-bar, [data-topbar]").each(function(){t.extend(!0,s.settings,s.data_options(t(this))),s.settings.$w=t(e),s.settings.$topbar=t(this),s.settings.$section=s.settings.$topbar.find("section"),s.settings.$titlebar=s.settings.$topbar.children("ul").first(),s.settings.$topbar.data("index",0);var n=s.settings.$topbar.parent();n.hasClass("fixed")||n.hasClass(s.settings.stickyClass)?(s.settings.$topbar.data("height",s.outerHeight(n)),s.settings.$topbar.data("stickyoffset",n.offset().top)):s.settings.$topbar.data("height",s.outerHeight(s.settings.$topbar));var i=t("<div class='top-bar-js-breakpoint'/>").insertAfter(s.settings.$topbar);s.settings.breakPoint=i.width(),i.remove(),s.assemble(),s.settings.is_hover&&s.settings.$topbar.find(".has-dropdown").addClass("not-click"),s.addCustomRule(".f-topbar-fixed { padding-top: "+s.settings.$topbar.data("height")+"px }"),s.settings.$topbar.parent().hasClass("fixed")&&t("body").addClass("f-topbar-fixed")}),s.settings.init||this.events(),this.settings.init):this[i].call(this,r)},toggle:function(){var n=this,i=t(".top-bar, [data-topbar]"),r=i.find("section, .section");n.breakpoint()&&(n.rtl?(r.css({right:"0%"}),r.find(">.name").css({right:"100%"})):(r.css({left:"0%"}),r.find(">.name").css({left:"100%"})),r.find("li.moved").removeClass("moved"),i.data("index",0),i.toggleClass("expanded").css("height","")),n.settings.scrolltop?i.hasClass("expanded")?i.parent().hasClass("fixed")&&(n.settings.scrolltop?(i.parent().removeClass("fixed"),i.addClass("fixed"),t("body").removeClass("f-topbar-fixed"),e.scrollTo(0,0)):i.parent().removeClass("expanded")):i.hasClass("fixed")&&(i.parent().addClass("fixed"),i.removeClass("fixed"),t("body").addClass("f-topbar-fixed")):(i.parent().hasClass(n.settings.stickyClass)&&i.parent().addClass("fixed"),i.parent().hasClass("fixed")&&(i.hasClass("expanded")?(i.addClass("fixed"),i.parent().addClass("expanded")):(i.removeClass("fixed"),i.parent().removeClass("expanded"),n.updateStickyPositioning())))},timer:null,events:function(){var i=this;t(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(t){t.preventDefault(),i.toggle()}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(e){var n=t(this),r=t(e.target),s=n.closest("[data-topbar], .top-bar");return s.data("topbar"),r.data("revealId")?(i.toggle(),void 0):(i.breakpoint()||(!i.settings.is_hover||Modernizr.touch)&&(e.stopImmediatePropagation(),"A"===r[0].nodeName&&r.parent().hasClass("has-dropdown")&&e.preventDefault(),n.hasClass("hover")?(n.removeClass("hover").find("li").removeClass("hover"),n.parents("li.hover").removeClass("hover")):n.addClass("hover")),void 0)}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(n){if(i.breakpoint()&&t(e).width()!=i.settings.breakPoint){n.preventDefault();var r=t(this),s=r.closest(".top-bar, [data-topbar]"),o=s.find("section, .section"),a=(r.next(".dropdown").outerHeight(),r.closest("li"));s.data("index",s.data("index")+1),a.addClass("moved"),i.rtl?(o.css({right:-(100*s.data("index"))+"%"}),o.find(">.name").css({right:100*s.data("index")+"%"})):(o.css({left:-(100*s.data("index"))+"%"}),o.find(">.name").css({left:100*s.data("index")+"%"})),s.css("height",i.outerHeight(r.siblings("ul"),!0)+i.settings.$topbar.data("height"))}}),t(e).on("resize.fndtn.topbar",function(){if("undefined"!=typeof i.settings.$topbar){var e,r=i.settings.$topbar.parent("."+this.settings.stickyClass);if(!i.breakpoint()){var s=i.settings.$topbar.hasClass("expanded");t(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover"),s&&i.toggle()}r.length>0&&(r.hasClass("fixed")?(r.removeClass("fixed"),e=r.offset().top,t(n.body).hasClass("f-topbar-fixed")&&(e-=i.settings.$topbar.data("height")),i.settings.$topbar.data("stickyoffset",e),r.addClass("fixed")):(e=r.offset().top,i.settings.$topbar.data("stickyoffset",e)))}}.bind(this)),t("body").on("click.fndtn.topbar",function(e){var n=t(e.target).closest("li").closest("li.hover");n.length>0||t(".top-bar li, [data-topbar] li").removeClass("hover")}),t(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(e){e.preventDefault();var n=t(this),r=n.closest(".top-bar, [data-topbar]"),s=r.find("section, .section"),o=n.closest("li.moved"),a=o.parent();r.data("index",r.data("index")-1),i.rtl?(s.css({right:-(100*r.data("index"))+"%"}),s.find(">.name").css({right:100*r.data("index")+"%"})):(s.css({left:-(100*r.data("index"))+"%"}),s.find(">.name").css({left:100*r.data("index")+"%"})),0===r.data("index")?r.css("height",""):r.css("height",i.outerHeight(a,!0)+i.settings.$topbar.data("height")),setTimeout(function(){o.removeClass("moved")},300)})},breakpoint:function(){return t(n).width()<=this.settings.breakPoint||t("html").hasClass("lt-ie9")},assemble:function(){var e=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=t(this),i=n.siblings(".dropdown"),r=n.attr("href");if(e.settings.mobile_show_parent_link&&r&&r.length>1)var s=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+r+'">'+n.text()+"</a></li>");else var s=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');1==e.settings.custom_back_text?s.find("h5>a").html(e.settings.back_text):s.find("h5>a").html("&laquo; "+n.html()),i.prepend(s)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},height:function(e){var n=0,i=this;return e.find("> li").each(function(){n+=i.outerHeight(t(this),!0)}),n},sticky:function(){var n=t(e),i=this;n.scroll(function(){i.updateStickyPositioning()})},updateStickyPositioning:function(){var n="."+this.settings.stickyClass,i=t(e);if(t(n).length>0){var r=this.settings.$topbar.data("stickyoffset");t(n).hasClass("expanded")||(i.scrollTop()>r?t(n).hasClass("fixed")||(t(n).addClass("fixed"),t("body").addClass("f-topbar-fixed")):i.scrollTop()<=r&&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(){}}}(Foundation.zj,this,this.document),function(t,e,n,i){"use strict";var r=r||!1;Foundation.libs.joyride={name:"joyride",version:"4.3.2",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'<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>',exposeCover:'<div class="joyride-expose-cover"></div>'},exposeAddClass:""},settings:{},init:function(e,n,i){return this.scope=e||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),"object"==typeof n?t.extend(!0,this.settings,this.defaults,n):t.extend(!0,this.settings,this.defaults,i),"string"!=typeof n?(this.settings.init||this.events(),this.settings.init):this[n].call(this,i)},events:function(){var n=this;t(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end()}.bind(this)),t(e).on("resize.fndtn.joyride",n.throttle(function(){if(t("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){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)),this.settings.init=!0},start:function(){var e=this,n=t(this.scope).find("[data-joyride]"),i=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],r=i.length;this.settings.init||this.events(),this.settings.$content_el=n,this.settings.$body=t(this.settings.tipContainer),this.settings.body_offset=t(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},"function"!=typeof t.cookie&&(this.settings.cookieMonster=!1),(!this.settings.cookieMonster||this.settings.cookieMonster&&null===t.cookie(this.settings.cookieName))&&(this.settings.$tip_content.each(function(n){var s=t(this);t.extend(!0,e.settings,e.data_options(s));for(var o=r-1;o>=0;o--)e.settings[i[o]]=parseInt(e.settings[i[o]],10);e.create({$li:s,index:n})}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init"))},resume:function(){this.set_li(),this.show()},tip_template:function(e){var n,i;return e.tip_class=e.tip_class||"",n=t(this.settings.template.tip).addClass(e.tip_class),i=t.trim(t(e.li).html())+this.button_text(e.button_text)+this.settings.template.link+this.timer_instance(e.index),n.append(t(this.settings.template.wrapper)),n.first().attr("data-index",e.index),t(".joyride-content-wrapper",n).append(i),n[0]},timer_instance:function(e){var n;return n=0===e&&this.settings.startTimerOnClick&&this.settings.timer>0||0===this.settings.timer?"":this.outerHTML(t(this.settings.template.timer)[0])},button_text:function(e){return this.settings.nextButton?(e=t.trim(e)||"Next",e=this.outerHTML(t(this.settings.template.button).append(e)[0])):e="",e},create:function(e){var n=e.$li.attr("data-button")||e.$li.attr("data-text"),i=e.$li.attr("class"),r=t(this.tip_template({tip_class:i,index:e.index,button_text:n,li:e.$li}));t(this.settings.tipContainer).append(r)},show:function(e){var n=null;this.settings.$li===i||-1===t.inArray(this.settings.$li.index(),this.settings.pauseAfter)?(this.settings.paused?this.settings.paused=!1:this.set_li(e),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(e&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=t.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return r?r.mq("only screen and (max-width: 767px)")||t(".lt-ie9").length>0:t(e).width()<767},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||t(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(t.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=t(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","")},set_target:function(){var e=this.settings.$li.attr("data-class"),i=this.settings.$li.attr("data-id"),r=function(){return i?t(n.getElementById(i)):e?t("."+e).first():t("body")};this.settings.$target=r()},scroll_to:function(){var n,i;n=t(e).height()/2,i=Math.ceil(this.settings.$target.offset().top-n+this.outerHeight(this.settings.$next_tip)),i>0&&this.scrollTo(t("html, body"),i,this.settings.scrollSpeed)},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)},restart:function(){this.hide(),this.settings.$li=i,this.show("init")},pos_default:function(n,i){var r=(Math.ceil(t(e).height()/2),this.settings.$next_tip.offset(),this.settings.$next_tip.find(".joyride-nub")),s=Math.ceil(this.outerWidth(r)/2),o=Math.ceil(this.outerHeight(r)/2),a=n||!1;if(a&&(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(r);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.outerHeight(this.settings.$target),left:l}),this.nub_position(r,this.settings.tipSettings.nubPosition,"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.outerHeight(this.settings.$next_tip)-o,left:l}),this.nub_position(r,this.settings.tipSettings.nubPosition,"bottom")}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+s}),this.nub_position(r,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-s}),this.nub_position(r,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tipSettings.tipLocationPattern.length&&(r.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tipSettings.tipLocation=this.settings.tipSettings.tipLocationPattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}a&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(e){var n=this.outerHeight(this.settings.$next_tip),i=(this.settings.$next_tip.offset(),this.outerHeight(this.settings.$target)),r=t(".joyride-nub",this.settings.$next_tip),s=Math.ceil(this.outerHeight(r)/2),o=e||!1;r.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(r):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-n-s}),r.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+s}),r.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.tipAnimation)?e.show():e.fadeIn(this.settings.tipAnimationFadeSpeed)}},expose:function(){var n,i,r,s,o,a="expose-"+Math.floor(1e4*Math.random());if(arguments.length>0&&arguments[0]instanceof t)r=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;r=this.settings.$target}return r.length<1?(e.console&&console.error("element not valid",r),!1):(n=t(this.settings.template.expose),this.settings.$body.append(n),n.css({top:r.offset().top,left:r.offset().left,width:this.outerWidth(r,!0),height:this.outerHeight(r,!0)}),i=t(this.settings.template.exposeCover),s={zIndex:r.css("z-index"),position:r.css("position")},o=null==r.attr("class")?"":r.attr("class"),r.css("z-index",parseInt(n.css("z-index"))+1),"static"==s.position&&r.css("position","relative"),r.data("expose-css",s),r.data("orig-class",o),r.attr("class",o+" "+this.settings.exposeAddClass),i.css({top:r.offset().top,left:r.offset().left,width:this.outerWidth(r,!0),height:this.outerHeight(r,!0)}),this.settings.$body.append(i),n.addClass(a),i.addClass(a),r.data("expose",a),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,r),this.add_exposed(r),void 0)},un_expose:function(){var n,i,r,s,o,a=!1;
if(arguments.length>0&&arguments[0]instanceof t)i=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}return i.length<1?(e.console&&console.error("element not valid",i),!1):(n=i.data("expose"),r=t("."+n),arguments.length>1&&(a=arguments[1]),a===!0?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():r.remove(),s=i.data("expose-css"),"auto"==s.zIndex?i.css("z-index",""):i.css("z-index",s.zIndex),s.position!=i.css("position")&&("static"==s.position?i.css("position",""):i.css("position",s.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 r=0;i>r;r++)if(this.settings.exposed[r]==n)return this.settings.exposed.splice(r,1),void 0},center:function(){var n=t(e);return this.settings.$next_tip.css({top:(n.height()-this.outerHeight(this.settings.$next_tip))/2+n.scrollTop(),left:(n.width()-this.outerWidth(this.settings.$next_tip))/2+this.scrollLeft(n)}),!0},bottom:function(){return/bottom/i.test(this.settings.tipSettings.tipLocation)},top:function(){return/top/i.test(this.settings.tipSettings.tipLocation)},right:function(){return/right/i.test(this.settings.tipSettings.tipLocation)},left:function(){return/left/i.test(this.settings.tipSettings.tipLocation)},corners:function(n){var i=t(e),r=i.height()/2,s=Math.ceil(this.settings.$target.offset().top-r+this.settings.$next_tip.outerHeight()),o=i.width()+this.scrollLeft(i),a=i.height()+s,l=i.height()+i.scrollTop(),u=i.scrollTop();return u>s&&(u=0>s?0:s),a>l&&(l=a),[n.offset().top<u,o<n.offset().left+n.outerWidth(),l<n.offset().top+n.outerHeight(),this.scrollLeft(i)>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.cookieMonster&&t.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),t(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),t(".joyride-tip-guide").remove()},outerHTML:function(t){return t.outerHTML||(new XMLSerializer).serializeToString(t)},off:function(){t(this.scope).off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(Foundation.zj,this,this.document),function(t,e,n){function i(t){return t}function r(t){return decodeURIComponent(t.replace(s," "))}var s=/\+/g,o=t.cookie=function(s,a,l){if(a!==n){if(l=t.extend({},o.defaults,l),null===a&&(l.expires=-1),"number"==typeof l.expires){var u=l.expires,c=l.expires=new Date;c.setDate(c.getDate()+u)}return a=o.json?JSON.stringify(a):String(a),e.cookie=[encodeURIComponent(s),"=",o.raw?a:encodeURIComponent(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=o.raw?i:r,h=e.cookie.split("; "),f=0,p=h.length;p>f;f++){var g=h[f].split("=");if(d(g.shift())===s){var m=d(g.join("="));return o.json?JSON.parse(m):m}}return null};o.defaults={},t.removeCookie=function(e,n){return null!==t.cookie(e)?(t.cookie(e,null,n),!0):!1}}(Foundation.zj,document),function(){function t(t,e,n){for(var i=(n||0)-1,r=t?t.length:0;++i<r;)if(t[i]===e)return i;return-1}function e(e,n){var i=typeof n;if(e=e.cache,"boolean"==i||null==n)return e[n]?0:-1;"number"!=i&&"string"!=i&&(i="object");var r="number"==i?n:b+n;return e=(e=e[i])&&e[r],"object"==i?e&&t(e,n)>-1?0:-1:e?0:-1}function n(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var i="number"==n?t:b+t,r=e[n]||(e[n]={});"object"==n?(r[i]||(r[i]=[])).push(t):r[i]=!0}}function i(t){return t.charCodeAt(0)}function r(t,e){for(var n=t.criteria,i=e.criteria,r=-1,s=n.length;++r<s;){var o=n[r],a=i[r];if(o!==a){if(o>a||"undefined"==typeof o)return 1;if(a>o||"undefined"==typeof a)return-1}}return t.index-e.index}function s(t){var e=-1,i=t.length,r=t[0],s=t[0|i/2],o=t[i-1];if(r&&"object"==typeof r&&s&&"object"==typeof s&&o&&"object"==typeof o)return!1;var a=l();a["false"]=a["null"]=a["true"]=a.undefined=!1;var u=l();for(u.array=t,u.cache=a,u.push=n;++e<i;)u.push(t[e]);return u}function o(t){return"\\"+Q[t]}function a(){return g.pop()||[]}function l(){return m.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function u(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}function c(t){t.length=0,g.length<_&&g.push(t)}function d(t){var e=t.cache;e&&d(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,m.length<_&&m.push(t)}function h(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var i=-1,r=n-e||0,s=Array(0>r?0:r);++i<r;)s[i]=t[e+i];return s}function f(n){function g(t){return t&&"object"==typeof t&&!dr(t)&&Bi.call(t,"__wrapped__")?t:new m(t)}function m(t,e){this.__chain__=!!e,this.__wrapped__=t}function _(t){function e(){if(i){var t=h(i);Wi.apply(t,arguments)}if(this instanceof e){var s=ee(n.prototype),o=n.apply(s,t||arguments);return Re(o)?o:s}return n.apply(r,t||arguments)}var n=t[0],i=t[2],r=t[4];return cr(e,t),e}function Q(t,e,n,i,r){if(n){var s=n(t);if("undefined"!=typeof s)return s}var o=Re(t);if(!o)return t;var l=Ri.call(t);if(!Z[l]||!lr.nodeClass&&u(t))return t;var d=or[l];switch(l){case z:case I:return new d(+t);case B:case X:return new d(t);case V:return s=d(t.source,j.exec(t)),s.lastIndex=t.lastIndex,s}var f=dr(t);if(e){var p=!i;i||(i=a()),r||(r=a());for(var g=i.length;g--;)if(i[g]==t)return r[g];s=f?d(t.length):{}}else s=f?h(t):wr({},t);return f&&(Bi.call(t,"index")&&(s.index=t.index),Bi.call(t,"input")&&(s.input=t.input)),e?(i.push(t),r.push(s),(f?_r:Tr)(t,function(t,o){s[o]=Q(t,e,n,i,r)}),p&&(c(i),c(r)),s):s}function ee(t){return Re(t)?Gi(t):{}}function ne(t,e,n){if("function"!=typeof t)return si;if("undefined"==typeof e||!("prototype"in t))return t;var i=t.__bindData__;if("undefined"==typeof i&&(lr.funcNames&&(i=!t.name),i=i||!lr.funcDecomp,!i)){var r=qi.call(t);lr.funcNames||(i=!A.test(r)),i||(i=N.test(r),cr(t,i))}if(i===!1||i!==!0&&1&i[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,s){return t.call(e,n,i,r,s)}}return qn(t,e)}function ie(t){function e(){var t=l?o:this;if(r){var p=h(r);Wi.apply(p,arguments)}if((s||c)&&(p||(p=h(arguments)),s&&Wi.apply(p,s),c&&p.length<a))return i|=16,ie([n,d?i:-4&i,p,null,o,a]);if(p||(p=arguments),u&&(n=t[f]),this instanceof e){t=ee(n.prototype);var g=n.apply(t,p);return Re(g)?g:t}return n.apply(t,p)}var n=t[0],i=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=1&i,u=2&i,c=4&i,d=8&i,f=n;return cr(e,t),e}function re(n,i){var r=-1,o=ge(),a=n?n.length:0,l=a>=x&&o===t,u=[];if(l){var c=s(i);c?(o=e,i=c):l=!1}for(;++r<a;){var h=n[r];o(i,h)<0&&u.push(h)}return l&&d(i),u}function oe(t,e,n,i){for(var r=(i||0)-1,s=t?t.length:0,o=[];++r<s;){var a=t[r];if(a&&"object"==typeof a&&"number"==typeof a.length&&(dr(a)||be(a))){e||(a=oe(a,e,n));var l=-1,u=a.length,c=o.length;for(o.length+=u;++l<u;)o[c++]=a[l]}else n||o.push(a)}return o}function ae(t,e,n,i,r,s){if(n){var o=n(t,e);if("undefined"!=typeof o)return!!o}if(t===e)return 0!==t||1/t==1/e;var l=typeof t,d=typeof e;if(!(t!==t||t&&K[l]||e&&K[d]))return!1;if(null==t||null==e)return t===e;var h=Ri.call(t),f=Ri.call(e);if(h==L&&(h=W),f==L&&(f=W),h!=f)return!1;switch(h){case z:case I:return+t==+e;case B:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case V:case X:return t==Fi(e)}var p=h==M;if(!p){var g=Bi.call(t,"__wrapped__"),m=Bi.call(e,"__wrapped__");if(g||m)return ae(g?t.__wrapped__:t,m?e.__wrapped__:e,n,i,r,s);if(h!=W||!lr.nodeClass&&(u(t)||u(e)))return!1;var v=!lr.argsObject&&be(t)?ji:t.constructor,y=!lr.argsObject&&be(e)?ji:e.constructor;if(v!=y&&!(Oe(v)&&v instanceof v&&Oe(y)&&y instanceof y)&&"constructor"in t&&"constructor"in e)return!1}var b=!r;r||(r=a()),s||(s=a());for(var x=r.length;x--;)if(r[x]==t)return s[x]==e;var _=0;if(o=!0,r.push(t),s.push(e),p){if(x=t.length,_=e.length,o=_==x,o||i)for(;_--;){var w=x,k=e[_];if(i)for(;w--&&!(o=ae(t[w],k,n,i,r,s)););else if(!(o=ae(t[_],k,n,i,r,s)))break}}else Cr(e,function(e,a,l){return Bi.call(l,a)?(_++,o=Bi.call(t,a)&&ae(t[a],e,n,i,r,s)):void 0}),o&&!i&&Cr(t,function(t,e,n){return Bi.call(n,e)?o=--_>-1:void 0});return r.pop(),s.pop(),b&&(c(r),c(s)),o}function le(t,e,n,i,r){(dr(e)?rn:Tr)(e,function(e,s){var o,a,l=e,u=t[s];if(e&&((a=dr(e))||Er(e))){for(var c=i.length;c--;)if(o=i[c]==e){u=r[c];break}if(!o){var d;n&&(l=n(u,e),(d="undefined"!=typeof l)&&(u=l)),d||(u=a?dr(u)?u:[]:Er(u)?u:{}),i.push(e),r.push(u),d||le(u,e,n,i,r)}}else n&&(l=n(u,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(u=l);t[s]=u})}function ue(t,e){return t+Ii(sr()*(e-t+1))}function ce(n,i,r){var o=-1,l=ge(),u=n?n.length:0,h=[],f=!i&&u>=x&&l===t,p=r||f?a():h;if(f){var g=s(p);l=e,p=g}for(;++o<u;){var m=n[o],v=r?r(m,o,n):m;(i?!o||p[p.length-1]!==v:l(p,v)<0)&&((r||f)&&p.push(v),h.push(m))}return f?(c(p.array),d(p)):r&&c(p),h}function de(t){return function(e,n,i){var r={};if(n=g.createCallback(n,i,3),dr(e))for(var s=-1,o=e.length;++s<o;){var a=e[s];t(r,a,n(a,s,e),e)}else _r(e,function(e,i,s){t(r,e,n(e,i,s),s)});return r}}function he(t,e,n,i,r,s){var o=1&e,a=2&e,l=4&e,u=16&e,c=32&e;if(!a&&!Oe(t))throw new Hi;u&&!n.length&&(e&=-17,u=n=!1),c&&!i.length&&(e&=-33,c=i=!1);var d=t&&t.__bindData__;if(d&&d!==!0)return d=h(d),d[2]&&(d[2]=h(d[2])),d[3]&&(d[3]=h(d[3])),!o||1&d[1]||(d[4]=r),!o&&1&d[1]&&(e|=8),!l||4&d[1]||(d[5]=s),u&&Wi.apply(d[2]||(d[2]=[]),n),c&&Yi.apply(d[3]||(d[3]=[]),i),d[1]|=e,he.apply(null,d);var f=1==e||17===e?_:ie;return f([t,e,n,i,r,s])}function fe(){G.shadowedProps=O,G.array=G.bottom=G.loop=G.top="",G.init="iterable",G.useHas=!0;for(var t,e=0;t=arguments[e];e++)for(var n in t)G[n]=t[n];var i=G.args;G.firstArg=/^[^,]+/.exec(i)[0];var r=Ti("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+i+") {\n"+ur(G)+"\n}");return r(ne,q,Ni,Bi,y,be,dr,qe,G.keys,Di,K,ar,X,Pi,Ri)}function pe(t){return vr[t]}function ge(){var e=(e=g.indexOf)===Tn?t:e;return e}function me(t){return"function"==typeof t&&Li.test(t)}function ve(t){var e,n;return!t||Ri.call(t)!=W||(e=t.constructor,Oe(e)&&!(e instanceof e))||!lr.argsClass&&be(t)||!lr.nodeClass&&u(t)?!1:lr.ownLast?(Cr(t,function(t,e,i){return n=Bi.call(i,e),!1}),n!==!1):(Cr(t,function(t,e){n=e}),"undefined"==typeof n||Bi.call(t,n))}function ye(t){return yr[t]}function be(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Ri.call(t)==L||!1}function xe(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n=e,e=!1),Q(t,e,"function"==typeof n&&ne(n,i,1))}function _e(t,e,n){return Q(t,!0,"function"==typeof e&&ne(e,n,1))}function we(t,e){var n=ee(t);return e?wr(n,e):n}function ke(t,e,n){var i;return e=g.createCallback(e,n,3),Tr(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function Ce(t,e,n){var i;return e=g.createCallback(e,n,3),Ee(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function Te(t,e,n){var i=[];Cr(t,function(t,e){i.push(e,t)});var r=i.length;for(e=ne(e,n,3);r--&&e(i[r--],i[r],t)!==!1;);return t}function Ee(t,e,n){var i=fr(t),r=i.length;for(e=ne(e,n,3);r--;){var s=i[r];if(e(t[s],s,t)===!1)break}return t}function Se(t){var e=[];return Cr(t,function(t,n){Oe(t)&&e.push(n)}),e.sort()}function je(t,e){return t?Bi.call(t,e):!1}function Ae(t){for(var e=-1,n=fr(t),i=n.length,r={};++e<i;){var s=n[e];r[t[s]]=s}return r}function Fe(t){return t===!0||t===!1||t&&"object"==typeof t&&Ri.call(t)==z||!1}function He(t){return t&&"object"==typeof t&&Ri.call(t)==I||!1}function $e(t){return t&&1===t.nodeType||!1}function Ne(t){var e=!0;if(!t)return e;var n=Ri.call(t),i=t.length;return n==M||n==X||(lr.argsClass?n==L:be(t))||n==W&&"number"==typeof i&&Oe(t.splice)?!i:(Tr(t,function(){return e=!1}),e)}function De(t,e,n,i){return ae(t,e,"function"==typeof n&&ne(n,i,2))}function Pe(t){return Qi(t)&&!tr(parseFloat(t))}function Oe(t){return"function"==typeof t}function Re(t){return!(!t||!K[typeof t])}function Le(t){return ze(t)&&t!=+t}function Me(t){return null===t}function ze(t){return"number"==typeof t||t&&"object"==typeof t&&Ri.call(t)==B||!1}function Ie(t){return t&&K[typeof t]&&Ri.call(t)==V||!1}function qe(t){return"string"==typeof t||t&&"object"==typeof t&&Ri.call(t)==X||!1}function Ue(t){return"undefined"==typeof t}function Be(t,e,n){var i={};return e=g.createCallback(e,n,3),Tr(t,function(t,n,r){i[n]=e(t,n,r)}),i}function We(t){var e=arguments,n=2;if(!Re(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var i=ne(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(i=e[--n]);for(var r=h(arguments,1,n),s=-1,o=a(),l=a();++s<n;)le(t,r[s],i,o,l);return c(o),c(l),t}function Ve(t,e,n){var i={};if("function"!=typeof e){var r=[];Cr(t,function(t,e){r.push(e)}),r=re(r,oe(arguments,!0,!1,1));for(var s=-1,o=r.length;++s<o;){var a=r[s];i[a]=t[a]}}else e=g.createCallback(e,n,3),Cr(t,function(t,n,r){e(t,n,r)||(i[n]=t)});return i}function Xe(t){for(var e=-1,n=fr(t),i=n.length,r=_i(i);++e<i;){var s=n[e];r[e]=[s,t[s]]}return r}function Ze(t,e,n){var i={};if("function"!=typeof e)for(var r=-1,s=oe(arguments,!0,!1,1),o=Re(t)?s.length:0;++r<o;){var a=s[r];a in t&&(i[a]=t[a])}else e=g.createCallback(e,n,3),Cr(t,function(t,n,r){e(t,n,r)&&(i[n]=t)});return i}function Ye(t,e,n,i){var r=dr(t);if(null==n)if(r)n=[];else{var s=t&&t.constructor,o=s&&s.prototype;n=ee(o)}return e&&(e=g.createCallback(e,i,4),(r?_r:Tr)(t,function(t,i,r){return e(n,t,i,r)})),n}function Je(t){for(var e=-1,n=fr(t),i=n.length,r=_i(i);++e<i;)r[e]=t[n[e]];return r}function Ge(t){var e=arguments,n=-1,i=oe(e,!0,!1,1),r=e[2]&&e[2][e[1]]===t?1:i.length,s=_i(r);for(lr.unindexedChars&&qe(t)&&(t=t.split(""));++n<r;)s[n]=t[i[n]];return s}function Ke(t,e,n){var i=-1,r=ge(),s=t?t.length:0,o=!1;return n=(0>n?nr(0,s+n):n)||0,dr(t)?o=r(t,e,n)>-1:"number"==typeof s?o=(qe(t)?t.indexOf(e,n):r(t,e,n))>-1:_r(t,function(t){return++i>=n?!(o=t===e):void 0}),o}function Qe(t,e,n){var i=!0;if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,s=t.length;++r<s&&(i=!!e(t[r],r,t)););else _r(t,function(t,n,r){return i=!!e(t,n,r)});return i}function tn(t,e,n){var i=[];if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,s=t.length;++r<s;){var o=t[r];e(o,r,t)&&i.push(o)}else _r(t,function(t,n,r){e(t,n,r)&&i.push(t)});return i}function en(t,e,n){if(e=g.createCallback(e,n,3),!dr(t)){var i;return _r(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}for(var r=-1,s=t.length;++r<s;){var o=t[r];if(e(o,r,t))return o}}function nn(t,e,n){var i;return e=g.createCallback(e,n,3),sn(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}function rn(t,e,n){if(e&&"undefined"==typeof n&&dr(t))for(var i=-1,r=t.length;++i<r&&e(t[i],i,t)!==!1;);else _r(t,e,n);return t}function sn(t,e,n){var i=t,r=t?t.length:0;if(e=e&&"undefined"==typeof n?e:ne(e,n,3),dr(t))for(;r--&&e(t[r],r,t)!==!1;);else{if("number"!=typeof r){var s=fr(t);r=s.length}else lr.unindexedChars&&qe(t)&&(i=t.split(""));_r(t,function(t,n,o){return n=s?s[--r]:--r,e(i[n],n,o)})}return t}function on(t,e){var n=h(arguments,2),i=-1,r="function"==typeof e,s=t?t.length:0,o=_i("number"==typeof s?s:0);return rn(t,function(t){o[++i]=(r?e:t[e]).apply(t,n)}),o}function an(t,e,n){var i=-1,r=t?t.length:0,s=_i("number"==typeof r?r:0);if(e=g.createCallback(e,n,3),dr(t))for(;++i<r;)s[i]=e(t[i],i,t);else _r(t,function(t,n,r){s[++i]=e(t,n,r)});return s}function ln(t,e,n){var r=-1/0,s=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&dr(t))for(var o=-1,a=t.length;++o<a;){var l=t[o];l>s&&(s=l)}else e=null==e&&qe(t)?i:g.createCallback(e,n,3),_r(t,function(t,n,i){var o=e(t,n,i);o>r&&(r=o,s=t)});return s}function un(t,e,n){var r=1/0,s=r;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&dr(t))for(var o=-1,a=t.length;++o<a;){var l=t[o];s>l&&(s=l)}else e=null==e&&qe(t)?i:g.createCallback(e,n,3),_r(t,function(t,n,i){var o=e(t,n,i);r>o&&(r=o,s=t)});return s}function cn(t,e,n,i){var r=arguments.length<3;if(e=g.createCallback(e,i,4),dr(t)){var s=-1,o=t.length;for(r&&(n=t[++s]);++s<o;)n=e(n,t[s],s,t)}else _r(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)});return n}function dn(t,e,n,i){var r=arguments.length<3;return e=g.createCallback(e,i,4),sn(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function hn(t,e,n){return e=g.createCallback(e,n,3),tn(t,function(t,n,i){return!e(t,n,i)})}function fn(t,e,n){if(t&&"number"!=typeof t.length?t=Je(t):lr.unindexedChars&&qe(t)&&(t=t.split("")),null==e||n)return t?t[ue(0,t.length-1)]:p;var i=pn(t);return i.length=ir(nr(0,e),i.length),i}function pn(t){var e=-1,n=t?t.length:0,i=_i("number"==typeof n?n:0);return rn(t,function(t){var n=ue(0,++e);i[e]=i[n],i[n]=t}),i}function gn(t){var e=t?t.length:0;return"number"==typeof e?e:fr(t).length}function mn(t,e,n){var i;if(e=g.createCallback(e,n,3),dr(t))for(var r=-1,s=t.length;++r<s&&!(i=e(t[r],r,t)););else _r(t,function(t,n,r){return!(i=e(t,n,r))});return!!i}function vn(t,e,n){var i=-1,s=dr(e),o=t?t.length:0,u=_i("number"==typeof o?o:0);for(s||(e=g.createCallback(e,n,3)),rn(t,function(t,n,r){var o=u[++i]=l();s?o.criteria=an(e,function(e){return t[e]}):(o.criteria=a())[0]=e(t,n,r),o.index=i,o.value=t}),o=u.length,u.sort(r);o--;){var h=u[o];u[o]=h.value,s||c(h.criteria),d(h)}return u}function yn(t){return t&&"number"==typeof t.length?lr.unindexedChars&&qe(t)?t.split(""):h(t):Je(t)}function bn(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}function xn(t){return re(t,oe(arguments,!0,!0,1))}function _n(t,e,n){var i=-1,r=t?t.length:0;for(e=g.createCallback(e,n,3);++i<r;)if(e(t[i],i,t))return i;return-1}function wn(t,e,n){var i=t?t.length:0;for(e=g.createCallback(e,n,3);i--;)if(e(t[i],i,t))return i;return-1}function kn(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var s=-1;for(e=g.createCallback(e,n,3);++s<r&&e(t[s],s,t);)i++}else if(i=e,null==i||n)return t?t[0]:p;return h(t,0,ir(nr(0,i),r))}function Cn(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=n&&(t=an(t,n,i)),oe(t,e)}function Tn(e,n,i){if("number"==typeof i){var r=e?e.length:0;i=0>i?nr(0,r+i):i||0}else if(i){var s=Dn(e,n);return e[s]===n?s:-1}return t(e,n,i)}function En(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var s=r;for(e=g.createCallback(e,n,3);s--&&e(t[s],s,t);)i++}else i=null==e||n?1:e||i;return h(t,0,ir(nr(0,r-i),r))}function Sn(){for(var n=[],i=-1,r=arguments.length,o=a(),l=ge(),u=l===t,h=a();++i<r;){var f=arguments[i];(dr(f)||be(f))&&(n.push(f),o.push(u&&f.length>=x&&s(i?n[i]:h)))}var p=n[0],g=-1,m=p?p.length:0,v=[];t:for(;++g<m;){var y=o[0];if(f=p[g],(y?e(y,f):l(h,f))<0){for(i=r,(y||h).push(f);--i;)if(y=o[i],(y?e(y,f):l(n[i],f))<0)continue t;v.push(f)}}for(;r--;)y=o[r],y&&d(y);return c(o),c(h),v}function jn(t,e,n){var i=0,r=t?t.length:0;if("number"!=typeof e&&null!=e){var s=r;for(e=g.createCallback(e,n,3);s--&&e(t[s],s,t);)i++}else if(i=e,null==i||n)return t?t[r-1]:p;return h(t,nr(0,r-i))}function An(t,e,n){var i=t?t.length:0;for("number"==typeof n&&(i=(0>n?nr(0,i+n):ir(n,i-1))+1);i--;)if(t[i]===e)return i;return-1}function Fn(t){for(var e=arguments,n=0,i=e.length,r=t?t.length:0;++n<i;)for(var s=-1,o=e[n];++s<r;)t[s]===o&&(Zi.call(t,s--,1),r--);return t}function Hn(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var i=-1,r=nr(0,Mi((e-t)/(n||1))),s=_i(r);++i<r;)s[i]=t,t+=n;return s}function $n(t,e,n){var i=-1,r=t?t.length:0,s=[];for(e=g.createCallback(e,n,3);++i<r;){var o=t[i];e(o,i,t)&&(s.push(o),Zi.call(t,i--,1),r--)}return s}function Nn(t,e,n){if("number"!=typeof e&&null!=e){var i=0,r=-1,s=t?t.length:0;for(e=g.createCallback(e,n,3);++r<s&&e(t[r],r,t);)i++}else i=null==e||n?1:nr(0,e);return h(t,i)}function Dn(t,e,n,i){var r=0,s=t?t.length:r;for(n=n?g.createCallback(n,i,1):si,e=n(e);s>r;){var o=r+s>>>1;n(t[o])<e?r=o+1:s=o}return r}function Pn(){return ce(oe(arguments,!0,!0))}function On(t,e,n,i){return"boolean"!=typeof e&&null!=e&&(i=n,n="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=n&&(n=g.createCallback(n,i,3)),ce(t,e,n)}function Rn(t){return re(t,h(arguments,1))}function Ln(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(dr(n)||be(n))var i=i?ce(re(i,n).concat(re(n,i))):n}return i||[]}function Mn(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?ln(Fr(t,"length")):0,i=_i(0>n?0:n);++e<n;)i[e]=Fr(t,e);return i}function zn(t,e){var n=-1,i=t?t.length:0,r={};for(e||!i||dr(t[0])||(e=[]);++n<i;){var s=t[n];e?r[s]=e[n]:s&&(r[s[0]]=s[1])}return r}function In(t,e){if(!Oe(e))throw new Hi;return function(){return--t<1?e.apply(this,arguments):void 0}}function qn(t,e){return arguments.length>2?he(t,17,h(arguments,2),null,e):he(t,1,null,null,e)}function Un(t){for(var e=arguments.length>1?oe(arguments,!0,!1,1):Se(t),n=-1,i=e.length;++n<i;){var r=e[n];t[r]=he(t[r],1,null,null,t)}return t}function Bn(t,e){return arguments.length>2?he(e,19,h(arguments,2),null,t):he(e,3,null,null,t)}function Wn(){for(var t=arguments,e=t.length;e--;)if(!Oe(t[e]))throw new Hi;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function Vn(t,e){return e="number"==typeof e?e:+e||t.length,he(t,4,null,null,null,e)}function Xn(t,e,n){var i,r,s,o,a,l,u,c=0,d=!1,h=!0;if(!Oe(t))throw new Hi;if(e=nr(0,e)||0,n===!0){var f=!0;h=!1}else Re(n)&&(f=n.leading,d="maxWait"in n&&(nr(e,n.maxWait)||0),h="trailing"in n?n.trailing:h);var g=function(){var n=e-($r()-o);if(0>=n){r&&zi(r);var d=u;r=l=u=p,d&&(c=$r(),s=t.apply(a,i),l||r||(i=a=null))}else l=Xi(g,n)},m=function(){l&&zi(l),r=l=u=p,(h||d!==e)&&(c=$r(),s=t.apply(a,i),l||r||(i=a=null))};return function(){if(i=arguments,o=$r(),a=this,u=h&&(l||!f),d===!1)var n=f&&!l;else{r||f||(c=o);var p=d-(o-c),v=0>=p;v?(r&&(r=zi(r)),c=o,s=t.apply(a,i)):r||(r=Xi(m,p))}return v&&l?l=zi(l):l||e===d||(l=Xi(g,e)),n&&(v=!0,s=t.apply(a,i)),!v||l||r||(i=a=null),s}}function Zn(t){if(!Oe(t))throw new Hi;var e=h(arguments,1);return Xi(function(){t.apply(p,e)},1)}function Yn(t,e){if(!Oe(t))throw new Hi;var n=h(arguments,2);return Xi(function(){t.apply(p,n)},e)}function Jn(t,e){if(!Oe(t))throw new Hi;var n=function(){var i=n.cache,r=e?e.apply(this,arguments):b+arguments[0];return Bi.call(i,r)?i[r]:i[r]=t.apply(this,arguments)};return n.cache={},n}function Gn(t){var e,n;if(!Oe(t))throw new Hi;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Kn(t){return he(t,16,h(arguments,1))}function Qn(t){return he(t,32,null,h(arguments,1))}function ti(t,e,n){var i=!0,r=!0;if(!Oe(t))throw new Hi;return n===!1?i=!1:Re(n)&&(i="leading"in n?n.leading:i,r="trailing"in n?n.trailing:r),Y.leading=i,Y.maxWait=e,Y.trailing=r,Xn(t,e,Y)}function ei(t,e){return he(e,16,[t])}function ni(t){return function(){return t}}function ii(t,e,n){var i=typeof t;if(null==t||"function"==i)return ne(t,e,n);if("object"!=i)return ui(t);var r=fr(t),s=r[0],o=t[s];return 1!=r.length||o!==o||Re(o)?function(e){for(var n=r.length,i=!1;n--&&(i=ae(e[r[n]],t[r[n]],null,!0)););return i}:function(t){var e=t[s];return o===e&&(0!==o||1/o==1/e)}}function ri(t){return null==t?"":Fi(t).replace(xr,pe)}function si(t){return t}function oi(t,e,n){var i=!0,r=e&&Se(e);e&&(n||r.length)||(null==n&&(n=e),s=m,e=t,t=g,r=Se(e)),n===!1?i=!1:Re(n)&&"chain"in n&&(i=n.chain);var s=t,o=Oe(s);rn(r,function(n){var r=t[n]=e[n];o&&(s.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];Wi.apply(o,arguments);var a=r.apply(t,o);if(i||e){if(n===a&&Re(a))return this;a=new s(a),a.__chain__=e}return a})})}function ai(){return n._=Oi,this}function li(){}function ui(t){return function(e){return e[t]}}function ci(t,e,n){var i=null==t,r=null==e;if(null==n&&("boolean"==typeof t&&r?(n=t,t=1):r||"boolean"!=typeof e||(n=e,r=!0)),i&&r&&(e=1),t=+t||0,r?(e=t,t=0):e=+e||0,n||t%1||e%1){var s=sr();return ir(t+s*(e-t+parseFloat("1e-"+((s+"").length-1))),e)}return ue(t,e)}function di(t,e){if(t){var n=t[e];return Oe(n)?t[e]():n}}function hi(t,e,n){var i=g.templateSettings;t=Fi(t||""),n=kr({},n,i);var r,s=kr({},n.imports,i.imports),a=fr(s),l=Je(s),u=0,c=n.interpolate||$,d="__p += '",h=Ai((n.escape||$).source+"|"+c.source+"|"+(c===F?S:$).source+"|"+(n.evaluate||$).source+"|$","g");t.replace(h,function(e,n,i,s,a,l){return i||(i=s),d+=t.slice(u,l).replace(D,o),n&&(d+="' +\n__e("+n+") +\n'"),a&&(r=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),d+="';\n";var f=n.variable,m=f;m||(f="obj",d="with ("+f+") {\n"+d+"\n}\n"),d=(r?d.replace(C,""):d).replace(T,"$1").replace(E,"$1;"),d="function("+f+") {\n"+(m?"":f+" || ("+f+" = {});\n")+"var __t, __p = '', __e = _.escape"+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+R++ +"]")+"\n*/";try{var y=Ti(a,"return "+d+v).apply(p,l)}catch(b){throw b.source=d,b}return e?y(e):(y.source=d,y)}function fi(t,e,n){t=(t=+t)>-1?t:0;var i=-1,r=_i(t);for(e=ne(e,n,1);++i<t;)r[i]=e(i);return r}function pi(t){return null==t?"":Fi(t).replace(br,ye)}function gi(t){var e=++v;return Fi(null==t?"":t)+e}function mi(t){return t=new m(t),t.__chain__=!0,t}function vi(t,e){return e(t),t}function yi(){return this.__chain__=!0,this}function bi(){return Fi(this.__wrapped__)}function xi(){return this.__wrapped__}n=n?se.defaults(te.Object(),n,se.pick(te,P)):te;var _i=n.Array,wi=n.Boolean,ki=n.Date,Ci=n.Error,Ti=n.Function,Ei=n.Math,Si=n.Number,ji=n.Object,Ai=n.RegExp,Fi=n.String,Hi=n.TypeError,$i=[],Ni=Ci.prototype,Di=ji.prototype,Pi=Fi.prototype,Oi=n._,Ri=Di.toString,Li=Ai("^"+Fi(Ri).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Mi=Ei.ceil,zi=n.clearTimeout,Ii=Ei.floor,qi=Ti.prototype.toString,Ui=me(Ui=ji.getPrototypeOf)&&Ui,Bi=Di.hasOwnProperty,Wi=$i.push,Vi=Di.propertyIsEnumerable,Xi=n.setTimeout,Zi=$i.splice,Yi=$i.unshift,Ji=function(){try{var t={},e=me(e=ji.defineProperty)&&e,n=e(t,t,t)&&e}catch(i){}return n}(),Gi=me(Gi=ji.create)&&Gi,Ki=me(Ki=_i.isArray)&&Ki,Qi=n.isFinite,tr=n.isNaN,er=me(er=ji.keys)&&er,nr=Ei.max,ir=Ei.min,rr=n.parseInt,sr=Ei.random,or={};or[M]=_i,or[z]=wi,or[I]=ki,or[U]=Ti,or[W]=ji,or[B]=Si,or[V]=Ai,or[X]=Fi;var ar={};ar[M]=ar[I]=ar[B]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},ar[z]=ar[X]={constructor:!0,toString:!0,valueOf:!0},ar[q]=ar[U]=ar[V]={constructor:!0,toString:!0},ar[W]={constructor:!0},function(){for(var t=O.length;t--;){var e=O[t];for(var n in ar)Bi.call(ar,n)&&!Bi.call(ar[n],e)&&(ar[n][e]=!1)}}(),m.prototype=g.prototype;var lr=g.support={};!function(){var t=function(){this.x=1},e={0:1,length:1},i=[];t.prototype={valueOf:1,y:1};for(var r in new t)i.push(r);for(r in arguments);lr.argsClass=Ri.call(arguments)==L,lr.argsObject=arguments.constructor==ji&&!(arguments instanceof _i),lr.enumErrorProps=Vi.call(Ni,"message")||Vi.call(Ni,"name"),lr.enumPrototypes=Vi.call(t,"prototype"),lr.funcDecomp=!me(n.WinRTError)&&N.test(f),lr.funcNames="string"==typeof Ti.name,lr.nonEnumArgs=0!=r,lr.nonEnumShadows=!/valueOf/.test(i),lr.ownLast="x"!=i[0],lr.spliceObjects=($i.splice.call(e,0,1),!e[0]),lr.unindexedChars="xx"!="x"[0]+ji("x")[0];try{lr.nodeClass=!(Ri.call(document)==W&&!({toString:0}+""))}catch(s){lr.nodeClass=!0}}(1),g.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:g}};var ur=function(t){var e="var index, iterable = "+t.firstArg+", result = "+t.init+";\nif (!iterable) return result;\n"+t.top+";";t.array?(e+="\nvar length = iterable.length; index = -1;\nif ("+t.array+") {  ",lr.unindexedChars&&(e+="\n  if (isString(iterable)) {\n    iterable = iterable.split('')\n  }  "),e+="\n  while (++index < length) {\n    "+t.loop+";\n  }\n}\nelse {  "):lr.nonEnumArgs&&(e+="\n  var length = iterable.length; index = -1;\n  if (length && isArguments(iterable)) {\n    while (++index < length) {\n      index += '';\n      "+t.loop+";\n    }\n  } else {  "),lr.enumPrototypes&&(e+="\n  var skipProto = typeof iterable == 'function';\n  "),lr.enumErrorProps&&(e+="\n  var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n  ");var n=[];if(lr.enumPrototypes&&n.push('!(skipProto && index == "prototype")'),lr.enumErrorProps&&n.push('!(skipErrorProps && (index == "message" || index == "name"))'),t.useHas&&t.keys)e+="\n  var ownIndex = -1,\n      ownProps = objectTypes[typeof iterable] && keys(iterable),\n      length = ownProps ? ownProps.length : 0;\n\n  while (++ownIndex < length) {\n    index = ownProps[ownIndex];\n",n.length&&(e+="    if ("+n.join(" && ")+") {\n  "),e+=t.loop+";    ",n.length&&(e+="\n    }"),e+="\n  }  ";else if(e+="\n  for (index in iterable) {\n",t.useHas&&n.push("hasOwnProperty.call(iterable, index)"),n.length&&(e+="    if ("+n.join(" && ")+") {\n  "),e+=t.loop+";    ",n.length&&(e+="\n    }"),e+="\n  }    ",lr.nonEnumShadows){for(e+="\n\n  if (iterable !== objectProto) {\n    var ctor = iterable.constructor,\n        isProto = iterable === (ctor && ctor.prototype),\n        className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n        nonEnum = nonEnumProps[className];\n      ",k=0;7>k;k++)e+="\n    index = '"+t.shadowedProps[k]+"';\n    if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",t.useHas||(e+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),e+=") {\n      "+t.loop+";\n    }      ";e+="\n  }    "}return(t.array||lr.nonEnumArgs)&&(e+="\n}"),e+=t.bottom+";\nreturn result"};Gi||(ee=function(){function t(){}return function(e){if(Re(e)){t.prototype=e;var i=new t;t.prototype=null}return i||n.Object()}}());var cr=Ji?function(t,e){J.value=e,Ji(t,"__bindData__",J)}:li;lr.argsClass||(be=function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Bi.call(t,"callee")&&!Vi.call(t,"callee")||!1});var dr=Ki||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Ri.call(t)==M||!1},hr=fe({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),fr=er?function(t){return Re(t)?lr.enumPrototypes&&"function"==typeof t||lr.nonEnumArgs&&t.length&&be(t)?hr(t):er(t):[]}:hr,pr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:fr,loop:"if (callback(iterable[index], index, collection) === false) return result"},gr={args:"object, source, guard",top:"var args = arguments,\n    argsIndex = 0,\n    argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n  iterable = args[argsIndex];\n  if (iterable && objectTypes[typeof iterable]) {",keys:fr,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:"  }\n}"},mr={top:"if (!objectTypes[typeof iterable]) return result;\n"+pr.top,array:!1},vr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yr=Ae(vr),br=Ai("("+fr(yr).join("|")+")","g"),xr=Ai("["+fr(vr).join("")+"]","g"),_r=fe(pr),wr=fe(gr,{top:gr.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n  var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n  callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),kr=fe(gr),Cr=fe(pr,mr,{useHas:!1}),Tr=fe(pr,mr);
Oe(/x/)&&(Oe=function(t){return"function"==typeof t&&Ri.call(t)==U});var Er=Ui?function(t){if(!t||Ri.call(t)!=W||!lr.argsClass&&be(t))return!1;var e=t.valueOf,n=me(e)&&(n=Ui(e))&&Ui(n);return n?t==n||Ui(t)==n:ve(t)}:ve,Sr=de(function(t,e,n){Bi.call(t,n)?t[n]++:t[n]=1}),jr=de(function(t,e,n){(Bi.call(t,n)?t[n]:t[n]=[]).push(e)}),Ar=de(function(t,e,n){t[n]=e}),Fr=an,Hr=tn,$r=me($r=ki.now)&&$r||function(){return(new ki).getTime()},Nr=8==rr(w+"08")?rr:function(t,e){return rr(qe(t)?t.replace(H,""):t,e||0)};return g.after=In,g.assign=wr,g.at=Ge,g.bind=qn,g.bindAll=Un,g.bindKey=Bn,g.chain=mi,g.compact=bn,g.compose=Wn,g.constant=ni,g.countBy=Sr,g.create=we,g.createCallback=ii,g.curry=Vn,g.debounce=Xn,g.defaults=kr,g.defer=Zn,g.delay=Yn,g.difference=xn,g.filter=tn,g.flatten=Cn,g.forEach=rn,g.forEachRight=sn,g.forIn=Cr,g.forInRight=Te,g.forOwn=Tr,g.forOwnRight=Ee,g.functions=Se,g.groupBy=jr,g.indexBy=Ar,g.initial=En,g.intersection=Sn,g.invert=Ae,g.invoke=on,g.keys=fr,g.map=an,g.mapValues=Be,g.max=ln,g.memoize=Jn,g.merge=We,g.min=un,g.omit=Ve,g.once=Gn,g.pairs=Xe,g.partial=Kn,g.partialRight=Qn,g.pick=Ze,g.pluck=Fr,g.property=ui,g.pull=Fn,g.range=Hn,g.reject=hn,g.remove=$n,g.rest=Nn,g.shuffle=pn,g.sortBy=vn,g.tap=vi,g.throttle=ti,g.times=fi,g.toArray=yn,g.transform=Ye,g.union=Pn,g.uniq=On,g.values=Je,g.where=Hr,g.without=Rn,g.wrap=ei,g.xor=Ln,g.zip=Mn,g.zipObject=zn,g.collect=an,g.drop=Nn,g.each=rn,g.eachRight=sn,g.extend=wr,g.methods=Se,g.object=zn,g.select=tn,g.tail=Nn,g.unique=On,g.unzip=Mn,oi(g),g.clone=xe,g.cloneDeep=_e,g.contains=Ke,g.escape=ri,g.every=Qe,g.find=en,g.findIndex=_n,g.findKey=ke,g.findLast=nn,g.findLastIndex=wn,g.findLastKey=Ce,g.has=je,g.identity=si,g.indexOf=Tn,g.isArguments=be,g.isArray=dr,g.isBoolean=Fe,g.isDate=He,g.isElement=$e,g.isEmpty=Ne,g.isEqual=De,g.isFinite=Pe,g.isFunction=Oe,g.isNaN=Le,g.isNull=Me,g.isNumber=ze,g.isObject=Re,g.isPlainObject=Er,g.isRegExp=Ie,g.isString=qe,g.isUndefined=Ue,g.lastIndexOf=An,g.mixin=oi,g.noConflict=ai,g.noop=li,g.now=$r,g.parseInt=Nr,g.random=ci,g.reduce=cn,g.reduceRight=dn,g.result=di,g.runInContext=f,g.size=gn,g.some=mn,g.sortedIndex=Dn,g.template=hi,g.unescape=pi,g.uniqueId=gi,g.all=Qe,g.any=mn,g.detect=en,g.findWhere=en,g.foldl=cn,g.foldr=dn,g.include=Ke,g.inject=cn,oi(function(){var t={};return Tr(g,function(e,n){g.prototype[n]||(t[n]=e)}),t}(),!1),g.first=kn,g.last=jn,g.sample=fn,g.take=kn,g.head=kn,Tr(g,function(t,e){var n="sample"!==e;g.prototype[e]||(g.prototype[e]=function(e,i){var r=this.__chain__,s=t(this.__wrapped__,e,i);return r||null!=e&&(!i||n&&"function"==typeof e)?new m(s,r):s})}),g.VERSION="2.4.1",g.prototype.chain=yi,g.prototype.toString=bi,g.prototype.value=xi,g.prototype.valueOf=xi,_r(["join","pop","shift"],function(t){var e=$i[t];g.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new m(n,t):n}}),_r(["push","reverse","sort","unshift"],function(t){var e=$i[t];g.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),_r(["concat","slice","splice"],function(t){var e=$i[t];g.prototype[t]=function(){return new m(e.apply(this.__wrapped__,arguments),this.__chain__)}}),lr.spliceObjects||_r(["pop","shift","splice"],function(t){var e=$i[t],n="splice"==t;g.prototype[t]=function(){var t=this.__chain__,i=this.__wrapped__,r=e.apply(i,arguments);return 0===i.length&&delete i[0],t||n?new m(r,t):r}}),g}var p,g=[],m=[],v=0,y={},b=+new Date+"",x=75,_=40,w=" 	\f ﻿\n\r\u2028\u2029 ᠎             　",C=/\b__p \+= '';/g,T=/\b(__p \+=) '' \+/g,E=/(__e\(.*?\)|\b__t\)) \+\n'';/g,S=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j=/\w*$/,A=/^\s*function[ \n\r\t]+\w/,F=/<%=([\s\S]+?)%>/g,H=RegExp("^["+w+"]*0+(?=.$)"),$=/($^)/,N=/\bthis\b/,D=/['\n\r\t\u2028\u2029\\]/g,P=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],O=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R=0,L="[object Arguments]",M="[object Array]",z="[object Boolean]",I="[object Date]",q="[object Error]",U="[object Function]",B="[object Number]",W="[object Object]",V="[object RegExp]",X="[object String]",Z={};Z[U]=!1,Z[L]=Z[M]=Z[z]=Z[I]=Z[B]=Z[W]=Z[V]=Z[X]=!0;var Y={leading:!1,maxWait:0,trailing:!1},J={configurable:!1,enumerable:!1,value:null,writable:!1},G={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},K={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Q={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},te=K[typeof window]&&window||this,ee=K[typeof exports]&&exports&&!exports.nodeType&&exports,ne=K[typeof module]&&module&&!module.nodeType&&module,ie=ne&&ne.exports===ee&&ee,re=K[typeof global]&&global;!re||re.global!==re&&re.window!==re||(te=re);var se=f();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(te._=se,define(function(){return se})):ee&&ne?ie?(ne.exports=se)._=se:ee._=se:te._=se}.call(this),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,i,r){t.Backbone=e(t,r,n,i)});else if("undefined"!=typeof exports){var n=require("underscore");e(t,exports,n)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,i){var r=t.Backbone,s=[];s.push;var o=s.slice;s.splice,e.VERSION="1.1.2",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!u(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,i){if(!u(this,"once",t,[e,i])||!e)return this;var r=this,s=n.once(function(){r.off(t,s),e.apply(this,arguments)});return s._callback=e,this.on(t,s,i)},off:function(t,e,i){var r,s,o,a,l,c,d,h;if(!this._events||!u(this,"off",t,[e,i]))return this;if(!t&&!e&&!i)return this._events=void 0,this;for(a=t?[t]:n.keys(this._events),l=0,c=a.length;c>l;l++)if(t=a[l],o=this._events[t]){if(this._events[t]=r=[],e||i)for(d=0,h=o.length;h>d;d++)s=o[d],(e&&e!==s.callback&&e!==s.callback._callback||i&&i!==s.context)&&r.push(s);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!u(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&c(n,e),i&&c(i,arguments),this},stopListening:function(t,e,i){var r=this._listeningTo;if(!r)return this;var s=!e&&!i;i||"object"!=typeof e||(i=this),t&&((r={})[t._listenId]=t);for(var o in r)t=r[o],t.off(e,i,this),(s||n.isEmpty(t._events))&&delete this._listeningTo[o];return this}},l=/\s+/,u=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(l.test(n)){for(var s=n.split(l),o=0,a=s.length;a>o;o++)t[e].apply(t,[s[o]].concat(i));return!1}return!0},c=function(t,e){var n,i=-1,r=t.length,s=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,s,o,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}},d={listenTo:"on",listenToOnce:"once"};n.each(d,function(t,e){a[e]=function(e,i,r){var s=this._listeningTo||(this._listeningTo={}),o=e._listenId||(e._listenId=n.uniqueId("l"));return s[o]=e,r||"object"!=typeof i||(r=this),e[t](i,r,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var h=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,i){var r,s,o,a,l,u,c,d;if(null==t)return this;if("object"==typeof t?(s=t,i=e):(s={})[t]=e,i||(i={}),!this._validate(s,i))return!1;o=i.unset,l=i.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,c=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(r in s)e=s[r],n.isEqual(d[r],e)||a.push(r),n.isEqual(c[r],e)?delete this.changed[r]:this.changed[r]=e,o?delete d[r]:d[r]=e;if(!l){a.length&&(this._pending=i);for(var h=0,f=a.length;f>h;h++)this.trigger("change:"+a[h],this,d[a[h]],i)}if(u)return this;if(!l)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,i=!1,r=this._changing?this._previousAttributes:this.attributes;for(var s in t)n.isEqual(r[s],e=t[s])||((i||(i={}))[s]=e);return i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,i=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(i&&i(e,n,t),e.trigger("sync",e,n,t),void 0):!1},R(this,t),this.sync("read",this,t)},save:function(t,e,i){var r,s,o,a=this.attributes;if(null==t||"object"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0},i),r&&!i.wait){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=n.extend({},a,r)),void 0===i.parse&&(i.parse=!0);var l=this,u=i.success;return i.success=function(t){l.attributes=a;var e=l.parse(t,i);return i.wait&&(e=n.extend(r||{},e)),n.isObject(e)&&!l.set(e,i)?!1:(u&&u(l,t,i),l.trigger("sync",l,t,i),void 0)},R(this,i),s=this.isNew()?"create":i.patch?"patch":"update","patch"===s&&(i.attrs=r),o=this.sync(s,this,i),r&&i.wait&&(this.attributes=a),o},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&r(),i&&i(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;R(this,t);var s=this.sync("delete",this,t);return t.wait||r(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||O();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return i?(this.trigger("invalid",this,i,n.extend(e,{validationError:i})),!1):!0}});var f=["keys","values","pairs","invert","pick","omit"];n.each(f,function(t){h.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var p=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};n.extend(p.prototype,a,{model:h,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,m))},remove:function(t,e){var i=!n.isArray(t);t=i?[t]:n.clone(t),e||(e={});var r,s,o,a;for(r=0,s=t.length;s>r;r++)a=t[r]=this.get(t[r]),a&&(delete this._byId[a.id],delete this._byId[a.cid],o=this.indexOf(a),this.models.splice(o,1),this.length--,e.silent||(e.index=o,a.trigger("remove",a,this,e)),this._removeReference(a,e));return i?t[0]:t},set:function(t,e){e=n.defaults({},e,g),e.parse&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:n.clone(t);var r,s,o,a,l,u,c,d=e.at,f=this.model,p=this.comparator&&null==d&&e.sort!==!1,m=n.isString(this.comparator)?this.comparator:null,v=[],y=[],b={},x=e.add,_=e.merge,w=e.remove,k=!p&&x&&w?[]:!1;for(r=0,s=t.length;s>r;r++){if(l=t[r]||{},o=l instanceof h?a=l:l[f.prototype.idAttribute||"id"],u=this.get(o))w&&(b[u.cid]=!0),_&&(l=l===a?a.attributes:l,e.parse&&(l=u.parse(l,e)),u.set(l,e),p&&!c&&u.hasChanged(m)&&(c=!0)),t[r]=u;else if(x){if(a=t[r]=this._prepareModel(l,e),!a)continue;v.push(a),this._addReference(a,e)}a=u||a,!k||!a.isNew()&&b[a.id]||k.push(a),b[a.id]=!0}if(w){for(r=0,s=this.length;s>r;++r)b[(a=this.models[r]).cid]||y.push(a);y.length&&this.remove(y,e)}if(v.length||k&&k.length)if(p&&(c=!0),this.length+=v.length,null!=d)for(r=0,s=v.length;s>r;r++)this.models.splice(d+r,0,v[r]);else{k&&(this.models.length=0);var C=k||v;for(r=0,s=C.length;s>r;r++)this.models.push(C[r])}if(c&&this.sort({silent:!0}),!e.silent){for(r=0,s=v.length;s>r;r++)(a=v[r]).trigger("add",a,this,e);(c||k&&k.length)&&this.trigger("sort",this,e)}return i?t[0]:t},reset:function(t,e){e||(e={});for(var i=0,r=this.models.length;r>i;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return o.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,i=this;return t.success=function(n){var r=t.reset?"reset":"set";i[r](n,t),e&&e(i,n,t),i.trigger("sync",i,n,t)},R(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var i=this,r=e.success;return e.success=function(t,n){e.wait&&i.add(t,e),r&&r(t,n,e)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof h)return t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger("invalid",this,i.validationError,e),!1):i},_addReference:function(t){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var v=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(v,function(t){p.prototype[t]=function(){var e=o.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,function(t){p.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)}});var b=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,_)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},x=/^(\S+)\s*(.*)$/,_=["model","collection","el","id","attributes","className","tagName","events"];n.extend(b.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[t[e]]),i){var r=e.match(x),s=r[1],o=r[2];i=n.bind(i,this),s+=".delegateEvents"+this.cid,""===o?this.$el.on(s,i):this.$el.on(s,o,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var i=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(i,!1)}}}),e.sync=function(t,i,r){var s=k[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:s,dataType:"json"};if(r.url||(o.url=n.result(i,"url")||O()),null!=r.data||!i||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),r.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){o.type="POST",r.emulateJSON&&(o.data._method=s);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",s),a?a.apply(this,arguments):void 0}}"GET"===o.type||r.emulateJSON||(o.processData=!1),"PATCH"===o.type&&w&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=r.xhr=e.ajax(n.extend(o,r));return i.trigger("request",i,l,r),l};var w=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),k={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var C=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},T=/\((.*?)\)/g,E=/(\(\?)?:\w+/g,S=/\*\w+/g,j=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(C.prototype,a,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var s=this;return e.history.route(t,function(n){var o=s._extractParameters(t,n);s.execute(r,o),s.trigger.apply(s,["route:"+i].concat(o)),s.trigger("route",i,o),e.history.trigger("route",s,i,o)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(j,"\\$&").replace(T,"(?:$1)?").replace(E,function(t,e){return e?t:"([^/?]+)"}).replace(S,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},F=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,$=/msie [\w.]+/,N=/\/$/,D=/#.*$/;A.started=!1,n.extend(A.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(N,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(F,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),r=document.documentMode,s=$.exec(navigator.userAgent.toLowerCase())&&(!r||7>=r);if(this.root=("/"+this.root+"/").replace(H,"/"),s&&this._wantsHashChange){var o=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(i)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(F,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),this.loadUrl(),void 0)},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(D,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),e.history=new A;var P=function(t,e){var i,r=this;i=t&&n.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var s=function(){this.constructor=i};return s.prototype=r.prototype,i.prototype=new s,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};h.extend=p.extend=C.extend=b.extend=A.extend=P;var O=function(){throw new Error('A "url" property or function must be specified')},R=function(t,e){var n=e.error;e.error=function(i){n&&n(t,i,e),t.trigger("error",t,i,e)}};return e}),function(){var t=function(){var t={},e={},n=function(){return function(){}},i=function(t,i){var r={id:t,exports:{}};i(r.exports,n(),r);var s=e[t]=r.exports;return s},r=function(n){if(e.hasOwnProperty(n))return e[n];if(t.hasOwnProperty(n))return i(n,t[n]);throw new Error('Cannot find module "'+n+'"')};return r.register=function(e,n){t[e]=n},r}();t.register("chaplin/application",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d,h;h=t("underscore"),s=t("backbone"),a=t("chaplin/dispatcher"),u=t("chaplin/views/layout"),o=t("chaplin/composer"),c=t("chaplin/lib/router"),l=t("chaplin/lib/event_broker"),d=t("chaplin/mediator"),i.exports=r=function(){function t(t){null==t&&(t={}),this.initialize(t)}return t.extend=s.Model.extend,h.extend(t.prototype,l),t.prototype.title="",t.prototype.dispatcher=null,t.prototype.layout=null,t.prototype.router=null,t.prototype.composer=null,t.prototype.started=!1,t.prototype.initialize=function(t){if(null==t&&(t={}),this.started)throw new Error("Application#initialize: App was already started");return this.initRouter(t.routes,t),this.initDispatcher(t),this.initLayout(t),this.initComposer(t),this.initMediator(),this.start()},t.prototype.initDispatcher=function(t){return this.dispatcher=new a(t)},t.prototype.initLayout=function(t){var e;return null==t&&(t={}),null==(e=t.title)&&(t.title=this.title),this.layout=new u(t)},t.prototype.initComposer=function(t){return null==t&&(t={}),this.composer=new o(t)},t.prototype.initMediator=function(){return d.seal()},t.prototype.initRouter=function(t,e){return this.router=new c(e),"function"==typeof t?t(this.router.match):void 0},t.prototype.start=function(){return this.router.startHistory(),this.started=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0},t.prototype.disposed=!1,t.prototype.dispose=function(){var t,e,n,i;if(!this.disposed){for(e=["dispatcher","layout","router","composer"],n=0,i=e.length;i>n;n++)t=e[n],null!=this[t]&&this[t].dispose();return this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},t}()}),t.register("chaplin/mediator",function(e,n,i){"use strict";var r,s,o,a,l,u,c=[].slice;r=t("backbone"),u=t("underscore"),a=t("chaplin/lib/support"),l=t("chaplin/lib/utils"),o={},o.subscribe=r.Events.on,o.unsubscribe=r.Events.off,o.publish=r.Events.trigger,o._callbacks=null,s=o._handlers={},o.setHandler=function(t,e,n){return s[t]={instance:n,method:e}},o.execute=function(){var t,e,n,i,r;if(i=arguments[0],t=2<=arguments.length?c.call(arguments,1):[],r=!1,"object"==typeof i?(r=i.silent,n=i.name):n=i,e=s[n])return e.method.apply(e.instance,t);if(!r)throw new Error("mediator.execute: "+n+" handler is not defined")},o.removeHandlers=function(t){var e,n,i,r;if(t||(o._handlers={}),l.isArray(t))for(i=0,r=t.length;r>i;i++)n=t[i],delete s[n];else for(n in s)e=s[n],e.instance===t&&delete s[n]},l.readonly(o,"subscribe","unsubscribe","publish","setHandler","execute","removeHandlers"),o.seal=function(){return a.propertyDescriptors&&Object.seal?Object.seal(o):void 0},l.readonly(o,"seal"),i.exports=o}),t.register("chaplin/dispatcher",function(e,n,i){"use strict";var r,s,o,a,l,u;u=t("underscore"),r=t("backbone"),a=t("chaplin/mediator"),l=t("chaplin/lib/utils"),o=t("chaplin/lib/event_broker"),i.exports=s=function(){function t(){this.initialize.apply(this,arguments)}return t.extend=r.Model.extend,u.extend(t.prototype,o),t.prototype.previousRoute=null,t.prototype.currentController=null,t.prototype.currentRoute=null,t.prototype.currentParams=null,t.prototype.currentQuery=null,t.prototype.initialize=function(t){return null==t&&(t={}),this.settings=u.defaults(t,{controllerPath:"controllers/",controllerSuffix:"_controller"}),this.subscribeEvent("router:match",this.dispatch)},t.prototype.dispatch=function(t,e,n){var i,r,s=this;return e=e?u.extend({},e):{},n=n?u.extend({},n):{},null==n.query&&(n.query={}),n.forceStartup!==!0&&(n.forceStartup=!1),!n.forceStartup&&(null!=(i=this.currentRoute)?i.controller:void 0)===t.controller&&(null!=(r=this.currentRoute)?r.action:void 0)===t.action&&u.isEqual(this.currentParams,e)&&u.isEqual(this.currentQuery,n.query)?void 0:this.loadController(t.controller,function(i){return s.controllerLoaded(t,e,n,i)})},t.prototype.loadController=function(t,e){var n,i;return n=t+this.settings.controllerSuffix,i=this.settings.controllerPath+n,("undefined"!=typeof define&&null!==define?define.amd:void 0)?require([i],e):setTimeout(function(){return e(require(i))},0)},t.prototype.controllerLoaded=function(t,e,n,i){var r,s,o;return(this.nextPreviousRoute=this.currentRoute)&&(o=u.extend({},this.nextPreviousRoute),null!=this.currentParams&&(o.params=this.currentParams),o.previous&&delete o.previous,s={previous:o}),this.nextCurrentRoute=u.extend({},t,s),r=new i(e,this.nextCurrentRoute,n),this.executeBeforeAction(r,this.nextCurrentRoute,e,n)},t.prototype.executeAction=function(t,e,n,i){return this.currentController&&(this.publishEvent("beforeControllerDispose",this.currentController),this.currentController.dispose(n,e,i)),this.currentController=t,this.currentParams=n,this.currentQuery=i.query,t[e.action](n,e,i),t.redirected?void 0:this.publishEvent("dispatcher:dispatch",this.currentController,n,e,i)},t.prototype.executeBeforeAction=function(t,e,n,i){var r,s,o,a=this;if(r=t.beforeAction,s=function(){return t.redirected||a.currentRoute&&e===a.currentRoute?(a.nextPreviousRoute=a.nextCurrentRoute=null,t.dispose(),void 0):(a.previousRoute=a.nextPreviousRoute,a.currentRoute=a.nextCurrentRoute,a.nextPreviousRoute=a.nextCurrentRoute=null,a.executeAction(t,e,n,i))},!r)return s(),void 0;if("function"!=typeof r)throw new TypeError("Controller#beforeAction: function expected. Old object-like form is not supported.");return o=t.beforeAction(n,e,i),o&&o.then?o.then(s):s()},t.prototype.disposed=!1,t.prototype.dispose=function(){return this.disposed?void 0:(this.unsubscribeAllEvents(),this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0)},t}()}),t.register("chaplin/composer",function(e,n,i){"use strict";var r,s,o,a,l,u,c;c=t("underscore"),r=t("backbone"),l=t("chaplin/mediator"),u=t("chaplin/lib/utils"),o=t("chaplin/lib/composition"),a=t("chaplin/lib/event_broker"),i.exports=s=function(){function t(){this.initialize.apply(this,arguments)}return t.extend=r.Model.extend,c.extend(t.prototype,a),t.prototype.compositions=null,t.prototype.initialize=function(t){return null==t&&(t={}),this.compositions={},l.setHandler("composer:compose",this.compose,this),l.setHandler("composer:retrieve",this.retrieve,this),this.subscribeEvent("dispatcher:dispatch",this.cleanup)},t.prototype.compose=function(t,e,n){return"function"==typeof e?n||e.prototype.dispose?e.prototype instanceof o?this._compose(t,{composition:e,options:n}):this._compose(t,{options:n,compose:function(){var t,n;return this.item=new e(this.options),t=this.item.autoRender,n=void 0===t||!t,n&&"function"==typeof this.item.render?this.item.render():void 0}}):this._compose(t,{compose:e}):"function"==typeof n?this._compose(t,{compose:n,options:e}):this._compose(t,e)},t.prototype._compose=function(t,e){var n,i,r,s;if("function"!=typeof e.compose&&null==e.composition)throw new Error("Composer#compose was used incorrectly");return null!=e.composition?n=new e.composition(e.options):(n=new o(e.options),n.compose=e.compose,e.check&&(n.check=e.check)),i=this.compositions[t],r=!1,i&&i.check(n.options)?i.stale(!1):(i&&i.dispose(),s=n.compose(n.options),r="function"==typeof(null!=s?s.then:void 0),n.stale(!1),this.compositions[t]=n),r?s:this.compositions[t].item},t.prototype.retrieve=function(t){var e;return e=this.compositions[t],e&&!e.stale()?e.item:void 0},t.prototype.cleanup=function(){var t,e,n;n=this.compositions;
for(e in n)t=n[e],t.stale()?(t.dispose(),delete this.compositions[e]):t.stale(!0)},t.prototype.dispose=function(){var t,e,n;if(!this.disposed){this.unsubscribeAllEvents(),l.removeHandlers(this),n=this.compositions;for(e in n)t=n[e],t.dispose();return delete this.compositions,this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},t}()}),t.register("chaplin/controllers/controller",function(e,n,i){"use strict";var r,s,o,a,l,u,c=[].slice,d={}.hasOwnProperty;u=t("underscore"),r=t("backbone"),o=t("chaplin/lib/event_broker"),l=t("chaplin/lib/utils"),a=t("chaplin/mediator"),i.exports=s=function(){function t(){this.initialize.apply(this,arguments)}return t.extend=r.Model.extend,u.extend(t.prototype,r.Events),u.extend(t.prototype,o),t.prototype.view=null,t.prototype.redirected=!1,t.prototype.initialize=function(){},t.prototype.beforeAction=function(){},t.prototype.adjustTitle=function(t){return a.execute("adjustTitle",t)},t.prototype.reuse=function(){var t;return t=1===arguments.length?"retrieve":"compose",a.execute.apply(a,["composer:"+t].concat(c.call(arguments)))},t.prototype.compose=function(){throw new Error("Controller#compose was moved to Controller#reuse")},t.prototype.redirectTo=function(t,e,n){return this.redirected=!0,l.redirectTo(t,e,n)},t.prototype.disposed=!1,t.prototype.dispose=function(){var t,e;if(!this.disposed){for(e in this)d.call(this,e)&&(t=this[e],t&&"function"==typeof t.dispose&&(t.dispose(),delete this[e]));return this.unsubscribeAllEvents(),this.stopListening(),this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},t}()}),t.register("chaplin/models/collection",function(e,n,i){"use strict";var r,s,o,a,l,u,c={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var i in e)c.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};u=t("underscore"),r=t("backbone"),o=t("chaplin/lib/event_broker"),a=t("chaplin/models/model"),l=t("chaplin/lib/utils"),i.exports=s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,t),u.extend(e.prototype,o),e.prototype.model=a,e.prototype.serialize=function(){return this.map(l.serialize)},e.prototype.disposed=!1,e.prototype.dispose=function(){var t,e,n,i;if(!this.disposed){for(this.trigger("dispose",this),this.reset([],{silent:!0}),this.unsubscribeAllEvents(),this.stopListening(),this.off(),e=["model","models","_byId","_byCid","_callbacks"],n=0,i=e.length;i>n;n++)t=e[n],delete this[t];return this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},e}(r.Collection)}),t.register("chaplin/models/model",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var i in e)d.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};c=t("underscore"),r=t("backbone"),u=t("chaplin/lib/utils"),s=t("chaplin/lib/event_broker"),a=function(t,e,n){var i,s,o,a,c,d,h,f;i=u.beget(e),null==n&&(n={}),n[t.cid]=!0;for(s in e)if(c=e[s],c instanceof r.Model)i[s]=l(c,t,n);else if(c instanceof r.Collection){for(a=[],f=c.models,d=0,h=f.length;h>d;d++)o=f[d],a.push(l(o,t,n));i[s]=a}return delete n[t.cid],i},l=function(t,e,n){var i;return t===e||t.cid in n?null:(i="function"==typeof t.getAttributes?t.getAttributes():t.attributes,a(t,i,n))},i.exports=o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),c.extend(e.prototype,s),e.prototype.getAttributes=function(){return this.attributes},e.prototype.serialize=function(){return a(this,this.getAttributes())},e.prototype.disposed=!1,e.prototype.dispose=function(){var t,e,n,i;if(!this.disposed){for(this.trigger("dispose",this),this.unsubscribeAllEvents(),this.stopListening(),this.off(),e=["collection","attributes","changed","_escapedAttributes","_previousAttributes","_silent","_pending","_callbacks"],n=0,i=e.length;i>n;n++)t=e[n],delete this[t];return this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},e}(r.Model)}),t.register("chaplin/views/layout",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d,h=function(t,e){return function(){return t.apply(e,arguments)}},f={}.hasOwnProperty,p=function(t,e){function n(){this.constructor=t}for(var i in e)f.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};d=t("underscore"),s=t("backbone"),u=t("chaplin/mediator"),c=t("chaplin/lib/utils"),o=t("chaplin/lib/event_broker"),l=t("chaplin/views/view"),r=s.$,i.exports=a=function(t){function e(t){null==t&&(t={}),this.openLink=h(this.openLink,this),this.globalRegions=[],this.title=t.title,t.regions&&(this.regions=t.regions),this.settings=d.defaults(t,{titleTemplate:function(t){var e;return e=t.subtitle?""+t.subtitle+" – ":"",e+t.title},openExternalToBlank:!1,routeLinks:"a, .go-to",skipRouting:".noscript",scrollTo:[0,0]}),u.setHandler("region:show",this.showRegion,this),u.setHandler("region:register",this.registerRegionHandler,this),u.setHandler("region:unregister",this.unregisterRegionHandler,this),u.setHandler("region:find",this.regionByName,this),u.setHandler("adjustTitle",this.adjustTitle,this),e.__super__.constructor.apply(this,arguments),this.settings.routeLinks&&this.startLinkRouting()}return p(e,t),e.prototype.el="body",e.prototype.keepElement=!0,e.prototype.title="",e.prototype.globalRegions=null,e.prototype.listen={"beforeControllerDispose mediator":"scroll"},e.prototype.scroll=function(){var t;return t=this.settings.scrollTo,t?window.scrollTo(t[0],t[1]):void 0},e.prototype.adjustTitle=function(t){var e,n=this;return null==t&&(t=""),e=this.settings.titleTemplate({title:this.title,subtitle:t}),setTimeout(function(){return document.title=e,n.publishEvent("adjustTitle",t,e)},50),e},e.prototype.startLinkRouting=function(){var t;return(t=this.settings.routeLinks)?r?this.$el.on("click",t,this.openLink):this.delegate("click",t,this.openLink):void 0},e.prototype.stopLinkRouting=function(){var t;return t=this.settings.routeLinks,r?t?this.$el.off("click",t):void 0:this.undelegate("click",t,this.openLink)},e.prototype.isExternalLink=function(t){var e,n;return"_blank"===t.target||"external"===t.rel||"http:"!==(e=t.protocol)&&"https:"!==e&&"file:"!==e||(n=t.hostname)!==location.hostname&&""!==n},e.prototype.openLink=function(t){var e,n,i,o,a,l;if(!(c.modifierKeyPressed(t)||(e=r?t.currentTarget:t.delegateTarget,o="A"===e.nodeName,i=e.getAttribute("href")||e.getAttribute("data-href")||null,null==i||""===i||"#"===i.charAt(0)||(a=this.settings.skipRouting,l=typeof a,"function"===l&&!a(i,e)||"string"===l&&(r?r(e).is(a):s.utils.matchesSelector(e,a)))))){if(n=o&&this.isExternalLink(e))return this.settings.openExternalToBlank&&(t.preventDefault(),window.open(i)),void 0;c.redirectTo({url:i}),t.preventDefault()}},e.prototype.registerRegionHandler=function(t,e,n){return null!=e?this.registerGlobalRegion(t,e,n):this.registerGlobalRegions(t)},e.prototype.registerGlobalRegion=function(t,e,n){return this.unregisterGlobalRegion(t,e),this.globalRegions.unshift({instance:t,name:e,selector:n})},e.prototype.registerGlobalRegions=function(t){var e,n,i,r,s,o;for(o=c.getAllPropertyVersions(t,"regions"),r=0,s=o.length;s>r;r++){i=o[r];for(e in i)n=i[e],this.registerGlobalRegion(t,e,n)}},e.prototype.unregisterRegionHandler=function(t,e){return null!=e?this.unregisterGlobalRegion(t,e):this.unregisterGlobalRegions(t)},e.prototype.unregisterGlobalRegion=function(t,e){var n,i;return n=t.cid,this.globalRegions=function(){var t,r,s,o;for(s=this.globalRegions,o=[],t=0,r=s.length;r>t;t++)i=s[t],(i.instance.cid!==n||i.name!==e)&&o.push(i);return o}.call(this)},e.prototype.unregisterGlobalRegions=function(t){var e;return this.globalRegions=function(){var n,i,r,s;for(r=this.globalRegions,s=[],n=0,i=r.length;i>n;n++)e=r[n],e.instance.cid!==t.cid&&s.push(e);return s}.call(this)},e.prototype.regionByName=function(t){var e,n,i,r;for(r=this.globalRegions,n=0,i=r.length;i>n;n++)if(e=r[n],e.name===t&&!e.instance.stale)return e},e.prototype.showRegion=function(t,e){var n;if(n=this.regionByName(t),!n)throw new Error("No region registered under "+t);return e.container=""===n.selector?r?n.instance.$el:n.instance.el:n.instance.noWrap?r?r(n.instance.container).find(n.selector):n.instance.container.querySelector(n.selector):n.instance[r?"$":"find"](n.selector)},e.prototype.dispose=function(){var t,n,i,r;if(!this.disposed){for(this.stopLinkRouting(),r=["globalRegions","title","route"],n=0,i=r.length;i>n;n++)t=r[n],delete this[t];return u.removeHandlers(this),e.__super__.dispose.apply(this,arguments)}},e}(l)}),t.register("chaplin/views/view",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d,h,f,p={}.hasOwnProperty,g=function(t,e){function n(){this.constructor=t}for(var i in e)p.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},m=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};f=t("underscore"),s=t("backbone"),c=t("chaplin/mediator"),o=t("chaplin/lib/event_broker"),h=t("chaplin/lib/utils"),r=s.$,u=function(){return Function.prototype.bind?function(t,e){return t.bind(e)}:f.bind?f.bind:void 0}(),d=function(){return r?function(t,e){return t.html(e)}:function(t,e){return t.innerHTML=e}}(),l=function(){return r?function(t){var e;return e=r(t.container),"function"==typeof t.containerMethod?t.containerMethod(e,t.el):e[t.containerMethod](t.el)}:function(t){var e;return e="string"==typeof t.container?document.querySelector(t.container):t.container,"function"==typeof t.containerMethod?t.containerMethod(e,t.el):e[t.containerMethod](t.el)}}(),i.exports=a=function(t){function e(t){var n,i,s,o,a=this;if(t)for(n in t)i=t[n],m.call(this.optionNames,n)>=0&&(this[n]=i);o=this.render,this.render=function(){return a.disposed?!1:(o.apply(a,arguments),a.autoAttach&&a.attach.apply(a,arguments),a)},this.subviews=[],this.subviewsByName={},this.noWrap&&(this.region&&(s=c.execute("region:find",this.region),null!=s&&(this.el=null!=s.instance.container?null!=s.instance.region?r(s.instance.container).find(s.selector):s.instance.container:s.instance.$(s.selector))),this.container&&(this.el=this.container)),e.__super__.constructor.apply(this,arguments),this.delegateListeners(),this.model&&this.listenTo(this.model,"dispose",this.dispose),this.collection&&this.listenTo(this.collection,"dispose",function(t){return t&&t!==a.collection?void 0:a.dispose()}),null!=this.regions&&c.execute("region:register",this),this.autoRender&&this.render()}return g(e,t),f.extend(e.prototype,o),e.prototype.autoRender=!1,e.prototype.autoAttach=!0,e.prototype.container=null,e.prototype.containerMethod=r?"append":"appendChild",e.prototype.regions=null,e.prototype.region=null,e.prototype.stale=!1,e.prototype.noWrap=!1,e.prototype.keepElement=!1,e.prototype.subviews=null,e.prototype.subviewsByName=null,e.prototype.optionNames=["autoAttach","autoRender","container","containerMethod","region","regions","noWrap"],e.prototype.delegate=function(t,e,n){var i,r,o,a,l,c;if(s.utils)return s.utils.delegate(this,t,e,n);if("string"!=typeof t)throw new TypeError("View#delegate: first argument must be a string");if(2===arguments.length)a=e;else{if(3!==arguments.length)throw new TypeError("View#delegate: only two or three arguments are allowed");if(c=e,"string"!=typeof c)throw new TypeError("View#delegate: second argument must be a string");a=n}if("function"!=typeof a)throw new TypeError("View#delegate: handler argument must be function");return l=function(){var e,n,i,s;for(i=t.split(" "),s=[],e=0,n=i.length;n>e;e++)r=i[e],s.push(""+r+".delegate"+this.cid);return s}.call(this),o=l.join(" "),i=u(a,this),this.$el.on(o,c||null,i),i},e.prototype._delegateEvents=function(t){var e,n,i,r,o,a,l;if(2===s.View.prototype.delegateEvents.length)return s.View.prototype.delegateEvents.call(this,t,!0);for(r in t){if(l=t[r],i="function"==typeof l?l:this[l],!i)throw new Error("Method '"+l+"' does not exist");o=r.match(/^(\S+)\s*(.*)$/),n=""+o[1]+".delegateEvents"+this.cid,a=o[2],e=u(i,this),this.$el.on(n,a||null,e)}},e.prototype.delegateEvents=function(t,e){var n,i,r,s;if(e||this.undelegateEvents(),t)return this._delegateEvents(t);for(s=h.getAllPropertyVersions(this,"events"),i=0,r=s.length;r>i;i++){if(n=s[i],"function"==typeof n)throw new TypeError("View#delegateEvents: functions are not supported");this._delegateEvents(n)}},e.prototype.undelegate=function(t,e,n){var i,r,o,a,l;if(s.utils)return s.utils.undelegate(this,t,e,n);if(t){if("string"!=typeof t)throw new TypeError("View#undelegate: first argument must be a string");if(2===arguments.length)"string"==typeof e?l=e:o=e;else if(3===arguments.length){if(l=e,"string"!=typeof l)throw new TypeError("View#undelegate: second argument must be a string");o=n}return a=function(){var e,n,r,s;for(r=t.split(" "),s=[],e=0,n=r.length;n>e;e++)i=r[e],s.push(""+i+".delegate"+this.cid);return s}.call(this),r=a.join(" "),this.$el.off(r,l||null)}return this.$el.off(".delegate"+this.cid)},e.prototype.delegateListeners=function(){var t,e,n,i,r,s,o,a,l;if(this.listen)for(a=h.getAllPropertyVersions(this,"listen"),s=0,o=a.length;o>s;s++){r=a[s];for(e in r){if(n=r[e],"function"!=typeof n&&(n=this[n]),"function"!=typeof n)throw new Error("View#delegateListeners: "+(""+n+" must be function"));l=e.split(" "),t=l[0],i=l[1],this.delegateListener(t,i,n)}}},e.prototype.delegateListener=function(t,e,n){var i;"model"===e||"collection"===e?(i=this[e],i&&this.listenTo(i,t,n)):"mediator"===e?this.subscribeEvent(t,n):e||this.on(t,n,this)},e.prototype.registerRegion=function(t,e){return c.execute("region:register",this,t,e)},e.prototype.unregisterRegion=function(t){return c.execute("region:unregister",this,t)},e.prototype.unregisterAllRegions=function(){return c.execute({name:"region:unregister",silent:!0},this)},e.prototype.subview=function(t,e){var n,i;return i=this.subviews,n=this.subviewsByName,t&&e?(this.removeSubview(t),i.push(e),n[t]=e,e):t?n[t]:void 0},e.prototype.removeSubview=function(t){var e,n,i,r,s,o,a;if(t){if(o=this.subviews,e=this.subviewsByName,"string"==typeof t)i=t,a=e[i];else{a=t;for(r in e)if(s=e[r],s===a){i=r;break}}if(i&&a&&a.dispose)return a.dispose(),n=h.indexOf(o,a),-1!==n&&o.splice(n,1),delete e[i]}},e.prototype.getTemplateData=function(){var t,e;return t=this.model?h.serialize(this.model):this.collection?{items:h.serialize(this.collection),length:this.collection.length}:{},e=this.model||this.collection,e&&("function"!=typeof e.isSynced||"synced"in t||(t.synced=e.isSynced())),t},e.prototype.getTemplateFunction=function(){throw new Error("View#getTemplateFunction must be overridden")},e.prototype.render=function(){var t,e,n;if(this.disposed)return!1;if(n=this.getTemplateFunction(),"function"==typeof n)if(e=n(this.getTemplateData()),this.noWrap){if(t=document.createElement("div"),t.innerHTML=e,t.children.length>1)throw new Error("There must be a single top-level element when using `noWrap`.");this.undelegateEvents(),this.setElement(t.firstChild,!0)}else d(r?this.$el:this.el,e);return this},e.prototype.attach=function(){return null!=this.region&&c.execute("region:show",this.region,this),this.container&&!document.body.contains(this.el)?(l(this),this.trigger("addedToDOM")):void 0},e.prototype.disposed=!1,e.prototype.dispose=function(){var t,e,n,i,r,s,o,a;if(!this.disposed){for(this.unregisterAllRegions(),a=this.subviews,i=0,s=a.length;s>i;i++)n=a[i],n.dispose();for(this.unsubscribeAllEvents(),this.off(),this.keepElement?(this.undelegateEvents(),this.undelegate(),this.stopListening()):this.remove(),e=["el","$el","options","model","collection","subviews","subviewsByName","_callbacks"],r=0,o=e.length;o>r;r++)t=e[r],delete this[t];return this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},e}(s.View)}),t.register("chaplin/views/collection_view",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d,h,f,p,g,m=function(t,e){return function(){return t.apply(e,arguments)}},v={}.hasOwnProperty,y=function(t,e){function n(){this.constructor=t}for(var i in e)v.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};g=t("underscore"),s=t("backbone"),a=t("chaplin/views/view"),p=t("chaplin/lib/utils"),r=s.$,c=function(t,e){var n,i,r,o;if(!e)return t;for(o=[],i=0,r=t.length;r>i;i++)n=t[i],s.utils.matchesSelector(n,e)&&o.push(n);return o},f=function(){return r?function(t,e){return t.toggle(e)}:function(t,e){return t.style.display=e?"":"none"}}(),l=function(){return r?function(t,e){return t.addClass(e)}:function(t,e){return t.classList.add(e)}}(),h=function(){return r?function(t,e,n){return e?l(t,n):t.css("opacity",0)}:function(t,e,n){return e?l(t,n):t.style.opacity=0}}(),u=function(){return r?function(t,e){return t.animate({opacity:1},e)}:function(t,e){return t.style.transition="opacity "+e/1e3+"s",t.opacity=1}}(),d=function(){return r?function(t,e,n,i,r){var s,o,a,l,u;return a=n>0&&i>n,l=function(t){return 0===t||n===t},a||r?(s=t.children(r),o=s.length,s[n]!==e?l(o)?t.append(e):0===n?s.eq(n).before(e):s.eq(n-1).after(e):void 0):(u=l(i)?"append":"prepend",t[u](e))}:function(t,e,n,i,r){var s,o,a,l,u;return a=n>0&&i>n,l=function(t){return 0===t||n===t},a||r?(s=c(t.children,r),o=s.length,s[n]!==e?l(o)?t.appendChild(e):0===n?t.insertBefore(e,s[n]):(u=s[n-1],t.lastChild===u?t.appendChild(e):t.insertBefore(e,u.nextElementSibling)):void 0):l(i)?t.appendChild(e):t.insertBefore(e,t.firstChild)}}(),i.exports=o=function(t){function e(){this.renderAllItems=m(this.renderAllItems,this),this.toggleFallback=m(this.toggleFallback,this),this.itemsReset=m(this.itemsReset,this),this.itemRemoved=m(this.itemRemoved,this),this.itemAdded=m(this.itemAdded,this),this.visibleItems=[],e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.itemView=null,e.prototype.autoRender=!0,e.prototype.renderItems=!0,e.prototype.animationDuration=500,e.prototype.useCssAnimation=!1,e.prototype.animationStartClass="animated-item-view",e.prototype.animationEndClass="animated-item-view-end",e.prototype.listSelector=null,e.prototype.$list=null,e.prototype.fallbackSelector=null,e.prototype.$fallback=null,e.prototype.loadingSelector=null,e.prototype.$loading=null,e.prototype.itemSelector=void 0,e.prototype.filterer=null,e.prototype.filterCallback=function(t,e){return r&&t.$el.stop(!0,!0),f(r?t.$el:t.el,e)},e.prototype.visibleItems=null,e.prototype.optionNames=a.prototype.optionNames.concat(["renderItems","itemView"]),e.prototype.initialize=function(t){return null==t&&(t={}),this.addCollectionListeners(),null!=t.filterer?this.filter(t.filterer):void 0},e.prototype.addCollectionListeners=function(){return this.listenTo(this.collection,"add",this.itemAdded),this.listenTo(this.collection,"remove",this.itemRemoved),this.listenTo(this.collection,"reset sort",this.itemsReset)},e.prototype.getTemplateData=function(){var t;return t={length:this.collection.length},"function"==typeof this.collection.isSynced&&(t.synced=this.collection.isSynced()),t},e.prototype.getTemplateFunction=function(){},e.prototype.render=function(){var t;return e.__super__.render.apply(this,arguments),t=g.result(this,"listSelector"),r?this.$list=t?this.$(t):this.$el:this.list=t?this.find(this.listSelector):this.el,this.initFallback(),this.initLoadingIndicator(),this.renderItems?this.renderAllItems():void 0},e.prototype.itemAdded=function(t,e,n){return this.insertView(t,this.renderItem(t),n.at)},e.prototype.itemRemoved=function(t){return this.removeViewForItem(t)},e.prototype.itemsReset=function(){return this.renderAllItems()},e.prototype.initFallback=function(){return this.fallbackSelector?(r?this.$fallback=this.$(this.fallbackSelector):this.fallback=this.find(this.fallbackSelector),this.on("visibilityChange",this.toggleFallback),this.listenTo(this.collection,"syncStateChange",this.toggleFallback),this.toggleFallback()):void 0},e.prototype.toggleFallback=function(){var t;return t=0===this.visibleItems.length&&("function"==typeof this.collection.isSynced?this.collection.isSynced():!0),f(r?this.$fallback:this.fallback,t)},e.prototype.initLoadingIndicator=function(){return this.loadingSelector&&"function"==typeof this.collection.isSyncing?(r?this.$loading=this.$(this.loadingSelector):this.loading=this.find(this.loadingSelector),this.listenTo(this.collection,"syncStateChange",this.toggleLoadingIndicator),this.toggleLoadingIndicator()):void 0},e.prototype.toggleLoadingIndicator=function(){var t;return t=0===this.collection.length&&this.collection.isSyncing(),f(r?this.$loading:this.loading,t)},e.prototype.getItemViews=function(){var t,e,n,i;if(t={},this.subviews.length>0){i=this.subviewsByName;for(e in i)n=i[e],"itemView:"===e.slice(0,9)&&(t[e.slice(9)]=n)}return t},e.prototype.filter=function(t,e){var n,i,r,s,o,a,l,u,c=this;if(("function"==typeof t||null===t)&&(this.filterer=t),("function"==typeof e||null===e)&&(this.filterCallback=e),n=function(){var t;if(c.subviews.length>0)for(t in c.subviewsByName)if("itemView:"===t.slice(0,9))return!0;return!1}())for(u=this.collection.models,r=a=0,l=u.length;l>a;r=++a){if(s=u[r],i="function"==typeof this.filterer?this.filterer(s,r):!0,o=this.subview("itemView:"+s.cid),!o)throw new Error("CollectionView#filter: "+("no view found for "+s.cid));this.filterCallback(o,i),this.updateVisibleItems(o.model,i,!1)}return this.trigger("visibilityChange",this.visibleItems)},e.prototype.renderAllItems=function(){var t,e,n,i,r,s,o,a,l,u,c;for(i=this.collection.models,this.visibleItems=[],r={},o=0,l=i.length;l>o;o++)n=i[o],s=this.subview("itemView:"+n.cid),s&&(r[n.cid]=s);c=this.getItemViews();for(t in c)v.call(c,t)&&(s=c[t],t in r||this.removeSubview("itemView:"+t));for(e=a=0,u=i.length;u>a;e=++a)n=i[e],s=this.subview("itemView:"+n.cid),s?this.insertView(n,s,e,!1):this.insertView(n,this.renderItem(n),e);return 0===i.length?this.trigger("visibilityChange",this.visibleItems):void 0},e.prototype.renderItem=function(t){var e;return e=this.subview("itemView:"+t.cid),e||(e=this.initItemView(t),this.subview("itemView:"+t.cid,e)),e.render(),e},e.prototype.initItemView=function(t){if(this.itemView)return new this.itemView({autoRender:!1,model:t});throw new Error("The CollectionView#itemView property must be defined or the initItemView() must be overridden.")},e.prototype.insertView=function(t,e,n,i){var s,o,a,c,f=this;return null==i&&(i=!0),0===this.animationDuration&&(i=!1),"number"!=typeof n&&(n=this.collection.indexOf(t)),o="function"==typeof this.filterer?this.filterer(t,n):!0,s=r?e.$el:e.el,o&&i&&h(s,this.useCssAnimation,this.animationStartClass),this.filterer&&this.filterCallback(e,o),a=this.collection.length,c=r?this.$list:this.list,d(c,s,n,a,this.itemSelector),e.trigger("addedToParent"),this.updateVisibleItems(t,o),o&&i&&(this.useCssAnimation?setTimeout(function(){return l(s,f.animationEndClass)},0):u(s,this.animationDuration)),e},e.prototype.removeViewForItem=function(t){return this.updateVisibleItems(t,!1),this.removeSubview("itemView:"+t.cid)},e.prototype.updateVisibleItems=function(t,e,n){var i,r,s;return null==n&&(n=!0),r=!1,s=p.indexOf(this.visibleItems,t),i=-1!==s,e&&!i?(this.visibleItems.push(t),r=!0):!e&&i&&(this.visibleItems.splice(s,1),r=!0),r&&n&&this.trigger("visibilityChange",this.visibleItems),r},e.prototype.dispose=function(){var t,n,i,r;if(!this.disposed){for(n=["$list","$fallback","$loading","visibleItems"],i=0,r=n.length;r>i;i++)t=n[i],delete this[t];return e.__super__.dispose.apply(this,arguments)}},e}(a)}),t.register("chaplin/lib/route",function(e,n,i){"use strict";var r,s,o,a,l,u,c=function(t,e){return function(){return t.apply(e,arguments)}},d={}.hasOwnProperty;u=t("underscore"),r=t("backbone"),o=t("chaplin/lib/event_broker"),s=t("chaplin/controllers/controller"),l=t("chaplin/lib/utils"),i.exports=a=function(){function t(t,e,n,i){var r;if(this.pattern=t,this.controller=e,this.action=n,this.handler=c(this.handler,this),this.replaceParams=c(this.replaceParams,this),this.parseOptionalPortion=c(this.parseOptionalPortion,this),"string"!=typeof this.pattern)throw new Error("Route: RegExps are not supported.        Use strings with :names and `constraints` option of route");if(this.options=i?u.extend({},i):{},null!=this.options.name&&(this.name=this.options.name),this.name&&-1!==this.name.indexOf("#"))throw new Error('Route: "#" cannot be used in name');if(null==(r=this.name)&&(this.name=this.controller+"#"+this.action),this.allParams=[],this.requiredParams=[],this.optionalParams=[],this.action in s.prototype)throw new Error("Route: You should not use existing controller properties as action names");this.createRegExp(),"function"==typeof Object.freeze&&Object.freeze(this)}var e,n,i,a;return t.extend=r.Model.extend,u.extend(t.prototype,o),e=/[\-{}\[\]+?.,\\\^$|#\s]/g,n=/\((.*?)\)/g,i=/(?::|\*)(\w+)/g,a=function(t,e){switch(e){case!0:"/"!==t.slice(-1)&&(t+="/");break;case!1:"/"===t.slice(-1)&&(t=t.slice(0,-1))}return t},t.prototype.matches=function(t){var e,n,i,r,s,o,a;if("string"==typeof t)return t===this.name;for(i=0,a=["name","action","controller"],s=0,o=a.length;o>s;s++)if(n=a[s],i++,r=t[n],r&&r!==this[n])return!1;return e=1===i&&("action"===n||"controller"===n),!e},t.prototype.reverse=function(t,e){var i,r,s,o,u,c,d,h,f,p,g;if(t=this.normalizeParams(t),t===!1)return!1;for(o=this.pattern,p=this.requiredParams,c=0,h=p.length;h>c;c++)i=p[c],u=t[i],o=o.replace(RegExp("[:*]"+i,"g"),u);for(g=this.optionalParams,d=0,f=g.length;f>d;d++)i=g[d],(u=t[i])&&(o=o.replace(RegExp("[:*]"+i,"g"),u));return s=o.replace(n,function(t,e){return e.match(/[:*]/g)?"":e}),o=a(s,this.options.trailing),e?"object"==typeof e?(r=l.queryParams.stringify(e),o+=r?"?"+r:""):o+=("?"===e[0]?"":"?")+e:o},t.prototype.normalizeParams=function(t){var e,n,i,r,s,o;if(l.isArray(t)){if(t.length<this.requiredParams.length)return!1;for(i={},o=this.requiredParams,e=r=0,s=o.length;s>r;e=++r)n=o[e],i[n]=t[e];if(!this.testConstraints(i))return!1;t=i}else if(null==t&&(t={}),!this.testParams(t))return!1;return t},t.prototype.testConstraints=function(t){var e,n,i;if(n=this.options.constraints)for(i in n)if(d.call(n,i)&&(e=n[i],!e.test(t[i])))return!1;return!0},t.prototype.testParams=function(t){var e,n,i,r;for(r=this.requiredParams,n=0,i=r.length;i>n;n++)if(e=r[n],void 0===t[e])return!1;return this.testConstraints(t)},t.prototype.createRegExp=function(){var t,i=this;return t=this.pattern,t=t.replace(e,"\\$&"),this.replaceParams(t,function(t,e){return i.allParams.push(e)}),t=t.replace(n,this.parseOptionalPortion),t=this.replaceParams(t,function(t,e){return i.requiredParams.push(e),i.paramCapturePattern(t)}),this.regExp=RegExp("^"+t+"(?=\\/?(?=\\?|$))")},t.prototype.parseOptionalPortion=function(t,e){var n,i=this;return n=this.replaceParams(e,function(t,e){return i.optionalParams.push(e),i.paramCapturePattern(t)}),"(?:"+n+")?"},t.prototype.replaceParams=function(t,e){return t.replace(i,e)},t.prototype.paramCapturePattern=function(t){return":"===t.charAt(0)?"([^/?]+)":"(.*?)"},t.prototype.test=function(t){var e,n;return(n=this.regExp.test(t))?(e=this.options.constraints,e?this.testConstraints(this.extractParams(t)):!0):!1},t.prototype.handler=function(t,e){var n,i,r,s,o,c;return e=e?u.extend({},e):{},"object"==typeof t?(s=l.queryParams.stringify(e.query),i=t,r=this.reverse(i)):(c=t.split("?"),r=c[0],s=c[1],null==s?s="":e.query=l.queryParams.parse(s),i=this.extractParams(r),r=a(r,this.options.trailing)),n=u.extend({},i,this.options.params),o={path:r,action:this.action,controller:this.controller,name:this.name,query:s},this.publishEvent("router:match",o,n,e)},t.prototype.extractParams=function(t){var e,n,i,r,s,o,a,l;for(s={},i=this.regExp.exec(t),l=i.slice(1),e=o=0,a=l.length;a>o;e=++o)n=l[e],r=this.allParams.length?this.allParams[e]:e,s[r]=n;return s},t}()}),t.register("chaplin/lib/router",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d,h=function(t,e){return function(){return t.apply(e,arguments)}};d=t("underscore"),r=t("backbone"),u=t("chaplin/mediator"),s=t("chaplin/lib/event_broker"),o=t("chaplin/lib/history"),a=t("chaplin/lib/route"),c=t("chaplin/lib/utils"),i.exports=l=function(){function t(t){var e;this.options=null!=t?t:{},this.match=h(this.match,this),e="file:"!==window.location.protocol,d.defaults(this.options,{pushState:e,root:"/",trailing:!1}),this.removeRoot=new RegExp("^"+c.escapeRegExp(this.options.root)+"(#)?"),this.subscribeEvent("!router:route",this.oldEventError),this.subscribeEvent("!router:routeByName",this.oldEventError),this.subscribeEvent("!router:changeURL",this.oldURLEventError),this.subscribeEvent("dispatcher:dispatch",this.changeURL),u.setHandler("router:route",this.route,this),u.setHandler("router:reverse",this.reverse,this),this.createHistory()}return t.extend=r.Model.extend,d.extend(t.prototype,s),t.prototype.oldEventError=function(){throw new Error("!router:route and !router:routeByName events were removed.  Use `Chaplin.utils.redirectTo`")},t.prototype.oldURLEventError=function(){throw new Error("!router:changeURL event was removed.")},t.prototype.createHistory=function(){return r.history=new o},t.prototype.startHistory=function(){return r.history.start(this.options)},t.prototype.stopHistory=function(){return r.History.started?r.history.stop():void 0},t.prototype.findHandler=function(t){var e,n,i,s;for(s=r.history.handlers,n=0,i=s.length;i>n;n++)if(e=s[n],t(e))return e},t.prototype.match=function(t,e,n){var i,s,o,l;if(null==n&&(n={}),2===arguments.length&&"object"==typeof e){if(n=e,s=n.controller,i=n.action,!s||!i)throw new Error("Router#match must receive either target or options.controller & options.action")}else{if(s=n.controller,i=n.action,s||i)throw new Error("Router#match cannot use both target and options.controller / options.action");l=e.split("#"),s=l[0],i=l[1]}return d.defaults(n,{trailing:this.options.trailing}),o=new a(t,s,i,n),r.history.handlers.push({route:o,callback:o.handler}),o},t.prototype.route=function(t,e,n){var i,r;if("object"==typeof t&&(r=t.url,!e&&t.params&&(e=t.params)),e=e?c.isArray(e)?e.slice():d.extend({},e):{},null!=r?(r=r.replace(this.removeRoot,""),i=this.findHandler(function(t){return t.route.test(r)}),n=e,e=null):(n=n?d.extend({},n):{},i=this.findHandler(function(n){return n.route.matches(t)&&(e=n.route.normalizeParams(e))?!0:!1})),i)return d.defaults(n,{changeURL:!0}),i.callback(r||e,n),!0;throw new Error("Router#route: request was not routed")},t.prototype.reverse=function(t,e,n){var i,s,o,a,l,u,c;if(a=this.options.root,null!=e&&"object"!=typeof e)throw new TypeError("Router#reverse: params must be an array or an object");for(s=r.history.handlers,u=0,c=s.length;c>u;u++)if(i=s[u],i.route.matches(t)&&(o=i.route.reverse(e,n),o!==!1))return l=a?a+o:o;throw new Error("Router#reverse: invalid route specified")},t.prototype.changeURL=function(t,e,n,i){var s,o;if(null!=n.path&&i.changeURL)return o=n.path+(n.query?"?"+n.query:""),s={trigger:i.trigger===!0,replace:i.replace===!0},r.history.navigate(o,s)},t.prototype.disposed=!1,t.prototype.dispose=function(){return this.disposed?void 0:(this.stopHistory(),delete r.history,this.unsubscribeAllEvents(),u.removeHandlers(this),this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0)},t}()}),t.register("chaplin/lib/history",function(e,n,i){"use strict";var r,s,o,a,l,u,c,d={}.hasOwnProperty,h=function(t,e){function n(){this.constructor=t}for(var i in e)d.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};c=t("underscore"),r=t("backbone"),l=/^[#\/]|\s+$/g,a=/^\/+|\/+$/g,o=/msie [\w.]+/,u=/\/$/,s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.getFragment=function(t,e){var n;return null==t&&(this._hasPushState||!this._wantsHashChange||e?(t=this.location.pathname+this.location.search,n=this.root.replace(u,""),t.indexOf(n)||(t=t.substr(n.length))):t=this.getHash()),t.replace(l,"")},e.prototype.start=function(t){var e,n,i;if(r.History.started)throw new Error("Backbone.history has already been started");
return r.History.started=!0,this.options=c.extend({},{root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=Boolean(this.options.pushState),this._hasPushState=Boolean(this.options.pushState&&this.history&&this.history.pushState),n=this.getFragment(),this.root=("/"+this.root+"/").replace(a,"/"),this._hasPushState?r.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window?r.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n,i=this.location,e=i.pathname.replace(/[^\/]$/,"$&/")===this.root,this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!e?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&e&&i.hash&&(this.fragment=this.getHash().replace(l,""),this.history.replaceState({},document.title,this.root+this.fragment)),this.options.silent?void 0:this.loadUrl())},e.prototype.navigate=function(t,e){var n,i,s;if(null==t&&(t=""),!r.History.started)return!1;if(e&&e!==!0||(e={trigger:e}),t=this.getFragment(t),s=this.root+t,this.fragment===t)return!1;if(this.fragment=t,0===t.length&&"/"!==s&&(s=s.slice(0,-1)),this._hasPushState)n=e.replace?"replaceState":"pushState",this.history[n]({},document.title,s);else{if(!this._wantsHashChange)return this.location.assign(s);this._updateHash(this.location,t,e.replace),i=t!==this.getFragment(this.getHash(this.iframe)),null!=this.iframe&&i&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0},e}(r.History),i.exports=r.$?s:r.History}),t.register("chaplin/lib/event_broker",function(e,n,i){"use strict";var r,s,o=[].slice;s=t("chaplin/mediator"),r={subscribeEvent:function(t,e){if("string"!=typeof t)throw new TypeError("EventBroker#subscribeEvent: type argument must be a string");if("function"!=typeof e)throw new TypeError("EventBroker#subscribeEvent: handler argument must be a function");return s.unsubscribe(t,e,this),s.subscribe(t,e,this)},unsubscribeEvent:function(t,e){if("string"!=typeof t)throw new TypeError("EventBroker#unsubscribeEvent: type argument must be a string");if("function"!=typeof e)throw new TypeError("EventBroker#unsubscribeEvent: handler argument must be a function");return s.unsubscribe(t,e)},unsubscribeAllEvents:function(){return s.unsubscribe(null,null,this)},publishEvent:function(){var t,e;if(e=arguments[0],t=2<=arguments.length?o.call(arguments,1):[],"string"!=typeof e)throw new TypeError("EventBroker#publishEvent: type argument must be a string");return s.publish.apply(s,[e].concat(o.call(t)))}},"function"==typeof Object.freeze&&Object.freeze(r),i.exports=r}),t.register("chaplin/lib/support",function(t,e,n){"use strict";var i;i={propertyDescriptors:function(){var t;if("function"!=typeof Object.defineProperty||"function"!=typeof Object.defineProperties)return!1;try{return t={},Object.defineProperty(t,"foo",{value:"bar"}),"bar"===t.foo}catch(e){return!1}}()},n.exports=i}),t.register("chaplin/lib/composition",function(e,n,i){"use strict";var r,s,o,a,l,u={}.hasOwnProperty;l=t("underscore"),r=t("backbone"),o=t("chaplin/lib/event_broker"),a=Object.prototype.hasOwnProperty,i.exports=s=function(){function t(t){null!=t&&(this.options=l.extend({},t)),this.item=this,this.initialize(this.options)}return t.extend=r.Model.extend,l.extend(t.prototype,r.Events),l.extend(t.prototype,o),t.prototype.item=null,t.prototype.options=null,t.prototype._stale=!1,t.prototype.initialize=function(){},t.prototype.compose=function(){},t.prototype.check=function(t){return l.isEqual(this.options,t)},t.prototype.stale=function(t){var e,n;if(null==t)return this._stale;this._stale=t;for(n in this)e=this[n],e&&e!==this&&"object"==typeof e&&a.call(e,"stale")&&(e.stale=t)},t.prototype.disposed=!1,t.prototype.dispose=function(){var t,e,n,i,r;if(!this.disposed){for(e in this)u.call(this,e)&&(t=this[e],t&&"function"==typeof t.dispose&&t!==this&&(t.dispose(),delete this[e]));for(this.unsubscribeAllEvents(),this.stopListening(),n=["redirected"],i=0,r=n.length;r>i;i++)e=n[i],delete this[e];return this.disposed=!0,"function"==typeof Object.freeze?Object.freeze(this):void 0}},t}()}),t.register("chaplin/lib/sync_machine",function(t,e,n){"use strict";var i,r,s,o,a,l,u,c,d,h;for(a="unsynced",s="syncing",r="synced",i="syncStateChange",o={_syncState:a,_previousSyncState:null,syncState:function(){return this._syncState},isUnsynced:function(){return this._syncState===a},isSynced:function(){return this._syncState===r},isSyncing:function(){return this._syncState===s},unsync:function(){var t;((t=this._syncState)===s||t===r)&&(this._previousSync=this._syncState,this._syncState=a,this.trigger(this._syncState,this,this._syncState),this.trigger(i,this,this._syncState))},beginSync:function(){var t;((t=this._syncState)===a||t===r)&&(this._previousSync=this._syncState,this._syncState=s,this.trigger(this._syncState,this,this._syncState),this.trigger(i,this,this._syncState))},finishSync:function(){this._syncState===s&&(this._previousSync=this._syncState,this._syncState=r,this.trigger(this._syncState,this,this._syncState),this.trigger(i,this,this._syncState))},abortSync:function(){this._syncState===s&&(this._syncState=this._previousSync,this._previousSync=this._syncState,this.trigger(this._syncState,this,this._syncState),this.trigger(i,this,this._syncState))}},h=[a,s,r,i],u=function(t){return o[t]=function(e,n){return null==n&&(n=this),this.on(t,e,n),this._syncState===t?e.call(n):void 0}},c=0,d=h.length;d>c;c++)l=h[c],u(l);"function"==typeof Object.freeze&&Object.freeze(o),n.exports=o}),t.register("chaplin/lib/utils",function(e,n,i){"use strict";var r,s,o,a=[].slice,l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},u={}.hasOwnProperty;o=t("underscore"),r=t("chaplin/lib/support"),s={beget:function(){var t;return"function"==typeof Object.create?Object.create:(t=function(){},function(e){return t.prototype=e,new t})}(),indexOf:function(){return Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:o.indexOf?o.indexOf:void 0}(),isArray:Array.isArray||o.isArray,serialize:function(t){if("function"==typeof t.serialize)return t.serialize();if("function"==typeof t.toJSON)return t.toJSON();throw new TypeError("utils.serialize: Unknown data was passed")},readonly:function(){var t;return r.propertyDescriptors?(t={writable:!1,enumerable:!0,configurable:!1},function(){var e,n,i,r,s;for(e=arguments[0],i=2<=arguments.length?a.call(arguments,1):[],r=0,s=i.length;s>r;r++)n=i[r],t.value=e[n],Object.defineProperty(e,n,t);return!0}):function(){return!1}}(),getPrototypeChain:function(t){var e,n,i,r;for(e=[t.constructor.prototype];t=null!=(n=null!=(i=t.constructor)?i.__super__:void 0)?n:null!=(r=t.constructor)?r.superclass:void 0;)e.push(t);return e.reverse()},getAllPropertyVersions:function(t,e){var n,i,r,o,a,u;for(i=[],u=s.getPrototypeChain(t),o=0,a=u.length;a>o;o++)n=u[o],r=n[e],r&&l.call(i,r)<0&&i.push(r);return i},upcase:function(t){return t.charAt(0).toUpperCase()+t.substring(1)},escapeRegExp:function(t){return String(t||"").replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},modifierKeyPressed:function(t){return t.shiftKey||t.altKey||t.ctrlKey||t.metaKey},reverse:function(e,n,i){return t("chaplin/mediator").execute("router:reverse",e,n,i)},redirectTo:function(e,n,i){return t("chaplin/mediator").execute("router:route",e,n,i)},queryParams:{stringify:function(t){var e,n,i,r,o,a,l,c;r="",o=function(t,e){return null!=e?"&"+t+"="+encodeURIComponent(e):""};for(i in t)if(u.call(t,i))if(a=t[i],n=encodeURIComponent(i),s.isArray(a))for(l=0,c=a.length;c>l;l++)e=a[l],r+=o(n,e);else r+=o(n,a);return r&&r.substring(1)},parse:function(t){var e,n,i,r,s,o,a,l,u;if(s={},!t)return s;for(r=t.split("&"),a=0,l=r.length;l>a;a++)i=r[a],i.length&&(u=i.split("="),n=u[0],o=u[1],n.length&&(n=decodeURIComponent(n),o=decodeURIComponent(o),e=s[n],e?e.push?e.push(o):s[n]=[e,o]:s[n]=o));return s}}},"function"==typeof Object.seal&&Object.seal(s),i.exports=s}),t.register("chaplin",function(e,n,i){i.exports={Application:t("chaplin/application"),mediator:t("chaplin/mediator"),Dispatcher:t("chaplin/dispatcher"),Controller:t("chaplin/controllers/controller"),Composer:t("chaplin/composer"),Composition:t("chaplin/lib/composition"),Collection:t("chaplin/models/collection"),Model:t("chaplin/models/model"),Layout:t("chaplin/views/layout"),View:t("chaplin/views/view"),CollectionView:t("chaplin/views/collection_view"),Route:t("chaplin/lib/route"),Router:t("chaplin/lib/router"),EventBroker:t("chaplin/lib/event_broker"),support:t("chaplin/lib/support"),SyncMachine:t("chaplin/lib/sync_machine"),utils:t("chaplin/lib/utils")}});var e=function(e,n){t.register("backbone",function(t,n,i){i.exports=e}),t.register("underscore",function(t,e,i){i.exports=n})};if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(n,i){return e(n,i),t("chaplin")});else if("object"==typeof module&&module&&module.exports)e(require("backbone"),require("underscore")),module.exports=t("chaplin");else{if("function"!=typeof require)throw new Error("Chaplin requires Common.js or AMD modules");e(window.Backbone,window._||window.Backbone.utils),window.Chaplin=t("chaplin")}}(),function(){var t,e,n,i,r=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};"undefined"!=typeof window&&null!==window?window.Swag=n={}:"undefined"!=typeof module&&null!==module&&(module.exports=n={}),n.helpers={},n.addHelper=function(t,e){return n.helpers[t]=e},n.registerHelpers=function(t){var e,i,r,s;t?n.Handlebars=t:"undefined"!=typeof window&&null!==window?n.Handlebars=null!=window.Ember?Ember.Handlebars:window.Handlebars:"undefined"!=typeof module&&null!==module&&(n.Handlebars=require("handlebars")),n.registerHelper=function(t,e){return"undefined"!=typeof window&&null!==window&&window.Ember?n.Handlebars.helper(t,e):n.Handlebars.registerHelper(t,e)},r=n.helpers,s=[];for(i in r)e=r[i],s.push(n.registerHelper(i,e));return s},n.Config={partialsPath:"",precompiledTemplates:!0},i={},i.isHandlebarsSpecific=function(t){return t&&null!=t.fn||t&&null!=t.hash},i.isUndefined=function(t){return void 0===t||null===t||i.isHandlebarsSpecific(t)},i.safeString=function(t){return new n.Handlebars.SafeString(t)},i.trim=function(t){var e;return e=/\S/.test(" ")?/^[\s\xA0]+|[\s\xA0]+$/g:/^\s+|\s+$/g,t.toString().replace(e,"")},i.isFunc=function(t){return"function"==typeof t},i.isString=function(t){return"string"==typeof t},i.result=function(t){return i.isFunc(t)?t():t},i.err=function(t){throw new Error(t)},n.addHelper("lowercase",function(t){return i.isUndefined(t)?i.err("{{lowercase}} takes one argument (string)."):(t=i.result(t),t.toLowerCase())}),n.addHelper("uppercase",function(t){return i.isUndefined(t)?i.err("{{uppercase}} takes one argument (string)."):(t=i.result(t),t.toUpperCase())}),n.addHelper("capitalizeFirst",function(t){return i.isUndefined(t)?i.err("{{capitalizeFirst}} takes one argument (string)."):(t=i.result(t),t.charAt(0).toUpperCase()+t.slice(1))}),n.addHelper("capitalizeEach",function(t){return i.isUndefined(t)?i.err("{{capitalizeEach}} takes one argument (string)."):(t=i.result(t),t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1)}))}),n.addHelper("titleize",function(t){var e,n,r,s;return i.isUndefined(t)?i.err("{{titleize}} takes one argument (string)."):(t=i.result(t),n=t.replace(/[ \-_]+/g," "),s=n.match(/\w+/g),e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},function(){var t,n,i;for(i=[],t=0,n=s.length;n>t;t++)r=s[t],i.push(e(r));return i}().join(" "))}),n.addHelper("sentence",function(t){return i.isUndefined(t)?i.err("{{sentence}} takes one argument (string)."):(t=i.result(t),t.replace(/((?:\S[^\.\?\!]*)[\.\?\!]*)/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}),n.addHelper("reverse",function(t){return i.isUndefined(t)?i.err("{{reverse}} takes one argument (string)."):(t=i.result(t),t.split("").reverse().join(""))}),n.addHelper("truncate",function(t,e,n){return i.isUndefined(t)?i.err("{{truncate}} takes one argument (string)."):(t=i.result(t),i.isUndefined(n)&&(n=""),t.length>e?t.substring(0,e-n.length)+n:t)}),n.addHelper("center",function(t,e){var n,r;if(i.isUndefined(t)&&i.isUndefined(e))return i.err("{{center}} takes two arguments (string, number).");for(t=i.result(t),e=i.result(e),r="",n=0;e>n;)r+="&nbsp;",n++;return""+r+t+r}),n.addHelper("newLineToBr",function(t){return i.isUndefined(t)?i.err("{{newLineToBr}} takes one argument (string)."):(t=i.result(t),t.replace(/\r?\n|\r/g,"<br>"))}),n.addHelper("first",function(t,e){return i.isUndefined(t)?i.err("{{first}} takes at least one argument (array)."):(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),i.isUndefined(e)?t[0]:t.slice(0,e))}),n.addHelper("withFirst",function(t,e,n){var r,s;if(i.isUndefined(t))return i.err("{{withFirst}} takes at least one argument (array).");if(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),i.isUndefined(e))return n=e,n.fn(t[0]);t=t.slice(0,e),s="";for(r in t)s+=n.fn(t[r]);return s}),n.addHelper("last",function(t,e){return i.isUndefined(t)?i.err("{{last}} takes at least one argument (array)."):(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),i.isUndefined(e)?t[t.length-1]:t.slice(-e))}),n.addHelper("withLast",function(t,e,n){var r,s;if(i.isUndefined(t))return i.err("{{withLast}} takes at least one argument (array).");if(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),i.isUndefined(e))return n=e,n.fn(t[t.length-1]);t=t.slice(-e),s="";for(r in t)s+=n.fn(t[r]);return s}),n.addHelper("after",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{after}} takes two arguments (array, number)."):(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),t.slice(e))}),n.addHelper("withAfter",function(t,e,n){var r,s;if(i.isUndefined(t)&&i.isUndefined(e))return i.err("{{withAfter}} takes two arguments (array, number).");t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),t=t.slice(e),s="";for(r in t)s+=n.fn(t[r]);return s}),n.addHelper("before",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{before}} takes two arguments (array, number)."):(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),t.slice(0,-e))}),n.addHelper("withBefore",function(t,e,n){var r,s;if(i.isUndefined(t)&&i.isUndefined(e))return i.err("{{withBefore}} takes two arguments (array, number).");t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),t=t.slice(0,-e),s="";for(r in t)s+=n.fn(t[r]);return s}),n.addHelper("join",function(t,e){return i.isUndefined(t)?i.err("{{join}} takes at least one argument (array)."):(t=i.result(t),i.isUndefined(e)||(e=i.result(e)),t.join(i.isUndefined(e)?" ":e))}),n.addHelper("sort",function(t,e){return i.isUndefined(t)?i.err("{{sort}} takes at least one argument (array)."):(t=i.result(t),i.isUndefined(e)?t.sort():(e=i.result(e),t.sort(function(t,n){return t[e]>n[e]})))}),n.addHelper("withSort",function(t,e,n){var r,s,o,a;if(i.isUndefined(t))return i.err("{{withSort}} takes at least one argument (array).");if(t=i.result(t),s="",i.isUndefined(e))for(n=e,t=t.sort(),o=0,a=t.length;a>o;o++)r=t[o],s+=n.fn(r);else{e=i.result(e),t=t.sort(function(t,n){return t[e]>n[e]});for(r in t)s+=n.fn(t[r])}return s}),n.addHelper("length",function(t){return i.isUndefined(t)?i.err("{{length}} takes one argument (array)."):(t=i.result(t),t.length)}),n.addHelper("lengthEqual",function(t,e,n){return i.isUndefined(t)?i.err("{{lengthEqual}} takes two arguments (array, number)."):(t=i.result(t),i.isUndefined(e)||(e=parseFloat(i.result(e))),t.length===e?n.fn(this):n.inverse(this))}),n.addHelper("empty",function(t,e){return i.isHandlebarsSpecific(t)?i.err("{{empty}} takes one argument (array)."):(t=i.result(t),!t||t.length<=0?e.fn(this):e.inverse(this))}),n.addHelper("any",function(t,e){return i.isHandlebarsSpecific(t)?i.err("{{any}} takes one argument (array)."):(t=i.result(t),t&&t.length>0?e.fn(this):e.inverse(this))}),n.addHelper("inArray",function(t,e,n){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{inArray}} takes two arguments (array, string|number)."):(t=i.result(t),e=i.result(e),r.call(t,e)>=0?n.fn(this):n.inverse(this))}),n.addHelper("eachIndex",function(t,e){var n,r,s,o,a;if(i.isUndefined(t))return i.err("{{eachIndex}} takes one argument (array).");for(t=i.result(t),r="",n=o=0,a=t.length;a>o;n=++o)s=t[n],r+=e.fn({item:s,index:n});return r}),n.addHelper("eachProperty",function(t,e){var n,r,s;if(i.isUndefined(t))return i.err("{{eachProperty}} takes one argument (object).");t=i.result(t),r="";for(n in t)s=t[n],r+=e.fn({key:n,value:s});return r}),n.addHelper("add",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{add}} takes two arguments (number, number)."):(t=parseFloat(i.result(t)),e=parseFloat(i.result(e)),t+e)}),n.addHelper("subtract",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{subtract}} takes two arguments (number, number)."):(t=parseFloat(i.result(t)),e=parseFloat(i.result(e)),t-e)}),n.addHelper("divide",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{divide}} takes two arguments (number, number)."):(t=parseFloat(i.result(t)),e=parseFloat(i.result(e)),t/e)}),n.addHelper("multiply",function(t,e){return i.isUndefined(t)&&i.isUndefined(e)?i.err("{{multiply}} takes two arguments (number, number)."):(t=parseFloat(i.result(t)),e=parseFloat(i.result(e)),t*e)}),n.addHelper("floor",function(t){return i.isUndefined(t)?i.err("{{floor}} takes one argument (number)."):(t=parseFloat(i.result(t)),Math.floor(t))}),n.addHelper("ceil",function(t){return i.isUndefined(t)?i.err("{{ceil}} takes one argument (number)."):(t=parseFloat(i.result(t)),Math.ceil(t))}),n.addHelper("round",function(t){return i.isUndefined(t)?i.err("{{round}} takes one argument (number)."):(t=parseFloat(i.result(t)),Math.round(t))}),n.addHelper("toFixed",function(t,e){return i.isUndefined(t)?i.err("{{toFixed}} takes at least one argument (number)."):(t=parseFloat(i.result(t)),e=i.isUndefined(e)?0:i.result(e),t.toFixed(e))}),n.addHelper("toPrecision",function(t,e){return i.isUndefined(t)?i.err("{{toPrecision}} takes at least one argument (number)."):(t=parseFloat(i.result(t)),e=i.isUndefined(e)?1:i.result(e),t.toPrecision(e))}),n.addHelper("toExponential",function(t,e){return i.isUndefined(t)?i.err("{{toExponential}} takes at least one argument (number)."):(t=parseFloat(i.result(t)),e=i.isUndefined(e)?0:i.result(e),t.toExponential(e))}),n.addHelper("toInt",function(t){return i.isUndefined(t)?i.err("{{toInt}} takes one argument (number)."):(t=i.result(t),parseInt(t,10))}),n.addHelper("toFloat",function(t){return i.isUndefined(t)?i.err("{{toFloat}} takes one argument (number)."):(t=i.result(t),parseFloat(t))}),n.addHelper("digitGrouping",function(t,e){return i.isUndefined(t)?i.err("{{digitGrouping}} takes at least one argument (number)."):(t=parseFloat(i.result(t)),e=i.isUndefined(e)?",":i.result(e),t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+e))}),n.addHelper("is",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(t)?i.err("{{is}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t&&t===e?n.fn(this):n.inverse(this))}),n.addHelper("isnt",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{isnt}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t&&t===e?n.inverse(this):n.fn(this))}),n.addHelper("gt",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{gt}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t>e?n.fn(this):n.inverse(this))}),n.addHelper("gte",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{gte}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t>=e?n.fn(this):n.inverse(this))}),n.addHelper("lt",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{lt}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),e>t?n.fn(this):n.inverse(this))}),n.addHelper("lte",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{lte}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),e>=t?n.fn(this):n.inverse(this))}),n.addHelper("or",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{or}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t||e?n.fn(this):n.inverse(this))}),n.addHelper("and",function(t,e,n){return i.isHandlebarsSpecific(t)&&i.isHandlebarsSpecific(e)?i.err("{{and}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t&&e?n.fn(this):n.inverse(this))}),t={},t.padNumber=function(t,e,n){var i,r;if("undefined"==typeof n&&(n="0"),i=e-String(t).length,r="",i>0)for(;i--;)r+=n;return r+t},t.dayOfYear=function(t){var e;return e=new Date(t.getFullYear(),0,1),Math.ceil((t-e)/864e5)},t.weekOfYear=function(t){var e;return e=new Date(t.getFullYear(),0,1),Math.ceil(((t-e)/864e5+e.getDay()+1)/7)},t.isoWeekOfYear=function(t){var e,n,i,r;return r=new Date(t.valueOf()),n=(t.getDay()+6)%7,r.setDate(r.getDate()-n+3),i=new Date(r.getFullYear(),0,4),e=(r-i)/864e5,1+Math.ceil(e/7)},t.tweleveHour=function(t){return t.getHours()>12?t.getHours()-12:t.getHours()},t.timeZoneOffset=function(e){var n,i;return n=-e.getTimezoneOffset()/60,i=t.padNumber(Math.abs(n),4),(n>0?"+":"-")+i},t.format=function(e,n){return n.replace(t.formats,function(n,i){switch(i){case"a":return t.abbreviatedWeekdays[e.getDay()];case"A":return t.fullWeekdays[e.getDay()];case"b":return t.abbreviatedMonths[e.getMonth()];case"B":return t.fullMonths[e.getMonth()];case"c":return e.toLocaleString();case"C":return Math.round(e.getFullYear()/100);case"d":return t.padNumber(e.getDate(),2);case"D":return t.format(e,"%m/%d/%y");case"e":return t.padNumber(e.getDate(),2," ");case"F":return t.format(e,"%Y-%m-%d");case"h":return t.format(e,"%b");case"H":return t.padNumber(e.getHours(),2);case"I":return t.padNumber(t.tweleveHour(e),2);case"j":return t.padNumber(t.dayOfYear(e),3);case"k":return t.padNumber(e.getHours(),2," ");case"l":return t.padNumber(t.tweleveHour(e),2," ");case"L":return t.padNumber(e.getMilliseconds(),3);case"m":return t.padNumber(e.getMonth()+1,2);case"M":return t.padNumber(e.getMinutes(),2);case"n":return"\n";case"p":return e.getHours()>11?"PM":"AM";case"P":return t.format(e,"%p").toLowerCase();case"r":return t.format(e,"%I:%M:%S %p");case"R":return t.format(e,"%H:%M");case"s":return e.getTime()/1e3;case"S":return t.padNumber(e.getSeconds(),2);case"t":return"	";case"T":return t.format(e,"%H:%M:%S");case"u":return 0===e.getDay()?7:e.getDay();case"U":return t.padNumber(t.weekOfYear(e),2);case"v":return t.format(e,"%e-%b-%Y");case"V":return t.padNumber(t.isoWeekOfYear(e),2);case"W":return t.padNumber(t.weekOfYear(e),2);case"w":return t.padNumber(e.getDay(),2);case"x":return e.toLocaleDateString();case"X":return e.toLocaleTimeString();case"y":return String(e.getFullYear()).substring(2);case"Y":return e.getFullYear();case"z":return t.timeZoneOffset(e);default:return match}})},t.formats=/%(a|A|b|B|c|C|d|D|e|F|h|H|I|j|k|l|L|m|M|n|p|P|r|R|s|S|t|T|u|U|v|V|W|w|x|X|y|Y|z)/g,t.abbreviatedWeekdays=["Sun","Mon","Tue","Wed","Thur","Fri","Sat"],t.fullWeekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t.abbreviatedMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t.fullMonths=["January","February","March","April","May","June","July","August","September","October","November","December"],n.addHelper("formatDate",function(e,n){return i.isUndefined(e)?i.err("{{formatDate}} takes two arguments (string|number|date, string)."):(e=i.result(e),n=i.result(n),e=new Date(e),t.format(e,n))}),n.addHelper("now",function(e){var n;return i.isUndefined(e)||(e=i.result(e)),n=new Date,i.isUndefined(e)?n:t.format(n,e)}),n.addHelper("timeago",function(t){var e,n;return i.isUndefined(t)?i.err("{{timeago}} takes one argument (string|number|date)."):(t=i.result(t),t=new Date(t),n=Math.floor((new Date-t)/1e3),e=Math.floor(n/31536e3),e>1?""+e+" years ago":(e=Math.floor(n/2592e3),e>1?""+e+" months ago":(e=Math.floor(n/86400),e>1?""+e+" days ago":(e=Math.floor(n/3600),e>1?""+e+" hours ago":(e=Math.floor(n/60),e>1?""+e+" minutes ago":0===Math.floor(n)?"Just now":Math.floor(n)+" seconds ago")))))}),n.addHelper("inflect",function(t,e,n,r){var s;return i.isUndefined(t)&&i.isUndefined(e)&&i.isUndefined(n)?i.err("{{inflect}} takes at least three arguments (number, string, string)."):(t=parseFloat(i.result(t)),e=i.result(e),n=i.result(n),s=t>1||0===t?n:e,i.isUndefined(r)||r===!1?s:""+t+" "+s)}),n.addHelper("ordinalize",function(t){var e,n;if(i.isUndefined(t))return i.err("{{ordinalize}} takes one arguments (number).");if(t=parseFloat(i.result(t)),e=Math.abs(Math.round(t)),n=e%100,r.call([11,12,13],n)>=0)return""+t+"th";switch(e%10){case 1:return""+t+"st";case 2:return""+t+"nd";case 3:return""+t+"rd";default:return""+t+"th"}}),e={},e.parseAttributes=function(t){return Object.keys(t).map(function(e){return""+e+'="'+t[e]+'"'}).join(" ")},n.addHelper("ul",function(t,n){return"<ul "+e.parseAttributes(n.hash)+">"+t.map(function(t){return"<li>"+n.fn(i.result(t))+"</li>"}).join("\n")+"</ul>"}),n.addHelper("ol",function(t,n){return"<ol "+e.parseAttributes(n.hash)+">"+t.map(function(t){return"<li>"+n.fn(i.result(t))+"</li>"}).join("\n")+"</ol>"}),n.addHelper("br",function(t){var e,n;if(e="<br>",!i.isUndefined(t))for(n=0,t=i.result(t);n<parseFloat(t)-1;)e+="<br>",n++;return i.safeString(e)}),n.addHelper("log",function(t){return i.isUndefined(t)?i.err("{{log}} takes one arguments (string|number|boolean|array|object)."):(t=i.result(t),console.log(t))}),n.addHelper("debug",function(t){return i.isUndefined(t)||(t=i.result(t)),console.log("Context: ",this),i.isUndefined(t)||console.log("Value: ",t),console.log("-----------------------------------------------")}),n.addHelper("default",function(t,e){return i.isHandlebarsSpecific(t)&&i.isUndefined(e)?i.err("{{default}} takes two arguments (string|number, string|number)."):(t=i.result(t),e=i.result(e),t||e)}),n.addHelper("partial",function(t,e,r){var s;return i.isUndefined(t)?i.err("{{partial}} takes at least one argument (string)."):(t=i.result(t),e=i.result(e),s=n.Config.partialsPath+t,i.isUndefined(r)||(r=i.result(r)),null==n.Handlebars.partials[t]&&(i.isUndefined(r)?"undefined"!=typeof define&&null!==define&&i.isFunc(define)&&define.amd?(n.Config.precompiledTemplates||(s="!text"+s),require([s],function(e){return i.isString(e)&&(e=n.Handlebars.compile(e)),n.Handlebars.registerPartial(t,e)})):"undefined"!=typeof require&&null!==require?(r=require(s),i.isString(r)&&(r=n.Handlebars.compile(r)),n.Handlebars.registerPartial(t,r)):i.err("{{partial}} no amd or commonjs module support found."):(i.isString(r)&&(r=n.Handlebars.compile(r)),n.Handlebars.registerPartial(t,r))),i.safeString(n.Handlebars.partials[t](e)))})}.call(this),function(t){if("function"==typeof require&&"object"==typeof exports&&"object"==typeof module){var e=require("jquery");module.exports=t(e)}else if("function"==typeof define&&define.amd)define(["jquery"],function(e){return t(e)});else{var n=(!1||eval)("this");n.deparam=t(jQuery)}}(function(t){return function(e,n){var i={},r={"true":!0,"false":!1,"null":null};return t.each(e.replace(/\+/g," ").split("&"),function(e,s){var o,a=s.split("="),l=decodeURIComponent(a[0]),u=i,c=0,d=l.split("]["),h=d.length-1;if(/\[/.test(d[0])&&/\]$/.test(d[h])?(d[h]=d[h].replace(/\]$/,""),d=d.shift().split("[").concat(d),h=d.length-1):h=0,2===a.length)if(o=decodeURIComponent(a[1]),n&&(o=o&&!isNaN(o)?+o:"undefined"===o?void 0:void 0!==r[o]?r[o]:o),h)for(;h>=c;c++)l=""===d[c]?u.length:d[c],u=u[l]=h>c?u[l]||(d[c+1]&&isNaN(d[c+1])?{}:[]):o;else t.isArray(i[l])?i[l].push(o):i[l]=void 0!==i[l]?[i[l],o]:o;else l&&(i[l]=n?void 0:"")}),i}}),function(t){"use strict";for(var e,n,i={},r=function(){},s="memory".split(","),o="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(",");e=s.pop();)t[e]=t[e]||i;for(;n=o.pop();)t[n]=t[n]||r}(this.console=this.console||{});var Handlebars={};!function(t,e){t.VERSION="1.0.0",t.COMPILER_REVISION=4,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"},t.helpers={},t.partials={};var n=Object.prototype.toString,i="[object Function]",r="[object Object]";t.registerHelper=function(e,i,s){if(n.call(e)===r){if(s||i)throw new t.Exception("Arg not supported with multiple helpers");t.Utils.extend(this.helpers,e)}else s&&(i.not=s),this.helpers[e]=i},t.registerPartial=function(e,i){n.call(e)===r?t.Utils.extend(this.partials,e):this.partials[e]=i},t.registerHelper("helperMissing",function(t){if(2===arguments.length)return e;throw new Error("Missing helper: '"+t+"'")}),t.registerHelper("blockHelperMissing",function(e,r){var s=r.inverse||function(){},o=r.fn,a=n.call(e);return a===i&&(e=e.call(this)),e===!0?o(this):e===!1||null==e?s(this):"[object Array]"===a?e.length>0?t.helpers.each(e,r):s(this):o(e)}),t.K=function(){},t.createFrame=Object.create||function(e){t.K.prototype=e;var n=new t.K;return t.K.prototype=null,n},t.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(e,n){if(t.logger.level<=e){var i=t.logger.methodMap[e];"undefined"!=typeof console&&console[i]&&console[i].call(console,n)}}},t.log=function(e,n){t.logger.log(e,n)},t.registerHelper("each",function(e,r){var s,o=r.fn,a=r.inverse,l=0,u="",c=n.call(e);if(c===i&&(e=e.call(this)),r.data&&(s=t.createFrame(r.data)),e&&"object"==typeof e)if(e instanceof Array)for(var d=e.length;d>l;l++)s&&(s.index=l),u+=o(e[l],{data:s});else for(var h in e)e.hasOwnProperty(h)&&(s&&(s.key=h),u+=o(e[h],{data:s}),l++);return 0===l&&(u=a(this)),u}),t.registerHelper("if",function(e,r){var s=n.call(e);return s===i&&(e=e.call(this)),!e||t.Utils.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers["if"].call(this,e,{fn:n.inverse,inverse:n.fn})}),t.registerHelper("with",function(e,r){var s=n.call(e);return s===i&&(e=e.call(this)),t.Utils.isEmpty(e)?void 0:r.fn(e)}),t.registerHelper("log",function(e,n){var i=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;t.log(i,e)});var s=["description","fileName","lineNumber","message","name","number","stack"];t.Exception=function(){for(var t=Error.prototype.constructor.apply(this,arguments),e=0;e<s.length;e++)this[s[e]]=t[s[e]]},t.Exception.prototype=new Error,t.SafeString=function(t){this.string=t},t.SafeString.prototype.toString=function(){return this.string.toString()};var o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},a=/[&<>"'`]/g,l=/[&<>"'`]/,u=function(t){return o[t]||"&amp;"};t.Utils={extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},escapeExpression:function(e){return e instanceof t.SafeString?e.toString():null==e||e===!1?"":(e=e.toString(),l.test(e)?e.replace(a,u):e)},isEmpty:function(t){return t||0===t?"[object Array]"===n.call(t)&&0===t.length?!0:!1:!0}},t.VM={template:function(e){var n={escapeExpression:t.Utils.escapeExpression,invokePartial:t.VM.invokePartial,programs:[],program:function(e,n,i){var r=this.programs[e];return i?r=t.VM.program(e,n,i):r||(r=this.programs[e]=t.VM.program(e,n)),r},merge:function(e,n){var i=e||n;return e&&n&&(i={},t.Utils.extend(i,n),t.Utils.extend(i,e)),i},programWithDepth:t.VM.programWithDepth,noop:t.VM.noop,compilerInfo:null};return function(i,r){r=r||{};var s=e.call(n,t,i,r.helpers,r.partials,r.data),o=n.compilerInfo||[],a=o[0]||1,l=t.COMPILER_REVISION;
if(a!==l){if(l>a){var u=t.REVISION_CHANGES[l],c=t.REVISION_CHANGES[a];throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+u+") or downgrade your runtime to an older version ("+c+")."}throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+o[1]+")."}return s}},programWithDepth:function(t,e,n){var i=Array.prototype.slice.call(arguments,3),r=function(t,r){return r=r||{},e.apply(this,[t,r.data||n].concat(i))};return r.program=t,r.depth=i.length,r},program:function(t,e,n){var i=function(t,i){return i=i||{},e(t,i.data||n)};return i.program=t,i.depth=0,i},noop:function(){return""},invokePartial:function(n,i,r,s,o,a){var l={helpers:s,partials:o,data:a};if(n===e)throw new t.Exception("The partial "+i+" could not be found");if(n instanceof Function)return n(r,l);if(t.compile)return o[i]=t.compile(n,{data:a!==e}),o[i](r,l);throw new t.Exception("The partial "+i+" could not be compiled when running in runtime-only mode")}},t.template=t.VM.template}(Handlebars),function(t,e,n){"use strict";Foundation.libs.abide={name:"abide",version:"4.3.2",settings:{live_validate:!0,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(e,n,i){return"object"==typeof n&&t.extend(!0,this.settings,n),"string"==typeof n?this[n].call(this,i):(this.settings.init||this.events(),void 0)},events:function(){var e=this,n=t("form[data-abide]",this.scope).attr("novalidate","novalidate");n.on("submit validate",function(n){return e.validate(t(this).find("input, textarea, select").get(),n)}),this.settings.init=!0,this.settings.live_validate&&n.find("input, textarea, select").on("blur change",function(t){e.validate([this],t)}).on("keydown",function(t){clearTimeout(e.timer),e.timer=setTimeout(function(){e.validate([this],t)}.bind(this),e.settings.timeout)})},validate:function(e,n){for(var i=this.parse_patterns(e),r=i.length,s=t(e[0]).closest("form"),o=0;r>o;o++)if(!i[o]&&/submit/.test(n.type))return this.settings.focus_on_invalid&&e[o].focus(),s.trigger("invalid"),t(e[o]).closest("form").attr("data-invalid",""),!1;return/submit/.test(n.type)&&s.trigger("valid"),s.removeAttr("data-invalid"),!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=[],r=n-1;r>=0;r--){var s=e[r][0],o=e[r][2],a=s.value,l="radio"===s.type,u=o?s.value.length>0:!0;l&&o?i.push(this.valid_radio(s,o)):e[r][1].test(a)&&u||!o&&s.value.length<1?(t(s).removeAttr("data-invalid").parent().removeClass("error"),i.push(!0)):(t(s).attr("data-invalid","").parent().addClass("error"),i.push(!1))}return i},valid_radio:function(e){for(var i=e.getAttribute("name"),r=n.getElementsByName(i),s=r.length,o=!1,a=0;s>a;a++)r[a].checked&&(o=!0);for(var a=0;s>a;a++)o?t(r[a]).removeAttr("data-invalid").parent().removeClass("error"):t(r[a]).attr("data-invalid","").parent().addClass("error");return o}}}(Foundation.zj,this,this.document),function(t,e,n){"use strict";Foundation.libs.interchange={name:"interchange",version:"4.2.4",cache:{},images_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",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(t,e){if(/IMG/.test(t[0].nodeName)){var n=t[0].src;if(new RegExp(e,"i").test(n))return;return t[0].src=e,t.trigger("replace",[t[0].src,n])}}}},init:function(e,n,i){return Foundation.inherit(this,"throttle"),"object"==typeof n&&t.extend(!0,this.settings,n),this.events(),this.images(),"string"!=typeof n?this.settings.init:this[n].call(this,i)},events:function(){var n=this;t(e).on("resize.fndtn.interchange",n.throttle(function(){n.resize.call(n)},50))},resize:function(){var e=this.cache;if(!this.images_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])}},results:function(e,n){var i=n.length;if(i>0)for(var r=t('[data-uuid="'+e+'"]'),s=i-1;s>=0;s--){var o,a=n[s][2];if(o=this.settings.named_queries.hasOwnProperty(a)?matchMedia(this.settings.named_queries[a]):matchMedia(a),o.matches)return{el:r,scenario:n[s]}}return!1},images:function(t){return"undefined"==typeof this.cached_images||t?this.update_images():this.cached_images},update_images:function(){var e=n.getElementsByTagName("img"),i=e.length,r=0,s="data-"+this.settings.load_attr;this.cached_images=[],this.images_loaded=!1;for(var o=i-1;o>=0;o--)this.loaded(t(e[o]),function(t){if(r++,t){var e=t.getAttribute(s)||"";e.length>0&&this.cached_images.push(t)}r===i&&(this.images_loaded=!0,this.enhance())}.bind(this));return"deferred"},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)},enhance:function(){for(var n=this.images().length,i=n-1;i>=0;i--)this._object(t(this.images()[i]));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 r=i-1;r>=0;r--){var s=e[r].split(/\((.*?)(\))$/);if(s.length>1){var o=s[0].split(","),a=this.parse_params(o[0],o[1],s[1]);n.push(a)}}return this.store(t,n)},uuid:function(t){function e(){return(0|65536*(1+Math.random())).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=[],r=n-1;r>=0;r--)e[r].replace(/[\W\d]+/,"").length>4&&i.push(e[r]);return i},reflow:function(){this.images(!0)}}}(Foundation.zj,this,this.document),function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i}function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t}function n(t,e,n,i){var r=["opacity",e,~~(100*t),n,i].join("-"),s=.01+100*(n/i),o=Math.max(1-(1-t)/e*(100-s),t),a=u.substring(0,u.indexOf("Animation")).toLowerCase(),l=a&&"-"+a+"-"||"";return d[r]||(h.insertRule("@"+l+"keyframes "+r+"{"+"0%{opacity:"+o+"}"+s+"%{opacity:"+t+"}"+(s+.01)+"%{opacity:1}"+(s+e)%100+"%{opacity:"+t+"}"+"100%{opacity:"+o+"}"+"}",h.cssRules.length),d[r]=1),r}function i(t,e){var n,i,r=t.style;if(void 0!==r[e])return e;for(e=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<c.length;i++)if(n=c[i]+e,void 0!==r[n])return n}function r(t,e){for(var n in e)t.style[i(t,n)||n]=e[n];return t}function s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)void 0===t[i]&&(t[i]=n[i])}return t}function o(t){for(var e={x:t.offsetLeft,y:t.offsetTop};t=t.offsetParent;)e.x+=t.offsetLeft,e.y+=t.offsetTop;return e}function a(t){return"undefined"==typeof this?new a(t):(this.opts=s(t||{},a.defaults,f),void 0)}function l(){function n(e,n){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}h.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,i){function s(){return r(n("group",{coordsize:u+" "+u,coordorigin:-l+" "+-l}),{width:u,height:u})}function o(t,o,a){e(d,e(r(s(),{rotation:360/i.lines*t+"deg",left:~~o}),e(r(n("roundrect",{arcsize:i.corners}),{width:l,height:i.width,left:i.radius,top:-i.width>>1,filter:a}),n("fill",{color:i.color,opacity:i.opacity}),n("stroke",{opacity:0}))))}var a,l=i.length+i.width,u=2*l,c=2*-(i.width+i.length)+"px",d=r(s(),{position:"absolute",top:c,left:c});if(i.shadow)for(a=1;a<=i.lines;a++)o(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=i.lines;a++)o(a);return e(t,d)},a.prototype.opacity=function(t,e,n,i){var r=t.firstChild;i=i.shadow&&i.lines||0,r&&e+i<r.childNodes.length&&(r=r.childNodes[e+i],r=r&&r.firstChild,r=r&&r.firstChild,r&&(r.opacity=n))}}var u,c=["webkit","Moz","ms","O"],d={},h=function(){var n=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};a.defaults={},s(a.prototype,{spin:function(e){this.stop();var n,i,s=this,a=s.opts,l=s.el=r(t(0,{className:a.className}),{position:a.position,width:0,zIndex:a.zIndex}),c=a.radius+a.length+a.width;if(e&&(e.insertBefore(l,e.firstChild||null),i=o(e),n=o(l),r(l,{left:("auto"==a.left?i.x-n.x+(e.offsetWidth>>1):parseInt(a.left,10)+c)+"px",top:("auto"==a.top?i.y-n.y+(e.offsetHeight>>1):parseInt(a.top,10)+c)+"px"})),l.setAttribute("role","progressbar"),s.lines(l,s.opts),!u){var d,h=0,f=(a.lines-1)*(1-a.direction)/2,p=a.fps,g=p/a.speed,m=(1-a.opacity)/(g*a.trail/100),v=g/a.lines;!function y(){h++;for(var t=0;t<a.lines;t++)d=Math.max(1-(h+(a.lines-t)*v)%g*m,a.opacity),s.opacity(l,t*a.direction+f,d,a);s.timeout=s.el&&setTimeout(y,~~(1e3/p))}()}return s},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,s){function o(e,n){return r(t(),{position:"absolute",width:s.length+s.width+"px",height:s.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/s.lines*l+s.rotate)+"deg) translate("+s.radius+"px"+",0)",borderRadius:(s.corners*s.width>>1)+"px"})}for(var a,l=0,c=(s.lines-1)*(1-s.direction)/2;l<s.lines;l++)a=r(t(),{position:"absolute",top:1+~(s.width/2)+"px",transform:s.hwaccel?"translate3d(0,0,0)":"",opacity:s.opacity,animation:u&&n(s.opacity,s.trail,c+l*s.direction,s.lines)+" "+1/s.speed+"s linear infinite"}),s.shadow&&e(a,r(o("#000","0 0 4px #000"),{top:"2px"})),e(i,e(a,o(s.color,"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var p=r(t("group"),{behavior:"url(#default#VML)"});return!i(p,"transform")&&p.adj?l():u=i(p,"animation"),a});