Antikythera/js/st.js

82 lines
406 KiB
JavaScript

!function(){"use strict";window.__st_moment=window.moment,window.__st_rome=window.rome}(),/*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
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=rt.type(t);return"function"!==n&&!rt.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(rt.isFunction(e))return rt.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return rt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ht.test(e))return rt.filter(e,t,n);e=rt.filter(e,t)}return rt.grep(t,function(t){return rt.inArray(t,e)>=0!==n})}function r(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function o(t){var e=vt[t]={};return rt.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}function s(){dt.addEventListener?(dt.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1)):(dt.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(dt.addEventListener||"load"===event.type||"complete"===dt.readyState)&&(s(),rt.ready())}function l(t,e,n){if(n===undefined&&1===t.nodeType){var i="data-"+e.replace(Tt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:xt.test(n)?rt.parseJSON(n):n)}catch(t){}rt.data(t,e,n)}else n=undefined}return n}function u(t){var e;for(e in t)if(("data"!==e||!rt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,n,i){if(rt.acceptData(t)){var r,o,s=rt.expando,a=t.nodeType,l=a?rt.cache:t,u=a?t[s]:t[s]&&s;if(u&&l[u]&&(i||l[u].data)||n!==undefined||"string"!=typeof e)return u||(u=a?t[s]=Y.pop()||rt.guid++:s),l[u]||(l[u]=a?{}:{toJSON:rt.noop}),"object"!=typeof e&&"function"!=typeof e||(i?l[u]=rt.extend(l[u],e):l[u].data=rt.extend(l[u].data,e)),o=l[u],i||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[rt.camelCase(e)]=n),"string"==typeof e?null==(r=o[e])&&(r=o[rt.camelCase(e)]):r=o,r}}function p(t,e,n){if(rt.acceptData(t)){var i,r,o=t.nodeType,s=o?rt.cache:t,a=o?t[rt.expando]:rt.expando;if(s[a]){if(e&&(i=n?s[a]:s[a].data)){rt.isArray(e)?e=e.concat(rt.map(e,rt.camelCase)):e in i?e=[e]:(e=rt.camelCase(e),e=e in i?[e]:e.split(" ")),r=e.length;for(;r--;)delete i[e[r]];if(n?!u(i):!rt.isEmptyObject(i))return}(n||(delete s[a].data,u(s[a])))&&(o?rt.cleanData([t],!0):nt.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}function h(){return!0}function f(){return!1}function d(){try{return dt.activeElement}catch(t){}}function y(t){var e=Lt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){var n,i,r=0,o=typeof t.getElementsByTagName!==St?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==St?t.querySelectorAll(e||"*"):undefined;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||rt.nodeName(i,e)?o.push(i):rt.merge(o,m(i,e));return e===undefined||e&&rt.nodeName(t,e)?rt.merge([t],o):o}function g(t){Rt.test(t.type)&&(t.defaultChecked=t.checked)}function _(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function v(t){return t.type=(null!==rt.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=zt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){for(var n,i=0;null!=(n=t[i]);i++)rt._data(n,"globalEval",!e||rt._data(e[i],"globalEval"))}function S(t,e){if(1===e.nodeType&&rt.hasData(t)){var n,i,r,o=rt._data(t),s=rt._data(e,o),a=o.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,r=a[n].length;i<r;i++)rt.event.add(e,n,a[n][i])}s.data&&(s.data=rt.extend({},s.data))}}function x(t,e){var n,i,r;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!nt.noCloneEvent&&e[rt.expando]){r=rt._data(e);for(i in r.events)rt.removeEvent(e,i,r.handle);e.removeAttribute(rt.expando)}"script"===n&&e.text!==t.text?(v(e).text=t.text,w(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),nt.html5Clone&&t.innerHTML&&!rt.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Rt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function T(e,n){var i,r=rt(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(r[0]))?i.display:rt.css(r[0],"display");return r.detach(),o}function C(t){var e=dt,n=Xt[t];return n||(n=T(t,e),"none"!==n&&n||(Jt=(Jt||rt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Jt[0].contentWindow||Jt[0].contentDocument).document,e.write(),e.close(),n=T(t,e),Jt.detach()),Xt[t]=n),n}function D(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function F(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=pe.length;r--;)if((e=pe[r]+n)in t)return e;return i}function I(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)i=t[s],i.style&&(o[s]=rt._data(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&Ft(i)&&(o[s]=rt._data(i,"olddisplay",C(i.nodeName)))):(r=Ft(i),(n&&"none"!==n||!r)&&rt._data(i,"olddisplay",r?n:rt.css(i,"display"))));for(s=0;s<a;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function R(t,e,n){var i=ae.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function M(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=rt.css(t,n+Dt[o],!0,r)),i?("content"===n&&(s-=rt.css(t,"padding"+Dt[o],!0,r)),"margin"!==n&&(s-=rt.css(t,"border"+Dt[o]+"Width",!0,r))):(s+=rt.css(t,"padding"+Dt[o],!0,r),"padding"!==n&&(s+=rt.css(t,"border"+Dt[o]+"Width",!0,r)));return s}function E(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Zt(t),s=nt.boxSizing&&"border-box"===rt.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(r=te(t,e,o),(r<0||null==r)&&(r=t.style[e]),ne.test(r))return r;i=s&&(nt.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+M(t,e,n||(s?"border":"content"),i,o)+"px"}function A(t,e,n,i,r){return new A.prototype.init(t,e,n,i,r)}function O(){return setTimeout(function(){he=undefined}),he=rt.now()}function k(t,e){var n,i={height:t},r=0;for(e=e?1:0;r<4;r+=2-e)n=Dt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function L(t,e,n){for(var i,r=(_e[e]||[]).concat(_e["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function Q(t,e,n){var i,r,o,s,a,l,u,c=this,p={},h=t.style,f=t.nodeType&&Ft(t),d=rt._data(t,"fxshow");n.queue||(a=rt._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--,rt.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=rt.css(t,"display"),"inline"===("none"===u?rt._data(t,"olddisplay")||C(t.nodeName):u)&&"none"===rt.css(t,"float")&&(nt.inlineBlockNeedsLayout&&"inline"!==C(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",nt.shrinkWrapBlocks()||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],de.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!d||d[i]===undefined)continue;f=!0}p[i]=d&&d[i]||rt.style(t,i)}else u=undefined;if(rt.isEmptyObject(p))"inline"===("none"===u?C(t.nodeName):u)&&(h.display=u);else{d?"hidden"in d&&(f=d.hidden):d=rt._data(t,"fxshow",{}),o&&(d.hidden=!f),f?rt(t).show():c.done(function(){rt(t).hide()}),c.done(function(){var e;rt._removeData(t,"fxshow");for(e in p)rt.style(t,e,p[e])});for(i in p)s=L(f?d[i]:0,i,c),i in d||(d[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function N(t,e){var n,i,r,o,s;for(n in t)if(i=rt.camelCase(n),r=e[i],o=t[n],rt.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=rt.cssHooks[i])&&"expand"in s){o=s.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function j(t,e,n){var i,r,o=0,s=ge.length,a=rt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=he||O(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,o=1-i,s=0,l=u.tweens.length;s<l;s++)u.tweens[s].run(o);return a.notifyWith(t,[u,o,n]),o<1&&l?n:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:rt.extend({},e),opts:rt.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:he||O(),duration:n.duration,tweens:[],createTween:function(e,n){var i=rt.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;n<i;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;o++)if(i=ge[o].call(u,t,c,u.opts))return i;return rt.map(c,L,u),rt.isFunction(u.opts.start)&&u.opts.start.call(t,u),rt.fx.timer(rt.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 $(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(_t)||[];if(rt.isFunction(n))for(;i=o[r++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function P(t,e,n,i){function r(a){var l;return o[a]=!0,rt.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var o={},s=t===Ue;return r(e.dataTypes[0])||!o["*"]&&r("*")}function q(t,e){var n,i,r=rt.ajaxSettings.flatOptions||{};for(i in e)e[i]!==undefined&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&rt.extend(!0,t,n),t}function U(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),r===undefined&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(s in a)if(a[s]&&a[s].test(r)){l.unshift(s);break}if(l[0]in n)o=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}i||(i=s)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}function B(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if(a=r.split(" "),a[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){s===!0?s=u[r]:u[r]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function H(t,e,n,i){var r;if(rt.isArray(e))rt.each(e,function(e,r){n||Ve.test(t)?i(t,r):H(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==rt.type(e))i(t,e);else for(r in e)H(t+"["+r+"]",e[r],n,i)}function V(){try{return new t.XMLHttpRequest}catch(t){}}function z(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function W(t){return rt.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var Y=[],G=Y.slice,K=Y.concat,J=Y.push,X=Y.indexOf,Z={},tt=Z.toString,et=Z.hasOwnProperty,nt={},it="1.11.1",rt=function(t,e){return new rt.fn.init(t,e)},ot=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,at=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};rt.fn=rt.prototype={jquery:it,constructor:rt,selector:"",length:0,toArray:function(){return G.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:G.call(this)},pushStack:function(t){var e=rt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return rt.each(this,t,e)},map:function(t){return this.pushStack(rt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:J,sort:Y.sort,splice:Y.splice},rt.extend=rt.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||rt.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(r=arguments[a]))for(i in r)t=s[i],n=r[i],s!==n&&(u&&n&&(rt.isPlainObject(n)||(e=rt.isArray(n)))?(e?(e=!1,o=t&&rt.isArray(t)?t:[]):o=t&&rt.isPlainObject(t)?t:{},s[i]=rt.extend(u,o,n)):n!==undefined&&(s[i]=n));return s},rt.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===rt.type(t)},isArray:Array.isArray||function(t){return"array"===rt.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!rt.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==rt.type(t)||t.nodeType||rt.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(nt.ownLast)for(e in t)return et.call(t,e);for(e in t);return e===undefined||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Z[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&rt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(at,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r=0,o=t.length,s=n(t);if(i){if(s)for(;r<o&&e.apply(t[r],i)!==!1;r++);else for(r in t)if(e.apply(t[r],i)===!1)break}else if(s)for(;r<o&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ot,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?rt.merge(i,"string"==typeof t?[t]:t):J.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(X)return X.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;)t[r++]=e[i++];if(n!==n)for(;e[i]!==undefined;)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,i){var r,o=0,s=t.length,a=n(t),l=[];if(a)for(;o<s;o++)null!=(r=e(t[o],o,i))&&l.push(r);else for(o in t)null!=(r=e(t[o],o,i))&&l.push(r);return K.apply([],l)},guid:1,proxy:function(t,e){var n,i,r;return"string"==typeof e&&(r=t[e],e=t,t=r),rt.isFunction(t)?(n=G.call(arguments,2),i=function(){return t.apply(e||this,n.concat(G.call(arguments)))},i.guid=t.guid=t.guid||rt.guid++,i):undefined},now:function(){return+new Date},support:nt}),rt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Z["[object "+e+"]"]=e.toLowerCase()});var ut=/*!
* Sizzle CSS Selector Engine v1.10.19
* http://sizzlejs.com/
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-04-18
*/
function(t){function e(t,e,n,i){var r,o,s,a,l,u,p,f,d,y;if((e?e.ownerDocument||e:P)!==A&&E(e),e=e||A,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(k&&!i){if(r=_t.exec(t))if(s=r[1]){if(9===a){if(!(o=e.getElementById(s))||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&j(e,o)&&o.id===s)return n.push(o),n}else{if(r[2])return Z.apply(n,e.getElementsByTagName(t)),n;if((s=r[3])&&b.getElementsByClassName&&e.getElementsByClassName)return Z.apply(n,e.getElementsByClassName(s)),n}if(b.qsa&&(!L||!L.test(t))){if(f=p=$,d=e,y=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(u=C(t),(p=e.getAttribute("id"))?f=p.replace(wt,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",l=u.length;l--;)u[l]=f+h(u[l]);d=vt.test(t)&&c(e.parentNode)||e,y=u.join(",")}if(y)try{return Z.apply(n,d.querySelectorAll(y)),n}catch(t){}finally{p||e.removeAttribute("id")}}}return F(t.replace(lt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>S.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[$]=!0,t}function r(t){var e=A.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=t.length;i--;)S.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);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){return"input"===e.nodeName.toLowerCase()&&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,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function c(t){return t&&typeof t.getElementsByTagName!==W&&t}function p(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=U++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,u=[q,o];if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(l=e[$]||(e[$]={}),(a=l[i])&&a[0]===q&&a[1]===o)return u[2]=a[2];if(l[i]=u,u[2]=t(e,n,s))return!0}}}function d(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 y(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function m(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),u&&e.push(a)));return s}function g(t,e,n,r,o,s){return r&&!r[$]&&(r=g(r)),o&&!o[$]&&(o=g(o,s)),i(function(i,s,a,l){var u,c,p,h=[],f=[],d=s.length,g=i||y(e||"*",a.nodeType?[a]:a,[]),_=!t||!i&&e?g:m(g,h,t,a,l),v=n?o||(i?t:d||r)?[]:s:_;if(n&&n(_,v,a,l),r)for(u=m(v,f),r(u,[],a,l),c=u.length;c--;)(p=u[c])&&(v[f[c]]=!(_[f[c]]=p));if(i){if(o||t){if(o){for(u=[],c=v.length;c--;)(p=v[c])&&u.push(_[c]=p);o(null,v=[],u,l)}for(c=v.length;c--;)(p=v[c])&&(u=o?et.call(i,p):h[c])>-1&&(i[u]=!(s[u]=p))}}else v=m(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):Z.apply(s,v)})}function _(t){for(var e,n,i,r=t.length,o=S.relative[t[0].type],s=o||S.relative[" "],a=o?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return et.call(e,t)>-1},s,!0),c=[function(t,n,i){return!o&&(i||n!==I)||((e=n).nodeType?l(t,n,i):u(t,n,i))}];a<r;a++)if(n=S.relative[t[a].type])c=[f(d(c),n)];else{if(n=S.filter[t[a].type].apply(null,t[a].matches),n[$]){for(i=++a;i<r&&!S.relative[t[i].type];i++);return g(a>1&&d(c),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),n,a<i&&_(t.slice(a,i)),i<r&&_(t=t.slice(i)),i<r&&h(t))}c.push(n)}return d(c)}function v(t,n){var r=n.length>0,o=t.length>0,s=function(i,s,a,l,u){var c,p,h,f=0,d="0",y=i&&[],g=[],_=I,v=i||o&&S.find.TAG("*",u),w=q+=null==_?1:Math.random()||.1,b=v.length;for(u&&(I=s!==A&&s);d!==b&&null!=(c=v[d]);d++){if(o&&c){for(p=0;h=t[p++];)if(h(c,s,a)){l.push(c);break}u&&(q=w)}r&&((c=!h&&c)&&f--,i&&y.push(c))}if(f+=d,r&&d!==f){for(p=0;h=n[p++];)h(y,g,s,a);if(i){if(f>0)for(;d--;)y[d]||g[d]||(g[d]=J.call(l));g=m(g)}Z.apply(l,g),u&&!i&&g.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(q=w,I=_),y};return r?i(s):s}var w,b,S,x,T,C,D,F,I,R,M,E,A,O,k,L,Q,N,j,$="sizzle"+-new Date,P=t.document,q=0,U=0,B=n(),H=n(),V=n(),z=function(t,e){return t===e&&(M=!0),0},W=typeof undefined,Y=1<<31,G={}.hasOwnProperty,K=[],J=K.pop,X=K.push,Z=K.push,tt=K.slice,et=K.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=rt.replace("w","w#"),st="\\["+it+"*("+rt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+it+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ut=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),pt=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(at),ft=new RegExp("^"+ot+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},yt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,_t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,wt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),St=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(K=tt.call(P.childNodes),P.childNodes),K[P.childNodes.length].nodeType}catch(t){Z={apply:K.length?function(t,e){X.apply(t,tt.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},E=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:P,i=n.defaultView;return n!==A&&9===n.nodeType&&n.documentElement?(A=n,O=n.documentElement,k=!T(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){E()},!1):i.attachEvent&&i.attachEvent("onunload",function(){E()})),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=gt.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}),b.getById=r(function(t){return O.appendChild(t).id=$,!n.getElementsByName||!n.getElementsByName($).length}),b.getById?(S.find.ID=function(t,e){if(typeof e.getElementById!==W&&k){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(t){var e=t.replace(bt,St);return function(t){return t.getAttribute("id")===e}}):(delete S.find.ID,S.filter.ID=function(t){var e=t.replace(bt,St);return function(t){var n=typeof t.getAttributeNode!==W&&t.getAttributeNode("id");return n&&n.value===e}}),S.find.TAG=b.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==W)return e.getElementsByTagName(t)}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},S.find.CLASS=b.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==W&&k)return e.getElementsByClassName(t)},Q=[],L=[],(b.qsa=gt.test(n.querySelectorAll))&&(r(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&L.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+it+"*(?:value|"+nt+")"),t.querySelectorAll(":checked").length||L.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&&L.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(b.matchesSelector=gt.test(N=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(t){b.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),Q.push("!=",at)}),L=L.length&&new RegExp(L.join("|")),Q=Q.length&&new RegExp(Q.join("|")),e=gt.test(O.compareDocumentPosition),j=e||gt.test(O.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},z=e?function(t,e){if(t===e)return M=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===P&&j(P,t)?-1:e===n||e.ownerDocument===P&&j(P,e)?1:R?et.call(R,t)-et.call(R,e):0:4&i?-1:1)}:function(t,e){if(t===e)return M=!0,0;var i,r=0,o=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:R?et.call(R,t)-et.call(R,e):0;if(o===a)return s(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?s(l[r],u[r]):l[r]===P?-1:u[r]===P?1:0},n):A},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&E(t),n=n.replace(pt,"='$1']"),b.matchesSelector&&k&&(!Q||!Q.test(n))&&(!L||!L.test(n)))try{var i=N.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&E(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&E(t);var n=S.attrHandle[e.toLowerCase()],i=n&&G.call(S.attrHandle,e.toLowerCase())?n(t,e,!k):undefined;return i!==undefined?i:b.attributes||!k?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(M=!b.detectDuplicates,R=!b.sortStable&&t.slice(0),t.sort(z),M){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return R=null,t},x=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+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},S=e.selectors={cacheLength:50,createPseudo:i,match:dt,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(bt,St),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,St),"~="===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[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=C(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(bt,St).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==W&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="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,p,h,f,d,y=o!==s?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),_=!l&&!a;if(m){if(o){for(;y;){for(p=e;p=p[y];)if(a?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;d=y="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&_){for(c=m[$]||(m[$]={}),u=c[t]||[],f=u[0]===q&&u[1],h=u[0]===q&&u[2],p=f&&m.childNodes[f];p=++f&&p&&p[y]||(h=f=0)||d.pop();)if(1===p.nodeType&&++h&&p===e){c[t]=[q,f,h];break}}else if(_&&(u=(e[$]||(e[$]={}))[t])&&u[0]===q)h=u[1];else for(;(p=++f&&p&&p[y]||(h=f=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++h||(_&&((p[$]||(p[$]={}))[t]=[q,h]),p!==e)););return(h-=r)===i||h%i==0&&h/i>=0}}},PSEUDO:function(t,n){var r,o=S.pseudos[t]||S.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[$]?o(n):o.length>1?(r=[t,t,"",n],S.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),s=r.length;s--;)i=et.call(t,r[s]),t[i]=!(e[i]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=D(t.replace(lt,"$1"));return r[$]?i(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,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||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,St).toLowerCase(),function(e){var n;do{if(n=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.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!S.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return yt.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[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},S.pseudos.nth=S.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})S.pseudos[w]=l(w);return p.prototype=S.filters=S.pseudos,S.setFilters=new p,C=e.tokenize=function(t,n){var i,r,o,s,a,l,u,c=H[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=S.preFilter;a;){i&&!(r=ut.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ct.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(lt," ")}),a=a.slice(i.length));for(s in S.filter)!(r=dt[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):H(t,l).slice(0)},D=e.compile=function(t,e){var n,i=[],r=[],o=V[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)o=_(e[n]),o[$]?i.push(o):r.push(o);o=V(t,v(r,i)),o.selector=t}return o},F=e.select=function(t,e,n,i){var r,o,s,a,l,u="function"==typeof t&&t,p=!i&&C(t=u.selector||t);if(n=n||[],1===p.length){if(o=p[0]=p[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&b.getById&&9===e.nodeType&&k&&S.relative[o[1].type]){if(!(e=(S.find.ID(s.matches[0].replace(bt,St),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=dt.needsContext.test(t)?0:o.length;r--&&(s=o[r],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(bt,St),vt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&h(o)))return Z.apply(n,i),n;break}}return(u||D(t,p))(i,e,!k,n,vt.test(t)&&c(e.parentNode)||e),n},b.sortStable=$.split("").sort(z).join("")===$,b.detectDuplicates=!!M,E(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(A.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);rt.find=ut,rt.expr=ut.selectors,rt.expr[":"]=rt.expr.pseudos,rt.unique=ut.uniqueSort,rt.text=ut.getText,rt.isXMLDoc=ut.isXML,rt.contains=ut.contains;var ct=rt.expr.match.needsContext,pt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ht=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?rt.find.matchesSelector(i,t)?[i]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;e<r;e++)if(rt.contains(i[e],this))return!0}));for(e=0;e<r;e++)rt.find(t,i[e],n);return n=this.pushStack(r>1?rt.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},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&&ct.test(t)?rt(t):t||[],!1).length}});var ft,dt=t.document,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(rt.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:yt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||ft).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:dt,!0)),pt.test(n[1])&&rt.isPlainObject(e))for(n in e)rt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((i=dt.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return ft.find(t);this.length=1,this[0]=i}return this.context=dt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?"undefined"!=typeof ft.ready?ft.ready(t):t(rt):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))}).prototype=rt.fn,ft=rt(dt);var mt=/^(?:parents|prev(?:Until|All))/,gt={children:!0,contents:!0,next:!0,prev:!0};rt.extend({dir:function(t,e,n){for(var i=[],r=t[e];r&&9!==r.nodeType&&(n===undefined||1!==r.nodeType||!rt(r).is(n));)1===r.nodeType&&i.push(r),r=r[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),rt.fn.extend({has:function(t){var e,n=rt(t,this),i=n.length;return this.filter(function(){for(e=0;e<i;e++)if(rt.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=ct.test(t)||"string"!=typeof t?rt(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&rt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?rt.unique(o):o)},index:function(t){return t?"string"==typeof t?rt.inArray(this[0],rt(t)):rt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(rt.unique(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return rt.dir(t,"parentNode")},parentsUntil:function(t,e,n){return rt.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return rt.dir(t,"nextSibling")},prevAll:function(t){return rt.dir(t,"previousSibling")},nextUntil:function(t,e,n){return rt.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return rt.dir(t,"previousSibling",n)},siblings:function(t){return rt.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return rt.sibling(t.firstChild)},contents:function(t){return rt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(n,i){var r=rt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=rt.filter(i,r)),this.length>1&&(gt[t]||(r=rt.unique(r)),mt.test(t)&&(r=r.reverse())),this.pushStack(r)}});var _t=/\S+/g,vt={};rt.Callbacks=function(t){t="string"==typeof t?vt[t]||o(t):rt.extend({},t);var e,n,i,r,s,a,l=[],u=!t.once&&[],c=function(o){for(n=t.memory&&o,i=!0,s=a||0,a=0,r=l.length,e=!0;l&&s<r;s++)if(l[s].apply(o[0],o[1])===!1&&t.stopOnFalse){n=!1;break}e=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:p.disable())},p={add:function(){if(l){var i=l.length;!function e(n){rt.each(n,function(n,i){var r=rt.type(i);"function"===r?t.unique&&p.has(i)||l.push(i):i&&i.length&&"string"!==r&&e(i)})}(arguments),e?r=l.length:n&&(a=i,c(n))}return this},remove:function(){return l&&rt.each(arguments,function(t,n){for(var i;(i=rt.inArray(n,l,i))>-1;)l.splice(i,1),e&&(i<=r&&r--,i<=s&&s--)}),this},has:function(t){return t?rt.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=u=n=undefined,this},disabled:function(){return!l},lock:function(){return u=undefined,n||p.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!l||i&&!u||(n=n||[],n=[t,n.slice?n.slice():n],e?u.push(n):c(n)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(n){rt.each(e,function(e,o){var s=rt.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,i):i}},r={};return i.pipe=i.then,rt.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=G.call(arguments),s=o.length,a=1!==s||t&&rt.isFunction(t.promise)?s:0,l=1===a?t:rt.Deferred(),u=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?G.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&rt.isFunction(o[r].promise)?o[r].promise().done(u(r,i,o)).fail(l.reject).progress(u(r,n,e)):--a;return a||l.resolveWith(i,o),l.promise()}});var wt;rt.fn.ready=function(t){return rt.ready.promise().done(t),this},rt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?rt.readyWait++:rt.ready(!0)},ready:function(t){if(t===!0?!--rt.readyWait:!rt.isReady){if(!dt.body)return setTimeout(rt.ready);rt.isReady=!0,t!==!0&&--rt.readyWait>0||(wt.resolveWith(dt,[rt]),rt.fn.triggerHandler&&(rt(dt).triggerHandler("ready"),rt(dt).off("ready")))}}}),rt.ready.promise=function(e){if(!wt)if(wt=rt.Deferred(),"complete"===dt.readyState)setTimeout(rt.ready);else if(dt.addEventListener)dt.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1);else{dt.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var n=!1;try{n=null==t.frameElement&&dt.documentElement}catch(t){}n&&n.doScroll&&function t(){if(!rt.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}s(),rt.ready()}}()}return wt.promise(e)};var bt,St=typeof undefined;for(bt in rt(nt))break;nt.ownLast="0"!==bt,nt.inlineBlockNeedsLayout=!1,rt(function(){var t,e,n,i;(n=dt.getElementsByTagName("body")[0])&&n.style&&(e=dt.createElement("div"),i=dt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==St&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=dt.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(t){nt.deleteExpando=!1}}t=null}(),rt.acceptData=function(t){var e=rt.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/([A-Z])/g;rt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?rt.cache[t[rt.expando]]:t[rt.expando])&&!u(t)},data:function(t,e,n){return c(t,e,n)},removeData:function(t,e){return p(t,e)},_data:function(t,e,n){return c(t,e,n,!0)},_removeData:function(t,e){return p(t,e,!0)}}),rt.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(t===undefined){if(this.length&&(r=rt.data(o),1===o.nodeType&&!rt._data(o,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=rt.camelCase(i.slice(5)),l(o,i,r[i])));rt._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){rt.data(this,t)}):arguments.length>1?this.each(function(){rt.data(this,t,e)}):o?l(o,t,rt.data(o,t)):undefined},removeData:function(t){return this.each(function(){rt.removeData(this,t)})}}),rt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=rt._data(t,e),n&&(!i||rt.isArray(n)?i=rt._data(t,e,rt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),i=n.length,r=n.shift(),o=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return rt._data(t,n)||rt._data(t,n,{empty:rt.Callbacks("once memory").add(function(){rt._removeData(t,e+"queue"),rt._removeData(t,n)})})}}),rt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?rt.queue(this[0],t):e===undefined?this:this.each(function(){var n=rt.queue(this,t,e);rt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&rt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){rt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=rt.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=undefined),t=t||"fx";s--;)(n=rt._data(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var Ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=["Top","Right","Bottom","Left"],Ft=function(t,e){return t=e||t,"none"===rt.css(t,"display")||!rt.contains(t.ownerDocument,t)},It=rt.access=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===rt.type(n)){r=!0;for(a in n)rt.access(t,e,a,n[a],!0,o,s)}else if(i!==undefined&&(r=!0,rt.isFunction(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(rt(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},Rt=/^(?:checkbox|radio)$/i;!function(){var t=dt.createElement("input"),e=dt.createElement("div"),n=dt.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",nt.leadingWhitespace=3===e.firstChild.nodeType,nt.tbody=!e.getElementsByTagName("tbody").length,nt.htmlSerialize=!!e.getElementsByTagName("link").length,nt.html5Clone="<:nav></:nav>"!==dt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),nt.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){nt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(t){nt.deleteExpando=!1}}}(),function(){var e,n,i=dt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(nt[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),nt[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Mt=/^(?:input|select|textarea)$/i,Et=/^key/,At=/^(?:mouse|pointer|contextmenu)|click/,Ot=/^(?:focusinfocus|focusoutblur)$/,kt=/^([^.]*)(?:\.(.+)|)$/;rt.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,p,h,f,d,y,m=rt._data(t);if(m){for(n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=rt.guid++),(s=m.events)||(s=m.events={}),(c=m.handle)||(c=m.handle=function(t){return typeof rt===St||t&&rt.event.triggered===t.type?undefined:rt.event.dispatch.apply(c.elem,arguments)},c.elem=t),e=(e||"").match(_t)||[""],a=e.length;a--;)o=kt.exec(e[a])||[],f=y=o[1],d=(o[2]||"").split(".").sort(),f&&(u=rt.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=rt.event.special[f]||{},p=rt.extend({type:f,origType:y,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&rt.expr.match.needsContext.test(r),namespace:d.join(".")},l),(h=s[f])||(h=s[f]=[],h.delegateCount=0,u.setup&&u.setup.call(t,i,d,c)!==!1||(t.addEventListener?t.addEventListener(f,c,!1):t.attachEvent&&t.attachEvent("on"+f,c))),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,p):h.push(p),rt.event.global[f]=!0);t=null}},remove:function(t,e,n,i,r){var o,s,a,l,u,c,p,h,f,d,y,m=rt.hasData(t)&&rt._data(t);if(m&&(c=m.events)){for(e=(e||"").match(_t)||[""],u=e.length;u--;)if(a=kt.exec(e[u])||[],f=y=a[1],d=(a[2]||"").split(".").sort(),f){for(p=rt.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,h=c[f]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=h.length;o--;)s=h[o],!r&&y!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(o,1),s.selector&&h.delegateCount--,p.remove&&p.remove.call(t,s));l&&!h.length&&(p.teardown&&p.teardown.call(t,d,m.handle)!==!1||rt.removeEvent(t,f,m.handle),delete c[f])}else for(f in c)rt.event.remove(t,f+e[u],n,i,!0);rt.isEmptyObject(c)&&(delete m.handle,rt._removeData(t,"events"))}},trigger:function(e,n,i,r){var o,s,a,l,u,c,p,h=[i||dt],f=et.call(e,"type")?e.type:e,d=et.call(e,"namespace")?e.namespace.split("."):[];if(a=c=i=i||dt,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(f+rt.event.triggered)&&(f.indexOf(".")>=0&&(d=f.split("."),f=d.shift(),d.sort()),s=f.indexOf(":")<0&&"on"+f,e=e[rt.expando]?e:new rt.Event(f,"object"==typeof e&&e),
e.isTrigger=r?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=i),n=null==n?[e]:rt.makeArray(n,[e]),u=rt.event.special[f]||{},r||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!r&&!u.noBubble&&!rt.isWindow(i)){for(l=u.delegateType||f,Ot.test(l+f)||(a=a.parentNode);a;a=a.parentNode)h.push(a),c=a;c===(i.ownerDocument||dt)&&h.push(c.defaultView||c.parentWindow||t)}for(p=0;(a=h[p++])&&!e.isPropagationStopped();)e.type=p>1?l:u.bindType||f,o=(rt._data(a,"events")||{})[e.type]&&rt._data(a,"handle"),o&&o.apply(a,n),(o=s&&a[s])&&o.apply&&rt.acceptData(a)&&(e.result=o.apply(a,n),e.result===!1&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!u._default||u._default.apply(h.pop(),n)===!1)&&rt.acceptData(i)&&s&&i[f]&&!rt.isWindow(i)){c=i[s],c&&(i[s]=null),rt.event.triggered=f;try{i[f]()}catch(t){}rt.event.triggered=undefined,c&&(i[s]=c)}return e.result}},dispatch:function(t){t=rt.event.fix(t);var e,n,i,r,o,s=[],a=G.call(arguments),l=(rt._data(this,"events")||{})[t.type]||[],u=rt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(s=rt.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,o=0;(i=r.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(i.namespace)||(t.handleObj=i,t.data=i.data,(n=((rt.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a))!==undefined&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(r=[],o=0;o<a;o++)i=e[o],n=i.selector+" ",r[n]===undefined&&(r[n]=i.needsContext?rt(n,this).index(l)>=0:rt.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&s.push({elem:l,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[rt.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=At.test(r)?this.mouseHooks:Et.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new rt.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=o.srcElement||dt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||dt,r=i.documentElement,n=i.body,t.pageX=e.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||o===undefined||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==d()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===d()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(rt.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return rt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==undefined&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=rt.extend(new rt.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?rt.event.trigger(r,null,e):rt.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},rt.removeEvent=dt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===St&&(t[i]=null),t.detachEvent(i,n))},rt.Event=function(t,e){if(!(this instanceof rt.Event))return new rt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===undefined&&t.returnValue===!1?h:f):this.type=t,e&&rt.extend(this,e),this.timeStamp=t&&t.timeStamp||rt.now(),this[rt.expando]=!0},rt.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=h,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=h,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},rt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){rt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||rt.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),nt.submitBubbles||(rt.event.special.submit={setup:function(){if(rt.nodeName(this,"form"))return!1;rt.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=rt.nodeName(e,"input")||rt.nodeName(e,"button")?e.form:undefined;n&&!rt._data(n,"submitBubbles")&&(rt.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),rt._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&rt.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(rt.nodeName(this,"form"))return!1;rt.event.remove(this,"._submit")}}),nt.changeBubbles||(rt.event.special.change={setup:function(){if(Mt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(rt.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),rt.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),rt.event.simulate("change",this,t,!0)})),!1;rt.event.add(this,"beforeactivate._change",function(t){var e=t.target;Mt.test(e.nodeName)&&!rt._data(e,"changeBubbles")&&(rt.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||rt.event.simulate("change",this.parentNode,t,!0)}),rt._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return rt.event.remove(this,"._change"),!Mt.test(this.nodeName)}}),nt.focusinBubbles||rt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){rt.event.simulate(e,t.target,rt.event.fix(t),!0)};rt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=rt._data(i,e);r||i.addEventListener(t,n,!0),rt._data(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=rt._data(i,e)-1;r?rt._data(i,e,r):(i.removeEventListener(t,n,!0),rt._removeData(i,e))}}}),rt.fn.extend({on:function(t,e,n,i,r){var o,s;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=undefined);for(o in t)this.on(o,e,n,t[o],r);return this}if(null==n&&null==i?(i=e,n=e=undefined):null==i&&("string"==typeof e?(i=n,n=undefined):(i=n,n=e,e=undefined)),i===!1)i=f;else if(!i)return this;return 1===r&&(s=i,i=function(t){return rt().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=rt.guid++)),this.each(function(){rt.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,rt(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=undefined),n===!1&&(n=f),this.each(function(){rt.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){rt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return rt.event.trigger(t,e,n,!0)}});var Lt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qt=/ jQuery\d+="(?:null|\d+)"/g,Nt=new RegExp("<(?:"+Lt+")[\\s/>]","i"),jt=/^\s+/,$t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pt=/<([\w:]+)/,qt=/<tbody/i,Ut=/<|&#?\w+;/,Bt=/<(?:script|style|link)/i,Ht=/checked\s*(?:[^=]|=\s*.checked.)/i,Vt=/^$|\/(?:java|ecma)script/i,zt=/^true\/(.*)/,Wt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:nt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Gt=y(dt),Kt=Gt.appendChild(dt.createElement("div"));Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,rt.extend({clone:function(t,e,n){var i,r,o,s,a,l=rt.contains(t.ownerDocument,t);if(nt.html5Clone||rt.isXMLDoc(t)||!Nt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Kt.innerHTML=t.outerHTML,Kt.removeChild(o=Kt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(i=m(o),a=m(t),s=0;null!=(r=a[s]);++s)i[s]&&x(r,i[s]);if(e)if(n)for(a=a||m(t),i=i||m(o),s=0;null!=(r=a[s]);s++)S(r,i[s]);else S(t,o);return i=m(o,"script"),i.length>0&&b(i,!l&&m(t,"script")),i=a=r=null,o},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,u,c,p=t.length,h=y(e),f=[],d=0;d<p;d++)if((o=t[d])||0===o)if("object"===rt.type(o))rt.merge(f,o.nodeType?[o]:o);else if(Ut.test(o)){for(a=a||h.appendChild(e.createElement("div")),l=(Pt.exec(o)||["",""])[1].toLowerCase(),c=Yt[l]||Yt._default,a.innerHTML=c[1]+o.replace($t,"<$1></$2>")+c[2],r=c[0];r--;)a=a.lastChild;if(!nt.leadingWhitespace&&jt.test(o)&&f.push(e.createTextNode(jt.exec(o)[0])),!nt.tbody)for(o="table"!==l||qt.test(o)?"<table>"!==c[1]||qt.test(o)?0:a:a.firstChild,r=o&&o.childNodes.length;r--;)rt.nodeName(u=o.childNodes[r],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(rt.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=h.lastChild}else f.push(e.createTextNode(o));for(a&&h.removeChild(a),nt.appendChecked||rt.grep(m(f,"input"),g),d=0;o=f[d++];)if((!i||rt.inArray(o,i)===-1)&&(s=rt.contains(o.ownerDocument,o),a=m(h.appendChild(o),"script"),s&&b(a),n))for(r=0;o=a[r++];)Vt.test(o.type||"")&&n.push(o);return a=null,h},cleanData:function(t,e){for(var n,i,r,o,s=0,a=rt.expando,l=rt.cache,u=nt.deleteExpando,c=rt.event.special;null!=(n=t[s]);s++)if((e||rt.acceptData(n))&&(r=n[a],o=r&&l[r])){if(o.events)for(i in o.events)c[i]?rt.event.remove(n,i):rt.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u?delete n[a]:typeof n.removeAttribute!==St?n.removeAttribute(a):n[a]=null,Y.push(r))}}}),rt.fn.extend({text:function(t){return It(this,function(t){return t===undefined?rt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||dt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=_(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?rt.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||rt.cleanData(m(n)),n.parentNode&&(e&&rt.contains(n.ownerDocument,n)&&b(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&rt.cleanData(m(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&rt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return It(this,function(t){var e=this[0]||{},n=0,i=this.length;if(t===undefined)return 1===e.nodeType?e.innerHTML.replace(Qt,""):undefined;if("string"==typeof t&&!Bt.test(t)&&(nt.htmlSerialize||!Nt.test(t))&&(nt.leadingWhitespace||!jt.test(t))&&!Yt[(Pt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace($t,"<$1></$2>");try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(rt.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,rt.cleanData(m(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=K.apply([],t);var n,i,r,o,s,a,l=0,u=this.length,c=this,p=u-1,h=t[0],f=rt.isFunction(h);if(f||u>1&&"string"==typeof h&&!nt.checkClone&&Ht.test(h))return this.each(function(n){var i=c.eq(n);f&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(u&&(a=rt.buildFragment(t,this[0].ownerDocument,!1,this),n=a.firstChild,1===a.childNodes.length&&(a=n),n)){for(o=rt.map(m(a,"script"),v),r=o.length;l<u;l++)i=a,l!==p&&(i=rt.clone(i,!0,!0),r&&rt.merge(o,m(i,"script"))),e.call(this[l],i,l);if(r)for(s=o[o.length-1].ownerDocument,rt.map(o,w),l=0;l<r;l++)i=o[l],Vt.test(i.type||"")&&!rt._data(i,"globalEval")&&rt.contains(s,i)&&(i.src?rt._evalUrl&&rt._evalUrl(i.src):rt.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Wt,"")));a=n=null}return this}}),rt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){rt.fn[t]=function(t){for(var n,i=0,r=[],o=rt(t),s=o.length-1;i<=s;i++)n=i===s?this:this.clone(!0),rt(o[i])[e](n),J.apply(r,n.get());return this.pushStack(r)}});var Jt,Xt={};!function(){var t;nt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return(n=dt.getElementsByTagName("body")[0])&&n.style?(e=dt.createElement("div"),i=dt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==St&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(dt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var Zt,te,ee=/^margin/,ne=new RegExp("^("+Ct+")(?!px)[a-z%]+$","i"),ie=/^(top|right|bottom|left)$/;t.getComputedStyle?(Zt=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},te=function(t,e,n){var i,r,o,s,a=t.style;return n=n||Zt(t),s=n?n.getPropertyValue(e)||n[e]:undefined,n&&(""!==s||rt.contains(t.ownerDocument,t)||(s=rt.style(t,e)),ne.test(s)&&ee.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),s===undefined?s:s+""}):dt.documentElement.currentStyle&&(Zt=function(t){return t.currentStyle},te=function(t,e,n){var i,r,o,s,a=t.style;return n=n||Zt(t),s=n?n[e]:undefined,null==s&&a&&a[e]&&(s=a[e]),ne.test(s)&&!ie.test(e)&&(i=a.left,r=t.runtimeStyle,o=r&&r.left,o&&(r.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=i,o&&(r.left=o)),s===undefined?s:s+""||"auto"}),function(){function e(){var e,n,i,r;(n=dt.getElementsByTagName("body")[0])&&n.style&&(e=dt.createElement("div"),i=dt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=s=!1,l=!0,t.getComputedStyle&&(o="1%"!==(t.getComputedStyle(e,null)||{}).top,s="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,r=e.appendChild(dt.createElement("div")),r.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",r.style.marginRight=r.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",a=0===r[0].offsetHeight,a&&(r[0].style.display="",r[1].style.display="none",a=0===r[0].offsetHeight),n.removeChild(i))}var n,i,r,o,s,a,l;n=dt.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=n.getElementsByTagName("a")[0],(i=r&&r.style)&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,rt.extend(nt,{reliableHiddenOffsets:function(){return null==a&&e(),a},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==o&&e(),o},reliableMarginRight:function(){return null==l&&e(),l}}))}(),rt.swap=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r};var re=/alpha\([^)]*\)/i,oe=/opacity\s*=\s*([^)]*)/,se=/^(none|table(?!-c[ea]).+)/,ae=new RegExp("^("+Ct+")(.*)$","i"),le=new RegExp("^([+-])=("+Ct+")","i"),ue={position:"absolute",visibility:"hidden",display:"block"},ce={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=te(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt.camelCase(e),l=t.style;if(e=rt.cssProps[a]||(rt.cssProps[a]=F(l,a)),s=rt.cssHooks[e]||rt.cssHooks[a],n===undefined)return s&&"get"in s&&(r=s.get(t,!1,i))!==undefined?r:l[e];if(o=typeof n,"string"===o&&(r=le.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(rt.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||rt.cssNumber[a]||(n+="px"),nt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&(n=s.set(t,n,i))===undefined)))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var r,o,s,a=rt.camelCase(e);return e=rt.cssProps[a]||(rt.cssProps[a]=F(t.style,a)),s=rt.cssHooks[e]||rt.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),o===undefined&&(o=te(t,e,i)),"normal"===o&&e in ce&&(o=ce[e]),""===n||n?(r=parseFloat(o),n===!0||rt.isNumeric(r)?r||0:o):o}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,n,i){if(n)return se.test(rt.css(t,"display"))&&0===t.offsetWidth?rt.swap(t,ue,function(){return E(t,e,i)}):E(t,e,i)},set:function(t,n,i){var r=i&&Zt(t);return R(t,n,i?M(t,e,i,nt.boxSizing&&"border-box"===rt.css(t,"boxSizing",!1,r),r):0)}}}),nt.opacity||(rt.cssHooks.opacity={get:function(t,e){return oe.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,r=rt.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===rt.trim(o.replace(re,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=re.test(o)?o.replace(re,r):o+" "+r)}}),rt.cssHooks.marginRight=D(nt.reliableMarginRight,function(t,e){if(e)return rt.swap(t,{display:"inline-block"},te,[t,"marginRight"])}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Dt[i]+e]=o[i]||o[i-2]||o[0];return r}},ee.test(t)||(rt.cssHooks[t+e].set=R)}),rt.fn.extend({css:function(t,e){return It(this,function(t,e,n){var i,r,o={},s=0;if(rt.isArray(e)){for(i=Zt(t),r=e.length;s<r;s++)o[e[s]]=rt.css(t,e[s],!1,i);return o}return n!==undefined?rt.style(t,e,n):rt.css(t,e)},t,e,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ft(this)?rt(this).show():rt(this).hide()})}}),rt.Tween=A,A.prototype={constructor:A,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(rt.cssNumber[n]?"":"px")},cur:function(){var t=A.propHooks[this.prop];return t&&t.get?t.get(this):A.propHooks._default.get(this)},run:function(t){var e,n=A.propHooks[this.prop];return this.options.duration?this.pos=e=rt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=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):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=rt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[rt.cssProps[t.prop]]||rt.cssHooks[t.prop])?rt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},rt.fx=A.prototype.init,rt.fx.step={};var he,fe,de=/^(?:toggle|show|hide)$/,ye=new RegExp("^(?:([+-])=|)("+Ct+")([a-z%]*)$","i"),me=/queueHooks$/,ge=[Q],_e={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=ye.exec(e),o=r&&r[3]||(rt.cssNumber[t]?"":"px"),s=(rt.cssNumber[t]||"px"!==o&&+i)&&ye.exec(rt.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+i||1;do{a=a||".5",s/=a,rt.style(n.elem,t,s+o)}while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(s=n.start=+s||+i||0,n.unit=o,n.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),n}]};rt.Animation=rt.extend(j,{tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;i<r;i++)n=t[i],_e[n]=_e[n]||[],_e[n].unshift(e)},prefilter:function(t,e){e?ge.unshift(t):ge.push(t)}}),rt.speed=function(t,e,n){var i=t&&"object"==typeof t?rt.extend({},t):{complete:n||!n&&e||rt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!rt.isFunction(e)&&e};return i.duration=rt.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in rt.fx.speeds?rt.fx.speeds[i.duration]:rt.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){rt.isFunction(i.old)&&i.old.call(this),i.queue&&rt.dequeue(this,i.queue)},i},rt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Ft).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=rt.isEmptyObject(t),o=rt.speed(e,n,i),s=function(){var e=j(this,rt.extend({},t),o);(r||rt._data(this,"finish"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},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=undefined),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=rt.timers,s=rt._data(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&me.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||rt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=rt._data(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=rt.timers,s=i?i.length:0;for(n.finish=!0,rt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),rt.each(["toggle","show","hide"],function(t,e){var n=rt.fn[e];rt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(k(e,!0),t,i,r)}}),rt.each({slideDown:k("show"),slideUp:k("hide"),slideToggle:k("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){rt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),rt.timers=[],rt.fx.tick=function(){var t,e=rt.timers,n=0;for(he=rt.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||rt.fx.stop(),he=undefined},rt.fx.timer=function(t){rt.timers.push(t),t()?rt.fx.start():rt.timers.pop()},rt.fx.interval=13,rt.fx.start=function(){fe||(fe=setInterval(rt.fx.tick,rt.fx.interval))},rt.fx.stop=function(){clearInterval(fe),fe=null},rt.fx.speeds={slow:600,fast:200,_default:400},rt.fn.delay=function(t,e){return t=rt.fx?rt.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,e,n,i,r;e=dt.createElement("div"),e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],n=dt.createElement("select"),r=n.appendChild(dt.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==e.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!t.value,nt.optSelected=r.selected,nt.enctype=!!dt.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!r.disabled,t=dt.createElement("input"),t.setAttribute("value",""),nt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),nt.radioValue="t"===t.value}();var ve=/\r/g;rt.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=rt.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,rt(this).val()):t,null==r?r="":"number"==typeof r?r+="":rt.isArray(r)&&(r=rt.map(r,function(t){return null==t?"":t+""})),(e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&e.set(this,r,"value")!==undefined||(this.value=r))})):r?(e=rt.valHooks[r.type]||rt.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&(n=e.get(r,"value"))!==undefined?n:(n=r.value,"string"==typeof n?n.replace(ve,""):null==n?"":n):void 0}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(n=i[l],(n.selected||l===r)&&(nt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!rt.nodeName(n.parentNode,"optgroup"))){if(e=rt(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=rt.makeArray(e),s=r.length;s--;)if(i=r[s],rt.inArray(rt.valHooks.option.get(i),o)>=0)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){if(rt.isArray(e))return t.checked=rt.inArray(rt(t).val(),e)>=0}},nt.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var we,be,Se=rt.expr.attrHandle,xe=/^(?:checked|selected)$/i,Te=nt.getSetAttribute,Ce=nt.input;rt.fn.extend({attr:function(t,e){return It(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===St?rt.prop(t,e,n):(1===o&&rt.isXMLDoc(t)||(e=e.toLowerCase(),i=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?be:we)),n===undefined?i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=rt.find.attr(t,e),null==r?undefined:r):null!==n?i&&"set"in i&&(r=i.set(t,n,e))!==undefined?r:(t.setAttribute(e,n+""),n):void rt.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(_t);if(o&&1===t.nodeType)for(;n=o[r++];)i=rt.propFix[n]||n,rt.expr.match.bool.test(n)?Ce&&Te||!xe.test(n)?t[i]=!1:t[rt.camelCase("default-"+n)]=t[i]=!1:rt.attr(t,n,""),t.removeAttribute(Te?n:i)},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),be={set:function(t,e,n){return e===!1?rt.removeAttr(t,n):Ce&&Te||!xe.test(n)?t.setAttribute(!Te&&rt.propFix[n]||n,n):t[rt.camelCase("default-"+n)]=t[n]=!0,n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Se[e]||rt.find.attr;Se[e]=Ce&&Te||!xe.test(e)?function(t,e,i){var r,o;return i||(o=Se[e],Se[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,Se[e]=o),r}:function(t,e,n){if(!n)return t[rt.camelCase("default-"+e)]?e.toLowerCase():null}}),Ce&&Te||(rt.attrHooks.value={set:function(t,e,n){if(!rt.nodeName(t,"input"))return we&&we.set(t,e,n);t.defaultValue=e}}),Te||(we={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},Se.id=Se.name=Se.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},rt.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:we.set},rt.attrHooks.contenteditable={set:function(t,e,n){we.set(t,""!==e&&e,n)}},rt.each(["width","height"],function(t,e){rt.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),nt.style||(rt.attrHooks.style={get:function(t){return t.style.cssText||undefined},set:function(t,e){return t.style.cssText=e+""}});var De=/^(?:input|select|textarea|button|object)$/i,Fe=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return It(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return t=rt.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(t){}})}}),rt.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,r,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!rt.isXMLDoc(t),o&&(e=rt.propFix[e]||e,r=rt.propHooks[e]),n!==undefined?r&&"set"in r&&(i=r.set(t,n,e))!==undefined?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=rt.find.attr(t,"tabindex");return e?parseInt(e,10):De.test(t.nodeName)||Fe.test(t.nodeName)&&t.href?0:-1}}}}),nt.hrefNormalized||rt.each(["href","src"],function(t,e){rt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),nt.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this}),nt.enctype||(rt.propFix.enctype="encoding");var Ie=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,n,i,r,o,s,a=0,l=this.length,u="string"==typeof t&&t;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(_t)||[];a<l;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ie," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=rt.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,i,r,o,s,a=0,l=this.length,u=0===arguments.length||"string"==typeof t&&t;if(rt.isFunction(t))return this.each(function(e){rt(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(_t)||[];a<l;a++)if(n=this[a],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ie," "):"")){
for(o=0;r=e[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");s=t?rt.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):rt.isFunction(t)?this.each(function(n){rt(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,r=rt(this),o=t.match(_t)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else n!==St&&"boolean"!==n||(this.className&&rt._data(this,"__className__",this.className),this.className=this.className||t===!1?"":rt._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ie," ").indexOf(e)>=0)return!0;return!1}}),rt.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){rt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),rt.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 Re=rt.now(),Me=/\?/,Ee=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;rt.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,r=rt.trim(e+"");return r&&!rt.trim(r.replace(Ee,function(t,e,r,o){return n&&e&&(i=0),0===i?t:(n=r||e,i+=!o-!r,"")}))?Function("return "+r)():rt.error("Invalid JSON: "+e)},rt.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(t){n=undefined}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||rt.error("Invalid XML: "+e),n};var Ae,Oe,ke=/#.*$/,Le=/([?&])_=[^&]*/,Qe=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ne=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,je=/^(?:GET|HEAD)$/,$e=/^\/\//,Pe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qe={},Ue={},Be="*/".concat("*");try{Oe=location.href}catch(t){Oe=dt.createElement("a"),Oe.href="",Oe=Oe.href}Ae=Pe.exec(Oe.toLowerCase())||[],rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe,type:"GET",isLocal:Ne.test(Ae[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,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":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,rt.ajaxSettings),e):q(rt.ajaxSettings,t)},ajaxPrefilter:$(qe),ajaxTransport:$(Ue),ajax:function(t,e){function n(t,e,n,i){var r,c,g,_,w,S=e;2!==v&&(v=2,a&&clearTimeout(a),u=undefined,s=i||"",b.readyState=t>0?4:0,r=t>=200&&t<300||304===t,n&&(_=U(p,b,n)),_=B(p,_,b,r),r?(p.ifModified&&(w=b.getResponseHeader("Last-Modified"),w&&(rt.lastModified[o]=w),(w=b.getResponseHeader("etag"))&&(rt.etag[o]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=_.state,c=_.data,g=_.error,r=!g)):(g=S,!t&&S||(S="error",t<0&&(t=0))),b.status=t,b.statusText=(e||S)+"",r?d.resolveWith(h,[c,S,b]):d.rejectWith(h,[b,S,g]),b.statusCode(m),m=undefined,l&&f.trigger(r?"ajaxSuccess":"ajaxError",[b,p,r?c:g]),y.fireWith(h,[b,S]),l&&(f.trigger("ajaxComplete",[b,p]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=undefined),e=e||{};var i,r,o,s,a,l,u,c,p=rt.ajaxSetup({},e),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?rt(h):rt.event,d=rt.Deferred(),y=rt.Callbacks("once memory"),m=p.statusCode||{},g={},_={},v=0,w="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(2===v){if(!c)for(c={};e=Qe.exec(s);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===v?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return v||(t=_[n]=_[n]||t,g[t]=e),this},overrideMimeType:function(t){return v||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(v<2)for(e in t)m[e]=[m[e],t[e]];else b.always(t[b.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),n(0,e),this}};if(d.promise(b).complete=y.add,b.success=b.done,b.error=b.fail,p.url=((t||p.url||Oe)+"").replace(ke,"").replace($e,Ae[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=rt.trim(p.dataType||"*").toLowerCase().match(_t)||[""],null==p.crossDomain&&(i=Pe.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===Ae[1]&&i[2]===Ae[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ae[3]||("http:"===Ae[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=rt.param(p.data,p.traditional)),P(qe,p,e,b),2===v)return b;l=p.global,l&&0==rt.active++&&rt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!je.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(Me.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=Le.test(o)?o.replace(Le,"$1_="+Re++):o+(Me.test(o)?"&":"?")+"_="+Re++)),p.ifModified&&(rt.lastModified[o]&&b.setRequestHeader("If-Modified-Since",rt.lastModified[o]),rt.etag[o]&&b.setRequestHeader("If-None-Match",rt.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||e.contentType)&&b.setRequestHeader("Content-Type",p.contentType),b.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)b.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(p.beforeSend.call(h,b,p)===!1||2===v))return b.abort();w="abort";for(r in{success:1,error:1,complete:1})b[r](p[r]);if(u=P(Ue,p,e,b)){b.readyState=1,l&&f.trigger("ajaxSend",[b,p]),p.async&&p.timeout>0&&(a=setTimeout(function(){b.abort("timeout")},p.timeout));try{v=1,u.send(g,n)}catch(t){if(!(v<2))throw t;n(-1,t)}}else n(-1,"No Transport");return b},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,undefined,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,n,i,r){return rt.isFunction(n)&&(r=r||i,i=n,n=undefined),rt.ajax({url:t,type:e,dataType:r,data:n,success:i})}}),rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(t){if(rt.isFunction(t))return this.each(function(e){rt(this).wrapAll(t.call(this,e))});if(this[0]){var e=rt(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(n){rt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||rt.css(t,"display"))},rt.expr.filters.visible=function(t){return!rt.expr.filters.hidden(t)};var He=/%20/g,Ve=/\[\]$/,ze=/\r?\n/g,We=/^(?:submit|button|image|reset|file)$/i,Ye=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,i=[],r=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){r(this.name,this.value)});else for(n in t)H(n,t[n],e,r);return i.join("&").replace(He,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Ye.test(this.nodeName)&&!We.test(t)&&(this.checked||!Rt.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(ze,"\r\n")}}):{name:e.name,value:n.replace(ze,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=t.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&V()||z()}:V;var Ge=0,Ke={},Je=rt.ajaxSettings.xhr();t.ActiveXObject&&rt(t).on("unload",function(){for(var t in Ke)Ke[t](undefined,!0)}),nt.cors=!!Je&&"withCredentials"in Je,Je=nt.ajax=!!Je,Je&&rt.ajaxTransport(function(t){if(!t.crossDomain||nt.cors){var e;return{send:function(n,i){var r,o=t.xhr(),s=++Ge;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)n[r]!==undefined&&o.setRequestHeader(r,n[r]+"");o.send(t.hasContent&&t.data||null),e=function(n,r){var a,l,u;if(e&&(r||4===o.readyState))if(delete Ke[s],e=undefined,o.onreadystatechange=rt.noop,r)4!==o.readyState&&o.abort();else{u={},a=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=u.text?200:404}u&&i(a,l,u,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Ke[s]=e:e()},abort:function(){e&&e(undefined,!0)}}}}),rt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),rt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=dt.head||rt("head")[0]||dt.documentElement;return{send:function(i,r){e=dt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||r(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(undefined,!0)}}}});var Xe=[],Ze=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||rt.expando+"_"+Re++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,s,a=e.jsonp!==!1&&(Ze.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=rt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ze,"$1"+r):e.jsonp!==!1&&(e.url+=(Me.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||rt.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},i.always(function(){t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Xe.push(r)),s&&rt.isFunction(o)&&o(s[0]),s=o=undefined}),"script"}),rt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||dt;var i=pt.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=rt.buildFragment([t],e,r),r&&r.length&&rt(r).remove(),rt.merge([],i.childNodes))};var tn=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&tn)return tn.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return a>=0&&(i=rt.trim(t.slice(a,t.length)),t=t.slice(0,a)),rt.isFunction(e)?(n=e,e=undefined):e&&"object"==typeof e&&(o="POST"),s.length>0&&rt.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?rt("<div>").append(rt.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,r||[t.responseText,e,t])}),this},rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length};var en=t.document.documentElement;rt.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u,c=rt.css(t,"position"),p=rt(t),h={};"static"===c&&(t.style.position="relative"),a=p.offset(),o=rt.css(t,"top"),l=rt.css(t,"left"),u=("absolute"===c||"fixed"===c)&&rt.inArray("auto",[o,l])>-1,u?(i=p.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),rt.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):p.css(h)}},rt.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,rt.contains(e,r)?(typeof r.getBoundingClientRect!==St&&(i=r.getBoundingClientRect()),n=W(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===rt.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(n=t.offset()),n.top+=rt.css(t[0],"borderTopWidth",!0),n.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-rt.css(i,"marginTop",!0),left:e.left-n.left-rt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||en;t&&!rt.nodeName(t,"html")&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||en})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);rt.fn[t]=function(i){return It(this,function(t,i,r){var o=W(t);if(r===undefined)return o?e in o?o[e]:o.document.documentElement[i]:t[i];o?o.scrollTo(n?rt(o).scrollLeft():r,n?r:rt(o).scrollTop()):t[i]=r},t,i,arguments.length,null)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=D(nt.pixelPosition,function(t,n){if(n)return n=te(t,e),ne.test(n)?rt(t).position()[e]+"px":n})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){rt.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||r===!0?"margin":"border");return It(this,function(e,n,i){var r;return rt.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])):i===undefined?rt.css(e,n,s):rt.style(e,n,i,s)},e,o?i:undefined,o,null)}})}),rt.fn.size=function(){return this.length},rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var nn=t.jQuery,rn=t.$;return rt.noConflict=function(e){return t.$===rt&&(t.$=rn),e&&t.jQuery===rt&&(t.jQuery=nn),rt},typeof e===St&&(t.jQuery=t.$=rt),rt}),/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t,e,n){function i(n){var i=e.console;o[n]||(o[n]=!0,t.migrateWarnings.push(n),i&&i.warn&&!t.migrateMute&&(i.warn("JQMIGRATE: "+n),t.migrateTrace&&i.trace&&i.trace()))}function r(e,r,o,s){if(Object.defineProperty)try{return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){return i(s),o},set:function(t){i(s),o=t}}),n}catch(t){}t._definePropertyBroken=!0,e[r]=o}var o={};t.migrateWarnings=[],!t.migrateMute&&e.console&&e.console.log&&e.console.log("JQMIGRATE: Logging is active"),t.migrateTrace===n&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var s=t("<input/>",{size:1}).attr("size")&&t.attrFn,a=t.attr,l=t.attrHooks.value&&t.attrHooks.value.get||function(){return null},u=t.attrHooks.value&&t.attrHooks.value.set||function(){return n},c=/^(?:input|button)$/i,p=/^[238]$/,h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;r(t,"attrFn",s||{},"jQuery.attrFn is deprecated"),t.attr=function(e,r,o,l){var u=r.toLowerCase(),d=e&&e.nodeType;return l&&(4>a.length&&i("jQuery.fn.attr( props, pass ) is deprecated"),e&&!p.test(d)&&(s?r in s:t.isFunction(t.fn[r])))?t(e)[r](o):("type"===r&&o!==n&&c.test(e.nodeName)&&e.parentNode&&i("Can't change the 'type' of an input or button in IE 6/7/8"),!t.attrHooks[u]&&h.test(u)&&(t.attrHooks[u]={get:function(e,i){var r,o=t.prop(e,i);return o===!0||"boolean"!=typeof o&&(r=e.getAttributeNode(i))&&r.nodeValue!==!1?i.toLowerCase():n},set:function(e,n,i){var r;return n===!1?t.removeAttr(e,i):(r=t.propFix[i]||i,r in e&&(e[r]=!0),e.setAttribute(i,i.toLowerCase())),i}},f.test(u)&&i("jQuery.fn.attr('"+u+"') may use property instead of attribute")),a.call(t,e,r,o))},t.attrHooks.value={get:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?l.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var r=(t.nodeName||"").toLowerCase();return"button"===r?u.apply(this,arguments):("input"!==r&&"option"!==r&&i("jQuery.fn.attr('value', val) no longer sets properties"),t.value=e,n)}};var d,y,m=t.fn.init,g=t.parseJSON,_=/^([^<]*)(<[\w\W]+>)([^>]*)$/;t.fn.init=function(e,n,r){var o;return e&&"string"==typeof e&&!t.isPlainObject(n)&&(o=_.exec(t.trim(e)))&&o[0]&&("<"!==e.charAt(0)&&i("$(html) HTML strings must start with '<' character"),o[3]&&i("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(i("HTML string cannot start with a '#' character"),t.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),t.parseHTML)?m.call(this,t.parseHTML(o[2],n,!0),n,r):m.apply(this,arguments)},t.fn.init.prototype=t.fn,t.parseJSON=function(t){return t||null===t?g.apply(this,arguments):(i("jQuery.parseJSON requires a valid JSON string"),null)},t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t.browser||(d=t.uaMatch(navigator.userAgent),y={},d.browser&&(y[d.browser]=!0,y.version=d.version),y.chrome?y.webkit=!0:y.webkit&&(y.safari=!0),t.browser=y),r(t,"browser",t.browser,"jQuery.browser is deprecated"),t.sub=function(){function e(t,n){return new e.fn.init(t,n)}t.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,r){return r&&r instanceof t&&!(r instanceof e)&&(r=e(r)),t.fn.init.call(this,i,r,n)},e.fn.init.prototype=e.fn;var n=e(document);return i("jQuery.sub() is deprecated"),e},t.ajaxSetup({converters:{"text json":t.parseJSON}});var v=t.fn.data;t.fn.data=function(e){var r,o,s=this[0];return!s||"events"!==e||1!==arguments.length||(r=t.data(s,e),o=t._data(s,e),r!==n&&r!==o||o===n)?v.apply(this,arguments):(i("Use of jQuery.fn.data('events') is deprecated"),o)};var w=/\/(java|ecma)script/i,b=t.fn.andSelf||t.fn.addBack;t.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),b.apply(this,arguments)},t.clean||(t.clean=function(e,r,o,s){r=r||document,r=!r.nodeType&&r[0]||r,r=r.ownerDocument||r,i("jQuery.clean() is deprecated");var a,l,u,c,p=[];if(t.merge(p,t.buildFragment(e,r).childNodes),o)for(u=function(t){return!t.type||w.test(t.type)?s?s.push(t.parentNode?t.parentNode.removeChild(t):t):o.appendChild(t):n},a=0;null!=(l=p[a]);a++)t.nodeName(l,"script")&&u(l)||(o.appendChild(l),l.getElementsByTagName!==n&&(c=t.grep(t.merge([],l.getElementsByTagName("script")),u),p.splice.apply(p,[a+1,0].concat(c)),a+=c.length));return p});var S=t.event.add,x=t.event.remove,T=t.event.trigger,C=t.fn.toggle,D=t.fn.live,F=t.fn.die,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",R=RegExp("\\b(?:"+I+")\\b"),M=/(?:^|\s)hover(\.\S+|)\b/,E=function(e){return"string"!=typeof e||t.event.special.hover?e:(M.test(e)&&i("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(M,"mouseenter$1 mouseleave$1"))};t.event.props&&"attrChange"!==t.event.props[0]&&t.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),t.event.dispatch&&r(t.event,"handle",t.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),t.event.add=function(t,e,n,r,o){t!==document&&R.test(e)&&i("AJAX events should be attached to document: "+e),S.call(this,t,E(e||""),n,r,o)},t.event.remove=function(t,e,n,i,r){x.call(this,t,E(e)||"",n,i,r)},t.fn.error=function(){var t=Array.prototype.slice.call(arguments,0);return i("jQuery.fn.error() is deprecated"),t.splice(0,0,"error"),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this)},t.fn.toggle=function(e,n){if(!t.isFunction(e)||!t.isFunction(n))return C.apply(this,arguments);i("jQuery.fn.toggle(handler, handler...) is deprecated");var r=arguments,o=e.guid||t.guid++,s=0,a=function(n){var i=(t._data(this,"lastToggle"+e.guid)||0)%s;return t._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),r[i].apply(this,arguments)||!1};for(a.guid=o;r.length>s;)r[s++].guid=o;return this.click(a)},t.fn.live=function(e,n,r){return i("jQuery.fn.live() is deprecated"),D?D.apply(this,arguments):(t(this.context).on(e,this.selector,n,r),this)},t.fn.die=function(e,n){return i("jQuery.fn.die() is deprecated"),F?F.apply(this,arguments):(t(this.context).off(e,this.selector||"**",n),this)},t.event.trigger=function(t,e,n,r){return n||R.test(t)||i("Global events are undocumented and deprecated"),T.call(this,t,e,n||document,r)},t.each(I.split("|"),function(e,n){t.event.special[n]={setup:function(){var e=this;return e!==document&&(t.event.add(document,n+"."+t.guid,function(){t.event.trigger(n,null,e,!0)}),t._data(this,n,t.guid++)),!1},teardown:function(){return this!==document&&t.event.remove(document,n+"."+t._data(this,n)),!1}}})}(jQuery,window),window.$stjq=jQuery.noConflict(!0),function(jQuery){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,o,s,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n<o;n+=1)s[n]=str(n,l)||"null";return r=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=rep[n],(r=str(i,l))&&s.push(quote(i)+(gap?": ":":")+r));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r=str(i,l))&&s.push(quote(i)+(gap?": ":":")+r);return r=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,r}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx,escapable,gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),i!==undefined?r[n]=i:delete r[n]);return reviver.call(t,e,r)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(t){var e=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=e,n}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(n){function i(e,r,o){var s;if("undefined"!=typeof document){if(arguments.length>1){if(o=t({path:"/"},i.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(r),/^[\{\[]/.test(s)&&(r=s)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,o[u]!==!0&&(l+="="+o[u]));var c=e+"="+r+l;return this.doNotActuallySetCookie?c:document.cookie=c}e||(s={});for(var p=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,f=0;f<p.length;f++){var d=p[f].split("="),y=d.slice(1).join("=");'"'===y.charAt(0)&&(y=y.slice(1,-1));try{var m=d[0].replace(h,decodeURIComponent);if(y=n.read?n.read(y,m):n(y,m)||y.replace(h,decodeURIComponent),this.json)try{y=JSON.parse(y)}catch(t){}if(e===m){s=y;break}e||(s[m]=y)}catch(t){}}return s}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.cookieStringOnly=function(){return i.apply({doNotActuallySetCookie:!0},[].slice.call(arguments))},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}return e(function(){})}),function(t){"use strict";t._InternalSwiftype=t._InternalSwiftype||{},t._InternalSwiftype.Cookies=t._InternalSwiftype.Cookie||Cookies.noConflict(),t._InternalSwiftype.Cookies.json=!0}(window),/*
* Hashcode.js 1.0.2
* https://github.com/stuartbannerman/hashcode
*
* Copyright 2013 Stuart Bannerman (me@stuartbannerman.com)
* Released under the MIT license
*
* Date: 07-04-2013
*/
function(t){t.Hashcode=function(){var t=function(t){var e,t=t.toString(),n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e)&4294967295;return n},e=function(e){var i=0;for(var r in e)e.hasOwnProperty(r)&&(i+=t(r+n(e[r])));return i},n=function(n){var i={string:t,number:t,"boolean":t,object:e},r=typeof n;return null!=n&&i[r]?i[r](n)+t(r):0};return{value:n}}()}(window),function(t){"use strict";var e=t._InternalSwiftype=t._InternalSwiftype||{};e.ClickRecord=function(t,e,n){this._resultId=t,this._count=e,this._last=n},e.ClickRecord.fromObject=function(t){return new e.ClickRecord(t.resultId,t.count,t.last)},e.ClickRecord.fromResultId=function(t){return new e.ClickRecord(t,0,(new Date).getTime())};var n=e.ClickRecord.prototype;n.getResultId=function(){return this._resultId},n.getCount=function(){return this._count},n.getLastClicked=function(){return this._last},n.incrementCount=function(t){this._count=this._count+(t||1)},n.updateLastClicked=function(t){this._last=t||(new Date).getTime()},n.hashcode=function(){return Hashcode.value(this._resultId)},n.toObject=function(){return{resultId:this.getResultId(),count:this.getCount(),last:this.getLastClicked()}}}(window),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{};n.QueryRecord=function(t,e,n,i){this._legalQueryKeys=["q","sort_field","sort_direction","filters"],this._query=this._sanitizeQuery(t),this._count=e,this._last=n,this._clickRecords=i},n.QueryRecord.fromObject=function(t){var i={};return e.each(t.clicks,function(t,e){var r=n.ClickRecord.fromObject(e);i[t]=r}),new n.QueryRecord(t.query,t.count,t.last,i)},n.QueryRecord.fromQuery=function(t){return new n.QueryRecord(t,0,(new Date).getTime(),{})};var i=n.QueryRecord.prototype;i.getQuery=function(){return this._query},i.getQueryString=function(){return this._query.q},i.getCount=function(){return this._count},i.lastExecutedAt=function(){return this._last},i.getClickRecords=function(){return this._clickRecords},i.getLastClickRecord=function(){var t=null;return e.each(this.getClickRecords(),function(e,n){(!t||n.getLastClicked()>t.getLastClicked())&&(t=n)}),t},i.getClickResultIds=function(){return e.map(this.getClickRecords(),function(t){return t.getResultId()})},i.registerClickByResultId=function(t){var e=n.ClickRecord.fromResultId(t);e=this.getClickRecords()[e.hashcode()]||e,e.incrementCount(),e.updateLastClicked(),this.getClickRecords()[e.hashcode()]=e},i.updateLastExecuted=function(t){this._last=t||(new Date).getTime()},i.incrementCount=function(t){this._count=this._count+(t||1)},i.hashcode=function(){return Hashcode.value(this.getQuery())},i.toObject=function(){var t={};return e.each(this.getClickRecords(),function(e,n){t[e]=n.toObject()}),{query:this.getQuery(),count:this.getCount(),last:this.lastExecutedAt(),clicks:t}},i._sanitizeQuery=function(t){var n={};return e.each(this._legalQueryKeys,function(e,i){t[i]&&(n[i]=t[i])}),n}}(window,jQuery),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{};n.InstallRecord=function(t,e){this._installKey=t,this._queryRecords=e},n.InstallRecord.fromObject=function(t){var i={};return e.each(t.queries,function(t,e){i[t]=n.QueryRecord.fromObject(e)}),new n.InstallRecord(t.installKey,i)},n.InstallRecord.fromInstallKey=function(t){return new n.InstallRecord(t,{})};var i=n.InstallRecord.prototype;i.getInstallKey=function(){return this._installKey},i.registerQuery=function(t){var e=this._getQueryForFullQuery(t);e.incrementCount(),e.updateLastExecuted()},i.registerClickForQuery=function(t,e){this._getQueryForFullQuery(t).registerClickByResultId(e)},i.getMostRecentClickAndQuery=function(){var t=null,n=null;return e.each(this.getQueryRecords(),function(i,r){e.each(r.getClickRecords(),function(e,i){(null===t||i.getLastClicked()>t.getLastClicked())&&(t=i,n=r)})}),{queryRecord:n,clickRecord:t}},i.getRecentResultIds=function(){var t=10,n=[];return e.each(this.getQueryRecords(),function(i,r){return e.each(r.getClickResultIds(),function(e,i){return n.push(i),n.length<t}),n.length<t}),n},i.getLastQueryExecutionTime=function(){var t=this.getLastExecutedQuery();return t?t.lastExecutedAt():0},i.getLastExecutedQuery=function(){var t=null;return e.each(this.getQueryRecords(),function(e,n){(null===t||t.lastExecutedAt()<n.lastExecutedAt())&&(t=n)}),t},i.removeOldestQuery=function(){var t=this._getOldestQueryId();return!!t&&"undefined"!=typeof this.getQueryRecords()[t]&&(delete this.getQueryRecords()[t],!0)},i._getOldestQueryId=function(){var t=this,n=null;return e.each(this.getQueryRecords(),function(e,i){(null===n||t.getQueryRecords()[n].lastExecutedAt()>i.lastExecutedAt())&&(n=e)}),n},i.getQueryRecords=function(){return this._queryRecords},i.getSortedQueryRecordsByExecutedAt=function(){return e.map(this._queryRecords,function(t){return t}).sort(function(t,e){return t._last-e._last})},i.hashcode=function(){return Hashcode.value(this.getInstallKey())},i.toObject=function(){var t={};return e.each(this.getQueryRecords(),function(e,n){t[e]=n.toObject()}),{installKey:this.getInstallKey(),queries:t}},i._getQueryForFullQuery=function(t){var e=new n.QueryRecord.fromQuery(t);return e=this._queryRecords[e.hashcode()]||e,this._queryRecords[e.hashcode()]=e,e}}(window,jQuery),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{},i=t._InternalSwiftype.Cookies;n.SearchHistory=function(t){this._cookieName="st-sh",this._expires=36135,this._path="/",this._version=1,this._maximumByteSize=512,this._installKey=t,this._initializeFromCookie(),this._migrateCookieVersionIfNeeded()},n.SearchHistory.forLastActiveInstall=function(){return new n.SearchHistory},n.SearchHistory.forInstallKey=function(t){return new n.SearchHistory(t)};var r=n.SearchHistory.prototype;r._migrateCookieVersionIfNeeded=function(){this.getCookieVersion()&&this.getVersion()!==this.getCookieVersion()&&this._migrateCookieVersion(this.getCookieVersion(),this.getVersion())},r._initializeFromCookie=function(){var t=this;if(this._st_cookies=i.get(this._cookieName)||{},this._st_cookies.installRecords=this._st_cookies.installRecords||{},this._installRecordObjects=this._st_cookies.installRecords,this._installRecords={},e.each(this._installRecordObjects,function(e,i){var r=new n.InstallRecord.fromObject(i);t._installRecords[r.hashcode()]=r}),this._installKey){var r=new n.InstallRecord.fromInstallKey(this._installKey);this._installRecords[r.hashcode()]=this._installRecords[r.hashcode()]||r,this._activeInstallRecord=this._installRecords[r.hashcode()]}else this._activeInstallRecord=this._getLastActiveInstallRecord()},r.getVersion=function(){return this._version},r.getCookieVersion=function(){return this._st_cookies.version},r.trackQueryForActiveInstall=function(t){this._activeInstallRecord.registerQuery(t),this._save()},r.trackClickForActiveInstall=function(t,e){this._activeInstallRecord.registerClickForQuery(t,e),this._save()},r.getActiveInstallRecord=function(){return this._activeInstallRecord},r._getInstallRecords=function(){return this._installRecords},r._toObject=function(){var t={};t.version=this._version;var n={};return e.each(this._installRecords,function(t,e){n[t]=e.toObject()}),t.installRecords=n,t},r._save=function(){return this._enforceMaximumCookieSize()?(i.set(this._cookieName,this._toObject(),this._options()),!0):(this._deleteCookieAndReset(),!1)},r._enforceMaximumCookieSize=function(){for(var t=!0,e=100,n=0;this._currentStringifiedCookieSizeInBytes()>this._maximumByteSize;){if(!this._removeOldestQuery()){t=!1;break}if(n>=e){t=!1;break}n++}return t},r._removeOldestQuery=function(){var t=this._getInstallWithOldestLastQueryExecutionTime();return!!t&&t.removeOldestQuery()},r._byteLength=function(t){for(var e=t.length,n=t.length-1;n>=0;n--){var i=t.charCodeAt(n);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&n--}return e},r._currentStringifiedCookieSizeInBytes=function(){var t=i.cookieStringOnly(this._cookieName,this._toObject(),this._options());return this._byteLength(t)},r._migrateCookieVersion=function(){i.remove(this._cookieName,this._options())},r._options=function(){return{expires:this._expires,path:this._path}},r._getInstallRecordObjects=function(){return this._st_cookies.installRecords=this._st_cookies.installRecords||{},this._st_cookies.installRecords},r._getInstallWithOldestLastQueryExecutionTime=function(){var t=null;return e.each(this._getInstallRecords(),function(e,n){null===t?t=n:n.getLastQueryExecutionTime()<t.getLastQueryExecutionTime()&&(t=n)}),t},r._getLastActiveInstallRecord=function(){var t=null;return e.each(this._getInstallRecords(),function(e,n){null===t?t=n:n.getLastQueryExecutionTime()>t.getLastQueryExecutionTime()&&(t=n)}),t},r._resetFromCookie=function(){this._initializeFromCookie()},r._deleteCookieAndReset=function(){i.remove(this._cookieName,this._options),this._resetFromCookie()}}(window,jQuery),function(){"use strict";function t(t){var e,n,i,r,o=Array.prototype.slice.call(arguments,1);for(e=0,n=o.length;e<n;e+=1)if(i=o[e])for(r in i)a.call(i,r)&&(t[r]=i[r]);return t}function e(t,e,n){this.locales=t,this.formats=e,this.pluralFn=n}function n(t){this.id=t}function i(t,e,n,i){this.id=t,this.offset=e,this.options=n,this.pluralFn=i}function r(t,e,n,i){this.id=t,this.offset=e,this.numberFormat=n,this.string=i}function o(t,e){this.id=t,this.options=e}function s(t,e,n){var i="string"==typeof t?s.__parse(t):t;if(!i||"messageFormatPattern"!==i.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),u(this,"_locale",{value:this._resolveLocale(e)});var r=s.__localeData__[this._locale].pluralRuleFunction,o=this._compilePattern(i,e,n,r),a=this;this.format=function(t){return a._format(o,t)}}var a=Object.prototype.hasOwnProperty,l=function(){try{return!!Object.defineProperty({},"a",{})}catch(t){return!1}}(),u=(!l&&Object.prototype.__defineGetter__,l?Object.defineProperty:function(t,e,n){"get"in n&&t.__defineGetter__?t.__defineGetter__(e,n.get):(!a.call(t,e)||"value"in n)&&(t[e]=n.value)}),c=Object.create||function(t,e){function n(){}var i,r;n.prototype=t,i=new n;for(r in e)a.call(e,r)&&u(i,r,e[r]);return i},p=e;e.prototype.compile=function(t){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(t)},e.prototype.compileMessage=function(t){if(!t||"messageFormatPattern"!==t.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var e,n,i,r=t.elements,o=[];for(e=0,n=r.length;e<n;e+=1)switch(i=r[e],i.type){case"messageTextElement":o.push(this.compileMessageText(i));break;case"argumentElement":o.push(this.compileArgument(i));break;default:throw new Error("Message element does not have a valid type")}return o},e.prototype.compileMessageText=function(t){return this.currentPlural&&/(^|[^\\])#/g.test(t.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new r(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,t.value)):t.value.replace(/\\#/g,"#")},e.prototype.compileArgument=function(t){var e=t.format;if(!e)return new n(t.id);var r,s=this.formats,a=this.locales,l=this.pluralFn;switch(e.type){case"numberFormat":return r=s.number[e.style],{id:t.id,format:new Intl.NumberFormat(a,r).format};case"dateFormat":return r=s.date[e.style],{id:t.id,format:new Intl.DateTimeFormat(a,r).format};case"timeFormat":return r=s.time[e.style],{id:t.id,format:new Intl.DateTimeFormat(a,r).format};case"pluralFormat":return r=this.compileOptions(t),new i(t.id,e.offset,r,l);case"selectFormat":return r=this.compileOptions(t),new o(t.id,r);default:throw new Error("Message element does not have a valid format type")}},e.prototype.compileOptions=function(t){var e=t.format,n=e.options,i={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===e.type?t:null;var r,o,s;for(r=0,o=n.length;r<o;r+=1)s=n[r],i[s.selector]=this.compileMessage(s.value);return this.currentPlural=this.pluralStack.pop(),i},n.prototype.format=function(t){return t?"string"==typeof t?t:String(t):""},i.prototype.getOption=function(t){var e=this.options;return e["="+t]||e[this.pluralFn(t-this.offset)]||e.other},r.prototype.format=function(t){var e=this.numberFormat.format(t-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+e).replace(/\\#/g,"#")},o.prototype.getOption=function(t){var e=this.options;return e[t]||e.other};var h=function(){function t(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function e(t,e,n,i,r,o){this.message=t,this.expected=e,this.found=n,this.offset=i,this.line=r,this.column=o,this.name="SyntaxError"}function n(t){function n(e){function n(e,n,i){var r,o;for(r=n;r<i;r++)o=t.charAt(r),"\n"===o?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}return Pt!==e&&(Pt>e&&(Pt=0,qt={line:1,column:1,seenCR:!1}),n(qt,Pt,e),Pt=e),qt}function i(t){jt<Ut||(jt>Ut&&(Ut=jt,Bt=[]),Bt.push(t))}function r(i,r,o){function s(t){var e=1;for(t.sort(function(t,e){return t.description<e.description?-1:t.description>e.description?1:0});e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}function a(t,e){function n(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+e(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+e(t)}).replace(/[\u0180-\u0FFF]/g,function(t){return"\\u0"+e(t)}).replace(/[\u1080-\uFFFF]/g,function(t){return"\\u"+e(t)})}var i,r,o,s=new Array(t.length);for(o=0;o<t.length;o++)s[o]=t[o].description;return i=t.length>1?s.slice(0,-1).join(", ")+" or "+s[t.length-1]:s[0],r=e?'"'+n(e)+'"':"end of input","Expected "+i+" but "+r+" found."}var l=n(o),u=o<t.length?t.charAt(o):null;return null!==r&&s(r),new e(null!==i?i:a(r,u),r,u,o,l.line,l.column)}function o(){return s()}function s(){var t,e,n;for(t=jt,e=[],n=a();n!==I;)e.push(n),n=a();return e!==I&&($t=t,e=E(e)),t=e}function a(){var t;return t=u(),t===I&&(t=p()),t}function l(){var e,n,i,r,o,s;if(e=jt,n=[],i=jt,r=w(),r!==I?(o=C(),o!==I?(s=w(),s!==I?(r=[r,o,s],i=r):(jt=i,i=A)):(jt=i,i=A)):(jt=i,i=A),i!==I)for(;i!==I;)n.push(i),i=jt,r=w(),r!==I?(o=C(),o!==I?(s=w(),s!==I?(r=[r,o,s],i=r):(jt=i,i=A)):(jt=i,i=A)):(jt=i,i=A);else n=A;return n!==I&&($t=e,n=O(n)),e=n,e===I&&(e=jt,n=v(),n!==I&&(n=t.substring(e,jt)),e=n),e}function u(){var t,e;return t=jt,e=l(),e!==I&&($t=t,e=k(e)),t=e}function c(){var e,n,r;if((e=x())===I){if(e=jt,n=[],L.test(t.charAt(jt))?(r=t.charAt(jt),jt++):(r=I,0===Ht&&i(Q)),r!==I)for(;r!==I;)n.push(r),L.test(t.charAt(jt))?(r=t.charAt(jt),jt++):(r=I,0===Ht&&i(Q));else n=A;n!==I&&(n=t.substring(e,jt)),e=n}return e}function p(){var e,n,r,o,s,a,l,u,p;return e=jt,123===t.charCodeAt(jt)?(n=N,jt++):(n=I,0===Ht&&i(j)),n!==I?(r=w(),r!==I?(o=c(),o!==I?(s=w(),s!==I?(a=jt,44===t.charCodeAt(jt)?(l=P,jt++):(l=I,0===Ht&&i(q)),l!==I?(u=w(),u!==I?(p=h(),p!==I?(l=[l,u,p],a=l):(jt=a,a=A)):(jt=a,a=A)):(jt=a,a=A),a===I&&(a=$),a!==I?(l=w(),l!==I?(125===t.charCodeAt(jt)?(u=U,jt++):(u=I,0===Ht&&i(B)),u!==I?($t=e,n=H(o,a),e=n):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A),e}function h(){var t;return t=f(),t===I&&(t=d())===I&&(t=y()),t}function f(){var e,n,r,o,s,a,l;return e=jt,t.substr(jt,6)===V?(n=V,jt+=6):(n=I,0===Ht&&i(z)),n===I&&(t.substr(jt,4)===W?(n=W,jt+=4):(n=I,0===Ht&&i(Y)),n===I&&(t.substr(jt,4)===G?(n=G,jt+=4):(n=I,0===Ht&&i(K)))),n!==I?(r=w(),r!==I?(o=jt,44===t.charCodeAt(jt)?(s=P,jt++):(s=I,0===Ht&&i(q)),s!==I?(a=w(),a!==I?(l=C(),l!==I?(s=[s,a,l],o=s):(jt=o,o=A)):(jt=o,o=A)):(jt=o,o=A),o===I&&(o=$),o!==I?($t=e,n=J(n,o),e=n):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A),e}function d(){var e,n,r,o,s,a;if(e=jt,t.substr(jt,6)===X?(n=X,jt+=6):(n=I,0===Ht&&i(Z)),n!==I)if(w()!==I)if(44===t.charCodeAt(jt)?(r=P,jt++):(r=I,0===Ht&&i(q)),r!==I)if(w()!==I)if(o=_(),o===I&&(o=$),o!==I)if(w()!==I){if(s=[],(a=g())!==I)for(;a!==I;)s.push(a),a=g();else s=A;s!==I?($t=e,n=tt(o,s),e=n):(jt=e,e=A)}else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;return e}function y(){var e,n,r,o,s;if(e=jt,t.substr(jt,6)===et?(n=et,jt+=6):(n=I,0===Ht&&i(nt)),n!==I)if(w()!==I)if(44===t.charCodeAt(jt)?(r=P,jt++):(r=I,0===Ht&&i(q)),r!==I)if(w()!==I){if(o=[],(s=g())!==I)for(;s!==I;)o.push(s),s=g();else o=A;o!==I?($t=e,n=it(o),e=n):(jt=e,e=A)}else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;else jt=e,e=A;return e}function m(){var e,n,r,o;return e=jt,n=jt,61===t.charCodeAt(jt)?(r=rt,jt++):(r=I,0===Ht&&i(ot)),r!==I?(o=x(),o!==I?(r=[r,o],n=r):(jt=n,n=A)):(jt=n,n=A),n!==I&&(n=t.substring(e,jt)),e=n,e===I&&(e=C()),e}function g(){var e,n,r,o,a,l,u,c,p;return e=jt,n=w(),n!==I?(r=m(),r!==I?(o=w(),o!==I?(123===t.charCodeAt(jt)?(a=N,jt++):(a=I,0===Ht&&i(j)),a!==I?(l=w(),l!==I?(u=s(),u!==I?(c=w(),c!==I?(125===t.charCodeAt(jt)?(p=U,jt++):(p=I,0===Ht&&i(B)),p!==I?($t=e,n=st(r,u),e=n):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A),e}function _(){var e,n,r,o;return e=jt,t.substr(jt,7)===at?(n=at,jt+=7):(n=I,0===Ht&&i(lt)),n!==I?(r=w(),r!==I?(o=x(),o!==I?($t=e,n=ut(o),e=n):(jt=e,e=A)):(jt=e,e=A)):(jt=e,e=A),e}function v(){var e,n;if(Ht++,e=[],pt.test(t.charAt(jt))?(n=t.charAt(jt),jt++):(n=I,0===Ht&&i(ht)),n!==I)for(;n!==I;)e.push(n),pt.test(t.charAt(jt))?(n=t.charAt(jt),jt++):(n=I,0===Ht&&i(ht));else e=A;return Ht--,e===I&&(n=I,0===Ht&&i(ct)),e}function w(){var e,n,r;for(Ht++,e=jt,n=[],r=v();r!==I;)n.push(r),r=v();return n!==I&&(n=t.substring(e,jt)),e=n,Ht--,e===I&&(n=I,0===Ht&&i(ft)),e}function b(){var e;return dt.test(t.charAt(jt))?(e=t.charAt(jt),jt++):(e=I,0===Ht&&i(yt)),e}function S(){var e;return mt.test(t.charAt(jt))?(e=t.charAt(jt),jt++):(e=I,0===Ht&&i(gt)),e}function x(){var e,n,r,o,s,a;if(e=jt,48===t.charCodeAt(jt)?(n=_t,jt++):(n=I,0===Ht&&i(vt)),n===I){if(n=jt,r=jt,wt.test(t.charAt(jt))?(o=t.charAt(jt),jt++):(o=I,0===Ht&&i(bt)),o!==I){for(s=[],a=b();a!==I;)s.push(a),a=b();s!==I?(o=[o,s],r=o):(jt=r,r=A)}else jt=r,r=A;r!==I&&(r=t.substring(n,jt)),n=r}return n!==I&&($t=e,n=St(n)),e=n}function T(){var e,n,r,o,s,a,l,u;return xt.test(t.charAt(jt))?(e=t.charAt(jt),jt++):(e=I,0===Ht&&i(Tt)),e===I&&(e=jt,t.substr(jt,2)===Ct?(n=Ct,jt+=2):(n=I,0===Ht&&i(Dt)),n!==I&&($t=e,n=Ft()),(e=n)===I&&(e=jt,t.substr(jt,2)===It?(n=It,jt+=2):(n=I,0===Ht&&i(Rt)),n!==I&&($t=e,n=Mt()),(e=n)===I&&(e=jt,t.substr(jt,2)===Et?(n=Et,jt+=2):(n=I,0===Ht&&i(At)),n!==I&&($t=e,n=Ot()),(e=n)===I&&(e=jt,t.substr(jt,2)===kt?(n=kt,jt+=2):(n=I,0===Ht&&i(Lt)),n!==I?(r=jt,o=jt,s=S(),s!==I?(a=S(),a!==I?(l=S(),l!==I?(u=S(),u!==I?(s=[s,a,l,u],o=s):(jt=o,o=A)):(jt=o,o=A)):(jt=o,o=A)):(jt=o,o=A),o!==I&&(o=t.substring(r,jt)),r=o,r!==I?($t=e,n=Qt(r),e=n):(jt=e,e=A)):(jt=e,e=A))))),e}function C(){var t,e,n;if(t=jt,e=[],(n=T())!==I)for(;n!==I;)e.push(n),n=T();else e=A;return e!==I&&($t=t,e=Nt(e)),t=e}var D,F=arguments.length>1?arguments[1]:{},I={},R={start:o},M=o,E=function(t){return{type:"messageFormatPattern",elements:t}},A=I,O=function(t){var e,n,i,r,o,s="";for(e=0,i=t.length;e<i;e+=1)for(r=t[e],n=0,o=r.length;n<o;n+=1)s+=r[n];return s},k=function(t){return{type:"messageTextElement",value:t}},L=/^[^ \t\n\r,.+={}#]/,Q={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},N="{",j={type:"literal",value:"{",description:'"{"'},$=null,P=",",q={type:"literal",value:",",description:'","'},U="}",B={type:"literal",value:"}",description:'"}"'},H=function(t,e){return{type:"argumentElement",id:t,format:e&&e[2]}},V="number",z={type:"literal",value:"number",description:'"number"'},W="date",Y={type:"literal",value:"date",description:'"date"'},G="time",K={type:"literal",value:"time",description:'"time"'},J=function(t,e){return{type:t+"Format",style:e&&e[2]}},X="plural",Z={type:"literal",value:"plural",description:'"plural"'},tt=function(t,e){return{type:"pluralFormat",offset:t||0,options:e}},et="select",nt={type:"literal",value:"select",description:'"select"'},it=function(t){return{type:"selectFormat",options:t}},rt="=",ot={type:"literal",value:"=",description:'"="'},st=function(t,e){return{type:"optionalFormatPattern",selector:t,value:e}},at="offset:",lt={type:"literal",value:"offset:",description:'"offset:"'},ut=function(t){return t},ct={type:"other",description:"whitespace"},pt=/^[ \t\n\r]/,ht={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ft={type:"other",description:"optionalWhitespace"},dt=/^[0-9]/,yt={type:"class",value:"[0-9]",description:"[0-9]"},mt=/^[0-9a-f]/i,gt={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},_t="0",vt={type:"literal",value:"0",description:'"0"'},wt=/^[1-9]/,bt={type:"class",value:"[1-9]",description:"[1-9]"},St=function(t){return parseInt(t,10)},xt=/^[^{}\\\0-\x1F\x7f \t\n\r]/,Tt={type:"class",value:"[^{}\\\\\\0-\\x1F\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\x7f \\t\\n\\r]"},Ct="\\#",Dt={type:"literal",value:"\\#",description:'"\\\\#"'},Ft=function(){return"\\#"},It="\\{",Rt={type:"literal",value:"\\{",description:'"\\\\{"'},Mt=function(){return"{"},Et="\\}",At={type:"literal",value:"\\}",description:'"\\\\}"'},Ot=function(){return"}"},kt="\\u",Lt={type:"literal",value:"\\u",description:'"\\\\u"'},Qt=function(t){return String.fromCharCode(parseInt(t,16))},Nt=function(t){return t.join("")},jt=0,$t=0,Pt=0,qt={line:1,column:1,seenCR:!1},Ut=0,Bt=[],Ht=0;if("startRule"in F){if(!(F.startRule in R))throw new Error("Can't start parsing from rule \""+F.startRule+'".');M=R[F.startRule]}if((D=M())!==I&&jt===t.length)return D;throw D!==I&&jt<t.length&&i({type:"end",description:"end of input"}),r(null,Bt,Ut)}return t(e,Error),{SyntaxError:e,parse:n}}(),f=s;u(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{"short":{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},"long":{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{"short":{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},"long":{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),u(s,"__localeData__",{value:c(null)}),u(s,"__addLocaleData",{value:function(t){if(!t||!t.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");if(!t.pluralRuleFunction)throw new Error("Locale data provided to IntlMessageFormat is missing a `pluralRuleFunction` property");var e=t.locale.toLowerCase().split("-")[0];s.__localeData__[e]=t}}),u(s,"__parse",{value:h.parse}),u(s,"defaultLocale",{enumerable:!0,writable:!0,value:undefined}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(t,e,n,i){return new p(e,n,i).compile(t)},s.prototype._format=function(t,e){var n,i,r,o,s,l="";for(n=0,i=t.length;n<i;n+=1)if("string"!=typeof(r=t[n])){if(o=r.id,!e||!a.call(e,o))throw new Error("A value must be provided for: "+o);s=e[o],l+=r.options?this._format(r.getOption(s),e):r.format(s)}else l+=r;return l},s.prototype._mergeFormats=function(e,n){var i,r,o={};for(i in e)a.call(e,i)&&(o[i]=r=c(e[i]),n&&a.call(n,i)&&t(r,n[i]));return o},s.prototype._resolveLocale=function(t){t||(t=s.defaultLocale),"string"==typeof t&&(t=[t]);var e,n,i,r=s.__localeData__;for(e=0,n=t.length;e<n;e+=1){if(i=t[e].split("-")[0].toLowerCase(),!/[a-z]{2,3}/.test(i))throw new Error("Language tag provided to IntlMessageFormat is not structrually valid: "+i);if(a.call(r,i))return i}throw new Error("No locale data has been added to IntlMessageFormat for: "+t.join(", "))};var d={locale:"en",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}};f.__addLocaleData(d),f.defaultLocale="en";var y=f;this.IntlMessageFormat=y}.call(this),IntlMessageFormat.__addLocaleData({locale:"af",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ak",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"am",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ar",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":2===t?"two":t%100===Math.floor(t%100)&&t%100>=3&&t%100<=10?"few":t%100===Math.floor(t%100)&&t%100>=11&&t%100<=99?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"as",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"asa",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ast",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"az",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"be",pluralRuleFunction:function(t){return t=Math.floor(t),t%10==1&&t%100!=11?"one":t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?"few":t%10==0||t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bem",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bez",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bm",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"bn",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"br",pluralRuleFunction:function(t){return t=Math.floor(t),t%10==1&&t%100!=11&&t%100!=71&&t%100!=91?"one":t%10==2&&t%100!=12&&t%100!=72&&t%100!=92?"two":t%10===Math.floor(t%10)&&(t%10>=3&&t%10<=4||t%10==9)&&!(t%100>=10&&t%100<=19||t%100>=70&&t%100<=79||t%100>=90&&t%100<=99)?"few":0!==t&&t%1e6==0?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"brx",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"bs",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ca",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cgg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"chr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cs",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":e===Math.floor(e)&&e>=2&&e<=4&&0===n?"few":0!==n?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"cy",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":2===t?"two":3===t?"few":6===t?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"da",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),1===t||0!==n&&(0===e||1===e)?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"de",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"dz",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ee",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"el",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"en",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"eo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"es",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"et",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"eu",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fa",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ff",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fil",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&(1===e||2===e||3===e||0===n&&(e%10!=4&&e%10!=6&&e%10!=9||0!==n&&i%10!=4&&i%10!=6&&i%10!=9))?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fur",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"fy",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ga",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":t===Math.floor(t)&&t>=3&&t<=6?"few":t===Math.floor(t)&&t>=7&&t<=10?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gd",pluralRuleFunction:function(t){return t=Math.floor(t),1===t||11===t?"one":2===t||12===t?"two":t===Math.floor(t)&&(t>=3&&t<=10||t>=13&&t<=19)?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gsw",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gu",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"gv",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1?"one":0===n&&e%10==2?"two":0!==n||e%100!=0&&e%100!=20&&e%100!=40&&e%100!=60&&e%100!=80?0!==n?"many":"other":"few"}}),IntlMessageFormat.__addLocaleData({locale:"ha",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"haw",pluralRuleFunction:function(t){return t=Math.floor(t),
1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"he",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":2===e&&0===n?"two":0!==n||t>=0&&t<=10||t%10!=0?"other":"many"}}),IntlMessageFormat.__addLocaleData({locale:"hi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hu",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"hy",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"id",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ig",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ii",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"is",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),0!==n||e%10!=1||e%100==11&&0===n?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"it",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ja",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"jgo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"jmc",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ka",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kab",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===e?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kde",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kea",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kk",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kkj",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kl",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"km",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"kn",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ko",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ks",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ksb",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ksh",pluralRuleFunction:function(t){return t=Math.floor(t),0===t?"zero":1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"kw",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ky",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lag",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===t?"zero":0!==e&&1!==e||0===t?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"lg",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lkt",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ln",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"lo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"lt",pluralRuleFunction:function(t){var e=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),t%10!=1||t%100>=11&&t%100<=19?t%10===Math.floor(t%10)&&t%10>=2&&t%10<=9&&!(t%100>=11&&t%100<=19)?"few":0!==e?"many":"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"lv",pluralRuleFunction:function(t){var e=t.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),t%10==0||t%100===Math.floor(t%100)&&t%100>=11&&t%100<=19||2===e&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?"zero":t%10==1&&(t%100!=11||2===e&&n%10==1&&(n%100!=11||2!==e&&n%10==1))?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mas",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mg",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mgo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0!==n||e%10!=1&&i%10!=1?"other":"one"}}),IntlMessageFormat.__addLocaleData({locale:"ml",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"mr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ms",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"mt",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":0===t||t%100===Math.floor(t%100)&&t%100>=2&&t%100<=10?"few":t%100===Math.floor(t%100)&&t%100>=11&&t%100<=19?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"my",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"naq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nb",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nd",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ne",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nnh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nso",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"nyn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"om",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"or",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"os",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pa",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&1!==e&&(e%10===Math.floor(e%10)&&e%10>=0&&e%10<=1||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=12&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ps",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"pt",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10);return t=Math.floor(t),1===e&&(0===n||0===e&&1===i)?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rm",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ro",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":0!==n||0===t||1!==t&&t%100===Math.floor(t%100)&&t%100>=1&&t%100<=19?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rof",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ru",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1&&e%100!=11?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&(e%10==0||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"rwk",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sah",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"saq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"se",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":2===t?"two":"other"}}),IntlMessageFormat.__addLocaleData({locale:"seh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ses",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"sg",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"shi",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":t===Math.floor(t)&&t>=2&&t<=10?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"si",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===t||1===t||0===e&&1===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":e===Math.floor(e)&&e>=2&&e<=4&&0===n?"few":0!==n?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sl",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%100==1?"one":0===n&&e%100==2?"two":0===n&&(e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||0!==n)?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"so",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sq",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sr",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^.]*\.?/,""),10);return t=Math.floor(t),0===n&&e%10==1&&(e%100!=11||i%10==1&&i%100!=11)?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&(!(e%100>=12&&e%100<=14)||i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))?"few":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ss",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ssy",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"st",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sv",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"sw",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ta",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"te",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"teo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"th",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"ti",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tig",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tn",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"to",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"tr",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ts",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"tzm",pluralRuleFunction:function(t){return t=Math.floor(t),t===Math.floor(t)&&t>=0&&t<=1||t===Math.floor(t)&&t>=11&&t<=99?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ug",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"uk",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),0===n&&e%10==1&&e%100!=11?"one":0===n&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?"few":0===n&&(e%10==0||0===n&&(e%10===Math.floor(e%10)&&e%10>=5&&e%10<=9||0===n&&e%100===Math.floor(e%100)&&e%100>=11&&e%100<=14))?"many":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ur",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return t=Math.floor(t),1===e&&0===n?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"uz",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"ve",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"vi",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"vo",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"vun",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"wae",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"xh",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"xog",pluralRuleFunction:function(t){return t=Math.floor(t),1===t?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"yo",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"zh",pluralRuleFunction:function(){return"other"}}),IntlMessageFormat.__addLocaleData({locale:"zu",pluralRuleFunction:function(t){var e=Math.floor(Math.abs(t));return t=Math.floor(t),0===e||1===t?"one":"other"}}),function(t,e,n,i){var r=0,o=function(){var e=i.userAgent,n=/msie\s\d+/i;return 0<e.search(n)&&(e=n.exec(e).toString(),9>(e=e.split(" ")[1]))&&(t("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,n=[].slice;if("function"!=typeof e)throw new TypeError;var i=n.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=e.prototype;var o=new o,s=e.apply(o,i.concat(n.call(arguments)));return Object(s)===s?s:o}return e.apply(t,i.concat(n.call(arguments)))};return r}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),r=i.length>>>0;if(0===r)return-1;if(n=+e||0,Infinity===Math.abs(n)&&(n=0),n>=r)return-1;for(n=Math.max(0<=n?n:r-Math.abs(n),0);n<r;){if(n in i&&i[n]===t)return n;n++}return-1});var s=function(i,r,o){this.VERSION="2.0.7",this.input=i,this.plugin_count=o,this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0,this.raf_id=null,this.is_update=this.is_key=this.force_redraw=this.dragging=!1,this.is_start=!0,this.is_click=this.is_resize=this.is_active=!1,this.$cache={win:t(n),body:t(e.body),input:t(i),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,grid:null,grid_labels:[]},o=this.$cache.input,i={type:o.data("type"),min:o.data("min"),max:o.data("max"),from:o.data("from"),to:o.data("to"),step:o.data("step"),min_interval:o.data("minInterval"),max_interval:o.data("maxInterval"),drag_interval:o.data("dragInterval"),values:o.data("values"),from_fixed:o.data("fromFixed"),from_min:o.data("fromMin"),from_max:o.data("fromMax"),from_shadow:o.data("fromShadow"),to_fixed:o.data("toFixed"),to_min:o.data("toMin"),to_max:o.data("toMax"),to_shadow:o.data("toShadow"),prettify_enabled:o.data("prettifyEnabled"),prettify_separator:o.data("prettifySeparator"),force_edges:o.data("forceEdges"),keyboard:o.data("keyboard"),keyboard_step:o.data("keyboardStep"),grid:o.data("grid"),grid_margin:o.data("gridMargin"),grid_num:o.data("gridNum"),grid_snap:o.data("gridSnap"),hide_min_max:o.data("hideMinMax"),hide_from_to:o.data("hideFromTo"),prefix:o.data("prefix"),postfix:o.data("postfix"),max_postfix:o.data("maxPostfix"),decorate_both:o.data("decorateBoth"),values_separator:o.data("valuesSeparator"),disable:o.data("disable")},i.values=i.values&&i.values.split(","),r=t.extend(i,r),(o=o.prop("value"))&&(o=o.split(";"),o[0]&&o[0]==+o[0]&&(o[0]=+o[0]),o[1]&&o[1]==+o[1]&&(o[1]=+o[1]),r.values&&r.values.length?(i.from=o[0]&&r.values.indexOf(o[0]),i.to=o[1]&&r.values.indexOf(o[1])):(i.from=o[0]&&+o[0],i.to=o[1]&&+o[1])),this.options=t.extend({type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" \u2014 ",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},r),this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single:0,p_single_real:0,p_from:0,p_from_real:0,p_to:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from:0,p_from_left:0,p_to:0,p_to_left:0,p_single:0,p_single_left:0},this.init()};s.prototype={init:function(t){this.coords.p_step=this.options.step/((this.options.max-this.options.min)/100),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)):(this.force_redraw=!0,this.calc(!0),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)),this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+'"></span>'),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to")),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents())},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),o&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),o&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this)))},pointerMove:function(t){this.dragging&&(this.coords.x_pointer=(t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(e){if(this.current_plugin===this.plugin_count&&this.is_active){this.is_active=!1;var n=this.options.onFinish&&"function"==typeof this.options.onFinish;e=t.contains(this.$cache.cont[0],e.target)||this.dragging,n&&e&&this.options.onFinish(this.result),this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,this.dragging=!1,o&&t("*").prop("unselectable",!1),this.updateScene()}},pointerDown:function(e,n){n.preventDefault();var i=n.pageX||n.originalEvent.touches&&n.originalEvent.touches[0].pageX;if(2!==n.button){switch(this.current_plugin=this.plugin_count,this.target=e,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=i-this.coords.x_gap,this.calcPointer(),e){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from),this.coords.p_gap_right=this.toFixed(this.coords.p_to-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}o&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene()}},pointerClick:function(t,e){e.preventDefault();var n=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(n-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,e=t?e+this.options.keyboard_step:e-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1)),this.coords.w_rs)){this.calcPointer(),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),t=100-this.coords.p_handle;var e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);switch("click"===this.target&&(e=this.toFixed(this.coords.p_pointer-this.coords.p_handle/2),this.target=this.chooseHandle(e)),0>e?e=0:e>t&&(e=t),this.target){case"base":e=(this.options.max-this.options.min)/100,t=(this.result.from-this.options.min)/e,e=(this.result.to-this.options.min)/e,this.coords.p_single_real=this.toFixed(t),this.coords.p_from_real=this.toFixed(t),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single=this.toFixed(t-this.coords.p_handle/100*t),this.coords.p_from=this.toFixed(t-this.coords.p_handle/100*t),this.coords.p_to=this.toFixed(e-this.coords.p_handle/100*e),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.calcWithStep(e/t*100),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single=this.toFixed(this.coords.p_single_real/100*t);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.calcWithStep(e/t*100),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),
this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from=this.toFixed(this.coords.p_from_real/100*t);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.calcWithStep(e/t*100),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to=this.toFixed(this.coords.p_to_real/100*t);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;e=this.toFixed(e+.1*this.coords.p_handle),this.coords.p_from_real=this.calcWithStep((e-this.coords.p_gap_left)/t*100),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from=this.toFixed(this.coords.p_from_real/100*t),this.coords.p_to_real=this.calcWithStep((e+this.coords.p_gap_right)/t*100),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to=this.toFixed(this.coords.p_to_real/100*t)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single,this.result.from_percent=this.coords.p_single_real,this.result.from=this.calcReal(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to-this.coords.p_from),this.result.from_percent=this.coords.p_from_real,this.result.from=this.calcReal(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.calcReal(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointer:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single+this.coords.p_handle/2-this.labels.p_single/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from+this.coords.p_handle/2-this.labels.p_from/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to+this.coords.p_handle/2-this.labels.p_to/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to)/2-this.labels.p_single/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?(this.$cache.input.prop("value",this.result.from_value),this.$cache.input.data("from",this.result.from_value)):(this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from))):(this.$cache.s_from[0].style.left=this.coords.p_from+"%",this.$cache.s_to[0].style.left=this.coords.p_to+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.options.values.length?(this.$cache.input.prop("value",this.result.from_value+";"+this.result.to_value),this.$cache.input.data("from",this.result.from_value),this.$cache.input.data("to",this.result.to_value)):(this.$cache.input.prop("value",this.result.from+";"+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||this.$cache.input.trigger("change"),this.old_from=this.result.from,this.old_to=this.result.to,!this.options.onChange||"function"!=typeof this.options.onChange||this.is_resize||this.is_update||this.is_start||this.options.onChange(this.result),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.is_key||this.is_click)&&this.options.onFinish(this.result),this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var t,e=this.options.values.length,n=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)e=e?this.decorate(n[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(e),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single>100-this.labels.p_max-1?"hidden":"visible";else{e?(this.options.decorate_both?(e=this.decorate(n[this.result.from]),e+=this.options.values_separator,e+=this.decorate(n[this.result.to])):e=this.decorate(n[this.result.from]+this.options.values_separator+n[this.result.to]),t=this.decorate(n[this.result.from]),n=this.decorate(n[this.result.to])):(this.options.decorate_both?(e=this.decorate(this._prettify(this.result.from)),e+=this.options.values_separator,e+=this.decorate(this._prettify(this.result.to))):e=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.from),t=this.decorate(this._prettify(this.result.from),this.result.from),n=this.decorate(this._prettify(this.result.to),this.result.to)),this.$cache.single.html(e),this.$cache.from.html(t),this.$cache.to.html(n),this.calcLabels(),n=Math.min(this.labels.p_single_left,this.labels.p_from_left),e=this.labels.p_single_left+this.labels.p_single,t=this.labels.p_to_left+this.labels.p_to;var i=Math.max(e,t);this.labels.p_from_left+this.labels.p_from>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?(this.$cache.from[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden",i=t):(this.$cache.from[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",i=Math.max(e,t))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=n<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=i>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var t=this.options,e=this.$cache,n="number"==typeof t.from_min&&!isNaN(t.from_min),i="number"==typeof t.from_max&&!isNaN(t.from_max),r="number"==typeof t.to_min&&!isNaN(t.to_min),o="number"==typeof t.to_max&&!isNaN(t.to_max);"single"===t.type?t.from_shadow&&(n||i)?(n=this.calcPercent(t.from_min||t.min),i=this.calcPercent(t.from_max||t.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,e.shad_single[0].style.display="block",e.shad_single[0].style.left=n+"%",e.shad_single[0].style.width=i+"%"):e.shad_single[0].style.display="none":(t.from_shadow&&(n||i)?(n=this.calcPercent(t.from_min||t.min),i=this.calcPercent(t.from_max||t.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,e.shad_from[0].style.display="block",e.shad_from[0].style.left=n+"%",e.shad_from[0].style.width=i+"%"):e.shad_from[0].style.display="none",t.to_shadow&&(r||o)?(r=this.calcPercent(t.to_min||t.min),t=this.calcPercent(t.to_max||t.max)-r,r=this.toFixed(r-this.coords.p_handle/100*r),t=this.toFixed(t-this.coords.p_handle/100*t),r+=this.coords.p_handle/2,e.shad_to[0].style.display="block",e.shad_to[0].style.left=r+"%",e.shad_to[0].style.width=t+"%"):e.shad_to[0].style.display="none")},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},calcPercent:function(t){return this.toFixed((t-this.options.min)/((this.options.max-this.options.min)/100))},calcReal:function(t){var e=this.options.min,n=this.options.max,i=0;return 0>e&&(i=Math.abs(e),e+=i,n+=i),t=(n-e)/100*t+e,(e=this.options.step.toString().split(".")[1])?t=+t.toFixed(e.length):(t/=this.options.step,t*=this.options.step,t=+t.toFixed(0)),i&&(t-=i),t<this.options.min?t=this.options.min:t>this.options.max&&(t=this.options.max),e?+t.toFixed(e.length):this.toFixed(t)},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100<e&&(e=100),100===t&&(e=100),this.toFixed(e)},checkMinInterval:function(t,e,n){var i=this.options;return i.min_interval?(t=this.calcReal(t),e=this.calcReal(e),"from"===n?e-t<i.min_interval&&(t=e-i.min_interval):t-e<i.min_interval&&(t=e+i.min_interval),this.calcPercent(t)):t},checkMaxInterval:function(t,e,n){var i=this.options;return i.max_interval?(t=this.calcReal(t),e=this.calcReal(e),"from"===n?e-t>i.max_interval&&(t=e-i.max_interval):t-e>i.max_interval&&(t=e+i.max_interval),this.calcPercent(t)):t},checkDiapason:function(t,e,n){t=this.calcReal(t);var i=this.options;return e&&"number"==typeof e||(e=i.min),n&&"number"==typeof n||(n=i.max),t<e&&(t=e),t>n&&(t=n),this.calcPercent(t)},toFixed:function(t){return+(t=t.toFixed(5))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges?(0>t?t=0:t>100-e&&(t=100-e),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,e,n=this.options,i=this.result,r=n.values,o=r.length;if("string"==typeof n.min&&(n.min=+n.min),"string"==typeof n.max&&(n.max=+n.max),"string"==typeof n.from&&(n.from=+n.from),"string"==typeof n.to&&(n.to=+n.to),"string"==typeof n.step&&(n.step=+n.step),"string"==typeof n.from_min&&(n.from_min=+n.from_min),"string"==typeof n.from_max&&(n.from_max=+n.from_max),"string"==typeof n.to_min&&(n.to_min=+n.to_min),"string"==typeof n.to_max&&(n.to_max=+n.to_max),"string"==typeof n.keyboard_step&&(n.keyboard_step=+n.keyboard_step),"string"==typeof n.grid_num&&(n.grid_num=+n.grid_num),n.max<=n.min&&(n.max=n.min?2*n.min:n.min+1,n.step=1),o)for(n.p_values=[],n.min=0,n.max=o-1,n.step=1,n.grid_num=n.max,n.grid_snap=!0,e=0;e<o;e++)t=+r[e],isNaN(t)?t=r[e]:(r[e]=t,t=this._prettify(t)),n.p_values.push(t);("number"!=typeof n.from||isNaN(n.from))&&(n.from=n.min),("number"!=typeof n.to||isNaN(n.from))&&(n.to=n.max),(n.from<n.min||n.from>n.max)&&(n.from=n.min),(n.to>n.max||n.to<n.min)&&(n.to=n.max),"double"===n.type&&n.from>n.to&&(n.from=n.to),("number"!=typeof n.step||isNaN(n.step)||!n.step||0>n.step)&&(n.step=1),("number"!=typeof n.keyboard_step||isNaN(n.keyboard_step)||!n.keyboard_step||0>n.keyboard_step)&&(n.keyboard_step=5),n.from_min&&n.from<n.from_min&&(n.from=n.from_min),n.from_max&&n.from>n.from_max&&(n.from=n.from_max),n.to_min&&n.to<n.to_min&&(n.to=n.to_min),n.to_max&&n.from>n.to_max&&(n.to=n.to_max),i&&(i.min!==n.min&&(i.min=n.min),i.max!==n.max&&(i.max=n.max),(i.from<i.min||i.from>i.max)&&(i.from=n.from),(i.to<i.min||i.to>i.max)&&(i.to=n.to)),("number"!=typeof n.min_interval||isNaN(n.min_interval)||!n.min_interval||0>n.min_interval)&&(n.min_interval=0),("number"!=typeof n.max_interval||isNaN(n.max_interval)||!n.max_interval||0>n.max_interval)&&(n.max_interval=0),n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min),n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(t,e){var n="",i=this.options;return i.prefix&&(n+=i.prefix),n+=t,i.max_postfix&&(i.values.length&&t===i.p_values[i.max]?(n+=i.max_postfix,i.postfix&&(n+=" ")):e===i.max&&(n+=i.max_postfix,i.postfix&&(n+=" "))),i.postfix&&(n+=i.postfix),n},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.calcPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.calcPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,n=this.options;t=n.max-n.min;var i,r,o=n.grid_num,s=0,a=0,l=4,u=0,c="";for(this.calcGridMargin(),n.grid_snap?(o=t/n.step,s=this.toFixed(n.step/(t/100))):s=this.toFixed(100/o),4<o&&(l=3),7<o&&(l=2),14<o&&(l=1),28<o&&(l=0),t=0;t<o+1;t++){for(i=l,a=this.toFixed(s*t),100<a&&(a=100,0>(i-=2)&&(i=0)),this.coords.big[t]=a,r=(a-s*(t-1))/(i+1),e=1;e<=i&&0!==a;e++)u=this.toFixed(a-r*e),c+='<span class="irs-grid-pol small" style="left: '+u+'%"></span>';c+='<span class="irs-grid-pol" style="left: '+a+'%"></span>',u=this.calcReal(a),u=n.values.length?n.p_values[u]:this._prettify(u),c+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+a+'%">'+u+"</span>"}this.coords.big_num=Math.ceil(o+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(c),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e,n=this.coords.big_num;for(e=0;e<n;e++)t=this.$cache.grid.find(".js-grid-text-"+e),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,e;e=[];var n=[],i=this.coords.big_num;for(t=0;t<i;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),e[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),n[t]=this.toFixed(e[t]+this.coords.big_p[t]);for(this.options.force_edges&&(e[0]<-this.coords.grid_gap&&(e[0]=-this.coords.grid_gap,n[0]=this.toFixed(e[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),n[i-1]>100+this.coords.grid_gap&&(n[i-1]=100+this.coords.grid_gap,e[i-1]=this.toFixed(n[i-1]-this.coords.big_p[i-1]),this.coords.big_x[i-1]=this.toFixed(this.coords.big_p[i-1]-this.coords.grid_gap))),this.calcGridCollision(2,e,n),this.calcGridCollision(4,e,n),t=0;t<i;t++)e=this.$cache.grid_labels[t][0],e.style.marginLeft=-this.coords.big_x[t]+"%"},calcGridCollision:function(t,e,n){var i,r,o,s=this.coords.big_num;for(i=0;i<s&&!((r=i+t/2)>=s);i+=t)o=this.$cache.grid_labels[r][0],o.style.visibility=n[i]<=e[r]?"visible":"hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(e){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.options=t.extend(this.options,e),this.validate(),this.updateResult(e),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}},t.fn.ionRangeSlider=function(e){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new s(this,e,r++))})},function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!n.requestAnimationFrame;++i)n.requestAnimationFrame=n[e[i]+"RequestAnimationFrame"],n.cancelAnimationFrame=n[e[i]+"CancelAnimationFrame"]||n[e[i]+"CancelRequestAnimationFrame"];n.requestAnimationFrame||(n.requestAnimationFrame=function(e){var i=(new Date).getTime(),r=Math.max(0,16-(i-t)),o=n.setTimeout(function(){e(i+r)},r);return t=i+r,o}),n.cancelAnimationFrame||(n.cancelAnimationFrame=function(t){clearTimeout(t)})}()}(jQuery,document,window,navigator),
//! moment.js
//! version : 2.10.3
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
//! THIS IS A MODIFIED VERSION -- hamedahmadi 19/06/2015
function(t,e){t.moment=e()}(this,function(){"use strict";function t(){return Mn.apply(null,arguments)}function e(t){Mn=t}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function a(t,e,n,i){return Ct(t,e,n,i,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(t){return null==t._pf&&(t._pf=l()),t._pf}function c(t){if(null==t._isValid){var e=u(t);t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&e.bigHour===undefined)}return t._isValid}function p(t){var e=a(NaN);return null!=t?s(u(e),t):u(e).userInvalidated=!0,e}function h(t,e){var n,i,r;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=u(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),An.length>0)for(n in An)i=An[n],void 0!==(r=e[i])&&(t[i]=r);return t}function f(e){h(this,e),this._d=new Date(+e._d),On===!1&&(On=!0,t.updateOffset(this),On=!1)}function d(t){return t instanceof f||null!=t&&null!=t._isAMomentObject}function y(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function m(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&y(t[i])!==y(e[i]))&&s++;return s+o}function g(){}function _(t){return t?t.toLowerCase().replace("_","-"):t}function v(t){for(var e,n,i,r,o=0;o<t.length;){for(r=_(t[o]).split("-"),e=r.length,n=_(t[o+1]),n=n?n.split("-"):null;e>0;){if(i=w(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&m(r,n,!0)>=e-1)break;e--}o++}return null}function w(t){var e=null;if(!kn[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=En._abbr,require("./locale/"+t),b(e)}catch(t){}return kn[t]}function b(t,e){var n;return t&&(n=void 0===e?x(t):S(t,e))&&(En=n),En._abbr}function S(t,e){return null!==e?(e.abbr=t,kn[t]||(kn[t]=new g),kn[t].set(e),b(t),kn[t]):(delete kn[t],null)}function x(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return En;if(!n(t)){if(e=w(t))return e;t=[t]}return v(t)}function T(t,e){var n=t.toLowerCase();Ln[n]=Ln[n+"s"]=Ln[e]=t}function C(t){return"string"==typeof t?Ln[t]||Ln[t.toLowerCase()]:undefined}function D(t){var e,n,i={};for(n in t)o(t,n)&&(e=C(n))&&(i[e]=t[n]);return i}function F(e,n){return function(i){return null!=i?(R(this,e,i),t.updateOffset(this,n),this):I(this,e)}}function I(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function R(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function M(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=C(t),"function"==typeof this[t])return this[t](e);return this}function E(t,e,n){for(var i=""+Math.abs(t),r=t>=0;i.length<e;)i="0"+i;return(r?n?"+":"":"-")+i}function A(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&($n[t]=r),e&&($n[e[0]]=function(){return E(r.apply(this,arguments),e[1],e[2])}),n&&($n[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function O(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function k(t){var e,n,i=t.match(Qn);for(e=0,n=i.length;e<n;e++)$n[i[e]]?i[e]=$n[i[e]]:i[e]=O(i[e]);return function(r){var o="";for(e=0;e<n;e++)o+=i[e]instanceof Function?i[e].call(r,t):i[e];return o}}function L(t,e){return t.isValid()?(e=Q(e,t.localeData()),jn[e]||(jn[e]=k(e)),jn[e](t)):t.localeData().invalidDate()}function Q(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Nn.lastIndex=0;i>=0&&Nn.test(t);)t=t.replace(Nn,n),Nn.lastIndex=0,i-=1;return t}function N(t,e,n){ti[t]="function"==typeof e?e:function(t){return t&&n?n:e}}function j(t,e){return o(ti,t)?ti[t](e._strict,e._locale):new RegExp($(t))}function $(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function P(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=y(t)}),n=0;n<t.length;n++)ei[t[n]]=i}function q(t,e){P(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}function U(t,e,n){null!=e&&o(ei,t)&&ei[t](e,n._a,n,t)}function B(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function H(t){return this._months[t.month()]}function V(t){return this._monthsShort[t.month()]}function z(t,e,n){var i,r,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=a([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function W(t,e){var n;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))?t:(n=Math.min(t.date(),B(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function Y(e){return null!=e?(W(this,e),t.updateOffset(this,!0),this):I(this,"Month")}function G(){return B(this.year(),this.month())}function K(t){var e,n=t._a;return n&&u(t).overflow===-2&&(e=n[ii]<0||n[ii]>11?ii:n[ri]<1||n[ri]>B(n[ni],n[ii])?ri:n[oi]<0||n[oi]>24||24===n[oi]&&(0!==n[si]||0!==n[ai]||0!==n[li])?oi:n[si]<0||n[si]>59?si:n[ai]<0||n[ai]>59?ai:n[li]<0||n[li]>999?li:-1,u(t)._overflowDayOfYear&&(e<ni||e>ri)&&(e=ri),u(t).overflow=e),t}function J(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function X(t,e){var n=!0,i=t+"\n"+(new Error).stack;return s(function(){return n&&(J(i),n=!1),e.apply(this,arguments)},e)}function Z(t,e){pi[t]||(J(e),pi[t]=!0)}function tt(t){var e,n,i=t._i,r=hi.exec(i);if(r){for(u(t).iso=!0,e=0,n=fi.length;e<n;e++)if(fi[e][1].exec(i)){t._f=fi[e][0]+(r[6]||" ");break}for(e=0,n=di.length;e<n;e++)if(di[e][1].exec(i)){t._f+=di[e][0];break}i.match(Jn)&&(t._f+="Z"),vt(t)}else t._isValid=!1}function et(e){var n=yi.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));tt(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))}function nt(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return t<1970&&a.setFullYear(t),a}function it(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function rt(t){return ot(t)?366:365}function ot(t){return t%4==0&&t%100!=0||t%400==0}function st(){return ot(this.year())}function at(t,e,n){var i,r=n-e,o=n-t.day();return o>r&&(o-=7),o<r-7&&(o+=7),i=Dt(t).add(o,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function lt(t){return at(t,this._week.dow,this._week.doy).week}function ut(){return this._week.dow}function ct(){return this._week.doy}function pt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ht(t){var e=at(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function ft(t,e,n,i,r){var o,s,a=it(t,0,1).getUTCDay();return a=0===a?7:a,n=null!=n?n:r,o=r-a+(a>i?7:0)-(a<r?7:0),s=7*(e-1)+(n-r)+o+1,{year:s>0?t:t-1,dayOfYear:s>0?s:rt(t-1)+s}}function dt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function yt(t,e,n){return null!=t?t:null!=e?e:n}function mt(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function gt(t){var e,n,i,r,o=[];if(!t._d){for(i=mt(t),t._w&&null==t._a[ri]&&null==t._a[ii]&&_t(t),t._dayOfYear&&(r=yt(t._a[ni],i[ni]),t._dayOfYear>rt(r)&&(u(t)._overflowDayOfYear=!0),n=it(r,0,t._dayOfYear),t._a[ii]=n.getUTCMonth(),t._a[ri]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[oi]&&0===t._a[si]&&0===t._a[ai]&&0===t._a[li]&&(t._nextDay=!0,t._a[oi]=0),t._d=(t._useUTC?it:nt).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[oi]=24)}}function _t(t){var e,n,i,r,o,s,a;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,s=4,n=yt(e.GG,t._a[ni],at(Dt(),1,4).year),i=yt(e.W,1),r=yt(e.E,1)):(o=t._locale._week.dow,s=t._locale._week.doy,n=yt(e.gg,t._a[ni],at(Dt(),o,s).year),i=yt(e.w,1),null!=e.d?(r=e.d)<o&&++i:r=null!=e.e?e.e+o:o),a=ft(n,i,r,s,o),t._a[ni]=a.year,t._dayOfYear=a.dayOfYear}function vt(e){if(e._f===t.ISO_8601)return void tt(e);e._a=[],u(e).empty=!0;var n,i,r,o,s,a=""+e._i,l=a.length,c=0;for(r=Q(e._f,e._locale).match(Qn)||[],n=0;n<r.length;n++)o=r[n],i=(a.match(j(o,e))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&u(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),c+=i.length),$n[o]?(i?u(e).empty=!1:u(e).unusedTokens.push(o),U(o,i,e)):e._strict&&!i&&u(e).unusedTokens.push(o);u(e).charsLeftOver=l-c,a.length>0&&u(e).unusedInput.push(a),u(e).bigHour===!0&&e._a[oi]<=12&&e._a[oi]>0&&(u(e).bigHour=undefined),e._a[oi]=wt(e._locale,e._a[oi],e._meridiem),gt(e),K(e)}function wt(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function bt(t){var e,n,i,r,o;if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=h({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],vt(e),c(e)&&(o+=u(e).charsLeftOver,o+=10*u(e).unusedTokens.length,u(e).score=o,(null==i||o<i)&&(i=o,n=e));s(t,n||e)}function St(t){if(!t._d){var e=D(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],gt(t)}}function xt(t){var e,r=t._i,o=t._f;return t._locale=t._locale||x(t._l),null===r||o===undefined&&""===r?p({nullInput:!0}):("string"==typeof r&&(t._i=r=t._locale.preparse(r)),d(r)?new f(K(r)):(n(o)?bt(t):o?vt(t):i(r)?t._d=r:Tt(t),e=new f(K(t)),e._nextDay&&(e.add(1,"d"),e._nextDay=undefined),e))}function Tt(e){var o=e._i;o===undefined?e._d=new Date:i(o)?e._d=new Date(+o):"string"==typeof o?et(e):n(o)?(e._a=r(o.slice(0),function(t){return parseInt(t,10)}),gt(e)):"object"==typeof o?St(e):"number"==typeof o?e._d=new Date(o):t.createFromInputFallback(e)}function Ct(t,e,n,i,r){var o={};return"boolean"==typeof n&&(i=n,n=undefined),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=t,o._f=e,o._strict=i,xt(o)}function Dt(t,e,n,i){return Ct(t,e,n,i,!1)}function Ft(t,e){var i,r;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Dt();for(i=e[0],r=1;r<e.length;++r)e[r][t](i)&&(i=e[r]);return i}function It(){return Ft("isBefore",[].slice.call(arguments,0))}function Rt(){return Ft("isAfter",[].slice.call(arguments,0))}function Mt(t){var e=D(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*a,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=x(),this._bubble()}function Et(t){return t instanceof Mt}function At(t,e){A(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+E(~~(t/60),2)+e+E(~~t%60,2)})}function Ot(t){var e=(t||"").match(Jn)||[],n=e[e.length-1]||[],i=(n+"").match(wi)||["-",0,0],r=+(60*i[1])+y(i[2]);return"+"===i[0]?r:-r}function kt(e,n){var r,o;return n._isUTC?(r=n.clone(),o=(d(e)||i(e)?+e:+Dt(e))-+r,r._d.setTime(+r._d+o),t.updateOffset(r,!1),r):Dt(e).local()}function Lt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Qt(e,n){var i,r=this._offset||0;return null!=e?("string"==typeof e&&(e=Ot(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&n&&(i=Lt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?Xt(this,Wt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Lt(this)}function Nt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function jt(t){return this.utcOffset(0,t)}function $t(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Lt(this),"m")),this}function Pt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ot(this._i)),this}function qt(t){return t=t?Dt(t).utcOffset():0,(this.utcOffset()-t)%60==0}function Ut(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(this._a){var t=this._isUTC?a(this._a):Dt(this._a);return this.isValid()&&m(this._a,t.toArray())>0}return!1}function Ht(){return!this._isUTC}function Vt(){return this._isUTC}function zt(){return this._isUTC&&0===this._offset}function Wt(t,e){var n,i,r,s=t,a=null;return Et(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(a=bi.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:y(a[ri])*n,h:y(a[oi])*n,m:y(a[si])*n,s:y(a[ai])*n,ms:y(a[li])*n}):(a=Si.exec(t))?(n="-"===a[1]?-1:1,s={y:Yt(a[2],n),M:Yt(a[3],n),d:Yt(a[4],n),h:Yt(a[5],n),m:Yt(a[6],n),s:Yt(a[7],n),w:Yt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Kt(Dt(s.from),Dt(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),i=new Mt(s),Et(t)&&o(t,"_locale")&&(i._locale=t._locale),i}function Yt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Gt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Kt(t,e){var n;return e=kt(e,t),t.isBefore(e)?n=Gt(t,e):(n=Gt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Jt(t,e){return function(n,i){var r,o;return null===i||isNaN(+i)||(Z(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Wt(n,i),Xt(this,r,t),this}}function Xt(e,n,i,r){var o=n._milliseconds,s=n._days,a=n._months;r=null==r||r,o&&e._d.setTime(+e._d+o*i),s&&R(e,"Date",I(e,"Date")+s*i),a&&W(e,I(e,"Month")+a*i),r&&t.updateOffset(e,s||a)}function Zt(t){var e=t||Dt(),n=kt(e,this).startOf("day"),i=this.diff(n,"days",!0),r=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,Dt(e)))}function te(){return new f(this)}function ee(t,e){return e=C(void 0!==e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Dt(t),+this>+t):(d(t)?+t:+Dt(t))<+this.clone().startOf(e)}function ne(t,e){var n;return e=C(void 0!==e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Dt(t),+this<+t):(n=d(t)?+t:+Dt(t),+this.clone().endOf(e)<n)}function ie(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function re(t,e){var n;return e=C(e||"millisecond"),"millisecond"===e?(t=d(t)?t:Dt(t),+this==+t):(n=+Dt(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function oe(t){return t<0?Math.ceil(t):Math.floor(t)}function se(t,e,n){var i,r,o=kt(t,this),s=6e4*(o.utcOffset()-this.utcOffset());return e=C(e),"year"===e||"month"===e||"quarter"===e?(r=ae(this,o),"quarter"===e?r/=3:"year"===e&&(r/=12)):(i=this-o,r="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-s)/864e5:"week"===e?(i-s)/6048e5:i),n?r:oe(r)}function ae(t,e){var n,i,r=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(r,"months");return e-o<0?(n=t.clone().add(r-1,"months"),i=(e-o)/(o-n)):(n=t.clone().add(r+1,"months"),i=(e-o)/(n-o)),-(r+i)}function le(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ue(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():L(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):L(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ce(e){var n=L(this,e||t.defaultFormat);return this.localeData().postformat(n)}function pe(t,e){return this.isValid()?Wt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function he(t){return this.from(Dt(),t)}function fe(t,e){return this.isValid()?Wt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function de(t){return this.to(Dt(),t)}function ye(t){var e;return t===undefined?this._locale._abbr:(e=x(t),null!=e&&(this._locale=e),this)}function me(){return this._locale}function ge(t){switch(t=C(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function _e(t){return t=C(t),t===undefined||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function ve(){return+this._d-6e4*(this._offset||0)}function we(){return Math.floor(+this/1e3)}function be(){return this._offset?new Date(+this):this._d}function Se(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xe(){return c(this)}function Te(){return s({},u(this))}function Ce(){return u(this).overflow}function De(t,e){A(0,[t,t.length],0,e)}function Fe(t,e,n){return at(Dt([t,11,31+e-n]),e,n).week}function Ie(t){var e=at(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function Re(t){var e=at(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Me(){return Fe(this.year(),1,4)}function Ee(){var t=this.localeData()._week;return Fe(this.year(),t.dow,t.doy)}function Ae(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Oe(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}function ke(t){return this._weekdays[t.day()]}function Le(t){return this._weekdaysShort[t.day()]}function Qe(t){return this._weekdaysMin[t.day()]}function Ne(t){var e,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;e<7;e++)if(this._weekdaysParse[e]||(n=Dt([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function je(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Oe(t,this.localeData()),this.add(t-e,"d")):e}function $e(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Pe(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function qe(t,e){A(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ue(t,e){return e._meridiemParse}function Be(t){return"p"===(t+"").toLowerCase().charAt(0)}function He(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Ve(t){A(0,[t,3],0,"millisecond")}function ze(){return this._isUTC?"UTC":""}function We(){return this._isUTC?"Coordinated Universal Time":""}function Ye(t){return Dt(1e3*t)}function Ge(){return Dt.apply(null,arguments).parseZone()}function Ke(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.call(e,n):i}function Je(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e}function Xe(){return this._invalidDate}function Ze(t){return this._ordinal.replace("%d",t)}function tn(t){return t}function en(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)}function nn(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function rn(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function on(t,e,n,i){var r=x(),o=a().set(i,e);return r[n](o,t)}function sn(t,e,n,i,r){if("number"==typeof t&&(e=t,t=undefined),t=t||"",null!=e)return on(t,e,n,r);var o,s=[];for(o=0;o<i;o++)s[o]=on(t,o,n,r);return s}function an(t,e){return sn(t,e,"months",12,"month")}function ln(t,e){return sn(t,e,"monthsShort",12,"month")}function un(t,e){return sn(t,e,"weekdays",7,"day")}function cn(t,e){return sn(t,e,"weekdaysShort",7,"day")}function pn(t,e){return sn(t,e,"weekdaysMin",7,"day")}function hn(){var t=this._data;return this._milliseconds=Ui(this._milliseconds),this._days=Ui(this._days),this._months=Ui(this._months),t.milliseconds=Ui(t.milliseconds),t.seconds=Ui(t.seconds),t.minutes=Ui(t.minutes),t.hours=Ui(t.hours),t.months=Ui(t.months),t.years=Ui(t.years),this}function fn(t,e,n,i){var r=Wt(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function dn(t,e){return fn(this,t,e,1)}function yn(t,e){return fn(this,t,e,-1)}function mn(){var t,e,n,i=this._milliseconds,r=this._days,o=this._months,s=this._data,a=0;return s.milliseconds=i%1e3,t=oe(i/1e3),s.seconds=t%60,e=oe(t/60),s.minutes=e%60,n=oe(e/60),s.hours=n%24,r+=oe(n/24),a=oe(gn(r)),r-=oe(_n(a)),o+=oe(r/30),r%=30,a+=oe(o/12),o%=12,s.days=r,s.months=o,s.years=a,this}function gn(t){return 400*t/146097}function _n(t){return 146097*t/400}function vn(t){var e,n,i=this._milliseconds;if("month"===(t=C(t))||"year"===t)return e=this._days+i/864e5,n=this._months+12*gn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(_n(this._months/12)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function wn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function bn(t){return function(){return this.as(t)}}function Sn(t){return t=C(t),this[t+"s"]()}function xn(t){return function(){return this._data[t]}}function Tn(){return oe(this.days()/7)}function Cn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function Dn(t,e,n){var i=Wt(t).abs(),r=rr(i.as("s")),o=rr(i.as("m")),s=rr(i.as("h")),a=rr(i.as("d")),l=rr(i.as("M")),u=rr(i.as("y")),c=r<or.s&&["s",r]||1===o&&["m"]||o<or.m&&["mm",o]||1===s&&["h"]||s<or.h&&["hh",s]||1===a&&["d"]||a<or.d&&["dd",a]||1===l&&["M"]||l<or.M&&["MM",l]||1===u&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,Cn.apply(null,c)}function Fn(t,e){return or[t]!==undefined&&(e===undefined?or[t]:(or[t]=e,!0))}function In(t){var e=this.localeData(),n=Dn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Rn(){var t=sr(this.years()),e=sr(this.months()),n=sr(this.days()),i=sr(this.hours()),r=sr(this.minutes()),o=sr(this.seconds()+this.milliseconds()/1e3),s=this.asSeconds();return s?(s<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||o?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(o?o+"S":""):"P0D"}var Mn,En,An=t.momentProperties=[],On=!1,kn={},Ln={},Qn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jn={},$n={},Pn=/\d/,qn=/\d\d/,Un=/\d{3}/,Bn=/\d{4}/,Hn=/[+-]?\d{6}/,Vn=/\d\d?/,zn=/\d{1,3}/,Wn=/\d{1,4}/,Yn=/[+-]?\d{1,6}/,Gn=/\d+/,Kn=/[+-]?\d+/,Jn=/Z|[+-]\d\d:?\d\d/gi,Xn=/[+-]?\d+(\.\d{1,3})?/,Zn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ti={},ei={},ni=0,ii=1,ri=2,oi=3,si=4,ai=5,li=6;A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),A("MMMM",0,0,function(t){return this.localeData().months(this,t)}),T("month","M"),N("M",Vn),N("MM",Vn,qn),N("MMM",Zn),N("MMMM",Zn),P(["M","MM"],function(t,e){e[ii]=y(t)-1}),P(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[ii]=r:u(n).invalidMonth=t});var ui="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pi={};t.suppressDeprecationWarnings=!1;var hi=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],di=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],yi=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=X("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),T("year","y"),N("Y",Kn),N("YY",Vn,qn),N("YYYY",Wn,Bn),N("YYYYY",Yn,Hn),N("YYYYYY",Yn,Hn),P(["YYYY","YYYYY","YYYYYY"],ni),P("YY",function(e,n){n[ni]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var mi=F("FullYear",!1);A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),N("w",Vn),N("ww",Vn,qn),N("W",Vn),N("WW",Vn,qn),q(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=y(t)});var gi={dow:0,doy:6};A("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),N("DDD",zn),N("DDDD",Un),P(["DDD","DDDD"],function(t,e,n){n._dayOfYear=y(t)}),t.ISO_8601=function(){};var _i=X("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return t<this?this:t}),vi=X("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return t>this?this:t});At("Z",":"),At("ZZ",""),N("Z",Jn),N("ZZ",Jn),P(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ot(t)});var wi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var bi=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Si=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Wt.fn=Mt.prototype;var xi=Jt(1,"add"),Ti=Jt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Ci=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===undefined?this.localeData():this.locale(t)});A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100}),De("gggg","weekYear"),De("ggggg","weekYear"),De("GGGG","isoWeekYear"),De("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),N("G",Kn),N("g",Kn),N("GG",Vn,qn),N("gg",Vn,qn),N("GGGG",Wn,Bn),N("gggg",Wn,Bn),N("GGGGG",Yn,Hn),N("ggggg",Yn,Hn),q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=y(t)}),q(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),A("Q",0,0,"quarter"),T("quarter","Q"),N("Q",Pn),P("Q",function(t,e){e[ii]=3*(y(t)-1)}),A("D",["DD",2],"Do","date"),T("date","D"),N("D",Vn),N("DD",Vn,qn),N("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),P(["D","DD"],ri),P("Do",function(t,e){e[ri]=y(t.match(Vn)[0],10)});var Di=F("Date",!0);A("d",0,"do","day"),A("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),A("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),A("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),N("d",Vn),N("e",Vn),N("E",Vn),N("dd",Zn),N("ddd",Zn),N("dddd",Zn),q(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:u(n).invalidWeekday=t}),q(["d","e","E"],function(t,e,n,i){e[i]=y(t)});var Fi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ri="Su_Mo_Tu_We_Th_Fr_Sa".split("_");A("H",["HH",2],0,"hour"),A("h",["hh",2],0,function(){return this.hours()%12||12}),qe("a",!0),qe("A",!1),T("hour","h"),N("a",Ue),N("A",Ue),N("H",Vn),N("h",Vn),N("HH",Vn,qn),N("hh",Vn,qn),P(["H","HH"],oi),P(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),P(["h","hh"],function(t,e,n){e[oi]=y(t),u(n).bigHour=!0});var Mi=/[ap]\.?m?\.?/i,Ei=F("Hours",!0);A("m",["mm",2],0,"minute"),T("minute","m"),N("m",Vn),N("mm",Vn,qn),P(["m","mm"],si);var Ai=F("Minutes",!1);A("s",["ss",2],0,"second"),T("second","s"),N("s",Vn),N("ss",Vn,qn),P(["s","ss"],ai);var Oi=F("Seconds",!1);A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ve("SSS"),Ve("SSSS"),T("millisecond","ms"),N("S",zn,Pn),N("SS",zn,qn),N("SSS",zn,Un),N("SSSS",Gn),P(["S","SS","SSS","SSSS"],function(t,e){e[li]=y(1e3*("0."+t))});var ki=F("Milliseconds",!1);A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var Li=f.prototype;Li.add=xi,Li.calendar=Zt,Li.clone=te,Li.diff=se,Li.endOf=_e,Li.format=ce,Li.from=pe,Li.fromNow=he,Li.to=fe,Li.toNow=de,Li.get=M,Li.invalidAt=Ce,Li.isAfter=ee,Li.isBefore=ne,Li.isBetween=ie,Li.isSame=re,Li.isValid=xe,Li.lang=Ci,Li.locale=ye,Li.localeData=me,Li.max=vi,Li.min=_i,Li.parsingFlags=Te,Li.set=M,Li.startOf=ge,Li.subtract=Ti,Li.toArray=Se,Li.toDate=be,Li.toISOString=ue,Li.toJSON=ue,Li.toString=le,Li.unix=we,Li.valueOf=ve,Li.year=mi,Li.isLeapYear=st,Li.weekYear=Ie,Li.isoWeekYear=Re,Li.quarter=Li.quarters=Ae,Li.month=Y,Li.daysInMonth=G,Li.week=Li.weeks=pt,Li.isoWeek=Li.isoWeeks=ht,Li.weeksInYear=Ee,Li.isoWeeksInYear=Me,Li.date=Di,Li.day=Li.days=je,Li.weekday=$e,Li.isoWeekday=Pe,Li.dayOfYear=dt,Li.hour=Li.hours=Ei,Li.minute=Li.minutes=Ai,Li.second=Li.seconds=Oi,Li.millisecond=Li.milliseconds=ki,Li.utcOffset=Qt,Li.utc=jt,Li.local=$t,Li.parseZone=Pt,Li.hasAlignedHourOffset=qt,Li.isDST=Ut,Li.isDSTShifted=Bt,Li.isLocal=Ht,Li.isUtcOffset=Vt,Li.isUtc=zt,Li.isUTC=zt,Li.zoneAbbr=ze,Li.zoneName=We,Li.dates=X("dates accessor is deprecated. Use date instead.",Di),Li.months=X("months accessor is deprecated. Use month instead",Y),Li.years=X("years accessor is deprecated. Use year instead",mi),Li.zone=X("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Nt);var Qi=Li,Ni={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ji={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},$i=/\d{1,2}/,Pi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},qi=g.prototype;qi._calendar=Ni,qi.calendar=Ke,qi._longDateFormat=ji,qi.longDateFormat=Je,qi._invalidDate="Invalid date",qi.invalidDate=Xe,qi._ordinal="%d",qi.ordinal=Ze,qi._ordinalParse=$i,qi.preparse=tn,qi.postformat=tn,qi._relativeTime=Pi,qi.relativeTime=en,qi.pastFuture=nn,qi.set=rn,qi.months=H,qi._months=ui,qi.monthsShort=V,qi._monthsShort=ci,qi.monthsParse=z,qi.week=lt,qi._week=gi,qi.firstDayOfYear=ct,qi.firstDayOfWeek=ut,qi.weekdays=ke,qi._weekdays=Fi,qi.weekdaysMin=Qe,qi._weekdaysMin=Ri,qi.weekdaysShort=Le,qi._weekdaysShort=Ii,qi.weekdaysParse=Ne,qi.isPM=Be,qi._meridiemParse=Mi,qi.meridiem=He,b("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=X("moment.lang is deprecated. Use moment.locale instead.",b),t.langData=X("moment.langData is deprecated. Use moment.localeData instead.",x)
;var Ui=Math.abs,Bi=bn("ms"),Hi=bn("s"),Vi=bn("m"),zi=bn("h"),Wi=bn("d"),Yi=bn("w"),Gi=bn("M"),Ki=bn("y"),Ji=xn("milliseconds"),Xi=xn("seconds"),Zi=xn("minutes"),tr=xn("hours"),er=xn("days"),nr=xn("months"),ir=xn("years"),rr=Math.round,or={s:45,m:45,h:22,d:26,M:11},sr=Math.abs,ar=Mt.prototype;return ar.abs=hn,ar.add=dn,ar.subtract=yn,ar.as=vn,ar.asMilliseconds=Bi,ar.asSeconds=Hi,ar.asMinutes=Vi,ar.asHours=zi,ar.asDays=Wi,ar.asWeeks=Yi,ar.asMonths=Gi,ar.asYears=Ki,ar.valueOf=wn,ar._bubble=mn,ar.get=Sn,ar.milliseconds=Ji,ar.seconds=Xi,ar.minutes=Zi,ar.hours=tr,ar.days=er,ar.weeks=Tn,ar.months=nr,ar.years=ir,ar.humanize=In,ar.toISOString=Rn,ar.toString=Rn,ar.toJSON=Rn,ar.locale=ye,ar.localeData=me,ar.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),ar.lang=Ci,A("X",0,0,"unix"),A("x",0,0,"valueOf"),N("x",Kn),N("X",Xn),P("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),P("x",function(t,e,n){n._d=new Date(y(t))}),t.version="2.10.3",e(Dt),t.fn=Qi,t.min=It,t.max=Rt,t.utc=a,t.unix=Ye,t.months=an,t.isDate=i,t.locale=b,t.invalid=p,t.duration=Wt,t.isMoment=d,t.weekdays=un,t.parseZone=Ge,t.localeData=x,t.isDuration=Et,t.monthsShort=ln,t.weekdaysMin=pn,t.defineLocale=S,t.weekdaysShort=cn,t.normalizeUnits=C,t.relativeTimeThreshold=Fn,t}),function(t){var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.rome=t()}(function(){return function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){var n=e[s][1][t];return r(n?n:t)},u,u.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(t,e){function n(){}var i=e.exports={};i.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;(e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)&&n.shift()()},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=n,i.addListener=n,i.once=n,i.off=n,i.removeListener=n,i.removeAllListeners=n,i.emit=n,i.binding=function(){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(){throw new Error("process.chdir is not supported")}},{}],2:[function(t,e){"use strict";function n(t,e,n){function s(){m.sleeping=!0}function a(){return l()}function l(t){var n=e.getBoundingClientRect(),i=document.body.scrollTop||document.documentElement.scrollTop;return g?(t=g.read(),{x:(t.absolute?0:n.left)+t.x,y:(t.absolute?0:n.top)+i+t.y+20}):{x:n.left,y:n.top+i}}function u(t){c(t)}function c(n){if(d)throw new Error("Bullseye can't refresh after being destroyed. Create another instance instead.");if(g&&!n)return m.sleeping=!1,void g.refresh();var i=l(n);g||e===t||(i.y+=e.offsetHeight),t.style.left=i.x+"px",t.style.top=i.y+"px"}function p(){g&&g.destroy(),i.remove(window,"resize",y),d=!0}var h=n,f=e&&e.tagName;f||2!==arguments.length||(h=e),f||(e=t),h||(h={});var d=!1,y=r(c,30),m={update:h.autoupdateToCaret!==!1&&u},g=h.caret&&o(e,m);return c(),h.tracking!==!1&&i.add(window,"resize",y),{read:a,refresh:c,destroy:p,sleep:s}}var i=t("crossvent"),r=t("./throttle"),o=t("./tailormade");e.exports=n},{"./tailormade":5,"./throttle":6,crossvent:3}],3:[function(t,e){(function(t){"use strict";function n(t,e,n,i){return t.addEventListener(e,n,i)}function i(t,e,n){return t.attachEvent("on"+e,l(t,e,n))}function r(t,e,n,i){return t.removeEventListener(e,n,i)}function o(t,e,n){return t.detachEvent("on"+e,u(t,e,n))}function s(t,e){var n;p.createEvent?(n=p.createEvent("Event"),n.initEvent(e,!0,!0),t.dispatchEvent(n)):p.createEventObject&&(n=p.createEventObject(),t.fireEvent("on"+e,n))}function a(e,n,i){return function(n){var r=n||t.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},i.call(e,r)}}function l(t,e,n){var i=u(t,e,n)||a(t,e,n);return d.push({wrapper:i,element:t,type:e,fn:n}),i}function u(t,e,n){var i=c(t,e,n);if(i){var r=d[i].wrapper;return d.splice(i,1),r}}function c(t,e,n){var i,r;for(i=0;i<d.length;i++)if(r=d[i],r.element===t&&r.type===e&&r.fn===n)return i}var p=document,h=n,f=r,d=[];t.addEventListener||(h=i,f=o),e.exports={add:h,remove:f,fabricate:s}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(t,e){"use strict";function n(t){return{start:t.selectionStart,end:t.selectionEnd}}function i(t){function e(e,i){return n!==t&&(n?n.focus():t.blur()),{start:e,end:i}}var n=document.activeElement;n!==t&&t.focus();var i=document.selection.createRange(),s=i.getBookmark(),a=t.value,l=r(a),u=i.parentElement();if(null===u||!o(u))return e(0,0);i.text=l+i.text+l;var c=t.value;return t.value=a,i.moveToBookmark(s),i.select(),e(c.indexOf(l),c.lastIndexOf(l)-l.length)}function r(t){var e;do{e="@@marker."+Math.random()*new Date}while(t.indexOf(e)!==-1);return e}function o(t){return"INPUT"===t.tagName&&"text"===t.type||"TEXTAREA"===t.tagName}function s(t,e){t.selectionStart=l(t,e.start),t.selectionEnd=l(t,e.end)}function a(t,e){var n=t.createTextRange();"end"===e.start&&"end"===e.end?(n.collapse(!1),n.select()):(n.collapse(!0),n.moveEnd("character",l(t,e.end)),n.moveStart("character",l(t,e.start)),n.select())}function l(t,e){return"end"===e?t.value.length:e||0}function u(t,e){return 2===arguments.length&&p(t,e),c(t)}var c=n,p=s;document.selection&&document.selection.createRange&&(c=i,p=a),e.exports=u},{}],5:[function(t,e){(function(n){"use strict";function i(t,e){function n(){}function i(){return(w?h:f)()}function p(){if(!S.sleeping)return(S.update||n)(i())}function h(){var e=r(t),n=m(),i=d(n,e.start);return u.body.removeChild(n.mirror),i}function f(){var t=(S.getSelection||l.getSelection)();if(t.rangeCount){var e=t.getRangeAt(0);if("P"===e.startContainer.nodeName&&0===e.startOffset)return{x:e.startContainer.offsetLeft,y:e.startContainer.offsetTop,absolute:!0};if(e.getClientRects){var n=e.getClientRects();if(n.length>0)return{x:n[0].left,y:n[0].top,absolute:!0}}}return{x:0,y:0}}function d(e,n){var i=u.createElement("span"),r=e.mirror,o=e.computed;return g(r,y(t).substring(0,n)),"INPUT"===t.tagName&&(r.textContent=r.textContent.replace(/\s/g,"\xa0")),g(i,y(t).substring(n)||"."),r.appendChild(i),{x:i.offsetLeft+parseInt(o.borderLeftWidth),y:i.offsetTop+parseInt(o.borderTopWidth)}}function y(t){return w?t.value:t.innerHTML}function m(){function e(t){r[t]=n[t]}var n=l.getComputedStyle?getComputedStyle(t):t.currentStyle,i=u.createElement("div"),r=i.style;return u.body.appendChild(i),"INPUT"!==t.tagName&&(r.wordWrap="break-word"),r.whiteSpace="pre-wrap",r.position="absolute",r.visibility="hidden",a.forEach(e),c?(r.width=parseInt(n.width)-2+"px",t.scrollHeight>parseInt(n.height)&&(r.overflowY="scroll")):r.overflow="hidden",{mirror:i,computed:n}}function g(t,e){w?t.textContent=e:t.innerHTML=e}function _(e){var n=e?"remove":"add";o[n](t,"keydown",b),o[n](t,"keyup",b),o[n](t,"input",b),o[n](t,"paste",b),o[n](t,"change",b)}function v(){_(!0)}var w="INPUT"===t.tagName||"TEXTAREA"===t.tagName,b=s(p,30),S=e||{};return _(),{read:i,refresh:b,destroy:v}}var r=t("sell"),o=t("crossvent"),s=t("./throttle"),a=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing"],l=n,u=document,c=null!==l.mozInnerScreenX&&void 0!==l.mozInnerScreenX;e.exports=i}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./throttle":6,crossvent:3,sell:4}],6:[function(t,e){"use strict";function n(t,e){var n,i=-Infinity;return function(){function r(){clearTimeout(n),n=null;var o=i+e,s=Date.now();s>o?(i=s,t()):n=setTimeout(r,o-s)}n||r()}}e.exports=n},{}],7:[function(t,e){e.exports=t("./src/contra.emitter.js")},{"./src/contra.emitter.js":8}],8:[function(t,e){(function(t){!function(n,i){"use strict";function r(t,e){return Array.prototype.slice.call(t,e)}function o(t,e,n){t&&a(function(){t.apply(n||null,e||[])})}function s(t,e){var n=e||{},s={};return t===i&&(t={}),t.on=function(e,n){return s[e]?s[e].push(n):s[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var i=arguments.length;if(1===i)delete s[e];else if(0===i)s={};else{var r=s[e];if(!r)return t;r.splice(r.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var i=(s[e]||[]).slice(0);return function(){var a=r(arguments),l=this||t;if("error"===e&&n["throws"]!==!1&&!i.length)throw 1===a.length?a[0]:a;return s[e]=i.filter(function(t){return n.async?o(t,a,l):t.apply(l,a),!t._once}),t}},t}var a,l=""+i;a="function"==typeof setImmediate?function(t){setImmediate(t)}:typeof t!==l&&t.nextTick?t.nextTick:function(t){setTimeout(t,0)},typeof e!==l&&e.exports?e.exports=s:(n.contra=n.contra||{},n.contra.emitter=s)}(this)}).call(this,t("FWaASH"))},{FWaASH:1}],9:[function(t,e){(function(t){"use strict";function n(t,e,n,i){return t.addEventListener(e,n,i)}function i(t,e,n,i){return t.attachEvent("on"+e,l(t,e,n),i)}function r(t,e,n,i){return t.removeEventListener(e,n,i)}function o(t,e,n,i){return t.detachEvent("on"+e,u(t,e,n),i)}function s(t,e){var n=document.createEvent("Event");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function a(e,n,i){return function(n){var r=n||t.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},i.call(e,r)}}function l(t,e,n){var i=u(t,e,n)||a(t,e,n);return f.push({wrapper:i,element:t,type:e,fn:n}),i}function u(t,e,n){var i=c(t,e,n);if(i){var r=f[i].wrapper;return f.splice(i,1),r}}function c(t,e,n){var i,r;for(i=0;i<f.length;i++)if(r=f[i],r.element===t&&r.type===e&&r.fn===n)return i}var p=n,h=r,f=[];t.addEventListener||(p=i,h=o),e.exports={add:p,remove:h,fabricate:s}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(t,e){"use strict";function n(t,e){var n=l[t.id];return n&&n[e.id]}function i(t,e){var n=l[t.id];n||(n=l[t.id]={});var i=o(e);n[e.id]=i,t.on("data",i),t.on("destroyed",r.bind(null,t,e))}function r(t,e){var n=l[t.id];if(n){var i=n[e.id];t.off("data",i),delete n[e.id]}}function o(t){return function(){t.refresh()}}function s(t,e){a(e.associated)||n(t,e)||i(t,e)}var a=t("./isInput"),l={};e.exports={add:s,remove:r}},{"./isInput":20}],11:[function(t,e){"use strict";function n(t){function e(){return Rt}function n(n){return ct=c(n||t,Rt),ft||(ft=s({className:ct.styles.container})),dt=ct.weekdayFormat,yt=dt.length,gt=i,mt=i,_t=i,vt=i,ct.appendTo.appendChild(ft),W(ft),Ct=!1,pt=ct.initialValue?ct.initialValue:p.moment(),ht=pt.clone(),Rt.container=ft,Rt.destroyed=!1,Rt.destroy=y.bind(Rt,!1),Rt.emitValues=H,Rt.getDate=at,Rt.getDateString=lt,Rt.getMoment=ut,Rt.hide=M,Rt.options=g,Rt.options.reset=_,Rt.refresh=V,Rt.restore=e,Rt.setValue=z,Rt.show=R,m(),d(),Rt}function d(){Rt.emit("ready",u(ct))}function y(t){ft&&ft.parentNode&&ft.parentNode.removeChild(ft),ct&&m(!0);var i=Rt.emitterSnapshot("destroyed");return Rt.destroyed=!0,Rt.destroy=e,Rt.emitValues=e,Rt.getDate=f,Rt.getDateString=f,Rt.getMoment=f,Rt.hide=e,Rt.options=e,Rt.options.reset=e,Rt.refresh=e,Rt.restore=n,Rt.setValue=e,Rt.show=e,Rt.off(),t!==!0&&i(),Rt}function m(t){var e=t?"remove":"add";ct.autoHideOnBlur&&r[e](document.documentElement,"focus",O,!0),ct.autoHideOnClick&&r[e](document,"click",k)}function g(t){return 0===arguments.length?u(ct):(y(),n(t),Rt)}function _(){return g({appendTo:ct.appendTo})}function v(){Ct||(Ct=!0,w(),b(),Rt.emit("render"))}function w(){function t(t){var e=s({className:ct.styles.month,parent:wt});0===t&&(bt=s({type:"button",className:ct.styles.back,attributes:{type:"button"},parent:e})),t===ct.monthsInCalendar-1&&(St=s({type:"button",className:ct.styles.next,attributes:{type:"button"},parent:e}));var n,i=s({className:ct.styles.monthLabel,parent:e}),r=s({type:"table",className:ct.styles.dayTable,parent:e}),o=s({type:"thead",className:ct.styles.dayHead,parent:r}),a=s({type:"tr",className:ct.styles.dayRow,parent:o}),l=s({type:"tbody",className:ct.styles.dayBody,parent:r});for(n=0;n<yt;n++)s({type:"th",className:ct.styles.dayHeadElem,parent:a,text:dt[S(n)]});l.setAttribute(Dt,t),Ft.push({label:i,body:l})}if(ct.date){var e;for(Ft=[],wt=s({className:ct.styles.date,parent:ft}),e=0;e<ct.monthsInCalendar;e++)t(e);r.add(bt,"click",L),r.add(St,"click",Q),r.add(wt,"click",nt)}}function b(){if(ct.time&&ct.timeInterval){var t=s({className:ct.styles.time,parent:ft});xt=s({className:ct.styles.selectedTime,parent:t,text:pt.format(ct.timeFormat)}),r.add(xt,"click",T),Tt=s({className:ct.styles.timeList,parent:t}),r.add(Tt,"click",st);for(var e=p.moment("00:00:00","HH:mm:ss"),n=e.clone().add(1,"days");e.isBefore(n);)s({className:ct.styles.timeOption,parent:Tt,text:e.format(ct.timeFormat)}),e.add(ct.timeInterval,"seconds")}}function S(t,e){var n=e?-1:1,i=t+ct.weekStart*n;return(i>=yt||i<0)&&(i+=yt*-n),i}function x(){if(ct.time&&Ct){var t,e,n,i,r=Tt.children,o=r.length;for(i=0;i<o;i++)n=r[i],e=p.moment(a(n),ct.timeFormat),t=ot(pt.clone(),e),n.style.display=K(t,!1,ct.timeValidator)?"block":"none"}}function T(t){("boolean"==typeof t?t:"none"===Tt.style.display)?C():D()}function C(){Tt&&(Tt.style.display="block")}function D(){Tt&&(Tt.style.display="none")}function F(){ft.style.display="inline-block",Rt.emit("show")}function I(){ft.style.display="none",Rt.emit("hide")}function R(){return v(),V(),T(!ct.date),F(),Rt}function M(){return D(),setTimeout(I,0),Rt}function E(){return D(),h.contains(ft,ct.styles.positioned)&&setTimeout(I,0),Rt}function A(t){var e=t.target;if(e===Rt.associated)return!0;for(;e;){if(e===ft)return!0;e=e.parentNode}}function O(t){A(t)||E()}function k(t){A(t)||E()}function L(){N("subtract")}function Q(){N("add")}function N(t){var e,n="add"===t?-1:1,i=ct.monthsInCalendar+n*rt(vt);ht[t](i,"months"),e=Z(ht.clone()),pt=e||pt,e&&(ht=e.clone()),j()}function j(t){$(),B(),t!==!0&&H(),x()}function $(){function t(t,e){var n=ht.clone().add(e,"months");a(t.label,n.format(ct.monthFormat)),W(t.body)}if(ct.date&&Ct){var e=ht.year(),n=ht.month();if(ht.date()!==_t||n!==gt||e!==mt){var i=q();if(_t=ht.date(),gt=ht.month(),mt=ht.year(),i)return void P();Ft.forEach(t),Y()}}}function P(){function t(t){var e,n=[];for(e=0;e<t.length;e++)n.push(t[e]);return n}function e(e){return t(e.children)}function n(t){return!h.contains(t,ct.styles.dayPrevMonth)&&!h.contains(t,ct.styles.dayNextMonth)}var i=ht.date()-1;it(!1),Ft.forEach(function(r){var o;U(r.date,ht)&&(o=t(r.body.children).map(e),o=Array.prototype.concat.apply([],o).filter(n),it(o[i]))})}function q(){function t(t){return!!mt&&U(t.date,ht)}return Ft.some(t)}function U(t,e){return t&&e&&t.year()===e.year()&&t.month()===e.month()}function B(){ct.time&&Ct&&a(xt,pt.format(ct.timeFormat))}function H(){return Rt.emit("data",lt()),Rt.emit("year",pt.year()),Rt.emit("month",pt.month()),Rt.emit("day",pt.day()),Rt.emit("time",pt.format(ct.timeFormat)),Rt}function V(){return mt=!1,gt=!1,_t=!1,j(!0),Rt}function z(t){var e=l(t,ct.inputFormat);if(null!==e)return pt=Z(e)||pt,ht=pt.clone(),j(!0),Rt}function W(t,e){for(;t&&t.firstChild;)t.removeChild(t.firstChild);e===!0&&t.parentNode.removeChild(t)}function Y(){var t;for(t=0;t<ct.monthsInCalendar;t++)G(t)}function G(t){function e(t){var e,i,r;for(e=0;e<t.length;e++)h.children.length===yt&&(h=s({type:"tr",className:ct.styles.dayRow,parent:o.body})),i=t.base.clone().add(e,"days"),r=s({type:"td",parent:h,text:i.format(ct.dayFormat),className:n(i,t.cell.join(" ").split(" ")).join(" ")}),t.selectable&&i.date()===u&&it(r)}function n(t,e){return K(t,!0,ct.dateValidator)||e.push(y),e}function i(t,e){return t&&e.push(ct.styles.dayConcealed),e}var r,o=Ft[t],a=ht.clone().add(t,"months"),l=a.daysInMonth(),u=a.month()!==pt.month()?-1:pt.date(),c=a.clone().date(1),p=S(c.day(),!0),h=s({type:"tr",className:ct.styles.dayRow,parent:o.body}),f=i(0!==t,[ct.styles.dayBodyElem,ct.styles.dayPrevMonth]),d=i(t!==ct.monthsInCalendar-1,[ct.styles.dayBodyElem,ct.styles.dayNextMonth]),y=ct.styles.dayDisabled;e({base:c.clone().subtract(p,"days"),length:p,cell:f}),e({base:c.clone(),length:l,cell:[ct.styles.dayBodyElem],selectable:!0}),r=c.clone().add(l,"days"),e({base:r,length:yt-h.children.length,cell:d}),bt.disabled=!J(c,!0),St.disabled=!X(r,!0),o.date=a.clone()}function K(t,e,n){return!!J(t,e)&&!!X(t,e)&&(n||Function.prototype).call(Rt,t.toDate())!==!1}function J(t,e){var n=!!ct.min&&(e?ct.min.clone().startOf("day"):ct.min);return!n||!t.isBefore(n)}function X(t,e){var n=!!ct.max&&(e?ct.max.clone().endOf("day"):ct.max);return!n||!t.isAfter(n)}function Z(t){if(ct.min&&t.isBefore(ct.min))return Z(ct.min.clone());if(ct.max&&t.isAfter(ct.max))return Z(ct.max.clone());var e=t.clone().subtract(1,"days");return et(e,t,"add")?tt(e):(e=t.clone(),et(e,t,"subtract")?tt(e):void 0)}function tt(t){var e,n=t.clone().subtract(ct.timeInterval,"seconds"),i=Math.ceil(It/ct.timeInterval);for(e=0;e<i;e++)if(n.add(ct.timeInterval,"seconds"),n.date()>t.date()&&n.subtract(1,"days"),ct.timeValidator.call(Rt,n.toDate())!==!1)return n}function et(t,e,n){for(var i=!1;i===!1&&(t[n](1,"days"),t.month()===e.month());)i=ct.dateValidator.call(Rt,t.toDate());return i!==!1}function nt(t){var e=t.target;if(!h.contains(e,ct.styles.dayDisabled)&&h.contains(e,ct.styles.dayBodyElem)){var n=parseInt(a(e),10),i=h.contains(e,ct.styles.dayPrevMonth),r=h.contains(e,ct.styles.dayNextMonth),o=rt(e)-rt(vt);pt.add(o,"months"),(i||r)&&pt.add(i?-1:1,"months"),it(e),pt.date(n),ot(pt,Z(pt)||pt),ht=pt.clone(),ct.autoClose===!0&&E(),j()}}function it(t){vt&&h.remove(vt,ct.styles.selectedDay),t&&h.add(t,ct.styles.selectedDay),vt=t}function rt(t){for(var e;t&&t.getAttribute;){if("string"==typeof(e=t.getAttribute(Dt)))return parseInt(e,10);t=t.parentNode}return 0}function ot(t,e){return t.hour(e.hour()).minute(e.minute()).second(e.second()),t}function st(t){var e=t.target;h.contains(e,ct.styles.timeOption)&&(ot(pt,p.moment(a(e),ct.timeFormat)),ht=pt.clone(),H(),B(),!ct.date&&ct.autoClose===!0||"time"===ct.autoClose?E():D())}function at(){return pt.toDate()}function lt(t){return pt.format(t||ct.inputFormat)}function ut(){return pt.clone()}var ct,pt,ht,ft,dt,yt,mt,gt,_t,vt,wt,bt,St,xt,Tt,Ct=!1,Dt="data-rome-offset",Ft=[],It=86400,Rt=o({associated:t.associated});return n(),setTimeout(d,0),Rt}var i,r=t("crossvent"),o=t("contra.emitter"),s=t("./dom"),a=t("./text"),l=t("./parse"),u=t("./clone"),c=t("./defaults"),p=t("./momentum"),h=t("./classes"),f=t("./noop");e.exports=n},{"./classes":12,"./clone":13,"./defaults":15,"./dom":16,"./momentum":21,"./noop":22,"./parse":23,"./text":35,"contra.emitter":7,crossvent:9}],12:[function(t,e){"use strict";function n(t){return t.className.replace(a,"").split(l)}function i(t,e){t.className=e.join(" ")}function r(t,e){var n=o(t,e);n.push(e),i(t,n)}function o(t,e){var r=n(t),o=r.indexOf(e);return o!==-1&&(r.splice(o,1),i(t,r)),r}function s(t,e){return n(t).indexOf(e)!==-1}var a=/^\s+|\s+$/g,l=/\s+/;e.exports={add:r,remove:o,contains:s}},{}],13:[function(t,e){"use strict";function n(t){var e,r={};for(var o in t)e=t[o],e?i.isMoment(e)?r[o]=e.clone():e._isStylesConfiguration?r[o]=n(e):r[o]=e:r[o]=e;return r}var i=t("./momentum");e.exports=n},{"./momentum":21}],14:[function(t,e){"use strict";function n(t,e){var n,a=i.find(t);return a?a:(n=s(t)?r(t,e):o(t,e),i.assign(t,n),n)}var i=t("./index"),r=t("./input"),o=t("./inline"),s=t("./isInput");e.exports=n},{"./index":17,"./inline":18,"./input":19,"./isInput":20}],15:[function(t,e){"use strict";function n(t,e){var n,s,a=t||{};if(a.autoHideOnClick===s&&(a.autoHideOnClick=!0),a.autoHideOnBlur===s&&(a.autoHideOnBlur=!0),a.autoClose===s&&(a.autoClose=!0),a.appendTo===s&&(a.appendTo=document.body),"parent"===a.appendTo){if(!r(e.associated))throw new Error("Inline calendars must be appended to a parent node explicitly.");a.appendTo=e.associated.parentNode}if(a.invalidate===s&&(a.invalidate=!0),a.required===s&&(a.required=!1),a.date===s&&(a.date=!0),a.time===s&&(a.time=!0),a.date===!1&&a.time===!1)throw new Error("At least one of `date` or `time` must be `true`.");if(a.inputFormat===s&&(a.date&&a.time?a.inputFormat="YYYY-MM-DD HH:mm":a.date?a.inputFormat="YYYY-MM-DD":a.inputFormat="HH:mm"),a.initialValue===s?a.initialValue=null:a.initialValue=i(a.initialValue,a.inputFormat),a.min===s?a.min=null:a.min=i(a.min,a.inputFormat),a.max===s?a.max=null:a.max=i(a.max,a.inputFormat),a.timeInterval===s&&(a.timeInterval=1800),a.min&&a.max)if(a.max.isBefore(a.min)&&(n=a.max,a.max=a.min,a.min=n),a.date===!0){if(a.max.clone().subtract(1,"days").isBefore(a.min))throw new Error("`max` must be at least one day after `min`")}else if(1e3*a.timeInterval-a.min%(1e3*a.timeInterval)>a.max-a.min)throw new Error("`min` to `max` range must allow for at least one time option that matches `timeInterval`");if(a.dateValidator===s&&(a.dateValidator=Function.prototype),a.timeValidator===s&&(a.timeValidator=Function.prototype),a.timeFormat===s&&(a.timeFormat="HH:mm"),a.weekStart===s&&(a.weekStart=o.moment().weekday(0).day()),a.weekdayFormat===s&&(a.weekdayFormat="min"),"long"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdays();else if("short"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdaysShort();else if("min"===a.weekdayFormat)a.weekdayFormat=o.moment.weekdaysMin();else if(!Array.isArray(a.weekdayFormat)||a.weekdayFormat.length<7)throw new Error("`weekdays` must be `min`, `short`, or `long`");a.monthsInCalendar===s&&(a.monthsInCalendar=1),a.monthFormat===s&&(a.monthFormat="MMMM YYYY"),a.dayFormat===s&&(a.dayFormat="DD"),a.styles===s&&(a.styles={}),a.styles._isStylesConfiguration=!0;var l=a.styles;return l.back===s&&(l.back="rd-back"),l.container===s&&(l.container="rd-container"),l.positioned===s&&(l.positioned="rd-container-attachment"),l.date===s&&(l.date="rd-date"),l.dayBody===s&&(l.dayBody="rd-days-body"),l.dayBodyElem===s&&(l.dayBodyElem="rd-day-body"),l.dayPrevMonth===s&&(l.dayPrevMonth="rd-day-prev-month"),l.dayNextMonth===s&&(l.dayNextMonth="rd-day-next-month"),l.dayDisabled===s&&(l.dayDisabled="rd-day-disabled"),l.dayConcealed===s&&(l.dayConcealed="rd-day-concealed"),l.dayHead===s&&(l.dayHead="rd-days-head"),l.dayHeadElem===s&&(l.dayHeadElem="rd-day-head"),l.dayRow===s&&(l.dayRow="rd-days-row"),l.dayTable===s&&(l.dayTable="rd-days"),l.month===s&&(l.month="rd-month"),l.monthLabel===s&&(l.monthLabel="rd-month-label"),l.next===s&&(l.next="rd-next"),l.selectedDay===s&&(l.selectedDay="rd-day-selected"),l.selectedTime===s&&(l.selectedTime="rd-time-selected"),l.time===s&&(l.time="rd-time"),l.timeList===s&&(l.timeList="rd-time-list"),l.timeOption===s&&(l.timeOption="rd-time-option"),a}var i=t("./parse"),r=t("./isInput"),o=t("./momentum");e.exports=n},{"./isInput":20,"./momentum":21,"./parse":23}],16:[function(t,e){"use strict";function n(t){var e=t||{};e.type||(e.type="div");var n=document.createElement(e.type);return e.className&&(n.className=e.className),e.text&&(n.innerText=n.textContent=e.text),e.attributes&&Object.keys(e.attributes).forEach(function(t){n.setAttribute(t,e.attributes[t])}),e.parent&&e.parent.appendChild(n),n}e.exports=n},{}],17:[function(t,e){"use strict";function n(t){if("number"!=typeof t&&t&&t.getAttribute)return n(t.getAttribute(o));var e=s[t];return e!==r?e:null}function i(t,e){t.setAttribute(o,e.id=s.push(e)-1)}var r,o="data-rome-id",s=[];e.exports={find:n,assign:i}},{}],18:[function(t,e){"use strict";function n(t,e){var n=e||{};n.appendTo=t,n.associated=t;var r=i(n);return r.show(),r}var i=t("./calendar");e.exports=n},{"./calendar":11}],19:[function(t,e){"use strict";function n(t,e){function n(e){w=s(e||w,T),u.add(T.container,w.styles.positioned),i.add(T.container,"mousedown",f),i.add(T.container,"click",h),T.getDate=v(T.getDate),T.getDateString=v(T.getDateString),T.getMoment=v(T.getMoment),w.initialValue&&(t.value=w.initialValue.format(w.inputFormat)),x=r(T.container,t),T.on("data",g),T.on("show",x.refresh),p(),C()}function c(){p(!0),x.destroy(),x=null}function p(e){var r=e?"remove":"add";i[r](t,"click",y),i[r](t,"touchend",y),i[r](t,"focusin",y),i[r](t,"change",C),i[r](t,"keypress",C),i[r](t,"keydown",C),i[r](t,"input",C),w.invalidate&&i[r](t,"blur",d),e?(T.once("ready",n),T.off("destroyed",c)):(T.off("ready",n),T.once("destroyed",c))}function h(){S=!0,t.focus(),S=!1}function f(){function t(){b=!1}b=!0,setTimeout(t,0)}function d(){b||_()||T.emitValues()}function y(){S||T.show()}function m(){var e=t.value.trim();if(!_()){var n=l.moment(e,w.inputFormat,w.strictParse);T.setValue(n)}}function g(e){t.value=e}function _(){return w.required===!1&&""===t.value.trim()}function v(t){return function(){return _()?null:t.apply(this,arguments)}}var w=e||{};w.associated=t;var b,S,x,T=a(w),C=o(m,30);return n(w),T}var i=t("crossvent"),r=t("bullseye"),o=t("./throttle"),s=(t("./clone"),t("./defaults")),a=t("./calendar"),l=t("./momentum"),u=t("./classes");e.exports=n},{"./calendar":11,"./classes":12,"./clone":13,"./defaults":15,"./momentum":21,"./throttle":36,bullseye:2,crossvent:9}],20:[function(t,e){"use strict";function n(t){return t&&t.nodeName&&"input"===t.nodeName.toLowerCase()}e.exports=n},{}],21:[function(t,e){"use strict";function n(t){return t&&Object.prototype.hasOwnProperty.call(t,"_isAMomentObject")}var i={moment:null,isMoment:n};e.exports=i},{}],22:[function(t,e){"use strict";function n(){}e.exports=n},{}],23:[function(t,e){"use strict";function n(t,e){return"string"==typeof t?r.moment(t,e):"[object Date]"===Object.prototype.toString.call(t)?r.moment(t):r.isMoment(t)?t.clone():void 0}function i(t,e){var i=n(t,"string"==typeof e?e:null);return i&&i.isValid()?i:null}var r=t("./momentum");e.exports=i},{"./momentum":21}],24:[function(){"use strict";Array.prototype.filter||(Array.prototype.filter=function(t,e){var n=[];return this.forEach(function(i,r,o){t.call(e,i,r,o)&&n.push(i)},e),n})},{}],25:[function(){"use strict";Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var n=this,i=n.length,r=0;r<i;r++)r in n&&t.call(e,n[r],r,n)})},{}],26:[function(){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(this===undefined||null===this)throw new TypeError;var n=this.length;for(e=+e||0,Math.abs(e)===Infinity?e=0:e<0&&(e+=n)<0&&(e=0);e<n;e++)if(this[e]===t)return e;return-1})},{}],27:[function(){"use strict";Array.isArray||(Array.isArray=function(t){return""+t!==t&&"[object Array]"===Object.prototype.toString.call(t)})},{}],28:[function(){"use strict";Array.prototype.map||(Array.prototype.map=function(t,e){var n,i,r;if(null==this)throw new TypeError("this is null or not defined");var o=Object(this),s=o.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=new Array(s),r=0;r<s;)r in o&&(i[r]=t.call(n,o[r],r,o)),r++;return i})},{}],29:[function(){"use strict";Array.prototype.some||(Array.prototype.some=function(t,e){var n,i;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=0;i<o;){if(i in r&&t.call(n,r[i],i,r))return!0;i++}return!1})},{}],30:[function(){"use strict";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(){var r=this instanceof i&&t?this:t,o=e.concat(Array.prototype.slice.call(arguments));return n.apply(r,o)};return i.prototype=this.prototype,r.prototype=new i,r})},{}],31:[function(){"use strict";var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=n.length;Object.keys||(Object.keys=function(r){if("object"!=typeof r&&("function"!=typeof r||null===r))throw new TypeError("Object.keys called on non-object");var o,s,a=[];for(o in r)t.call(r,o)&&a.push(o);if(e)for(s=0;s<i;s++)t.call(r,n[s])&&a.push(n[s]);return a})},{}],32:[function(){"use strict";String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},{}],33:[function(t,e){"use strict";t("./polyfills/function.bind"),t("./polyfills/array.foreach"),t("./polyfills/array.map"),t("./polyfills/array.filter"),t("./polyfills/array.isarray"),t("./polyfills/array.indexof"),t("./polyfills/array.some"),t("./polyfills/string.trim"),t("./polyfills/object.keys");var n=t("./core"),i=t("./index"),r=t("./use");n.use=r.bind(n),n.find=i.find,n.val=t("./validators"),e.exports=n},{"./core":14,"./index":17,"./polyfills/array.filter":24,"./polyfills/array.foreach":25,"./polyfills/array.indexof":26,"./polyfills/array.isarray":27,"./polyfills/array.map":28,"./polyfills/array.some":29,"./polyfills/function.bind":30,"./polyfills/object.keys":31,"./polyfills/string.trim":32,"./use":37,"./validators":38}],34:[function(t,e){(function(n){var i=t("./rome"),r=t("./momentum");if(i.use(n.moment),void 0===r.moment)throw new Error("rome depends on moment.js, you can get it at http://momentjs.com, or you could use the bundled distribution file instead.");e.exports=i}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./momentum":21,"./rome":33}],35:[function(t,e){"use strict";function n(t,e){return 2===arguments.length&&(t.innerText=t.textContent=e),t.innerText||t.textContent}e.exports=n},{}],36:[function(t,e){"use strict";e.exports=function(t,e){var n,i=-Infinity;return function(){function r(){clearTimeout(n),n=null;var o=i+e,s=+new Date;s>o?(i=s,t.apply(this,arguments)):n=setTimeout(r,o-s)}n||r()}}},{}],37:[function(t,e){"use strict";function n(t){this.moment=i.moment=t}var i=t("./momentum");e.exports=n},{"./momentum":21}],38:[function(t,e){"use strict";function n(t){return function(e){var n=o(e);return function(i){var a=r.find(e),l=o(i),u=n||a&&a.getMoment();return!u||(a&&s.add(this,a),t(l,u))}}}function i(t,e){return function(n,i){function a(t){var e,n,i=r.find(t);return i?e=n=i.getMoment():Array.isArray(t)?(e=t[0],n=t[1]):e=n=t,i&&s.add(i,this),{start:o(e).startOf("day").toDate(),end:o(n).endOf("day").toDate()}}var l,u=arguments.length;return Array.isArray(n)?l=n:1===u?l=[n]:2===u&&(l=[[n,i]]),function(n){return l.map(a.bind(this))[t](e.bind(this,n))}}}var r=t("./index"),o=t("./parse"),s=t("./association"),a=n(function(t,e){return t>=e}),l=n(function(t,e){return t>e}),u=n(function(t,e){return t<=e}),c=n(function(t,e){return t<e}),p=i("every",function(t,e){return e.start>t||e.end<t}),h=i("some",function(t,e){return e.start<=t&&e.end>=t});e.exports={afterEq:a,after:l,beforeEq:u,before:c,except:p,only:h}},{"./association":10,"./index":17,"./parse":23}]},{},[34])(34)}),function(t){"use strict";function e(t){return"INPUT"===t.nodeName&&("text"===t.type||"password"===t.type)||"TEXTAREA"===t.nodeName}function n(n){if(n.valueExtensions)return!0;if(!e(n))return!1;if(n.valueExtensions={current:null},n.constructor&&n.constructor.prototype){var i=Object.getOwnPropertyDescriptor(n.constructor.prototype,"value");Object.defineProperty(n,"value",{get:function(){return i.get.call(this)},set:function(t){n.valueExtensions.current=t,i.set.call(this,t)}})}return t(n).on("propertychange",s).on("dragend",function(t){window.setTimeout(function(){s(t)},0)}),!0}function i(){var e=l;l=[];var n,i,r,o;for(r=0,o=e.length;r<o;r+=1)n=e[r],i=n.value,n.valueExtensions.current!==i&&(n.valueExtensions.current=i,t(n).trigger("textchange"))}function r(e){a=e,t(a).on(u,s)}function o(){a&&(t(a).off(u,s),a=null)}if(document.createElement("input").oninput!==undefined&&(document.documentMode||100)>9)return void t(document).on("input",function(e){t(e.target).trigger("textchange")});var s=null,a=null,l=[],u="keyup keydown";s=function(t){var e=t.target;if(n(e)&&e.valueExtensions.current!==e.value){var r,o
;for(r=0,o=l.length;r<o&&l[r]!==e;r+=1);r>=o&&(l.push(e),0===o&&window.setTimeout(i,0))}},t(document).on("focusin",function(t){o(),n(t.target)&&r(t.target)}).on("focusout",o).on("input",s).on("selectionchange",function(t){if(document.selection){var e=document.selection.createRange();if(e){var n=e.parentElement();n&&(t.target=n,s(t))}}})}(jQuery),/*!
* jQuery-ajaxTransport-XDomainRequest - v1.0.3 - 2014-06-06
* https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest
* Copyright (c) 2014 Jason Moon (@JSONMOON)
* Licensed MIT (/blob/master/LICENSE.txt)
*/
function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){if(!t.support.cors&&t.ajaxTransport&&window.XDomainRequest){var e=/^https?:\/\//i,n=/^get|post$/i,i=new RegExp("^"+location.protocol,"i");t.ajaxTransport("* text html xml json",function(r,o){if(r.crossDomain&&r.async&&n.test(r.type)&&e.test(r.url)&&i.test(r.url)){var s=null;return{send:function(e,n){var i="",a=(o.dataType||"").toLowerCase();s=new XDomainRequest,/^\d+$/.test(o.timeout)&&(s.timeout=o.timeout),s.ontimeout=function(){n(500,"timeout")},s.onload=function(){var e="Content-Length: "+s.responseText.length+"\r\nContent-Type: "+s.contentType,i={code:200,message:"success"},r={text:s.responseText};try{if("html"===a||/text\/html/i.test(s.contentType))r.html=s.responseText;else if("json"===a||"text"!==a&&/\/json/i.test(s.contentType))try{r.json=t.parseJSON(s.responseText)}catch(t){i.code=500,i.message="parseerror"}else if("xml"===a||"text"!==a&&/\/xml/i.test(s.contentType)){var o=new ActiveXObject("Microsoft.XMLDOM");o.async=!1;try{o.loadXML(s.responseText)}catch(t){o=undefined}if(!o||!o.documentElement||o.getElementsByTagName("parsererror").length)throw i.code=500,i.message="parseerror","Invalid XML: "+s.responseText;r.xml=o}}catch(t){throw t}finally{n(i.code,i.message,r,e)}},s.onprogress=function(){},s.onerror=function(){n(500,"error",{text:s.responseText})},o.data&&(i="string"===t.type(o.data)?o.data:t.param(o.data)),s.open(r.type,r.url),s.send(i)},abort:function(){s&&s.abort()}}}})}}),function(){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}),Date.now||(Date.now=function(){return(new Date).getTime()})}(),function(t){"use strict";function e(){}function n(){try{return document.activeElement}catch(t){}}function i(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return!0;return!1}function r(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):void 0}function o(t,e){var n;t.createTextRange?(n=t.createTextRange(),n.move("character",e),n.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function s(t,e){try{return t.type=e,!0}catch(t){return!1}}function a(t,e){if(t&&t.getAttribute(F))e(t);else for(var n,i=t?t.getElementsByTagName("input"):$,r=t?t.getElementsByTagName("textarea"):P,o=i?i.length:0,s=r?r.length:0,a=o+s,l=0;a>l;l++)n=o>l?i[l]:r[l-o],e(n)}function l(t){a(t,c)}function u(t){a(t,p)}function c(t,e){var n=!!e&&t.value!==e,i=t.value===t.getAttribute(F);if((n||i)&&"true"===t.getAttribute(I)){t.removeAttribute(I),t.value=t.value.replace(t.getAttribute(F),""),t.className=t.className.replace(D,"");var r=t.getAttribute(k);parseInt(r,10)>=0&&(t.setAttribute("maxLength",r),t.removeAttribute(k));var o=t.getAttribute(R);return o&&(t.type=o),!0}return!1}function p(t){var e=t.getAttribute(F);return!(""!==t.value||!e)&&(t.setAttribute(I,"true"),t.value=e,t.className+=" "+C,t.getAttribute(k)||(t.setAttribute(k,t.maxLength),t.removeAttribute("maxLength")),t.getAttribute(R)?t.type="text":"password"===t.type&&s(t,"text")&&t.setAttribute(R,"password"),!0)}function h(t){return function(){q&&t.value===t.getAttribute(F)&&"true"===t.getAttribute(I)?o(t,0):c(t)}}function f(t){return function(){p(t)}}function d(t){return function(){l(t)}}function y(t){return function(e){return b=t.value,"true"===t.getAttribute(I)&&b===t.getAttribute(F)&&i(x,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0}}function m(t){return function(){c(t,b),""===t.value&&(t.blur(),o(t,0))}}function g(t){return function(){t===n()&&t.value===t.getAttribute(F)&&"true"===t.getAttribute(I)&&o(t,0)}}function _(t){var e=t.form;e&&"string"==typeof e&&(e=document.getElementById(e),e.getAttribute(M)||(r(e,"submit",d(e)),e.setAttribute(M,"true"))),r(t,"focus",h(t)),r(t,"blur",f(t)),q&&(r(t,"keydown",y(t)),r(t,"keyup",m(t)),r(t,"click",g(t))),t.setAttribute(E,"true"),t.setAttribute(F,V),(q||t!==n())&&p(t)}var v=document.createElement("input"),w=void 0!==v.placeholder;if(t.Placeholders={nativeSupport:w,disable:w?e:l,enable:w?e:u},!w){var b,S=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],T="#ccc",C="placeholdersjs",D=new RegExp("(?:^|\\s)"+C+"(?!\\S)"),F="data-placeholder-value",I="data-placeholder-active",R="data-placeholder-type",M="data-placeholder-submit",E="data-placeholder-bound",A="data-placeholder-focus",O="data-placeholder-live",k="data-placeholder-maxlength",L=100,Q=document.getElementsByTagName("head")[0],N=document.documentElement,j=t.Placeholders,$=document.getElementsByTagName("input"),P=document.getElementsByTagName("textarea"),q="false"===N.getAttribute(A),U="false"!==N.getAttribute(O),B=document.createElement("style");B.type="text/css";var H=document.createTextNode("."+C+" {color:"+T+";}");B.styleSheet?B.styleSheet.cssText=H.nodeValue:B.appendChild(H),Q.insertBefore(B,Q.firstChild);for(var V,z,W=0,Y=$.length+P.length;Y>W;W++)z=W<$.length?$[W]:P[W-$.length],(V=z.attributes.placeholder)&&(V=V.nodeValue)&&i(S,z.type)&&_(z);var G=setInterval(function(){for(var t=0,e=$.length+P.length;e>t;t++)z=t<$.length?$[t]:P[t-$.length],V=z.attributes.placeholder,V?(V=V.nodeValue)&&i(S,z.type)&&(z.getAttribute(E)||_(z),(V!==z.getAttribute(F)||"password"===z.type&&!z.getAttribute(R))&&("password"===z.type&&!z.getAttribute(R)&&s(z,"text")&&z.setAttribute(R,"password"),z.value===z.getAttribute(F)&&(z.value=V),z.setAttribute(F,V))):z.getAttribute(I)&&(c(z),z.removeAttribute(F));U||clearInterval(G)},L);r(t,"beforeunload",function(){j.disable()})}}(this),function(){"use strict";moment.noConflict=function(t){return window.moment=t,this},rome.noConflict=function(t){return window.rome=t,this},window.__st_ro=rome.noConflict(__st_rome),window.__st_mt=moment.noConflict(__st_moment)}();var Liquid={author:"Matt McCray <darthapo@gmail.com>",version:"1.3.1",readTemplateFile:function(){throw"This liquid context does not allow includes."},registerFilters:function(t){Liquid.Template.registerFilter(t)},parse:function(t){return Liquid.Template.parse(t)}};Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e]==t)return e;return-1}),Array.prototype.clear||(Array.prototype.clear=function(){this.length=0}),Array.prototype.map||(Array.prototype.map=function(t){var e=this.length;if("function"!=typeof t)throw"Array.map requires first argument to be a function";for(var n=new Array(e),i=arguments[1],r=0;r<e;r++)r in this&&(n[r]=t.call(i,this[r],r,this));return n}),Array.prototype.first||(Array.prototype.first=function(){return this[0]}),Array.prototype.last||(Array.prototype.last=function(){return this[this.length-1]}),Array.prototype.flatten||(Array.prototype.flatten=function(){for(var t=this.length,e=[],n=0;n<t;n++)this[n]instanceof Array?e=e.concat(this[n]):e.push(this[n]);return e}),Array.prototype.each||(Array.prototype.each=function(t){var e=this.length;if("function"!=typeof t)throw"Array.each requires first argument to be a function";for(var n=arguments[1],i=0;i<e;i++)i in this&&t.call(n,this[i],i,this);return null}),Array.prototype.include||(Array.prototype.include=function(t){return this.length,this.indexOf(t)>=0}),String.prototype.capitalize||(String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()}),String.prototype.strip||(String.prototype.strip=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")}),Liquid.extensions={},Liquid.extensions.object={},Liquid.extensions.object.update=function(t){for(var e in t)this[e]=t[e];return this},Liquid.extensions.object.hasKey=function(t){return!!this[t]},Liquid.extensions.object.hasValue=function(t){for(var e in this)if(this[e]==t)return!0;return!1},function(){var t=!1,e=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},this.Class.extend=function(n){function i(){!t&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;t=!0;var o=new this;t=!1;for(var s in n)o[s]="function"==typeof n[s]&&"function"==typeof r[s]&&e.test(n[s])?function(t,e){return function(){var n=this._super;this._super=r[t];var i=e.apply(this,arguments);return this._super=n,i}}(s,n[s]):n[s];return i.prototype=o,i.prototype.constructor=i,i.extend=arguments.callee,i}}.call(Liquid),Liquid.Tag=Liquid.Class.extend({init:function(t,e,n){this.tagName=t,this.markup=e,this.nodelist=this.nodelist||[],this.parse(n)},parse:function(){},render:function(){return""}}),Liquid.Block=Liquid.Tag.extend({init:function(t,e,n){this.blockName=t,this.blockDelimiter="end"+this.blockName,this._super(t,e,n)},parse:function(t){this.nodelist||(this.nodelist=[]),this.nodelist.clear();var e=t.shift();for(t.push("");t.length;){if(/^\{\%/.test(e)){var n=e.match(/^\{\%\s*(\w+)\s*(.*)?\%\}$/);if(!n)throw"Tag '"+e+"' was not properly terminated with: %}";if(this.blockDelimiter==n[1])return void this.endTag();n[1]in Liquid.Template.tags?this.nodelist.push(new Liquid.Template.tags[n[1]](n[1],n[2],t)):this.unknownTag(n[1],n[2],t)}else/^\{\{/.test(e)?this.nodelist.push(this.createVariable(e)):this.nodelist.push(e);e=t.shift()}this.assertMissingDelimitation()},endTag:function(){},unknownTag:function(t){switch(t){case"else":throw this.blockName+" tag does not expect else tag";case"end":throw"'end' is not a valid delimiter for "+this.blockName+" tags. use "+this.blockDelimiter;default:throw"Unknown tag: "+t}},createVariable:function(t){var e=t.match(/^\{\{(.*)\}\}$/);if(e)return new Liquid.Variable(e[1]);throw"Variable '"+t+"' was not properly terminated with: }}"},render:function(t){return this.renderAll(this.nodelist,t)},renderAll:function(t,e){return(t||[]).map(function(t){var n="";try{n=t.render?t.render(e):t}catch(t){n=e.handleError(t)}return n})},assertMissingDelimitation:function(){throw this.blockName+" tag was never closed"}}),Liquid.Document=Liquid.Block.extend({init:function(t){this.blockDelimiter=[],this.parse(t)},assertMissingDelimitation:function(){}}),Liquid.Strainer=Liquid.Class.extend({init:function(t){this.context=t},respondTo:function(t){return t=t.toString(),!t.match(/^__/)&&!Liquid.Strainer.requiredMethods.include(t)&&t in this}}),Liquid.Strainer.filters={},Liquid.Strainer.globalFilter=function(t){for(var e in t)Liquid.Strainer.filters[e]=t[e]},Liquid.Strainer.requiredMethods=["respondTo","context"],Liquid.Strainer.create=function(t){var e=new Liquid.Strainer(t);for(var n in Liquid.Strainer.filters)e[n]=Liquid.Strainer.filters[n];return e},Liquid.Context=Liquid.Class.extend({init:function(t,e,n){this.scopes=[t?t:{}],this.registers=e?e:{},this.errors=[],this.rethrowErrors=n,this.strainer=Liquid.Strainer.create(this)},get:function(t){return this.resolve(t)},set:function(t,e){this.scopes[0][t]=e},hasKey:function(t){return!!this.resolve(t)},push:function(){var t={};return this.scopes.unshift(t),t},merge:function(t){return Liquid.extensions.object.update.call(this.scopes[0],t)},pop:function(){if(1==this.scopes.length)throw"Context stack error";return this.scopes.shift()},stack:function(t,e){var n=null;this.push();try{n=t.apply(e?e:this.strainer)}finally{this.pop()}return n},invoke:function(t,e){return this.strainer.respondTo(t)?this.strainer[t].apply(this.strainer,e):0==e.length?null:e[0]},resolve:function(t){switch(t){case null:case"nil":case"null":case"":return null;case"true":return!0;case"false":return!1;case"blank":case"empty":return"";default:if(/^'(.*)'$/.test(t))return t.replace(/^'(.*)'$/,"$1");if(/^"(.*)"$/.test(t))return t.replace(/^"(.*)"$/,"$1");if(/^(\d+)$/.test(t))return parseInt(t.replace(/^(\d+)$/,"$1"));if(/^(\d[\d\.]+)$/.test(t))return parseFloat(t.replace(/^(\d[\d\.]+)$/,"$1"));if(/^\((\S+)\.\.(\S+)\)$/.test(t)){var e=t.match(/^\((\S+)\.\.(\S+)\)$/),n=parseInt(e[1]),i=parseInt(e[2]),r=[];if(isNaN(n)||isNaN(i)){n=e[1].charCodeAt(0),i=e[2].charCodeAt(0);for(var o=i-n+1,s=0;s<o;s++)r.push(String.fromCharCode(s+n))}else for(var o=i-n+1,s=0;s<o;s++)r.push(s+n);return r}return this.variable(t)}},findVariable:function(t){for(var e=0;e<this.scopes.length;e++){var n=this.scopes[e];if(n&&"undefined"!=typeof n[t]){var i=n[t];return"function"==typeof i&&(i=i.apply(this),n[t]=i),i&&this._isObject(i)&&"toLiquid"in i&&(i=i.toLiquid()),i&&this._isObject(i)&&"setContext"in i&&i.setContext(self),i}}return null},variable:function(t){if("string"!=typeof t)return null;var e=t.match(/\[[^\]]+\]|(?:[\w\-]\??)+/g),n=e.shift(),i=n.match(/^\[(.*)\]$/);i&&(n=this.resolve(i[1]));var r=this.findVariable(n),o=this;return r&&e.each(function(t){var e=t.match(/^\[(.*)\]$/);if(e){var t=o.resolve(e[1]);"function"==typeof r[t]&&(r[t]=r[t].apply(this)),r=r[t],o._isObject(r)&&"toLiquid"in r&&(r=r.toLiquid())}else{if((o._isObject(r)||"hash"==typeof r)&&t in r){var n=r[t];"function"==typeof n&&(n=r[t]=n.apply(o)),r=o._isObject(n)&&"toLiquid"in n?n.toLiquid():n}else if(/^\d+$/.test(t)){var i=parseInt(t);"function"==typeof r[i]&&(r[i]=r[i].apply(o)),r=o._isObject(r)&&o._isObject(r[i])&&"toLiquid"in r[i]?r[i].toLiquid():r[i]}else{if(!r||"function"!=typeof r[t]||!["length","size","first","last"].include(t))return r=null;"toLiquid"in(r=r[t].apply(t))&&(r=r.toLiquid())}o._isObject(r)&&"setContext"in r&&r.setContext(o)}}),r},addFilters:function(t){t=t.flatten(),t.each(function(t){if(!this._isObject(t))throw"Expected object but got: "+typeof t;this.strainer.addMethods(t)})},handleError:function(t){if(this.errors.push(t),this.rethrowErrors)throw t;return"Liquid error: "+(t.message?t.message:t.description?t.description:t)},_isObject:function(t){return null!=t&&"object"==typeof t}}),Liquid.Template=Liquid.Class.extend({init:function(){this.root=null,this.registers={},this.assigns={},this.errors=[],this.rethrowErrors=!1},parse:function(t){return this.root=new Liquid.Document(Liquid.Template.tokenize(t)),this},render:function(){if(!this.root)return"";var t={ctx:arguments[0],filters:arguments[1],registers:arguments[2]},e=null;t.ctx instanceof Liquid.Context?(e=t.ctx,this.assigns=e.assigns,this.registers=e.registers):(t.ctx&&Liquid.extensions.object.update.call(this.assigns,t.ctx),t.registers&&Liquid.extensions.object.update.call(this.registers,t.registers),e=new Liquid.Context(this.assigns,this.registers,this.rethrowErrors)),t.filters&&e.addFilters(arg.filters);try{return this.root.render(e).join("")}finally{this.errors=e.errors}},renderWithErrors:function(){var t=this.rethrowErrors;this.rethrowErrors=!0;var e=this.render.apply(this,arguments);return this.rethrowErrors=t,e}}),Liquid.Template.tags={},Liquid.Template.registerTag=function(t,e){Liquid.Template.tags[t]=e},Liquid.Template.registerFilter=function(t){Liquid.Strainer.globalFilter(t)},Liquid.Template.tokenize=function(t){var e=t.split(/(\{\%.*?\%\}|\{\{.*?\}\}?)/);return""==e[0]&&e.shift(),e},Liquid.Template.parse=function(t){return(new Liquid.Template).parse(t)},Liquid.Variable=Liquid.Class.extend({init:function(t){this.markup=t,this.name=null,this.filters=[];var e=this,n=t.match(/\s*("[^"]+"|'[^']+'|[^\s,|]+)/);if(n){this.name=n[1];var i=t.match(/\|\s*(.*)/);i&&i[1].split(/\|/).each(function(t){var n=t.match(/\s*(\w+)/);if(n){var i=n[1],r=[];(t.match(/(?:[:|,]\s*)("[^"]+"|'[^']+'|[^\s,|]+)/g)||[]).flatten().each(function(t){var e=t.match(/^[\s|:|,]*(.*?)[\s]*$/);e&&r.push(e[1])}),e.filters.push([i,r])}})}},render:function(t){if(null==this.name)return"";var e=t.get(this.name);return this.filters.each(function(n){var i=n[0],r=(n[1]||[]).map(function(e){return t.get(e)});r.unshift(e),e=t.invoke(i,r)}),e}}),Liquid.Condition=Liquid.Class.extend({init:function(t,e,n){this.left=t,this.operator=e,this.right=n,this.childRelation=null,this.childCondition=null,this.attachment=null},evaluate:function(t){t=t||new Liquid.Context;var e=this.interpretCondition(this.left,this.right,this.operator,t);switch(this.childRelation){case"or":return e||this.childCondition.evaluate(t);case"and":return e&&this.childCondition.evaluate(t);default:return e}},or:function(t){this.childRelation="or",this.childCondition=t},and:function(t){this.childRelation="and",this.childCondition=t},attach:function(t){return this.attachment=t,this.attachment},isElse:!1,interpretCondition:function(t,e,n,i){if(!n)return i.get(t);if(t=i.get(t),e=i.get(e),!(n=Liquid.Condition.operators[n]))throw"Unknown operator "+n;return n(t,e)},toString:function(){return"<Condition "+this.left+" "+this.operator+" "+this.right+">"}}),Liquid.Condition.operators={"==":function(t,e){return t==e},"=":function(t,e){return t==e},"!=":function(t,e){return t!=e},"<>":function(t,e){return t!=e},"<":function(t,e){return t<e},">":function(t,e){return t>e},"<=":function(t,e){return t<=e},">=":function(t,e){return t>=e},contains:function(t,e){return"[object Array]"===Object.prototype.toString.call(t)?t.indexOf(e)>=0:t.match(e)},hasKey:function(t,e){return Liquid.extensions.object.hasKey.call(t,e)},hasValue:function(t,e){return Liquid.extensions.object.hasValue.call(t,e)}},Liquid.ElseCondition=Liquid.Condition.extend({isElse:!0,evaluate:function(){return!0},toString:function(){return"<ElseCondition>"}}),Liquid.Drop=Liquid.Class.extend({setContext:function(t){this.context=t},beforeMethod:function(){},invokeDrop:function(t){var e=this.beforeMethod();return!e&&t in this&&(e=this[t].apply(this)),e},hasKey:function(){return!0}});var hackObjectEach=function(t){if("function"!=typeof t)throw"Object.each requires first argument to be a function";var e=0,n=arguments[1];for(var i in this){var r=this[i],o=[i,r];o.key=i,o.value=r,t.call(n,o,e,this),e++}return null};Liquid.Template.registerTag("assign",Liquid.Tag.extend({tagSyntax:/((?:\(?[\w\-\.\[\]]\)?)+)\s*=\s*(.+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'assign' - Valid syntax: assign [var] = [source]";this.to=i[1],this.from=i[2],this._super(t,e,n)},render:function(t){var e=new Liquid.Variable(this.from);return t.scopes.last()[this.to.toString()]=e.render(t),""}})),Liquid.Template.registerTag("cache",Liquid.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'cache' - Valid syntax: cache [var]";this.to=i[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return t.scopes.last()[this.to]=[e].flatten().join(""),""}})),Liquid.Template.registerTag("capture",Liquid.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'capture' - Valid syntax: capture [var]";this.to=i[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return t.scopes.last()[this.to.toString()]=[e].flatten().join(""),""}})),Liquid.Template.registerTag("case",Liquid.Block.extend({tagSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)/,tagWhenSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)(?:(?:\s+or\s+|\s*\,\s*)("[^"]+"|'[^']+'|[^\s,|]+.*))?/,init:function(t,e,n){this.blocks=[],this.nodelist=[];var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'case' - Valid syntax: case [condition]";this.left=i[1],this._super(t,e,n)},unknownTag:function(t,e,n){switch(t){case"when":this.recordWhenCondition(e);break;case"else":this.recordElseCondition(e);break;default:this._super(t,e,n)}},render:function(t){var e=this,n=[],i=!0;return t.stack(function(){for(var r=0;r<e.blocks.length;r++){var o=e.blocks[r];if(o.isElse)return 1==i&&(n=[n,e.renderAll(o.attachment,t)].flatten()),n;o.evaluate(t)&&(i=!1,n=[n,e.renderAll(o.attachment,t)].flatten())}}),n},recordWhenCondition:function(t){for(;t;){var e=t.match(this.tagWhenSyntax);if(!e)throw"Syntax error in tag 'case' - Valid when condition: {% when [condition] [or condition2...] %} ";t=e[2];var n=new Liquid.Condition(this.left,"==",e[1]);this.blocks.push(n),this.nodelist=n.attach([])}},recordElseCondition:function(t){if(""!=(t||"").strip())throw"Syntax error in tag 'case' - Valid else condition: {% else %} (no parameters) ";var e=new Liquid.ElseCondition;this.blocks.push(e),this.nodelist=e.attach([])}})),Liquid.Template.registerTag("comment",Liquid.Block.extend({render:function(){return""}})),Liquid.Template.registerTag("cycle",Liquid.Tag.extend({tagSimpleSyntax:/"[^"]+"|'[^']+'|[^\s,|]+/,tagNamedSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)\s*\:\s*(.*)/,init:function(t,e,n){var i;if(i=e.match(this.tagNamedSyntax))this.variables=this.variablesFromString(i[2]),this.name=i[1];else{if(!(i=e.match(this.tagSimpleSyntax)))throw"Syntax error in 'cycle' - Valid syntax: cycle [name :] var [, var2, var3 ...]";this.variables=this.variablesFromString(e),this.name="'"+this.variables.toString()+"'"}this._super(t,e,n)},render:function(t){var e=this,n=t.get(e.name),i="";return t.registers.cycle||(t.registers.cycle={}),t.registers.cycle[n]||(t.registers.cycle[n]=0),t.stack(function(){var r=t.registers.cycle[n],o=t.get(e.variables[r]);r+=1,r==e.variables.length&&(r=0),t.registers.cycle[n]=r,i=o}),i},variablesFromString:function(t){return t.split(",").map(function(t){var e=t.match(/\s*("[^"]+"|'[^']+'|[^\s,|]+)\s*/);return e[1]?e[1]:null})}})),Liquid.Template.registerTag("for",Liquid.Block.extend({tagSyntax:/(\w+)\s+in\s+((?:\(?[\w\-\.\[\]]\)?)+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'for loop' - Valid syntax: for [item] in [collection]";this.variableName=i[1],this.collectionName=i[2],this.name=this.variableName+"-"+this.collectionName,this.attributes={};var r=(e.replace(this.tagSyntax,""),e.match(/(\w*?)\s*\:\s*("[^"]+"|'[^']+'|[^\s,|]+)/g));r&&r.each(function(t){t=t.split(":"),this.attributes[t[0].strip()]=t[1].strip()},this),this._super(t,e,n)},render:function(t){var e=this,n=[],i=t.get(this.collectionName)||[],r=[0,i.length];if(t.registers["for"]||(t.registers["for"]={}),this.attributes.limit||this.attributes.offset){var o=0,s=0,a=0,l=null;o="continue"==this.attributes.offset?t.registers["for"][this.name]:t.get(this.attributes.offset)||0,s=t.get(this.attributes.limit),a=s?o+s+1:i.length,r=[o,a-1],t.registers["for"][this.name]=a}return(l=i.slice(r[0],r[1]))&&0!=l.length?(t.stack(function(){var i=l.length;l.each(function(r,o){t.set(e.variableName,r),t.set("forloop",{name:e.name,length:i,index:o+1,index0:o,rindex:i-o,rindex0:i-o-1,first:0==o,last:o==i-1}),n.push((e.renderAll(e.nodelist,t)||[]).join(""))})}),[n].flatten().join("")):""}})),Liquid.Template.registerTag("if",Liquid.Block.extend({tagSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)\s*([=!<>a-z_]+)?\s*("[^"]+"|'[^']+'|[^\s,|]+)?/,init:function(t,e,n){this.nodelist=[],this.blocks=[],this.pushBlock("if",e),this._super(t,e,n)},unknownTag:function(t,e,n){["elsif","else"].include(t)?this.pushBlock(t,e):this._super(t,e,n)},render:function(t){var e=this,n="";return t.stack(function(){for(var i=0;i<e.blocks.length;i++){var r=e.blocks[i];if(r.evaluate(t))return void(n=e.renderAll(r.attachment,t))}}),[n].flatten().join("")},pushBlock:function(t,e){var n;if("else"==t)n=new Liquid.ElseCondition;else{var i=e.split(/\b(and|or)\b/).reverse(),r=i.shift().match(this.tagSyntax);if(!r)throw"Syntax Error in tag '"+t+"' - Valid syntax: "+t+" [expression]";for(var o=new Liquid.Condition(r[1],r[2],r[3]);i.length>0;){var s=i.shift(),r=i.shift().match(this.tagSyntax);if(!r)throw"Syntax Error in tag '"+t+"' - Valid syntax: "+t+" [expression]";var a=new Liquid.Condition(r[1],r[2],r[3]);a[s](o),o=a}n=o}n.attach([]),this.blocks.push(n),this.nodelist=n.attachment}})),Liquid.Template.registerTag("ifchanged",Liquid.Block.extend({render:function(t){var e=this,n="";return t.stack(function(){var i=e.renderAll(e.nodelist,t).join("");i!=t.registers.ifchanged&&(n=i,t.registers.ifchanged=n)}),n}})),Liquid.Template.registerTag("include",Liquid.Tag.extend({tagSyntax:/((?:"[^"]+"|'[^']+'|[^\s,|]+)+)(\s+(?:with|for)\s+((?:"[^"]+"|'[^']+'|[^\s,|]+)+))?/,init:function(t,e,n){var i=(e||"").match(this.tagSyntax);if(!i)throw"Error in tag 'include' - Valid syntax: include '[template]' (with|for) [object|collection]";this.templateName=i[1],this.templateNameVar=this.templateName.substring(1,this.templateName.length-1),this.variableName=i[3],this.attributes={};var r=e.match(/(\w*?)\s*\:\s*("[^"]+"|'[^']+'|[^\s,|]+)/g);r&&r.each(function(t){t=t.split(":"),this.attributes[t[0].strip()]=t[1].strip()},this),this._super(t,e,n)},render:function(t){var e=this,n=Liquid.readTemplateFile(t.get(this.templateName)),i=Liquid.parse(n),r=t.get(this.variableName||this.templateNameVar),o="";return t.stack(function(){e.attributes.each=hackObjectEach,e.attributes.each(function(e){t.set(e.key,t.get(e.value))}),r instanceof Array?o=r.map(function(n){return t.set(e.templateNameVar,n),i.render(t)}):(t.set(e.templateNameVar,r),o=i.render(t))}),o=[o].flatten().join("")}})),Liquid.Template.registerTag("unless",Liquid.Template.tags["if"].extend({render:function(t){var e=this,n="";return t.stack(function(){var i=e.blocks[0];if(!i.evaluate(t))return void(n=e.renderAll(i.attachment,t));for(var r=1;r<e.blocks.length;r++){var i=e.blocks[r];if(i.evaluate(t))return void(n=e.renderAll(i.attachment,t))}}),[n].flatten().join("")}})),Liquid.Template.registerTag("raw",Liquid.Block.extend({parse:function(t){this.nodelist||(this.nodelist=[]),this.nodelist.clear();var e=t.shift();for(t.push("");t.length;){if(/^\{\%/.test(e)){var n=e.match(/^\{\%\s*(\w+)\s*(.*)?\%\}$/);if(n&&this.blockDelimiter==n[1])return void this.endTag()}this.nodelist.push(e||""),e=t.shift()}this.assertMissingDelimitation()},render:function(){return this.nodelist.join("")}})),Liquid.Template.registerFilter({_HTML_ESCAPE_MAP:{"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#39;"},size:function(t){return t.length?t.length:0},downcase:function(t){return t.toString().toLowerCase()},upcase:function(t){return t.toString().toUpperCase()},capitalize:function(t){return t.toString().capitalize()},escape:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},h:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},truncate:function(t,e,n){return t&&""!=t?(e=e||50,n=n||"...",t.slice(0,e),t.length>e?t.slice(0,e)+n:t):""},truncatewords:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var i=t.toString().split(" "),r=Math.max(e,0);return i.length>r?i.slice(0,r).join(" ")+n:t},truncate_words:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var i=t.toString().split(" "),r=Math.max(e,0);return i.length>r?i.slice(0,r).join(" ")+n:t},strip_html:function(t){return t.toString().replace(/<.*?>/g,"")},strip_newlines:function(t){return t.toString().replace(/\n/g,"")},join:function(t,e){return e=e||" ",t.join(e)},split:function(t,e){return e=e||" ",t.split(e)},sort:function(t){return t.sort()},reverse:function(t){return t.reverse()},replace:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,"g"),n)},replace_first:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,""),n)},newline_to_br:function(t){return t.toString().replace(/\n/g,"<br/>\n")},date:function(t,e){var n;return t instanceof Date&&(n=t),n instanceof Date||"now"!=t||(n=new Date),n instanceof Date||"number"!=typeof t||(n=new Date(1e3*t)),n instanceof Date||"string"!=typeof t||(n=new Date(Date.parse(t))),n instanceof Date?n.strftime(e):t},first:function(t){return t[0]},last:function(t){return t=t,t[t.length-1]},minus:function(t,e){return(Number(t)||0)-(Number(e)||0)},plus:function(t,e){return(Number(t)||0)+(Number(e)||0)},times:function(t,e){return(Number(t)||0)*(Number(e)||0)},divided_by:function(t,e){return(Number(t)||0)/(Number(e)||0)},modulo:function(t,e){return(Number(t)||0)%(Number(e)||0)},map:function(t,e){t=t||[];for(var n=[],i=0;i<t.length;i++)n.push(t[i][e]);return n},escape_once:function(t){var e=this;return t.replace(/["><']|&(?!([a-zA-Z]+|(#\d+));)/g,function(t){return e._HTML_ESCAPE_MAP[t]})},remove:function(t,e){return t.toString().replace(new RegExp(e,"g"),"")},remove_first:function(t,e){return t.toString().replace(e,"")},prepend:function(t,e){return""+(e||"").toString()+(t||"").toString()},append:function(t,e){return""+(t||"").toString()+(e||"").toString()}}),(new Date).strftime||function(){Date.ext={},Date.ext.util={},Date.ext.util.xPad=function(t,e,n){for(void 0===n&&(n=10);parseInt(t,10)<n&&n>1;n/=10)t=e.toString()+t;return t.toString()},Date.prototype.locale="en-GB",document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(Date.prototype.locale=document.getElementsByTagName("html")[0].lang),Date.ext.locales={},Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"},"undefined"!=typeof JSON?Date.ext.locales["en-US"]=JSON.parse(JSON.stringify(Date.ext.locales.en)):Date.ext.locales["en-US"]=Date.ext.locales.en,Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z",Date.ext.locales["en-US"].x="%D",Date.ext.locales["en-US"].X="%r",Date.ext.locales["en-GB"]=Date.ext.locales.en,Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"],Date.ext.formats={a:function(t){return Date.ext.locales[t.locale].a[t.getDay()]},A:function(t){return Date.ext.locales[t.locale].A[t.getDay()]},b:function(t){return Date.ext.locales[t.locale].b[t.getMonth()]},B:function(t){return Date.ext.locales[t.locale].B[t.getMonth()]},c:"toLocaleString",C:function(t){return Date.ext.util.xPad(parseInt(t.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(t){return Date.ext.util.xPad(parseInt(Date.ext.util.G(t)/100,10),0)},G:function(t){var e=t.getFullYear(),n=parseInt(Date.ext.formats.V(t),10),i=parseInt(Date.ext.formats.W(t),10);return i>n?e++:0===i&&n>=52&&e--,e},H:["getHours","0"],I:function(t){var e=t.getHours()%12;return Date.ext.util.xPad(0===e?12:e,0)},j:function(t){var e=t-new Date(t.getFullYear()+"/1/1 GMT");e+=6e4*t.getTimezoneOffset();var n=parseInt(e/6e4/60/24,10)+1;return Date.ext.util.xPad(n,0,100)},m:function(t){return Date.ext.util.xPad(t.getMonth()+1,0)},M:["getMinutes","0"],p:function(t){return Date.ext.locales[t.locale].p[t.getHours()>=12?1:0]},P:function(t){return Date.ext.locales[t.locale].P[t.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(t){var e=t.getDay();return 0===e?7:e},U:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=6-t.getDay(),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0)},V:function(t){var e=parseInt(Date.ext.formats.W(t),10),n=new Date(t.getFullYear()+"/1/1").getDay(),i=e+(n>4||n<=1?0:1);return 53==i&&new Date(t.getFullYear()+"/12/31").getDay()<4?i=1:0===i&&(i=Date.ext.formats.V(new Date(t.getFullYear()-1+"/12/31"))),Date.ext.util.xPad(i,0)},w:"getDay",W:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=7-Date.ext.formats.u(t),i=parseInt((e+n)/7,10);return Date.ext.util.xPad(i,0,10)},y:function(t){return Date.ext.util.xPad(t.getFullYear()%100,0)},Y:"getFullYear",z:function(t){var e=t.getTimezoneOffset(),n=Date.ext.util.xPad(parseInt(Math.abs(e/60),10),0),i=Date.ext.util.xPad(e%60,0);return(e>0?"-":"+")+n+i},Z:function(t){return t.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(){return"%"}},Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},Date.ext.aggregates.z=Date.ext.formats.z(new Date),Date.ext.aggregates.Z=Date.ext.formats.Z(new Date),Date.ext.unsupported={},Date.prototype.strftime=function(t){this.locale in Date.ext.locales||(this.locale.replace(/-[a-zA-Z]+$/,"")in Date.ext.locales?this.locale=this.locale.replace(/-[a-zA-Z]+$/,""):this.locale="en-GB");for(var e=this;t.match(/%[cDhnrRtTxXzZ]/);)t=t.replace(/%([cDhnrRtTxXzZ])/g,function(t,n){var i=Date.ext.aggregates[n];return"locale"==i?Date.ext.locales[e.locale][n]:i});var n=t.replace(/%([aAbBCdegGHIjmMpPSuUVwWyY%])/g,function(t,n){var i=Date.ext.formats[n];return"string"==typeof i?e[i]():"function"==typeof i?i.call(e,e):"object"==typeof i&&"string"==typeof i[0]?Date.ext.util.xPad(e[i[0]](),i[1]):n});return e=null,n}}();/*!
* Cross-Browser Split 1.1.1
* Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
* Available under the MIT License
* ECMAScript compliant, uniform cross-browser split method
*/
var split;split=split||function(t){var e,n=String.prototype.split,i=/()??/.exec("")[1]===t;return e=function(e,r,o){if("[object RegExp]"!==Object.prototype.toString.call(r))return n.call(e,r,o);var s,a,l,u,c=[],p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.extended?"x":"")+(r.sticky?"y":""),h=0,r=new RegExp(r.source,p+"g");for(e+="",i||(s=new RegExp("^"+r.source+"$(?!\\s)",p)),o=o===t?-1>>>0:o>>>0;(a=r.exec(e))&&!((l=a.index+a[0].length)>h&&(c.push(e.slice(h,a.index)),!i&&a.length>1&&a[0].replace(s,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===t&&(a[e]=t)}),a.length>1&&a.index<e.length&&Array.prototype.push.apply(c,a.slice(1)),u=a[0].length,h=l,c.length>=o));)r.lastIndex===a.index&&r.lastIndex++;return h===e.length?!u&&r.test("")||c.push(""):c.push(e.slice(h)),c.length>o?c.slice(0,o):c},String.prototype.split=function(t,n){return e(this,t,n)},e}(),"undefined"!=typeof exports&&("undefined"!=typeof module&&module.exports&&(exports=module.exports=Liquid),exports.Liquid=Liquid),Liquid.registerFilters({sectionify:function(t,e,n){function i(t){return t.find("em").first().text().length}var r=null;if(e){var o=jQuery("<div>"+e+"</div>");if(n){var s=jQuery("<div>"+n+"</div>");i(o)>i(s)&&(r=o.text())}else r=o.text()}return r&&t.indexOf("#")<0&&(t=t+"#sts="+r),t},imgix:function(t,e,n){if(jQuery.isArray(t)&&(t=t[0]),!t)return t;t=String(t).replace(/&amp;/g,"&"),t=encodeURIComponent(t);var i={w:e,h:n,dpr:window.devicePixelRatio};return"//swiftype2.imgix.net/"+t+"?"+jQuery.param(jQuery.extend({},{fit:"clip"},i))},dateInLocale:function(t,e){var n=new Date(Date.parse(t)),i=new IntlMessageFormat("{date, date, "+e+"}",_st_tmp_global_locale),r={date:n};return i.format(r)},numberInLocale:function(t){var e={number:t};return new IntlMessageFormat("{number, number}",_st_tmp_global_locale).format(e)},currencyInLocale:function(t,e){var n={number:{}};n.number[e]={style:"currency",currency:e};var i={number:t};return new IntlMessageFormat("{number, number, "+e+"}",_st_tmp_global_locale,n).format(i)},escapeUrl:function(t){if(jQuery.isArray(t)&&(t=t[0]),t)return String(t).replace(/&amp;/g,"&")}}),Liquid.Template.registerTag("translate",Liquid.Tag.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var i=e.match(this.tagSyntax);if(!i)throw"Syntax error in 'translate' - Valid syntax: translate [message]";this.message=i[1],this._super(t,e,n)},_extractNameAndValueFrom:function(t,e){var n;try{n=e.get(t)}catch(t){return null}return void 0!==n&&null!==n?[t.replace(/[^A-Z0-9_]/gi,"_"),n]:[t,null]},_effectiveMessageAndValuesFrom:function(t,e){for(var n="",i={},r=t,o=/^([^{]+){([^},\s]+)/im;;){var s=r.match(o);if(!s){n+=r;break}var a=s[1],l=s[2],u=r.substring(s[0].length);n+=a;var c=this._extractNameAndValueFrom(l,e);c?(n+="{"+c[0],i[c[0]]=c[1]):n+="{"+l,r=u}return[n,i]},_localeStringsToLookFor:function(t){for(var e=t.split("-"),n=[],i=e.length;i>0;--i){var r=e.slice(0,i);n.push(r.join("-"))}return n},render:function(t){for(var e=t.findVariable("i18n"),n=e.locale,i=e.localizationMessages,r=null,o=this._localeStringsToLookFor(n),s=0;s<o.length;++s){var a=i[o[s]];if(a&&(r=a[this.message]))break}if(!r)return"(No translations for '"+this.message+"' in any of these locales: "+o.join(", ")+")";var l=this._effectiveMessageAndValuesFrom(r,t);return new IntlMessageFormat(l[0],n).format(l[1])}})),function(t){"use strict";var e=t._InternalSwiftype=t._InternalSwiftype||{};
// Copyright (c) 2010 Rasmus Andersson http://hunch.se/
// The above copyright notice and this permission notice shall be included in all copies or substantial portions
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
e.LRUCache=function(t){this.size=0,this.limit=t,this._keymap={}},e.LRUCache.prototype.put=function(t,e){var n={key:t,value:e};if(this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size===this.limit)return this.shift();this.size++},e.LRUCache.prototype.shift=function(){var t=this.head;return t&&(this.head.newer?(this.head=this.head.newer,this.head.older=undefined):this.head=undefined,t.newer=t.older=undefined,delete this._keymap[t.key]),t},e.LRUCache.prototype.get=function(t,e){var n=this._keymap[t];if(n!==undefined)return n===this.tail?n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=undefined,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,e?n:n.value)},e.LRUCache.prototype.remove=function(t){var e=this._keymap[t];if(e)return delete this._keymap[e.key],e.newer&&e.older?(e.older.newer=e.newer,e.newer.older=e.older):e.newer?(e.newer.older=undefined,this.head=e.newer):e.older?(e.older.newer=undefined,this.tail=e.older):this.head=this.tail=undefined,this.size--,e.value},e.LRUCache.prototype.clear=function(){this.head=this.tail=undefined,this.size=0,this._keymap={}},"function"==typeof Object.keys?e.LRUCache.prototype.keys=function(){return Object.keys(this._keymap)}:e.LRUCache.prototype.keys=function(){var t=[];for(var e in this._keymap)t.push(e);return t}}(window),/*
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
function(t,e){function n(t){return"string"==typeof t}function i(t){var e=g.call(arguments,1);return function(){return t.apply(this,e.concat(g.call(arguments)))}}function r(t){return t.replace(/^[^#]*#?(.*)$/,"$1")}function o(t){return t.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function s(i,r,o,s,a){var l,c,h,f,d;return s!==u?(h=o.match(i?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),d=h[3]||"",2===a&&n(s)?c=s.replace(i?M:R,""):(f=p(h[2]),s=n(s)?p[i?T:x](s):s,c=2===a?s:1===a?t.extend({},s,f):t.extend({},f,s),c=v(c),i&&(c=c.replace(m,_))),l=h[1]+(i?"#":c||!h[1]?"?":"")+c+d):l=r(o!==u?o:e[D][F]),l}function a(t,e,i){return e===u||"boolean"==typeof e?(i=e,e=v[t?T:x]()):e=n(e)?e.replace(t?M:R,""):e,p(e,i)}function l(e,i,r,o){return n(r)||"object"==typeof r||(o=r,r=i,i=u),this.each(function(){var n=t(this),s=i||y()[(this.nodeName||"").toLowerCase()]||"",a=s&&n.attr(s)||"";n.attr(s,v[e](a,r,o))})}var u,c,p,h,f,d,y,m,g=Array.prototype.slice,_=decodeURIComponent,v=t.param,w=t.bbq=t.bbq||{},b=t.event.special,S="hashchange",x="querystring",T="fragment",C="elemUrlAttr",D="location",F="href",I="src",R=/^.*\?|#.*$/g,M=/^.*\#/,E={};v[x]=i(s,0,o),v[T]=c=i(s,1,r),c.noEscape=function(e){e=e||"";var n=t.map(e.split(""),encodeURIComponent);m=new RegExp(n.join("|"),"g")},c.noEscape(",/"),t.deparam=p=function(e,n){var i={},r={"true":!0,"false":!1,"null":null};return t.each(e.replace(/\+/g," ").split("&"),function(e,o){var s,a=o.split("="),l=_(a[0]),c=i,p=0,h=l.split("]["),f=h.length-1;if(/\[/.test(h[0])&&/\]$/.test(h[f])?(h[f]=h[f].replace(/\]$/,""),h=h.shift().split("[").concat(h),f=h.length-1):f=0,2===a.length)if(s=_(a[1]),n&&(s=s&&!isNaN(s)?+s:"undefined"===s?u:r[s]!==u?r[s]:s),f)for(;p<=f;p++)l=""===h[p]?c.length:h[p],c=c[l]=p<f?c[l]||(h[p+1]&&isNaN(h[p+1])?{}:[]):s;else t.isArray(i[l])?i[l].push(s):i[l]!==u?i[l]=[i[l],s]:i[l]=s;else l&&(i[l]=n?u:"")}),i},p[x]=i(a,0),p[T]=h=i(a,1),t[C]||(t[C]=function(e){return t.extend(E,e)})({a:F,base:F,iframe:I,img:I,input:I,form:"action",link:F,script:I}),y=t[C],t.fn[x]=i(l,x),t.fn[T]=i(l,T),w.pushState=f=function(t,i){n(t)&&/^#/.test(t)&&i===u&&(i=2);var r=t!==u,o=c(e[D][F],r?t:{},r?i:2);e[D][F]=o+(/#/.test(o)?"":"#")},w.getState=d=function(t,e){return t===u||"boolean"==typeof t?h(t):h(e)[t]},w.removeState=function(e){var n={};e!==u&&(n=d(),t.each(t.isArray(e)?e:arguments,function(t,e){delete n[e]})),f(n,2)},b[S]=t.extend(b[S],{add:function(e){function n(t){var e=t[T]=c();t.getState=function(t,n){return t===u||"boolean"==typeof t?p(e,t):p(e,n)[t]},i.apply(this,arguments)}var i;if(t.isFunction(e))return i=e,n;i=e.handler,e.handler=n}})}(jQuery,this),/*
* jQuery hashchange event - v1.2 - 2/11/2010
* http://benalman.com/projects/jquery-hashchange-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
function(t,e,n){function i(t){return t=t||e[s][l],t.replace(/^[^#]*#?(.*)$/,"$1")}var r,o=t.event.special,s="location",a="hashchange",l="href",u=t.browser,c=document.documentMode,p=u.msie&&(c===n||c<8),h="on"+a in e&&!p;t[a+"Delay"]=100,o[a]=t.extend(o[a],{setup:function(){if(h)return!1;t(r.start)},teardown:function(){if(h)return!1;t(r.stop)}}),r=function(){function n(){u=c=function(t){return t},p&&(o=t('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,c=function(){return i(o.document[s][l])},(u=function(t,e){if(t!==e){var n=o.document;n.open().close(),n[s].hash="#"+t}})(i()))}var r,o,u,c,h={};return h.start=function(){if(!r){var o=i();u||n(),function n(){var p=i(),h=c(o);p!==o?(u(o=p,h),t(e).trigger(a)):h!==o&&(e[s][l]=e[s][l].replace(/#.*/,"")+"#"+h),r=setTimeout(n,t[a+"Delay"])}()}},h.stop=function(){o||(r&&clearTimeout(r),r=0)},h}()}(jQuery,this),function(t,e){"use strict";var n=t._InternalSwiftype=t._InternalSwiftype||{};n.Utils=n.Utils||{},n.Utils.compareObjects=function(t,e){var i=!1,r=!1;if(null!==t&&void 0!==t||(i=!0),null!==e&&void 0!==e||(r=!0),i!==r)return!1;if(i)return!0;var o=[],s=[];for(var a in t)t.hasOwnProperty(a)&&o.push(a);for(var l in e)e.hasOwnProperty(l)&&s.push(l);if(o.length!==s.length)return!1;for(var u,c,p=0;p<o.length;++p)if(u=t[o[p]],c=e[o[p]],"object"==typeof u&&"object"==typeof c){if(!n.Utils.compareObjects(u,c))return!1}else if(u!==c)return!1;for(var h=0;h<s.length;++h)if(u=t[s[h]],c=e[s[h]],"object"==typeof u&&"object"==typeof c){if(!n.Utils.compareObjects(u,c))return!1}else if(u!==c)return!1;return!0},"undefined"==typeof Object.create?n.Utils.createObject=function(t){function e(){}return e.prototype=t,new e}:n.Utils.createObject=Object.create,n.Utils.trimString=function(t){return t.replace(/^\s+|\s+$/g,"")},n.Utils.isBlank=function(t){return t===undefined||null===t||/^\s+$/.test(t)},n.Utils.escapeHtml=function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(t).replace(/[&<>"']/g,function(t){return e[t]})},n.Utils.truncateString=function(t,e){return"string"==typeof t&&t.length>e?t.slice(0,e-3)+"...":t},n.Utils.safelyDeleteProperty=function(t,e){try{delete e[t]}catch(n){e[t]=undefined}},n.Utils._compileTemplate=function(t){return Liquid.parse(t)},n.Utils.getDataOrClassValue=function(t,i,r){t=e(t);var o=t.data(i);if(!n.Utils.isBlank(o))return o;var s=(t.attr("class")||"").split(/\s+/);return e.each(s,function(t,e){if(e.substring(0,i.length)===i){var o=e.substring(i.length+1);if(!n.Utils.isBlank(o))return r&&(o=o.replace("_nextlevel_"," "),o=o.replace("_domid_","#"),o=o.replace(/^domid_/,"#"),o=o.replace("_cssclass_","."),o=o.replace(/^cssclass_/,".")),o}}),null},n.Utils.eventIsMiddleClick=function(t){return("click"===t.type||"mousedown"===t.type)&&(2===t.which||t.ctrlKey||t.metaKey)},n.Utils.eventIsLeftClick=function(t){return("click"===t.type||"mousedown"===t.type)&&1===t.which},n.Utils.bindOnEventsTo=function(t,n){n=this._adjustEventTypesForIESupport(n);var i=e.makeArray(arguments).slice(2);e(t).on(n,i[0],i[1],i[2])},n.Utils.bindOneEventsTo=function(t,n){n=this._adjustEventTypesForIESupport(n);var i=e.makeArray(arguments).slice(2);e(t).one(n,i[0],i[1],i[2])},n.Utils._adjustEventTypesForIESupport=function(t){var n=t.split(" ");return e.map(n,function(t){switch(t){case"input":return"textchange";default:return t}}).join(" ")},n.Utils.getCompiledTemplate=function(i,r,o,s){var a=i[r];return"string"==typeof a&&(a=function(){var i=n.Utils._compileTemplate(a);return{render:function(n){t._st_tmp_global_locale=o;var r=e.extend({},n),a=e.extend({},n.i18n||{});r.i18n=a,r.i18n.locale=o,r.i18n.localizationMessages=s;var l=i.render(r);return t._st_tmp_global_locale=undefined,l}}}(),i[r]=a),a},n.Utils.allCssClassesOn=function(t){t=e(t);var n=t.attr("class");return n?n.split(/\s+/):[]},n.Utils.hasClassMatching=function(t,i){var r=n.Utils.allCssClassesOn(t),o=!1;return e.each(r,function(t,e){e.match(i)&&(o=!0)}),o},n.Utils.describeElement=function(t){if(!t)return"(null)";t=e(t);var n=t.prop("tagName"),i=t.attr("id");if(i)return n+"#"+i;var r=t.attr("class");return r?n+"."+r:'(anonymous "'+n+'")'},n.Utils.convertObjectToQueryParams=function(t){return e.param(t)},n.Utils.convertQueryParamsToObject=function(t){return e.deparam(t)},n.Utils._addRemoveClass=function(t,n,i,r){t=e(t),n||i?(i&&t.hasClass(i)&&t.removeClass(i),n&&!t.hasClass(n)&&t.addClass(n)):r()},n.Utils._addRemoveClassWithTimeout=function(t,e,i,r){setTimeout(function(){n.Utils._addRemoveClass(t,e,i,r)},100)},n.Utils.elementShow=function(t){e.each(e(t),function(t,i){var r=n.Utils.getDataOrClassValue(i,"st-on-show"),o=n.Utils.getDataOrClassValue(i,"st-on-hide");n.Utils._addRemoveClassWithTimeout(i,r,o,function(){e(i).show()})})},n.Utils.elementHide=function(t){e.each(e(t),function(t,i){var r=n.Utils.getDataOrClassValue(i,"st-on-show"),o=n.Utils.getDataOrClassValue(i,"st-on-hide");n.Utils._addRemoveClassWithTimeout(i,o,r,function(){e(i).hide()})})},n.Utils.removeInlineDisplayStyle=function(t){e(t).attr("style",function(t,e){if(e)return e.replace(/display[^;]+;?/g,"")})},n.Utils.isInputLikeElement=function(t){return t=e(t),t.is("input")||t.is("textarea")},n.Utils.isFormElement=function(t){return t=e(t),t.is("form")},n.Utils.ieVersion=function(){for(var t,e=5,n=document.createElement("div"),i=n.getElementsByTagName("i");n.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->",i[0];);var r=e>6?e:t;return undefined,r},n.Utils.isMobile=function(){return/iPhone|iPad|iPod|Android|Windows Phone/.test(navigator.userAgent)},n.Utils.addParamsToUrl=function(t,n){var i="string"===e.type(n)?n:e.param(n);return t+=t.indexOf("?")<0?"?"+i:"&"+i},n.Utils.convertToFullPath=function(t){switch(t.indexOf("//")){case 0:t=window.location.protocol+t;break;default:t.indexOf("http")===-1&&(t="/"===t[0]?window.location.protocol+"//"+window.location.host+t:window.location.protocol+"//"+window.location.host+"/"+t)}return t},n.Utils.getHash=function(){return window.location.href.split("#")[1]||""},n.Utils.pushToGA=function(t){var e=encodeURIComponent(t);"undefined"!=typeof window._gaq&&window._gaq.push(["_trackPageview","/search?stq="+e]),"undefined"!=typeof window.ga&&window.ga("send","pageview","/search?stq="+e)},n.Utils.fireGAEvent=function(t,e,n,i){"undefined"!=typeof window._gaq&&window._gaq.push(["_trackEvent",t,e,n,i]),"undefined"!=typeof window.ga&&window.ga("send","event",t,e,n,i)},n.Utils.stringOperator=function(t,e,n){return{and:function(t,e){return t&&e},or:function(t,e){return t||e}}[t](e,n)},n.Utils.isEmptyObject=function(t){return e.isEmptyObject(t)},n.Utils.debounce=function(t,e,n){var i;return function(){var r=this,o=arguments,s=function(){i=null,n||t.apply(r,o)},a=n&&!i;clearTimeout(i),i=setTimeout(s,e),a&&t.apply(r,o)}},n.Utils.generateUrl=function(t,e,n){var i="__PLACEHOLDER__",r=t.replace(i,e);return void 0!==n&&(r=r+"."+n),r}}(window,jQuery),function(global,$,moment,rome){"use strict";var Swiftype=global._InternalSwiftype=global._InternalSwiftype||{};global._InternalSwiftypeError=function(t,e,n){this.level=e,this.message=n,this.contextObject=t};var pSwiftypeError=global._InternalSwiftypeError.prototype;pSwiftypeError.toString=function(){return this.contextObject+": "+this.level.toUpperCase()+": "+this.message},Swiftype.CssBehaviorClasses={adornments:{show_only_on_empty_query:"st-query-not-present",show_only_on_nonempty_query:"st-query-present"}};var DEBUG="debug",WARN="warn",FATAL="fatal";Swiftype.HashManager=function(t,e){this._installIndex=t,this._anchorHashChangedCallback=e,this._delimiter="-",$(window).on("hashchange",this._anchorHashChanged.bind(this))};var pHashManager=Swiftype.HashManager.prototype;pHashManager._anchorHashChanged=function(){this._anchorHashChangedCallback(this.getAnchorParams())},pHashManager._getHash=function(){return window.location.href.split("#")[1]||""},pHashManager._getGlobalAnchorParamsHash=function(){return Swiftype.Utils.convertQueryParamsToObject(this._getHash())},pHashManager._parseHashKey=function(t){var e=t.split(this._delimiter),n=e.length>1?parseInt(e.pop(),10):0,i=e.join(this._delimiter);return isNaN(n)&&(n=0,i=t),{installIndex:n,key:i}},pHashManager._getAnchorParamsHash=function(){var t=this,e={};return $.each(this._getGlobalAnchorParamsHash(),function(n,i){var r=t._parseHashKey(n);r.installIndex===t._installIndex&&(e[r.key]=i)}),e},pHashManager.getAnchorParams=function(){return new Swiftype.AnchorParams(null,this._getAnchorParamsHash())},pHashManager.scopeAnchorParamsHash=function(t){if(0===this._installIndex)return t;var e=this,n={};return $.each(t,function(t,i){n[t+e._delimiter+e._installIndex]=i}),n},pHashManager.updateHash=function(t){var e=this,n={};$.each(this._getGlobalAnchorParamsHash(),function(t,i){e._parseHashKey(t).installIndex!==e._installIndex&&(n[t]=i)}),$.extend(n,this.scopeAnchorParamsHash(t));var i=new Swiftype.AnchorParams(null,n);window.location.hash=i.toAnchorString()},Swiftype.Install=function(t,e,n){if("string"!=typeof t)throw"This is not a valid install key: '"+t+"'; it must be a string.";if(t=Swiftype.Utils.trimString(t),20!==t.length)throw"This is not a valid install key: '"+t+"'; it must be of length 20.";this._readyListeners=[],this._searchCompleteListeners=[],this._installKey=t,this._userScriptConfiguration=e,this._isDefaultInstall=0===n,this._userServerConfiguration=null,this._configuration=$.extend({},this._userScriptConfiguration),this._dependentResourceLoadingTimeoutAfter=null,this._dependentResourceLoadingTimeoutId=null,this._hashManager=new Swiftype.HashManager(n,this._fireListeners.bind(this,"anchorHashChanged")),this._fetchUserServerConfiguration(),this._setDebugLevel(),this._searchHistory=new Swiftype.SearchHistory.forInstallKey(t)};var pInstall=Swiftype.Install.prototype;pInstall.toString=function(){return"[Swiftype.Install '"+this._installKey+"']"},pInstall.isDefaultInstall=function(){return this._isDefaultInstall},pInstall.cookieSearchQuery=function(t){var e=t.apiAjaxDataParameters();this._searchHistory.trackQueryForActiveInstall(e)},pInstall.cookieSearchResult=function(t){var e=t.getQuery(),n=e.apiAjaxDataParameters(),i=t._apiResult.id;this._searchHistory.trackClickForActiveInstall(n,i)},pInstall._normalizeInstallKey=function(t){return Swiftype.Utils.trimString(t).replace("-","_")},pInstall.matchesKey=function(t){return this._normalizeInstallKey(t)===this._normalizeInstallKey(this._installKey)},pInstall.getInstallDataAttribute=function(){return this._installKey},pInstall.getHashManager=function(){return this._hashManager},pInstall._userServerConfigurationUrl=function(){return Swiftype.Utils.generateUrl("//s.swiftypecdn.com/install/v2/config/__PLACEHOLDER__",this._installKey,"json")},pInstall._fetchUserServerConfiguration=function(){var t=this._userServerConfigurationUrl();$.ajax({type:"GET",url:t,success:this._processConfiguration.bind(this),error:this._userServerConfigurationRetrievalFailed.bind(this)})},pInstall._processConfiguration=function(t){if(this._userServerConfiguration=t,this._configuration=$.extend(!0,this._userServerConfiguration,this._userScriptConfiguration),this._validConfiguration())this._convertStringHooksToFunctions(),this._localizationMessages=this._configuration.install.localization_messages,this._locale=this._configuration.install.locale.toLowerCase(),this._primaryDocType=this._configuration.install.primary_doc_type,this._loadDependentResources();else{var e='Unable to retrieve configuration for install "'+this._installKey+'" at "'+this._userServerConfigurationUrl()+'"';this._configFetchError.error&&this._configFetchError.exception&&(e+="; got: "+this._configFetchError.error+" / "+this._configFetchError.exception),e+=". Swiftype will not work on this page.",this.log(this,FATAL,e)}},pInstall._userServerConfigurationRetrievalFailed=function(t,e,n){this._configFetchError={error:e,exception:n},this._processConfiguration({})},pInstall._validConfiguration=function(){return!!this._configuration.install},pInstall._convertStringHooksToFunctions=function(){var functionHooks={};$.each(this._userServerConfiguration.install.hooks,function(hookName,hookFunction){functionHooks[hookName]=eval(hookFunction)}),this._userServerConfiguration.install.hooks=functionHooks},pInstall.getLocale=function(){return this._locale},pInstall.getPrimaryDocType=function(){return this._primaryDocType},pInstall.getLocalizationMessages=function(){return this._localizationMessages},pInstall.addReadyListener=function(t){this._readyListeners===!1?t():this._readyListeners.push(t)},pInstall.addSearchCompleteListener=function(t){this._searchCompleteListeners.push(t)},pInstall._dependentStylesheetResources=function(){if(!this._dependentStylesheetResourcesMemoized){var t=this;this._dependentStylesheetResourcesMemoized=$.map(this._configuration.install.web.dependent_resources.stylesheets||[],function(e){return new Swiftype.Install.DependentStylesheet(t,e)})}return this._dependentStylesheetResourcesMemoized},pInstall._dependentJavascriptResourcesList=function(){return(this._configuration.install.web.dependent_resources.javascripts||[]).concat(this._dependentJavascriptPolyfillList())},pInstall._dependentJavascriptPolyfillList=function(){var t=[];return global.Intl||t.push(this._configuration.install.web.dependent_resources.polyfills.intl+this._locale+".js"),t},pInstall._dependentJavascriptResources=function(){if(!this._dependentJavascriptResourcesMemoized){var t=this;this._dependentJavascriptResourcesMemoized=$.map(this._dependentJavascriptResourcesList(),function(e){return new Swiftype.Install.DependentJavascript(t,e)})}return this._dependentJavascriptResourcesMemoized},pInstall._inlineStylesheetResources=function(){return new Swiftype.Install.InlineStylesheet(this,this._configuration.install.web.dependent_resources.inline_stylesheet)},pInstall._ieStylesheetResources=function(){var t,e=this,n=Swiftype.Utils.ieVersion();if(n){var i=(this._webConfig().dependent_resources.browser_stylesheets||{})["ie"+n];i&&(t=new Swiftype.Install.DependentStylesheet(e,i))}return t||[]},pInstall._dependentResources=function(){return this._dependentResourcesMemoized||(this._dependentResourcesMemoized=this._dependentStylesheetResources().concat(this._dependentJavascriptResources()).concat(this._inlineStylesheetResources()).concat(this._ieStylesheetResources())),this._dependentResourcesMemoized},pInstall._loadDependentResources=function(){$.each(this._dependentResources(),function(t,e){e.load()}),this._areDependentResourcesLoaded()?this._allDependentResourcesDidLoad():(this._dependentResourceLoadingTimeoutAfter=Date.now()+15e3,this._dependentResourceLoadingTimeoutId=global.setInterval(this._checkDependentResourcesLoaded.bind(this),100))},pInstall._areDependentResourcesLoaded=function(){if(!this._areDependentResourcesLoadedMemoized){var t=!0;$.each(this._dependentResources(),function(e,n){n.isLoaded()||(t=!1)}),this._areDependentResourcesLoadedMemoized=t}return this._areDependentResourcesLoadedMemoized},pInstall._checkDependentResourcesLoaded=function(){var t=this._areDependentResourcesLoaded();(t||Date.now()>=this._dependentResourceLoadingTimeoutAfter)&&(global.clearInterval(this._dependentResourceLoadingTimeoutId),this._dependentResourceLoadingTimeoutAfter=null,t?this._allDependentResourcesDidLoad():this._allDependentResourcesDidFailToLoad())},pInstall._queryElementLocator=function(){return this._queryElementLocatorMemoized||(this._queryElementLocatorMemoized=new Swiftype.QueryElementLocator(this,document.body)),this._queryElementLocatorMemoized},pInstall._webConfig=function(){return this._configuration.install.web},pInstall._templatesConfig=function(){return this._webConfig().templates["default"]},pInstall._createInjectionPoint=function(t){var e=$("<div></div>");e.addClass("st-injected-content-generated"),this._queryElementLocator().allocateToInstall(e);var n=this._webConfig().ui_bindings.injected_content.attach_points[t];this._setLocaleClassToElement(e);var i=/^#(\S+)$/,r=/^\.(\-?[_A-Za-z]+[_a-zA-Z0-9-]*)$/;return $.each(n,function(t,n){var o=i.exec(n);if(o)return e.attr("id",o[1]),e;var s=r.exec(n);return s?(e.addClass(s[1]),e):void 0}),e},pInstall._handleGlobalEvents=function(){var t=this;$(window).resize(function(e){t._fireListeners("windowResized",e)})},pInstall._setLocaleClassToElement=function(t){var e=this._configuration.install.locale,n=this._configuration.install.rtl_locales;$.inArray(e,$.parseJSON(n))>=0&&t.addClass("swiftype-rtl")},pInstall._findInjectionPoint=function(t){var e=this._webConfig().ui_bindings.injected_content.attach_points[t],n=this,i=null;return $.each(e,function(t,e){$(e).each(function(t,e){if(e=$(e),n._queryElementLocator().belongsToInstall(e))return i=e,!0})}),i},pInstall._findOrCreateInjectionPoint=function(t){var e=this._findInjectionPoint(t);return e?this._queryElementLocator().allocateToInstall(e):(e=this._createInjectionPoint(t),$(document.body).append(e)),e},pInstall._addInjectedContentIfNeeded=function(){var t=this,e=this._templatesConfig().injected_content;e&&!Swiftype.Utils.isEmptyObject(e)&&$.each(e,function(n,i){var r=t._findOrCreateInjectionPoint(n);i&&new Swiftype.InjectedContent(r,e,n,t.getLocale(),t.getLocalizationMessages()).attach()})},pInstall._setupConstantCrawl=function(){new Swiftype.ConstantCrawl(this._configuration.install.endpoints.constant_crawl).attach()},pInstall._setupUi=function(){this._addInjectedContentIfNeeded(),this._setupConstantCrawl(),this._searchContext=new Swiftype.QueryContext(this,"search",this._templatesConfig().search,this._webConfig().ui_bindings.search,this._webConfig().ui.search,this._configuration.install.hooks),this._autocompleteContext=new Swiftype.QueryContext(this,"autocomplete",this._templatesConfig().autocomplete,this._webConfig().ui_bindings.autocomplete,this._webConfig().ui.autocomplete,this._configuration.install.hooks),this._autocompleteContext.setupUi(),this._searchContext.setupUi(),this._handleGlobalEvents(),this._readyListeners&&($.each(this._readyListeners,function(t,e){e()}),this._readyListeners=!1)},pInstall.getSearchContext=function(){return this._searchContext},pInstall._fireListeners=function(){this._searchContext._fireListeners.apply(this._searchContext,arguments),this._autocompleteContext._fireListeners.apply(this._autocompleteContext,arguments)},pInstall._allDependentResourcesDidLoad=function(){var t=this;$(function(){t._setupUi()})},pInstall._allDependentResourcesDidFailToLoad=function(){this._allDependentResourcesDidLoad()},pInstall._setDebugLevel=function(){this._outputDebugMessages=!1,this.getHashManager().getAnchorParams().getValue("sdebug")&&(this._outputDebugMessages=!0)},pInstall.log=function(t,e,n){this._outputDebugMessages&&window.console&&console.log(new global._InternalSwiftypeError(t,e,n))},pInstall._wrapApiResults=function(t,e){return new Swiftype.Results(t,e,this.getPrimaryDocType())},pInstall._wrapSuccessCallback=function(t,e){var n=this;return function(i,r,o){e(n._wrapApiResults(t,i),r,o),$.each(n._searchCompleteListeners,function(e,n){n(t)})}},pInstall.performSearch=function(t,e,n){var i=this._configuration.install.endpoints[t.queryType()],r=this,o={type:"POST",url:i,xhrFields:{withCredentials:!0},data:t.apiAjaxDataParameters(),success:r._wrapSuccessCallback(t,e),error:n};this.log(this,DEBUG,"Asking Swiftype to perform the following query: "+JSON.stringify(o)),$.ajax(o)},pInstall.currentQueryDidChange=function(t,e,n){this._searchContext.someQueryChanged(t,e,n),this._autocompleteContext.someQueryChanged(t,e,n)},pInstall._trackAndSendToSearchResult=function(t,e,n,i){n=Swiftype.Utils.convertToFullPath(n);var r={_st_tracking:e.toTrackingParams(),_st_url:n},o=Swiftype.Utils.addParamsToUrl(t,r);this._sendToUrl(o,i)},pInstall._directlySendToSearchResult=function(t,e,n){this._sendToUrl(e,n)},pInstall._sendToUrl=function(t,e){e?window.open(t,"_blank"):window.location=t},pInstall.sendToSearchResult=function(t,e,n){var i=this._webConfig().analytics[t.getQuery().queryType()],r=this._configuration.install.endpoints.track_and_redirect_to_result;this.cookieSearchResult(t),i&&r?this._trackAndSendToSearchResult(r,t,e,n):this._directlySendToSearchResult(t,e,n)},pInstall._searchResultsPageUrl=function(){return this._webConfig().ui.search_results_page_url},pInstall.onSearchResultsPage=function(){var t=this._searchResultsPageUrl();if(t){var e=null;return e=0===t.indexOf("http://")||0===t.indexOf("https://")||0===t.indexOf("//")?window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search:window.location.pathname+window.location.search,t===e||t+"/"===e||t===e+"/"}return!0},pInstall.sendUserToSearchResultsPageFor=function(t){var e=this._searchResultsPageUrl();if(!this._searchResultsPageUrl())throw new Error("No Search Results Page URL configured.");var n=this.getHashManager().scopeAnchorParamsHash(t.toAnchorParams()),i=new Swiftype.AnchorParams(null,n);window.location=e+"#"+i.toAnchorString()},Swiftype.Install.InlineStylesheet=function(t,e){this._install=t,this._loaded=!1,this._inlineCss=e};var pInlineStylesheet=Swiftype.Install.InlineStylesheet.prototype;pInlineStylesheet.toString=function(){return"[Swiftype.Install.InlineStylesheet]"},pInlineStylesheet.load=function(){this.isLoaded()||($("head").append("<style type='text/css'>"+this._inlineCss+"</style>"),this._loaded=!0)},pInlineStylesheet.isLoaded=function(){return this._loaded},Swiftype.Install.DependentStylesheet=function(t,e){this._install=t,this._url=e,this._loadRequested=!1,this._loaded=!1,this._link=null};var pDependentStylesheet=Swiftype.Install.DependentStylesheet.prototype;pDependentStylesheet.toString=function(){return"[Swiftype.Install.DependentStylesheet "+this._url+"]"},pDependentStylesheet._tagAttachPoint=function(){return this._tagAttachPointMemoized||(this._tagAttachPointMemoized=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]),this._tagAttachPointMemoized},pDependentStylesheet._inferDetectionRulesFromTag=function(){"sheet"in this._link?(this._sheetPropertyName="sheet",this._rulesPropertyName="cssRules"):(this._sheetPropertyName="styleSheet",this._rulesPropertyName="rules")},pDependentStylesheet.load=function(){this._loadRequested||(this._link=document.createElement("link"),this._link.rel="stylesheet",this._link.type="text/css",this._link.href=this._url,this._tagAttachPoint().appendChild(this._link),this._inferDetectionRulesFromTag(),this._loadRequested=!0)},pDependentStylesheet.isLoaded=function(){if(!this._loaded){if(!this._loadRequested)return!1;this._link[this._sheetPropertyName]&&(this._loaded=!0)}return this._loaded},Swiftype.Install.DependentJavascript=function(t,e){this._install=t,this._url=e,this._loadRequested=!1,this._loaded=!1};var pDependentJavascript=Swiftype.Install.DependentJavascript.prototype;pDependentJavascript.toString=function(){return"[Swiftype.Install.DependentJavascript "+this._url+"]"},pDependentJavascript._didLoad=function(){this._loaded=!0},pDependentJavascript.load=function(){if(!this._loadRequested){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=this._url;var e=document.getElementsByTagName("script")[0];if(e.parentNode.insertBefore(t,e),t.addEventListener)t.addEventListener("load",this._didLoad.bind(this),!1);else{var n=this;t.attachEvent("onreadystatechange",function(){/complete|loaded/.test(t.readyState)&&n._didLoad()})}}},pDependentJavascript.isLoaded=function(){return this._loaded},Swiftype.Result=function(t,e,n){this._resultSet=t,this._sequenceInThisPage=e,this._apiResult=n};var pResult=Swiftype.Result.prototype;pResult.toString=function(){return"[Swiftype.Result: Result "+this._sequenceInThisPage+" in this page for "+this._resultSet+"]"},pResult.getQuery=function(){return this._resultSet.getQuery()},pResult.getQueryType=function(){return this.getQuery().queryType()},pResult.getResultSet=function(){return this._resultSet},pResult._escapeHtml=function(t){return"string"!=typeof t?t:Swiftype.Utils.escapeHtml(t)},pResult._highlightFor=function(t){return this._apiResult.highlight[t]},pResult._rawFor=function(t){return this._apiResult[t]},pResult._arrayFor=function(t){var e=this._rawFor(t);return $.isArray(e)?e:[e]},pResult._scalarFor=function(t){var e=this._rawFor(t);return $.isArray(e)?e[0]:e},pResult._truncate=function(t){return Swiftype.Utils.truncateString(t,300)},pResult._templateResult=function(t){return this._highlightFor(t)||this._escapeHtml(this._truncate(this._scalarFor(t)))},pResult._templateFullResult=function(t){return this._escapeHtml(this._scalarFor(t))},pResult._templateArrayResult=function(t){var e=this;return $.map(this._arrayFor(t),function(t){return e._escapeHtml(t)})},pResult._templateRawResult=function(t){return this._rawFor(t)},pResult._syntheticTemplateRenderingContextProperties=function(){return{__rank:this.getSequenceInThisPage(),doc_id:this._apiResult.id}},pResult._mapToTemplateRenderingContext=function(t){var e=this,n=$.extend({},this._syntheticTemplateRenderingContextProperties());return $.each(this._apiResult,function(i){n[i]=t.call(e,i)}),n},pResult.toTemplateRenderingContext=function(){return this._toTemplateRenderingContextMemoized||(this._toTemplateRenderingContextMemoized={result:this._mapToTemplateRenderingContext(this._templateResult),full_result:this._mapToTemplateRenderingContext(this._templateFullResult),array_result:this._mapToTemplateRenderingContext(this._templateArrayResult),raw_result:this._mapToTemplateRenderingContext(this._templateRawResult)}),this._toTemplateRenderingContextMemoized},pResult.toTrackingParams=function(){return{doc_id:this._apiResult.id,query:this.getQuery().toTrackingParams(),query_type:this.getQueryType()}},pResult.getSequenceInThisPage=function(){return this._sequenceInThisPage},pResult.getOverallSequence=function(){return this._resultSet.currentPageStart()+this.getSequenceInThisPage()},pResult.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=$.extend({},this._resultSet.getTemplateRenderingContext(),this.toTemplateRenderingContext())),this._getTemplateRenderingContextMemoized},Swiftype.ResultSet=function(t,e,n,i){this._resultObject=t,this._setName=e,this._apiMetadata=n,this._resultArray=[];var r=this;$.each(i,function(t,e){var n=new Swiftype.Result(r,t,e);r._resultArray.push(n)})};var pResultSet=Swiftype.ResultSet.prototype;pResultSet.getSetName=function(){return this._setName},pResultSet.getQuery=function(){return this._resultObject.getQuery()},pResultSet.currentPageNumber=function(){return this._apiMetadata.current_page},pResultSet.facets=function(){return this._apiMetadata.facets},pResultSet.lastPageNumber=function(){return this._apiMetadata.num_pages},pResultSet.totalResultCount=function(){return this._apiMetadata.total_result_count},pResultSet._perPage=function(){return this._apiMetadata.per_page},pResultSet.currentPageStart=function(){return(this.currentPageNumber()-1)*this._perPage()+1},pResultSet._currentPageEnd=function(){return this.currentPageNumber()===this.lastPageNumber()?this.totalResultCount():this.currentPageNumber()*this._perPage()},pResultSet._numPages=function(){return this._apiMetadata.num_pages},pResultSet.toString=function(){return"[Swiftype.ResultSet for '"+this._setName+"' for "+this._resultObject+": page "+this.currentPageNumber()+" of "+this.lastPageNumber()+", "+this.totalResultCount()+" total results]"},pResultSet.toTemplateRenderingContext=function(){if(!this._toTemplateRenderingContextMemoized){var t={current_page:this.currentPageNumber(),current_page_start:this.currentPageStart(),current_page_end:this._currentPageEnd(),num_pages:this.lastPageNumber(),per_page:this._perPage(),total_records_for_this_set:this._apiMetadata.total_result_count,records:[],spelling_suggestions:[],spelling_suggestion:null};$.each(this._resultArray,function(e,n){t.records.push(n.toTemplateRenderingContext())});var e=this.getSpellingSuggestions();$.each(e,function(e,n){t.spelling_suggestions.push(n.getTemplateRenderingContext())}),e.length>0&&(t.spelling_suggestion=e[0].getTemplateRenderingContext()),this._toTemplateRenderingContextMemoized=t}return this._toTemplateRenderingContextMemoized},pResultSet.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=$.extend({},this._resultObject.getTemplateRenderingContext(),this.toTemplateRenderingContext())),this._getTemplateRenderingContextMemoized},pResultSet.eachResult=function(t){$.each(this._resultArray,t)},pResultSet.countOfResultsOnThisPage=function(){return this._resultArray.length},pResultSet.getSpellingSuggestions=function(){var t=this._apiMetadata.spelling_suggestion,e=[];return t&&e.push(new Swiftype.SpellingSuggestionResult(t.text,t.score)),e},Swiftype.SpellingSuggestionResult=function(t,e){this._text=t,this._score=e};var pSpellingSuggestionResult=Swiftype.SpellingSuggestionResult.prototype;pSpellingSuggestionResult.toString=function(){return"[Swiftype.SpellingSuggestionResult: '"+this._text+"', score "+this._score+"]"},pSpellingSuggestionResult.getText=function(){return this._text},pSpellingSuggestionResult.getScore=function(){return this._score},pSpellingSuggestionResult.potentiallyMergeWith=function(t){if(t._text===this._text){var e=this._score;return t._score>this._score&&(e=t._score),new Swiftype.SpellingSuggestionResult(this._text,e)}return null},pSpellingSuggestionResult.getTemplateRenderingContext=function(){return this._toTemplateRenderingContextMemoized||(this._toTemplateRenderingContextMemoized={text:Swiftype.Utils.escapeHtml(this._text),score:this._score}),this._toTemplateRenderingContextMemoized},Swiftype.Results=function(t,e,n){this._query=t,this._errors=e.errors,this._resultSetsByName={},this._primaryDocType=n;var i=this;$.each(e.info,function(t,n){var r=e.records[t]||[];i._resultSetsByName[t]=new Swiftype.ResultSet(i,t,n,r)})};var pResults=Swiftype.Results.prototype;pResults.toString=function(){return"[Swiftype.Results for "+this._query+"; results: "+this.totalRecordsAcrossAllSets()+"]"},pResults.getQuery=function(){return this._query},pResults.isEmptyQuery=function(){return this.getQuery().isEmptyQuery()},pResults.toTemplateRenderingContext=function(){if(!this._toTemplateRenderingContextMemoized){var t={query:this._query.toTemplateRenderingContext(),total_records_across_all_sets:this.totalRecordsAcrossAllSets(),total_results:this.totalRecordsAcrossAllSets(),errors:this._errors,spelling_suggestion:null,spelling_suggestions:[],sets:{}},e=this.getAllSpellingSuggestions();$.each(e,function(e,n){t.spelling_suggestions.push(n.getTemplateRenderingContext())}),e.length>0&&(t.spelling_suggestion=e[0].getTemplateRenderingContext()),$.each(this._resultSetsByName,function(e,n){t.sets[e]=n.toTemplateRenderingContext()}),this._toTemplateRenderingContextMemoized=t}return this._toTemplateRenderingContextMemoized},pResults.getTemplateRenderingContext=function(){return this._getTemplateRenderingContextMemoized||(this._getTemplateRenderingContextMemoized=this.toTemplateRenderingContext()),this._getTemplateRenderingContextMemoized},pResults._resultSetNames=function(){var t=$.map(this._resultSetsByName,function(t,e){return e});return t.sort(),t},pResults._resultSetCount=function(){return this._resultSetNames().length},pResults._getResultSet=function(t){return this._resultSetsByName[t]},pResults.firstResultSet=function(){return this._getResultSet(this._primaryDocType)},pResults._eachResultSet=function(t){$.each(this._resultSetsByName,function(e,n){t(n)})},pResults.totalRecordsAcrossAllSets=function(){var t=0;return this._eachResultSet(function(e){t+=e.totalResultCount()}),t},pResults.hasAnyResults=function(){return this.totalRecordsAcrossAllSets()>0},pResults._uniqifySpellingSuggestions=function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];if(i){for(var r=n+1;r<t.length;++r){var o=t[r];if(o){var s=i.potentiallyMergeWith(o);s&&(i=s,t[r]=null)}}e.push(i)}}return e},pResults.getAllSpellingSuggestions=function(){var t=[];this._eachResultSet(function(e){t=t.concat(e.getSpellingSuggestions())});var e=this._uniqifySpellingSuggestions(t);return e.sort(function(t,e){return e.getScore()-t.getScore()}),e},Swiftype.Query=function(t){this._queryType=t,this._queryText=null,this._pageNumber=null,this._sortFieldByDocumentTypeSlug={},this._sortDirectionByDocumentTypeSlug={},this._filterDataByDocumentTypeSlugAndFilterField={},this._facetDataByDocumentTypeSlug={}};var pQuery=Swiftype.Query.prototype;pQuery.toString=function(){var t="[Swiftype.Query: "+this._queryType+" for '"+this._queryText+"'";return null!==this._pageNumber&&(t+=", page "+this._pageNumber),
Swiftype.Utils.isEmptyObject(this._sortFieldByDocumentTypeSlug)||Swiftype.Utils.isEmptyObject(this._sortDirectionByDocumentTypeSlug)||(t+=", sortFieldByDocumentTypeSlug "+this._sortFieldByDocumentTypeSlug,t+=", sortDirectionByDocumentTypeSlug "+this._sortDirectionByDocumentTypeSlug),Swiftype.Utils.isEmptyObject(this._filterDataByDocumentTypeSlugAndFilterField)||(t+=", filters ",$.each(this._filterDataByDocumentTypeSlugAndFilterField,function(e,n){$.each(n,function(e,n){t+=" for field "+e,$.each(n,function(e,n){t+=" "+e+" "+n})})})),t+="]"},pQuery.setQueryText=function(t){this._queryText=t},pQuery.getQueryText=function(){return this._queryText},pQuery.mutateFromPageAnchor=function(t){var e=t.getValue("stq"),n=t.getValue("stp"),i=t.getValue("sort_field"),r=t.getValue("sort_direction"),o=t.getValue("filters"),s=t.getValue("facets"),a=this;Swiftype.Utils.isBlank(e)||(e=decodeURIComponent(e.replace(/\+/g," ")),a.setQueryText(e)),n&&n.match(/^[0-9]+$/)&&a.setPageNumber(parseInt(n)),o&&a.setFilterData(o),s&&a.setFacetData(s),i&&r&&(a.setSortField(i),a.setSortDirection(r))},pQuery._normalizedQueryText=function(){return this._queryText?Swiftype.Utils.trimString(this._queryText):this._queryText},pQuery._toObject=function(){var t=$.extend({},{queryType:this._queryType,q:this._normalizedQueryText(),pageNumber:this._pageNumber,sortField:this._sortFieldByDocumentTypeSlug,sortDirection:this._sortDirectionByDocumentTypeSlug,filters:this._filterDataByDocumentTypeSlugAndFilterField,facets:this._facetDataByDocumentTypeSlug}),e=this;return $.each(VALID_OPTIONAL_SETTINGS,function(n,i){t[i]=e[i]}),t},pQuery.apiAjaxDataParameters=function(){var t=this,e={q:this._queryText,page:this._pageNumber};return Swiftype.Utils.isEmptyObject(this._sortFieldByDocumentTypeSlug)||Swiftype.Utils.isEmptyObject(this._sortDirectionByDocumentTypeSlug)||(e.sort_field=this._sortFieldByDocumentTypeSlug,e.sort_direction=this._sortDirectionByDocumentTypeSlug),Swiftype.Utils.isEmptyObject(this._filterDataByDocumentTypeSlugAndFilterField)||(e.filters=this._filterDataByDocumentTypeSlugAndFilterField),Swiftype.Utils.isEmptyObject(this._facetDataByDocumentTypeSlug)||(e.facets=this._facetDataByDocumentTypeSlug),$.each(VALID_OPTIONAL_SETTINGS,function(n,i){t[i]&&(e[i]=t[i])}),e},pQuery.queryType=function(){return this._queryType},pQuery.toCacheKey=function(){return JSON.stringify(this._toObject())},pQuery.isEqualToQuery=function(t){return!!t&&Swiftype.Utils.compareObjects(this._toObject(),t._toObject())},pQuery.isEmptyQuery=function(){return null===this._queryText||"undefined"==typeof this._queryText},pQuery.clone=function(){var t=new Swiftype.Query(this._queryType);return t.setQueryText(this.getQueryText()),t.setPageNumber(this.getPageNumber()),t.setSortField(this.getSortFieldByDocumentTypeSlug()),t.setSortDirection(this.getSortDirectionByDocumentTypeSlug()),t.setFilterData(this.getFilterDataByDocumentTypeSlugAndFilterField()),t.setFacetData(this.getFacetDataByDocumentTypeSlug()),t.setOptionalSettings(this.getOptionlSettings()),t},pQuery.setPageNumber=function(t){this._pageNumber=t},pQuery.setSortField=function(t){this._sortFieldByDocumentTypeSlug=t},pQuery.setSortDirection=function(t){this._sortDirectionByDocumentTypeSlug=t},pQuery.setFilterData=function(t){this._filterDataByDocumentTypeSlugAndFilterField=t},pQuery.setFacetData=function(t){this._facetDataByDocumentTypeSlug=t},pQuery.getPageNumber=function(){return this._pageNumber||1},pQuery.setSortFieldByDocumentTypeSlug=function(t,e){null!==e?this._sortFieldByDocumentTypeSlug[t]=e:Swiftype.Utils.safelyDeleteProperty(t,this._sortFieldByDocumentTypeSlug)},pQuery.setSortDirectionByDocumentTypeSlug=function(t,e){null!==e?this._sortDirectionByDocumentTypeSlug[t]=e:Swiftype.Utils.safelyDeleteProperty(t,this._sortDirectionByDocumentTypeSlug)},pQuery.getSortFieldByDocumentTypeSlug=function(){return this._sortFieldByDocumentTypeSlug},pQuery.getSortDirectionByDocumentTypeSlug=function(){return this._sortDirectionByDocumentTypeSlug};var VALID_OPTIONAL_SETTINGS=["draft_name","test_fields","test_document_type_slug","engine_context"];pQuery.getOptionlSettings=function(){var t={},e=this;return $.each(VALID_OPTIONAL_SETTINGS,function(n,i){t[i]=e[i]}),t},pQuery.setOptionalSettings=function(t){var e=this;$.each(t,function(t,n){VALID_OPTIONAL_SETTINGS.indexOf(t)>-1&&(e[t]=n)})},pQuery.setFilterDataByDocumentTypeSlugAndFilterField=function(t,e,n){null!==n&&null!==e?(this._filterDataByDocumentTypeSlugAndFilterField[t]=this._filterDataByDocumentTypeSlugAndFilterField[t]||{},this._filterDataByDocumentTypeSlugAndFilterField[t][e]=n):this._filterDataByDocumentTypeSlugAndFilterField[t]&&(Swiftype.Utils.safelyDeleteProperty(e,this._filterDataByDocumentTypeSlugAndFilterField[t]),$.isEmptyObject(this._filterDataByDocumentTypeSlugAndFilterField[t])&&Swiftype.Utils.safelyDeleteProperty(t,this._filterDataByDocumentTypeSlugAndFilterField))},pQuery.setFacetDataByDocumentTypeSlug=function(t,e){if(null!==e){var n=this._facetDataByDocumentTypeSlug[t];n?n.indexOf(e)<0&&(this._facetDataByDocumentTypeSlug[t]=n.concat(e)):this._facetDataByDocumentTypeSlug[t]=[].concat(e)}else Swiftype.Utils.safelyDeleteProperty(t,this._facetDataByDocumentTypeSlug)},pQuery.getFilterDataByDocumentTypeSlugAndFilterField=function(){return this._filterDataByDocumentTypeSlugAndFilterField},pQuery.getFacetDataByDocumentTypeSlug=function(){return this._facetDataByDocumentTypeSlug},pQuery.toAnchorParams=function(){return{stq:this.getQueryText(),stp:this.getPageNumber(),sort_field:this.getSortFieldByDocumentTypeSlug(),sort_direction:this.getSortDirectionByDocumentTypeSlug(),filters:this.getFilterDataByDocumentTypeSlugAndFilterField(),facets:this.getFacetDataByDocumentTypeSlug()}},pQuery.toTrackingParams=function(){return{q:this.getQueryText(),page:this.getPageNumber(),sort_field:this.getSortFieldByDocumentTypeSlug(),sort_direction:this.getSortDirectionByDocumentTypeSlug(),filters:this.getFilterDataByDocumentTypeSlugAndFilterField(),facets:this.getFacetDataByDocumentTypeSlug()}},pQuery.toTemplateRenderingContext=function(){var t={type:this._queryType,text:Swiftype.Utils.escapeHtml(this.getQueryText())};return this.getPageNumber()&&(t.page=this.getPageNumber()),t},Swiftype.InjectedContent=function(t,e,n,i,r){this._injectionPoint=t,this._templates=e,this._templateName=n,this._locale=i,this._localizationMessages=r};var pInjectedContent=Swiftype.InjectedContent.prototype;pInjectedContent.attach=function(){var t=Swiftype.Utils.getCompiledTemplate(this._templates,this._templateName,this._locale,this._localizationMessages);if(t){var e={},n=t.render(e);this._injectionPoint.html(n)}},Swiftype.ConstantCrawl=function(t){this._endpoint=t};var pConstantCrawl=Swiftype.ConstantCrawl.prototype;pConstantCrawl.attach=function(){var t=new Image,e={};e.url=window.location.href,""!==document.referrer&&(e.r=document.referrer),t.src=Swiftype.Utils.addParamsToUrl(this._endpoint,e)},Swiftype.QueryElementLocator=function(t,e,n,i){this._install=t,this._baseScope=$(e),this._objectClassNameToCssSelectorArrayHash=n,this._classContainingObject=i};var pQueryElementLocator=Swiftype.QueryElementLocator.prototype;pQueryElementLocator.toString=function(){return"[Swiftype.QueryElementLocator for "+this._install+", base scope "+this._baseScope+", hash "+this._objectClassNameToCssSelectorArrayHash+"]"},pQueryElementLocator.log=function(t,e,n){this._install.log(t,e,n)};var INSTALL_KEY_DATA_ATTRIBUTE_NAME="st-install-key";pQueryElementLocator.belongsToInstall=function(t,e){var n,i=this;return $(t).parents().addBack(t).each(function(t,e){return!(n=Swiftype.Utils.getDataOrClassValue(e,INSTALL_KEY_DATA_ATTRIBUTE_NAME))}),n?i._install.matchesKey(n):!e&&this._install.isDefaultInstall()},pQueryElementLocator.allocateToInstall=function(t){if(!this.belongsToInstall(t,!0)){var e=this._install.getInstallDataAttribute();t.attr("data-"+INSTALL_KEY_DATA_ATTRIBUTE_NAME,e),t.addClass("st-install-"+e)}},pQueryElementLocator.forEachMatchingElement=function(t){var e=this;if(!this._objectClassNameToCssSelectorArrayHash)throw"objectClassNameToCssSelectorArrayHash is falsey";$.each(this._objectClassNameToCssSelectorArrayHash,function(n,i){var r=e._classContainingObject[n];if(!r)throw"There is no object class named '"+n+"' in: "+e._classContainingObject;$.each(i,function(n,i){e._baseScope.find(i).each(function(n,i){e.belongsToInstall(i)&&t.call(i,r,i,n)})})})},Swiftype.QueryContext=function(t,e,n,i,r,o){this._install=t,this._queryType=e,this._searchCache=new Swiftype.LRUCache(100),this._queryComposer=new Swiftype.QueryComposer(this,i,r.query_composer,o.query_filter),this._resultsDisplay=new Swiftype.ResultsDisplay(this,n,i,r.results_display,o.result_clicked_filter),this._uiConfiguration=r};var pQueryContext=Swiftype.QueryContext.prototype;pQueryContext.toString=function(){return"[Swiftype.QueryContext '"+this._queryType+"' for "+this._install+"]"},pQueryContext.getInstall=function(){return this._install},pQueryContext.getQueryComposer=function(){return this._queryComposer};var EMPTY_QUERY_RESULTS={errors:{},info:{},record_count:0,records:{}};pQueryContext._createResultsForEmptyQuery=function(t){return new Swiftype.Results(t,EMPTY_QUERY_RESULTS,this._install.getPrimaryDocType())},pQueryContext.setVisibility=function(t,e){var n=e;if("toggle"===n&&(n=!this.getVisibility(t)),n!==!0&&n!==!1)throw"Invalid newState for setVisibility: '"+n+"'";switch(t){case"queryComposer":this._queryComposer.setVisible(n);break;case"resultsDisplay":this._resultsDisplay.setVisible(n);break;case"all":this._queryComposer.setVisible(n),this._resultsDisplay.setVisible(n);break;default:throw"Invalid target for visibility: '"+t+"'"}},pQueryContext.getVisibility=function(t){switch(t){case"queryComposer":return this._queryComposer.isVisible();case"resultsDisplay":return this._resultsDisplay.isVisible();case"all":return this._queryComposer.isVisible()&&this._resultsDisplay.isVisible();case"any":return this._queryComposer.isVisible()||this._resultsDisplay.isVisible();default:throw"Invalid target for visibility: '"+t+"'"}},pQueryContext.visibilityChanged=function(t,e){this._fireListeners("visibilityChanged",t,e)},pQueryContext._isSearchContext=function(){return"search"===this._queryType},pQueryContext.pushQueryToGA=function(t){this._isSearchContext()&&Swiftype.Utils.pushToGA(t.getQueryText())},pQueryContext.cookieSearchQuery=function(t){this._isSearchContext()&&this.getInstall().cookieSearchQuery(t)},pQueryContext.setupUi=function(){this._isSearchContext()&&(this._queryComposer.addAnchorHashInput(),this._resultsDisplay.addAnchorHashOutput()),this._queryComposer.modifyDomAsNeeded(),this._resultsDisplay.modifyDomAsNeeded(),this._queryComposer.attach(),this._resultsDisplay.attach(),this.setVisibility("queryComposer",this._uiConfiguration.query_composer.initially_visible),this.setVisibility("resultsDisplay",this._uiConfiguration.results_display.initially_visible),this._queryComposer.uiSetupComplete(),this._resultsDisplay.uiSetupComplete()},pQueryContext.newQuery=function(){return new Swiftype.Query(this._queryType)},pQueryContext._searchResultsCacheHit=function(t){this._searchResultsAvailable(t)},pQueryContext._searchResultsDidReturn=function(t){this.log(this,DEBUG,"Server responded with results: "+t),this._searchCache.put(t.getQuery().toCacheKey(),t),this._searchResultsAvailable(t),this._queryComposer.propagateQuery()},pQueryContext._searchResultsDidFail=function(t,e,n){this.log(this,"warn","Server could not perform query "+t+": "+n)},pQueryContext._searchResultsCacheMiss=function(t){this._install.performSearch(t,this._searchResultsDidReturn.bind(this),this._searchResultsDidFail.bind(this))},pQueryContext._getListeners=function(){return[this._queryComposer,this._resultsDisplay]},pQueryContext._fireListeners=function(t){var e=[];e=e.concat(Array.prototype.slice.call(arguments,1)),$.each(this._getListeners(),function(n,i){i[t]&&i[t].apply(i,e)})},pQueryContext._searchResultsAvailable=function(t){this._fireListeners("searchResultsAvailable",t)},pQueryContext.log=function(t,e,n){this._install.log(t,e,n)},pQueryContext.currentQueryDidChange=function(t,e){this._install.currentQueryDidChange(this,t,e)},pQueryContext.someQueryChanged=function(t,e,n){this._fireListeners("someQueryChanged",t,e,n)},pQueryContext._charactersRequiredToQuery=function(){return this._uiConfiguration.query_composer.characters_required_to_query||0},pQueryContext.canRunQuery=function(t){var e=t.getQueryText();return!("string"==typeof e&&e.length>0&&e.length<this._charactersRequiredToQuery())},pQueryContext.findQueryElements=function(t){var e=this._queryComposer.findQueryInputs(t),n=this._resultsDisplay.findQueryOutputs(t);return e.concat(n)},pQueryContext.getSearchResults=function(t){t.isEmptyQuery()?this._searchResultsCacheHit(this._createResultsForEmptyQuery(t)):this._searchResultsCacheMiss(t)},pQueryContext.sendToSearchResult=function(t,e,n){return this._install.sendToSearchResult(t,e,n)},pQueryContext.sendUserToSearchResultsPageIfNecessary=function(t){return!(!this._isSearchContext()||this._install.onSearchResultsPage()||(this._install.sendUserToSearchResultsPageFor(t),0))},Swiftype.QueryComposer=function(t,e,n,i){this._context=t,this._uiBindings=e,this._uiConfiguration=n,this._queryFilterHook=i,this._currentQuery=null,this._queryInputs=[],this._lastActiveQueryInputs={},this._permanentQueryTransforms=[]};var pQueryComposer=Swiftype.QueryComposer.prototype;pQueryComposer.toString=function(){return"[Swiftype.QueryComposer on "+this._context+"]"},pQueryComposer.log=function(t,e,n){this._context.log(t,e,n)},pQueryComposer.setVisible=function(t){t=!!t,"undefined"!=typeof this._visible&&t===this._visible||(this._visible=t,this._context.visibilityChanged("queryComposer",t))},pQueryComposer.isVisible=function(){return!!this._visible},pQueryComposer._addQueryInput=function(t){t.validate()?this._queryInputs.push(t):t.handleInvalid()},pQueryComposer._getInstall=function(){return this._context.getInstall()},pQueryComposer._findAndAddQueryInputs=function(){var t=new Swiftype.QueryElementLocator(this._getInstall(),document,this._uiBindings.inputs,Swiftype.QueryInputs),e=this;t.forEachMatchingElement(function(t,n){var i=new t(e,n,e._templates);e._addQueryInput(i)})},pQueryComposer.addAnchorHashInput=function(){this._uiConfiguration.disable_anchor_hash_params||this._addQueryInput(new Swiftype.QueryInputs.InputAnchorHash(this))},pQueryComposer.modifyDomAsNeeded=function(){},pQueryComposer.attach=function(){this._findAndAddQueryInputs(),$.each(this._queryInputs,function(t,e){e.attach(),e.setLastActive()})},pQueryComposer.findQueryInputs=function(t){var e=[];return $.each(this._queryInputs,function(n,i){t(i)&&e.push(i)}),e},pQueryComposer.addToPermanentQueryTransforms=function(t){this._permanentQueryTransforms.push(t)},pQueryComposer._normalizeQuery=function(t){if(this._permanentQueryTransforms.length>0&&$.each(this._permanentQueryTransforms,function(e,n){n(t)}),this._queryFilterHook){var e=t.clone();t=this._queryFilterHook(e)===!1?null:e.clone()}return t},pQueryComposer._setAndPropagateQuery=function(t){this._currentQuery=t,this.propagateQuery()},pQueryComposer.propagateQuery=function(){var t=this;$.each(this._queryInputs,function(e,n){n.propagateQuery(t._currentQuery)})},pQueryComposer._composeSearch=function(t){var e=null;return t?(e=this._currentQuery?this._currentQuery.clone():this._context.newQuery(),t(e)):(e=this._context.newQuery(),$.each(this._queryInputs,function(t,n){n.updateQuery(e)})),this._normalizeQuery(e)},pQueryComposer.runSearch=function(t){var e=this._composeSearch(t);return null!==e&&!!this._context.canRunQuery(e)&&(this._context.cookieSearchQuery(e),this._context.pushQueryToGA(e),!this._context.sendUserToSearchResultsPageIfNecessary(e)&&(this._setAndPropagateQuery(e),this._context.setVisibility("resultsDisplay",!0),this._context.getSearchResults(this._currentQuery),!0))},pQueryComposer.uiSetupComplete=function(){$.each(this._queryInputs,function(t,e){e.uiSetupComplete&&e.uiSetupComplete()})},pQueryComposer.searchResultsAvailable=function(t){this._currentQuery&&this._currentQuery.isEqualToQuery(t.getQuery())&&this._context.currentQueryDidChange(this,t)},pQueryComposer.setLastActiveQueryInput=function(t,e){this._lastActiveQueryInputs[t]!==e&&(this.log(this,DEBUG,"Setting last active input for '"+t+"' to: "+e.toString()),this._lastActiveQueryInputs[t]=e)},pQueryComposer.isLastActiveQueryInput=function(t,e){return this._lastActiveQueryInputs[t]===e},pQueryComposer.someQueryChanged=function(t){t!==this._context&&this._uiConfiguration.hide_on_other_query&&this._context.setVisible(!1)},pQueryComposer.windowResized=function(t){$.each(this._queryInputs,function(e,n){n.windowResized(t)})},pQueryComposer.anchorHashChanged=function(t){var e,n;this._currentQuery&&(e=this._currentQuery.clone(),n=this._context.newQuery(),n.mutateFromPageAnchor(t)),this._currentQuery&&e.isEqualToQuery(n)||$.each(this._queryInputs,function(e,n){n.anchorHashChanged(t)})},Swiftype.QueryInputs=Swiftype.QueryInputs||{},Swiftype.QueryInputs.Base=function(t,e){this._queryComposer=t,this._element=$(e)};var pQueryInputBase=Swiftype.QueryInputs.Base.prototype;pQueryInputBase.toString=function(){return"["+this._className+" on "+Swiftype.Utils.describeElement(this._element)+" for "+this._queryComposer+"]"},pQueryInputBase.log=function(t,e,n){this._queryComposer.log(t,e,n)},pQueryInputBase._describeElement=function(t){return Swiftype.Utils.describeElement(t)},pQueryInputBase.validate=function(){return!0},pQueryInputBase.getElement=function(){return $(this._element)},pQueryInputBase.isDefaultTargetFor=function(){return!1},pQueryInputBase.setLastActive=function(){this._inputCategory&&this._queryComposer.setLastActiveQueryInput(this._inputCategory,this)},pQueryInputBase._isLastActive=function(){return this._queryComposer.isLastActiveQueryInput(this._inputCategory,this)},pQueryInputBase.attach=function(){},pQueryInputBase._updateQuery=function(){},pQueryInputBase.updateQuery=function(t){this._isLastActive()&&this._updateQuery(t)},pQueryInputBase.propagateQuery=function(t){this._changeToReflectSearch(t)},pQueryInputBase.windowResized=function(){},pQueryInputBase.anchorHashChanged=function(){},pQueryInputBase._changeToReflectSearch=function(){},pQueryInputBase.handleInvalid=function(){},Swiftype.AnchorParams=function(t,e){t=this._universalAnchorString(t),this._anchorStringToHash(t),e&&this._updateAnchorHash(e)};var pAnchorParams=Swiftype.AnchorParams.prototype;pAnchorParams._universalAnchorString=function(t){var e=t;return e?"#"===e[0]&&(e=e.substring(1)):e="",e},pAnchorParams.toAnchorString=function(){return Swiftype.Utils.convertObjectToQueryParams(this._anchorHash)},pAnchorParams._anchorStringToHash=function(t){this._anchorHash=Swiftype.Utils.convertQueryParamsToObject(t)},pAnchorParams._updateAnchorHash=function(t){var e=this;$.each(t,function(t,n){e._anchorHash[t]=n||""})},pAnchorParams.getValue=function(t){return this._anchorHash[t]},pAnchorParams.hasKey=function(t){return this._anchorHash.hasOwnProperty(t)},Swiftype.QueryInputs.InputAnchorHash=function(t){Swiftype.QueryInputs.Base.call(this,t),this._className="Swiftype.QueryInputs.InputAnchorHash",this._inputCategory="searchText"},Swiftype.QueryInputs.InputAnchorHash.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pInputAnchorHash=Swiftype.QueryInputs.InputAnchorHash.prototype;pInputAnchorHash._getInstallHashManager=function(){return this._queryComposer._getInstall().getHashManager()},pInputAnchorHash._updateQuery=function(t){var e=this._getInstallHashManager().getAnchorParams();t.mutateFromPageAnchor(e)},pInputAnchorHash.uiSetupComplete=function(){this._getInstallHashManager().getAnchorParams().hasKey("stq")&&(this.setLastActive(),this._queryComposer.runSearch())},pInputAnchorHash.anchorHashChanged=function(t){t.hasKey("stq")&&(this.setLastActive(),this._queryComposer.runSearch())},Swiftype.QueryInputs.QueryTextField=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.QueryTextField",this._inputCategory="searchText"},Swiftype.QueryInputs.QueryTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pQueryTextField=Swiftype.QueryInputs.QueryTextField.prototype;pQueryTextField.validate=function(){return!(!Swiftype.QueryInputs.Base.prototype.validate.call(this)||!Swiftype.Utils.isInputLikeElement(this._element)&&(this.log(this,WARN,"QueryTextField can only be specified for 'input' or 'textarea' elements. Currently specified on "+this._describeElement(this._element)),1))},pQueryTextField.isDefaultTargetFor=function(){return!0},pQueryTextField._updateQuery=function(t){var e=this._element.val();Swiftype.Utils.isBlank(e)||t.setQueryText(e)},pQueryTextField._getIEVersion=function(){return this._ieVersion||(this._ieVersion=Swiftype.Utils.ieVersion()),this._ieVersion},pQueryTextField._changeToReflectSearch=function(t){t.isEmptyQuery()?this._element.val(""):this._element.is(":focus")||this._getIEVersion()<8||this._element.val(t.getQueryText())},pQueryTextField.attach=function(){this._element.attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off")},Swiftype.QueryInputs.SubmitTextField=function(t,e){Swiftype.QueryInputs.QueryTextField.call(this,t,e),this._className="Swiftype.QueryInputs.SubmitTextField",this._inputCategory="searchText"},Swiftype.QueryInputs.SubmitTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.QueryTextField.prototype);var pSubmitTextField=Swiftype.QueryInputs.SubmitTextField.prototype;pSubmitTextField.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(t._element,"input",function(){t.setLastActive()}),Swiftype.Utils.bindOnEventsTo(t._element,"keydown",function(e){13===e.which&&(t._element.blur(),t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch())}),Swiftype.Utils.bindOnEventsTo(t._element.parents("form").not('[name="aspnetForm"]').not("#aspnetForm"),"submit",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()}),Swiftype.QueryInputs.QueryTextField.prototype.attach.call(t)},Swiftype.QueryInputs.KeypressTextField=function(t,e){Swiftype.QueryInputs.QueryTextField.call(this,t,e),this._className="Swiftype.QueryInputs.KeypressTextField",this._inputCategory="suggestText"},Swiftype.QueryInputs.KeypressTextField.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.QueryTextField.prototype);var pKeypressTextField=Swiftype.QueryInputs.KeypressTextField.prototype;pKeypressTextField.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"input",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()}),Swiftype.QueryInputs.QueryTextField.prototype.attach.call(this)},Swiftype.QueryInputs.Trigger=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.Trigger",this._inputCategory="trigger"},Swiftype.QueryInputs.Trigger.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pTrigger=Swiftype.QueryInputs.Trigger.prototype;pTrigger.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",function(e){t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch()})},Swiftype.QueryInputs.PaginationInput=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.PaginationInput",this._inputCategory="pagination"},Swiftype.QueryInputs.PaginationInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pPaginationInput=Swiftype.QueryInputs.PaginationInput.prototype;pPaginationInput._maybeChangeToPageNumber=function(t,e){if("string"==typeof t&&t.match(/^\s*\d+\s*$/)&&(t=parseInt(t)),"number"!=typeof t)return!1;t>0&&(this.setLastActive(),e.preventDefault(),this._queryComposer.runSearch(function(e){e.setPageNumber(t)}))},pPaginationInput.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click","[data-st-page]",function(e){t._maybeChangeToPageNumber($(this).data("st-page"),e)}),Swiftype.Utils.bindOnEventsTo(this._element,"change",function(e){var n=$(this).find(":selected"),i=$(n).data("st-page");t._maybeChangeToPageNumber(i,e)})},Swiftype.QueryInputs.RefiningInput=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.RefiningInput",this._inputCategory="refining"},Swiftype.QueryInputs.RefiningInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pRefiningInput=Swiftype.QueryInputs.RefiningInput.prototype;pRefiningInput.attach=function(){var t=this;this._setClassAttributes(),Swiftype.Utils.bindOnEventsTo(this._element,"click",t._dataElementIdentifierSelector,function(e){e.preventDefault(),t._currentStateChanged(this)}),Swiftype.Utils.bindOnEventsTo(this._element,"change","select",function(e){var n=$(this).find(":selected");$(n).hasClass(t._elementIdentifierClass)&&(e.preventDefault(),t._currentStateChanged(n))})},pRefiningInput.validate=function(){return this._setClassAttributes(),this._elementMusthaveDataAttributes(this._element,this._dataDocumentTypePostfix)},pRefiningInput._elementMusthaveDataAttributes=function(t,e,n){e=[].concat(e);var i=this,r=!0;return $.each(e,function(e,o){var s=i._toDataAttribute(o),a=Swiftype.Utils.getDataOrClassValue(t,o),l=i._element.find("."+o).length>0;a!==undefined||l?!Swiftype.Utils.isBlank(a)||n||l||(i.log(i,WARN,"Element's data attribute "+s+" should have a valid/none empty value; check "+i._describeElement(this._element)),r=!1):(i.log(i,WARN,"Element must have data attribute "+s+" or respective class; you may need to add it to: "+i._describeElement(this._element)),r=!1)}),r},pRefiningInput._describeElement=function(t){Swiftype.Utils.describeElement(t)},pRefiningInput._toDataAttribute=function(t){return"data-"+t},pRefiningInput._setClassAttributes=function(){this._dataDocumentTypePostfix="st-document-type",this._elementIdentifierClass="st-"+this._inputCategory+"-element",this._dataElementIdentifierSelector="."+this._elementIdentifierClass,this._activeClass="st-"+this._inputCategory+"-active-item",this._activeSelector="."+this._activeClass,this._dataFieldPostfix="st-document-field",this._dataValuesPostfix="st-"+this._inputCategory+"-values",this._dataTypePostfix="st-"+this._inputCategory+"-type",this._dataDirectionPostfix="st-"+this._inputCategory+"-direction",this._dataFromPostfix="st-"+this._inputCategory+"-from",this._dataToPostfix="st-"+this._inputCategory+"-to",this._documentType=this._getDocumentTypeForElement(this._element)},pRefiningInput._markDomElementAsActive=function(t,e){var n=this._activeClass||"active";t=$(t),e?t.addClass(n):t.removeClass(n)},pRefiningInput._propActiveElements=function(){var t=this._activeClass||"active",e=this;$.each(this._getAllElements(),function(n,i){i=$(i),!i.hasClass(t)&&i.attr(":checked")||i.hasClass(t)&&!i.attr(":checked")?e._propElementCheckedWithRetry(i,!0):e._propElementCheckedWithRetry(i,!1),i.hasClass(t)?i.prop("selected",!0):i.prop("selected",!1)})},pRefiningInput._propElementCheckedWithRetry=function(t,e){t.prop("checked",e),setTimeout(function(){t.prop("checked")!==e&&t.prop("checked",e)},300)},pRefiningInput._getAllElements=function(){return $(this._element).find(this._dataElementIdentifierSelector)},pRefiningInput._getValuesForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataValuesPostfix)},pRefiningInput._getFromForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataFromPostfix)},pRefiningInput._getToForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataToPostfix)},pRefiningInput._getTypeForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataTypePostfix)},pRefiningInput._getDirectionForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataDirectionPostfix)},pRefiningInput._getDocumentFieldForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataFieldPostfix)},pRefiningInput._getDocumentTypeForElement=function(t){return Swiftype.Utils.getDataOrClassValue(t,this._dataDocumentTypePostfix)},pRefiningInput._changeToReflectSearch=function(){},Swiftype.QueryInputs.FilterInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInput",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pFilterInput=Swiftype.QueryInputs.FilterInput.prototype;pFilterInput._setClassAttributes=function(){Swiftype.QueryInputs.RefiningInput.prototype._setClassAttributes.call(this),this._documentField=this._getDocumentFieldForElement(this._element)},pFilterInput.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return e=e&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix),$.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,t._dataValuesPostfix)}),e},pFilterInput._currentStateChanged=function(t){var e=this,n=e._getFilterType(t),i=e._getFilterValues(t);e.setLastActive(),e._queryComposer.runSearch(function(t){var r=null;n&&i.length>0&&(r={type:n,values:i},t._pageNumber=1),t.setFilterDataByDocumentTypeSlugAndFilterField(e._documentType,e._documentField,r)})},pFilterInput._getFilterType=function(t){var e=this._getTypeForElement(this._element),n=this._getTypeForElement(t);return!n&&e||(e=n),e},pFilterInput._getFilterValues=function(t){return this._getValuesForElement(t)},pFilterInput._changeToReflectSearch=function(t){var e,n=this,i=t.getFilterDataByDocumentTypeSlugAndFilterField()[this._documentType];if(i&&(e=i[this._documentField])){var r=e.values;r=[].concat(r),$.each(n._getAllElements(),function(t,e){var i=n._getValuesForElement(e);i=[].concat(i);var o,s=n._getFilterType(e);$.each(i,function(t,e){o=e&&(r.indexOf(e)>=0||r.indexOf(e.toString())>=0)?o===undefined||Swiftype.Utils.stringOperator(s,o,!0):o!==undefined&&Swiftype.Utils.stringOperator(s,o,!1)}),n._markDomElementAsActive(e,o)})}i&&e||$.each(n._getAllElements(),function(t,e){n._markDomElementAsActive(e,!1)}),this._propActiveElements()},Swiftype.QueryInputs.FilterInputRelatedGroup=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRelatedGroup",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputRelatedGroup.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputRelatedGroup=Swiftype.QueryInputs.FilterInputRelatedGroup.prototype;pFilterInputRelatedGroup.validate=function(){return Swiftype.QueryInputs.FilterInput.prototype.validate.call(this)&&this._elementMusthaveDataAttributes(this._element,this._dataTypePostfix)},pFilterInputRelatedGroup._getFilterType=function(){return this._getTypeForElement(this._element)},pFilterInputRelatedGroup._getFilterValues=function(t){var e=this,n=[],i=this._getValuesForElement(t);$(t).hasClass(this._activeClass)||(n=n.concat(i));var r=$(this._element).find(this._dataElementIdentifierSelector+this._activeSelector);return $.each(r,function(r,o){$(o).is($(t))||(i=e._getValuesForElement(o),n.indexOf(i)===-1&&(n=n.concat(i)))}),n},Swiftype.QueryInputs.FilterInputRange=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRange",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputRange.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputRange=Swiftype.QueryInputs.FilterInputRange.prototype;pFilterInputRange.attach=function(){var t=this;Swiftype.QueryInputs.FilterInput.prototype.attach.call(this),Swiftype.Utils.bindOnEventsTo(this._element,"field_change",this._fromDataClassSelector+","+this._toDataClassSelector,function(e){e.preventDefault(),t._currentStateChanged(this)})},pFilterInputRange.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return e=e&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix),$.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,[t._dataFromPostfix,t._dataToPostfix])}),e},pFilterInputRange._setClassAttributes=function(){Swiftype.QueryInputs.FilterInput.prototype._setClassAttributes.call(this),this._fromDataClassSelector="."+this._dataFromPostfix,this._toDataClassSelector="."+this._dataToPostfix},pFilterInputRange._currentStateChanged=function(t){var e=this,n="range",i=e._getFromData(t),r=e._getToData(t);e.setLastActive(),e._queryComposer.runSearch(function(t){var o=null;!n||Swiftype.Utils.isBlank(i)||Swiftype.Utils.isBlank(r)||(o={type:n,from:i,to:r},t._pageNumber=1),
t.setFilterDataByDocumentTypeSlugAndFilterField(e._documentType,e._documentField,o)})},pFilterInputRange._getFromData=function(t){var e=this._getFromForElement(t);return Swiftype.Utils.isBlank(e)?this._element.find(this._fromDataClassSelector).first().val():e},pFilterInputRange._getToData=function(t){var e=this._getToForElement(t);return Swiftype.Utils.isBlank(e)?this._element.find(this._toDataClassSelector).first().val():e},pFilterInputRange._changeToReflectSearch=function(t){var e,n=this,i=t.getFilterDataByDocumentTypeSlugAndFilterField()[this._documentType];if(i&&(e=i[this._documentField])){var r=e.from,o=e.to;this._setFromDataOnElement(r),this._setFromToOnElement(o);var s=this._element.find(this._sliderBarSelector);s.attr("data-from",r),s.attr("data-to",o),$.each(n._getAllElements(),function(t,e){var i=n._getFromForElement(e),s=n._getToForElement(e);n._convertToFormat(i,"from")===n._convertToFormat(r,"from")&&n._convertToFormat(s,"to")===n._convertToFormat(o,"to")?n._markDomElementAsActive(e,!0):n._markDomElementAsActive(e,!1)})}i&&e||$.each(n._getAllElements(),function(t,e){n._markDomElementAsActive(e,!1)}),this._propActiveElements()},pFilterInputRange._setFromDataOnElement=function(t){this._element.find(this._fromDataClassSelector).val(t)},pFilterInputRange._setFromToOnElement=function(t){this._element.find(this._toDataClassSelector).val(t)},pFilterInputRange._convertToFormat=function(t){return Number(t)},Swiftype.QueryInputs.FilterInputRangeSlidebar=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRangeSlidebar",this._inputCategory="filter",this._sliderBarSelector=".st-filter-range-slidebar"},Swiftype.QueryInputs.FilterInputRangeSlidebar.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var pFilterInputRangeSlidebar=Swiftype.QueryInputs.FilterInputRangeSlidebar.prototype;pFilterInputRangeSlidebar.attach=function(){var t=this;Swiftype.QueryInputs.FilterInputRange.prototype.attach.call(this),Swiftype.Utils.bindOnEventsTo(this._element,"change",this._sliderBarSelector,function(e){e.preventDefault(),t._fireChangeHiddenFields(t,this)})},pFilterInputRangeSlidebar._changeToReflectSearch=function(t){Swiftype.QueryInputs.FilterInputRange.prototype._changeToReflectSearch.call(this,t),this._element.find(this._sliderBarSelector).ionRangeSlider()},pFilterInputRangeSlidebar._fireChangeHiddenFields=Swiftype.Utils.debounce(function(t,e){var n=$(e).data("ionRangeSlider");n&&(t._element.find(t._fromDataClassSelector).val(n.old_from),t._element.find(t._toDataClassSelector).val(n.old_to).trigger("field_change"))},500),Swiftype.QueryInputs.FilterInputRangeDate=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputRangeDate",this._inputCategory="filter",this._datePickerSelector=".st-filter-datepicker"},Swiftype.QueryInputs.FilterInputRangeDate.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var ROME_DATE_FORMAT="MM-DD-YYYY",pFilterInputRangeDate=Swiftype.QueryInputs.FilterInputRangeDate.prototype;pFilterInputRangeDate._changeToReflectSearch=function(t){Swiftype.QueryInputs.FilterInputRange.prototype._changeToReflectSearch.call(this,t);var e=this._element.find("."+this._dataFromPostfix).first(),n=this._element.find("."+this._dataToPostfix).first();if(e.length&&n.length){e=e[0],n=n[0];var i=rome(e,{time:!1,dateValidator:rome.val.beforeEq(n),inputFormat:ROME_DATE_FORMAT}),r=rome(n,{time:!1,dateValidator:rome.val.afterEq(e),inputFormat:ROME_DATE_FORMAT});this._element.parents(".st-position-container").scroll(function(){$(i.container).is(":visible")&&i.show(),$(r.container).is(":visible")&&r.show()})}},pFilterInputRangeDate._getFromData=function(t){return new moment(Swiftype.QueryInputs.FilterInputRange.prototype._getFromData.call(this,t),ROME_DATE_FORMAT).format()},pFilterInputRangeDate._getToData=function(t){return new moment(Swiftype.QueryInputs.FilterInputRange.prototype._getToData.call(this,t),ROME_DATE_FORMAT).format()},pFilterInputRangeDate._setFromDataOnElement=function(t){this._element.find(this._fromDataClassSelector).val(moment(t).format(ROME_DATE_FORMAT))},pFilterInputRangeDate._setFromToOnElement=function(t){this._element.find(this._toDataClassSelector).val(moment(t).format(ROME_DATE_FORMAT))},Swiftype.QueryInputs.FilterInputPredefinedRangeDate=function(t,e){Swiftype.QueryInputs.FilterInputRange.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputPredefinedRangeDate",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputPredefinedRangeDate.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInputRange.prototype);var pFilterInputPredefinedRangeDate=Swiftype.QueryInputs.FilterInputPredefinedRangeDate.prototype;pFilterInputPredefinedRangeDate._getFromData=function(t){var e=Swiftype.QueryInputs.FilterInputRange.prototype._getFromData.call(this,t);return this._beginningOfDay(e)},pFilterInputPredefinedRangeDate._getToData=function(t){var e=Swiftype.QueryInputs.FilterInputRange.prototype._getToData.call(this,t);return this._endOfDay(e)},pFilterInputPredefinedRangeDate._currentTimestamp=function(){return moment().unix()},pFilterInputPredefinedRangeDate._beginningOfDay=function(t){var e=this._toDate(t);return e.startOf("day"),e.format()},pFilterInputPredefinedRangeDate._endOfDay=function(t){var e=this._toDate(t);return e.endOf("day"),e.format()},pFilterInputPredefinedRangeDate._toDate=function(t){return new moment(1e3*(t+this._currentTimestamp()))},pFilterInputPredefinedRangeDate._convertToFormat=function(t,e){var n;if(isFinite(t))switch(t=Number(t),e){case"from":n=this._beginningOfDay(t);break;case"to":n=this._endOfDay(t);break;default:n=this._beginningOfDay(t)}else n=t;return n},Swiftype.QueryInputs.FilterInputReset=function(t,e){Swiftype.QueryInputs.FilterInput.call(this,t,e),this._className="Swiftype.QueryInputs.FilterInputReset",this._inputCategory="filter"},Swiftype.QueryInputs.FilterInputReset.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.FilterInput.prototype);var pFilterInputReset=Swiftype.QueryInputs.FilterInputReset.prototype;pFilterInputReset.validate=function(){var t=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return t=t&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix)},pFilterInputReset._getFilterType=function(){return null},pFilterInputReset._getFilterValues=function(){return null},Swiftype.QueryInputs.SortInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.SortInput",this._inputCategory="sort"},Swiftype.QueryInputs.SortInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pSortInput=Swiftype.QueryInputs.SortInput.prototype;pSortInput.validate=function(){var t=this,e=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return $.each(t._getAllElements(),function(n,i){e=e&&t._elementMusthaveDataAttributes(i,[t._dataFieldPostfix,t._dataDirectionPostfix],!0)}),e},pSortInput._currentStateChanged=function(t){var e=this,n=this._getSortDirection(t),i=this._getSortField(t);e.setLastActive(),e._queryComposer.runSearch(function(t){t._pageNumber=1,t.setSortFieldByDocumentTypeSlug(e._documentType,i),t.setSortDirectionByDocumentTypeSlug(e._documentType,n)})},pSortInput._getSortDirection=function(t){return this._getDirectionForElement(t)},pSortInput._getSortField=function(t){return this._getDocumentFieldForElement(t)},pSortInput._changeToReflectSearch=function(t){var e=this,n=t.getSortFieldByDocumentTypeSlug()[this._documentType],i=t.getSortDirectionByDocumentTypeSlug()[this._documentType];n&&i?$.each(e._getAllElements(),function(t,r){var o=e._getSortField(r),s=e._getSortDirection(r);n===o&&i===s?e._markDomElementAsActive(r,!0):e._markDomElementAsActive(r,!1)}):$.each(e._getAllElements(),function(t,n){e._markDomElementAsActive(n,!1)}),this._propActiveElements()},Swiftype.QueryInputs.SortInputReset=function(t,e){Swiftype.QueryInputs.SortInput.call(this,t,e),this._className="Swiftype.QueryInputs.SortInputReset"},Swiftype.QueryInputs.SortInputReset.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.SortInput.prototype);var pSortInputReset=Swiftype.QueryInputs.SortInputReset.prototype;pSortInputReset.validate=function(){return Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this)},pSortInputReset._getSortDirection=function(){return null},pSortInputReset._getSortField=function(){return null},Swiftype.QueryInputs.FacetInput=function(t,e){Swiftype.QueryInputs.RefiningInput.call(this,t,e),this._className="Swiftype.QueryInputs.FacetInput",this._inputCategory="facet"},Swiftype.QueryInputs.FacetInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.RefiningInput.prototype);var pFacetInput=Swiftype.QueryInputs.FacetInput.prototype;pFacetInput.attach=function(){this._setClassAttributes(),this._queryComposer.addToPermanentQueryTransforms(this._queryTransformFunction(this._element))},pFacetInput.validate=function(){var t=Swiftype.QueryInputs.RefiningInput.prototype.validate.call(this);return t=t&&this._elementMusthaveDataAttributes(this._element,this._dataFieldPostfix)},pFacetInput._queryTransformFunction=function(t){var e=this,n=this._getDocumentFieldForElement(t);return function(t){t.setFacetDataByDocumentTypeSlug(e._documentType,n)}},Swiftype.QueryInputs.SpellingSuggestion=function(t,e){Swiftype.QueryInputs.Base.call(this,t,e),this._className="Swiftype.QueryInputs.SpellingSuggestion",this._inputCategory="suggestion"},Swiftype.QueryInputs.SpellingSuggestion.prototype=Swiftype.Utils.createObject(Swiftype.QueryInputs.Base.prototype);var pSpellingSuggestion=Swiftype.QueryInputs.SpellingSuggestion.prototype;pSpellingSuggestion.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click","[data-st-search-suggestion]",function(e){var n=$(this).attr("data-st-search-suggestion");n&&(t.setLastActive(),e.preventDefault(),t._queryComposer.runSearch(function(t){t.setQueryText(n)}))})},Swiftype.ResultsDisplay=function(t,e,n,i,r){this._context=t,this._templates=e,this._uiBindings=n,this._uiConfiguration=i,this._resultClickedFilterHook=r,this._queryOutputs=[]};var pResultsDisplay=Swiftype.ResultsDisplay.prototype;pResultsDisplay.toString=function(){return"[Swiftype.ResultsDisplay for "+this._context+"]"},pResultsDisplay.log=function(t,e,n){this._context.log(t,e,n)},pResultsDisplay._addQueryOutput=function(t){t.validate()?this._queryOutputs.push(t):t.handleInvalid()},pResultsDisplay.setVisible=function(t){t=!!t,"undefined"!=typeof this._visible&&t===this._visible||(this._visible=t,this._context.visibilityChanged("resultsDisplay",this._visible))},pResultsDisplay.isVisible=function(){return!!this._visible},pResultsDisplay._getInstall=function(){return this._context.getInstall()},pResultsDisplay.setVisibility=function(){this._context.setVisibility.apply(this._context,arguments)},pResultsDisplay.getVisibility=function(){return this._context.getVisibility.apply(this._context,arguments)},pResultsDisplay.visibilityChanged=function(){for(var t=["visibilityChanged"],e=0;e<arguments.length;++e)t.push(arguments[e]);this._onAllQueryOutputs.apply(this,t)},pResultsDisplay._queryElementLocator=function(){return this._queryElementLocatorMemoized||(this._queryElementLocatorMemoized=new Swiftype.QueryElementLocator(this._getInstall(),document.body,this._uiBindings.outputs,Swiftype.QueryOutputs)),this._queryElementLocatorMemoized},pResultsDisplay._findAndAddQueryOutputs=function(){var t=this;this._queryElementLocator().forEachMatchingElement(function(e,n){var i=new e(t,n,t._templates,t._getInstall());t._addQueryOutput(i)})},pResultsDisplay.addAnchorHashOutput=function(){this._uiConfiguration.disable_anchor_hash_params||this._addQueryOutput(new Swiftype.QueryOutputs.OutputAnchorHash(this))},pResultsDisplay.modifyDomAsNeeded=function(){},pResultsDisplay._onAllQueryOutputs=function(t){var e=[];e=e.concat(Array.prototype.slice.call(arguments,1)),$.each(this._queryOutputs,function(n,i){var r=i[t];r&&r.apply(i,e)})},pResultsDisplay.attach=function(){this._findAndAddQueryOutputs(),this._onAllQueryOutputs("attach")},pResultsDisplay.uiSetupComplete=function(){$.each(this._queryOutputs,function(t,e){e.uiSetupComplete&&e.uiSetupComplete()})},pResultsDisplay.someQueryChanged=function(t,e,n){!this.isOurContext(t)&&this._uiConfiguration.hide_on_other_query&&this.setVisible(!1),$.each(this._queryOutputs,function(e,i){i.someQueryChanged(t,n)})},pResultsDisplay.findQueryElements=function(t){return this._context.findQueryElements(t)},pResultsDisplay.findQueryOutputs=function(t){var e=[];return $.each(this._queryOutputs,function(n,i){t(i)&&e.push(i)}),e},pResultsDisplay.isOurContext=function(t){return t===this._context},pResultsDisplay.getLocalizationMessages=function(){return this._getInstall().getLocalizationMessages()},pResultsDisplay.getLocale=function(){return this._getInstall().getLocale()},pResultsDisplay.sendToSearchResult=function(t,e,n){return this._resultClickedFilterHook&&(e=this._resultClickedFilterHook(t,e)||e),this._context.sendToSearchResult(t,e,n)},pResultsDisplay.getUiConfiguration=function(){return this._uiConfiguration},pResultsDisplay.windowResized=function(t){$.each(this._queryOutputs,function(e,n){n.windowResized(t)})},pResultsDisplay.anchorHashChanged=function(t){$.each(this._queryOutputs,function(e,n){n.anchorHashChanged(t)})},Swiftype.QueryOutputs=Swiftype.QueryOutputs||{},Swiftype.QueryOutputs.Base=function(t,e){this._resultsDisplay=t,this._element=$(e),this._context=this._resultsDisplay._context};var pQueryOutputBase=Swiftype.QueryOutputs.Base.prototype;pQueryOutputBase.toString=function(){return"["+this._className+" on "+Swiftype.Utils.describeElement(this._element)+", resultsDisplay "+this._resultsDisplay+"]"},pQueryOutputBase.log=function(t,e,n){this._resultsDisplay.log(t,e,n)},pQueryOutputBase.validate=function(){return!0},pQueryOutputBase._describeElement=function(t){return Swiftype.Utils.describeElement(t)},pQueryOutputBase.setVisibility=function(){this._resultsDisplay.setVisibility.apply(this._resultsDisplay,arguments)},pQueryOutputBase.getVisibility=function(){return this._resultsDisplay.getVisibility.apply(this._resultsDisplay,arguments)},pQueryOutputBase._hideShowQueryElements=function(t,e){this._element.hasClass(e)&&Swiftype.Utils.elementHide(this._element),this._element.hasClass(t)&&Swiftype.Utils.elementShow(this._element),Swiftype.Utils.elementHide(this._element.find("."+e)),Swiftype.Utils.elementShow(this._element.find("."+t))},pQueryOutputBase._showEmptyQueryElements=function(){this._hideShowQueryElements(Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query,Swiftype.CssBehaviorClasses.adornments.show_only_on_nonempty_query)},pQueryOutputBase._showNonemptyQueryElements=function(){this._hideShowQueryElements(Swiftype.CssBehaviorClasses.adornments.show_only_on_nonempty_query,Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query)},pQueryOutputBase._showCorrectQueryElements=function(t){t.isEmptyQuery()?this._showEmptyQueryElements():this._showNonemptyQueryElements()},pQueryOutputBase._isOurContext=function(t){return this._resultsDisplay.isOurContext(t)},pQueryOutputBase.someQueryChanged=function(t,e){this._isOurContext(t)&&this._currentSearchChanged(e)},pQueryOutputBase._currentSearchChanged=function(t){this._showCorrectQueryElements(t)},pQueryOutputBase._attach=function(){},pQueryOutputBase.getElement=function(){return $(this._element)},pQueryOutputBase.attach=function(){this._attached||(this._attach(),this._attached=!0)},pQueryOutputBase.isDefaultTargetFor=function(){return!1},pQueryOutputBase._sendToSearchResult=function(t,e,n){return this._resultsDisplay.sendToSearchResult(t,e,n)},pQueryOutputBase._elementsWithDataAttributeNamed=function(t,e){var n="."+e;return $.map($(t),function(t){return $(t).parents(n).andSelf().filter(n)})},pQueryOutputBase._sendToSearchResultViaElements=function(t,e,n){t=this._elementsWithDataAttributeNamed(t,SWIFTYPE_RESULT_DATA_NAME)[0];var i,r=t.data(SWIFTYPE_RESULT_DATA_NAME);return!!(i=n?n:t.data(SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME))&&(this._sendToSearchResult(r,i,e),!0)},pQueryOutputBase.getLocale=function(){return this._resultsDisplay.getLocale()},pQueryOutputBase.getLocalizationMessages=function(){return this._resultsDisplay.getLocalizationMessages()},pQueryOutputBase.getResultsDisplay=function(){return this._resultsDisplay},pQueryOutputBase.windowResized=function(){},pQueryOutputBase.anchorHashChanged=function(){},pQueryOutputBase.handleInvalid=function(){},Swiftype.QueryOutputs.TemplatedQueryOutput=function(t,e,n){Swiftype.QueryOutputs.Base.call(this,t,e),this._templates=n},Swiftype.QueryOutputs.TemplatedQueryOutput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pTemplatedQueryOutput=Swiftype.QueryOutputs.TemplatedQueryOutput.prototype;pTemplatedQueryOutput._getTemplateRenderingContext=function(t){return t.getTemplateRenderingContext()},pTemplatedQueryOutput._getCompiledTemplate=function(t,e){return Swiftype.Utils.getCompiledTemplate(t,e,this.getLocale(),this.getLocalizationMessages())},pTemplatedQueryOutput._createSingleToplevelElement=function(){var t=this._singleTopLevelElementName();return $("<"+t+"></"+t+">")},pTemplatedQueryOutput._singleTopLevelElementName=function(){return"div"},pTemplatedQueryOutput._createToplevelStructure=function(){var t=this._element.contents(),e=!1;if(t.each(function(t,n){1!==n.nodeType&&(e=!0)}),e){var n=$(this._createSingleToplevelElement());n.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query),n.html(this._element.html()),this._element.html(n[0].outerHTML)}else t.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_empty_query)},pTemplatedQueryOutput._createOutputElement=function(){var t=this._outputElementName();return $("<"+t+"></"+t+">")},pTemplatedQueryOutput._outputElementName=function(){return"div"},pTemplatedQueryOutput._outputElementShownOnlyWithNonemptyQueries=function(){return!0},pTemplatedQueryOutput._getOutputElement=function(){return this._outputElement||(this._outputElement=$(this._createOutputElement()),this._outputElementShownOnlyWithNonemptyQueries()&&this._outputElement.addClass(Swiftype.CssBehaviorClasses.adornments.show_only_on_nonempty_query),this._outputElement.appendTo(this._element)),this._outputElement},pTemplatedQueryOutput._bindAsNeeded=function(){},pTemplatedQueryOutput._attach=function(){this._createToplevelStructure(),this._bindAsNeeded(),this._showEmptyQueryElements()},Swiftype.QueryOutputs.ChromeControl=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeControl"},Swiftype.QueryOutputs.ChromeControl.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeControl=Swiftype.QueryOutputs.ChromeControl.prototype;pChromeControl._getSetVisibilityArguments=function(){var t="toggle",e="all";return Swiftype.Utils.hasClassMatching(this._element,/\-show\-/)?t=!0:Swiftype.Utils.hasClassMatching(this._element,/\-toggle\-/)?t="toggle":Swiftype.Utils.hasClassMatching(this._element,/\-hide\-/)&&(t=!1),Swiftype.Utils.hasClassMatching(this._element,/\-inputs$/)?e="queryComposer":Swiftype.Utils.hasClassMatching(this._element,/\-outputs$/)&&(e="resultsDisplay"),[e,t]},pChromeControl._attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",function(e){t._applyVisibilityChanges(),e.preventDefault()})},pChromeControl._applyVisibilityChanges=function(){var t=this._getSetVisibilityArguments();this.setVisibility.apply(this,t)},Swiftype.QueryOutputs.OutputAnchorHash=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.OutputAnchorHash",this._initial=!1},Swiftype.QueryOutputs.OutputAnchorHash.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pOutputAnchorHash=Swiftype.QueryOutputs.OutputAnchorHash.prototype;pOutputAnchorHash._getInstallHashManager=function(){return this._resultsDisplay._getInstall().getHashManager()},pOutputAnchorHash._attach=function(){this._initial=!0},pOutputAnchorHash.visibilityChanged=function(t,e){"resultsDisplay"===t&&(e||this._initial||this._getInstallHashManager().updateHash({}),this._initial=!1)},pOutputAnchorHash._currentSearchChanged=function(t){this._getInstallHashManager().updateHash(t.getQuery().toAnchorParams())},pOutputAnchorHash.anchorHashChanged=function(t){t.hasKey("stq")||this.setVisibility("resultsDisplay",!1)},Swiftype.QueryOutputs.ChromeEscape=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeEscape"},Swiftype.QueryOutputs.ChromeEscape.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeEscape=Swiftype.QueryOutputs.ChromeEscape.prototype;pChromeEscape._attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo("body","keydown",function(e){27===e.which&&t.setVisibility("resultsDisplay",!1)})},pChromeEscape.validate=function(){return!(!Swiftype.QueryOutputs.Base.prototype.validate.call(this)||0===$("body").length&&(this.log(this,WARN,"'Esc' event requires 'body' element to be present and it cannot be found."),1))},Swiftype.QueryOutputs.MobileMetaTag=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.MobileMetaTag"},Swiftype.QueryOutputs.MobileMetaTag.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pMobileMetaTag=Swiftype.QueryOutputs.MobileMetaTag.prototype;pMobileMetaTag._getExistingViewport=function(){return this._existingViewportRead||(this._existingViewport=$("head meta[name=viewport]").first(),this._existingViewport.length>0&&(this._viewport=this._existingViewport,this._existingViewportContent=this._existingViewport.attr("content")),this._existingViewportRead=!0),this._existingViewport},pMobileMetaTag._hasExistingViewport=function(){return this._getExistingViewport().length>0},pMobileMetaTag._setViewportContentTo=function(t){this._hasExistingViewport()?this._getExistingViewport().attr("content",t):void 0===t||null===t?this._viewport&&(this._viewport.remove(),this._viewport=null):(this._viewport||($("head").prepend('<meta name="viewport" content="'+t+'" />'),this._viewport=$("head meta[name=viewport]")),this._viewport.attr("content",t))},pMobileMetaTag.visibilityChanged=function(){this.getVisibility("resultsDisplay")?this._setViewportContentTo("width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"):this._hasExistingViewport()?this._setViewportContentTo(this._existingViewportContent):this._setViewportContentTo("width=device-width, initial-scale=1.0, maximum-scale=1.0")},Swiftype.QueryOutputs.ChromeElement=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeElement"},Swiftype.QueryOutputs.ChromeElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pChromeElement=Swiftype.QueryOutputs.ChromeElement.prototype;pChromeElement._showOrHide=function(t){var e=$(this._element);t?Swiftype.Utils.elementShow(e):Swiftype.Utils.elementHide(e)},pChromeElement.visibilityChanged=function(){Swiftype.Utils.hasClassMatching(this._element,/\-input$/i)?this._showOrHide(this.getVisibility("queryComposer")):Swiftype.Utils.hasClassMatching(this._element,/\-output$/i)?this._showOrHide(this.getVisibility("resultsDisplay")):this._showOrHide(this.getVisibility("any"))},Swiftype.QueryOutputs.ChromeOverlayElement=function(t,e){Swiftype.QueryOutputs.ChromeElement.call(this,t,e),this._className="Swiftype.QueryOutputs.ChromeOverlayElement"},Swiftype.QueryOutputs.ChromeOverlayElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.ChromeElement.prototype);var pChromeOverlayElement=Swiftype.QueryOutputs.ChromeOverlayElement.prototype;pChromeOverlayElement._showOrHide=function(t){$("body").toggleClass("st-ui-overlay-active",t),t&&window.scrollTo(0,0),Swiftype.QueryOutputs.ChromeElement.prototype._showOrHide.call(this,t)},Swiftype.QueryOutputs.ResultList=function(t,e,n){Swiftype.QueryOutputs.TemplatedQueryOutput.call(this,t,e,n),this._className="Swiftype.QueryOutputs.ResultList"},Swiftype.QueryOutputs.ResultList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TemplatedQueryOutput.prototype);var pResultList=Swiftype.QueryOutputs.ResultList.prototype,SWIFTYPE_RESULT_DATA_NAME="__swiftype_result",SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME="st-url";pResultList._bindAsNeeded=function(){var t=this,e=this._getOutputElement();Swiftype.Utils.bindOnEventsTo(e,"mousedown","[data-"+SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME+"]",function(e){Swiftype.Utils.eventIsLeftClick(e)&&t._sendToSearchResultViaElements(this,Swiftype.Utils.eventIsMiddleClick(e))}),Swiftype.Utils.bindOnEventsTo(e,"click","[data-"+SWIFTYPE_SEARCH_RESULT_TARGET_URL_DATA_NAME+"]",function(t){t.preventDefault()}),Swiftype.Utils.bindOnEventsTo(e,"mousedown","a",function(e){Swiftype.Utils.eventIsLeftClick(e)&&(t._sendToSearchResultViaElements(this,Swiftype.Utils.eventIsMiddleClick(e),$(this).attr("href")),e.preventDefault())}),Swiftype.Utils.bindOnEventsTo(e,"click","a",function(t){t.preventDefault()})},pResultList._addDataToResult=function(t,e){t.addClass(SWIFTYPE_RESULT_DATA_NAME),t.data(SWIFTYPE_RESULT_DATA_NAME,e)},pResultList._getTemplateRenderingContext=function(t){return t.getTemplateRenderingContext()},pResultList._renderResults=function(t){var e=this,n=t.firstResultSet();if(!n)return void e.log(e,WARN,"Server returned no result sets at all; skipping result rendering entirely: "+t);var i=this._getCompiledTemplate(e._templates.result_item,n.getSetName());i?(n.eachResult(function(t,n){var r=e._getTemplateRenderingContext(n),o=i.render(r),s=$(o);e._addDataToResult(s,n),$(e._getOutputElement()).append(s)}),$(e._element).scrollTop(0)):e.log(e,WARN,"Skipping rendering of "+n.countOfResultsOnThisPage()+" records for result set '"+n.getSetName()+"', because we have no template for that kind of set.")},pResultList._currentSearchChanged=function(t){this._getOutputElement().html(""),t.isEmptyQuery()||this._renderResults(t),Swiftype.QueryOutputs.TemplatedQueryOutput.prototype._currentSearchChanged.call(this,t)},Swiftype.QueryOutputs.SetFocusOnInput=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.SetFocusOnInput"},Swiftype.QueryOutputs.SetFocusOnInput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pSetFocusOnInput=Swiftype.QueryOutputs.SetFocusOnInput.prototype;pSetFocusOnInput._currentSearchChanged=function(t){Swiftype.Utils.isMobile()||$(this._element).focus(),Swiftype.QueryOutputs.Base.prototype._currentSearchChanged.call(this,t)},pSetFocusOnInput._setFocusToElementWithTimeout=function(){var t=this;Swiftype.Utils.isMobile()||setTimeout(function(){$(t._element).focus()},100)},pSetFocusOnInput.visibilityChanged=function(){this._setFocusToElementWithTimeout()},Swiftype.QueryOutputs.LimitedShowList=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.LimitedShowList",this._listElementSelector=".st-limited-show-element",this._actionElementSelector=".st-limited-show-action",this._hideClass="st-list-hide",this._listElements=undefined,this._actionElement=undefined,this._initialShow=4,this._increment=5},Swiftype.QueryOutputs.LimitedShowList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pLimitedShowList=Swiftype.QueryOutputs.LimitedShowList.prototype;pLimitedShowList.attach=function(){var t=this;Swiftype.Utils.bindOnEventsTo(this._element,"click",this._actionElementSelector,function(e){e.preventDefault(),t._currentShownNumber=t._currentShownNumber+t._increment;var n=t._currentShownNumber+1;t._element.find(t._listElementSelector+":lt("+n+")").removeClass(t._hideClass),t._hideActionElementIfAllVisible()})},pLimitedShowList._currentSearchChanged=function(){this._element.find(this._listElementSelector+":gt("+this._initialShow+")").addClass(this._hideClass),this._currentShownNumber=this._initialShow,this._hideActionElementIfAllVisible()},pLimitedShowList._hideActionElementIfAllVisible=function(){var t=this._element.find(this._listElementSelector),e=t.filter("."+this._hideClass);0!==t.length&&0!==e.length||this._element.find(this._actionElementSelector).addClass(this._hideClass)},Swiftype.QueryOutputs.TargetedQueryOutput=function(t,e){Swiftype.QueryOutputs.Base.call(this,t,e),this._className="Swiftype.QueryOutputs.TargetedQueryOutput",this._targetElements=undefined},Swiftype.QueryOutputs.TargetedQueryOutput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.Base.prototype);var pTargetedQueryOutput=Swiftype.QueryOutputs.TargetedQueryOutput.prototype;pTargetedQueryOutput._defaultTargets=function(){var t=this,e=this._resultsDisplay.findQueryElements(function(e){return e.isDefaultTargetFor(t)});return $.map(e,function(t){return t.getElement()[0]})},pTargetedQueryOutput._attach=function(){this._setTargetElements(),this._targetElements&&this._attachToTarget()},pTargetedQueryOutput._setTargetElements=function(){var t=new Swiftype.QueryElementLocator(this._context.getInstall(),document),e=$(this._getTargetSelector()||this._defaultTargets()).filter(function(){return t.belongsToInstall(this)});e&&e.length>0&&(this._targetElements=e)},pTargetedQueryOutput._getTargetSelector=function(){return Swiftype.Utils.getDataOrClassValue(this._element,"st-target-element",!0)},pTargetedQueryOutput._getTargetElements=function(){return this._targetElements||this._setTargetElements(),this._targetElements},pTargetedQueryOutput._attachToTarget=function(){},pTargetedQueryOutput.handleInvalid=function(){$(this._element).remove(),this.log(this,WARN,"Target not found for "+this._getTargetSelector()+". Removing element from DOM: "+this._describeElement(this._element))},pTargetedQueryOutput.validate=function(){return!(!Swiftype.QueryOutputs.Base.prototype.validate.call(this)||!this._getTargetElements()&&(this.log(this,WARN,"This element requires a target, but none is specified; you may need to specify 'data-st-target-element' on "+this._describeElement(this._element)),1))},Swiftype.QueryOutputs.AdjoinedElement=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.AdjoinedElement",this._lastActiveTarget=null},Swiftype.QueryOutputs.AdjoinedElement.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pAdjoinedElement=Swiftype.QueryOutputs.AdjoinedElement.prototype;pAdjoinedElement._attachToTarget=function(){var t=this;$.each(this._targetElements,function(e,n){Swiftype.Utils.bindOnEventsTo(n,"input click focus",t._moveRestyleElement.bind(t,this))})},pAdjoinedElement._moveRestyleElement=function(t){this._lastActiveTarget=t;var e=this._element[0],n=t.getBoundingClientRect(),i=$(t).offset();e.style.position="absolute",e.style.top=$(t).outerHeight()+i.top+1+"px",e.style.left=i.left+"px",n.width&&(e.style.width=parseInt(n.width)-2+"px"),e.style.zIndex=999999},pAdjoinedElement._moveRestyleLastActiveTarget=function(){this._lastActiveTarget&&this._moveRestyleElement(this._lastActiveTarget)},pAdjoinedElement.validate=function(){return!(!Swiftype.QueryOutputs.TargetedQueryOutput.prototype.validate.call(this)||!Swiftype.Utils.isInputLikeElement(this._targetElements)&&(this.log(this,WARN,"Adjoined element can only be attached to 'input' or 'textarea' element. Currently specified on "+this._describeElement(this._targetElements)),1))},pAdjoinedElement.windowResized=function(){this._moveRestyleLastActiveTarget()},Swiftype.QueryOutputs.FieldDependentVisibility=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldDependentVisibility"},Swiftype.QueryOutputs.FieldDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pFieldDependentVisibility=Swiftype.QueryOutputs.FieldDependentVisibility.prototype;pFieldDependentVisibility._attachToTarget=function(){this._setShowHideEvents()},pFieldDependentVisibility._shouldBeShown=function(t){if(t.is(":hidden"))return!1;if(this._escapedByUser)return!1;var e=!1;return $.each(this._targetElements,function(t,n){$(n).is(":focus")&&(e=!0)}),e},pFieldDependentVisibility._showOrHideAppropriately=function(t){this._shouldBeShown(t)?Swiftype.Utils.elementShow(this._element):Swiftype.Utils.elementHide(this._element)},pFieldDependentVisibility._setShowHideEvents=function(){var t=this;$.each(this._getTargetElements(),function(e,n){Swiftype.Utils.bindOnEventsTo(n,"focus click input blur keydown",function(e){
27===e.which?t._escapedByUser=!0:t._escapedByUser=!1,t._showOrHideAppropriately($(n))})})},pFieldDependentVisibility.validate=function(){if(!Swiftype.QueryOutputs.TargetedQueryOutput.prototype.validate.call(this))return!1;var t=$(this._getTargetElements());return!!Swiftype.Utils.isInputLikeElement(t)},pFieldDependentVisibility.someQueryChanged=function(t,e){this._currentSearchChanged(e)},pFieldDependentVisibility._currentSearchChanged=function(t){Swiftype.QueryOutputs.TargetedQueryOutput.prototype._currentSearchChanged.call(this,t);var e=this;$.each(this._getTargetElements(),function(t,n){$(n).is(":hidden")||e._showOrHideAppropriately($(n))})},Swiftype.QueryOutputs.FieldAndQueryDependentVisibility=function(t,e){Swiftype.QueryOutputs.FieldDependentVisibility.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldAndQueryDependentVisibility"},Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.FieldDependentVisibility.prototype);var pFieldAndQueryDependentVisibility=Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype;pFieldAndQueryDependentVisibility._shouldBeShown=function(t){return!!this._hasQuery&&Swiftype.QueryOutputs.FieldDependentVisibility.prototype._shouldBeShown.call(this,t)},pFieldAndQueryDependentVisibility._currentSearchChanged=function(t){this._hasQuery=!t.isEmptyQuery(),Swiftype.QueryOutputs.FieldDependentVisibility.prototype._currentSearchChanged.call(this,t)},Swiftype.QueryOutputs.FieldAndResultsDependentVisibility=function(t,e){Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.call(this,t,e),this._className="Swiftype.QueryOutputs.FieldAndResultsDependentVisibility"},Swiftype.QueryOutputs.FieldAndResultsDependentVisibility.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype);var pFieldAndResultsDependentVisibility=Swiftype.QueryOutputs.FieldAndResultsDependentVisibility.prototype;pFieldAndResultsDependentVisibility._shouldBeShown=function(t){return!!this._lastQueryWasFromOurContext&&!!this._hasResults&&Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype._shouldBeShown.call(this,t)},pFieldAndResultsDependentVisibility._currentSearchChanged=function(t){this._hasResults=t.hasAnyResults(),Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype._currentSearchChanged.call(this,t)},pFieldAndResultsDependentVisibility.someQueryChanged=function(t,e,n){this._lastQueryWasFromOurContext=this._isOurContext(t),Swiftype.QueryOutputs.FieldAndQueryDependentVisibility.prototype.someQueryChanged.call(this,t,e,n)},Swiftype.QueryOutputs.KeyboardNavigableList=function(t,e){Swiftype.QueryOutputs.TargetedQueryOutput.call(this,t,e),this._className="Swiftype.QueryOutputs.KeyboardNavigableList",this._activeResultIndex=null,this._maximumResultIndex=0},Swiftype.QueryOutputs.KeyboardNavigableList.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TargetedQueryOutput.prototype);var pKeyboardNavigableList=Swiftype.QueryOutputs.KeyboardNavigableList.prototype;pKeyboardNavigableList._attachToTarget=function(){this._setKeyStrokeEvents()},pKeyboardNavigableList._allToplevelDomElementsThatAreSearchResults=function(){var t=function(t,e){return e=$(e),void 0!==e.data(SWIFTYPE_RESULT_DATA_NAME)};return $(this._element).find("*").filter(t)},pKeyboardNavigableList._activeQueryClass=function(){if(!this._activeQueryClassMemoized){var t=Swiftype.Utils.getDataOrClassValue(this._element,"st-active-query-class");t=t||"st-keyboard-active-item",this._activeQueryClassMemoized=t}return this._activeQueryClassMemoized},pKeyboardNavigableList._allToplevelDomElementsForResultIndex=function(t){var e=function(e,n){n=$(n);var i=n.data(SWIFTYPE_RESULT_DATA_NAME);return!(!i||i.getSequenceInThisPage()!==t)};return $(this._allToplevelDomElementsThatAreSearchResults()).filter(e)},pKeyboardNavigableList._getActiveResultIndex=function(){return this._activeResultIndex},pKeyboardNavigableList._resultSet=function(){var t=this._allToplevelDomElementsThatAreSearchResults(),e=t[0];return e?$(e).data(SWIFTYPE_RESULT_DATA_NAME).getResultSet():null},pKeyboardNavigableList._currentSearchChanged=function(t){this._setActiveResultIndex(null);var e=this._resultSet();e&&e.countOfResultsOnThisPage()?this._maximumResultIndex=e.countOfResultsOnThisPage()-1:this._maximumResultIndex=null,Swiftype.QueryOutputs.TargetedQueryOutput.prototype._currentSearchChanged.call(this,t)},pKeyboardNavigableList._setActiveResultIndex=function(t){if(this._allToplevelDomElementsThatAreSearchResults().removeClass(this._activeQueryClass()),"number"==typeof t)if(t<0||"undefined"!=typeof this._maximumResultIndex&&t>this._maximumResultIndex)this._activeResultIndex=null;else{this._activeResultIndex=t;var e=this._allToplevelDomElementsForResultIndex(t);e.addClass(this._activeQueryClass())}else this._activeResultIndex=null},pKeyboardNavigableList._nextResult=function(){var t=this._getActiveResultIndex();"number"==typeof t?this._setActiveResultIndex(t+1):this._setActiveResultIndex(0)},pKeyboardNavigableList._previousResult=function(){var t=this._getActiveResultIndex();"number"==typeof t?this._setActiveResultIndex(t-1):this._setActiveResultIndex(this._maximumResultIndex)},pKeyboardNavigableList._goToResult=function(){var t=this._getActiveResultIndex();if("number"==typeof t){var e=this._allToplevelDomElementsForResultIndex(t);if(e.length>0)return this._sendToSearchResultViaElements(e),!0}return!1},pKeyboardNavigableList._hasActiveResult=function(){return"number"==typeof this._getActiveResultIndex()},pKeyboardNavigableList._setKeyStrokeEvents=function(){var t=this;$(this._getTargetElements()).keydown(function(e){switch(e.which){case 13:t._element.is(":visible")&&t._goToResult()&&(e.preventDefault(),e.stopImmediatePropagation());break;case 38:e.preventDefault(),t._previousResult();break;case 40:e.preventDefault(),t._nextResult();break;case 27:t._hasActiveResult()&&(t._setActiveResultIndex(null),e.preventDefault())}})},Swiftype.QueryOutputs.SimpleTemplateOutput=function(t,e,n,i){Swiftype.QueryOutputs.TemplatedQueryOutput.call(this,t,e,n),this._className="Swiftype.QueryOutputs.SimpleTemplateOutput",this._templateName=i},Swiftype.QueryOutputs.SimpleTemplateOutput.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TemplatedQueryOutput.prototype);var pSimpleTemplateOutput=Swiftype.QueryOutputs.SimpleTemplateOutput.prototype;pSimpleTemplateOutput._getTemplate=function(){return this._getCompiledTemplate(this._templates,this._templateName)},pSimpleTemplateOutput._currentSearchChanged=function(t){if(t.isEmptyQuery())this._getOutputElement().html("");else{var e=this._getTemplate();if(e){var n=e.render(this._getTemplateRenderingContext(t));this._getOutputElement().html(n)}}};var QUERY_OUTPUT_CLASS_TO_TEMPLATE_NAME={ResultSummary:"result_summary",ResultPagination:"result_pagination",SpellingSuggestion:"spelling_suggestion",SortOutput:"sort_dropdown",FacetOutput:"filter_checkbox"};$.each(QUERY_OUTPUT_CLASS_TO_TEMPLATE_NAME,function(t,e){Swiftype.QueryOutputs[t]=function(n,i,r){Swiftype.QueryOutputs.SimpleTemplateOutput.call(this,n,i,r),this._className="Swiftype.QueryOutputs."+t,this._templateName=e},Swiftype.QueryOutputs[t].prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.SimpleTemplateOutput.prototype)}),$.each(["ResultSummary","SpellingSuggestion"],function(t,e){Swiftype.QueryOutputs[e].prototype._getTemplateRenderingContext=function(t){return t.firstResultSet().getTemplateRenderingContext()}});var pResultPagination=Swiftype.QueryOutputs.ResultPagination.prototype;pResultPagination._currentSearchChanged=function(t){Swiftype.QueryOutputs.SimpleTemplateOutput.prototype._currentSearchChanged.call(this,t),t.firstResultSet()&&$(this._element).find("option[data-st-page="+t.firstResultSet().currentPageNumber()+"]").attr("selected","selected")},pResultPagination.getPaginationConfig=function(){return this.getResultsDisplay().getUiConfiguration().result_pagination},pResultPagination._paginationPageNumbers=function(t){var e=[],n=t.currentPageNumber(),i=t.lastPageNumber(),r=parseInt(this.getPaginationConfig().max_numbers_to_show);if(r>0){var o=1;i>r&&(o=Math.min(n-parseInt(r/2),i-r)+1,o=Math.max(o,1));for(var s=o;s<=Math.min(o+r-1,i);++s)e.push(s)}return e},pResultPagination._getTemplateRenderingContext=function(t){var e=t.firstResultSet().getTemplateRenderingContext(),n=this._paginationPageNumbers(t.firstResultSet());return $.extend(e,{page_numbers:n})};var pSortOutput=Swiftype.QueryOutputs.SortOutput.prototype;pSortOutput.validate=function(){return!!Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.validate.call(this)&&(this._documentType=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-type"),this._visualOrder=Swiftype.Utils.getDataOrClassValue(this._element,"st-visual-order"),this._findSortConfiguration(),this._sortConfig?(this._templateName=this._sortConfig.template_name,!0):(this.log(this,WARN,"Sort "+this._describeElement(this._element)+" is not configured correctly"),!1))},pSortOutput._findSortConfiguration=function(){var t=this;$.each(this.getResultsDisplay().getUiConfiguration().sort[this._documentType],function(e,n){Number(n.visual_order)===Number(t._visualOrder)&&(t._sortConfig=n)})},pSortOutput._getTemplateRenderingContext=function(t){var e=t.firstResultSet().getTemplateRenderingContext();return $.extend(e,{sort_values:this._sortConfig.values})};var pFacetOutput=Swiftype.QueryOutputs.FacetOutput.prototype;pFacetOutput.attach=function(){this._templateName=this._facetConfig.template_name,this._gotInitialResults=!1,this._initialMinValue=undefined,this._initialMaxValue=undefined,this._previousQueryText=undefined,this._facetHeaderSelector=".st-search-facet-header",this._sortBy=Swiftype.Utils.getDataOrClassValue(this._element,"st-sort-order")||"count",Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.attach.call(this)},pFacetOutput.validate=function(){return!!Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.validate.call(this)&&(this._documentType=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-type"),this._documentField=Swiftype.Utils.getDataOrClassValue(this._element,"st-document-field"),this._visualOrder=Swiftype.Utils.getDataOrClassValue(this._element,"st-visual-order"),this._findFacetConfigurationByDocumentFieldAndVisualOrder(),!!this._facetConfig||(this.log(this,WARN,"Facet "+this._describeElement(this._element)+" is not configured correctly"),!1))},pFacetOutput._findFacetConfigurationByDocumentFieldAndVisualOrder=function(){var t=this;$.each(this.getResultsDisplay().getUiConfiguration().facets[this._documentType],function(e,n){n[0]===t._documentField&&Number(n[1].visual_order)===Number(t._visualOrder)&&(t._facetConfig=n[1])})};var FACETS_TO_HIDE_WHEN_NO_DATA=["filter_checkbox"];pFacetOutput._facetData=function(t){var e=t.facets(),n=e[this._documentField]||{},i=$.map(n,function(t,e){return[[e,t]]});if(i=this._sortFacets(i),!this._gotInitialResults){this._gotInitialResults=!0,this._previousQueryText=t.getQuery()._queryText;var r=$.map(Object.keys(n),function(t){var e=Number(t);return isFinite(e)?e:0});this._initialMinValue=Math.floor(Math.min.apply(null,r)),this._initialMaxValue=Math.ceil(Math.max.apply(null,r))}var o={facets:i,label:this._facetConfig.label,predefined_ranges:this._facetConfig.predefined_ranges,from_label:this._facetConfig.from_label,to_label:this._facetConfig.to_label,submit_label:this._facetConfig.submit_label,hide_count:this._facetConfig.hide_count};return isFinite(this._initialMinValue)&&isFinite(this._initialMaxValue)&&(o.min_value=this._initialMinValue,o.max_value=this._initialMaxValue,o.show=!0),0===i.length&&FACETS_TO_HIDE_WHEN_NO_DATA.indexOf(this._facetConfig.template_name)>-1&&(o.hide_header=!0),o},pFacetOutput._sortFacets=function(t){var e;switch(this._sortBy){case"count":e=function(t,e){return e[1]-t[1]};break;case"alphabetical":e=function(t,e){return t[0]<e[0]?-1:1};break;default:return t}return t.sort(e)},pFacetOutput._beforeRender=function(t){var e=this._element.siblings(this._facetHeaderSelector);$.isEmptyObject(t)||t.hide_header?Swiftype.Utils.elementHide(e):Swiftype.Utils.elementShow(e)},pFacetOutput._getTemplateRenderingContext=function(t){var e=t.firstResultSet().getTemplateRenderingContext(),n=this._facetData(t.firstResultSet());return this._beforeRender(n),$.extend(e,{facet_data:n})},pFacetOutput.someQueryChanged=function(t,e){Swiftype.QueryOutputs.SimpleTemplateOutput.prototype.someQueryChanged.call(this,t,e),e.getQuery()._queryText!==this._previousQueryText&&(this._gotInitialResults=!1)};var DEFAULT_ON_PAGE_SEARCH_CONTAINER_CLASS=".__st-search-container";Swiftype.QueryOutputs.OnPageSearchResults=function(t,e,n,i){Swiftype.QueryOutputs.TemplatedQueryOutput.call(this,t,e,n),this._install=i,this._className="Swiftype.QueryOutputs.OnPageSearchResults",this._templateName="on_page_search_results"},Swiftype.QueryOutputs.OnPageSearchResults.prototype=Swiftype.Utils.createObject(Swiftype.QueryOutputs.TemplatedQueryOutput.prototype);var pOnPageSearchResults=Swiftype.QueryOutputs.OnPageSearchResults.prototype;pOnPageSearchResults._onPageSearchContainer=function(){return $(DEFAULT_ON_PAGE_SEARCH_CONTAINER_CLASS+"[data-"+INSTALL_KEY_DATA_ATTRIBUTE_NAME+'="'+this._install.getInstallDataAttribute()+'"]')},pOnPageSearchResults._currentSearchChanged=function(t){var e=this._onPageSearchContainer().children().detach();0!==e.length&&(this._getOutputElement().html(e),this._getOutputElement().addClass("st-install-"+this._install.getInstallDataAttribute())),Swiftype.QueryOutputs.TemplatedQueryOutput.prototype._currentSearchChanged.call(this,t)},Swiftype.SectionScroller=function(){};var pSectionScroller=Swiftype.SectionScroller.prototype;pSectionScroller.scroll=function(){var t=new Swiftype.AnchorParams(Swiftype.Utils.getHash()),e=t.getValue("sts");if(e){e=this._normalizeText(e);var n=this;$("h1, h2, h3, h4, h5, h6").each(function(){var t=$(this);if(n._normalizeText(t.text()).indexOf(e)>=0)return this.scrollIntoView(!0),!1})}},pSectionScroller._normalizeText=function(t){var e=t.replace(/\s+/g,"");return e=e.toLowerCase()},Swiftype=Swiftype||{},Swiftype.WidgetManager=function(){this._widgetsByInstallKey={},this._installsByInstallKey={},this._defaultInstall=null,this._installCount=0};var pWidgetManager=Swiftype.WidgetManager.prototype;pWidgetManager.install=function(t,e,n){n=n||{};var i;this._installsByInstallKey[t]||(this._defaultInstall?i=new Swiftype.Install(t,n,this._installCount):(i=new Swiftype.Install(t,n,this._installCount),this._defaultInstall=i),this._installsByInstallKey[t]=i,this._installCount++)},pWidgetManager.search=function(t,e){var n=this._installsByInstallKey[t];if(!n)throw"Install with key '"+t+"' not found!";n.addReadyListener(function(){n.getSearchContext().getQueryComposer().runSearch(e)})},pWidgetManager.onSearchComplete=function(t,e){var n;if(null===e||void 0===e?(e=t,n=this._defaultInstall):n=this._installsByInstallKey[t],!n)throw"No install found!";n.addSearchCompleteListener(e)},pWidgetManager.onInstallReady=function(t,e){null!==e&&void 0!==e||(e=t,t=null);var n;if(!(n=t?this._installsByInstallKey[t]:this._defaultInstall))throw t?"Install with key '"+t+"' not found!":"No default install found!";n.addReadyListener(e)},pWidgetManager.conversion=function(t){$.ajax({url:"//api.swiftype.com/api/v1/public/conversions/log_conversion_event",xhrFields:{withCredentials:!0},data:{key:t}})},$(function(){(new Swiftype.SectionScroller).scroll()})}(window,jQuery,window.__st_mt,window.__st_ro),function(t,e){"use strict";var n=new t._InternalSwiftype.WidgetManager,i=function(t){window.console&&console.log(t)},r=function(){var t=Array.prototype.slice.call(arguments);n[t.shift()].apply(n,t)},o=function(){t[t.SwiftypeObject]=r,t[t.SwiftypeObject]._stLoaded=!0,t[t.SwiftypeObject]._widgetManager=n};if(t.SwiftypeObject){var s=t[t.SwiftypeObject];if(e.isFunction(s)&&s._stLoaded)i(new t._InternalSwiftypeError(s,"warn","Swiftype widget code has already been included, please only include one on every page."));else if(e.isFunction(s)&&e.isArray(s.q)){o();for(var a=s.q,l=0;l<a.length;l++)r.apply(null,a[l])}else i(new t._InternalSwiftypeError(s,"fatal","Seems like you already have 'window._st' defined on the page. Please rename '_st' in Swiftype widget code to an undefined variable on the page."))}else i(new t._InternalSwiftypeError(t.SwiftypeObject,"fatal","There was an error loading Swiftype widget code.")),t.SwiftypeObject="_st",o()}(window,jQuery)}($stjq);