!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(pe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>-1!==r})}function kr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function we(n){var t={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function dr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",v),n.removeEventListener("load",v)):(u.detachEvent("onreadystatechange",v),n.detachEvent("onload",v))}function v(){(u.addEventListener||"load"===n.event.type||"complete"===u.readyState)&&(dr(),i.ready())}function nu(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(ke,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:be.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function fi(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function tu(n,t,r,u){if(ot(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),"object"!=typeof t&&"function"!=typeof t||(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function iu(n,t,u){if(ot(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!fi(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,fi(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=void 0)}}}function ru(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&oi.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ou(n){var i=eu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,o=0,r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[o]);o++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ci(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function de(n){si.test(n.type)&&(n.defaultChecked=n.checked)}function hu(n,t,u,e,s){for(var l,h,k,c,w,b,v,d=n.length,y=ou(t),a=[],p=0;d>p;p++)if(h=n[p],h||0===h)if("object"===i.type(h))i.merge(a,h.nodeType?[h]:h);else if(su.test(h)){for(c=c||y.appendChild(t.createElement("div")),w=(uu.exec(h)||["",""])[1].toLowerCase(),v=o[w]||o._default,c.innerHTML=v[1]+i.htmlPrefilter(h)+v[2],l=v[0];l--;)c=c.lastChild;if(!r.leadingWhitespace&&hi.test(h)&&a.push(t.createTextNode(hi.exec(h)[0])),!r.tbody)for(h="table"!==w||li.test(h)?"<table>"!==v[1]||li.test(h)?0:c:c.firstChild,l=h&&h.childNodes.length;l--;)i.nodeName(b=h.childNodes[l],"tbody")&&!b.childNodes.length&&h.removeChild(b);for(i.merge(a,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=y.lastChild}else a.push(t.createTextNode(h));for(c&&y.removeChild(c),r.appendChecked||i.grep(f(a,"input"),de),p=0;h=a[p++];)if(e&&i.inArray(h,e)>-1)s&&s.push(h);else if(k=i.contains(h.ownerDocument,h),c=f(y.appendChild(h),"script"),k&&ci(c),u)for(l=0;h=c[l++];)fu.test(h.type||"")&&u.push(h);return c=null,y}function vt(){return!0}function rt(){return!1}function au(){try{return u.activeElement}catch(n){}}function vi(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)vi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=rt;else if(!f)return n;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function yu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function pu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function wu(n){var t=fo.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function bu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function so(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(pu(t).text=n.text,wu(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&si.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:"input"!==u&&"textarea"!==u||(t.defaultValue=n.defaultValue)}}function k(n,t,u,e){t=sr.apply([],t);var l,o,a,h,p,c,s=0,v=n.length,b=v-1,y=t[0],w=i.isFunction(y);if(w||v>1&&"string"==typeof y&&!r.checkClone&&uo.test(y))return n.each(function(i){var r=n.eq(i);w&&(t[0]=y.call(this,i,r.html()));k(r,t,u,e)});if(v&&(c=hu(t,n[0].ownerDocument,!1,n,e),l=c.firstChild,1===c.childNodes.length&&(c=l),l||e)){for(h=i.map(f(c,"script"),pu),a=h.length;v>s;s++)o=c,s!==b&&(o=i.clone(o,!0,!0),a&&i.merge(h,f(o,"script"))),u.call(n[s],o,s);if(a)for(p=h[h.length-1].ownerDocument,i.map(h,wu),s=0;a>s;s++)o=h[s],fu.test(o.type||"")&&!i._data(o,"globalEval")&&i.contains(p,o)&&(o.src?i._evalUrl&&i._evalUrl(o.src):i.globalEval((o.text||o.textContent||o.innerHTML||"").replace(eo,"")));c=l=null}return n}function ku(n,t,r){for(var u,o=t?i.filter(t,n):n,e=0;null!=(u=o[e]);e++)r||1!==u.nodeType||i.cleanData(f(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ci(f(u,"script")),u.parentNode.removeChild(u));return n}function du(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function yt(n){var r=u,t=pi[n];return t||(t=du(n,r),"none"!==t&&t||(ht=(ht||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ht[0].contentWindow||ht[0].contentDocument).document,r.write(),r.close(),t=du(n,r),ht.detach()),pi[n]=t),t}function bi(n,t){return{get:function(){return n()?void delete this.get:(this.get=t).apply(this,arguments)}}}function ef(n){if(n in ff)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),t=uf.length;t--;)if(n=uf[t]+i,n in ff)return n}function of(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&st(r)&&(e[u]=i._data(r,"olddisplay",yt(r.nodeName)))):(o=st(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function sf(n,t,i){var r=lo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function hf(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+b[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+b[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function cf(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=d(n),s=r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=p(n,t,e),(0>f||null==f)&&(f=n.style[t]),pt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+hf(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function vf(){return n.setTimeout(function(){ut=void 0}),ut=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function yf(n,t,i){for(var u,f=(h.tweeners[t]||[]).concat(h.tweeners["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function vo(n,t,u){var f,a,p,v,s,w,h,b,l=this,y={},o=n.style,c=n.nodeType&&st(n),e=i._data(n,"fxshow");u.queue||(s=i._queueHooks(n,"fx"),null==s.unqueued&&(s.unqueued=0,w=s.empty.fire,s.empty.fire=function(){s.unqueued||w()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--;i.queue(n,"fx").length||s.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[o.overflow,o.overflowX,o.overflowY],h=i.css(n,"display"),b="none"===h?i._data(n,"olddisplay")||yt(n.nodeName):h,"inline"===b&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==yt(n.nodeName)?o.zoom=1:o.display="inline-block"));u.overflow&&(o.overflow="hidden",r.shrinkWrapBlocks()||l.always(function(){o.overflow=u.overflow[0];o.overflowX=u.overflow[1];o.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],lf.exec(a)){if(delete t[f],p=p||"toggle"===a,a===(c?"hide":"show")){if("show"!==a||!e||void 0===e[f])continue;c=!0}y[f]=e&&e[f]||i.style(n,f)}else h=void 0;if(i.isEmptyObject(y))"inline"===("none"===h?yt(n.nodeName):h)&&(o.display=h);else{e?"hidden"in e&&(c=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;i._removeData(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=yf(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start="width"===f||"height"===f?1:0))}}function yo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function h(n,t,r){var e,o,s=0,a=h.prefilters.length,f=i.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var s=ut||vf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;e>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||vf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;r>i;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),c=u.props;for(yo(c,u.opts.specialEasing);a>s;s++)if(e=h.prefilters[s].call(u,n,c,u.opts))return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(c,yf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(l,{elem:n,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 nt(n){return i.attr(n,"class")||""}function re(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ue(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===tr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function rr(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function ts(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function is(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rs(n){return n.style&&n.style.display||i.css(n,"display")}function us(n){if(!i.contains(n.ownerDocument||u,n))return!0;while(n&&1===n.nodeType){if("none"===rs(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}function ur(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||es.test(n)?u(n,i):ur(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)ur(n+"["+f+"]",t[f],r,u)}function fr(){try{return new n.XMLHttpRequest}catch(t){}}function ee(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function oe(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],u=n.document,a=c.slice,sr=c.concat,ti=c.push,hr=c.indexOf,lt={},ce=lt.toString,tt=lt.hasOwnProperty,r={},cr="1.12.4",i=function(n,t){return new i.fn.init(n,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,ve=/-([\da-z])/gi,ye=function(n,t){return t.toUpperCase()},w,ui,yr,pr,wr,br,s,at,gr,o,su,li,ht,pi,d,p,tf,ut,wt,lf,af,pf,wf,kf,df,dt,er,ni,or,se,he;i.fn=i.prototype={jquery:cr,constructor:i,selector:"",length:0,toArray:function(){return a.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:a.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(!r.ownFirst)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?lt[ce.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(ae,"ms-").replace(ve,ye)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;r>i;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return null==n?"":(n+"").replace(le,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ii(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(hr)return hr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return sr.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=a.call(arguments,2),r=function(){return n.apply(t||this,u.concat(a.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=c[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()});w=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(d=sr.exec(n)))if(l=d[1]){if(9===v){if(!(a=t.getElementById(l)))return r;if(a.id===l)return r.push(a),r}else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)p=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=ki++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?b:pt(b,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];s>i;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;s>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,r>i&&ei(n.slice(i,r)),s>r&&ei(n=n.slice(r)),s>r&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&r||!f.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;b=k="only"===n&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(1===c.nodeType&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[0>i?i+t:i]}),even:it(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l="function"==typeof n&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],1===c.length){if(e=c[0]=c[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&f.getById&&9===i.nodeType&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],!i)return r;l&&(i=i.parentNode);n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("div"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=w;i.expr=w.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=w.uniqueSort;i.text=w.getText;i.isXMLDoc=w.isXML;i.contains=w.contains;var it=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext,vr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,pe=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,"string"==typeof n&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;pr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ui,"string"==typeof n){if(f="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yr.exec(n),!f||!f[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),vr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}if(e=u.getElementById(f[2]),e&&e.parentNode){if(e.id!==f[2])return ui.find(n);this.length=1;this[0]=e}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof r.ready?r.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};pr.prototype=i.fn;ui=i(u);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ar.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return it(n,"parentNode")},parentsUntil:function(n,t,i){return it(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return it(n,"nextSibling")},prevAll:function(n){return it(n,"previousSibling")},nextUntil:function(n,t,i){return it(n,"nextSibling",i)},prevUntil:function(n,t,i){return it(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(br[n]||(f=i.uniqueSort(f)),wr.test(n)&&(f=f.reverse())),this.pushStack(f)}});s=/\S+/g;i.Callbacks=function(n){n="string"==typeof n?we(n):i.extend({},n);var e,r,h,f,t=[],o=[],u=-1,c=function(){for(f=n.once,h=e=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);e=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(u=t.length-1,o.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==i.type(u)&&f(u)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),u>=f&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=!0,r||s.disable(),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=a.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?a.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready"))))}});i.ready.promise=function(t){if(!at)if(at=i.Deferred(),"complete"!==u.readyState&&("loading"===u.readyState||u.documentElement.doScroll))if(u.addEventListener)u.addEventListener("DOMContentLoaded",v),n.addEventListener("load",v);else{u.attachEvent("onreadystatechange",v);n.attachEvent("onload",v);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(t){return n.setTimeout(f,50)}dr();i.ready()}}()}else n.setTimeout(i.ready);return at.promise(t)};i.ready.promise();for(gr in i(r))break;r.ownFirst="0"===gr;r.inlineBlockNeedsLayout=!1;i(function(){var f,t,n,i;n=u.getElementsByTagName("body")[0];n&&n.style&&(t=u.createElement("div"),i=u.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",r.inlineBlockNeedsLayout=f=3===t.offsetWidth,f&&(n.style.zoom=1)),n.removeChild(i))}),function(){var n=u.createElement("div");r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}n=null}();var ot=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t},be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ke=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!fi(n)},data:function(n,t,i){return tu(n,t,i)},removeData:function(n,t){return iu(n,t)},_data:function(n,t,i){return tu(n,t,i,!0)},_removeData:function(n,t){return iu(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)o[f]&&(u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),nu(r,u,e[u])));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?nu(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}}),function(){var n;r.shrinkWrapBlocks=function(){if(null!=n)return n;n=!1;var t,i,r;return i=u.getElementsByTagName("body")[0],i&&i.style?(t=u.createElement("div"),r=u.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.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",t.appendChild(u.createElement("div")).style.width="5px",n=3!==t.offsetWidth),i.removeChild(r),n):void 0}}();var ei=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oi=new RegExp("^(?:([+-])=|)("+ei+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],st=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)};var y=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)y(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},si=/^(?:checkbox|radio)$/i,uu=/<([\w:-]+)/,fu=/^$|\/(?:java|ecma)script/i,hi=/^\s+/,eu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var n=u.createElement("div"),f=u.createDocumentFragment(),t=u.createElement("input");n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";r.leadingWhitespace=3===n.firstChild.nodeType;r.tbody=!n.getElementsByTagName("tbody").length;r.htmlSerialize=!!n.getElementsByTagName("link").length;r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML;t.type="checkbox";t.checked=!0;f.appendChild(t);r.appendChecked=t.checked;n.innerHTML="<textarea>x<\/textarea>";r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;f.appendChild(n);t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;r.noCloneEvent=!!n.addEventListener;n[i.expando]=1;r.attributes=!n.getAttribute(i.expando)}();o={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:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]};o.optgroup=o.option;o.tbody=o.tfoot=o.colgroup=o.caption=o.thead;o.th=o.td;su=/<|&#?\w+;/;li=/<tbody/i;!function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t]=i in n)||(f.setAttribute(i,"t"),r[t]=f.attributes[i].expando===!1);f=null}();var ai=/^(?:input|select|textarea)$/i,ge=/^key/,no=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cu=/^(?:focusinfocus|focusoutblur)$/,lu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,r,u,f){var p,v,w,y,o,h,c,l,e,b,k,a=i._data(n);if(a){for(r.handler&&(y=r,r=y.handler,f=y.selector),r.guid||(r.guid=i.guid++),(v=a.events)||(v=a.events={}),(h=a.handle)||(h=a.handle=function(n){if("undefined"!=typeof i&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(h.elem,arguments)},h.elem=n),t=(t||"").match(s)||[""],w=t.length;w--;)p=lu.exec(t[w])||[],e=k=p[1],b=(p[2]||"").split(".").sort(),e&&(o=i.event.special[e]||{},e=(f?o.delegateType:o.bindType)||e,o=i.event.special[e]||{},c=i.extend({type:e,origType:k,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:b.join(".")},y),(l=v[e])||(l=v[e]=[],l.delegateCount=0,o.setup&&o.setup.call(n,u,b,h)!==!1||(n.addEventListener?n.addEventListener(e,h,!1):n.attachEvent&&n.attachEvent("on"+e,h))),o.add&&(o.add.call(n,c),c.handler.guid||(c.handler.guid=r.guid)),f?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=lu.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!cu.test(s+i.event.triggered)&&(s.indexOf(".")>-1&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,cu.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&ot(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&ot(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,o,f,r,t,s=[],h=a.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)n.rnamespace&&!n.rnamespace.test(t.namespace)||(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&("click"!==n.type||isNaN(n.button)||n.button<1))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],e=0;s>e;e++)o=t[e],f=o.selector+" ",void 0===u[f]&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=no.test(r)?this.mouseHooks:ge.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==au()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===au()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t);u.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)}:function(n,t,i){var r="on"+t;n.detachEvent&&("undefined"==typeof n[r]&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&n.returnValue===!1?vt:rt):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={constructor:i.Event,isDefaultPrevented:rt,isPropagationStopped:rt,isImmediatePropagationStopped:rt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&!this.isSimulated&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=vt;n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submit||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?i.prop(r,"form"):void 0;t&&!i._data(t,"submit")&&(i.event.add(t,"submit._submit",function(n){n._submitBubble=!0}),i._data(t,"submit",!0))})},postDispatch:function(n){n._submitBubble&&(delete n._submitBubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.change||(i.event.special.change={setup:function(){return ai.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._justChanged=!0)}),i.event.add(this,"click._change",function(n){this._justChanged&&!n.isTrigger&&(this._justChanged=!1);i.event.simulate("change",this,n)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ai.test(t.nodeName)&&!i._data(t,"change")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n)}),i._data(t,"change",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ai.test(this.nodeName)}});r.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,i,r){return vi(this,n,t,i,r)},one:function(n,t,i,r){return vi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return t!==!1&&"function"!=typeof t||(r=t,t=void 0),r===!1&&(r=rt),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var to=/ jQuery\d+="(?:null|\d+)"/g,vu=new RegExp("<(?:"+eu+")[\\s/>]","i"),io=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ro=/<script|<style|<link/i,uo=/checked\s*(?:[^=]|=\s*.checked.)/i,fo=/^true\/(.*)/,eo=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,oo=ou(u),yi=oo.appendChild(u.createElement("div"));i.extend({htmlPrefilter:function(n){return n.replace(io,"<$1><\/$2>")},clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!vu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(yi.innerHTML=n.outerHTML,yi.removeChild(s=yi.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&so(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)bu(c,e[o]);else bu(n,s);return e=f(s,"script"),e.length>0&&ci(e,!l&&f(n,"script")),e=h=c=null,s},cleanData:function(n,t){for(var u,e,f,o,l=0,s=i.expando,h=i.cache,a=r.attributes,v=i.event.special;null!=(u=n[l]);l++)if((t||ot(u))&&(f=u[s],o=f&&h[f])){if(o.events)for(e in o.events)v[e]?i.event.remove(u,e):i.removeEvent(u,e,o.handle);h[f]&&(delete h[f],a||"undefined"==typeof u.removeAttribute?u[s]=void 0:u.removeAttribute(s),c.push(f))}}});i.fn.extend({domManip:k,detach:function(n){return ku(this,n,!0)},remove:function(n){return ku(this,n)},text:function(n){return y(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.appendChild(n)}})},prepend:function(){return k(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=yu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return k(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return y(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(to,""):void 0;if("string"==typeof n&&!ro.test(n)&&(r.htmlSerialize||!vu.test(n))&&(r.leadingWhitespace||!hi.test(n))&&!o[(uu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(s){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return k(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(f(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});pi={HTML:"block",BODY:"block"};var gu=/^margin/,pt=new RegExp("^("+ei+")(?!px)[a-z%]+$","i"),wi=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},nf=u.documentElement;!function(){var f,h,c,e,l,a,s=u.createElement("div"),t=u.createElement("div");if(t.style){t.style.cssText="float:left;opacity:.5";r.opacity="0.5"===t.style.opacity;r.cssFloat=!!t.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===t.style.backgroundClip;s=u.createElement("div");s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute";t.innerHTML="";s.appendChild(t);r.boxSizing=""===t.style.boxSizing||""===t.style.MozBoxSizing||""===t.style.WebkitBoxSizing;i.extend(r,{reliableHiddenOffsets:function(){return null==f&&o(),e},boxSizingReliable:function(){return null==f&&o(),c},pixelMarginRight:function(){return null==f&&o(),h},pixelPosition:function(){return null==f&&o(),f},reliableMarginRight:function(){return null==f&&o(),l},reliableMarginLeft:function(){return null==f&&o(),a}});function o(){var i,r,o=u.documentElement;o.appendChild(s);t.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";f=c=a=!1;h=l=!0;n.getComputedStyle&&(r=n.getComputedStyle(t),f="1%"!==(r||{}).top,a="2px"===(r||{}).marginLeft,c="4px"===(r||{width:"4px"}).width,t.style.marginRight="50%",h="4px"===(r||{marginRight:"4px"}).marginRight,i=t.appendChild(u.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((n.getComputedStyle(i)||{}).marginRight),t.removeChild(i));t.style.display="none";e=0===t.getClientRects().length;e&&(t.style.display="",t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",t.childNodes[0].style.borderCollapse="separate",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",e=0===i[0].offsetHeight,e&&(i[0].style.display="",i[1].style.display="none",e=0===i[0].offsetHeight));o.removeChild(s)}}}();tf=/^(top|right|bottom|left)$/;n.getComputedStyle?(d=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},p=function(n,t,u){var o,s,h,f,e=n.style;return u=u||d(n),f=u?u.getPropertyValue(t)||u[t]:void 0,""!==f&&void 0!==f||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),u&&!r.pixelMarginRight()&&pt.test(f)&&gu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=f,f=u.width,e.width=o,e.minWidth=s,e.maxWidth=h),void 0===f?f:f+""}):nf.currentStyle&&(d=function(n){return n.currentStyle},p=function(n,t,i){var o,f,e,r,u=n.style;return i=i||d(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),pt.test(r)&&!tf.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});var ki=/alpha\([^)]*\)/i,ho=/opacity\s*=\s*([^)]*)/i,co=/^(none|table(?!-c[ea]).+)/,lo=new RegExp("^("+ei+")(.*)$","i"),ao={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"},uf=["Webkit","O","Moz","ms"],ff=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=p(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,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:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=ef(s)||s),o=i.cssHooks[t]||i.cssHooks[s],void 0===u)return o&&"get"in o&&void 0!==(e=o.get(n,!1,f))?e:c[t];if(h=typeof u,"string"===h&&(e=oi.exec(u))&&e[1]&&(u=ru(n,t,e),h="number"),null!=u&&u===u&&("number"===h&&(u+=e&&e[3]||(i.cssNumber[s]?"":"px")),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(c[t]="inherit"),!(o&&"set"in o&&void 0===(u=o.set(n,u,f)))))try{c[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,o,e=i.camelCase(t);return t=i.cssProps[e]||(i.cssProps[e]=ef(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=p(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return co.test(i.css(n,"display"))&&0===n.offsetWidth?wi(n,ao,function(){return cf(n,t,u)}):cf(n,t,u)},set:function(n,u,f){var e=f&&d(n);return sf(n,u,f?hf(n,t,f,r.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ho.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ki,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ki.test(f)?f.replace(ki,e):f+" "+e)}});i.cssHooks.marginRight=bi(r.reliableMarginRight,function(n,t){if(t)return wi(n,{display:"inline-block"},p,[n,"marginRight"])});i.cssHooks.marginLeft=bi(r.reliableMarginLeft,function(n,t){if(t)return(parseFloat(p(n,"marginLeft"))||(i.contains(n.ownerDocument,n)?n.getBoundingClientRect().left-wi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}):0))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};gu.test(n)||(i.cssHooks[n+t].set=sf)});i.fn.extend({css:function(n,t){return y(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=d(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return of(this,!0)},hide:function(){return of(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){st(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var t,r=e.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=e.prototype.init;i.fx.step={};lf=/^(?:toggle|show|hide)$/;af=/queueHooks$/;i.Animation=i.extend(h,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,oi.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(s);for(var r,u=0,f=n.length;f>u;u++)r=n[u],h.tweeners[r]=h.tweeners[r]||[],h.tweeners[r].unshift(t)},prefilters:[vo],prefilter:function(n,t){t?h.prefilters.unshift(n):h.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,null!=u.queue&&u.queue!==!0||(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(st).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=h(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&af.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));!o&&r||i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(ut=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();ut=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){wt||(wt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(wt);wt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var i,n=u.createElement("input"),t=u.createElement("div"),f=u.createElement("select"),e=f.appendChild(u.createElement("option"));t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];n.setAttribute("type","checkbox");t.appendChild(n);i=t.getElementsByTagName("a")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value}();pf=/\r/g;wf=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(pf,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.trim(i.text(n)).replace(wf," ")}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],(t.selected||e===u)&&(r.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>-1)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ft,bf,l=i.expr.attrHandle,di=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return y(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bf:ft)),void 0!==r?null===r?void i.removeAttr(n,t):f&&"set"in f&&void 0!==(u=f.set(n,r,t))?u:(n.setAttribute(t,r+""),r):f&&"get"in f&&null!==(u=f.get(n,t))?u:(u=i.find.attr(n,t),null==u?void 0:u))},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!di.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)}});bf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!di.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=l[t]||i.find.attr;l[t]=kt&&g||!di.test(t)?function(n,t,i){var u,f;return i||(f=l[t],l[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,l[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ft&&ft.set(n,t,r)}});g||(ft={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},l.id=l.name=l.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ft.set},i.attrHooks.contenteditable={set:function(n,t,i){ft.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});kf=/^(?:input|select|textarea|button|object)$/i;df=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return y(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):kf.test(n.nodeName)||df.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if("string"==typeof n&&n)for(o=n.match(s)||[];t=this[c++];)if(u=nt(t),r=1===t.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)r.indexOf(" "+f+" ")<0&&(r+=f+" ");e=i.trim(r);u!==e&&i.attr(t,"class",e)}return this},removeClass:function(n){var o,r,t,u,f,h,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof n&&n)for(o=n.match(s)||[];r=this[c++];)if(u=nt(r),t=1===r.nodeType&&(" "+u+" ").replace(dt," ")){for(h=0;f=o[h++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&i.attr(r,"class",e)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,f,u,e;if("string"===r)for(f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==r||(t=nt(this),t&&i._data(this,"__className__",t),i.attr(this,"class",t||n===!1?"":i._data(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+nt(t)+" ").replace(dt," ").indexOf(i)>-1)return!0;return!1}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});var po=n.location,gi=i.now(),nr=/\?/,wo=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(wo,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new n.DOMParser,r=u.parseFromString(t,"text/xml")):(r=new n.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var bo=/#.*$/,gf=/([?&])_=[^&]*/,ko=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,go=/^(?:GET|HEAD)$/,ns=/^\/\//,ne=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,te={},tr={},ie="*/".concat("*"),ir=po.href,et=ne.exec(ir.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ir,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(et[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ie,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?rr(rr(n,i.ajaxSettings),t):rr(i.ajaxSettings,n)},ajaxPrefilter:re(te),ajaxTransport:re(tr),ajax:function(t,r){function w(t,r,s,c){var y,rt,it,w,tt,l=r;2!==o&&(o=2,k&&n.clearTimeout(k),v=void 0,b=c||"",f.readyState=t>0?4:0,y=t>=200&&300>t||304===t,s&&(w=ts(u,f,s)),w=is(u,w,f,y),y?(u.ifModified&&(tt=f.getResponseHeader("Last-Modified"),tt&&(i.lastModified[e]=tt),tt=f.getResponseHeader("etag"),tt&&(i.etag[e]=tt)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=w.state,rt=w.data,it=w.error,y=!it)):(it=l,!t&&l||(l="error",0>t&&(t=0))),f.status=t,f.statusText=(r||l)+"",y?g.resolveWith(h,[rt,l,f]):g.rejectWith(h,[f,l,it]),f.statusCode(p),p=void 0,a&&d.trigger(y?"ajaxSuccess":"ajaxError",[f,u,y?rt:it]),nt.fireWith(h,[f,l]),a&&(d.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var c,l,e,b,k,a,v,y,u=i.ajaxSetup({},r),h=u.context||u,d=u.context&&(h.nodeType||h.jquery)?i(h):i.event,g=i.Deferred(),nt=i.Callbacks("once memory"),p=u.statusCode||{},tt={},it={},o=0,rt="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!y)for(y={};t=ko.exec(b);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=it[i]=it[i]||n,tt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)p[t]=[p[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||rt;return v&&v.abort(t),w(0,t),this}};if(g.promise(f).complete=nt.add,f.success=f.done,f.error=f.fail,u.url=((t||u.url||ir)+"").replace(bo,"").replace(ns,et[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(c=ne.exec(u.url.toLowerCase()),u.crossDomain=!(!c||c[1]===et[1]&&c[2]===et[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(et[3]||("http:"===et[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ue(te,u,r,f),2===o)return f;a=i.event&&u.global;a&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!go.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(nr.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=gf.test(e)?e.replace(gf,"$1_="+gi++):e+(nr.test(e)?"&":"?")+"_="+gi++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+ie+"; q=0.01":""):u.accepts["*"]);for(l in u.headers)f.setRequestHeader(l,u.headers[l]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();rt="abort";for(l in{success:1,error:1,complete:1})f[l](u[l]);if(v=ue(tr,u,r,f)){if(f.readyState=1,a&&d.trigger("ajaxSend",[f,u]),2===o)return f;u.async&&u.timeout>0&&(k=n.setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(tt,w)}catch(ut){if(!(2>o))throw ut;w(-1,ut)}}else w(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return r.reliableHiddenOffsets()?n.offsetWidth<=0&&n.offsetHeight<=0&&!n.getClientRects().length:us(n)};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var fs=/%20/g,es=/\[\]$/,fe=/\r?\n/g,os=/^(?:submit|button|image|reset|file)$/i,ss=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ur(r,n[r],t,f);return u.join("&").replace(fs,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ss.test(this.nodeName)&&!os.test(n)&&(this.checked||!si.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(fe,"\r\n")}}):{name:t.name,value:r.replace(fe,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return this.isLocal?ee():u.documentMode>8?fr():/^(get|post|head|put|delete|options)$/i.test(this.type)&&fr()||ee()}:fr;var hs=0,gt={},ct=i.ajaxSettings.xhr();return n.attachEvent&&n.attachEvent("onunload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ct&&"withCredentials"in ct,ct=r.ajax=!!ct,ct&&i.ajaxTransport(function(t){if(!t.crossDomain||r.cors){var u;return{send:function(r,f){var o,e=t.xhr(),s=++hs;if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&e.setRequestHeader(o,r[o]+"");e.send(t.hasContent&&t.data||null);u=function(n,r){var o,c,h;if(u&&(r||4===e.readyState))if(delete gt[s],u=void 0,e.onreadystatechange=i.noop,r)4!==e.readyState&&e.abort();else{h={};o=e.status;"string"==typeof e.responseText&&(h.text=e.responseText);try{c=e.statusText}catch(l){c=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=h.text?200:404}h&&f(o,c,h,e.getAllResponseHeaders())};t.async?4===e.readyState?n.setTimeout(u):e.onreadystatechange=gt[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),er=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=er.pop()||i.expando+"_"+gi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){void 0===e?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,er.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=vr.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=hu([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},or=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&or)return or.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=i.trim(n.slice(e,n.length)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(u=r.getBoundingClientRect()),f=oe(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||nf})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return y(this,function(n,u,f){var e=oe(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=bi(r.pixelPosition,function(n,r){if(r)return(r=p(n,t),pt.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return y(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),se=n.jQuery,he=n.$,i.noConflict=function(t){return n.$===i&&(n.$=he),t&&n.jQuery===i&&(n.jQuery=se),i},t||(n.jQuery=n.$=i),i});window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(p.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function ut(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return"pfx"==t?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ut(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;u>r;r++)b[i[r]]=!!(i[r]in o);return b.list&&(b.list=!(!t.createElement("datalist")||!n.HTMLDataListElement)),b}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var r,u,e,f=0,h=n.length;h>f;f++)o.setAttribute("type",u=n[f]),r="text"!==o.type,r&&(o.value=nt,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&"textfield"!==e.getComputedStyle(o,null).WebkitAppearance&&0!==o.offsetHeight,s.removeChild(o)):/^(search|tel)$/.test(u)||(r=/^(url|email)$/.test(u)?o.checkValidity&&o.checkValidity()===!1:o.value!=nt)),ct[n[f]]=!!r;return ct}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var y,d,u={},g=!0,s=t.documentElement,e="modernizr",ft=t.createElement(e),c=ft.style,o=t.createElement("input"),nt=":)",et={}.toString,p=" -webkit- -moz- -o- -ms- ".split(" "),ot="Webkit Moz O ms",st=ot.split(" "),ht=ot.toLowerCase().split(" "),w={svg:"http://www.w3.org/2000/svg"},r={},ct={},b={},tt=[],it=tt.slice,a=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=u?u[r]:e+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',e,'">',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},pt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t)&&i(t).matches||!1:(a("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r="absolute"==(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r)},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),rt={}.hasOwnProperty,k;d=h(rt,"undefined")||h(rt.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return rt.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if("function"!=typeof t)throw new TypeError;return i=it.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(it.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(it.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!(!n.getContext||!n.getContext("2d"))};r.canvastext=function(){return!(!u.canvas||!h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",p.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=9===n.offsetTop}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!(!n.history||!history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return""===t.createElement("div").style.textShadow};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+p.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=9===t.offsetLeft&&3===t.offsetHeight}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&0===e.indexOf(r.split(" ")[0])}),n};r.generatedcontent=function(){var n;return a(["#",e,"{font:0/0 a}#",e,':after{content:"',nt,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(w.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==w.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(w.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(w.svg,"clipPath")))};for(k in r)d(r,k)&&(y=k.toLowerCase(),u[y]=r[k](),tt.push((u[y]?"":"no-")+y));return u.input||yt(),u.addTest=function(n,t){if("object"==typeof n)for(var r in n)d(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t="function"==typeof t?t():t;"undefined"!=typeof g&&g&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=o=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return"string"==typeof n?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),!e.canHaveChildren||w.test(n)||e.tagUrn?e:f.frag.appendChild(e)}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;h>f;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var e=u(n);return!r.shivCSS||f||e.hasCSS||(e.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||p(n,e),n}var f,i,e=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l="_html5shiv",o=0,a={},r;!function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;i=1==n.childNodes.length||function(){t.createElement("a");var n=t.createDocumentFragment();return"undefined"==typeof n.cloneNode||"undefined"==typeof n.createDocumentFragment||"undefined"==typeof n.createElement}()}catch(r){f=!0;i=!0}}();r={elements:e.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:e.shivCSS!==!1,supportsUnknownElements:i,shivMethods:e.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),u._version="2.8.3",u._prefixes=p,u._domPrefixes=ht,u._cssomPrefixes=st,u.mq=pt,u.hasEvent=lt,u.testProp=function(n){return ut([n])},u.testAllProps=f,u.testStyles=a,u.prefixed=function(n,t,i){return t?f(n,t,i):f(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+tt.join(" "):""),u}(this,this.document);!function(n){n.address=function(){var i,f,l,lt,at=function(t){var i=n.extend(n.Event(t),function(){for(var r={},t=n.address.parameterNames(),i=0,u=t.length;i<u;i++)r[t[i]]=n.address.parameter(t[i]);return{value:n.address.value(),path:n.address.path(),pathNames:n.address.pathNames(),parameterNames:t,parameters:r,queryString:n.address.queryString()}}.call(n.address));return n(n.address).trigger(i),i},p=function(n){return Array.prototype.slice.call(n)},k=function(){return n().bind.apply(n(n.address),Array.prototype.slice.call(arguments)),n.address},hi=function(){return n().unbind.apply(n(n.address),Array.prototype.slice.call(arguments)),n.address},ut=function(){return it.pushState&&t.state!==i},bt=function(){return("/"+s.pathname.replace(new RegExp(t.state),"")+s.search+(ft()?"#"+ft():"")).replace(ri,"/")},ft=function(){var n=s.href.indexOf("#");return-1!=n?s.href.substr(n+1):""},c=function(){return ut()?bt():ft()},kt=function(){try{return top.document!==i&&top.document.title!==i&&top.jQuery!==i&&top.jQuery.address!==i&&!1!==top.jQuery.address.frames()?top:window}catch(n){return window}},vt=function(n){return n=n.toString(),(t.strict&&"/"!=n.substr(0,1)?"/":"")+n},a=function(n,t){return parseInt(n.css(t),10)},d=function(){if(!ht){var n=c();decodeURI(u)!=decodeURI(n)&&(y&&b<7?s.reload():(y&&!st&&t.history&&v(yt,50),u=n,g(o)))}},g=function(n){return v(ci,10),at(ni).isDefaultPrevented()||at(n?ti:ii).isDefaultPrevented()},ci=function(){if("null"!==t.tracker&&t.tracker!==nt){var f=n.isFunction(t.tracker)?t.tracker:r[t.tracker],u=(s.pathname+s.search+(n.address&&!ut()?n.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");n.isFunction(f)?f(u):(n.isFunction(r.urchinTracker)&&r.urchinTracker(u),r.pageTracker!==i&&n.isFunction(r.pageTracker._trackPageview)&&r.pageTracker._trackPageview(u),r._gaq!==i&&n.isFunction(r._gaq.push)&&r._gaq.push(["_trackPageview",decodeURI(u)]),n.isFunction(r.ga)&&r.ga("send","pageview",u))}},yt=function(){var n="javascript:"+o+";document.open();document.writeln('<html><head><title>"+e.title.replace(/\'/g,"\\'")+"<\/title><script>var "+w+' = "'+encodeURIComponent(c()).replace(/\'/g,"\\'")+(e.domain!=s.hostname?'";document.domain="'+e.domain:"")+"\";<\/script><\/head><\/html>');document.close();";b<7?f.src=n:f.contentWindow.location.replace(n)},dt=function(){if(rt&&-1!=fi){for(var n,r=rt.substr(fi+1).split("&"),i=0;i<r.length;i++)n=r[i].split("="),/^(autoUpdate|history|strict|wrap)$/.test(n[0])&&(t[n[0]]=isNaN(n[1])?/^(true|yes)$/i.test(n[1]):0!==parseInt(n[1],10)),/^(state|tracker)$/.test(n[0])&&(t[n[0]]=n[1]);rt=nt}u=c()},gt=function(){var l,p;ei||((ei=h,dt(),n('a[rel*="address:"]').address(),t.wrap)&&(l=n("body"),n("body > *").wrapAll('<div style="padding:'+(a(l,"marginTop")+a(l,"paddingTop"))+"px "+(a(l,"marginRight")+a(l,"paddingRight"))+"px "+(a(l,"marginBottom")+a(l,"paddingBottom"))+"px "+(a(l,"marginLeft")+a(l,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+w+'" style="height:100%;overflow:auto;position:relative;'+(ot&&!window.statusbar.visible?"resize:both;":"")+'" />'),n("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"}),ot&&n('<style type="text/css" />').appendTo("head").text("#"+w+"::-webkit-resizer { background-color: #fff; }")),y&&!st&&(p=e.getElementsByTagName("frameset")[0],(f=e.createElement((p?"":"i")+"frame")).src="javascript:"+o,p?(p.insertAdjacentElement("beforeEnd",f),p[p.cols?"cols":"rows"]+=",0",f.noResize=h,f.frameBorder=f.frameSpacing=0):(f.style.display="none",f.style.width=f.style.height=0,f.tabIndex=-1,e.body.insertAdjacentElement("afterBegin",f)),v(function(){n(f).bind("load",function(){var n=f.contentWindow;(u=n[w]!==i?n[w]:"")!=c()&&(g(o),s.hash=u)});f.contentWindow[w]===i&&yt()},50)),v(function(){at("init");g(o)},1),ut()||(y&&b>7||!y&&st?r.addEventListener?r.addEventListener(tt,d,o):r.attachEvent&&r.attachEvent("on"+tt,d):ai(d,50)),"state"in window.history&&n(window).trigger("popstate"))},nt=null,w="jQueryAddress",tt="hashchange",li="init",ni="change",ti="internalChange",ii="externalChange",h=!0,o=!1,t={autoUpdate:h,history:h,strict:h,frames:h,wrap:o},et=(l={},(lt=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}}(navigator.userAgent)).browser&&(l[lt.browser]=!0,l.version=lt.version),l.chrome?l.webkit=!0:l.webkit&&(l.safari=!0),l),b=parseFloat(et.version),ot=et.webkit||et.safari,y=et.msie,r=kt(),e=r.document,it=r.history,s=r.location,ai=setInterval,v=setTimeout,ri=/\/{2,9}/g,ui=navigator.userAgent,st="on"+tt in r,rt=n("script:last").attr("src"),fi=rt?rt.indexOf("?"):-1,pt=e.title,ht=o,ei=o,oi=h,ct=o,u=c(),wt,si;return y&&(b=parseFloat(ui.substr(ui.indexOf("MSIE")+4)),e.documentMode&&e.documentMode!=b&&(b=8!=e.documentMode?7:8),wt=e.onpropertychange,e.onpropertychange=function(){wt&&wt.call(e);e.title!=pt&&-1!=e.title.indexOf("#"+c())&&(e.title=pt)}),(it.navigationMode&&(it.navigationMode="compatible"),"complete"==document.readyState)?si=setInterval(function(){n.address&&(gt(),clearInterval(si))},50):(dt(),n(gt)),n(window).bind("popstate",function(){decodeURI(u)!=decodeURI(c())&&(u=c(),g(o))}).bind("unload",function(){r.removeEventListener?r.removeEventListener(tt,d,o):r.detachEvent&&r.detachEvent("on"+tt,d)}),{bind:function(){return k.apply(this,p(arguments))},unbind:function(){return hi.apply(this,p(arguments))},init:function(){return k.apply(this,[li].concat(p(arguments)))},change:function(){return k.apply(this,[ni].concat(p(arguments)))},internalChange:function(){return k.apply(this,[ti].concat(p(arguments)))},externalChange:function(){return k.apply(this,[ii].concat(p(arguments)))},baseURL:function(){var n=s.href;return-1!=n.indexOf("#")&&(n=n.substr(0,n.indexOf("#"))),/\/$/.test(n)&&(n=n.substr(0,n.length-1)),n},autoUpdate:function(n){return n!==i?(t.autoUpdate=n,this):t.autoUpdate},history:function(n){return n!==i?(t.history=n,this):t.history},state:function(n){if(n!==i){t.state=n;var r=bt();return t.state!==i&&(it.pushState?"/#/"==r.substr(0,3)&&s.replace(t.state.replace(/^\/$/,"")+r.substr(2)):"/"!=r&&r.replace(/^\/#/,"")!=ft()&&v(function(){s.replace(t.state.replace(/^\/$/,"")+"/#"+r)},1)),this}return t.state},frames:function(n){return n!==i?(t.frames=n,r=kt(),this):t.frames},strict:function(n){return n!==i?(t.strict=n,this):t.strict},tracker:function(n){return n!==i?(t.tracker=n,this):t.tracker},wrap:function(n){return n!==i?(t.wrap=n,this):t.wrap},update:function(){return ct=h,this.value(u),ct=o,this},title:function(n){return n!==i?(v(function(){pt=e.title=n;oi&&f&&f.contentWindow&&f.contentWindow.document&&(f.contentWindow.document.title=n,oi=o)},50),this):e.title},value:function(n){if(n!==i){if("/"==(n=vt(n))&&(n=""),u==n&&!ct)return;if(u=n,t.autoUpdate||ct){if(g(h))return this;ut()?it[t.history?"pushState":"replaceState"]({},"",t.state.replace(/\/$/,"")+(""===u?"/":u)):(ht=h,(ot||u!=c())&&(t.history?s.hash="#"+u:s.replace("#"+u)),y&&!st&&t.history&&v(yt,50),ot?v(function(){ht=o},1):ht=o)}return this}return vt(u)},path:function(n){if(n!==i){var t=this.queryString(),r=this.hash();return this.value(n+(t?"?"+t:"")+(r?"#"+r:"")),this}return vt(u).split("#")[0].split("?")[0]},pathNames:function(){var n=this.path(),t=n.replace(ri,"/").split("/");return"/"!=n.substr(0,1)&&0!==n.length||t.splice(0,1),"/"==n.substr(n.length-1,1)&&t.splice(t.length-1,1),t},queryString:function(n){var t,r;return n!==i?(t=this.hash(),this.value(this.path()+(n?"?"+n:"")+(t?"#"+t:"")),this):(r=u.split("?"),r.slice(1,r.length).join("?").split("#")[0])},parameter:function(t,r,u){var f,o,h,c,e,l,s,a;if(r!==i){for(h=this.parameterNames(),o=[],r=r===i||r===nt?"":r.toString(),f=0;f<h.length;f++)for(c=h[f],e=this.parameter(c),"string"==typeof e&&(e=[e]),c==t&&(e=r===nt||""===r?[]:u?e.concat([r]):[r]),l=0;l<e.length;l++)o.push(c+"="+e[l]);return-1==n.inArray(t,h)&&r!==nt&&""!==r&&o.push(t+"="+r),this.queryString(o.join("&")),this}if(r=this.queryString()){for(s=[],o=r.split("&"),f=0;f<o.length;f++)a=o[f].split("="),a[0]==t&&s.push(a.slice(1).join("="));if(0!==s.length)return 1!=s.length?s:s[0]}},parameterNames:function(){var i=this.queryString(),r=[],u,t,f;if(i&&-1!=i.indexOf("="))for(u=i.split("&"),t=0;t<u.length;t++)f=u[t].split("=")[0],-1==n.inArray(f,r)&&r.push(f);return r},hash:function(n){if(n!==i)return this.value(u.split("#")[0]+(n?"#"+n:"")),this;var t=u.split("#");return t.slice(1,t.length).join("#")}}}();n.fn.address=function(t){return n(this).each(function(){n(this).data("address")||n(this).on("click",function(i){var r,u;if(i.shiftKey||i.ctrlKey||i.metaKey||2==i.which)return!0;r=i.currentTarget;n(r).is("a")&&(i.preventDefault(),u=t?t.call(r):/address:/.test(n(r).attr("rel"))?n(r).attr("rel").split("address:")[1].split(" ")[0]:void 0===n.address.state()||/^\/?$/.test(n.address.state())?n(r).attr("href").replace(/^(#\!?|\.)/,""):n(r).attr("href").replace(new RegExp("^(.*"+n.address.state()+"|\\.)"),""),n.address.value(u))}).on("submit",function(i){var r=i.currentTarget,u,f;n(r).is("form")&&(i.preventDefault(),u=n(r).attr("action"),f=t?t.call(r):(-1!=u.indexOf("?")?u.replace(/&$/,""):u+"?")+n(r).serialize(),n.address.value(f))}).data("address",!0)}),this}}(jQuery);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.hoverIntent&&n(jQuery)}(function(n){"use strict";var t,i,f={interval:100,sensitivity:6,timeout:0},e=0,r=function(n){t=n.pageX;i=n.pageY},u=function(n,f,e,o){if(Math.sqrt((e.pX-t)*(e.pX-t)+(e.pY-i)*(e.pY-i))<o.sensitivity)return f.off(e.event,r),delete e.timeoutId,e.isActive=!0,n.pageX=t,n.pageY=i,delete e.pX,delete e.pY,o.over.apply(f[0],[n]);e.pX=t;e.pY=i;e.timeoutId=setTimeout(function(){u(n,f,e,o)},o.interval)};n.fn.hoverIntent=function(t,i,o){var h=e++,s=n.extend({},f),c;n.isPlainObject(t)?(s=n.extend(s,t),n.isFunction(s.out)||(s.out=s.over)):s=n.isFunction(i)?n.extend(s,{over:t,out:i,selector:o}):n.extend(s,{over:t,out:t,selector:i});c=function(t){var e=n.extend({},t),f=n(this),o=f.data("hoverIntent"),i,c;if(o||f.data("hoverIntent",o={}),i=o[h],i||(o[h]=i={id:h}),i.timeoutId&&(i.timeoutId=clearTimeout(i.timeoutId)),c=i.event="mousemove.hoverIntent.hoverIntent"+h,"mouseenter"===t.type){if(i.isActive)return;i.pX=e.pageX;i.pY=e.pageY;f.off(c,r).on(c,r);i.timeoutId=setTimeout(function(){u(e,f,i,s)},s.interval)}else{if(!i.isActive)return;f.off(c,r);i.timeoutId=setTimeout(function(){!function(n,t,i,r){delete t.data("hoverIntent")[i.id];r.apply(t[0],[n])}(e,f,i,s.out)},s.timeout)}};return this.on({"mouseenter.hoverIntent":c,"mouseleave.hoverIntent":c},s.selector)}});!function(n,t,i,r){var u=n(t);n.fn.lazyload=function(f){function s(){var t=0;o.each(function(){var i=n(this);if((!e.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,e)&&!n.leftofbegin(this,e))if(n.belowthefold(this,e)||n.rightoffold(this,e)){if(++t>e.failure_limit)return!1}else i.trigger("appear"),t=0})}var h,o=this,e={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(r!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),r!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),n.extend(e,f)),h=e.container===r||e.container===t?u:n(e.container),0===e.event.indexOf("scroll")&&h.bind(e.event,function(){return s()}),this.each(function(){var i=this,t=n(i);i.loaded=!1;(t.attr("src")===r||t.attr("src")===!1)&&t.is("img")&&t.attr("src",e.placeholder);t.one("appear",function(){if(!this.loaded){if(e.appear){var r=o.length;e.appear.call(i,r,e)}n("<img />").bind("load",function(){var r=t.attr("data-"+e.data_attribute),u,f;t.hide();t.is("img")?t.attr("src",r):t.css("background-image","url('"+r+"')");t[e.effect](e.effect_speed);i.loaded=!0;u=n.grep(o,function(n){return!n.loaded});(o=n(u),e.load)&&(f=o.length,e.load.call(i,f,e))}).attr("src",t.attr("data-"+e.data_attribute))}});0!==e.event.indexOf("scroll")&&t.bind(e.event,function(){i.loaded||t.trigger("appear")})}),u.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&o.each(function(){n(this).trigger("appear")})}),n(i).ready(function(){s()}),this};n.belowthefold=function(i,f){var e;return e=f.container===r||f.container===t?(t.innerHeight?t.innerHeight:u.height())+u.scrollTop():n(f.container).offset().top+n(f.container).height(),e<=n(i).offset().top-f.threshold};n.rightoffold=function(i,f){var e;return e=f.container===r||f.container===t?u.width()+u.scrollLeft():n(f.container).offset().left+n(f.container).width(),e<=n(i).offset().left-f.threshold};n.abovethetop=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollTop():n(f.container).offset().top,e>=n(i).offset().top+f.threshold+n(i).height()};n.leftofbegin=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollLeft():n(f.container).offset().left,e>=n(i).offset().left+f.threshold+n(i).width()};n.inviewport=function(t,i){return!(n.rightoffold(t,i)||n.leftofbegin(t,i)||n.belowthefold(t,i)||n.abovethetop(t,i))};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window,document);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var o=-1,r=-1,i=function(n){return parseFloat(n)||0},s=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;null===o?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},u=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?n.extend(i,t):("boolean"==typeof t?i.byRow=t:"remove"===t&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=u(i),f;return r.remove?(f=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(f)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},f,e;t.version="0.7.2";t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._rows=s;t._parse=i;t._parseOptions=u;t._apply=function(r,f){var e=u(f),o=n(r),c=[o],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=o.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),e.byRow&&!e.target&&(o.each(function(){var i=n(this),t=i.css("display");"inline-block"!==t&&"flex"!==t&&"inline-flex"!==t&&(t="block");i.data("style-cache",i.attr("style"));i.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(o),o.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),f=0;if(e.target)f=e.target.outerHeight(!1);else{if(e.byRow&&u.length<=1)return void u.css(e.property,"");u.each(function(){var t=n(this),u=t.attr("style"),i=t.css("display"),r;"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");r={display:i};r[e.property]="";t.css(r);t.outerHeight(!1)>f&&(f=t.outerHeight(!1));u?t.attr("style",u):t.css("display","")})}u.each(function(){var t=n(this),r=0;e.target&&t.is(e.target)||("border-box"!==t.css("box-sizing")&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(e.property,f-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};f=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,u){if(u&&"resize"===u.type){var e=n(window).width();if(e===o)return;o=e}i?r===-1&&(r=setTimeout(function(){f(u);r=-1},t._throttle)):f(u)};n(t._applyDataApi);e=n.fn.on?"on":"bind";n(window)[e]("load",function(n){t._update(!1,n)});n(window)[e]("resize orientationchange",function(n){t._update(!0,n)})});!function(n,t,i,r){function u(t,i){this.settings=null;this.options=n.extend({},u.Defaults,i);this.$element=n(t);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};n.each(["onResize","onThrottledResize"],n.proxy(function(t,i){this._handlers[i]=n.proxy(this[i],this)},this));n.each(u.Plugins,n.proxy(function(n,t){this._plugins[n.charAt(0).toLowerCase()+n.slice(1)]=new t(this)},this));n.each(u.Workers,n.proxy(function(t,i){this._pipe.push({filter:i.filter,run:n.proxy(i.run,this)})},this));this.setup();this.initialize()}u.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"};u.Width={Default:"default",Inner:"inner",Outer:"outer"};u.Type={Event:"event",State:"state"};u.Plugins={};u.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(n){n.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(n){var t=this.settings.margin||"",u=!this.settings.autoWidth,i=this.settings.rtl,r={width:"auto","margin-left":i?t:"","margin-right":i?"":t};u||this.$stage.children().css(r);n.css=r}},{filter:["width","items","settings"],run:function(n){var r=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,t=null,i=this._items.length,f=!this.settings.autoWidth,u=[];for(n.items={merge:!1,width:r};i--;)t=this._mergers[i],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,n.items.merge=t>1||n.items.merge,u[i]=f?r*t:this._items[i].width();this._widths=u}},{filter:["items","settings"],run:function(){var t=[],i=this._items,r=this.settings,f=Math.max(2*r.items,4),s=2*Math.ceil(i.length/2),e=r.loop&&i.length?r.rewind?f:Math.max(f,s):0,o="",u="";for(e/=2;e--;)t.push(this.normalize(t.length/2,!0)),o+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),u=i[t[t.length-1]][0].outerHTML+u;this._clones=t;n(o).addClass("cloned").appendTo(this.$stage);n(u).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var u=this.settings.rtl?1:-1,f=this._clones.length+this._items.length,n=-1,i=0,r=0,t=[];++n<f;)i=t[n-1]||0,r=this._widths[this.relative(n)]+this.settings.margin,t.push(i+r*u);this._coordinates=t}},{filter:["width","items","settings"],run:function(){var n=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*n,"padding-left":n||"","padding-right":n||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(n){var t=this._coordinates.length,i=!this.settings.autoWidth,r=this.$stage.children();if(i&&n.items.merge)for(;t--;)n.css.width=this._widths[this.relative(t)],r.eq(t).css(n.css);else i&&(n.css.width=n.items.width,r.css(n.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(n){n.current=n.current?this.$stage.children().index(n.current):0;n.current=Math.max(this.minimum(),Math.min(this.maximum(),n.current));this.reset(n.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var t,i,f=this.settings.rtl?1:-1,e=2*this.settings.stagePadding,r=this.coordinates(this.current())+e,o=r+this.width()*f,s=[],n=0,u=this._coordinates.length;n<u;n++)t=this._coordinates[n-1]||0,i=Math.abs(this._coordinates[n])+e*f,(this.op(t,"<=",r)&&this.op(t,">",o)||this.op(i,"<",r)&&this.op(i,">",o))&&s.push(n);this.$stage.children(".active").removeClass("active");this.$stage.children(":eq("+s.join("), :eq(")+")").addClass("active");this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}];u.prototype.initialize=function(){var t,i,u;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,u=this.$element.children(i).width(),t.length&&u<=0&&this.preloadAutoWidthImages(t));this.$element.addClass(this.options.loadingClass);this.$stage=n("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));this.$element.is(":visible")?this.refresh():this.invalidate("width");this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);this.registerEventHandlers();this.leave("initializing");this.trigger("initialized")};u.prototype.setup=function(){var u=this.viewport(),r=this.options.responsive,i=-1,t=null;r?(n.each(r,function(n){n<=u&&n>i&&(i=Number(n))}),"function"==typeof(t=n.extend({},this.options,r[i])).stagePadding&&(t.stagePadding=t.stagePadding()),delete t.responsive,t.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):t=n.extend({},this.options);this.trigger("change",{property:{name:"settings",value:t}});this._breakpoint=i;this.settings=t;this.invalidate("settings");this.trigger("changed",{property:{name:"settings",value:this.settings}})};u.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)};u.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=n("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data};u.prototype.update=function(){for(var t=0,i=this._pipe.length,r=n.proxy(function(n){return this[n]},this._invalidated),u={};t<i;)(this._invalidated.all||n.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(u),t++;this._invalidated={};this.is("valid")||this.enter("valid")};u.prototype.width=function(n){switch(n=n||u.Width.Default){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}};u.prototype.refresh=function(){this.enter("refreshing");this.trigger("refresh");this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave("refreshing");this.trigger("refreshed")};u.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer);this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)};u.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))};u.prototype.registerEventHandlers=function(){n.support.transition&&this.$stage.on(n.support.transition.end+".owl.core",n.proxy(this.onTransitionEnd,this));!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize);this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1}));this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",n.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",n.proxy(this.onDragEnd,this)))};u.prototype.onDragStart=function(t){var r=null;3!==t.which&&(n.support.transform?r={x:(r=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===r.length?12:4],y:r[16===r.length?13:5]}:(r=this.$stage.position(),r={x:this.settings.rtl?r.left+this.$stage.width()-this.width()+this.settings.margin:r.left,y:r.top}),this.is("animating")&&(n.support.transform?this.animate(r.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=n(t.target),this._drag.stage.start=r,this._drag.stage.current=r,this._drag.pointer=this.pointer(t),n(i).on("mouseup.owl.core touchend.owl.core",n.proxy(this.onDragEnd,this)),n(i).one("mousemove.owl.core touchmove.owl.core",n.proxy(function(t){var r=this.difference(this._drag.pointer,this.pointer(t));n(i).on("mousemove.owl.core touchmove.owl.core",n.proxy(this.onDragMove,this));Math.abs(r.x)<Math.abs(r.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))};u.prototype.onDragMove=function(n){var t=null,i=null,u=null,f=this.difference(this._drag.pointer,this.pointer(n)),r=this.difference(this._drag.stage.start,f);this.is("dragging")&&(n.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),u=this.settings.pullDrag?f.x/-5:0,r.x=Math.max(Math.min(r.x,t+u),i+u)),this._drag.stage.current=r,this.animate(r.x))};u.prototype.onDragEnd=function(t){var r=this.difference(this._drag.pointer,this.pointer(t)),f=this._drag.stage.current,u=r.x>0^this.settings.rtl?"left":"right";n(i).off(".owl.core");this.$element.removeClass(this.options.grabClass);(0!==r.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(f.x,0!==r.x?u:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=u,(Math.abs(r.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1}));this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))};u.prototype.closest=function(t,i){var r=-1,f=this.width(),u=this.coordinates();return this.settings.freeDrag||n.each(u,n.proxy(function(n,e){return"left"===i&&t>e-30&&t<e+30?r=n:"right"===i&&t>e-f-30&&t<e-f+30?r=n+1:this.op(t,"<",e)&&this.op(t,">",u[n+1]||e-f)&&(r="left"===i?n+1:n),-1===r},this)),this.settings.loop||(this.op(t,">",u[this.minimum()])?r=t=this.minimum():this.op(t,"<",u[this.maximum()])&&(r=t=this.maximum())),r};u.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd();i&&(this.enter("animating"),this.trigger("translate"));n.support.transform3d&&n.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,n.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})};u.prototype.is=function(n){return this._states.current[n]&&this._states.current[n]>0};u.prototype.current=function(n){if(n===r)return this._current;if(0===this._items.length)return r;if(n=this.normalize(n),this._current!==n){var t=this.trigger("change",{property:{name:"position",value:n}});t.data!==r&&(n=this.normalize(t.data));this._current=n;this.invalidate("position");this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current};u.prototype.invalidate=function(t){return"string"===n.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),n.map(this._invalidated,function(n,t){return t})};u.prototype.reset=function(n){(n=this.normalize(n))!==r&&(this._speed=0,this._current=n,this.suppress(["translate","translated"]),this.animate(this.coordinates(n)),this.release(["translate","translated"]))};u.prototype.normalize=function(n,t){var i=this._items.length,u=t?0:this._clones.length;return!this.isNumeric(n)||i<1?n=r:(n<0||n>=i+u)&&(n=((n-u/2)%i+i)%i+u/2),n};u.prototype.relative=function(n){return n-=this._clones.length/2,this.normalize(n,!0)};u.prototype.maximum=function(n){var t,u,f,i=this.settings,r=this._coordinates.length;if(i.loop)r=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge){for(t=this._items.length,u=this._items[--t].width(),f=this.$element.width();t--&&!((u+=this._items[t].width()+this.settings.margin)>f););r=t+1}else r=i.center?this._items.length-1:this._items.length-i.items;return n&&(r-=this._clones.length/2),Math.max(r,0)};u.prototype.minimum=function(n){return n?0:this._clones.length/2};u.prototype.items=function(n){return n===r?this._items.slice():(n=this.normalize(n,!0),this._items[n])};u.prototype.mergers=function(n){return n===r?this._mergers.slice():(n=this.normalize(n,!0),this._mergers[n])};u.prototype.clones=function(t){var i=this._clones.length/2,f=i+this._items.length,u=function(n){return n%2==0?f+n/2:i-(n+1)/2};return t===r?n.map(this._clones,function(n,t){return u(t)}):n.map(this._clones,function(n,i){return n===t?u(i):null})};u.prototype.speed=function(n){return n!==r&&(this._speed=n),this._speed};u.prototype.coordinates=function(t){var i,f=1,u=t-1;return t===r?n.map(this._coordinates,n.proxy(function(n,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(f=-1,u=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[u]||0))/2*f):i=this._coordinates[u]||0,i=Math.ceil(i))};u.prototype.duration=function(n,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-n),1),6)*Math.abs(i||this.settings.smartSpeed)};u.prototype.to=function(n,t){var r=this.current(),u=null,i=n-this.relative(r),s=(i>0)-(i<0),f=this._items.length,o=this.minimum(),e=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>f/2&&(i+=-1*s*f),(u=(((n=r+i)-o)%f+f)%f+o)!==n&&u-i<=e&&u-i>0&&(r=u-i,n=u,this.reset(r))):n=this.settings.rewind?(n%(e+=1)+e)%e:Math.max(o,Math.min(e,n));this.speed(this.duration(r,n,t));this.current(n);this.$element.is(":visible")&&this.update()};u.prototype.next=function(n){n=n||!1;this.to(this.relative(this.current())+1,n)};u.prototype.prev=function(n){n=n||!1;this.to(this.relative(this.current())-1,n)};u.prototype.onTransitionEnd=function(n){if(n!==r&&(n.stopPropagation(),(n.target||n.srcElement||n.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating");this.trigger("translated")};u.prototype.viewport=function(){var r;return this.options.responsiveBaseElement!==t?r=n(this.options.responsiveBaseElement).width():t.innerWidth?r=t.innerWidth:i.documentElement&&i.documentElement.clientWidth?r=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),r};u.prototype.replace=function(t){this.$stage.empty();this._items=[];t&&(t=t instanceof jQuery?t:n(t));this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector));t.filter(function(){return 1===this.nodeType}).each(n.proxy(function(n,t){t=this.prepare(t);this.$stage.append(t);this._items.push(t);this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate("items")};u.prototype.add=function(t,i){var u=this.relative(this._current);i=i===r?this._items.length:this.normalize(i,!0);t=t instanceof jQuery?t:n(t);this.trigger("add",{content:t,position:i});t=this.prepare(t);0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1));this._items[u]&&this.reset(this._items[u].index());this.invalidate("items");this.trigger("added",{content:t,position:i})};u.prototype.remove=function(n){(n=this.normalize(n,!0))!==r&&(this.trigger("remove",{content:this._items[n],position:n}),this._items[n].remove(),this._items.splice(n,1),this._mergers.splice(n,1),this.invalidate("items"),this.trigger("removed",{content:null,position:n}))};u.prototype.preloadAutoWidthImages=function(t){t.each(n.proxy(function(t,i){this.enter("pre-loading");i=n(i);n(new Image).one("load",n.proxy(function(n){i.attr("src",n.target.src);i.css("opacity",1);this.leave("pre-loading");!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))};u.prototype.destroy=function(){for(var r in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),n(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[r].destroy();this.$stage.children(".cloned").remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")};u.prototype.op=function(n,t,i){var r=this.settings.rtl;switch(t){case"<":return r?n>i:n<i;case">":return r?n<i:n>i;case">=":return r?n<=i:n>=i;case"<=":return r?n>=i:n<=i}};u.prototype.on=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)};u.prototype.off=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)};u.prototype.trigger=function(t,i,r){var o={item:{count:this._items.length,index:this.current()}},e=n.camelCase(n.grep(["on",t,r],function(n){return n}).join("-").toLowerCase()),f=n.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},o,i));return this._supress[t]||(n.each(this._plugins,function(n,t){t.onTrigger&&t.onTrigger(f)}),this.register({type:u.Type.Event,name:t}),this.$element.trigger(f),this.settings&&"function"==typeof this.settings[e]&&this.settings[e].call(this,f)),f};u.prototype.enter=function(t){n.each([t].concat(this._states.tags[t]||[]),n.proxy(function(n,t){this._states.current[t]===r&&(this._states.current[t]=0);this._states.current[t]++},this))};u.prototype.leave=function(t){n.each([t].concat(this._states.tags[t]||[]),n.proxy(function(n,t){this._states.current[t]--},this))};u.prototype.register=function(t){if(t.type===u.Type.Event){if(n.event.special[t.name]||(n.event.special[t.name]={}),!n.event.special[t.name].owl){var i=n.event.special[t.name]._default;n.event.special[t.name]._default=function(n){return!i||!i.apply||n.namespace&&-1!==n.namespace.indexOf("owl")?n.namespace&&n.namespace.indexOf("owl")>-1:i.apply(this,arguments)};n.event.special[t.name].owl=!0}}else t.type===u.Type.State&&(this._states.tags[t.name]=this._states.tags[t.name]?this._states.tags[t.name].concat(t.tags):t.tags,this._states.tags[t.name]=n.grep(this._states.tags[t.name],n.proxy(function(i,r){return n.inArray(i,this._states.tags[t.name])===r},this)))};u.prototype.suppress=function(t){n.each(t,n.proxy(function(n,t){this._supress[t]=!0},this))};u.prototype.release=function(t){n.each(t,n.proxy(function(n,t){delete this._supress[t]},this))};u.prototype.pointer=function(n){var i={x:null,y:null};return(n=(n=n.originalEvent||n||t.event).touches&&n.touches.length?n.touches[0]:n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n).pageX?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i};u.prototype.isNumeric=function(n){return!isNaN(parseFloat(n))};u.prototype.difference=function(n,t){return{x:n.x-t.x,y:n.y-t.y}};n.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var f=n(this),r=f.data("owl.carousel");r||(r=new u(this,"object"==typeof t&&t),f.data("owl.carousel",r),n.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){r.register({type:u.Type.Event,name:i});r.$element.on(i+".owl.carousel.core",n.proxy(function(n){n.namespace&&n.relatedTarget!==this&&(this.suppress([i]),r[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},r))}));"string"==typeof t&&"_"!==t.charAt(0)&&r[t].apply(r,i)})};n.fn.owlCarousel.Constructor=u}(window.Zepto||window.jQuery,window,document),function(n,t){var i=function(t){this._core=t;this._interval=null;this._visible=null;this._handlers={"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoRefresh&&this.watch()},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500};i.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=t.setInterval(n.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))};i.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())};i.prototype.destroy=function(){var n,i;for(n in t.clearInterval(this._interval),this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(n,t){var i=function(t){this._core=t;this._loaded=[];this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":n.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,u=i.center&&Math.ceil(i.items/2)||i.items,f=i.center&&-1*u||0,r=(t.property&&undefined!==t.property.value?t.property.value:this._core.current())+f,e=this._core.clones().length,o=n.proxy(function(n,t){this.load(t)},this);f++<u;)this.load(e/2+this._core.relative(r)),e&&n.each(this._core.clones(this._core.relative(r)),o),r++},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1};i.prototype.load=function(i){var r=this._core.$stage.children().eq(i),u=r&&r.find(".owl-lazy");!u||n.inArray(r.get(0),this._loaded)>-1||(u.each(n.proxy(function(i,r){var e,u=n(r),f=t.devicePixelRatio>1&&u.attr("data-src-retina")||u.attr("data-src");this._core.trigger("load",{element:u,url:f},"lazy");u.is("img")?u.one("load.owl.lazy",n.proxy(function(){u.css("opacity",1);this._core.trigger("loaded",{element:u,url:f},"lazy")},this)).attr("src",f):((e=new Image).onload=n.proxy(function(){u.css({"background-image":'url("'+f+'")',opacity:"1"});this._core.trigger("loaded",{element:u,url:f},"lazy")},this),e.src=f)},this)),this._loaded.push(r.get(0)))};i.prototype.destroy=function(){var n,t;for(n in this.handlers)this._core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(n){var t=function(i){this._core=i;this._handlers={"initialized.owl.carousel refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&"position"==n.property.name&&this.update()},this),"loaded.owl.lazy":n.proxy(function(n){n.namespace&&this._core.settings.autoHeight&&n.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this._core.$element.on(this._handlers)};t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"};t.prototype.update=function(){var t,i=this._core._current,u=i+this._core.settings.items,f=this._core.$stage.children().toArray().slice(i,u),r=[];n.each(f,function(t,i){r.push(n(i).height())});t=Math.max.apply(null,r);this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)};t.prototype.destroy=function(){var n,t;for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoHeight=t}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this._core=t;this._videos={};this._playing=null;this._handlers={"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.video&&this.isInFullScreen()&&n.preventDefault()},this),"refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&"position"===n.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var i=n(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,n(t.content)))}},this)};this._core.options=n.extend({},r.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(n){this.play(n)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1};r.prototype.fetch=function(n,t){var u=n.attr("data-vimeo-id")?"vimeo":n.attr("data-vzaar-id")?"vzaar":"youtube",i=n.attr("data-vimeo-id")||n.attr("data-youtube-id")||n.attr("data-vzaar-id"),f=n.attr("data-width")||this._core.settings.videoWidth,e=n.attr("data-height")||this._core.settings.videoHeight,r=n.attr("href");if(!r)throw new Error("Missing video URL.");if((i=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)u="youtube";else if(i[3].indexOf("vimeo")>-1)u="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");u="vzaar"}i=i[6];this._videos[r]={type:u,id:i,width:f,height:e};t.attr("data-video",r);this.thumbnail(n,this._videos[r])};r.prototype.thumbnail=function(t,i){var o,r,h=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",f=t.find("img"),e="src",s="",c=this._core.settings,u=function(n){o=c.lazyLoad?'<div class="owl-video-tn '+s+'" '+e+'="'+n+'"><\/div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+n+')"><\/div>';t.after(o);t.after('<div class="owl-video-play-icon"><\/div>')};if(t.wrap('<div class="owl-video-wrapper"'+h+"><\/div>"),this._core.settings.lazyLoad&&(e="data-src",s="owl-lazy"),f.length)return u(f.attr(e)),f.remove(),!1;"youtube"===i.type?(r="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(r)):"vimeo"===i.type?n.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n[0].thumbnail_large;u(r)}}):"vzaar"===i.type&&n.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n.framegrab_url;u(r)}})};r.prototype.stop=function(){this._core.trigger("stop",null,"video");this._playing.find(".owl-video-frame").remove();this._playing.removeClass("owl-video-playing");this._playing=null;this._core.leave("playing");this._core.trigger("stopped",null,"video")};r.prototype.play=function(t){var u,r=n(t.target).closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],f=i.width||"100%",e=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),"youtube"===i.type?u='<iframe width="'+f+'" height="'+e+'" src="//www.youtube.com/embed/'+i.id+"?autoplay=1&rel=0&v="+i.id+'" frameborder="0" allowfullscreen><\/iframe>':"vimeo"===i.type?u='<iframe src="//player.vimeo.com/video/'+i.id+'?autoplay=1" width="'+f+'" height="'+e+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>':"vzaar"===i.type&&(u='<iframe frameborder="0"height="'+e+'"width="'+f+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+i.id+'/player?autoplay=true"><\/iframe>'),n('<div class="owl-video-frame">'+u+"<\/div>").insertAfter(r.find(".owl-video")),this._playing=r.addClass("owl-video-playing"))};r.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&n(t).parent().hasClass("owl-video-frame")};r.prototype.destroy=function(){var n,t;for(n in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){var u=function(t){this.core=t;this.core.options=n.extend({},u.Defaults,this.core.options);this.swapping=!0;this.previous=r;this.next=r;this.handlers={"change.owl.carousel":n.proxy(function(n){n.namespace&&"position"==n.property.name&&(this.previous=this.core.current(),this.next=n.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":n.proxy(function(n){n.namespace&&(this.swapping="translated"==n.type)},this),"translate.owl.carousel":n.proxy(function(n){n.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)};this.core.$element.on(this.handlers)};u.Defaults={animateOut:!1,animateIn:!1};u.prototype.swap=function(){if(1===this.core.settings.items&&n.support.animation&&n.support.transition){this.core.speed(0);var t,i=n.proxy(this.clear,this),f=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,u=this.core.settings.animateOut;this.core.current()!==this.previous&&(u&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),f.one(n.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(u)),r&&e.one(n.support.animation.end,i).addClass("animated owl-animated-in").addClass(r))}};u.prototype.clear=function(t){n(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd()};u.prototype.destroy=function(){var n,t;for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Animate=u}(window.Zepto||window.jQuery,window,document),function(n,t,i){var r=function(t){this._core=t;this._timeout=null;this._paused=!1;this._handlers={"changed.owl.carousel":n.proxy(function(n){n.namespace&&"settings"===n.property.name?this._core.settings.autoplay?this.play():this.stop():n.namespace&&"position"===n.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(n,t,i){n.namespace&&this.play(t,i)},this),"stop.owl.autoplay":n.proxy(function(n){n.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)};this._core.$element.on(this._handlers);this._core.options=n.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1};r.prototype.play=function(){this._paused=!1;this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())};r.prototype._getNextTimeout=function(r,u){return this._timeout&&t.clearTimeout(this._timeout),t.setTimeout(n.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(u||this._core.settings.autoplaySpeed)},this),r||this._core.settings.autoplayTimeout)};r.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()};r.prototype.stop=function(){this._core.is("rotating")&&(t.clearTimeout(this._timeout),this._core.leave("rotating"))};r.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)};r.prototype.destroy=function(){var n,t;for(n in this.stop(),this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(n){"use strict";var t=function(i){this._core=i;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={"prepared.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+n(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"<\/div>")},this),"added.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.dotsData&&this._templates.splice(n.position,0,this._templates.pop())},this),"remove.owl.carousel":n.proxy(function(n){n.namespace&&this._core.settings.dotsData&&this._templates.splice(n.position,1)},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&"position"==n.property.name&&this.draw()},this),"initialized.owl.carousel":n.proxy(function(n){n.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":n.proxy(function(n){n.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1};t.prototype.initialize=function(){var i,r,t=this._core.settings;for(i in this._controls.$relative=(t.navContainer?n(t.navContainer):n("<div>").appendTo(this.$element)).addClass("disabled"),r=t.navContainer?"":" disabled",this._controls.$previous=n("<"+t.navElement+">").addClass(t.navClass[0]+r).html(t.navText[0]).insertAfter(this._controls.$relative).on("click",n.proxy(function(){this.prev(t.navSpeed)},this)),this._controls.$next=n("<"+t.navElement+">").addClass(t.navClass[1]+r).html(t.navText[1]).insertAfter(this._controls.$relative).on("click",n.proxy(function(){this.next(t.navSpeed)},this)),t.dotsData||(this._templates=[n("<div>").addClass(t.dotClass).append(n("<span>")).prop("outerHTML")]),this._controls.$absolute=(t.dotsContainer?n(t.dotsContainer):n("<div>").addClass(t.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",n.proxy(function(i){var r=n(i.target).parent().is(this._controls.$absolute)?n(i.target).index():n(i.target).parent().index();i.preventDefault();this.to(r,t.dotsSpeed)},this)),this._overrides)this._core[i]=n.proxy(this[i],this)};t.prototype.destroy=function(){var n,r,t,i;for(n in this._handlers)this.$element.off(n,this._handlers[n]);for(r in this._controls)this._controls[r].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)};t.prototype.update=function(){var t,i,r=this._core.clones().length/2,e=r+this._core.items().length,u=this._core.maximum(!0),n=this._core.settings,f=n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=r,i=0,0;t<e;t++){if(i>=f||0===i){if(this._pages.push({start:Math.min(u,t-r),end:t-r+f-1}),Math.min(u,t-r)===u)break;i=0}i+=this._core.mergers(this._core.relative(t))}};t.prototype.draw=function(){var i,t=this._core.settings,r=this._core.items().length<=t.items,u=this._core.relative(this._core.current()),f=t.loop||t.rewind;this._controls.$relative.toggleClass("disabled",!t.nav||r);t.nav&&(this._controls.$previous.toggleClass("disabled",!f&&u<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&u>=this._core.maximum(!0)));this._controls.$absolute.toggleClass("disabled",!t.dots||r);t.dots&&(i=this._pages.length-this._controls.$absolute.children().length,t.dotsData&&0!==i?this._controls.$absolute.html(this._templates.join("")):i>0?this._controls.$absolute.append(new Array(i+1).join(this._templates[0])):i<0&&this._controls.$absolute.children().slice(i).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(n.inArray(this.current(),this._pages)).addClass("active"))};t.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}};t.prototype.current=function(){var t=this._core.relative(this._core.current());return n.grep(this._pages,n.proxy(function(n){return n.start<=t&&n.end>=t},this)).pop()};t.prototype.getPosition=function(t){var i,r,u=this._core.settings;return"page"==u.slideBy?(i=n.inArray(this.current(),this._pages),r=this._pages.length,t?++i:--i,i=this._pages[(i%r+r)%r].start):(i=this._core.relative(this._core.current()),r=this._core.items().length,t?i+=u.slideBy:i-=u.slideBy),i};t.prototype.next=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)};t.prototype.prev=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)};t.prototype.to=function(t,i,r){var u;!r&&this._pages.length?(u=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(t%u+u)%u].start,i)):n.proxy(this._overrides.to,this._core)(t,i)};n.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,window,document),function(n,t){"use strict";var i=function(r){this._core=r;this._hashes={};this.$element=this._core.$element;this._handlers={"initialized.owl.carousel":n.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&n(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){if(t.namespace){var i=n(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":n.proxy(function(i){if(i.namespace&&"position"===i.property.name){var u=this._core.items(this._core.relative(this._core.current())),r=n.map(this._hashes,function(n,t){return n===u?t:null}).join();if(!r||t.location.hash.slice(1)===r)return;t.location.hash=r}},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this.$element.on(this._handlers);n(t).on("hashchange.owl.navigation",n.proxy(function(){var i=t.location.hash.substring(1),r=this._core.$stage.children(),n=this._hashes[i]&&r.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};i.Defaults={URLhashListener:!1};i.prototype.destroy=function(){var i,r;for(i in n(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))"function"!=typeof this[r]&&(this[r]=null)};n.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(n,t,i,r){function u(t,i){var u=!1,f=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+" "+s.join(f+" ")+f).split(" "),function(n,t){if(o[t]!==r)return u=!i||t,!1}),u}function f(n){return u(n,!0)}var o=n("<support>").get(0).style,s="Webkit Moz O ms".split(" "),e={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},h=function(){return!!u("transform")},c=function(){return!!u("perspective")},l=function(){return!!u("animation")};(function(){return!!u("transition")})()&&(n.support.transition=new String(f("transition")),n.support.transition.end=e.transition.end[n.support.transition]);l()&&(n.support.animation=new String(f("animation")),n.support.animation.end=e.animation.end[n.support.animation]);h()&&(n.support.transform=new String(f("transform")),n.support.transform3d=c())}(window.Zepto||window.jQuery,window,document),function(){var n=jQuery.event.special,t="D"+ +new Date,i="D"+(+new Date+1);n.scrollstart={setup:function(){var i,r=function(t){var r=this,u=arguments;i?clearTimeout(i):(t.type="scrollstart",jQuery.event.dispatch.apply(r,u));i=setTimeout(function(){i=null},n.scrollstop.latency)};jQuery(this).bind("scroll",r).data(t,r)},teardown:function(){jQuery(this).unbind("scroll",jQuery(this).data(t))}};n.scrollstop={latency:300,setup:function(){var t,r=function(i){var r=this,u=arguments;t&&clearTimeout(t);t=setTimeout(function(){t=null;i.type="scrollstop";jQuery.event.dispatch.apply(r,u)},n.scrollstop.latency)};jQuery(this).bind("scroll",r).data(i,r)},teardown:function(){jQuery(this).unbind("scroll",jQuery(this).data(i))}}}();!function(n,t){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(i){return n.Bloodhound=t(i)}):"object"==typeof exports?module.exports=t(require("jquery")):n.Bloodhound=t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return void 0===n},isElement:function(n){return!(!n||1!==n.nodeType)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){n.each(t,function(n,t){return i(t,n)})},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){return n.isFunction(t)?t:function(){return String(t)}},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),u="0.11.1",f=function(){"use strict";function n(n){return(n=t.toStr(n))?n.split(/\s+/):[]}function i(n){return(n=t.toStr(n))?n.split(/\W+/):[]}function r(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var i,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix));this.ls=r||i;!this.ls&&this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}var i;try{(i=window.localStorage).setItem("~~~","!");i.removeItem("~~~")}catch(n){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(n){"QuotaExceededError"===n.name&&(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=function(n){for(var r,u=[],f=i.length,t=0;t<f;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return!!(t.isNumber(i)&&u()>i)}}),r}(),r=function(){"use strict";function r(n){n=n||{};this.cancelled=!1;this.lastReq=null;this._send=n.transport;this._get=n.limiter?n.limiter(this._get):this._get;this._cache=!1===n.cache?new i(0):o}var u=0,f={},e=6,o=new i(10);return r.setMaxPendingRequests=function(n){e=n},r.resetCache=function(){o.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return(t=t||{}).url+t.type+n.param(t.data||{})},_get:function(n,t){function s(n){t(null,n);r._cache.set(i,n)}function h(){t(!0)}var i,o,r=this;i=this._fingerprint(n);this.cancelled||i!==this.lastReq||((o=f[i])?o.done(s).fail(h):u<e?(u++,f[i]=this._send(n).done(s).fail(h).always(function(){u--;delete f[i];r.onDeckRequestArgs&&(r._get.apply(r,r.onDeckRequestArgs),r.onDeckRequestArgs=null)})):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop;i=t.isString(i)?{url:i}:i||{};u=this._fingerprint(i);this.cancelled=!1;this.lastReq=u;(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function r(i){(i=i||{}).datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.identify=i.identify||t.stringify;this.datumTokenizer=i.datumTokenizer;this.queryTokenizer=i.queryTokenizer;this.reset()}function u(n){return n=t.filter(n,function(n){return!!n}),n=t.map(n,function(n){return n.toLowerCase()})}function f(){var n={i:[]};return n[i]={},n}var i="c";return t.mixin(r.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var r=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var e,o;r.datums[e=r.identify(n)]=n;o=u(r.datumTokenizer(n));t.each(o,function(n){for(var u,t=r.trie,o=n.split("");u=o.shift();)(t=t[i][u]||(t[i][u]=f())).i.push(e)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var f,r,e=this;return f=u(this.queryTokenizer(n)),t.each(f,function(n){var t,u,o,f;if(r&&0===r.length)return!1;for(t=e.trie,u=n.split("");t&&(o=u.shift());)t=t[i][o];if(!t||0!==u.length)return r=[],!1;f=t.i.slice(0);r=r?function(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:(n[i]>t[r]||(u.push(n[i]),i++),r++);return u}(r,f):f}),r?t.map(function(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}(r),function(n){return e.datums[n]}):[]},all:function(){var n=[],t;for(t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={};this.trie=f()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),r}(),s=function(){"use strict";function i(n){this.url=n.url;this.ttl=n.ttl;this.cache=n.cache;this.prepare=n.prepare;this.transform=n.transform;this.transport=n.transport;this.thumbprint=n.thumbprint;this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var i,t={};return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){var t,i=this;n&&(t=this.prepare(this._settings()),this.transport(t).fail(function(){n(!0)}).done(function(t){n(null,i.transform(t))}))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url;this.prepare=n.prepare;this.transform=n.transform;this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){var i,r=this;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,function(n,i){t(n?[]:r.transform(i))})},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function i(i){return function(r){var u=n.Deferred();return i(r,function(n){t.defer(function(){u.resolve(n)})},function(n){t.defer(function(){u.reject(n)})}),u}}return function(r){var e,f;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},!(r=t.mixin(e,r||{})).datumTokenizer&&n.error("datumTokenizer is required"),!r.queryTokenizer&&n.error("queryTokenizer is required"),f=r.sorter,r.sorter=f?function(n){return n.sort(f)}:t.identity,r.local=t.isFunction(r.local)?r.local():r.local,r.prefetch=function(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),!r.url&&n.error("prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}(r.prefetch),r.remote=function(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),!r.url&&n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=function(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return(t=n.prepare,i=n.replace,r=n.wildcard,t)?t:i?u:n.wildcard?f:e}(r),r.limiter=function(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}(r.remote),r}}();return function(){"use strict";function i(n){n=c(n);this.sorter=n.sorter;this.identify=n.identify;this.sufficient=n.sufficient;this.local=n.local;this.remote=n.remote?new h(n.remote):null;this.prefetch=n.prefetch?new s(n.prefetch):null;this.index=new o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer});!1!==n.initialize&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){var n=this;return this.remote?function(t,i,r){return n.search(t,i,r)}:function(t,i){return n.search(t,i)}},_loadPrefetch:function(){var t,r,i=this;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(function(n,r){if(n)return t.reject();i.add(r);i.prefetch.store(i.index.serialize());t.resolve()}):t.resolve(),t.promise()},_initialize:function(){var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(function(){n.add(n.local)}),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){var u,f=this;return u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,function(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)});r&&r(i)}):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(n){var t=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return void 0===n},isElement:function(n){return!(!n||1!==n.nodeType)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){n.each(t,function(n,t){return i(t,n)})},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){return n.isFunction(t)?t:function(){return String(t)}},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function i(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function r(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function u(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return function(f){var e,o;return o=t.mixin({},n,f),{css:(e={css:u(),classes:o,html:i(o),selectors:r(o)}).css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}}(),o=function(){"use strict";function r(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var i;return i={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(r.prototype,{_trigger:function(t,i){var r;return r=n.Event("typeahead:"+t),(i=i||[]).unshift(r),this.$el.trigger.apply(this.$el,i),r},before:function(n){var t;return t=[].slice.call(arguments,1),this._trigger("before"+n,t).isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=i[n])&&this._trigger(t,[].slice.call(arguments,1))}}),r}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?function(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function i(n,t,i){return function(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=!1===n[u].apply(t,i);return!r}}var n=/\s+/,r=function(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}();return{onSync:function(n,i,r){return t.call(this,"sync",n,i,r)},onAsync:function(n,i,r){return t.call(this,"async",n,i,r)},off:function(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this},trigger:function(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}}}(),s=function(n){"use strict";var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(r){var u;(r=t.mixin({},i,r)).node&&r.pattern&&(r.pattern=t.isArray(r.pattern)?r.pattern:[r.pattern],u=function(n,i,r){for(var u,f=[],e=0,o=n.length;e<o;e++)f.push(t.escapeRegExChars(n[e]));return u=r?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",i?new RegExp(u):new RegExp(u,"i")}(r.pattern,r.caseSensitive,r.wordsOnly),function n(t,i){for(var u,r=0;r<t.childNodes.length;r++)3===(u=t.childNodes[r]).nodeType?r+=i(u)?1:0:n(u,i)}(r.node,function(t){var i,e,f;return(i=u.exec(t.data))&&(f=n.createElement(r.tagName),r.className&&(f.className=r.className),(e=t.splitText(i.index)).splitText(i[0].length),f.appendChild(e.cloneNode(!0)),t.parentNode.replaceChild(f,e)),!!i}))}}(window.document),u=function(){"use strict";function i(i,r){var u;(i=i||{}).input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=(u=this.$input,n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u));this._checkLanguageDirection();0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){return"tab"===n?!f(t):!0},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var r,u,f,e;f=n;e=this.query;u=!!(r=i.normalizeQuery(f)===i.normalizeQuery(e))&&this.query.length!==n.length;this.query=n;t||r?!t&&u&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n,i,r,f,e=this;return n=t.bind(this._onBlur,this),i=t.bind(this._onFocus,this),r=t.bind(this._onKeydown,this),f=t.bind(this._onInput,this),this.$input.on("blur.tt",n).on("focus.tt",i).on("keydown.tt",r),!t.isMsie()||t.isMsie()>9?this.$input.on("input.tt",f):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){u[n.which||n.keyCode]||t.defer(t.bind(e._onInput,e,n))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i;i=(n=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(n);""!==n&&i&&!this.hasOverflow()||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i)?i===n:!document.selection||((r=document.selection.createRange()).moveStart("character",-n),n===r.text.length)},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){var u;(i=i||{}).templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&(u=i.name,!/^[_a-zA-Z0-9-]+$/.test(u))&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=i.name||f();this.limit=i.limit||5;this.displayFn=function(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}(i.display||i.displayKey);this.templates=function(i,r){function u(t){return n("<div>").text(r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this._resetLastSuggestion();this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){(t=t||[]).length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",this.name,t,!1)},_append:function(n,t){(t=t||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",this.name,t,!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;r=(i=this._getSuggestionsFragment(n,t)).children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var e,f=this;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function e(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}var i=this,f=!1,u=!1,r=0;this.cancel();this.cancel=function(){f=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t)};this.source(t,e,function(u){u=u||[];!f&&r<i.limit&&(i.cancel=n.noop,r+=u.length,i._append(t,u.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",t))});!u&&e([])},cancel:n.noop,clear:function(){this._empty();this.$el.empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){var u=this;(i=i||{}).node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,function(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)})}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return t.every(this.datasets,function(n){return n.isEmpty()})},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;i=(t=n.position().top)+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var i,n=this;return i=t.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,i),t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var t,r,i;return r=this.getActiveSelectable(),t=this._getSelectables(),-1===(i=(i=((i=(r?t.index(r):-1)+n)+1)%(t.length+1)-1)<-1?t.length-1:i)?null:t.eq(i)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,function(t){t.update(n)})),i},empty:function(){t.each(this.datasets,function(n){n.clear()});this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,function(n){n.destroy()})}}),i}(),h=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css("ltr"===t?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;(r=r||{}).input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){this._updateHint();this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return(n=t.isString(n)?n:this.input.getQuery()||"").length>=this.minLength},_updateHint:function(){var r,i,n,f,e,o;r=this.menu.getTopSelectable();i=this.menu.getSelectableData(r);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(f=u.normalizeQuery(n),e=t.escapeRegExChars(f),(o=new RegExp("^(?:"+e+")(.+$)","i").exec(i.val))&&this.input.setHint(n+o[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return!(!t||this.eventBus.before("select",t.obj))&&(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0)},autocomplete:function(n){var i,t;return i=this.input.getQuery(),!(!((t=this.menu.getSelectableData(n))&&i!==t.val)||this.eventBus.before("autocomplete",t.obj))&&(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0)},moveCursor:function(n){var u,i,t,r;return u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),r=(t=this.menu.getSelectableData(i))?t.obj:null,!(this._minLengthMet()&&this.menu.update(u))&&!this.eventBus.before("cursorchange",r)&&(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0)},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();!function(){"use strict";function r(t,i){t.each(function(){var t,r=n(this);(t=r.data(f.typeahead))&&i(t,r)})}function a(i){var r;return(r=t.isJQuery(i)||t.isElement(i)?n(i).first():[]).length?r:null}var l,f,s;l=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){var l;return s=t.isArray(s)?s:[].slice.call(arguments,1),l=e((r=r||{}).classNames),this.each(function(){var e,b,v,y,p,w,k,d,g,nt,tt;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);b=n(l.html.wrapper);v=a(r.hint);y=a(r.menu);p=!1!==r.hint&&!v;w=!1!==r.menu&&!y;p&&(v=function(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css((i=n,{backgroundAttachment:i.css("background-attachment"),backgroundClip:i.css("background-clip"),backgroundColor:i.css("background-color"),backgroundImage:i.css("background-image"),backgroundOrigin:i.css("background-origin"),backgroundPosition:i.css("background-position"),backgroundRepeat:i.css("background-repeat"),backgroundSize:i.css("background-size")})).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1});var i}(e,l));w&&(y=n(l.html.menu).css(l.css.menu));v&&v.val("");e=function(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(n){}return n}(e,l);(p||w)&&(b.css(l.css.wrapper),e.css(p?l.css.input:l.css.inputWithNoHint),e.wrap(b).parent().prepend(p?v:null).append(w?y:null));tt=w?h:i;k=new o({el:e});d=new u({hint:v,input:e},l);g=new tt({node:y,datasets:s},l);nt=new c({input:d,menu:g,eventBus:k,minLength:r.minLength},l);e.data(f.www,l);e.data(f.typeahead,nt)})},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var t;return arguments.length?(r(this,function(t){t.setVal(n)}),this):(r(this.first(),function(n){t=n.getVal()}),t)},destroy:function(){return r(this,function(n,i){!function(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}(i);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=l,this}}()});!function(n,t,i){n.site=n.fn.site=function(r){var u,e,c=(new Date).getTime(),s=[],v=arguments[0],w="string"==typeof v,b=[].slice.call(arguments,1),f=n.isPlainObject(r)?n.extend(!0,{},n.site.settings,r):n.extend({},n.site.settings),l=f.namespace,y=f.error,a="module-"+l,k=n(i),h=k,p=this,o=h.data(a);return u={initialize:function(){u.instantiate()},instantiate:function(){u.verbose("Storing instance of site",u);o=u;h.data(a,u)},normalize:function(){u.fix.console();u.fix.requestAnimationFrame()},fix:{console:function(){u.debug("Normalizing window.console");void 0!==console&&void 0!==console.log||(u.verbose("Console not available, normalizing events"),u.disable.console());void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(u.verbose("Console group not available, normalizing events"),t.console.group=function(){},t.console.groupEnd=function(){},t.console.groupCollapsed=function(){});void 0===console.markTimeline&&(u.verbose("Mark timeline not available, normalizing events"),t.console.markTimeline=function(){})},consoleClear:function(){u.debug("Disabling programmatic console clearing");t.console.clear=function(){}},requestAnimationFrame:function(){u.debug("Normalizing requestAnimationFrame");void 0===t.requestAnimationFrame&&(u.debug("RequestAnimationFrame not available, normalizing event"),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)})}},moduleExists:function(t){return void 0!==n.fn[t]&&void 0!==n.fn[t].settings},enabled:{modules:function(t){var i=[];return t=t||f.modules,n.each(t,function(n,t){u.moduleExists(t)&&i.push(t)}),i}},disabled:{modules:function(t){var i=[];return t=t||f.modules,n.each(t,function(n,t){u.moduleExists(t)||i.push(t)}),i}},change:{setting:function(t,i,r,e){r="string"==typeof r?"all"===r?f.modules:[r]:r||f.modules;e=void 0===e||e;n.each(r,function(r,f){var o,s=!u.moduleExists(f)||n.fn[f].settings.namespace||!1;u.moduleExists(f)&&(u.verbose("Changing default setting",t,i,f),n.fn[f].settings[t]=i,e&&s&&(o=n(":data(module-"+s+")"),o.length>0&&(u.verbose("Modifying existing settings",o),o[f]("setting",t,i))))})},settings:function(t,i,r){i="string"==typeof i?[i]:i||f.modules;r=void 0===r||r;n.each(i,function(i,f){var e;u.moduleExists(f)&&(u.verbose("Changing default setting",t,f),n.extend(!0,n.fn[f].settings,t),r&&l&&(e=n(":data(module-"+l+")"),e.length>0&&(u.verbose("Modifying existing settings",e),e[f]("setting",t))))})}},enable:{console:function(){u.console(!0)},debug:function(n,t){n=n||f.modules;u.debug("Enabling debug for modules",n);u.change.setting("debug",!0,n,t)},verbose:function(n,t){n=n||f.modules;u.debug("Enabling verbose debug for modules",n);u.change.setting("verbose",!0,n,t)}},disable:{console:function(){u.console(!1)},debug:function(n,t){n=n||f.modules;u.debug("Disabling debug for modules",n);u.change.setting("debug",!1,n,t)},verbose:function(n,t){n=n||f.modules;u.debug("Disabling verbose debug for modules",n);u.change.setting("verbose",!1,n,t)}},console:function(n){if(n){if(void 0===o.cache.console)return void u.error(y.console);u.debug("Restoring console function");t.console=o.cache.console}else u.debug("Disabling console function"),o.cache.console=t.console,t.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){u.verbose("Destroying previous site for",h);h.removeData(a)},cache:{},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,f,t);else{if(void 0===i)return f[t];f[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,u,t);else{if(void 0===i)return u[t];u[t]=i}},debug:function(){f.debug&&(f.performance?u.performance.log(arguments):(u.debug=Function.prototype.bind.call(console.info,console,f.name+":"),u.debug.apply(console,arguments)))},verbose:function(){f.verbose&&f.debug&&(f.performance?u.performance.log(arguments):(u.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),u.verbose.apply(console,arguments)))},error:function(){u.error=Function.prototype.bind.call(console.error,console,f.name+":");u.error.apply(console,arguments)},performance:{log:function(n){var t,i,r;f.performance&&(t=(new Date).getTime(),r=c||t,i=t-r,c=t,s.push({Element:p,Name:n[0],Arguments:[].slice.call(n,1)||"","Execution Time":i}));clearTimeout(u.performance.timer);u.performance.timer=setTimeout(u.performance.display,500)},display:function(){var t=f.name+":",i=0;c=!1;clearTimeout(u.performance.timer);n.each(s,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):n.each(s,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());s=[]}},invoke:function(t,i,r){var c,s,h,f=o;return i=i||b,r=p||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),c=t.length-1,n.each(t,function(i,r){var e=i!=c?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[e])&&i!=c)f=f[e];else{if(void 0!==f[e])return s=f[e],!1;if(!n.isPlainObject(f[r])||i==c)return void 0!==f[r]?(s=f[r],!1):(u.error(y.method,t),!1);f=f[r]}})),n.isFunction(s)?h=s.apply(r,i):void 0!==s&&(h=s),n.isArray(e)?e.push(h):void 0!==e?e=[e,h]:void 0!==h&&(e=h),s}},w?(void 0===o&&u.initialize(),u.invoke(v)):(void 0!==o&&u.destroy(),u.initialize()),void 0!==e?e:this};n.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}};n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.form=function(t){var r,f=n(this),o=f.selector||"",e=(new Date).getTime(),u=[],s=arguments[0],h=arguments[1],c="string"==typeof s,l=[].slice.call(arguments,1);return f.each(function(){var w,g,st,lt,ht,at,vt,v,d,nt,y,k,ct,et,ot,ut,b,tt,a,p=n(this),it=this,rt=[],ft=!1;a={initialize:function(){a.get.settings();c?(void 0===tt&&a.instantiate(),a.invoke(s)):(void 0!==tt&&tt.invoke("destroy"),a.verbose("Initializing form validation",p,v),a.bindEvents(),a.set.defaults(),a.instantiate())},instantiate:function(){a.verbose("Storing instance of module",a);tt=a;p.data(ut,a)},destroy:function(){a.verbose("Destroying previous module",tt);a.removeEvents();p.removeData(ut)},refresh:function(){a.verbose("Refreshing selector cache");w=p.find(y.field);g=p.find(y.group);st=p.find(y.message);lt=p.find(y.prompt);ht=p.find(y.submit);at=p.find(y.clear);vt=p.find(y.reset)},submit:function(){a.verbose("Submitting form",p);p.submit()},attachEvents:function(t,i){i=i||"submit";n(t).on("click"+b,function(n){a[i]();n.preventDefault()})},bindEvents:function(){a.verbose("Attaching form events");p.on("submit"+b,a.validate.form).on("blur"+b,y.field,a.event.field.blur).on("click"+b,y.submit,a.submit).on("click"+b,y.reset,a.reset).on("click"+b,y.clear,a.clear);v.keyboardShortcuts&&p.on("keydown"+b,y.field,a.event.field.keydown);w.each(function(){var t=n(this),i=t.prop("type"),r=a.get.changeEvent(i,t);n(this).on(r+b,a.event.field.change)})},clear:function(){w.each(function(){var t=n(this),i=t.parent(),r=t.closest(g),f=r.find(y.prompt),u=t.data(nt.defaultValue)||"",e=i.is(y.uiCheckbox),o=i.is(y.uiDropdown);r.hasClass(k.error)&&(a.verbose("Resetting error on field",r),r.removeClass(k.error),f.remove());o?(a.verbose("Resetting dropdown value",i,u),i.dropdown("clear")):e?t.prop("checked",!1):(a.verbose("Resetting field value",t,u),t.val(""))})},reset:function(){w.each(function(){var t=n(this),r=t.parent(),u=t.closest(g),f=u.find(y.prompt),i=t.data(nt.defaultValue),e=r.is(y.uiCheckbox),o=r.is(y.uiDropdown),s=u.hasClass(k.error);void 0!==i&&(s&&(a.verbose("Resetting error on field",u),u.removeClass(k.error),f.remove()),o?(a.verbose("Resetting dropdown value",r,i),r.dropdown("restore defaults")):e?(a.verbose("Resetting checkbox value",r,i),t.prop("checked",i)):(a.verbose("Resetting field value",t,i),t.val(i)))})},determine:{isValid:function(){var t=!0;return n.each(d,function(n,i){a.validate.field(i,n,!0)||(t=!1)}),t}},is:{bracketedRule:function(n){return n.type&&n.type.match(v.regExp.bracket)},empty:function(n){return!n||0===n.length||(n.is('input[type="checkbox"]')?!n.is(":checked"):a.is.blank(n))},blank:function(t){return""===n.trim(t.val())},valid:function(t){var i=!0;return t?(a.verbose("Checking if field is valid",t),a.validate.field(d[t],t,!1)):(a.verbose("Checking if form is valid"),n.each(d,function(n){a.is.valid(n)||(i=!1)}),i)}},removeEvents:function(){p.off(b);w.off(b);ht.off(b);w.off(b)},event:{field:{keydown:function(t){var i=n(this),r=t.which,f=i.is(y.input),e=i.is(y.checkbox),o=i.closest(y.uiDropdown).length>0,u={enter:13,escape:27};r==u.escape&&(a.verbose("Escape key pressed blurring field"),i.blur());t.ctrlKey||r!=u.enter||!f||o||e||(ft||(i.one("keyup"+b,a.event.field.keyup),a.submit(),a.debug("Enter pressed on input submitting form")),ft=!0)},keyup:function(){ft=!1},blur:function(){var i=n(this),r=i.closest(g),t=a.get.validation(i);r.hasClass(k.error)?(a.debug("Revalidating field",i,t),t&&a.validate.field(t)):"blur"!=v.on&&"change"!=v.on||t&&a.validate.field(t)},change:function(){var t=n(this),r=t.closest(g),i=a.get.validation(t);i&&("change"==v.on||r.hasClass(k.error)&&v.revalidate)&&(clearTimeout(a.timer),a.timer=setTimeout(function(){a.debug("Revalidating field",t,a.get.validation(t));a.validate.field(i)},v.delay))}}},get:{ancillaryValue:function(n){return!(!n.type||!n.value&&!a.is.bracketedRule(n))&&(void 0!==n.value?n.value:n.type.match(v.regExp.bracket)[1]+"")},ruleName:function(n){return a.is.bracketedRule(n)?n.type.replace(n.type.match(v.regExp.bracket)[0],""):n.type},changeEvent:function(n,t){return"checkbox"==n||"radio"==n||"hidden"==n||t.is("select")?"change":a.get.inputEvent()},inputEvent:function(){return void 0!==i.createElement("input").oninput?"input":void 0!==i.createElement("input").onpropertychange?"propertychange":"keyup"},prompt:function(n,t){var u,r,f,e=a.get.ruleName(n),h=a.get.ancillaryValue(n),i=n.prompt||v.prompt[e]||v.text.unspecifiedRule,o=i.search("{value}")!==-1,s=i.search("{name}")!==-1;return(s||o)&&(r=a.get.field(t.identifier)),o&&(i=i.replace("{value}",r.val())),s&&(u=r.closest(y.group).find("label").eq(0),f=1==u.length?u.text():r.prop("placeholder")||v.text.unspecifiedField,i=i.replace("{name}",f)),i=i.replace("{identifier}",t.identifier),i=i.replace("{ruleValue}",h),n.prompt||a.verbose("Using default validation prompt for type",i,e),i},settings:function(){if(n.isPlainObject(t)){var i,r=Object.keys(t),u=r.length>0&&void 0!==t[r[0]].identifier&&void 0!==t[r[0]].rules;u?(v=n.extend(!0,{},n.fn.form.settings,h),d=n.extend({},n.fn.form.settings.defaults,t),a.error(v.error.oldSyntax,it),a.verbose("Extending settings from legacy parameters",d,v)):(t.fields&&(i=Object.keys(t.fields),("string"==typeof t.fields[i[0]]||n.isArray(t.fields[i[0]]))&&n.each(t.fields,function(i,r){"string"==typeof r&&(r=[r]);t.fields[i]={rules:[]};n.each(r,function(n,r){t.fields[i].rules.push({type:r})})})),v=n.extend(!0,{},n.fn.form.settings,t),d=n.extend({},n.fn.form.settings.defaults,v.fields),a.verbose("Extending settings",d,v))}else v=n.fn.form.settings,d=n.fn.form.settings.defaults,a.verbose("Using default form validation",d,v);ot=v.namespace;nt=v.metadata;y=v.selector;k=v.className;ct=v.regExp;et=v.error;ut="module-"+ot;b="."+ot;tt=p.data(ut);a.refresh()},field:function(t){return a.verbose("Finding field with identifier",t),t=a.escape.string(t),w.filter("#"+t).length>0?w.filter("#"+t):w.filter('[name="'+t+'"]').length>0?w.filter('[name="'+t+'"]'):w.filter('[name="'+t+'[]"]').length>0?w.filter('[name="'+t+'[]"]'):w.filter("[data-"+nt.validate+'="'+t+'"]').length>0?w.filter("[data-"+nt.validate+'="'+t+'"]'):n("<input/>")},fields:function(t){var i=n();return n.each(t,function(n,t){i=i.add(a.get.field(t))}),i},validation:function(t){var r,i;return!!d&&(n.each(d,function(n,u){i=u.identifier||n;a.get.field(i)[0]==t[0]&&(u.identifier=i,r=u)}),r||!1)},value:function(n){var t,i=[];return i.push(n),t=a.get.values.call(it,i),t[n]},values:function(t){var r=n.isArray(t)?a.get.fields(t):w,i={};return r.each(function(t,r){var f=n(r),u=(f.prop("type"),f.prop("name")),e=f.val(),o=f.is(y.checkbox),h=f.is(y.radio),c=u.indexOf("[]")!==-1,s=!!o&&f.is(":checked");u&&(c?(u=u.replace("[]",""),i[u]||(i[u]=[]),o?s?i[u].push(e||!0):i[u].push(!1):i[u].push(e)):h?s&&(i[u]=e):i[u]=o?!!s&&(e||!0):e)}),i}},has:{field:function(n){return a.verbose("Checking for existence of a field with identifier",n),n=a.escape.string(n),"string"!=typeof n&&a.error(et.identifier,n),w.filter("#"+n).length>0||w.filter('[name="'+n+'"]').length>0||w.filter("[data-"+nt.validate+'="'+n+'"]').length>0}},escape:{string:function(n){return n=String(n),n.replace(ct.escape,"\\$&")}},add:{prompt:function(t,i){var e=a.get.field(t),u=e.closest(g),r=u.children(y.prompt),f=0!==r.length;i="string"==typeof i?[i]:i;a.verbose("Adding field error state",t);u.addClass(k.error);v.inline&&(f||(r=v.templates.prompt(i),r.appendTo(u)),r.html(i[0]),f?a.verbose("Inline errors are disabled, no inline error added",t):v.transition&&void 0!==n.fn.transition&&p.transition("is supported")?(a.verbose("Displaying error with css transition",v.transition),r.transition(v.transition+" in",v.duration)):(a.verbose("Displaying error with fallback javascript animation"),r.fadeIn(v.duration)))},errors:function(n){a.debug("Adding form error messages",n);a.set.error();st.html(v.templates.error(n))}},remove:{prompt:function(t){var u=a.get.field(t),r=u.closest(g),i=r.children(y.prompt);r.removeClass(k.error);v.inline&&i.is(":visible")&&(a.verbose("Removing prompt for field",t),v.transition&&void 0!==n.fn.transition&&p.transition("is supported")?i.transition(v.transition+" out",v.duration,function(){i.remove()}):i.fadeOut(v.duration,function(){i.remove()}))}},set:{success:function(){p.removeClass(k.error).addClass(k.success)},defaults:function(){w.each(function(){var t=n(this),i=t.filter(y.checkbox).length>0,r=i?t.is(":checked"):t.val();t.data(nt.defaultValue,r)})},error:function(){p.removeClass(k.success).addClass(k.error)},value:function(n,t){var i={};return i[n]=t,a.set.values.call(it,i)},values:function(t){n.isEmptyObject(t)||n.each(t,function(t,i){var f,u=a.get.field(t),r=u.parent(),o=n.isArray(i),e=r.is(y.uiCheckbox),s=r.is(y.uiDropdown),h=u.is(y.radio)&&e,c=u.length>0;c&&(o&&e?(a.verbose("Selecting multiple",i,u),r.checkbox("uncheck"),n.each(i,function(n,t){f=u.filter('[value="'+t+'"]');r=f.parent();f.length>0&&r.checkbox("check")})):h?(a.verbose("Selecting radio value",i,u),u.filter('[value="'+i+'"]').parent(y.uiCheckbox).checkbox("check")):e?(a.verbose("Setting checkbox value",i,r),i===!0?r.checkbox("check"):r.checkbox("uncheck")):s?(a.verbose("Setting dropdown value",i,r),r.dropdown("set selected",i)):(a.verbose("Setting field value",i,u),u.val(i)))})}},validate:{form:function(n,t){var i=a.get.values();if(ft)return!1;if(rt=[],a.determine.isValid()){if(a.debug("Form has no validation errors, submitting"),a.set.success(),t!==!0)return v.onSuccess.call(it,n,i)}else if(a.debug("Form has errors"),a.set.error(),v.inline||a.add.errors(rt),void 0!==p.data("moduleApi")&&n.stopImmediatePropagation(),t!==!0)return v.onFailure.call(it,rt,i)},field:function(t,i,r){r=void 0===r||r;"string"==typeof t&&(a.verbose("Validating field",t),i=t,t=d[t]);var u=t.identifier||i,o=a.get.field(u),s=!!t.depends&&a.get.field(t.depends),f=!0,e=[];return t.identifier||(a.debug("Using field name as identifier",u),t.identifier=u),o.prop("disabled")?(a.debug("Field is disabled. Skipping",u),f=!0):t.optional&&a.is.blank(o)?(a.debug("Field is optional and blank. Skipping",u),f=!0):t.depends&&a.is.empty(s)?(a.debug("Field depends on another value that is not present or empty. Skipping",s),f=!0):void 0!==t.rules&&n.each(t.rules,function(n,i){a.has.field(u)&&!a.validate.rule(t,i)&&(a.debug("Field is invalid",u,i.type),e.push(a.get.prompt(i,t)),f=!1)}),f?(r&&(a.remove.prompt(u,e),v.onValid.call(o)),!0):(r&&(rt=rt.concat(e),a.add.prompt(u,e),v.onInvalid.call(o,e)),!1)},rule:function(t,i){var u=a.get.field(t.identifier),r=(i.type,u.val()),o=a.get.ancillaryValue(i),f=a.get.ruleName(i),e=v.rules[f];return n.isFunction(e)?(r=void 0===r||""===r||null===r?"":n.trim(r+""),e.call(u,r,o)):void a.error(et.noRule,f)}},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:it,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;e=!1;clearTimeout(a.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=tt;return i=i||l,u=it||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};a.initialize()}),void 0!==r?r:this};n.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} cannot contain "{ruleValue}"',containExactly:'{name} cannot contain exactly "{ruleValue}"',doesntContain:'{name} must contain  "{ruleValue}"',doesntContainExactly:'{name} must contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(t){var i='<ul class="list">';return n.each(t,function(n,t){i+="<li>"+t+"<\/li>"}),i+="<\/ul>",n(i)},prompt:function(t){return n("<div/>").addClass("ui basic red pointing prompt label").html(t[0])}},rules:{empty:function(t){return!(void 0===t||""===t||n.isArray(t)&&0===t.length)},checked:function(){return n(this).filter(":checked").length>0},email:function(t){return n.fn.form.settings.regExp.email.test(t)},url:function(t){return n.fn.form.settings.regExp.url.test(t)},regExp:function(t,i){if(i instanceof RegExp)return t.match(i);var u,r=i.match(n.fn.form.settings.regExp.flags);return r&&(i=r.length>=2?r[1]:i,u=r.length>=3?r[2]:""),t.match(new RegExp(i,u))},integer:function(t,i){var u,f,r,e=n.fn.form.settings.regExp.integer;return i&&["",".."].indexOf(i)===-1&&(i.indexOf("..")==-1?e.test(i)&&(u=f=+i):(r=i.split("..",2),e.test(r[0])&&(u=r[0]-0),e.test(r[1])&&(f=r[1]-0))),e.test(t)&&(void 0===u||t>=u)&&(void 0===f||t<=f)},decimal:function(t){return n.fn.form.settings.regExp.decimal.test(t)},number:function(t){return n.fn.form.settings.regExp.number.test(t)},is:function(n,t){return t="string"==typeof t?t.toLowerCase():t,(n="string"==typeof n?n.toLowerCase():n)==t},isExactly:function(n,t){return n==t},not:function(n,t){return n="string"==typeof n?n.toLowerCase():n,t="string"==typeof t?t.toLowerCase():t,n!=t},notExactly:function(n,t){return n!=t},contains:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i,"i"))!==-1},containsExactly:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i))!==-1},doesntContain:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i,"i"))===-1},doesntContainExactly:function(t,i){return i=i.replace(n.fn.form.settings.regExp.escape,"\\$&"),t.search(new RegExp(i))===-1},minLength:function(n,t){return void 0!==n&&n.length>=t},length:function(n,t){return void 0!==n&&n.length>=t},exactLength:function(n,t){return void 0!==n&&n.length==t},maxLength:function(n,t){return void 0!==n&&n.length<=t},match:function(t,i){var r;return n(this),n('[data-validate="'+i+'"]').length>0?r=n('[data-validate="'+i+'"]').val():n("#"+i).length>0?r=n("#"+i).val():n('[name="'+i+'"]').length>0?r=n('[name="'+i+'"]').val():n('[name="'+i+'[]"]').length>0&&(r=n('[name="'+i+'[]"]')),void 0!==r&&t.toString()==r.toString()},different:function(t,i){var r;return n(this),n('[data-validate="'+i+'"]').length>0?r=n('[data-validate="'+i+'"]').val():n("#"+i).length>0?r=n("#"+i).val():n('[name="'+i+'"]').length>0?r=n('[name="'+i+'"]').val():n('[name="'+i+'[]"]').length>0&&(r=n('[name="'+i+'[]"]')),void 0!==r&&t.toString()!==r.toString()},creditCard:function(t,i){var r,u,f={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},e={},s=!1,h="string"==typeof i&&i.split(",");if("string"==typeof t&&0!==t.length){if(t=t.replace(/[\-]/g,""),h&&(n.each(h,function(i,r){(u=f[r])&&(e={length:n.inArray(t.length,u.length)!==-1,pattern:t.search(u.pattern)!==-1},e.length&&e.pattern&&(s=!0))}),!s))return!1;if(r={number:n.inArray(t.length,f.unionPay.length)!==-1,pattern:t.search(f.unionPay.pattern)!==-1},r.number&&r.pattern)return!0;for(var c=t.length,l=0,a=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],o=0;c--;)o+=a[l][parseInt(t.charAt(c),10)],l^=1;return o%10==0&&o>0}},minCount:function(n,t){return 0==t||(1==t?""!==n:n.split(",").length>=t)},exactCount:function(n,t){return 0==t?""===n:1==t?""!==n&&n.search(",")===-1:n.split(",").length==t},maxCount:function(n,t){return 0!=t&&(1==t?n.search(",")===-1:n.split(",").length<=t)}}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.accordion=function(i){var r,e=n(this),f=(new Date).getTime(),u=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,e.each(function(){var k,l,c=n.isPlainObject(i)?n.extend(!0,{},n.fn.accordion.settings,i):n.extend({},n.fn.accordion.settings),a=c.className,nt=c.namespace,v=c.selector,rt=c.error,tt="."+nt,d="module-"+nt,it=e.selector||"",y=n(this),w=y.find(v.title),p=y.find(v.content),g=this,b=y.data(d);l={initialize:function(){l.debug("Initializing",y);l.bind.events();c.observeChanges&&l.observeChanges();l.instantiate()},instantiate:function(){b=l;y.data(d,l)},destroy:function(){l.debug("Destroying previous instance",y);y.off(tt).removeData(d)},refresh:function(){w=y.find(v.title);p=y.find(v.content)},observeChanges:function(){"MutationObserver"in t&&(k=new MutationObserver(function(){l.debug("DOM tree modified, updating selector cache");l.refresh()}),k.observe(g,{childList:!0,subtree:!0}),l.debug("Setting up mutation observer",k))},bind:{events:function(){l.debug("Binding delegated events");y.on(c.on+tt,v.trigger,l.event.click)}},event:{click:function(){l.toggle.call(this)}},toggle:function(t){var i=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),r=i.next(p),u=r.hasClass(a.animating),f=r.hasClass(a.active),e=f&&!u,o=!f&&u;l.debug("Toggling visibility of content",i);e||o?c.collapsible?l.close.call(i):l.debug("Cannot close accordion content collapsing is disabled"):l.open.call(i)},open:function(t){var r=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),i=r.next(p),u=i.hasClass(a.animating);if(i.hasClass(a.active)||u)return void l.debug("Accordion already open, skipping",i);l.debug("Opening accordion content",r);c.onOpening.call(i);c.exclusive&&l.closeOthers.call(r);r.addClass(a.active);i.stop(!0,!0).addClass(a.animating);c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?i.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):i.children().stop(!0,!0).animate({opacity:1},c.duration,l.resetOpacity));i.slideDown(c.duration,c.easing,function(){i.removeClass(a.animating).addClass(a.active);l.reset.display.call(this);c.onOpen.call(this);c.onChange.call(this)})},close:function(t){var u=void 0!==t?"number"==typeof t?w.eq(t):n(t).closest(v.title):n(this).closest(v.title),i=u.next(p),f=i.hasClass(a.animating),r=i.hasClass(a.active),e=!r&&f,o=r&&f;(r||e)&&!o&&(l.debug("Closing accordion content",i),c.onClosing.call(i),u.removeClass(a.active),i.stop(!0,!0).addClass(a.animating),c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?i.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):i.children().stop(!0,!0).animate({opacity:0},c.duration,l.resetOpacity)),i.slideUp(c.duration,c.easing,function(){i.removeClass(a.animating).removeClass(a.active);l.reset.display.call(this);c.onClose.call(this);c.onChange.call(this)}))},closeOthers:function(t){var i,o,r,s=void 0!==t?w.eq(t):n(this).closest(v.title),u=s.parents(v.content).prev(v.title),f=s.closest(v.accordion),e=v.title+"."+a.active+":visible",h=v.content+"."+a.active+":visible";c.closeNested?(i=f.find(e).not(u),r=i.next(p)):(i=f.find(e).not(u),o=f.find(h).find(e).not(u),i=i.not(o),r=i.next(p));i.length>0&&(l.debug("Exclusive enabled, closing other content",i),i.removeClass(a.active),r.removeClass(a.animating).stop(!0,!0),c.animateChildren&&(void 0!==n.fn.transition&&y.transition("is supported")?r.children().transition({animation:"fade out",useFailSafe:!0,debug:c.debug,verbose:c.verbose,duration:c.duration}):r.children().stop(!0,!0).animate({opacity:0},c.duration,l.resetOpacity)),r.slideUp(c.duration,c.easing,function(){n(this).removeClass(a.active);l.reset.display.call(this)}))},reset:{display:function(){l.verbose("Removing inline display from element",this);n(this).css("display","");""===n(this).attr("style")&&n(this).attr("style","").removeAttr("style")},opacity:function(){l.verbose("Removing inline opacity from element",this);n(this).css("opacity","");""===n(this).attr("style")&&n(this).attr("style","").removeAttr("style")}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];n.isPlainObject(c[t])?n.extend(!0,c[t],i):c[t]=i}},internal:function(t,i){if(l.debug("Changing internal",t,i),void 0===i)return l[t];n.isPlainObject(t)?n.extend(!0,l,t):l[t]=i},debug:function(){!c.silent&&c.debug&&(c.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,c.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),l.verbose.apply(console,arguments)))},error:function(){c.silent||(l.error=Function.prototype.bind.call(console.error,console,c.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;c.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=c.name+":",i=0;f=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";it&&(t+=" '"+it+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=b;return i=i||h,u=g||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(rt.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};s?(void 0===b&&l.initialize(),l.invoke(o)):(void 0!==b&&b.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onOpen:function(){},onClosing:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}};n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.checkbox=function(r){var u,o=n(this),s=o.selector||"",e=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return o.each(function(){var it,o,a=n.extend(!0,{},n.fn.checkbox.settings,r),w=a.className,ft=a.namespace,b=a.selector,et=a.error,k="."+ft,rt="module-"+ft,y=n(this),d=n(this).children(b.label),v=n(this).children(b.input),p=v[0],nt=!1,tt=!1,g=y.data(rt),ut=this;o={initialize:function(){o.verbose("Initializing checkbox",a);o.create.label();o.bind.events();o.set.tabbable();o.hide.input();o.observeChanges();o.instantiate();o.setup()},instantiate:function(){o.verbose("Storing instance of module",o);g=o;y.data(rt,o)},destroy:function(){o.verbose("Destroying module");o.unbind.events();o.show.input();y.removeData(rt)},fix:{reference:function(){y.is(b.input)&&(o.debug("Behavior called on <input> adjusting invoked element"),y=y.closest(b.checkbox),o.refresh())}},setup:function(){o.set.initialLoad();o.is.indeterminate()?(o.debug("Initial value is indeterminate"),o.indeterminate()):o.is.checked()?(o.debug("Initial value is checked"),o.check()):(o.debug("Initial value is unchecked"),o.uncheck());o.remove.initialLoad()},refresh:function(){d=y.children(b.label);v=y.children(b.input);p=v[0]},hide:{input:function(){o.verbose("Modifying <input> z-index to be unselectable");v.addClass(w.hidden)}},show:{input:function(){o.verbose("Modifying <input> z-index to be selectable");v.removeClass(w.hidden)}},observeChanges:function(){"MutationObserver"in t&&(it=new MutationObserver(function(){o.debug("DOM tree modified, updating selector cache");o.refresh()}),it.observe(ut,{childList:!0,subtree:!0}),o.debug("Setting up mutation observer",it))},attachEvents:function(t,i){var r=n(t);i=n.isFunction(o[i])?o[i]:o.toggle;r.length>0?(o.debug("Attaching checkbox events to element",t,i),r.on("click"+k,i)):o.error(et.notFound)},event:{click:function(t){var i=n(t.target);return i.is(b.input)?void o.verbose("Using default check action on initialized checkbox"):i.is(b.link)?void o.debug("Clicking link inside checkbox, skipping toggle"):(o.toggle(),v.focus(),void t.preventDefault())},keydown:function(n){var t=n.which,i={enter:13,space:32,escape:27};t==i.escape?(o.verbose("Escape key pressed blurring field"),v.blur(),tt=!0):n.ctrlKey||t!=i.space&&t!=i.enter?tt=!1:(o.verbose("Enter/space key pressed, toggling checkbox"),o.toggle(),tt=!0)},keyup:function(n){tt&&n.preventDefault()}},check:function(){o.should.allowCheck()&&(o.debug("Checking checkbox",v),o.set.checked(),o.should.ignoreCallbacks()||(a.onChecked.call(p),a.onChange.call(p)))},uncheck:function(){o.should.allowUncheck()&&(o.debug("Unchecking checkbox"),o.set.unchecked(),o.should.ignoreCallbacks()||(a.onUnchecked.call(p),a.onChange.call(p)))},indeterminate:function(){if(o.should.allowIndeterminate())return void o.debug("Checkbox is already indeterminate");o.debug("Making checkbox indeterminate");o.set.indeterminate();o.should.ignoreCallbacks()||(a.onIndeterminate.call(p),a.onChange.call(p))},determinate:function(){if(o.should.allowDeterminate())return void o.debug("Checkbox is already determinate");o.debug("Making checkbox determinate");o.set.determinate();o.should.ignoreCallbacks()||(a.onDeterminate.call(p),a.onChange.call(p))},enable:function(){if(o.is.enabled())return void o.debug("Checkbox is already enabled");o.debug("Enabling checkbox");o.set.enabled();a.onEnable.call(p);a.onEnabled.call(p)},disable:function(){if(o.is.disabled())return void o.debug("Checkbox is already disabled");o.debug("Disabling checkbox");o.set.disabled();a.onDisable.call(p);a.onDisabled.call(p)},get:{radios:function(){var t=o.get.name();return n('input[name="'+t+'"]').closest(b.checkbox)},otherRadios:function(){return o.get.radios().not(y)},name:function(){return v.attr("name")}},is:{initialLoad:function(){return nt},radio:function(){return v.hasClass(w.radio)||"radio"==v.attr("type")},indeterminate:function(){return void 0!==v.prop("indeterminate")&&v.prop("indeterminate")},checked:function(){return void 0!==v.prop("checked")&&v.prop("checked")},disabled:function(){return void 0!==v.prop("disabled")&&v.prop("disabled")},enabled:function(){return!o.is.disabled()},determinate:function(){return!o.is.indeterminate()},unchecked:function(){return!o.is.checked()}},should:{allowCheck:function(){return o.is.determinate()&&o.is.checked()&&!o.should.forceCallbacks()?(o.debug("Should not allow check, checkbox is already checked"),!1):a.beforeChecked.apply(p)!==!1||(o.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return o.is.determinate()&&o.is.unchecked()&&!o.should.forceCallbacks()?(o.debug("Should not allow uncheck, checkbox is already unchecked"),!1):a.beforeUnchecked.apply(p)!==!1||(o.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return o.is.indeterminate()&&!o.should.forceCallbacks()?(o.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):a.beforeIndeterminate.apply(p)!==!1||(o.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return o.is.determinate()&&!o.should.forceCallbacks()?(o.debug("Should not allow determinate, checkbox is already determinate"),!1):a.beforeDeterminate.apply(p)!==!1||(o.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return o.is.initialLoad()&&a.fireOnInit},ignoreCallbacks:function(){return nt&&!a.fireOnInit}},can:{change:function(){return!(y.hasClass(w.disabled)||y.hasClass(w.readOnly)||v.prop("disabled")||v.prop("readonly"))},uncheck:function(){return"boolean"==typeof a.uncheckable?a.uncheckable:!o.is.radio()}},set:{initialLoad:function(){nt=!0},checked:function(){if(o.verbose("Setting class to checked"),y.removeClass(w.indeterminate).addClass(w.checked),o.is.radio()&&o.uncheckOthers(),!o.is.indeterminate()&&o.is.checked())return void o.debug("Input is already checked, skipping input property change");o.verbose("Setting state to checked",p);v.prop("indeterminate",!1).prop("checked",!0);o.trigger.change()},unchecked:function(){if(o.verbose("Removing checked class"),y.removeClass(w.indeterminate).removeClass(w.checked),!o.is.indeterminate()&&o.is.unchecked())return void o.debug("Input is already unchecked");o.debug("Setting state to unchecked");v.prop("indeterminate",!1).prop("checked",!1);o.trigger.change()},indeterminate:function(){if(o.verbose("Setting class to indeterminate"),y.addClass(w.indeterminate),o.is.indeterminate())return void o.debug("Input is already indeterminate, skipping input property change");o.debug("Setting state to indeterminate");v.prop("indeterminate",!0);o.trigger.change()},determinate:function(){if(o.verbose("Removing indeterminate class"),y.removeClass(w.indeterminate),o.is.determinate())return void o.debug("Input is already determinate, skipping input property change");o.debug("Setting state to determinate");v.prop("indeterminate",!1)},disabled:function(){if(o.verbose("Setting class to disabled"),y.addClass(w.disabled),o.is.disabled())return void o.debug("Input is already disabled, skipping input property change");o.debug("Setting state to disabled");v.prop("disabled","disabled");o.trigger.change()},enabled:function(){if(o.verbose("Removing disabled class"),y.removeClass(w.disabled),o.is.enabled())return void o.debug("Input is already enabled, skipping input property change");o.debug("Setting state to enabled");v.prop("disabled",!1);o.trigger.change()},tabbable:function(){o.verbose("Adding tabindex to checkbox");void 0===v.attr("tabindex")&&v.attr("tabindex",0)}},remove:{initialLoad:function(){nt=!1}},trigger:{change:function(){var n=i.createEvent("HTMLEvents"),t=v[0];t&&(o.verbose("Triggering native change event"),n.initEvent("change",!0,!1),t.dispatchEvent(n))}},create:{label:function(){v.prevAll(b.label).length>0?(v.prev(b.label).detach().insertAfter(v),o.debug("Moving existing label",d)):o.has.label()||(d=n("<label>").insertAfter(v),o.debug("Creating label",d))}},has:{label:function(){return d.length>0}},bind:{events:function(){o.verbose("Attaching checkbox events");y.on("click"+k,o.event.click).on("keydown"+k,b.input,o.event.keydown).on("keyup"+k,b.input,o.event.keyup)}},unbind:{events:function(){o.debug("Removing events");y.off(k)}},uncheckOthers:function(){var n=o.get.otherRadios();o.debug("Unchecking other radios",n);n.removeClass(w.checked)},toggle:function(){if(!o.can.change())return void(o.is.radio()||o.debug("Checkbox is read-only or disabled, ignoring toggle"));o.is.indeterminate()||o.is.unchecked()?(o.debug("Currently unchecked"),o.check()):o.is.checked()&&o.can.uncheck()&&(o.debug("Currently checked"),o.uncheck())},setting:function(t,i){if(o.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];n.isPlainObject(a[t])?n.extend(!0,a[t],i):a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,o,t);else{if(void 0===i)return o[t];o[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,a.name+":"),o.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),o.verbose.apply(console,arguments)))},error:function(){a.silent||(o.error=Function.prototype.bind.call(console.error,console,a.name+":"),o.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:ut,"Execution Time":i}));clearTimeout(o.performance.timer);o.performance.timer=setTimeout(o.performance.display,500)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(o.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var h,e,s,f=g;return i=i||l,r=ut||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(e=f[r],!1):(o.error(et.method,t),!1);f=f[r]}})),n.isFunction(e)?s=e.apply(r,i):void 0!==e&&(s=e),n.isArray(u)?u.push(s):void 0!==u?u=[u,s]:void 0!==s&&(u=s),e}};c?(void 0===g&&o.initialize(),o.invoke(h)):(void 0!==g&&g.invoke("destroy"),o.initialize())}),void 0!==u?u:this};n.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.dimmer=function(t){var r,f=n(this),e=(new Date).getTime(),u=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return f.each(function(){var a,v,c,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.dimmer.settings,t):n.extend({},n.fn.dimmer.settings),w=l.selector,nt=l.namespace,y=l.className,rt=l.error,b="."+nt,g="module-"+nt,tt=f.selector||"",it="ontouchstart"in i.documentElement?"touchstart":"click",p=n(this),k=this,d=p.data(g);c={preinitialize:function(){c.is.dimmer()?(v=p.parent(),a=p):(v=p,a=c.has.dimmer()?l.dimmerName?v.find(w.dimmer).filter("."+l.dimmerName):v.find(w.dimmer):c.create(),c.set.variation())},initialize:function(){c.debug("Initializing dimmer",l);c.bind.events();c.set.dimmable();c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c);d=c;p.data(g,d)},destroy:function(){c.verbose("Destroying previous module",a);c.unbind.events();c.remove.variation();v.off(b)},bind:{events:function(){"hover"==l.on?v.on("mouseenter"+b,c.show).on("mouseleave"+b,c.hide):"click"==l.on&&v.on(it+b,c.toggle);c.is.page()&&(c.debug("Setting as a page dimmer",v),c.set.pageDimmer());c.is.closable()&&(c.verbose("Adding dimmer close event",a),v.on(it+b,w.dimmer,c.event.click))}},unbind:{events:function(){p.removeData(g);v.off(b)}},event:{click:function(t){c.verbose("Determining if event occured on dimmer",t);(0===a.find(t.target).length||n(t.target).is(w.content))&&(c.hide(),t.stopImmediatePropagation())}},addContent:function(t){var i=n(t);c.debug("Add content to dimmer",i);i.parent()[0]!==a[0]&&i.detach().appendTo(a)},create:function(){var t=n(l.template.dimmer());return l.dimmerName&&(c.debug("Creating named dimmer",l.dimmerName),t.addClass(l.dimmerName)),t.appendTo(v),t},show:function(t){t=n.isFunction(t)?t:function(){};c.debug("Showing dimmer",a,l);c.is.dimmed()&&!c.is.animating()||!c.is.enabled()?c.debug("Dimmer is already shown or disabled"):(c.animate.show(t),l.onShow.call(k),l.onChange.call(k))},hide:function(t){t=n.isFunction(t)?t:function(){};c.is.dimmed()||c.is.animating()?(c.debug("Hiding dimmer",a),c.animate.hide(t),l.onHide.call(k),l.onChange.call(k)):c.debug("Dimmer is not visible")},toggle:function(){c.verbose("Toggling dimmer visibility",a);c.is.dimmed()?c.hide():c.show()},animate:{show:function(t){t=n.isFunction(t)?t:function(){};l.useCSS&&void 0!==n.fn.transition&&a.transition("is supported")?("auto"!==l.opacity&&c.set.opacity(),a.transition({animation:l.transition+" in",queue:!1,duration:c.get.duration(),useFailSafe:!0,onStart:function(){c.set.dimmed()},onComplete:function(){c.set.active();t()}})):(c.verbose("Showing dimmer animation with javascript"),c.set.dimmed(),"auto"==l.opacity&&(l.opacity=.8),a.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(c.get.duration(),l.opacity,function(){a.removeAttr("style");c.set.active();t()}))},hide:function(t){t=n.isFunction(t)?t:function(){};l.useCSS&&void 0!==n.fn.transition&&a.transition("is supported")?(c.verbose("Hiding dimmer with css"),a.transition({animation:l.transition+" out",queue:!1,duration:c.get.duration(),useFailSafe:!0,onStart:function(){c.remove.dimmed()},onComplete:function(){c.remove.active();t()}})):(c.verbose("Hiding dimmer with javascript"),c.remove.dimmed(),a.stop().fadeOut(c.get.duration(),function(){c.remove.active();a.removeAttr("style");t()}))}},get:{dimmer:function(){return a},duration:function(){return"object"==typeof l.duration?c.is.active()?l.duration.hide:l.duration.show:l.duration}},has:{dimmer:function(){return l.dimmerName?p.find(w.dimmer).filter("."+l.dimmerName).length>0:p.find(w.dimmer).length>0}},is:{active:function(){return a.hasClass(y.active)},animating:function(){return a.is(":animated")||a.hasClass(y.animating)},closable:function(){return"auto"==l.closable?"hover"!=l.on:l.closable},dimmer:function(){return p.hasClass(y.dimmer)},dimmable:function(){return p.hasClass(y.dimmable)},dimmed:function(){return v.hasClass(y.dimmed)},disabled:function(){return v.hasClass(y.disabled)},enabled:function(){return!c.is.disabled()},page:function(){return v.is("body")},pageDimmer:function(){return a.hasClass(y.pageDimmer)}},can:{show:function(){return!a.hasClass(y.disabled)}},set:{opacity:function(n){var i=a.css("background-color"),t=i.split(","),r=t&&3==t.length,u=t&&4==t.length;n=0===l.opacity?0:l.opacity||n;r||u?(t[3]=n+")",i=t.join(",")):i="rgba(0, 0, 0, "+n+")";c.debug("Setting opacity to",n);a.css("background-color",i)},active:function(){a.addClass(y.active)},dimmable:function(){v.addClass(y.dimmable)},dimmed:function(){v.addClass(y.dimmed)},pageDimmer:function(){a.addClass(y.pageDimmer)},disabled:function(){a.addClass(y.disabled)},variation:function(n){(n=n||l.variation)&&a.addClass(n)}},remove:{active:function(){a.removeClass(y.active)},dimmed:function(){v.removeClass(y.dimmed)},disabled:function(){a.removeClass(y.disabled)},variation:function(n){(n=n||l.variation)&&a.removeClass(n)}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,l.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),c.verbose.apply(console,arguments)))},error:function(){l.silent||(c.error=Function.prototype.bind.call(console.error,console,l.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=l.name+":",i=0;e=!1;clearTimeout(c.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";tt&&(t+=" '"+tt+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=d;return i=i||h,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(c.error(rt.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};c.preinitialize();s?(void 0===d&&c.initialize(),c.invoke(o)):(void 0!==d&&d.invoke("destroy"),c.initialize())}),void 0!==r?r:this};n.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return n("<div />").attr("class","ui dimmer")}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.dropdown=function(r){var u,f=n(this),e=n(i),l=f.selector||"",s="ontouchstart"in i.documentElement,h=(new Date).getTime(),o=[],c=arguments[0],a="string"==typeof c,v=[].slice.call(arguments,1);return f.each(function(y){var ti,yt,wt,st,bt,ht,pt,p,w=n.isPlainObject(r)?n.extend(!0,{},n.fn.dropdown.settings,r):n.extend({},n.fn.dropdown.settings),b=w.className,lt=w.message,ei=w.fields,ut=w.keys,it=w.metadata,oi=w.namespace,kt=w.regExp,k=w.selector,ct=w.error,ii=w.templates,nt="."+oi,ri="module-"+oi,d=n(this),dt=n(w.context),ot=d.find(k.text),ft=d.find(k.search),gt=d.find(k.sizer),rt=d.find(k.input),si=d.find(k.icon),ni=d.prev().find(k.text).length>0?d.prev().find(k.text):d.prev(),g=d.children(k.menu),tt=g.find(k.item),at=!1,ui=!1,fi=!1,et=this,vt=d.data(ri);p={initialize:function(){p.debug("Initializing dropdown",w);p.is.alreadySetup()?p.setup.reference():(p.setup.layout(),p.refreshData(),p.save.defaults(),p.restore.selected(),p.create.id(),p.bind.events(),p.observeChanges(),p.instantiate())},instantiate:function(){p.verbose("Storing instance of dropdown",p);vt=p;d.data(ri,p)},destroy:function(){p.verbose("Destroying previous dropdown",d);p.remove.tabbable();d.off(nt).removeData(ri);g.off(nt);e.off(st);p.disconnect.menuObserver();p.disconnect.selectObserver()},observeChanges:function(){"MutationObserver"in t&&(ht=new MutationObserver(p.event.select.mutation),pt=new MutationObserver(p.event.menu.mutation),p.debug("Setting up mutation observer",ht,pt),p.observe.select(),p.observe.menu())},disconnect:{menuObserver:function(){pt&&pt.disconnect()},selectObserver:function(){ht&&ht.disconnect()}},observe:{select:function(){p.has.input()&&ht.observe(rt[0],{childList:!0,subtree:!0})},menu:function(){p.has.menu()&&pt.observe(g[0],{childList:!0,subtree:!0})}},create:{id:function(){bt=(Math.random().toString(16)+"000000000").substr(2,8);st="."+bt;p.verbose("Creating unique id for element",bt)},userChoice:function(t){var r,i,u;return!!(t=t||p.get.userValues())&&(t=n.isArray(t)?t:[t],n.each(t,function(t,f){p.get.item(f)===!1&&(u=w.templates.addition(p.add.variables(lt.addResult,f)),i=n("<div />").html(u).attr("data-"+it.value,f).attr("data-"+it.text,f).addClass(b.addition).addClass(b.item),w.hideAdditions&&i.addClass(b.hidden),r=void 0===r?i:r.add(i),p.verbose("Creating user choices for value",f,i))}),r)},userLabels:function(){var t=p.get.userValues();t&&(p.debug("Adding user labels",t),n.each(t,function(n,t){p.verbose("Adding custom user value");p.add.label(t,t)}))},menu:function(){g=n("<div />").addClass(b.menu).appendTo(d)},sizer:function(){gt=n("<span />").addClass(b.sizer).insertAfter(ft)}},search:function(n){n=void 0!==n?n:p.get.query();p.verbose("Searching for query",n);p.has.minCharacters(n)?p.filter(n):p.hide()},select:{firstUnfiltered:function(){p.verbose("Selecting first non-filtered element");p.remove.selectedItem();tt.not(k.unselectable).not(k.addition+k.hidden).eq(0).addClass(b.selected)},nextAvailable:function(n){n=n.eq(0);var t=n.nextAll(k.item).not(k.unselectable).eq(0),i=n.prevAll(k.item).not(k.unselectable).eq(0);t.length>0?(p.verbose("Moving selection to",t),t.addClass(b.selected)):(p.verbose("Moving selection to",i),i.addClass(b.selected))}},setup:{api:function(){var n={debug:w.debug,urlData:{value:p.get.value(),query:p.get.query()},on:!1};p.verbose("First request, initializing API");d.api(n)},layout:function(){d.is("select")&&(p.setup.select(),p.setup.returnedObject());p.has.menu()||p.create.menu();p.is.search()&&!p.has.search()&&(p.verbose("Adding search input"),ft=n("<input />").addClass(b.search).prop("autocomplete","off").insertBefore(ot));p.is.multiple()&&p.is.searchSelection()&&!p.has.sizer()&&p.create.sizer();w.allowTab&&p.set.tabbable()},select:function(){var t=p.get.selectValues();p.debug("Dropdown initialized on a select",t);d.is("select")&&(rt=d);rt.parent(k.dropdown).length>0?(p.debug("UI dropdown already exists. Creating dropdown menu only"),d=rt.closest(k.dropdown),p.has.menu()||p.create.menu(),g=d.children(k.menu),p.setup.menu(t)):(p.debug("Creating entire dropdown from select"),d=n("<div />").attr("class",rt.attr("class")).addClass(b.selection).addClass(b.dropdown).html(ii.dropdown(t)).insertBefore(rt),rt.hasClass(b.multiple)&&rt.prop("multiple")===!1&&(p.error(ct.missingMultiple),rt.prop("multiple",!0)),rt.is("[multiple]")&&p.set.multiple(),rt.prop("disabled")&&(p.debug("Disabling dropdown"),d.addClass(b.disabled)),rt.removeAttr("class").detach().prependTo(d));p.refresh()},menu:function(n){g.html(ii.menu(n,ei));tt=g.find(k.item)},reference:function(){p.debug("Dropdown behavior was called on select, replacing with closest dropdown");d=d.parent(k.dropdown);p.refresh();p.setup.returnedObject();a&&(vt=p,p.invoke(c))},returnedObject:function(){var n=f.slice(0,y),t=f.slice(y+1);f=n.add(d).add(t)}},refresh:function(){p.refreshSelectors();p.refreshData()},refreshItems:function(){tt=g.find(k.item)},refreshSelectors:function(){p.verbose("Refreshing selector cache");ot=d.find(k.text);ft=d.find(k.search);rt=d.find(k.input);si=d.find(k.icon);ni=d.prev().find(k.text).length>0?d.prev().find(k.text):d.prev();g=d.children(k.menu);tt=g.find(k.item)},refreshData:function(){p.verbose("Refreshing cached metadata");tt.removeData(it.text).removeData(it.value)},clearData:function(){p.verbose("Clearing metadata");tt.removeData(it.text).removeData(it.value);d.removeData(it.defaultText).removeData(it.defaultValue).removeData(it.placeholderText)},toggle:function(){p.verbose("Toggling menu visibility");p.is.active()?p.hide():p.show()},show:function(t){if(t=n.isFunction(t)?t:function(){},!p.can.show()&&p.is.remote()&&(p.debug("No API results retrieved, searching before show"),p.queryRemote(p.get.query(),p.show)),p.can.show()&&!p.is.active()){if(p.debug("Showing dropdown"),!p.has.message()||p.has.maxSelections()||p.has.allResultsFiltered()||p.remove.message(),p.is.allFiltered())return!0;w.onShow.call(et)!==!1&&p.animate.show(function(){p.can.click()&&p.bind.intent();p.has.menuSearch()&&p.focusSearch();p.set.visible();t.call(et)})}},hide:function(t){t=n.isFunction(t)?t:function(){};p.is.active()&&(p.debug("Hiding dropdown"),w.onHide.call(et)!==!1&&p.animate.hide(function(){p.remove.visible();t.call(et)}))},hideOthers:function(){p.verbose("Finding other dropdowns to hide");f.not(d).has(k.menu+"."+b.visible).dropdown("hide")},hideMenu:function(){p.verbose("Hiding menu  instantaneously");p.remove.active();p.remove.visible();g.transition("hide")},hideSubMenus:function(){var n=g.children(k.item).find(k.menu);p.verbose("Hiding sub menus",n);n.transition("hide")},bind:{events:function(){s&&p.bind.touchEvents();p.bind.keyboardEvents();p.bind.inputEvents();p.bind.mouseEvents()},touchEvents:function(){p.debug("Touch device detected binding additional touch events");p.is.searchSelection()||p.is.single()&&d.on("touchstart"+nt,p.event.test.toggle);g.on("touchstart"+nt,k.item,p.event.item.mouseenter)},keyboardEvents:function(){p.verbose("Binding keyboard events");d.on("keydown"+nt,p.event.keydown);p.has.search()&&d.on(p.get.inputEvent()+nt,k.search,p.event.input);p.is.multiple()&&e.on("keydown"+st,p.event.document.keydown)},inputEvents:function(){p.verbose("Binding input change events");d.on("change"+nt,k.input,p.event.change)},mouseEvents:function(){p.verbose("Binding mouse events");p.is.multiple()&&d.on("click"+nt,k.label,p.event.label.click).on("click"+nt,k.remove,p.event.remove.click);p.is.searchSelection()?(d.on("mousedown"+nt,p.event.mousedown).on("mouseup"+nt,p.event.mouseup).on("mousedown"+nt,k.menu,p.event.menu.mousedown).on("mouseup"+nt,k.menu,p.event.menu.mouseup).on("click"+nt,k.icon,p.event.icon.click).on("focus"+nt,k.search,p.event.search.focus).on("click"+nt,k.search,p.event.search.focus).on("blur"+nt,k.search,p.event.search.blur).on("click"+nt,k.text,p.event.text.focus),p.is.multiple()&&d.on("click"+nt,p.event.click)):("click"==w.on?d.on("click"+nt,k.icon,p.event.icon.click).on("click"+nt,p.event.test.toggle):"hover"==w.on?d.on("mouseenter"+nt,p.delay.show).on("mouseleave"+nt,p.delay.hide):d.on(w.on+nt,p.toggle),d.on("mousedown"+nt,p.event.mousedown).on("mouseup"+nt,p.event.mouseup).on("focus"+nt,p.event.focus),p.has.menuSearch()?d.on("blur"+nt,k.search,p.event.search.blur):d.on("blur"+nt,p.event.blur));g.on("mouseenter"+nt,k.item,p.event.item.mouseenter).on("mouseleave"+nt,k.item,p.event.item.mouseleave).on("click"+nt,k.item,p.event.item.click)},intent:function(){p.verbose("Binding hide intent event to document");s&&e.on("touchstart"+st,p.event.test.touch).on("touchmove"+st,p.event.test.touch);e.on("click"+st,p.event.test.hide)}},unbind:{intent:function(){p.verbose("Removing hide intent event from document");s&&e.off("touchstart"+st).off("touchmove"+st);e.off("click"+st)}},filter:function(n){var t=void 0!==n?n:p.get.query(),i=function(){p.is.multiple()&&p.filterActive();p.select.firstUnfiltered();p.has.allResultsFiltered()?w.onNoResults.call(et,t)?w.allowAdditions?w.hideAdditions&&(p.verbose("User addition with no menu, setting empty style"),p.set.empty(),p.hideMenu()):(p.verbose("All items filtered, showing message",t),p.add.message(lt.noResults)):(p.verbose("All items filtered, hiding dropdown",t),p.hideMenu()):(p.remove.empty(),p.remove.message());w.allowAdditions&&p.add.userSuggestion(n);p.is.searchSelection()&&p.can.show()&&p.is.focusedOnSearch()&&p.show()};w.useLabels&&p.has.maxSelections()||(w.apiSettings?p.can.useAPI()?p.queryRemote(t,function(){w.filterRemoteData&&p.filterItems(t);i()}):p.error(ct.noAPI):(p.filterItems(t),i()))},queryRemote:function(t,i){var r={errorDuration:!1,cache:"local",throttle:w.throttle,urlData:{query:t},onError:function(){p.add.message(lt.serverError);i()},onFailure:function(){p.add.message(lt.serverError);i()},onSuccess:function(n){p.remove.message();p.setup.menu({values:n[ei.remoteValues]});i()}};d.api("get request")||p.setup.api();r=n.extend(!0,{},r,w.apiSettings);d.api("setting",r).api("query")},filterItems:function(t){var r=void 0!==t?t:p.get.query(),i=null,f=p.escape.string(r),u=new RegExp("^"+f,"igm");p.has.query()&&(i=[],p.verbose("Searching for matching values",r),tt.each(function(){var t,f,e=n(this);return("both"==w.match||"text"==w.match)&&((t=String(p.get.choiceText(e,!1)),t.search(u)!==-1)||"exact"===w.fullTextSearch&&p.exactSearch(r,t)||w.fullTextSearch===!0&&p.fuzzySearch(r,t))?(i.push(this),!0):("both"==w.match||"value"==w.match)&&((f=String(p.get.choiceValue(e,t)),f.search(u)!==-1)||"exact"===w.fullTextSearch&&p.exactSearch(r,f)||w.fullTextSearch===!0&&p.fuzzySearch(r,f))?(i.push(this),!0):void 0}));p.debug("Showing only matched items",r);p.remove.filteredItem();i&&tt.not(i).addClass(b.filtered)},fuzzySearch:function(n,t){var r=t.length,u=n.length,i,f,e;if(n=n.toLowerCase(),t=t.toLowerCase(),u>r)return!1;if(u===r)return n===t;n:for(i=0,f=0;i<u;i++){for(e=n.charCodeAt(i);f<r;)if(t.charCodeAt(f++)===e)continue n;return!1}return!0},exactSearch:function(n,t){return n=n.toLowerCase(),t=t.toLowerCase(),t.indexOf(n)>-1},filterActive:function(){w.useLabels&&tt.filter("."+b.active).addClass(b.filtered)},focusSearch:function(n){p.has.search()&&!p.is.focusedOnSearch()&&(n?(d.off("focus"+nt,k.search),ft.focus(),d.on("focus"+nt,k.search,p.event.search.focus)):ft.focus())},forceSelection:function(){var t=tt.not(b.filtered).filter("."+b.selected).eq(0),i=tt.not(b.filtered).filter("."+b.active).eq(0),n=t.length>0?t:i;if(n.length>0&&!p.is.multiple())return p.debug("Forcing partial selection to selected item",n),void p.event.item.click.call(n,{},!0);w.allowAdditions?(p.set.selected(p.get.query()),p.remove.searchTerm()):p.remove.searchTerm()},event:{change:function(){fi||(p.debug("Input changed, updating selection"),p.set.selected())},focus:function(){w.showOnFocus&&!at&&p.is.hidden()&&!yt&&p.show()},blur:function(){yt=i.activeElement===this;at||yt||(p.remove.activeLabel(),p.hide())},mousedown:function(){p.is.searchSelection()?wt=!0:at=!0},mouseup:function(){p.is.searchSelection()?wt=!1:at=!1},click:function(t){n(t.target).is(d)&&(p.is.focusedOnSearch()?p.show():p.focusSearch())},search:{focus:function(){at=!0;p.is.multiple()&&p.remove.activeLabel();w.showOnFocus&&p.search()},blur:function(){yt=i.activeElement===this;p.is.searchSelection()&&!wt&&(ui||yt||(w.forceSelection&&p.forceSelection(),p.hide()));wt=!1}},icon:{click:function(){p.toggle()}},text:{focus:function(){at=!0;p.focusSearch()}},input:function(){(p.is.multiple()||p.is.searchSelection())&&p.set.filtered();clearTimeout(p.timer);p.timer=setTimeout(p.search,w.delay.search)},label:{click:function(t){var i=n(this),u=d.find(k.label),r=u.filter("."+b.active),f=i.nextAll("."+b.active),e=i.prevAll("."+b.active),o=f.length>0?i.nextUntil(f).add(r).add(i):i.prevUntil(e).add(r).add(i);t.shiftKey?(r.removeClass(b.active),o.addClass(b.active)):t.ctrlKey?i.toggleClass(b.active):(r.removeClass(b.active),i.addClass(b.active));w.onLabelSelect.apply(this,u.filter("."+b.active))}},remove:{click:function(){var t=n(this).parent();t.hasClass(b.active)?p.remove.activeLabels():p.remove.activeLabels(t)}},test:{toggle:function(n){var t=p.is.multiple()?p.show:p.toggle;p.is.bubbledLabelClick(n)||p.is.bubbledIconClick(n)||p.determine.eventOnElement(n,t)&&n.preventDefault()},touch:function(n){p.determine.eventOnElement(n,function(){"touchstart"==n.type?p.timer=setTimeout(function(){p.hide()},w.delay.touch):"touchmove"==n.type&&clearTimeout(p.timer)});n.stopPropagation()},hide:function(n){p.determine.eventInModule(n,p.hide)}},select:{mutation:function(){p.debug("<select> modified, recreating menu");p.setup.select()}},menu:{mutation:function(t){var i=t[0],u=n(i.addedNodes?i.addedNodes[0]:!1),f=n(i.removedNodes?i.removedNodes[0]:!1),r=u.add(f),e=r.is(k.addition)||r.closest(k.addition).length>0,o=r.is(k.message)||r.closest(k.message).length>0;e||o?(p.debug("Updating item selector cache"),p.refreshItems()):(p.debug("Menu modified, updating selector cache"),p.refresh())},mousedown:function(){ui=!0},mouseup:function(){ui=!1}},item:{mouseenter:function(t){var u=n(t.target),r=n(this),i=r.children(k.menu),f=r.siblings(k.item).children(k.menu),e=i.length>0;i.find(u).length>0||!e||(clearTimeout(p.itemTimer),p.itemTimer=setTimeout(function(){p.verbose("Showing sub-menu",i);n.each(f,function(){p.animate.hide(!1,n(this))});p.animate.show(!1,i)},w.delay.show),t.preventDefault())},mouseleave:function(){var t=n(this).children(k.menu);t.length>0&&(clearTimeout(p.itemTimer),p.itemTimer=setTimeout(function(){p.verbose("Hiding sub-menu",t);p.animate.hide(!1,t)},w.delay.hide))},click:function(t,r){var u=n(this),o=n(t?t.target:""),f=u.find(k.menu),e=p.get.choiceText(u),s=p.get.choiceValue(u,e),h=f.length>0,c=f.find(o).length>0;p.has.menuSearch()&&n(i.activeElement).blur();c||h&&!w.allowCategorySelection||(p.is.searchSelection()&&(w.allowAdditions&&p.remove.userAddition(),p.remove.searchTerm(),p.is.focusedOnSearch()||1==r||p.focusSearch(!0)),w.useLabels||(p.remove.filteredItem(),p.set.scrollPosition(u)),p.determine.selectAction.call(this,e,s))}},document:{keydown:function(n){var u=n.which;if(p.is.inObject(u,ut)){var i=d.find(k.label),t=i.filter("."+b.active),o=(t.data(it.value),i.index(t)),a=i.length,r=t.length>0,s=t.length>1,v=0===o,h=o+1==a,e=p.is.searchSelection(),f=p.is.focusedOnSearch(),c=p.is.focused(),l=f&&0===p.get.caretPosition();if(e&&!r&&!f)return;u==ut.leftArrow?!c&&!l||r?r&&(n.shiftKey?p.verbose("Adding previous label to selection"):(p.verbose("Selecting previous label"),i.removeClass(b.active)),v&&!s?t.addClass(b.active):t.prev(k.siblingLabel).addClass(b.active).end(),n.preventDefault()):(p.verbose("Selecting previous label"),i.last().addClass(b.active)):u==ut.rightArrow?(c&&!r&&i.first().addClass(b.active),r&&(n.shiftKey?p.verbose("Adding next label to selection"):(p.verbose("Selecting next label"),i.removeClass(b.active)),h?e?f?i.removeClass(b.active):p.focusSearch():s?t.next(k.siblingLabel).addClass(b.active):t.addClass(b.active):t.next(k.siblingLabel).addClass(b.active),n.preventDefault())):u==ut.deleteKey||u==ut.backspace?r?(p.verbose("Removing active labels"),h&&e&&!f&&p.focusSearch(),t.last().next(k.siblingLabel).addClass(b.active),p.remove.activeLabels(t),n.preventDefault()):l&&!r&&u==ut.backspace&&(p.verbose("Removing last label on input backspace"),t=i.last().addClass(b.active),p.remove.activeLabels(t)):t.removeClass(b.active)}}},keydown:function(n){var t=n.which;if(p.is.inObject(t,ut)){var r,s=tt.not(k.unselectable).filter("."+b.selected).eq(0),a=g.children("."+b.active).eq(0),i=s.length>0?s:a,v=i.length>0?i.siblings(":not(."+b.filtered+")").addBack():g.children(":not(."+b.filtered+")"),e=i.children(k.menu),u=i.closest(k.menu),h=u.hasClass(b.visible)||u.hasClass(b.animating)||u.parent(k.menu).length>0,c=e.length>0,f=i.length>0,l=i.not(k.unselectable).length>0,o=t==ut.delimiter&&w.allowAdditions&&p.is.multiple(),y=w.allowAdditions&&w.hideAdditions&&(t==ut.enter||o)&&l;if(y&&(p.verbose("Selecting item from keyboard shortcut",i),p.event.item.click.call(i,n),p.is.searchSelection()&&p.remove.searchTerm()),p.is.visible()){if((t==ut.enter||o)&&(t==ut.enter&&f&&c&&!w.allowCategorySelection?(p.verbose("Pressed enter on unselectable category, opening sub menu"),t=ut.rightArrow):l&&(p.verbose("Selecting item from keyboard shortcut",i),p.event.item.click.call(i,n),p.is.searchSelection()&&p.remove.searchTerm()),n.preventDefault()),f&&(t==ut.leftArrow&&u[0]!==g[0]&&(p.verbose("Left key pressed, closing sub-menu"),p.animate.hide(!1,u),i.removeClass(b.selected),u.closest(k.item).addClass(b.selected),n.preventDefault()),t==ut.rightArrow&&c&&(p.verbose("Right key pressed, opening sub-menu"),p.animate.show(!1,e),i.removeClass(b.selected),e.find(k.item).eq(0).addClass(b.selected),n.preventDefault())),t==ut.upArrow){if(r=f&&h?i.prevAll(k.item+":not("+k.unselectable+")").eq(0):tt.eq(0),v.index(r)<0)return p.verbose("Up key pressed but reached top of current menu"),void n.preventDefault();p.verbose("Up key pressed, changing active item");i.removeClass(b.selected);r.addClass(b.selected);p.set.scrollPosition(r);w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r);n.preventDefault()}if(t==ut.downArrow){if(r=f&&h?r=i.nextAll(k.item+":not("+k.unselectable+")").eq(0):tt.eq(0),0===r.length)return p.verbose("Down key pressed but reached bottom of current menu"),void n.preventDefault();p.verbose("Down key pressed, changing active item");tt.removeClass(b.selected);r.addClass(b.selected);p.set.scrollPosition(r);w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r);n.preventDefault()}t==ut.pageUp&&(p.scrollPage("up"),n.preventDefault());t==ut.pageDown&&(p.scrollPage("down"),n.preventDefault());t==ut.escape&&(p.verbose("Escape key pressed, closing dropdown"),p.hide())}else o&&n.preventDefault(),t!=ut.downArrow||p.is.visible()||(p.verbose("Down key pressed, showing dropdown"),p.select.firstUnfiltered(),p.show(),n.preventDefault())}else p.has.search()||p.set.selectedLetter(String.fromCharCode(t))}},trigger:{change:function(){var n=i.createEvent("HTMLEvents"),t=rt[0];t&&(p.verbose("Triggering native change event"),n.initEvent("change",!0,!1),t.dispatchEvent(n))}},determine:{selectAction:function(t,i){p.verbose("Determining action",w.action);n.isFunction(p.action[w.action])?(p.verbose("Triggering preset action",w.action,t,i),p.action[w.action].call(et,t,i,this)):n.isFunction(w.action)?(p.verbose("Triggering user action",w.action,t,i),w.action.call(et,t,i,this)):p.error(ct.action,w.action)},eventInModule:function(t,r){var u=n(t.target),f=u.closest(i.documentElement).length>0,e=u.closest(d).length>0;return r=n.isFunction(r)?r:function(){},f&&!e?(p.verbose("Triggering event",r),r(),!0):(p.verbose("Event occurred in dropdown, canceling callback"),!1)},eventOnElement:function(t,r){var u=n(t.target),f=u.closest(k.siblingLabel),e=i.body.contains(t.target),o=0===d.find(f).length,s=0===u.closest(g).length;return r=n.isFunction(r)?r:function(){},e&&o&&s?(p.verbose("Triggering event",r),r(),!0):(p.verbose("Event occurred in dropdown menu, canceling callback"),!1)}},action:{nothing:function(){},activate:function(t,i,r){if(i=void 0!==i?i:t,p.can.activate(n(r))){if(p.set.selected(i,n(r)),p.is.multiple()&&!p.is.allFiltered())return;p.hideAndClear()}},select:function(t,i,r){if(i=void 0!==i?i:t,p.can.activate(n(r))){if(p.set.value(i,n(r)),p.is.multiple()&&!p.is.allFiltered())return;p.hideAndClear()}},combo:function(t,i,r){i=void 0!==i?i:t;p.set.selected(i,n(r));p.hideAndClear()},hide:function(n,t){p.set.value(t,n);p.hideAndClear()}},get:{id:function(){return bt},defaultText:function(){return d.data(it.defaultText)},defaultValue:function(){return d.data(it.defaultValue)},placeholderText:function(){return d.data(it.placeholderText)||""},text:function(){return ot.text()},query:function(){return n.trim(ft.val())},searchWidth:function(n){return n=void 0!==n?n:ft.val(),gt.text(n),Math.ceil(gt.width()+1)},selectionCount:function(){var t=p.get.values();return p.is.multiple()?n.isArray(t)?t.length:0:""!==p.get.value()?1:0},transition:function(n){return"auto"==w.transition?p.is.upward(n)?"slide up":"slide down":w.transition},userValues:function(){var t=p.get.values();return!!t&&(t=n.isArray(t)?t:[t],n.grep(t,function(n){return p.get.item(n)===!1}))},uniqueArray:function(t){return n.grep(t,function(i,r){return n.inArray(i,t)===r})},caretPosition:function(){var n,r,t=ft.get(0);return"selectionStart"in t?t.selectionStart:i.selection?(t.focus(),n=i.selection.createRange(),r=n.text.length,n.moveStart("character",-t.value.length),n.text.length-r):void 0},value:function(){var t=rt.length>0?rt.val():d.data(it.value),i=n.isArray(t)&&1===t.length&&""===t[0];return void 0===t||i?"":t},values:function(){var n=p.get.value();return""===n?"":!p.has.selectInput()&&p.is.multiple()?"string"==typeof n?n.split(w.delimiter):"":n},remoteValues:function(){var t=p.get.values(),i=!1;return t&&("string"==typeof t&&(t=[t]),n.each(t,function(n,t){var r=p.read.remoteData(t);p.verbose("Restoring value from session data",r,t);r&&(i||(i={}),i[t]=r)})),i},choiceText:function(t,i){if(i=void 0!==i?i:w.preserveHTML,t)return t.find(k.menu).length>0&&(p.verbose("Retrieving text of element with sub-menu"),t=t.clone(),t.find(k.menu).remove(),t.find(k.menuIcon).remove()),void 0!==t.data(it.text)?t.data(it.text):i?n.trim(t.html()):n.trim(t.text())},choiceValue:function(t,i){return i=i||p.get.choiceText(t),!!t&&(void 0!==t.data(it.value)?String(t.data(it.value)):"string"==typeof i?n.trim(i.toLowerCase()):String(i))},inputEvent:function(){var n=ft[0];return!!n&&(void 0!==n.oninput?"input":void 0!==n.onpropertychange?"propertychange":"keyup")},selectValues:function(){var t={};return t.values=[],d.find("option").each(function(){var i=n(this),r=i.html(),f=i.attr("disabled"),u=void 0!==i.attr("value")?i.attr("value"):r;"auto"===w.placeholder&&""===u?t.placeholder=r:t.values.push({name:r,value:u,disabled:f})}),w.placeholder&&"auto"!==w.placeholder&&(p.debug("Setting placeholder value to",w.placeholder),t.placeholder=w.placeholder),w.sortSelect?(t.values.sort(function(n,t){return n.name>t.name?1:-1}),p.debug("Retrieved and sorted values from select",t)):p.debug("Retrieved values from select",t),t},activeItem:function(){return tt.filter("."+b.active)},selectedItem:function(){var n=tt.not(k.unselectable).filter("."+b.selected);return n.length>0?n:tt.eq(0)},itemWithAdditions:function(n){var t=p.get.item(n),i=p.create.userChoice(n);return i&&i.length>0&&(t=t.length>0?t.add(i):i),t},item:function(t,i){var f,u,r=!1;return t=void 0!==t?t:void 0!==p.get.values()?p.get.values():p.get.text(),f=u?t.length>0:void 0!==t&&null!==t,u=p.is.multiple()&&n.isArray(t),i=""===t||0===t||i||!1,f&&tt.each(function(){var f=n(this),o=p.get.choiceText(f),e=p.get.choiceValue(f,o);if(null!==e&&void 0!==e)if(u)n.inArray(String(e),t)===-1&&n.inArray(o,t)===-1||(r=r?r.add(f):f);else if(i){if(p.verbose("Ambiguous dropdown value using strict type check",f,t),e===t||o===t)return r=f,!0}else if(String(e)==String(t)||o==t)return p.verbose("Found select item by value",e,t),r=f,!0}),r}},check:{maxSelections:function(n){return!w.maxSelections||(n=void 0!==n?n:p.get.selectionCount(),n>=w.maxSelections?(p.debug("Maximum selection count reached"),w.useLabels&&(tt.addClass(b.filtered),p.add.message(lt.maxSelections)),!0):(p.verbose("No longer at maximum selection count"),p.remove.message(),p.remove.filteredItem(),p.is.searchSelection()&&p.filterItems(),!1))}},restore:{defaults:function(){p.clear();p.restore.defaultText();p.restore.defaultValue()},defaultText:function(){var n=p.get.defaultText();n===p.get.placeholderText?(p.debug("Restoring default placeholder text",n),p.set.placeholderText(n)):(p.debug("Restoring default text",n),p.set.text(n))},placeholderText:function(){p.set.placeholderText()},defaultValue:function(){var n=p.get.defaultValue();void 0!==n&&(p.debug("Restoring default value",n),""!==n?(p.set.value(n),p.set.selected()):(p.remove.activeItem(),p.remove.selectedItem()))},labels:function(){w.allowAdditions&&(w.useLabels||(p.error(ct.labels),w.useLabels=!0),p.debug("Restoring selected values"),p.create.userLabels());p.check.maxSelections()},selected:function(){p.restore.values();p.is.multiple()?(p.debug("Restoring previously selected values and labels"),p.restore.labels()):p.debug("Restoring previously selected values")},values:function(){p.set.initialLoad();w.apiSettings&&w.saveRemoteData&&p.get.remoteValues()?p.restore.remoteValues():p.set.selected();p.remove.initialLoad()},remoteValues:function(){var t=p.get.remoteValues();p.debug("Recreating selected from session data",t);t&&(p.is.single()?n.each(t,function(n,t){p.set.text(t)}):n.each(t,function(n,t){p.add.label(n,t)}))}},read:{remoteData:function(n){var i;return void 0===t.Storage?void p.error(ct.noStorage):void 0!==(i=sessionStorage.getItem(n))&&i}},save:{defaults:function(){p.save.defaultText();p.save.placeholderText();p.save.defaultValue()},defaultValue:function(){var n=p.get.value();p.verbose("Saving default value as",n);d.data(it.defaultValue,n)},defaultText:function(){var n=p.get.text();p.verbose("Saving default text as",n);d.data(it.defaultText,n)},placeholderText:function(){var n;w.placeholder!==!1&&ot.hasClass(b.placeholder)&&(n=p.get.text(),p.verbose("Saving placeholder text as",n),d.data(it.placeholderText,n))},remoteData:function(n,i){if(void 0===t.Storage)return void p.error(ct.noStorage);p.verbose("Saving remote data to session storage",i,n);sessionStorage.setItem(i,n)}},clear:function(){p.is.multiple()&&w.useLabels?p.remove.labels():(p.remove.activeItem(),p.remove.selectedItem());p.set.placeholderText();p.clearValue()},clearValue:function(){p.set.value("")},scrollPage:function(n,t){var h,r,u,f=t||p.get.selectedItem(),e=f.closest(k.menu),l=e.outerHeight(),c=e.scrollTop(),s=tt.eq(0).outerHeight(),o=Math.floor(l/s),a=(e.prop("scrollHeight"),"up"==n?c-s*o:c+s*o),i=tt.not(k.unselectable);u="up"==n?i.index(f)-o:i.index(f)+o;h="up"==n?u>=0:u<i.length;r=h?i.eq(u):"up"==n?i.first():i.last();r.length>0&&(p.debug("Scrolling page",n,r),f.removeClass(b.selected),r.addClass(b.selected),w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(r),e.scrollTop(a))},set:{filtered:function(){var n=p.is.multiple(),i=p.is.searchSelection(),r=n&&i,t=i?p.get.query():"",u="string"==typeof t&&t.length>0,f=p.get.searchWidth(),e=""!==t;n&&u&&(p.verbose("Adjusting input width",f,w.glyphWidth),ft.css("width",f));u||r&&e?(p.verbose("Hiding placeholder text"),ot.addClass(b.filtered)):(!n||r&&!e)&&(p.verbose("Showing placeholder text"),ot.removeClass(b.filtered))},empty:function(){d.addClass(b.empty)},loading:function(){d.addClass(b.loading)},placeholderText:function(n){n=n||p.get.placeholderText();p.debug("Setting placeholder text",n);p.set.text(n);ot.addClass(b.placeholder)},tabbable:function(){p.is.searchSelection()?(p.debug("Added tabindex to searchable dropdown"),ft.val("").attr("tabindex",0),g.attr("tabindex",-1)):(p.debug("Added tabindex to dropdown"),void 0===d.attr("tabindex")&&(d.attr("tabindex",0),g.attr("tabindex",-1)))},initialLoad:function(){p.verbose("Setting initial load");ti=!0},activeItem:function(n){w.allowAdditions&&n.filter(k.addition).length>0?n.addClass(b.filtered):n.addClass(b.active)},partialSearch:function(n){var t=p.get.query().length;ft.val(n.substr(0,t))},scrollPosition:function(n,t){var i,e,r,f,o,u,s,h,c;n=n||p.get.selectedItem();i=n.closest(k.menu);e=n&&n.length>0;t=void 0!==t&&t;n&&i.length>0&&e&&(f=n.position().top,i.addClass(b.loading),u=i.scrollTop(),o=i.offset().top,f=n.offset().top,r=u-o+f,t||(s=i.height(),c=u+s<r+5,h=r-5<u),p.debug("Scrolling to active item",r),(t||h||c)&&i.scrollTop(r),i.removeClass(b.loading))},text:function(n){"select"!==w.action&&("combo"==w.action?(p.debug("Changing combo button text",n,ni),w.preserveHTML?ni.html(n):ni.text(n)):(n!==p.get.placeholderText()&&ot.removeClass(b.placeholder),p.debug("Changing text",n,ot),ot.removeClass(b.filtered),w.preserveHTML?ot.html(n):ot.text(n)))},selectedItem:function(n){var t=p.get.choiceValue(n),i=p.get.choiceText(n,!1),r=p.get.choiceText(n,!0);p.debug("Setting user selection to item",n);p.remove.activeItem();p.set.partialSearch(i);p.set.activeItem(n);p.set.selected(t,n);p.set.text(r)},selectedLetter:function(t){var u,r=tt.filter("."+b.selected),f=r.length>0&&p.has.firstLetter(r,t),i=!1;f&&(u=r.nextAll(tt).eq(0),p.has.firstLetter(u,t)&&(i=u));i||tt.each(function(){if(p.has.firstLetter(n(this),t))return i=n(this),!1});i&&(p.verbose("Scrolling to next value with letter",t),p.set.scrollPosition(i),r.removeClass(b.selected),i.addClass(b.selected),w.selectOnKeydown&&p.is.single()&&p.set.selectedItem(i))},direction:function(n){"auto"==w.direction?p.is.onScreen(n)?p.remove.upward(n):p.set.upward(n):"upward"==w.direction&&p.set.upward(n)},upward:function(n){(n||d).addClass(b.upward)},value:function(n,t,i){var r=p.escape.value(n),e=rt.length>0,u=(p.has.value(n),p.get.values()),f=void 0!==n?String(n):n;if(e){if(!w.allowReselection&&f==u&&(p.verbose("Skipping value update already same value",n,u),!p.is.initialLoad()))return;p.is.single()&&p.has.selectInput()&&p.can.extendSelect()&&(p.debug("Adding user option",n),p.add.optionValue(n));p.debug("Updating input value",r,u);fi=!0;rt.val(r);w.fireOnInit===!1&&p.is.initialLoad()?p.debug("Input native change event ignored on initial load"):p.trigger.change();fi=!1}else p.verbose("Storing value in metadata",r,rt),r!==u&&d.data(it.value,f);w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("No callback on initial load",w.onChange):w.onChange.call(et,n,t,i)},active:function(){d.addClass(b.active)},multiple:function(){d.addClass(b.multiple)},visible:function(){d.addClass(b.visible)},exactly:function(n,t){p.debug("Setting selected to exact values");p.clear();p.set.selected(n,t)},selected:function(t,i){var r=p.is.multiple();(i=w.allowAdditions?i||p.get.itemWithAdditions(t):i||p.get.item(t))&&(p.debug("Setting selected menu item to",i),p.is.multiple()&&p.remove.searchWidth(),p.is.single()?(p.remove.activeItem(),p.remove.selectedItem()):w.useLabels&&p.remove.selectedItem(),i.each(function(){var t=n(this),u=p.get.choiceText(t),f=p.get.choiceValue(t,u),e=t.hasClass(b.filtered),o=t.hasClass(b.active),s=t.hasClass(b.addition),h=r&&1==i.length;r?!o||s?(w.apiSettings&&w.saveRemoteData&&p.save.remoteData(u,f),w.useLabels?(p.add.value(f,u,t),p.add.label(f,u,h),p.set.activeItem(t),p.filterActive(),p.select.nextAvailable(i)):(p.add.value(f,u,t),p.set.text(p.add.variables(lt.count)),p.set.activeItem(t))):e||(p.debug("Selected active value, removing label"),p.remove.selected(f)):(w.apiSettings&&w.saveRemoteData&&p.save.remoteData(u,f),p.set.text(u),p.set.value(f,u,t),t.addClass(b.active).addClass(b.selected))}))}},add:{label:function(t,i,r){var u,e=p.is.searchSelection()?ft:ot,f=p.escape.value(t);if(u=n("<a />").addClass(b.label).attr("data-"+it.value,f).html(ii.label(f,i)),u=w.onLabelCreate.call(u,f,i),p.has.label(t))return void p.debug("Label already exists, skipping",f);w.label.variation&&u.addClass(w.label.variation);r===!0?(p.debug("Animating in label",u),u.addClass(b.hidden).insertBefore(e).transition(w.label.transition,w.label.duration)):(p.debug("Adding selection label",u),u.insertBefore(e))},message:function(t){var i=g.children(k.message),r=w.templates.message(p.add.variables(t));i.length>0?i.html(r):i=n("<div/>").html(r).addClass(b.message).appendTo(g)},optionValue:function(t){var i=p.escape.value(t);rt.find('option[value="'+p.escape.string(i)+'"]').length>0||(p.disconnect.selectObserver(),p.is.single()&&(p.verbose("Removing previous user addition"),rt.find("option."+b.addition).remove()),n("<option/>").prop("value",i).addClass(b.addition).html(t).appendTo(rt),p.verbose("Adding user addition as an <option>",t),p.observe.select())},userSuggestion:function(n){var i,t=g.children(k.addition),r=p.get.item(n),u=r&&r.not(k.addition).length,f=t.length>0;if(!w.useLabels||!p.has.maxSelections()){if(""===n||u)return void t.remove();f?(t.data(it.value,n).data(it.text,n).attr("data-"+it.value,n).attr("data-"+it.text,n).removeClass(b.filtered),w.hideAdditions||(i=w.templates.addition(p.add.variables(lt.addResult,n)),t.html(i)),p.verbose("Replacing user suggestion with new value",t)):(t=p.create.userChoice(n),t.prependTo(g),p.verbose("Adding item choice to menu corresponding with user choice addition",t));w.hideAdditions&&!p.is.allFiltered()||t.addClass(b.selected).siblings().removeClass(b.selected);p.refreshItems()}},variables:function(n,t){var i,r,u=n.search("{count}")!==-1,f=n.search("{maxCount}")!==-1,e=n.search("{term}")!==-1;return p.verbose("Adding templated variables to message",n),u&&(i=p.get.selectionCount(),n=n.replace("{count}",i)),f&&(i=p.get.selectionCount(),n=n.replace("{maxCount}",w.maxSelections)),e&&(r=t||p.get.query(),n=n.replace("{term}",r)),n},value:function(t,i,r){var u,f=p.get.values();if(""===t)return void p.debug("Cannot select blank values from multiselect");n.isArray(f)?(u=f.concat([t]),u=p.get.uniqueArray(u)):u=[t];p.has.selectInput()?p.can.extendSelect()&&(p.debug("Adding value to select",t,u,rt),p.add.optionValue(t)):(u=u.join(w.delimiter),p.debug("Setting hidden input to delimited value",u,rt));w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("Skipping onadd callback on initial load",w.onAdd):w.onAdd.call(et,t,i,r);p.set.value(u,t,i,r);p.check.maxSelections()}},remove:{active:function(){d.removeClass(b.active)},activeLabel:function(){d.find(k.label).removeClass(b.active)},empty:function(){d.removeClass(b.empty)},loading:function(){d.removeClass(b.loading)},initialLoad:function(){ti=!1},upward:function(n){(n||d).removeClass(b.upward)},visible:function(){d.removeClass(b.visible)},activeItem:function(){tt.removeClass(b.active)},filteredItem:function(){w.useLabels&&p.has.maxSelections()||(w.useLabels&&p.is.multiple()?tt.not("."+b.active).removeClass(b.filtered):tt.removeClass(b.filtered),p.remove.empty())},optionValue:function(n){var i=p.escape.value(n),t=rt.find('option[value="'+p.escape.string(i)+'"]');t.length>0&&t.hasClass(b.addition)&&(ht&&(ht.disconnect(),p.verbose("Temporarily disconnecting mutation observer")),t.remove(),p.verbose("Removing user addition as an <option>",i),ht&&ht.observe(rt[0],{childList:!0,subtree:!0}))},message:function(){g.children(k.message).remove()},searchWidth:function(){ft.css("width","")},searchTerm:function(){p.verbose("Cleared search term");ft.val("");p.set.filtered()},userAddition:function(){tt.filter(k.addition).remove()},selected:function(t,i){if(!(i=w.allowAdditions?i||p.get.itemWithAdditions(t):i||p.get.item(t)))return!1;i.each(function(){var t=n(this),i=p.get.choiceText(t),r=p.get.choiceValue(t,i);p.is.multiple()?w.useLabels?(p.remove.value(r,i,t),p.remove.label(r)):(p.remove.value(r,i,t),0===p.get.selectionCount()?p.set.placeholderText():p.set.text(p.add.variables(lt.count))):p.remove.value(r,i,t);t.removeClass(b.filtered).removeClass(b.active);w.useLabels&&t.removeClass(b.selected)})},selectedItem:function(){tt.removeClass(b.selected)},value:function(n,t,i){var r,u=p.get.values();p.has.selectInput()?(p.verbose("Input is <select> removing selected option",n),r=p.remove.arrayValue(n,u),p.remove.optionValue(n)):(p.verbose("Removing from delimited values",n),r=p.remove.arrayValue(n,u),r=r.join(w.delimiter));w.fireOnInit===!1&&p.is.initialLoad()?p.verbose("No callback on initial load",w.onRemove):w.onRemove.call(et,n,t,i);p.set.value(r,t,i);p.check.maxSelections()},arrayValue:function(t,i){return n.isArray(i)||(i=[i]),i=n.grep(i,function(n){return t!=n}),p.verbose("Removed value from delimited string",t,i),i},label:function(n){var i=d.find(k.label),t=i.filter("[data-"+it.value+'="'+p.escape.string(n)+'"]');p.verbose("Removing label",t);t.remove()},activeLabels:function(n){n=n||d.find(k.label).filter("."+b.active);p.verbose("Removing active label selections",n);p.remove.labels(n)},labels:function(t){t=t||d.find(k.label);p.verbose("Removing labels",t);t.each(function(){var r=n(this),t=r.data(it.value),i=void 0!==t?String(t):t,u=p.is.userValue(i);if(w.onLabelRemove.call(r,t)===!1)return void p.debug("Label remove callback cancelled removal");p.remove.message();u?(p.remove.value(i),p.remove.label(i)):p.remove.selected(i)})},tabbable:function(){p.is.searchSelection()?(p.debug("Searchable dropdown initialized"),ft.removeAttr("tabindex"),g.removeAttr("tabindex")):(p.debug("Simple selection dropdown initialized"),d.removeAttr("tabindex"),g.removeAttr("tabindex"))}},has:{menuSearch:function(){return p.has.search()&&ft.closest(g).length>0},search:function(){return ft.length>0},sizer:function(){return gt.length>0},selectInput:function(){return rt.is("select")},minCharacters:function(n){return!w.minCharacters||(n=void 0!==n?String(n):String(p.get.query()),n.length>=w.minCharacters)},firstLetter:function(n,t){var i,r;return!(!n||0===n.length||"string"!=typeof t)&&(i=p.get.choiceText(n,!1),t=t.toLowerCase(),r=String(i).charAt(0).toLowerCase(),t==r)},input:function(){return rt.length>0},items:function(){return tt.length>0},menu:function(){return g.length>0},message:function(){return 0!==g.children(k.message).length},label:function(n){var t=p.escape.value(n);return d.find(k.label).filter("[data-"+it.value+'="'+p.escape.string(t)+'"]').length>0},maxSelections:function(){return w.maxSelections&&p.get.selectionCount()>=w.maxSelections},allResultsFiltered:function(){var n=tt.not(k.addition);return n.filter(k.unselectable).length===n.length},userSuggestion:function(){return g.children(k.addition).length>0},query:function(){return""!==p.get.query()},value:function(t){var i=p.get.values();return!!(n.isArray(i)?i&&n.inArray(t,i)!==-1:i==t)}},is:{active:function(){return d.hasClass(b.active)},bubbledLabelClick:function(t){return n(t.target).is("select, input")&&d.closest("label").length>0},bubbledIconClick:function(t){return n(t.target).closest(si).length>0},alreadySetup:function(){return d.is("select")&&d.parent(k.dropdown).length>0&&0===d.prev().length},animating:function(n){return n?n.transition&&n.transition("is animating"):g.transition&&g.transition("is animating")},disabled:function(){return d.hasClass(b.disabled)},focused:function(){return i.activeElement===d[0]},focusedOnSearch:function(){return i.activeElement===ft[0]},allFiltered:function(){return(p.is.multiple()||p.has.search())&&!(0==w.hideAdditions&&p.has.userSuggestion())&&!p.has.message()&&p.has.allResultsFiltered()},hidden:function(n){return!p.is.visible(n)},initialLoad:function(){return ti},onScreen:function(n){var t,r=n||g,u=!0,i={};return r.addClass(b.loading),t={context:{scrollTop:dt.scrollTop(),height:dt.outerHeight()},menu:{offset:r.offset(),height:r.outerHeight()}},p.is.verticallyScrollableContext()&&(t.menu.offset.top+=t.context.scrollTop),i={above:t.context.scrollTop<=t.menu.offset.top-t.menu.height,below:t.context.scrollTop+t.context.height>=t.menu.offset.top+t.menu.height},i.below?(p.verbose("Dropdown can fit in context downward",i),u=!0):i.below||i.above?(p.verbose("Dropdown cannot fit below, opening upward",i),u=!1):(p.verbose("Dropdown cannot fit in either direction, favoring downward",i),u=!0),r.removeClass(b.loading),u},inObject:function(t,i){var r=!1;return n.each(i,function(n,i){if(i==t)return r=!0,!0}),r},multiple:function(){return d.hasClass(b.multiple)},remote:function(){return w.apiSettings&&p.can.useAPI()},single:function(){return!p.is.multiple()},selectMutation:function(t){var i=!1;return n.each(t,function(t,r){if(r.target&&n(r.target).is("select"))return i=!0,!0}),i},search:function(){return d.hasClass(b.search)},searchSelection:function(){return p.has.search()&&1===ft.parent(k.dropdown).length},selection:function(){return d.hasClass(b.selection)},userValue:function(t){return n.inArray(t,p.get.userValues())!==-1},upward:function(n){return(n||d).hasClass(b.upward)},visible:function(n){return n?n.hasClass(b.visible):g.hasClass(b.visible)},verticallyScrollableContext:function(){var n=dt.get(0)!==t&&dt.css("overflow-y");return"auto"==n||"scroll"==n}},can:{activate:function(n){return!!w.useLabels||!p.has.maxSelections()||!(!p.has.maxSelections()||!n.hasClass(b.active))},click:function(){return s||"click"==w.on},extendSelect:function(){return w.allowAdditions||w.apiSettings},show:function(){return!p.is.disabled()&&(p.has.items()||p.has.message())},useAPI:function(){return void 0!==n.fn.api}},animate:{show:function(t,i){var u,r=i||g,f=i?function(){}:function(){p.hideSubMenus();p.hideOthers();p.set.active()};t=n.isFunction(t)?t:function(){};p.verbose("Doing menu show animation",r);p.set.direction(i);u=p.get.transition(i);p.is.selection()&&p.set.scrollPosition(p.get.selectedItem(),!0);(p.is.hidden(r)||p.is.animating(r))&&("none"==u?(f(),r.transition("show"),t.call(et)):void 0!==n.fn.transition&&d.transition("is supported")?r.transition({animation:u+" in",debug:w.debug,verbose:w.verbose,duration:w.duration,queue:!0,onStart:f,onComplete:function(){t.call(et)}}):p.error(ct.noTransition,u))},hide:function(t,i){var r=i||g,u=(i?w.duration:w.duration,i?function(){}:function(){p.can.click()&&p.unbind.intent();p.remove.active()}),f=p.get.transition(i);t=n.isFunction(t)?t:function(){};(p.is.visible(r)||p.is.animating(r))&&(p.verbose("Doing menu hide animation",r),"none"==f?(u(),r.transition("hide"),t.call(et)):void 0!==n.fn.transition&&d.transition("is supported")?r.transition({animation:f+" out",duration:w.duration,debug:w.debug,verbose:w.verbose,queue:!0,onStart:u,onComplete:function(){"auto"==w.direction&&p.remove.upward(i);t.call(et)}}):p.error(ct.transition))}},hideAndClear:function(){p.remove.searchTerm();p.has.maxSelections()||(p.has.search()?p.hide(function(){p.remove.filteredItem()}):p.hide())},delay:{show:function(){p.verbose("Delaying show event to ensure user intent");clearTimeout(p.timer);p.timer=setTimeout(p.show,w.delay.show)},hide:function(){p.verbose("Delaying hide event to ensure user intent");clearTimeout(p.timer);p.timer=setTimeout(p.hide,w.delay.hide)}},escape:{value:function(t){var i=n.isArray(t),r="string"==typeof t,f=!r&&!i,e=r&&t.search(kt.quote)!==-1,u=[];return f||!e?t:(p.debug("Encoding quote values for use in select",t),i?(n.each(t,function(n,t){u.push(t.replace(kt.quote,"&quot;"))}),u):t.replace(kt.quote,"&quot;"))},string:function(n){return n=String(n),n.replace(kt.escape,"\\$&")}},setting:function(t,i){if(p.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,w,t);else{if(void 0===i)return w[t];n.isPlainObject(w[t])?n.extend(!0,w[t],i):w[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,p,t);else{if(void 0===i)return p[t];p[t]=i}},debug:function(){!w.silent&&w.debug&&(w.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,w.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!w.silent&&w.verbose&&w.debug&&(w.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,w.name+":"),p.verbose.apply(console,arguments)))},error:function(){w.silent||(p.error=Function.prototype.bind.call(console.error,console,w.name+":"),p.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;w.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,o.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:et,"Execution Time":i}));clearTimeout(p.performance.timer);p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var t=w.name+":",i=0;h=!1;clearTimeout(p.performance.timer);n.each(o,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&o.length>0&&(console.groupCollapsed(t),console.table?console.table(o):n.each(o,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());o=[]}},invoke:function(t,i,r){var s,e,o,f=vt;return i=i||v,r=et||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(p.error(ct.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};a?(void 0===vt&&p.initialize(),p.invoke(c)):(void 0!==vt&&vt.invoke("destroy"),p.initialize())}),void 0!==u?u:f};n.fn.dropdown.settings={silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",action:"activate",apiSettings:!1,selectOnKeydown:!0,minCharacters:0,filterRemoteData:!1,saveRemoteData:!0,throttle:200,context:t,direction:"auto",keepOnScreen:!0,match:"both",fullTextSearch:!1,placeholder:"auto",preserveHTML:!0,sortSelect:!1,forceSelection:!0,allowAdditions:!1,hideAdditions:!0,maxSelections:!1,useLabels:!0,delimiter:",",showOnFocus:!0,allowReselection:!1,allowTab:!0,allowCategorySelection:!1,fireOnInit:!1,transition:"auto",duration:200,glyphWidth:1.037,label:{transition:"scale",duration:200,variation:!1},delay:{hide:300,show:200,search:20,touch:50},onChange:function(){},onAdd:function(){},onRemove:function(){},onLabelSelect:function(){},onLabelCreate:function(){return n(this)},onLabelRemove:function(){return!0},onNoResults:function(){return!0},onShow:function(){},onHide:function(){},name:"Dropdown",namespace:"dropdown",message:{addResult:"Add <b>{term}<\/b>",count:"{count} selected",maxSelections:"Max {maxCount} selections",noResults:"No results found.",serverError:"There was an error contacting the server"},error:{action:"You called a dropdown action that was not defined",alreadySetup:"Once a select has been initialized behaviors must be called on the created ui dropdown",labels:"Allowing user additions currently requires the use of labels.",missingMultiple:"<select> requires multiple property to be set to correctly preserve multiple values",method:"The method you called is not defined.",noAPI:"The API module is required to load resources remotely",noStorage:"Saving remote data requires session storage",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s]/g,quote:/"/g},metadata:{defaultText:"defaultText",defaultValue:"defaultValue",placeholderText:"placeholder",text:"text",value:"value"},fields:{remoteValues:"results",values:"values",disabled:"disabled",name:"name",value:"value",text:"text"},keys:{backspace:8,delimiter:188,deleteKey:46,enter:13,escape:27,pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},selector:{addition:".addition",dropdown:".ui.dropdown",hidden:".hidden",icon:"> .dropdown.icon",input:'> input[type="hidden"], > select',item:".item",label:"> .label",remove:"> .label > .delete.icon",siblingLabel:".label",menu:".menu",message:".message",menuIcon:".dropdown.icon",search:"input.search, .menu > .search > input, .menu input.search",sizer:"> input.sizer",text:"> .text:not(.icon)",unselectable:".disabled, .filtered"},className:{active:"active",addition:"addition",animating:"animating",disabled:"disabled",empty:"empty",dropdown:"ui dropdown",filtered:"filtered",hidden:"hidden transition",item:"item",label:"ui label",loading:"loading",menu:"menu",message:"message",multiple:"multiple",placeholder:"default",sizer:"sizer",search:"search",selected:"selected",selection:"selection",upward:"upward",visible:"visible"}};n.fn.dropdown.settings.templates={dropdown:function(t){var r=t.placeholder||!1,i=(t.values,"");return i+='<i class="dropdown icon"><\/i>',i+=t.placeholder?'<div class="default text">'+r+"<\/div>":'<div class="text"><\/div>',i+='<div class="menu">',n.each(t.values,function(n,t){i+=t.disabled?'<div class="disabled item" data-value="'+t.value+'">'+t.name+"<\/div>":'<div class="item" data-value="'+t.value+'">'+t.name+"<\/div>"}),i+="<\/div>"},menu:function(t,i){var u=t[i.values]||{},r="";return n.each(u,function(n,t){var u=t[i.text]?'data-text="'+t[i.text]+'"':"",f=t[i.disabled]?"disabled ":"";r+='<div class="'+f+'item" data-value="'+t[i.value]+'"'+u+">";r+=t[i.name];r+="<\/div>"}),r},label:function(n,t){return t+'<i class="delete icon"><\/i>'},message:function(n){return n},addition:function(n){return n}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.embed=function(i){var r,f=n(this),o=f.selector||"",e=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return f.each(function(){var l,a=n.isPlainObject(i)?n.extend(!0,{},n.fn.embed.settings,i):n.extend({},n.fn.embed.settings),w=a.selector,g=a.className,p=a.sources,it=a.error,y=a.metadata,rt=a.namespace,ut=a.templates,nt="."+rt,tt="module-"+rt,v=(n(t),n(this)),ft=v.find(w.placeholder),et=v.find(w.icon),b=v.find(w.embed),k=this,d=v.data(tt);l={initialize:function(){l.debug("Initializing embed");l.determine.autoplay();l.create();l.bind.events();l.instantiate()},instantiate:function(){l.verbose("Storing instance of module",l);d=l;v.data(tt,l)},destroy:function(){l.verbose("Destroying previous instance of embed");l.reset();v.removeData(tt).off(nt)},refresh:function(){l.verbose("Refreshing selector cache");ft=v.find(w.placeholder);et=v.find(w.icon);b=v.find(w.embed)},bind:{events:function(){l.has.placeholder()&&(l.debug("Adding placeholder events"),v.on("click"+nt,w.placeholder,l.createAndShow).on("click"+nt,w.icon,l.createAndShow))}},create:function(){l.get.placeholder()?l.createPlaceholder():l.createAndShow()},createPlaceholder:function(n){var t=l.get.icon(),i=l.get.url();l.generate.embed(i);n=n||l.get.placeholder();v.html(ut.placeholder(n,t));l.debug("Creating placeholder for embed",n,t)},createEmbed:function(t){l.refresh();t=t||l.get.url();b=n("<div/>").addClass(g.embed).html(l.generate.embed(t)).appendTo(v);a.onCreate.call(k,t);l.debug("Creating embed object",b)},changeEmbed:function(n){b.html(l.generate.embed(n))},createAndShow:function(){l.createEmbed();l.show()},change:function(n,t,i){l.debug("Changing video to ",n,t,i);v.data(y.source,n).data(y.id,t);i?v.data(y.url,i):v.removeData(y.url);l.has.embed()?l.changeEmbed():l.create()},reset:function(){l.debug("Clearing embed and showing placeholder");l.remove.active();l.remove.embed();l.showPlaceholder();a.onReset.call(k)},show:function(){l.debug("Showing embed");l.set.active();a.onDisplay.call(k)},hide:function(){l.debug("Hiding embed");l.showPlaceholder()},showPlaceholder:function(){l.debug("Showing placeholder image");l.remove.active();a.onPlaceholderDisplay.call(k)},get:{id:function(){return a.id||v.data(y.id)},placeholder:function(){return a.placeholder||v.data(y.placeholder)},icon:function(){return a.icon?a.icon:void 0!==v.data(y.icon)?v.data(y.icon):l.determine.icon()},source:function(){return a.source?a.source:void 0!==v.data(y.source)?v.data(y.source):l.determine.source()},type:function(){var n=l.get.source();return void 0!==p[n]&&p[n].type},url:function(){return a.url?a.url:void 0!==v.data(y.url)?v.data(y.url):l.determine.url()}},determine:{autoplay:function(){l.should.autoplay()&&(a.autoplay=!0)},source:function(t){var i=!1;return t=t||l.get.url(),t&&n.each(p,function(n,r){if(t.search(r.domain)!==-1)return i=n,!1}),i},icon:function(){var n=l.get.source();return void 0!==p[n]&&p[n].icon},url:function(){var n,i=a.id||v.data(y.id),t=a.source||v.data(y.source);return n=void 0!==p[t]&&p[t].url.replace("{id}",i),n&&v.data(y.url,n),n}},set:{active:function(){v.addClass(g.active)}},remove:{active:function(){v.removeClass(g.active)},embed:function(){b.empty()}},encode:{parameters:function(n){var t,i=[];for(t in n)i.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return i.join("&amp;")}},generate:{embed:function(n){l.debug("Generating embed html");var t,i,r=l.get.source();return n=l.get.url(n),n?(i=l.generate.parameters(r),t=ut.iframe(n,i)):l.error(it.noURL,v),t},parameters:function(t,i){var r=p[t]&&void 0!==p[t].parameters?p[t].parameters(a):{};return i=i||a.parameters,i&&(r=n.extend({},r,i)),r=a.onEmbed(r),l.encode.parameters(r)}},has:{embed:function(){return b.length>0},placeholder:function(){return a.placeholder||v.data(y.placeholder)}},should:{autoplay:function(){return"auto"===a.autoplay?a.placeholder||void 0!==v.data(y.placeholder):a.autoplay}},is:{video:function(){return"video"==l.get.type()}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];n.isPlainObject(a[t])?n.extend(!0,a[t],i):a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];l[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,a.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),l.verbose.apply(console,arguments)))},error:function(){a.silent||(l.error=Function.prototype.bind.call(console.error,console,a.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=d;return i=i||c,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(it.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};h?(void 0===d&&l.initialize(),l.invoke(s)):(void 0!==d&&d.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.embed.settings={name:"Embed",namespace:"embed",silent:!1,debug:!1,verbose:!1,performance:!0,icon:!1,source:!1,url:!1,id:!1,autoplay:"auto",color:"#444444",hd:!0,brandedUI:!1,parameters:!1,onDisplay:function(){},onPlaceholderDisplay:function(){},onReset:function(){},onCreate:function(){},onEmbed:function(n){return n},metadata:{id:"id",icon:"icon",placeholder:"placeholder",source:"source",url:"url"},error:{noURL:"No URL specified",method:"The method you called is not defined"},className:{active:"active",embed:"embed"},selector:{embed:".embed",placeholder:".placeholder",icon:".icon"},sources:{youtube:{name:"youtube",type:"video",icon:"video play",domain:"youtube.com",url:"//www.youtube.com/embed/{id}",parameters:function(n){return{autohide:!n.brandedUI,autoplay:n.autoplay,color:n.color||void 0,hq:n.hd,jsapi:n.api,modestbranding:!n.brandedUI}}},vimeo:{name:"vimeo",type:"video",icon:"video play",domain:"vimeo.com",url:"//player.vimeo.com/video/{id}",parameters:function(n){return{api:n.api,autoplay:n.autoplay,byline:n.brandedUI,color:n.color||void 0,portrait:n.brandedUI,title:n.brandedUI}}}},templates:{iframe:function(n,t){var i=n;return t&&(i+="?"+t),'<iframe src="'+i+'" width="100%" height="100%" frameborder="0" scrolling="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen><\/iframe>'},placeholder:function(n,t){var i="";return t&&(i+='<i class="'+t+' icon"><\/i>'),n&&(i+='<img class="placeholder" src="'+n+'">'),i}},api:!1,onPause:function(){},onPlay:function(){},onStop:function(){}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.modal=function(r){var u,h=n(this),c=n(t),o=n(i),e=n("body"),l=h.selector||"",s=(new Date).getTime(),f=[],a=arguments[0],v="string"==typeof a,y=[].slice.call(arguments,1),p=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return h.each(function(){var vt,tt,et,k,ot,it,ht,ct,h,w=n.isPlainObject(r)?n.extend(!0,{},n.fn.modal.settings,r):n.extend({},n.fn.modal.settings),rt=w.selector,d=w.className,yt=w.namespace,st=w.error,g="."+yt,lt="module-"+yt,b=n(this),at=n(w.context),pt=b.find(rt.close),nt=this,ut=b.data(lt),ft=!1;h={initialize:function(){h.verbose("Initializing dimmer",at);h.create.id();h.create.dimmer();h.refreshModals();h.bind.events();w.observeChanges&&h.observeChanges();h.instantiate()},instantiate:function(){h.verbose("Storing instance of modal");ut=h;b.data(lt,ut)},create:{dimmer:function(){var i={debug:w.debug,dimmerName:"modals",duration:{show:w.duration,hide:w.duration}},t=n.extend(!0,i,w.dimmerSettings);if(w.inverted&&(t.variation=void 0!==t.variation?t.variation+" inverted":"inverted"),void 0===n.fn.dimmer)return void h.error(st.dimmer);h.debug("Creating dimmer with settings",t);k=at.dimmer(t);w.detachable?(h.verbose("Modal is detachable, moving content into dimmer"),k.dimmer("add content",b)):h.set.undetached();w.blurring&&k.addClass(d.blurring);ot=k.dimmer("get dimmer")},id:function(){ht=(Math.random().toString(16)+"000000000").substr(2,8);it="."+ht;h.verbose("Creating unique id for element",ht)}},destroy:function(){h.verbose("Destroying previous modal");b.removeData(lt).off(g);c.off(it);ot.off(it);pt.off(g);at.dimmer("destroy")},observeChanges:function(){"MutationObserver"in t&&(ct=new MutationObserver(function(){h.debug("DOM tree modified, refreshing");h.refresh()}),ct.observe(nt,{childList:!0,subtree:!0}),h.debug("Setting up mutation observer",ct))},refresh:function(){h.remove.scrolling();h.cacheSizes();h.set.screenHeight();h.set.type();h.set.position()},refreshModals:function(){tt=b.siblings(rt.modal);vt=tt.add(b)},attachEvents:function(t,i){var r=n(t);i=n.isFunction(h[i])?h[i]:h.toggle;r.length>0?(h.debug("Attaching modal events to element",t,i),r.off(g).on("click"+g,i)):h.error(st.notFound,t)},bind:{events:function(){h.verbose("Attaching events");b.on("click"+g,rt.close,h.event.close).on("click"+g,rt.approve,h.event.approve).on("click"+g,rt.deny,h.event.deny);c.on("resize"+it,h.event.resize)}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){if(ft||w.onApprove.call(nt,n(this))===!1)return void h.verbose("Approve callback returned false cancelling hide");ft=!0;h.hide(function(){ft=!1})},deny:function(){if(ft||w.onDeny.call(nt,n(this))===!1)return void h.verbose("Deny callback returned false cancelling hide");ft=!0;h.hide(function(){ft=!1})},close:function(){h.hide()},click:function(t){var r=n(t.target),u=r.closest(rt.modal).length>0,f=n.contains(i.documentElement,t.target);!u&&f&&(h.debug("Dimmer clicked, hiding all modals"),h.is.active()&&(h.remove.clickaway(),w.allowMultiple?h.hide():h.hideAll()))},debounce:function(n,t){clearTimeout(h.timer);h.timer=setTimeout(n,t)},keyboard:function(n){27==n.which&&(w.closable?(h.debug("Escape key pressed hiding modal"),h.hide()):h.debug("Escape key pressed, but closable is set to false"),n.preventDefault())},resize:function(){k.dimmer("is active")&&p(h.refresh)}},toggle:function(){h.is.active()||h.is.animating()?h.hide():h.show()},show:function(t){t=n.isFunction(t)?t:function(){};h.refreshModals();h.showModal(t)},hide:function(t){t=n.isFunction(t)?t:function(){};h.refreshModals();h.hideModal(t)},showModal:function(t){t=n.isFunction(t)?t:function(){};h.is.animating()||!h.is.active()?(h.showDimmer(),h.cacheSizes(),h.set.position(),h.set.screenHeight(),h.set.type(),h.set.clickaway(),!w.allowMultiple&&h.others.active()?h.hideOthers(h.showModal):(w.onShow.call(nt),w.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(h.debug("Showing modal with css animations"),b.transition({debug:w.debug,animation:w.transition+" in",queue:w.queue,duration:w.duration,useFailSafe:!0,onComplete:function(){w.onVisible.apply(nt);w.keyboardShortcuts&&h.add.keyboardShortcuts();h.save.focus();h.set.active();w.autofocus&&h.set.autofocus();t()}})):h.error(st.noTransition))):h.debug("Modal is already visible")},hideModal:function(t,i){if(t=n.isFunction(t)?t:function(){},h.debug("Hiding modal"),w.onHide.call(nt,n(this))===!1)return void h.verbose("Hide callback returned false cancelling hide");(h.is.animating()||h.is.active())&&(w.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(h.remove.active(),b.transition({debug:w.debug,animation:w.transition+" out",queue:w.queue,duration:w.duration,useFailSafe:!0,onStart:function(){h.others.active()||i||h.hideDimmer();w.keyboardShortcuts&&h.remove.keyboardShortcuts()},onComplete:function(){w.onHidden.call(nt);h.restore.focus();t()}})):h.error(st.noTransition))},showDimmer:function(){k.dimmer("is animating")||!k.dimmer("is active")?(h.debug("Showing dimmer"),k.dimmer("show")):h.debug("Dimmer already visible")},hideDimmer:function(){if(!k.dimmer("is animating")&&!k.dimmer("is active"))return void h.debug("Dimmer is not visible cannot hide");k.dimmer("hide",function(){h.remove.clickaway();h.remove.screenHeight()})},hideAll:function(t){var i=vt.filter("."+d.active+", ."+d.animating);t=n.isFunction(t)?t:function(){};i.length>0&&(h.debug("Hiding all visible modals"),h.hideDimmer(),i.modal("hide modal",t))},hideOthers:function(t){var i=tt.filter("."+d.active+", ."+d.animating);t=n.isFunction(t)?t:function(){};i.length>0&&(h.debug("Hiding other modals",tt),i.modal("hide modal",t,!0))},others:{active:function(){return tt.filter("."+d.active).length>0},animating:function(){return tt.filter("."+d.animating).length>0}},add:{keyboardShortcuts:function(){h.verbose("Adding keyboard shortcuts");o.on("keyup"+g,h.event.keyboard)}},save:{focus:function(){et=n(i.activeElement).blur()}},restore:{focus:function(){et&&et.length>0&&et.focus()}},remove:{active:function(){b.removeClass(d.active)},clickaway:function(){w.closable&&ot.off("click"+it)},bodyStyle:function(){""===e.attr("style")&&(h.verbose("Removing style attribute"),e.removeAttr("style"))},screenHeight:function(){h.debug("Removing page height");e.css("height","")},keyboardShortcuts:function(){h.verbose("Removing keyboard shortcuts");o.off("keyup"+g)},scrolling:function(){k.removeClass(d.scrolling);b.removeClass(d.scrolling)}},cacheSizes:function(){var r=b.outerHeight();void 0!==h.cache&&0===r||(h.cache={pageHeight:n(i).outerHeight(),height:r+w.offset,contextHeight:"body"==w.context?n(t).height():k.height()});h.debug("Caching modal and container sizes",h.cache)},can:{fit:function(){return h.cache.height+2*w.padding<h.cache.contextHeight}},is:{active:function(){return b.hasClass(d.active)},animating:function(){return b.transition("is supported")?b.transition("is animating"):b.is(":visible")},scrolling:function(){return k.hasClass(d.scrolling)},modernBrowser:function(){return!(t.ActiveXObject||"ActiveXObject"in t)}},set:{autofocus:function(){var n=b.find("[tabindex], :input").filter(":visible"),t=n.filter("[autofocus]"),i=t.length>0?t.first():n.first();i.length>0&&i.focus()},clickaway:function(){w.closable&&ot.on("click"+it,h.event.click)},screenHeight:function(){h.can.fit()?e.css("height",""):(h.debug("Modal is taller than page content, resizing page height"),e.css("height",h.cache.height+2*w.padding))},active:function(){b.addClass(d.active)},scrolling:function(){k.addClass(d.scrolling);b.addClass(d.scrolling)},type:function(){h.can.fit()?(h.verbose("Modal fits on screen"),h.others.active()||h.others.animating()||h.remove.scrolling()):(h.verbose("Modal cannot fit on screen setting to scrolling"),h.set.scrolling())},position:function(){h.verbose("Centering modal on page",h.cache);h.can.fit()?b.css({top:"",marginTop:-(h.cache.height/2)}):b.css({marginTop:"",top:o.scrollTop()})},undetached:function(){k.addClass(d.undetached)}},setting:function(t,i){if(h.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,w,t);else{if(void 0===i)return w[t];n.isPlainObject(w[t])?n.extend(!0,w[t],i):w[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,h,t);else{if(void 0===i)return h[t];h[t]=i}},debug:function(){!w.silent&&w.debug&&(w.performance?h.performance.log(arguments):(h.debug=Function.prototype.bind.call(console.info,console,w.name+":"),h.debug.apply(console,arguments)))},verbose:function(){!w.silent&&w.verbose&&w.debug&&(w.performance?h.performance.log(arguments):(h.verbose=Function.prototype.bind.call(console.info,console,w.name+":"),h.verbose.apply(console,arguments)))},error:function(){w.silent||(h.error=Function.prototype.bind.call(console.error,console,w.name+":"),h.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;w.performance&&(t=(new Date).getTime(),r=s||t,i=t-r,s=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:nt,"Execution Time":i}));clearTimeout(h.performance.timer);h.performance.timer=setTimeout(h.performance.display,500)},display:function(){var t=w.name+":",i=0;s=!1;clearTimeout(h.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ut;return i=i||y,r=nt||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};v?(void 0===ut&&h.initialize(),h.invoke(a)):(void 0!==ut&&ut.invoke("destroy"),h.initialize())}),void 0!==u?u:this};n.fn.modal.settings={name:"Modal",namespace:"modal",silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,offset:0,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.nag=function(i){var r,e=n(this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var l,e=n.isPlainObject(i)?n.extend(!0,{},n.fn.nag.settings,i):n.extend({},n.fn.nag.settings),w=(e.className,e.selector),v=e.error,b=e.namespace,k="."+b,p=b+"-module",a=n(this),d=(a.find(w.close),n(e.context?e.context:"body")),g=this,y=a.data(p);t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame;l={initialize:function(){l.verbose("Initializing element");a.on("click"+k,w.close,l.dismiss).data(p,l);e.detachable&&a.parent()[0]!==d[0]&&a.detach().prependTo(d);e.displayTime>0&&setTimeout(l.hide,e.displayTime);l.show()},destroy:function(){l.verbose("Destroying instance");a.removeData(p).off(k)},show:function(){l.should.show()&&!a.is(":visible")&&(l.debug("Showing nag",e.animation.show),"fade"==e.animation.show?a.fadeIn(e.duration,e.easing):a.slideDown(e.duration,e.easing))},hide:function(){l.debug("Showing nag",e.animation.hide);"fade"==e.animation.show?a.fadeIn(e.duration,e.easing):a.slideUp(e.duration,e.easing)},onHide:function(){l.debug("Removing nag",e.animation.hide);a.remove();e.onHide&&e.onHide()},dismiss:function(n){e.storageMethod&&l.storage.set(e.key,e.value);l.hide();n.stopImmediatePropagation();n.preventDefault()},should:{show:function(){return e.persist?(l.debug("Persistent nag is set, can show nag"),!0):l.storage.get(e.key)!=e.value.toString()?(l.debug("Stored value is not set, can show nag",l.storage.get(e.key)),!0):(l.debug("Stored value is set, cannot show nag",l.storage.get(e.key)),!1)}},get:{storageOptions:function(){var n={};return e.expires&&(n.expires=e.expires),e.domain&&(n.domain=e.domain),e.path&&(n.path=e.path),n}},clear:function(){l.storage.remove(e.key)},storage:{set:function(i,r){var u=l.get.storageOptions();if("localstorage"==e.storageMethod&&void 0!==t.localStorage)t.localStorage.setItem(i,r),l.debug("Value stored using local storage",i,r);else if("sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage)t.sessionStorage.setItem(i,r),l.debug("Value stored using session storage",i,r);else{if(void 0===n.cookie)return void l.error(v.noCookieStorage);n.cookie(i,r,u);l.debug("Value stored using cookie",i,r,u)}},get:function(i){var r;return"localstorage"==e.storageMethod&&void 0!==t.localStorage?r=t.localStorage.getItem(i):"sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage?r=t.sessionStorage.getItem(i):void 0!==n.cookie?r=n.cookie(i):l.error(v.noCookieStorage),"undefined"!=r&&"null"!=r&&void 0!==r&&null!==r||(r=void 0),r},remove:function(i){var r=l.get.storageOptions();"localstorage"==e.storageMethod&&void 0!==t.localStorage?t.localStorage.removeItem(i):"sessionstorage"==e.storageMethod&&void 0!==t.sessionStorage?t.sessionStorage.removeItem(i):void 0!==n.cookie?n.removeCookie(i,r):l.error(v.noStorage)}},setting:function(t,i){if(l.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];n.isPlainObject(e[t])?n.extend(!0,e[t],i):e[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];l[t]=i}},debug:function(){!e.silent&&e.debug&&(e.performance?l.performance.log(arguments):(l.debug=Function.prototype.bind.call(console.info,console,e.name+":"),l.debug.apply(console,arguments)))},verbose:function(){!e.silent&&e.verbose&&e.debug&&(e.performance?l.performance.log(arguments):(l.verbose=Function.prototype.bind.call(console.info,console,e.name+":"),l.verbose.apply(console,arguments)))},error:function(){e.silent||(l.error=Function.prototype.bind.call(console.error,console,e.name+":"),l.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;e.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(l.performance.timer);l.performance.timer=setTimeout(l.performance.display,500)},display:function(){var t=e.name+":",i=0;f=!1;clearTimeout(l.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=y;return i=i||c,u=g||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(l.error(v.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),e}};h?(void 0===y&&l.initialize(),l.invoke(s)):(void 0!==y&&y.invoke("destroy"),l.initialize())}),void 0!==r?r:this};n.fn.nag.settings={name:"Nag",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"Nag",persist:!1,displayTime:0,animation:{show:"slide",hide:"slide"},context:!1,detachable:!1,expires:30,domain:!1,path:"/",storageMethod:"cookie",key:"nag",value:"dismiss",error:{noCookieStorage:"$.cookie is not included. A storage solution is required.",noStorage:"Neither $.cookie or store is defined. A storage solution is required for storing state",method:"The method you called is not defined."},className:{bottom:"bottom",fixed:"fixed"},selector:{close:".close.icon"},speed:500,easing:"easeOutQuad",onHide:function(){}};n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i}})}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.popup=function(r){var u,c=n(this),o=n(i),e=n(t),s=n("body"),l=c.selector||"",h=(new Date).getTime(),f=[],a=arguments[0],v="string"==typeof a,y=[].slice.call(arguments,1);return c.each(function(){var w,tt,et,it,ht,c,p=n.isPlainObject(r)?n.extend(!0,{},n.fn.popup.settings,r):n.extend({},n.fn.popup.settings),ot=p.selector,d=p.className,st=p.error,g=p.metadata,wt=p.namespace,rt="."+p.namespace,at="module-"+wt,b=n(this),yt=n(p.context),pt=n(p.scrollContext),ct=n(p.boundary),nt=p.target?n(p.target):b,lt=0,ut=!1,vt=!1,k=this,ft=b.data(at);c={initialize:function(){c.debug("Initializing",b);c.createID();c.bind.events();!c.exists()&&p.preserve&&c.create();p.observeChanges&&c.observeChanges();c.instantiate()},instantiate:function(){c.verbose("Storing instance",c);ft=c;b.data(at,ft)},observeChanges:function(){"MutationObserver"in t&&(et=new MutationObserver(c.event.documentChanged),et.observe(i,{childList:!0,subtree:!0}),c.debug("Setting up mutation observer",et))},refresh:function(){p.popup?w=n(p.popup).eq(0):p.inline&&(w=nt.nextAll(ot.popup).eq(0),p.popup=w);p.popup?(w.addClass(d.loading),tt=c.get.offsetParent(),w.removeClass(d.loading),p.movePopup&&c.has.popup()&&c.get.offsetParent(w)[0]!==tt[0]&&(c.debug("Moving popup to the same offset parent as activating element"),w.detach().appendTo(tt))):tt=p.inline?c.get.offsetParent(nt):c.has.popup()?c.get.offsetParent(w):s;tt.is("html")&&tt[0]!==s[0]&&(c.debug("Setting page as offset parent"),tt=s);c.get.variation()&&c.set.variation()},reposition:function(){c.refresh();c.set.position()},destroy:function(){c.debug("Destroying previous module");et&&et.disconnect();w&&!p.preserve&&c.removePopup();clearTimeout(c.hideTimer);clearTimeout(c.showTimer);c.unbind.close();c.unbind.events();b.removeData(at)},event:{start:function(){var t=n.isPlainObject(p.delay)?p.delay.show:p.delay;clearTimeout(c.hideTimer);vt||(c.showTimer=setTimeout(c.show,t))},end:function(){var t=n.isPlainObject(p.delay)?p.delay.hide:p.delay;clearTimeout(c.showTimer);c.hideTimer=setTimeout(c.hide,t)},touchstart:function(){vt=!0;c.show()},resize:function(){c.is.visible()&&c.set.position()},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==k||n(t).find(k).length>0)&&(c.debug("Element removed from DOM, tearing down events"),c.destroy())})})},hideGracefully:function(t){var r=n(t.target),u=n.contains(i.documentElement,t.target),f=r.closest(ot.popup).length>0;t&&!f&&u?(c.debug("Click occurred outside popup hiding popup"),c.hide()):c.debug("Click was inside popup, keeping popup open")}},create:function(){var t=c.get.html(),i=c.get.title(),r=c.get.content();t||r||i?(c.debug("Creating pop-up html"),t||(t=p.templates.popup({title:i,content:r})),w=n("<div/>").addClass(d.popup).data(g.activator,b).html(t),p.inline?(c.verbose("Inserting popup element inline",w),w.insertAfter(b)):(c.verbose("Appending popup element to body",w),w.appendTo(yt)),c.refresh(),c.set.variation(),p.hoverable&&c.bind.popup(),p.onCreate.call(w,k)):0!==nt.next(ot.popup).length?(c.verbose("Pre-existing popup found"),p.inline=!0,p.popup=nt.next(ot.popup).data(g.activator,b),c.refresh(),p.hoverable&&c.bind.popup()):p.popup?(n(p.popup).data(g.activator,b),c.verbose("Used popup specified in settings"),c.refresh(),p.hoverable&&c.bind.popup()):c.debug("No content specified skipping display",k)},createID:function(){ht=(Math.random().toString(16)+"000000000").substr(2,8);it="."+ht;c.verbose("Creating unique id for element",ht)},toggle:function(){c.debug("Toggling pop-up");c.is.hidden()?(c.debug("Popup is hidden, showing pop-up"),c.unbind.close(),c.show()):(c.debug("Popup is visible, hiding pop-up"),c.hide())},show:function(n){if(n=n||function(){},c.debug("Showing pop-up",p.transition),c.is.hidden()&&(!c.is.active()||!c.is.dropdown())){if(c.exists()||c.create(),p.onShow.call(w,k)===!1)return void c.debug("onShow callback returned false, cancelling popup animation");p.preserve||p.popup||c.refresh();w&&c.set.position()&&(c.save.conditions(),p.exclusive&&c.hideAll(),c.animate.show(n))}},hide:function(n){if(n=n||function(){},c.is.visible()||c.is.animating()){if(p.onHide.call(w,k)===!1)return void c.debug("onHide callback returned false, cancelling popup animation");c.remove.visible();c.unbind.close();c.restore.conditions();c.animate.hide(n)}},hideAll:function(){n(ot.popup).filter("."+d.visible).each(function(){n(this).data(g.activator).popup("hide")})},exists:function(){return!!w&&(p.inline||p.popup?c.has.popup():w.closest(yt).length>=1)},removePopup:function(){c.has.popup()&&!p.popup&&(c.debug("Removing popup",w),w.remove(),w=void 0,p.onRemove.call(w,k))},save:{conditions:function(){c.cache={title:b.attr("title")};c.cache.title&&b.removeAttr("title");c.verbose("Saving original attributes",c.cache.title)}},restore:{conditions:function(){return c.cache&&c.cache.title&&(b.attr("title",c.cache.title),c.verbose("Restoring original attributes",c.cache.title)),!0}},supports:{svg:function(){return void 0===typeof SVGGraphicsElement}},animate:{show:function(t){t=n.isFunction(t)?t:function(){};p.transition&&void 0!==n.fn.transition&&b.transition("is supported")?(c.set.visible(),w.transition({animation:p.transition+" in",queue:!1,debug:p.debug,verbose:p.verbose,duration:p.duration,onComplete:function(){c.bind.close();t.call(w,k);p.onVisible.call(w,k)}})):c.error(st.noTransition)},hide:function(t){if(t=n.isFunction(t)?t:function(){},c.debug("Hiding pop-up"),p.onHide.call(w,k)===!1)return void c.debug("onHide callback returned false, cancelling popup animation");p.transition&&void 0!==n.fn.transition&&b.transition("is supported")?w.transition({animation:p.transition+" out",queue:!1,duration:p.duration,debug:p.debug,verbose:p.verbose,onComplete:function(){c.reset();t.call(w,k);p.onHidden.call(w,k)}}):c.error(st.noTransition)}},change:{content:function(n){w.html(n)}},get:{html:function(){return b.removeData(g.html),b.data(g.html)||p.html},title:function(){return b.removeData(g.title),b.data(g.title)||p.title},content:function(){return b.removeData(g.content),b.data(g.content)||b.attr("title")||p.content},variation:function(){return b.removeData(g.variation),b.data(g.variation)||p.variation},popup:function(){return w},popupOffset:function(){return w.offset()},calculations:function(){var n,r=nt[0],u=ct[0]==t,f=p.inline||p.popup&&p.movePopup?nt.position():nt.offset(),o=u?{top:0,left:0}:ct.offset(),i={},s=u?{top:e.scrollTop(),left:e.scrollLeft()}:{top:0,left:0};return i={target:{element:nt[0],width:nt.outerWidth(),height:nt.outerHeight(),top:f.top,left:f.left,margin:{}},popup:{width:w.outerWidth(),height:w.outerHeight()},parent:{width:tt.outerWidth(),height:tt.outerHeight()},screen:{top:o.top,left:o.left,scroll:{top:s.top,left:s.left},width:ct.width(),height:ct.height()}},p.setFluidWidth&&c.is.fluid()&&(i.container={width:w.parent().outerWidth()},i.popup.width=i.container.width),i.target.margin.top=p.inline?parseInt(t.getComputedStyle(r).getPropertyValue("margin-top"),10):0,i.target.margin.left=p.inline?c.is.rtl()?parseInt(t.getComputedStyle(r).getPropertyValue("margin-right"),10):parseInt(t.getComputedStyle(r).getPropertyValue("margin-left"),10):0,n=i.screen,i.boundary={top:n.top+n.scroll.top,bottom:n.top+n.scroll.top+n.height,left:n.left+n.scroll.left,right:n.left+n.scroll.left+n.width},i},id:function(){return ht},startEvent:function(){return"hover"==p.on?"mouseenter":"focus"==p.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==p.on?"mouseleave":"focus"==p.on&&"blur"},distanceFromBoundary:function(n,t){var r,i,u={};return t=t||c.get.calculations(),r=t.popup,i=t.boundary,n&&(u={top:n.top-i.top,left:n.left-i.left,right:i.right-(n.left+r.width),bottom:i.bottom-(n.top+r.height)},c.verbose("Distance from boundaries determined",n,u)),u},offsetParent:function(t){var o=void 0!==t?t[0]:b[0],r=o.parentNode,i=n(r);if(r)for(var u="none"===i.css("transform"),f="static"===i.css("position"),e=i.is("html");r&&!e&&f&&u;)r=r.parentNode,i=n(r),u="none"===i.css("transform"),f="static"===i.css("position"),e=i.is("html");return i&&i.length>0?i:n()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center":!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(n){var r=n.split(" "),i=r[0],u=r[1],o="top"==i||"bottom"==i,f=!1,e=!1,t=!1;return ut||(c.verbose("All available positions available"),ut=c.get.positions()),c.debug("Recording last position tried",n),ut[n]=!0,"opposite"===p.prefer&&(t=[{top:"bottom",bottom:"top",left:"right",right:"left"}[i],u],t=t.join(" "),f=ut[t]===!0,c.debug("Trying opposite strategy",t)),"adjacent"===p.prefer&&o&&(t=[i,{left:"center",center:"right",right:"left"}[u]],t=t.join(" "),e=ut[t]===!0,c.debug("Trying adjacent strategy",t)),(e||f)&&(c.debug("Using backup position",t),t={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[n]),t}},set:{position:function(n,t){if(0===nt.length||0===w.length)return void c.error(st.notFound);var r,u,i,o,e,f,s,h;if(t=t||c.get.calculations(),n=n||b.data(g.position)||p.position,r=b.data(g.offset)||p.offset,u=p.distanceAway,i=t.target,o=t.popup,e=t.parent,0===i.width&&0===i.height&&!c.is.svg(i.element))return c.debug("Popup target is hidden, no action taken"),!1;switch(p.inline&&(c.debug("Adding margin to calculation",i.margin),"left center"==n||"right center"==n?(r+=i.margin.top,u+=-i.margin.left):"top left"==n||"top center"==n||"top right"==n?(r+=i.margin.left,u-=i.margin.top):(r+=i.margin.left,u+=i.margin.top)),c.debug("Determining popup position from calculations",n,t),c.is.rtl()&&(n=n.replace(/left|right/g,function(n){return"left"==n?"right":"left"}),c.debug("RTL: Popup position updated",n)),lt==p.maxSearchDepth&&"string"==typeof p.lastResort&&(n=p.lastResort),n){case"top left":f={top:"auto",bottom:e.height-i.top+u,left:i.left+r,right:"auto"};break;case"top center":f={bottom:e.height-i.top+u,left:i.left+i.width/2-o.width/2+r,top:"auto",right:"auto"};break;case"top right":f={bottom:e.height-i.top+u,right:e.width-i.left-i.width-r,top:"auto",left:"auto"};break;case"left center":f={top:i.top+i.height/2-o.height/2+r,right:e.width-i.left+u,left:"auto",bottom:"auto"};break;case"right center":f={top:i.top+i.height/2-o.height/2+r,left:i.left+i.width+u,bottom:"auto",right:"auto"};break;case"bottom left":f={top:i.top+i.height+u,left:i.left+r,bottom:"auto",right:"auto"};break;case"bottom center":f={top:i.top+i.height+u,left:i.left+i.width/2-o.width/2+r,bottom:"auto",right:"auto"};break;case"bottom right":f={top:i.top+i.height+u,right:e.width-i.left-i.width-r,left:"auto",bottom:"auto"}}if(void 0===f&&c.error(st.invalidPosition,n),c.debug("Calculated popup positioning values",f),w.css(f).removeClass(d.position).addClass(n).addClass(d.loading),s=c.get.popupOffset(),h=c.get.distanceFromBoundary(s,t),c.is.offstage(h,n)){if(c.debug("Position is outside viewport",n),lt<p.maxSearchDepth)return lt++,n=c.get.nextPosition(n),c.debug("Trying new position",n),!!w&&c.set.position(n,t);if(!p.lastResort)return c.debug("Popup could not find a position to display",w),c.error(st.cannotPlace,k),c.remove.attempts(),c.remove.loading(),c.reset(),p.onUnplaceable.call(w,k),!1;c.debug("No position found, showing with last position")}return c.debug("Position is on stage",n),c.remove.attempts(),c.remove.loading(),p.setFluidWidth&&c.is.fluid()&&c.set.fluidWidth(t),!0},fluidWidth:function(n){n=n||c.get.calculations();c.debug("Automatically setting element width to parent width",n.parent.width);w.css("width",n.container.width)},variation:function(n){(n=n||c.get.variation())&&c.has.popup()&&(c.verbose("Adding variation to popup",n),w.addClass(n))},visible:function(){b.addClass(d.visible)}},remove:{loading:function(){w.removeClass(d.loading)},variation:function(n){(n=n||c.get.variation())&&(c.verbose("Removing variation",n),w.removeClass(n))},visible:function(){b.removeClass(d.visible)},attempts:function(){c.verbose("Resetting all searched positions");lt=0;ut=!1}},bind:{events:function(){c.debug("Binding popup events to module");"click"==p.on&&b.on("click"+rt,c.toggle);"hover"==p.on&&b.on("touchstart"+rt,c.event.touchstart);c.get.startEvent()&&b.on(c.get.startEvent()+rt,c.event.start).on(c.get.endEvent()+rt,c.event.end);p.target&&c.debug("Target set to element",nt);e.on("resize"+it,c.event.resize)},popup:function(){c.verbose("Allowing hover events on popup to prevent closing");w&&c.has.popup()&&w.on("mouseenter"+rt,c.event.start).on("mouseleave"+rt,c.event.end)},close:function(){(p.hideOnScroll===!0||"auto"==p.hideOnScroll&&"click"!=p.on)&&pt.one(c.get.scrollEvent()+it,c.event.hideGracefully);"hover"==p.on&&vt&&(c.verbose("Binding popup close event to document"),o.on("touchstart"+it,function(n){c.verbose("Touched away from popup");c.event.hideGracefully.call(k,n)}));"click"==p.on&&p.closable&&(c.verbose("Binding popup close event to document"),o.on("click"+it,function(n){c.verbose("Clicked away from popup");c.event.hideGracefully.call(k,n)}))}},unbind:{events:function(){e.off(it);b.off(rt)},close:function(){o.off(it);pt.off(it)}},has:{popup:function(){return w&&w.length>0}},is:{offstage:function(t,i){var r=[];return n.each(t,function(n,t){t<-p.jitter&&(c.debug("Position exceeds allowable distance from edge",n,t,i),r.push(n))}),r.length>0},svg:function(n){return c.supports.svg()&&n instanceof SVGGraphicsElement},active:function(){return b.hasClass(d.active)},animating:function(){return void 0!==w&&w.hasClass(d.animating)},fluid:function(){return void 0!==w&&w.hasClass(d.fluid)},visible:function(){return void 0!==w&&w.hasClass(d.visible)},dropdown:function(){return b.hasClass(d.dropdown)},hidden:function(){return!c.is.visible()},rtl:function(){return"rtl"==b.css("direction")}},reset:function(){c.remove.visible();p.preserve?void 0!==n.fn.transition&&w.transition("remove transition"):c.removePopup()},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,p,t);else{if(void 0===i)return p[t];p[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!p.silent&&p.debug&&(p.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,p.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),c.verbose.apply(console,arguments)))},error:function(){p.silent||(c.error=Function.prototype.bind.call(console.error,console,p.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;p.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=p.name+":",i=0;h=!1;clearTimeout(c.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";l&&(t+=" '"+l+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ft;return i=i||y,r=k||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};v?(void 0===ft&&c.initialize(),c.invoke(a)):(void 0!==ft&&ft.invoke("destroy"),c.initialize())}),void 0!==u?u:this};n.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:t,addTouchEvents:!0,position:"top left",variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:t,prefer:"opposite",lastResort:!1,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noTransition:"This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=function(n){return t[n]};return/[&<>"'`]/.test(n)?n.replace(/[&<>"'`]/g,i):n},popup:function(t){var i="",r=n.fn.popup.settings.templates.escape;return void 0!==typeof t&&(void 0!==typeof t.title&&t.title&&(t.title=r(t.title),i+='<div class="header">'+t.title+"<\/div>"),void 0!==typeof t.content&&t.content&&(t.content=r(t.content),i+='<div class="content">'+t.content+"<\/div>")),i}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();void 0!==t&&t.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")());n.fn.progress=function(t){var r,e=n(this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var rt,e,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.progress.settings,t):n.extend({},n.fn.progress.settings),v=l.className,d=l.metadata,it=l.namespace,g=l.selector,b=l.error,ut="."+it,nt="module-"+it,a=n(this),w=n(this).find(g.bar),tt=n(this).find(g.progress),ft=n(this).find(g.label),y=this,p=a.data(nt),k=!1;e={initialize:function(){e.debug("Initializing progress bar",l);e.set.duration();e.set.transitionEvent();e.read.metadata();e.read.settings();e.instantiate()},instantiate:function(){e.verbose("Storing instance of progress",e);p=e;a.data(nt,e)},destroy:function(){e.verbose("Destroying previous progress for",a);clearInterval(p.interval);e.remove.state();a.removeData(nt);p=void 0},reset:function(){e.remove.nextValue();e.update.progress(0)},complete:function(){(void 0===e.percent||e.percent<100)&&(e.remove.progressPoll(),e.set.percent(100))},read:{metadata:function(){var n={percent:a.data(d.percent),total:a.data(d.total),value:a.data(d.value)};n.percent&&(e.debug("Current percent value set from metadata",n.percent),e.set.percent(n.percent));n.total&&(e.debug("Total value set from metadata",n.total),e.set.total(n.total));n.value&&(e.debug("Current value set from metadata",n.value),e.set.value(n.value),e.set.progress(n.value))},settings:function(){l.total!==!1&&(e.debug("Current total set in settings",l.total),e.set.total(l.total));l.value!==!1&&(e.debug("Current value set in settings",l.value),e.set.value(l.value),e.set.progress(e.value));l.percent!==!1&&(e.debug("Current percent set in settings",l.percent),e.set.percent(l.percent))}},bind:{transitionEnd:function(n){var t=e.get.transitionEnd();w.one(t+ut,function(t){clearTimeout(e.failSafeTimer);n.call(this,t)});e.failSafeTimer=setTimeout(function(){w.triggerHandler(t)},l.duration+l.failSafeDelay);e.verbose("Adding fail safe timer",e.timer)}},increment:function(n){var i,t;e.has.total()?(i=e.get.value(),n=n||1,t=i+n):(i=e.get.percent(),n=n||e.get.randomValue(),t=i+n,e.debug("Incrementing percentage by",i,t));t=e.get.normalizedValue(t);e.set.progress(t)},decrement:function(n){var t,i,r=e.get.total();r?(t=e.get.value(),n=n||1,i=t-n,e.debug("Decrementing value by",n,t)):(t=e.get.percent(),n=n||e.get.randomValue(),i=t-n,e.debug("Decrementing percentage by",n,t));i=e.get.normalizedValue(i);e.set.progress(i)},has:{progressPoll:function(){return e.progressPoll},total:function(){return e.get.total()!==!1}},get:{text:function(n){var t=e.value||0,i=e.total||0,r=k?e.get.displayPercent():e.percent||0,u=e.total>0?i-t:100-r;return n=n||"",n=n.replace("{value}",t).replace("{total}",i).replace("{left}",u).replace("{percent}",r),e.verbose("Adding variables to progress bar text",n),n},normalizedValue:function(n){if(n<0)return e.debug("Value cannot decrement below 0"),0;if(e.has.total()){if(n>e.total)return e.debug("Value cannot increment above total",e.total),e.total}else if(n>100)return e.debug("Value cannot increment above 100 percent"),100;return n},updateInterval:function(){return"auto"==l.updateInterval?l.duration:l.updateInterval},randomValue:function(){return e.debug("Generating random increment percentage"),Math.floor(Math.random()*l.random.max+l.random.min)},numericValue:function(n){return"string"==typeof n?""!==n.replace(/[^\d.]/g,"")&&+n.replace(/[^\d.]/g,""):n},transitionEnd:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]},displayPercent:function(){var n=w.width(),i=a.width(),r=parseInt(w.css("min-width"),10),t=n>r?n/i*100:e.percent;return l.precision>0?Math.round(t*10*l.precision)/(10*l.precision):Math.round(t)},percent:function(){return e.percent||0},value:function(){return e.nextValue||e.value||0},total:function(){return e.total||!1}},create:{progressPoll:function(){e.progressPoll=setTimeout(function(){e.update.toNextValue();e.remove.progressPoll()},e.get.updateInterval())}},is:{complete:function(){return e.is.success()||e.is.warning()||e.is.error()},success:function(){return a.hasClass(v.success)},warning:function(){return a.hasClass(v.warning)},error:function(){return a.hasClass(v.error)},active:function(){return a.hasClass(v.active)},visible:function(){return a.is(":visible")}},remove:{progressPoll:function(){e.verbose("Removing progress poll timer");e.progressPoll&&(clearTimeout(e.progressPoll),delete e.progressPoll)},nextValue:function(){e.verbose("Removing progress value stored for next update");delete e.nextValue},state:function(){e.verbose("Removing stored state");delete e.total;delete e.percent;delete e.value},active:function(){e.verbose("Removing active state");a.removeClass(v.active)},success:function(){e.verbose("Removing success state");a.removeClass(v.success)},warning:function(){e.verbose("Removing warning state");a.removeClass(v.warning)},error:function(){e.verbose("Removing error state");a.removeClass(v.error)}},set:{barWidth:function(n){n>100?e.error(b.tooHigh,n):n<0?e.error(b.tooLow,n):(w.css("width",n+"%"),a.attr("data-percent",parseInt(n,10)))},duration:function(n){n=n||l.duration;n="number"==typeof n?n+"ms":n;e.verbose("Setting progress bar transition duration",n);w.css({"transition-duration":n})},percent:function(n){n="string"==typeof n?+n.replace("%",""):n;n=l.precision>0?Math.round(n*10*l.precision)/(10*l.precision):Math.round(n);e.percent=n;e.has.total()||(e.value=l.precision>0?Math.round(n/100*e.total*10*l.precision)/(10*l.precision):Math.round(n/100*e.total*10)/10,l.limitValues&&(e.value=e.value>100?100:e.value<0?0:e.value));e.set.barWidth(n);e.set.labelInterval();e.set.labels();l.onChange.call(y,n,e.value,e.total)},labelInterval:function(){var t=function(){e.verbose("Bar finished animating, removing continuous label updates");clearInterval(e.interval);k=!1;e.set.labels()};clearInterval(e.interval);e.bind.transitionEnd(t);k=!0;e.interval=setInterval(function(){n.contains(i.documentElement,y)||(clearInterval(e.interval),k=!1);e.set.labels()},l.framerate)},labels:function(){e.verbose("Setting both bar progress and outer label text");e.set.barLabel();e.set.state()},label:function(n){(n=n||"")&&(n=e.get.text(n),e.verbose("Setting label to text",n),ft.text(n))},state:function(n){n=void 0!==n?n:e.percent;100===n?l.autoSuccess&&!(e.is.warning()||e.is.error()||e.is.success())?(e.set.success(),e.debug("Automatically triggering success at 100%")):(e.verbose("Reached 100% removing active state"),e.remove.active(),e.remove.progressPoll()):n>0?(e.verbose("Adjusting active progress bar label",n),e.set.active()):(e.remove.active(),e.set.label(l.text.active))},barLabel:function(n){void 0!==n?tt.text(e.get.text(n)):"ratio"==l.label&&e.total?(e.verbose("Adding ratio to bar label"),tt.text(e.get.text(l.text.ratio))):"percent"==l.label&&(e.verbose("Adding percentage to bar label"),tt.text(e.get.text(l.text.percent)))},active:function(n){n=n||l.text.active;e.debug("Setting active state");l.showActivity&&!e.is.active()&&a.addClass(v.active);e.remove.warning();e.remove.error();e.remove.success();n=l.onLabelUpdate("active",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onActive.call(y,e.value,e.total)})},success:function(n){n=n||l.text.success||l.text.active;e.debug("Setting success state");a.addClass(v.success);e.remove.active();e.remove.warning();e.remove.error();e.complete();l.text.success?(n=l.onLabelUpdate("success",n,e.value,e.total),e.set.label(n)):(n=l.onLabelUpdate("active",n,e.value,e.total),e.set.label(n));e.bind.transitionEnd(function(){l.onSuccess.call(y,e.total)})},warning:function(n){n=n||l.text.warning;e.debug("Setting warning state");a.addClass(v.warning);e.remove.active();e.remove.success();e.remove.error();e.complete();n=l.onLabelUpdate("warning",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onWarning.call(y,e.value,e.total)})},error:function(n){n=n||l.text.error;e.debug("Setting error state");a.addClass(v.error);e.remove.active();e.remove.success();e.remove.warning();e.complete();n=l.onLabelUpdate("error",n,e.value,e.total);n&&e.set.label(n);e.bind.transitionEnd(function(){l.onError.call(y,e.value,e.total)})},transitionEvent:function(){rt=e.get.transitionEnd()},total:function(n){e.total=n},value:function(n){e.value=n},progress:function(n){e.has.progressPoll()?(e.debug("Updated within interval, setting next update to use new value",n),e.set.nextValue(n)):(e.debug("First update in progress update interval, immediately updating",n),e.update.progress(n),e.create.progressPoll())},nextValue:function(n){e.nextValue=n}},update:{toNextValue:function(){var n=e.nextValue;n&&(e.debug("Update interval complete using last updated value",n),e.update.progress(n),e.remove.nextValue())},progress:function(n){var t;n=e.get.numericValue(n);n===!1&&e.error(b.nonNumeric,n);n=e.get.normalizedValue(n);e.has.total()?(e.set.value(n),t=n/e.total*100,e.debug("Calculating percent complete from total",t),e.set.percent(t)):(t=n,e.debug("Setting value to exact percentage value",t),e.set.percent(t))}},setting:function(t,i){if(e.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,l.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),e.verbose.apply(console,arguments)))},error:function(){l.silent||(e.error=Function.prototype.bind.call(console.error,console,l.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:y,"Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(e.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var h,o,s,f=p;return i=i||c,u=y||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(b.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(u,i):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===p&&e.initialize(),e.invoke(s)):(void 0!==p&&p.invoke("destroy"),e.initialize())}),void 0!==r?r:this};n.fn.progress.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(n,t){return t},onChange:function(){},onSuccess:function(){},onActive:function(){},onError:function(){},onWarning:function(){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document),function(n,t){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.rating=function(t){var i,u=n(this),e=u.selector||"",f=(new Date).getTime(),r=[],o=arguments[0],s="string"==typeof o,h=[].slice.call(arguments,1);return u.each(function(){var d,c,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.rating.settings,t):n.extend({},n.fn.rating.settings),tt=l.namespace,v=l.className,p=l.metadata,b=l.selector,k=(l.error,"."+tt),g="module-"+tt,nt=this,w=n(this).data(g),a=n(this),y=a.find(b.icon);c={initialize:function(){c.verbose("Initializing rating module",l);0===y.length&&c.setup.layout();l.interactive?c.enable():c.disable();c.set.initialLoad();c.set.rating(c.get.initialRating());c.remove.initialLoad();c.instantiate()},instantiate:function(){c.verbose("Instantiating module",l);w=c;a.data(g,c)},destroy:function(){c.verbose("Destroying previous instance",w);c.remove.events();a.removeData(g)},refresh:function(){y=a.find(b.icon)},setup:{layout:function(){var t=c.get.maxRating(),i=n.fn.rating.settings.templates.icon(t);c.debug("Generating icon html dynamically");a.html(i);c.refresh()}},event:{mouseenter:function(){var t=n(this);t.nextAll().removeClass(v.selected);a.addClass(v.selected);t.addClass(v.selected).prevAll().addClass(v.selected)},mouseleave:function(){a.removeClass(v.selected);y.removeClass(v.selected)},click:function(){var i=n(this),r=c.get.rating(),t=y.index(i)+1;("auto"==l.clearable?1===y.length:l.clearable)&&r==t?c.clearRating():c.set.rating(t)}},clearRating:function(){c.debug("Clearing current rating");c.set.rating(0)},bind:{events:function(){c.verbose("Binding events");a.on("mouseenter"+k,b.icon,c.event.mouseenter).on("mouseleave"+k,b.icon,c.event.mouseleave).on("click"+k,b.icon,c.event.click)}},remove:{events:function(){c.verbose("Removing events");a.off(k)},initialLoad:function(){d=!1}},enable:function(){c.debug("Setting rating to interactive mode");c.bind.events();a.removeClass(v.disabled)},disable:function(){c.debug("Setting rating to read-only mode");c.remove.events();a.addClass(v.disabled)},is:{initialLoad:function(){return d}},get:{initialRating:function(){return void 0!==a.data(p.rating)?(a.removeData(p.rating),a.data(p.rating)):l.initialRating},maxRating:function(){return void 0!==a.data(p.maxRating)?(a.removeData(p.maxRating),a.data(p.maxRating)):l.maxRating},rating:function(){var n=y.filter("."+v.active).length;return c.verbose("Current rating retrieved",n),n}},set:{rating:function(n){var t=n-1>=0?n-1:0,i=y.eq(t);a.removeClass(v.selected);y.removeClass(v.selected).removeClass(v.active);n>0&&(c.verbose("Setting current rating to",n),i.prevAll().addBack().addClass(v.active));c.is.initialLoad()||l.onRate.call(nt,n)},initialLoad:function(){d=!0}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,l.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),c.verbose.apply(console,arguments)))},error:function(){l.silent||(c.error=Function.prototype.bind.call(console.error,console,l.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,u;l.performance&&(t=(new Date).getTime(),u=f||t,i=t-u,f=t,r.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:nt,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(c.performance.timer);n.each(r,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";e&&(t+=" '"+e+"'");u.length>1&&(t+=" ("+u.length+")");(void 0!==console.group||void 0!==console.table)&&r.length>0&&(console.groupCollapsed(t),console.table?console.table(r):n.each(r,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());r=[]}},invoke:function(t,r,u){var s,e,o,f=w;return r=r||h,u=nt||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,r):void 0!==e&&(o=e),n.isArray(i)?i.push(o):void 0!==i?i=[i,o]:void 0!==o&&(i=o),e}};s?(void 0===w&&c.initialize(),c.invoke(o)):(void 0!==w&&w.invoke("destroy"),c.initialize())}),void 0!==i?i:this};n.fn.rating.settings={name:"Rating",namespace:"rating",slent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(){},error:{method:"The method you called is not defined",noMaximum:"No maximum rating specified. Cannot generate HTML automatically"},metadata:{rating:"rating",maxRating:"maxRating"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading"},selector:{icon:".icon"},templates:{icon:function(n){for(var t=1,i="";t<=n;)i+='<i class="icon"><\/i>',t++;return i}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.search=function(r){var u,e=n(this),s=e.selector||"",o=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return n(this).each(function(){var a,v=n.isPlainObject(r)?n.extend(!0,{},n.fn.search.settings,r):n.extend({},n.fn.search.settings),w=v.className,k=v.metadata,ht=v.regExp,d=v.fields,p=v.selector,tt=v.error,ct=v.namespace,g="."+ct,ut=ct+"-module",y=n(this),nt=y.find(p.prompt),ft=y.find(p.searchButton),b=y.find(p.results),et=y.find(p.result),lt=y.find(p.category),it=this,rt=y.data(ut),ot=!1,st=!1;a={initialize:function(){a.verbose("Initializing module");a.determine.searchFields();a.bind.events();a.set.type();a.create.results();a.instantiate()},instantiate:function(){a.verbose("Storing instance of module",a);rt=a;y.data(ut,a)},destroy:function(){a.verbose("Destroying instance");y.off(g).removeData(ut)},refresh:function(){a.debug("Refreshing selector cache");nt=y.find(p.prompt);ft=y.find(p.searchButton);lt=y.find(p.category);b=y.find(p.results);et=y.find(p.result)},refreshResults:function(){b=y.find(p.results);et=y.find(p.result)},bind:{events:function(){a.verbose("Binding events to search");v.automatic&&(y.on(a.get.inputEvent()+g,p.prompt,a.event.input),nt.attr("autocomplete","off"));y.on("focus"+g,p.prompt,a.event.focus).on("blur"+g,p.prompt,a.event.blur).on("keydown"+g,p.prompt,a.handleKeyboard).on("click"+g,p.searchButton,a.query).on("mousedown"+g,p.results,a.event.result.mousedown).on("mouseup"+g,p.results,a.event.result.mouseup).on("click"+g,p.result,a.event.result.click)}},determine:{searchFields:function(){r&&void 0!==r.searchFields&&(v.searchFields=r.searchFields)}},event:{input:function(){clearTimeout(a.timer);a.timer=setTimeout(a.query,v.searchDelay)},focus:function(){a.set.focus();v.searchOnFocus&&a.has.minimumCharacters()&&a.query(function(){a.can.show()&&a.showResults()})},blur:function(){var t=i.activeElement===this,n=function(){a.cancel.query();a.remove.focus();a.timer=setTimeout(a.hideResults,v.hideDelay)};t||(st=!1,a.resultsClicked?(a.debug("Determining if user action caused search to close"),y.one("click.close"+g,p.results,function(t){if(a.is.inMessage(t)||ot)return void nt.focus();ot=!1;a.is.animating()||a.is.hidden()||n()})):(a.debug("Input blurred without user action, closing results"),n()))},result:{mousedown:function(){a.resultsClicked=!0},mouseup:function(){a.resultsClicked=!1},click:function(i){a.debug("Search result selected");var r=n(this),u=r.find(p.title).eq(0),f=r.is("a[href]")?r:r.find("a[href]").eq(0),e=f.attr("href")||!1,h=f.attr("target")||!1,o=(u.html(),u.length>0&&u.text()),s=a.get.results(),c=r.data(k.result)||a.get.result(o,s);if(n.isFunction(v.onSelect)&&v.onSelect.call(it,c,s)===!1)return a.debug("Custom onSelect callback cancelled default select action"),void(ot=!0);a.hideResults();o&&a.set.value(o);e&&(a.verbose("Opening search link found in result",f),"_blank"==h||i.ctrlKey?t.open(e):t.location.href=e)}}},handleKeyboard:function(n){var f,t=y.find(p.result),e=y.find(p.category),o=t.filter("."+w.active),i=t.index(o),s=t.length,h=o.length>0,r=n.which,u={backspace:8,enter:13,escape:27,upArrow:38,downArrow:40};if(r==u.escape&&(a.verbose("Escape key pressed, blurring search field"),a.hideResults(),st=!0),a.is.visible())if(r==u.enter){if(a.verbose("Enter key pressed, selecting active result"),t.filter("."+w.active).length>0)return a.event.result.click.call(t.filter("."+w.active),n),n.preventDefault(),!1}else r==u.upArrow&&h?(a.verbose("Up key pressed, changing active result"),f=i-1<0?i:i-1,e.removeClass(w.active),t.removeClass(w.active).eq(f).addClass(w.active).closest(e).addClass(w.active),n.preventDefault()):r==u.downArrow&&(a.verbose("Down key pressed, changing active result"),f=i+1>=s?i:i+1,e.removeClass(w.active),t.removeClass(w.active).eq(f).addClass(w.active).closest(e).addClass(w.active),n.preventDefault());else r==u.enter&&(a.verbose("Enter key pressed, executing query"),a.query(),a.set.buttonPressed(),nt.one("keyup",a.remove.buttonFocus))},setup:{api:function(t,i){var r={debug:v.debug,on:!1,cache:!0,action:"search",urlData:{query:t},onSuccess:function(n){a.parse.response.call(it,n,t);i()},onFailure:function(){a.displayMessage(tt.serverError);i()},onAbort:function(){},onError:a.error};n.extend(!0,r,v.apiSettings);a.verbose("Setting up API request",r);y.api(r)}},can:{useAPI:function(){return void 0!==n.fn.api},show:function(){return a.is.focused()&&!a.is.visible()&&!a.is.empty()},transition:function(){return v.transition&&void 0!==n.fn.transition&&y.transition("is supported")}},is:{animating:function(){return b.hasClass(w.animating)},hidden:function(){return b.hasClass(w.hidden)},inMessage:function(t){if(t.target){var r=n(t.target);return n.contains(i.documentElement,t.target)&&r.closest(p.message).length>0}},empty:function(){return""===b.html()},visible:function(){return b.filter(":visible").length>0},focused:function(){return nt.filter(":focus").length>0}},get:{inputEvent:function(){var n=nt[0];return void 0!==n&&void 0!==n.oninput?"input":void 0!==n&&void 0!==n.onpropertychange?"propertychange":"keyup"},value:function(){return nt.val()},results:function(){return y.data(k.results)},result:function(t,i){var u=["title","id"],r=!1;return t=void 0!==t?t:a.get.value(),i=void 0!==i?i:a.get.results(),"category"===v.type?(a.debug("Finding result that matches",t),n.each(i,function(i,f){if(n.isArray(f.results)&&(r=a.search.object(t,f.results,u)[0]))return!1})):(a.debug("Finding result in results object",t),r=a.search.object(t,i,u)[0]),r||!1}},select:{firstResult:function(){a.verbose("Selecting first result");et.first().addClass(w.active)}},set:{focus:function(){y.addClass(w.focus)},loading:function(){y.addClass(w.loading)},value:function(n){a.verbose("Setting search input value",n);nt.val(n)},type:function(n){n=n||v.type;"category"==v.type&&y.addClass(v.type)},buttonPressed:function(){ft.addClass(w.pressed)}},remove:{loading:function(){y.removeClass(w.loading)},focus:function(){y.removeClass(w.focus)},buttonPressed:function(){ft.removeClass(w.pressed)}},query:function(t){t=n.isFunction(t)?t:function(){};var i=a.get.value(),r=a.read.cache(i);t=t||function(){};a.has.minimumCharacters()?(r?(a.debug("Reading result from cache",i),a.save.results(r.results),a.addResults(r.html),a.inject.id(r.results),t()):(a.debug("Querying for",i),n.isPlainObject(v.source)||n.isArray(v.source)?(a.search.local(i),t()):a.can.useAPI()?a.search.remote(i,t):(a.error(tt.source),t())),v.onSearchQuery.call(it,i)):a.hideResults()},search:{local:function(n){var i,t=a.search.object(n,v.content);a.set.loading();a.save.results(t);a.debug("Returned local search results",t);i=a.generateResults({results:t});a.remove.loading();a.addResults(i);a.inject.id(t);a.write.cache(n,{html:i,results:t})},remote:function(t,i){i=n.isFunction(i)?i:function(){};y.api("is loading")&&y.api("abort");a.setup.api(t,i);y.api("query")},object:function(t,i,r){var u=[],f=[],o=t.toString().replace(ht.escape,"\\$&"),s=new RegExp(ht.beginsWith+o,"i"),e=function(t,i){var r=n.inArray(i,u)==-1,e=n.inArray(i,f)==-1;r&&e&&t.push(i)};return i=i||v.source,r=void 0!==r?r:v.searchFields,n.isArray(r)||(r=[r]),void 0===i||i===!1?(a.error(tt.source),[]):(n.each(r,function(r,o){n.each(i,function(n,i){"string"==typeof i[o]&&(i[o].search(s)!==-1?e(u,i):v.searchFullText&&a.fuzzySearch(t,i[o])&&e(f,i))})}),n.merge(u,f))}},fuzzySearch:function(n,t){var r=t.length,u=n.length,i,f,e;if("string"!=typeof n||(n=n.toLowerCase(),t=t.toLowerCase(),u>r))return!1;if(u===r)return n===t;n:for(i=0,f=0;i<u;i++){for(e=n.charCodeAt(i);f<r;)if(t.charCodeAt(f++)===e)continue n;return!1}return!0},parse:{response:function(n,t){var i=a.generateResults(n);a.verbose("Parsing server response",n);void 0!==n&&void 0!==t&&void 0!==n[d.results]&&(a.addResults(i),a.inject.id(n[d.results]),a.write.cache(t,{html:i,results:n[d.results]}),a.save.results(n[d.results]))}},cancel:{query:function(){a.can.useAPI()&&y.api("abort")}},has:{minimumCharacters:function(){return a.get.value().length>=v.minCharacters},results:function(){return 0!==b.length&&""!=b.html()}},clear:{cache:function(n){var t=y.data(k.cache);n?n&&t&&t[n]&&(a.debug("Removing value from cache",n),delete t[n],y.data(k.cache,t)):(a.debug("Clearing cache",n),y.removeData(k.cache))}},read:{cache:function(n){var t=y.data(k.cache);return!!v.cache&&(a.verbose("Checking cache for generated html for query",n),"object"==typeof t&&void 0!==t[n]&&t[n])}},create:{id:function(n,t){var r,i,u=n+1;return void 0!==t?(r=String.fromCharCode(97+t),i=r+u,a.verbose("Creating category result id",i)):(i=u,a.verbose("Creating result id",i)),i},results:function(){0===b.length&&(b=n("<div />").addClass(w.results).appendTo(y))}},inject:{result:function(n,t,i){a.verbose("Injecting result into results");var r=void 0!==i?b.children().eq(i).children(p.result).eq(t):b.children(p.result).eq(t);a.verbose("Injecting results metadata",r);r.data(k.result,n)},id:function(t){a.debug("Injecting unique ids into results");var r=0,i=0;return"category"===v.type?n.each(t,function(t,u){i=0;n.each(u.results,function(n){var t=u.results[n];void 0===t.id&&(t.id=a.create.id(i,r));a.inject.result(t,i,r);i++});r++}):n.each(t,function(n){var r=t[n];void 0===r.id&&(r.id=a.create.id(i));a.inject.result(r,i);i++}),t}},save:{results:function(n){a.verbose("Saving current search results to metadata",n);y.data(k.results,n)}},write:{cache:function(n,t){var i=void 0!==y.data(k.cache)?y.data(k.cache):{};v.cache&&(a.verbose("Writing generated html to cache",n,t),i[n]=t,y.data(k.cache,i))}},addResults:function(t){if(n.isFunction(v.onResultsAdd)&&v.onResultsAdd.call(b,t)===!1)return a.debug("onResultsAdd callback cancelled default action"),!1;t?(b.html(t),a.refreshResults(),v.selectFirstResult&&a.select.firstResult(),a.showResults()):a.hideResults(function(){b.empty()})},showResults:function(t){t=n.isFunction(t)?t:function(){};st||!a.is.visible()&&a.has.results()&&(a.can.transition()?(a.debug("Showing results with css animations"),b.transition({animation:v.transition+" in",debug:v.debug,verbose:v.verbose,duration:v.duration,onComplete:function(){t()},queue:!0})):(a.debug("Showing results with javascript"),b.stop().fadeIn(v.duration,v.easing)),v.onResultsOpen.call(b))},hideResults:function(t){t=n.isFunction(t)?t:function(){};a.is.visible()&&(a.can.transition()?(a.debug("Hiding results with css animations"),b.transition({animation:v.transition+" out",debug:v.debug,verbose:v.verbose,duration:v.duration,onComplete:function(){t()},queue:!0})):(a.debug("Hiding results with javascript"),b.stop().fadeOut(v.duration,v.easing)),v.onResultsClose.call(b))},generateResults:function(t){a.debug("Generating html from response",t);var r=v.templates[v.type],u=n.isPlainObject(t[d.results])&&!n.isEmptyObject(t[d.results]),f=n.isArray(t[d.results])&&t[d.results].length>0,i="";return u||f?(v.maxResults>0&&(u?"standard"==v.type&&a.error(tt.maxResults):t[d.results]=t[d.results].slice(0,v.maxResults)),n.isFunction(r)?i=r(t,d):a.error(tt.noTemplate,!1)):v.showNoResults&&(i=a.displayMessage(tt.noResults,"empty")),v.onResults.call(it,t),i},displayMessage:function(n,t){return t=t||"standard",a.debug("Displaying message",n,t),a.addResults(v.templates.message(n,t)),v.templates.message(n,t)},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:it,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;o=!1;clearTimeout(a.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");e.length>1&&(t+=" ("+e.length+")");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=rt;return i=i||l,r=it||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};c?(void 0===rt&&a.initialize(),a.invoke(h)):(void 0!==rt&&rt.invoke("destroy"),a.initialize())}),void 0!==u?u:this};n.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["title","description"],displayField:"",searchFullText:!0,automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(){},onResults:function(){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Semantic API module was not included",noResults:"Your search returned no results",logging:"Error in debug logging, exiting.",noEndpoint:"No search endpoint was specified",noTemplate:"A valid template name was not specified.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,beginsWith:"(?:s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=function(n){return t[n]};return/[&<>"'`]/.test(n)?n.replace(/[&<>"'`]/g,i):n},message:function(n,t){var i="";return void 0!==n&&void 0!==t&&(i+='<div class="message '+t+'">',i+="empty"==t?'<div class="header">No Results<\/div class="header"><div class="description">'+n+'<\/div class="description">':' <div class="description">'+n+"<\/div>",i+="<\/div>"),i},category:function(t,i){var r="";return n.fn.search.settings.templates.escape,void 0!==t[i.categoryResults]&&(n.each(t[i.categoryResults],function(t,u){void 0!==u[i.results]&&u.results.length>0&&(r+='<div class="category">',void 0!==u[i.categoryName]&&(r+='<div class="name">'+u[i.categoryName]+"<\/div>"),n.each(u.results,function(n,t){r+=t[i.url]?'<a class="result" href="'+t[i.url]+'">':'<a class="result">';void 0!==t[i.image]&&(r+='<div class="image"> <img src="'+t[i.image]+'"><\/div>');r+='<div class="content">';void 0!==t[i.price]&&(r+='<div class="price">'+t[i.price]+"<\/div>");void 0!==t[i.title]&&(r+='<div class="title">'+t[i.title]+"<\/div>");void 0!==t[i.description]&&(r+='<div class="description">'+t[i.description]+"<\/div>");r+="<\/div>";r+="<\/a>"}),r+="<\/div>")}),t[i.action]&&(r+='<a href="'+t[i.action][i.actionURL]+'" class="action">'+t[i.action][i.actionText]+"<\/a>"),r)},standard:function(t,i){var r="";return void 0!==t[i.results]&&(n.each(t[i.results],function(n,t){r+=t[i.url]?'<a class="result" href="'+t[i.url]+'">':'<a class="result">';void 0!==t[i.image]&&(r+='<div class="image"> <img src="'+t[i.image]+'"><\/div>');r+='<div class="content">';void 0!==t[i.price]&&(r+='<div class="price">'+t[i.price]+"<\/div>");void 0!==t[i.title]&&(r+='<div class="title">'+t[i.title]+"<\/div>");void 0!==t[i.description]&&(r+='<div class="description">'+t[i.description]+"<\/div>");r+="<\/div>";r+="<\/a>"}),t[i.action]&&(r+='<a href="'+t[i.action][i.actionURL]+'" class="action">'+t[i.action][i.actionText]+"<\/a>"),r)}}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.shape=function(r){var u,e=n(this),o=(n("body"),(new Date).getTime()),f=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1),l=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return e.each(function(){var y,a,t,rt=e.selector||"",v=n.isPlainObject(r)?n.extend(!0,{},n.fn.shape.settings,r):n.extend({},n.fn.shape.settings),ut=v.namespace,b=v.selector,ft=v.error,w=v.className,et="."+ut,it="module-"+ut,p=n(this),k=p.find(b.sides),d=p.find(b.side),tt=!1,g=this,nt=p.data(it);t={initialize:function(){t.verbose("Initializing module for",g);t.set.defaultSide();t.instantiate()},instantiate:function(){t.verbose("Storing instance of module",t);nt=t;p.data(it,nt)},destroy:function(){t.verbose("Destroying previous module for",g);p.removeData(it).off(et)},refresh:function(){t.verbose("Refreshing selector cache for",g);p=n(g);k=n(this).find(b.shape);d=n(this).find(b.side)},repaint:function(){t.verbose("Forcing repaint event");var n=k[0]||i.createElement("div");n.offsetWidth},animate:function(n,i){t.verbose("Animating box with properties",n);i=i||function(n){t.verbose("Executing animation callback");void 0!==n&&n.stopPropagation();t.reset();t.set.active()};v.beforeChange.call(a[0]);t.get.transitionEvent()?(t.verbose("Starting CSS animation"),p.addClass(w.animating),k.css(n).one(t.get.transitionEvent(),i),t.set.duration(v.duration),l(function(){p.addClass(w.animating);y.addClass(w.hidden)})):i()},queue:function(n){t.debug("Queueing animation of",n);k.one(t.get.transitionEvent(),function(){t.debug("Executing queued animation");setTimeout(function(){p.shape(n)},0)})},reset:function(){t.verbose("Animating states reset");p.removeClass(w.animating).attr("style","").removeAttr("style");k.attr("style","").removeAttr("style");d.attr("style","").removeAttr("style").removeClass(w.hidden);a.removeClass(w.animating).attr("style","").removeAttr("style")},is:{complete:function(){return d.filter("."+w.active)[0]==a[0]},animating:function(){return p.hasClass(w.animating)}},set:{defaultSide:function(){y=p.find("."+v.className.active);a=y.next(b.side).length>0?y.next(b.side):p.find(b.side).first();tt=!1;t.verbose("Active side set to",y);t.verbose("Next side set to",a)},duration:function(n){n=n||v.duration;n="number"==typeof n?n+"ms":n;t.verbose("Setting animation duration",n);(v.duration||0===v.duration)&&k.add(d).css({"-webkit-transition-duration":n,"-moz-transition-duration":n,"-ms-transition-duration":n,"-o-transition-duration":n,"transition-duration":n})},currentStageSize:function(){var n=p.find("."+v.className.active),t=n.outerWidth(!0),i=n.outerHeight(!0);p.css({width:t,height:i})},stageSize:function(){var n=p.clone().addClass(w.loading),i=n.find("."+v.className.active),r=tt?n.find(b.side).eq(tt):i.next(b.side).length>0?i.next(b.side):n.find(b.side).first(),u="next"==v.width?r.outerWidth(!0):"initial"==v.width?p.width():v.width,f="next"==v.height?r.outerHeight(!0):"initial"==v.height?p.height():v.height;i.removeClass(w.active);r.addClass(w.active);n.insertAfter(p);n.remove();"auto"!=v.width&&(p.css("width",u+v.jitter),t.verbose("Specifying width during animation",u));"auto"!=v.height&&(p.css("height",f+v.jitter),t.verbose("Specifying height during animation",f))},nextSide:function(n){tt=n;a=d.filter(n);tt=d.index(a);0===a.length&&(t.set.defaultSide(),t.error(ft.side));t.verbose("Next side manually set to",a)},active:function(){t.verbose("Setting new side to active",a);d.removeClass(w.active);a.addClass(w.active);v.onChange.call(a[0]);t.set.defaultSide()}},flip:{up:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip up");else{t.debug("Flipping up",a);var n=t.get.transform.up();t.set.stageSize();t.stage.above();t.animate(n)}},down:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip down");else{t.debug("Flipping down",a);var n=t.get.transform.down();t.set.stageSize();t.stage.below();t.animate(n)}},left:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip left");else{t.debug("Flipping left",a);var n=t.get.transform.left();t.set.stageSize();t.stage.left();t.animate(n)}},right:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);if(t.is.animating())t.queue("flip right");else{t.debug("Flipping right",a);var n=t.get.transform.right();t.set.stageSize();t.stage.right();t.animate(n)}},over:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);t.is.animating()?t.queue("flip over"):(t.debug("Flipping over",a),t.set.stageSize(),t.stage.behind(),t.animate(t.get.transform.over()))},back:function(){if(t.is.complete()&&!t.is.animating()&&!v.allowRepeats)return void t.debug("Side already visible",a);t.is.animating()?t.queue("flip back"):(t.debug("Flipping back",a),t.set.stageSize(),t.stage.behind(),t.animate(t.get.transform.back()))}},get:{transform:{up:function(){var n={y:-((y.outerHeight(!0)-a.outerHeight(!0))/2),z:-(y.outerHeight(!0)/2)};return{transform:"translateY("+n.y+"px) translateZ("+n.z+"px) rotateX(-90deg)"}},down:function(){var n={y:-((y.outerHeight(!0)-a.outerHeight(!0))/2),z:-(y.outerHeight(!0)/2)};return{transform:"translateY("+n.y+"px) translateZ("+n.z+"px) rotateX(90deg)"}},left:function(){var n={x:-((y.outerWidth(!0)-a.outerWidth(!0))/2),z:-(y.outerWidth(!0)/2)};return{transform:"translateX("+n.x+"px) translateZ("+n.z+"px) rotateY(90deg)"}},right:function(){var n={x:-((y.outerWidth(!0)-a.outerWidth(!0))/2),z:-(y.outerWidth(!0)/2)};return{transform:"translateX("+n.x+"px) translateZ("+n.z+"px) rotateY(-90deg)"}},over:function(){return{transform:"translateX("+{x:-((y.outerWidth(!0)-a.outerWidth(!0))/2)}.x+"px) rotateY(180deg)"}},back:function(){return{transform:"translateX("+{x:-((y.outerWidth(!0)-a.outerWidth(!0))/2)}.x+"px) rotateY(-180deg)"}}},transitionEvent:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]},nextSide:function(){return y.next(b.side).length>0?y.next(b.side):p.find(b.side).first()}},stage:{above:function(){var n={origin:(y.outerHeight(!0)-a.outerHeight(!0))/2,depth:{active:a.outerHeight(!0)/2,next:y.outerHeight(!0)/2}};t.verbose("Setting the initial animation position as above",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({top:n.origin+"px",transform:"rotateX(90deg) translateZ("+n.depth.next+"px)"})},below:function(){var n={origin:(y.outerHeight(!0)-a.outerHeight(!0))/2,depth:{active:a.outerHeight(!0)/2,next:y.outerHeight(!0)/2}};t.verbose("Setting the initial animation position as below",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({top:n.origin+"px",transform:"rotateX(-90deg) translateZ("+n.depth.next+"px)"})},left:function(){var i={active:y.outerWidth(!0),next:a.outerWidth(!0)},n={origin:(i.active-i.next)/2,depth:{active:i.next/2,next:i.active/2}};t.verbose("Setting the initial animation position as left",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({left:n.origin+"px",transform:"rotateY(-90deg) translateZ("+n.depth.next+"px)"})},right:function(){var i={active:y.outerWidth(!0),next:a.outerWidth(!0)},n={origin:(i.active-i.next)/2,depth:{active:i.next/2,next:i.active/2}};t.verbose("Setting the initial animation position as left",a,n);k.css({transform:"translateZ(-"+n.depth.active+"px)"});y.css({transform:"rotateY(0deg) translateZ("+n.depth.active+"px)"});a.addClass(w.animating).css({left:n.origin+"px",transform:"rotateY(90deg) translateZ("+n.depth.next+"px)"})},behind:function(){var n={active:y.outerWidth(!0),next:a.outerWidth(!0)},i={origin:(n.active-n.next)/2,depth:{active:n.next/2,next:n.active/2}};t.verbose("Setting the initial animation position as behind",a,i);y.css({transform:"rotateY(0deg)"});a.addClass(w.animating).css({left:i.origin+"px",transform:"rotateY(-180deg)"})}},setting:function(i,r){if(t.debug("Changing setting",i,r),n.isPlainObject(i))n.extend(!0,v,i);else{if(void 0===r)return v[i];n.isPlainObject(v[i])?n.extend(!0,v[i],r):v[i]=r}},internal:function(i,r){if(n.isPlainObject(i))n.extend(!0,t,i);else{if(void 0===r)return t[i];t[i]=r}},debug:function(){!v.silent&&v.debug&&(v.performance?t.performance.log(arguments):(t.debug=Function.prototype.bind.call(console.info,console,v.name+":"),t.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?t.performance.log(arguments):(t.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),t.verbose.apply(console,arguments)))},error:function(){v.silent||(t.error=Function.prototype.bind.call(console.error,console,v.name+":"),t.error.apply(console,arguments))},performance:{log:function(n){var i,r,u;v.performance&&(i=(new Date).getTime(),u=o||i,r=i-u,o=i,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":r}));clearTimeout(t.performance.timer);t.performance.timer=setTimeout(t.performance.display,500)},display:function(){var i=v.name+":",r=0;o=!1;clearTimeout(t.performance.timer);n.each(f,function(n,t){r+=t["Execution Time"]});i+=" "+r+"ms";rt&&(i+=" '"+rt+"'");e.length>1&&(i+=" ("+e.length+")");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(i),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=nt;return i=i||c,r=g||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};h?(void 0===nt&&t.initialize(),t.invoke(s)):(void 0!==nt&&nt.invoke("destroy"),t.initialize())}),void 0!==u?u:this};n.fn.shape.settings={name:"Shape",silent:!1,debug:!1,verbose:!1,jitter:0,performance:!0,namespace:"shape",width:"initial",height:"initial",beforeChange:function(){},onChange:function(){},allowRepeats:!1,duration:!1,error:{side:"You tried to switch to a side that does not exist.",method:"The method you called is not defined"},className:{animating:"animating",hidden:"hidden",loading:"loading",active:"active"},selector:{sides:".sides",side:".side"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.sidebar=function(r){var u,c=n(this),o=n(t),s=n(i),l=n("html"),y=n("head"),a=c.selector||"",h=(new Date).getTime(),f=[],v=arguments[0],p="string"==typeof v,w=[].slice.call(arguments,1),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)};return c.each(function(){var ft,tt,ct,vt,ut,c,b=n.isPlainObject(r)?n.extend(!0,{},n.fn.sidebar.settings,r):n.extend({},n.fn.sidebar.settings),it=b.selector,d=b.className,yt=b.namespace,lt=b.regExp,ot=b.error,st="."+yt,at="module-"+yt,k=n(this),nt=n(b.context),et=k.children(it.sidebar),pt=nt.children(it.fixed),rt=nt.children(it.pusher),g=this,ht=k.data(at);c={initialize:function(){c.debug("Initializing sidebar",r);c.create.id();ut=c.get.transitionEvent();c.is.ios()&&c.set.ios();b.delaySetup?e(c.setup.layout):c.setup.layout();e(function(){c.setup.cache()});c.instantiate()},instantiate:function(){c.verbose("Storing instance of module",c);ht=c;k.data(at,c)},create:{id:function(){ct=(Math.random().toString(16)+"000000000").substr(2,8);tt="."+ct;c.verbose("Creating unique id for element",ct)}},destroy:function(){c.verbose("Destroying previous module for",k);k.off(st).removeData(at);c.is.ios()&&c.remove.ios();nt.off(tt);o.off(tt);s.off(tt)},event:{clickaway:function(n){var t=rt.find(n.target).length>0||rt.is(n.target),i=nt.is(n.target);t&&(c.verbose("User clicked on dimmed page"),c.hide());i&&(c.verbose("User clicked on dimmable context (scaled out page)"),c.hide())},touch:function(){},containScroll:function(){g.scrollTop<=0&&(g.scrollTop=1);g.scrollTop+g.offsetHeight>=g.scrollHeight&&(g.scrollTop=g.scrollHeight-g.offsetHeight-1)},scroll:function(t){0===n(t.target).closest(it.sidebar).length&&t.preventDefault()}},bind:{clickaway:function(){c.verbose("Adding clickaway events to context",nt);b.closable&&nt.on("click"+tt,c.event.clickaway).on("touchend"+tt,c.event.clickaway)},scrollLock:function(){b.scrollLock&&(c.debug("Disabling page scroll"),o.on("DOMMouseScroll"+tt,c.event.scroll));c.verbose("Adding events to contain sidebar scroll");s.on("touchmove"+tt,c.event.touch);k.on("scroll"+st,c.event.containScroll)}},unbind:{clickaway:function(){c.verbose("Removing clickaway events from context",nt);nt.off(tt)},scrollLock:function(){c.verbose("Removing scroll lock from page");s.off(tt);o.off(tt);k.off("scroll"+st)}},add:{inlineCSS:function(){var r,u=c.cache.width||k.outerWidth(),f=c.cache.height||k.outerHeight(),e=c.is.rtl(),t=c.get.direction(),i={left:u,right:-u,top:f,bottom:-f};e&&(c.verbose("RTL detected, flipping widths"),i.left=-u,i.right=u);r="<style>";"left"===t||"right"===t?(c.debug("Adding CSS rules for animation distance",u),r+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher {   -webkit-transform: translate3d("+i[t]+"px, 0, 0);           transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(r+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher {   -webkit-transform: translate3d(0, "+i[t]+"px, 0);           transform: translate3d(0, "+i[t]+"px, 0); }");c.is.ie()&&("left"===t||"right"===t?(c.debug("Adding CSS rules for animation distance",u),r+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher:after {   -webkit-transform: translate3d("+i[t]+"px, 0, 0);           transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!=t||(r+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher:after {   -webkit-transform: translate3d(0, "+i[t]+"px, 0);           transform: translate3d(0, "+i[t]+"px, 0); }"),r+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher:after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher:after {   -webkit-transform: translate3d(0px, 0, 0);           transform: translate3d(0px, 0, 0); }");r+="<\/style>";ft=n(r).appendTo(y);c.debug("Adding sizing css to head",ft)}},refresh:function(){c.verbose("Refreshing selector cache");nt=n(b.context);et=nt.children(it.sidebar);rt=nt.children(it.pusher);pt=nt.children(it.fixed);c.clear.cache()},refreshSidebars:function(){c.verbose("Refreshing other sidebars");et=nt.children(it.sidebar)},repaint:function(){c.verbose("Forcing repaint event");g.style.display="none";g.offsetHeight;g.scrollTop=g.scrollTop;g.style.display=""},setup:{cache:function(){c.cache={width:k.outerWidth(),height:k.outerHeight(),rtl:"rtl"==k.css("direction")}},layout:function(){0===nt.children(it.pusher).length&&(c.debug("Adding wrapper element for sidebar"),c.error(ot.pusher),rt=n('<div class="pusher" />'),nt.children().not(it.omitted).not(et).wrapAll(rt),c.refresh());0!==k.nextAll(it.pusher).length&&k.nextAll(it.pusher)[0]===rt[0]||(c.debug("Moved sidebar to correct parent element"),c.error(ot.movedSidebar,g),k.detach().prependTo(nt),c.refresh());c.clear.cache();c.set.pushable();c.set.direction()}},attachEvents:function(t,i){var r=n(t);i=n.isFunction(c[i])?c[i]:c.toggle;r.length>0?(c.debug("Attaching sidebar events to element",t,i),r.on("click"+st,i)):c.error(ot.notFound,t)},show:function(t){if(t=n.isFunction(t)?t:function(){},c.is.hidden()){if(c.refreshSidebars(),b.overlay&&(c.error(ot.overlay),b.transition="overlay"),c.refresh(),c.othersActive())if(c.debug("Other sidebars currently visible"),b.exclusive){if("overlay"!=b.transition)return void c.hideOthers(c.show);c.hideOthers()}else b.transition="overlay";c.pushPage(function(){t.call(g);b.onShow.call(g)});b.onChange.call(g);b.onVisible.call(g)}else c.debug("Sidebar is already visible")},hide:function(t){t=n.isFunction(t)?t:function(){};(c.is.visible()||c.is.animating())&&(c.debug("Hiding sidebar",t),c.refreshSidebars(),c.pullPage(function(){t.call(g);b.onHidden.call(g)}),b.onChange.call(g),b.onHide.call(g))},othersAnimating:function(){return et.not(k).filter("."+d.animating).length>0},othersVisible:function(){return et.not(k).filter("."+d.visible).length>0},othersActive:function(){return c.othersVisible()||c.othersAnimating()},hideOthers:function(n){var t=et.not(k).filter("."+d.visible),i=t.length,r=0;n=n||function(){};t.sidebar("hide",function(){++r==i&&n()})},toggle:function(){c.verbose("Determining toggled direction");c.is.hidden()?c.show():c.hide()},pushPage:function(t){var u,f,r,o=c.get.transition(),i="overlay"===o||c.othersActive()?k:rt;t=n.isFunction(t)?t:function(){};"scale down"==b.transition&&c.scrollToTop();c.set.transition(o);c.repaint();u=function(){c.bind.clickaway();c.add.inlineCSS();c.set.animating();c.set.visible()};f=function(){c.set.dimmed()};r=function(n){n.target==i[0]&&(i.off(ut+tt,r),c.remove.animating(),c.bind.scrollLock(),t.call(g))};i.off(ut+tt);i.on(ut+tt,r);e(u);b.dimPage&&!c.othersVisible()&&e(f)},pullPage:function(t){var f,r,u=c.get.transition(),i="overlay"==u||c.othersActive()?k:rt;t=n.isFunction(t)?t:function(){};c.verbose("Removing context push state",c.get.direction());c.unbind.clickaway();c.unbind.scrollLock();f=function(){c.set.transition(u);c.set.animating();c.remove.visible();b.dimPage&&!c.othersVisible()&&rt.removeClass(d.dimmed)};r=function(n){n.target==i[0]&&(i.off(ut+tt,r),c.remove.animating(),c.remove.transition(),c.remove.inlineCSS(),("scale down"==u||b.returnScroll&&c.is.mobile())&&c.scrollBack(),t.call(g))};i.off(ut+tt);i.on(ut+tt,r);e(f)},scrollToTop:function(){c.verbose("Scrolling to top of page to avoid animation issues");vt=n(t).scrollTop();k.scrollTop(0);t.scrollTo(0,0)},scrollBack:function(){c.verbose("Scrolling back to original page position");t.scrollTo(0,vt)},clear:{cache:function(){c.verbose("Clearing cached dimensions");c.cache={}}},set:{ios:function(){l.addClass(d.ios)},pushed:function(){nt.addClass(d.pushed)},pushable:function(){nt.addClass(d.pushable)},dimmed:function(){rt.addClass(d.dimmed)},active:function(){k.addClass(d.active)},animating:function(){k.addClass(d.animating)},transition:function(n){n=n||c.get.transition();k.addClass(n)},direction:function(n){n=n||c.get.direction();k.addClass(d[n])},visible:function(){k.addClass(d.visible)},overlay:function(){k.addClass(d.overlay)}},remove:{inlineCSS:function(){c.debug("Removing inline css styles",ft);ft&&ft.length>0&&ft.remove()},ios:function(){l.removeClass(d.ios)},pushed:function(){nt.removeClass(d.pushed)},pushable:function(){nt.removeClass(d.pushable)},active:function(){k.removeClass(d.active)},animating:function(){k.removeClass(d.animating)},transition:function(n){n=n||c.get.transition();k.removeClass(n)},direction:function(n){n=n||c.get.direction();k.removeClass(d[n])},visible:function(){k.removeClass(d.visible)},overlay:function(){k.removeClass(d.overlay)}},get:{direction:function(){return k.hasClass(d.top)?d.top:k.hasClass(d.right)?d.right:k.hasClass(d.bottom)?d.bottom:d.left},transition:function(){var n,t=c.get.direction();return n=c.is.mobile()?"auto"==b.mobileTransition?b.defaultTransition.mobile[t]:b.mobileTransition:"auto"==b.transition?b.defaultTransition.computer[t]:b.transition,c.verbose("Determined transition",n),n},transitionEvent:function(){var n,r=i.createElement("element"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==r.style[n])return t[n]}},is:{ie:function(){var n=!t.ActiveXObject&&"ActiveXObject"in t,i="ActiveXObject"in t;return n||i},ios:function(){var n=navigator.userAgent,t=n.match(lt.ios),i=n.match(lt.mobileChrome);return!(!t||i)&&(c.verbose("Browser was found to be iOS",n),!0)},mobile:function(){var n=navigator.userAgent;return n.match(lt.mobile)?(c.verbose("Browser was found to be mobile",n),!0):(c.verbose("Browser is not mobile, using regular transition",n),!1)},hidden:function(){return!c.is.visible()},visible:function(){return k.hasClass(d.visible)},open:function(){return c.is.visible()},closed:function(){return c.is.hidden()},vertical:function(){return k.hasClass(d.top)},animating:function(){return nt.hasClass(d.animating)},rtl:function(){return void 0===c.cache.rtl&&(c.cache.rtl="rtl"==k.css("direction")),c.cache.rtl}},setting:function(t,i){if(c.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,b,t);else{if(void 0===i)return b[t];n.isPlainObject(b[t])?n.extend(!0,b[t],i):b[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,c,t);else{if(void 0===i)return c[t];c[t]=i}},debug:function(){!b.silent&&b.debug&&(b.performance?c.performance.log(arguments):(c.debug=Function.prototype.bind.call(console.info,console,b.name+":"),c.debug.apply(console,arguments)))},verbose:function(){!b.silent&&b.verbose&&b.debug&&(b.performance?c.performance.log(arguments):(c.verbose=Function.prototype.bind.call(console.info,console,b.name+":"),c.verbose.apply(console,arguments)))},error:function(){b.silent||(c.error=Function.prototype.bind.call(console.error,console,b.name+":"),c.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;b.performance&&(t=(new Date).getTime(),r=h||t,i=t-r,h=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:g,"Execution Time":i}));clearTimeout(c.performance.timer);c.performance.timer=setTimeout(c.performance.display,500)},display:function(){var t=b.name+":",i=0;h=!1;clearTimeout(c.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";a&&(t+=" '"+a+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=ht;return i=i||w,r=g||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(c.error(ot.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};p?(void 0===ht&&c.initialize(),c.invoke(v)):(void 0!==ht&&c.invoke("destroy"),c.initialize())}),void 0!==u?u:this};n.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,duration:500,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",dimmed:"dimmed",ios:"ios",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.sticky=function(r){var u,o=n(this),s=o.selector||"",e=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,l=[].slice.call(arguments,1);return o.each(function(){var b,g,tt,d,o,a=n.isPlainObject(r)?n.extend(!0,{},n.fn.sticky.settings,r):n.extend({},n.fn.sticky.settings),y=a.className,ft=a.namespace,it=a.error,k="."+ft,rt="module-"+ft,v=n(this),et=n(t),w=n(a.scrollContext),nt=(v.selector,v.data(rt)),ut=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)},p=this;o={initialize:function(){o.determineContainer();o.determineContext();o.verbose("Initializing sticky",a,b);o.save.positions();o.checkErrors();o.bind.events();a.observeChanges&&o.observeChanges();o.instantiate()},instantiate:function(){o.verbose("Storing instance of module",o);nt=o;v.data(rt,o)},destroy:function(){o.verbose("Destroying previous instance");o.reset();tt&&tt.disconnect();d&&d.disconnect();et.off("load"+k,o.event.load).off("resize"+k,o.event.resize);w.off("scrollchange"+k,o.event.scrollchange);v.removeData(rt)},observeChanges:function(){"MutationObserver"in t&&(tt=new MutationObserver(o.event.documentChanged),d=new MutationObserver(o.event.changed),tt.observe(i,{childList:!0,subtree:!0}),d.observe(p,{childList:!0,subtree:!0}),d.observe(g[0],{childList:!0,subtree:!0}),o.debug("Setting up mutation observer",d))},determineContainer:function(){b=a.container?n(a.container):v.offsetParent()},determineContext:function(){g=a.context?n(a.context):b;0===g.length},checkErrors:function(){if(o.is.hidden()&&o.error(it.visible,v),o.cache.element.height>o.cache.context.height)return o.reset(),void o.error(it.elementSize,v)},bind:{events:function(){et.on("load"+k,o.event.load).on("resize"+k,o.event.resize);w.off("scroll"+k).on("scroll"+k,o.event.scroll).on("scrollchange"+k,o.event.scrollchange)}},event:{changed:function(n){clearTimeout(o.timer);o.timer=setTimeout(function(){o.verbose("DOM tree modified, updating sticky menu",n);o.refresh()},100)},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==p||n(t).find(p).length>0)&&(o.debug("Element removed from DOM, tearing down events"),o.destroy())})})},load:function(){o.verbose("Page contents finished loading");ut(o.refresh)},resize:function(){o.verbose("Window resized");ut(o.refresh)},scroll:function(){ut(function(){w.triggerHandler("scrollchange"+k,w.scrollTop())})},scrollchange:function(n,t){o.stick(t);a.onScroll.call(p)}},refresh:function(n){o.reset();a.context||o.determineContext();n&&o.determineContainer();o.save.positions();o.stick();a.onReposition.call(p)},supports:{sticky:function(){var t=n("<div/>");return t[0],t.addClass(y.supported),t.css("position").match("sticky")}},save:{lastScroll:function(n){o.lastScroll=n},elementScroll:function(n){o.elementScroll=n},positions:function(){var t={height:w.height()},n={margin:{top:parseInt(v.css("margin-top"),10),bottom:parseInt(v.css("margin-bottom"),10)},offset:v.offset(),width:v.outerWidth(),height:v.outerHeight()},i={offset:g.offset(),height:g.outerHeight()};b.outerHeight();o.is.standardScroll()||(o.debug("Non-standard scroll. Removing scroll offset from element offset"),t.top=w.scrollTop(),t.left=w.scrollLeft(),n.offset.top+=t.top,i.offset.top+=t.top,n.offset.left+=t.left,i.offset.left+=t.left);o.cache={fits:n.height<t.height,scrollContext:{height:t.height},element:{margin:n.margin,top:n.offset.top-n.margin.top,left:n.offset.left,width:n.width,height:n.height,bottom:n.offset.top+n.height},context:{top:i.offset.top,height:i.height,bottom:i.offset.top+i.height}};o.set.containerSize();o.set.size();o.stick();o.debug("Caching element positions",o.cache)}},get:{direction:function(n){var t="down";return n=n||w.scrollTop(),void 0!==o.lastScroll&&(o.lastScroll<n?t="down":o.lastScroll>n&&(t="up")),t},scrollChange:function(n){return n=n||w.scrollTop(),o.lastScroll?n-o.lastScroll:0},currentElementScroll:function(){return o.elementScroll?o.elementScroll:o.is.top()?Math.abs(parseInt(v.css("top"),10))||0:Math.abs(parseInt(v.css("bottom"),10))||0},elementScroll:function(n){n=n||w.scrollTop();var r=o.cache.element,u=o.cache.scrollContext,f=o.get.scrollChange(n),i=r.height-u.height+a.offset,e=o.get.currentElementScroll(),t=e+f;return o.cache.fits||t<0?0:t>i?i:t}},remove:{lastScroll:function(){delete o.lastScroll},elementScroll:function(){delete o.elementScroll},offset:function(){v.css("margin-top","")}},set:{offset:function(){o.verbose("Setting offset on element",a.offset);v.css("margin-top",a.offset)},containerSize:function(){var n=b.get(0).tagName;"HTML"===n||"body"==n?o.determineContainer():Math.abs(b.outerHeight()-o.cache.context.height)>a.jitter&&(o.debug("Context has padding, specifying exact height for container",o.cache.context.height),b.css({height:o.cache.context.height}))},minimumSize:function(){var n=o.cache.element;b.css("min-height",n.height)},scroll:function(n){o.debug("Setting scroll on element",n);o.elementScroll!=n&&(o.is.top()&&v.css("bottom","").css("top",-n),o.is.bottom()&&v.css("top","").css("bottom",n))},size:function(){0!==o.cache.element.height&&0!==o.cache.element.width&&(p.style.setProperty("width",o.cache.element.width+"px","important"),p.style.setProperty("height",o.cache.element.height+"px","important"))}},is:{standardScroll:function(){return w[0]==t},top:function(){return v.hasClass(y.top)},bottom:function(){return v.hasClass(y.bottom)},initialPosition:function(){return!o.is.fixed()&&!o.is.bound()},hidden:function(){return!v.is(":visible")},bound:function(){return v.hasClass(y.bound)},fixed:function(){return v.hasClass(y.fixed)}},stick:function(n){var f=n||w.scrollTop(),u=o.cache,e=u.fits,t=u.element,c=u.scrollContext,i=u.context,s=o.is.bottom()&&a.pushing?a.bottomOffset:a.offset,n={top:f+s,bottom:f+s+c.height},r=(o.get.direction(n.top),e?0:o.get.elementScroll(n.top)),h=!e;0!==t.height&&(o.is.initialPosition()?n.top>=i.bottom?(o.debug("Initial element position is bottom of container"),o.bindBottom()):n.top>t.top&&(t.height+n.top-r>=i.bottom?(o.debug("Initial element position is bottom of container"),o.bindBottom()):(o.debug("Initial element position is fixed"),o.fixTop())):o.is.fixed()?o.is.top()?n.top<=t.top?(o.debug("Fixed element reached top of container"),o.setInitialPosition()):t.height+n.top-r>=i.bottom?(o.debug("Fixed element reached bottom of container"),o.bindBottom()):h&&(o.set.scroll(r),o.save.lastScroll(n.top),o.save.elementScroll(r)):o.is.bottom()&&(n.bottom-t.height<=t.top?(o.debug("Bottom fixed rail has reached top of container"),o.setInitialPosition()):n.bottom>=i.bottom?(o.debug("Bottom fixed rail has reached bottom of container"),o.bindBottom()):h&&(o.set.scroll(r),o.save.lastScroll(n.top),o.save.elementScroll(r))):o.is.bottom()&&(n.top<=t.top?(o.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),o.setInitialPosition()):a.pushing?o.is.bound()&&n.bottom<=i.bottom&&(o.debug("Fixing bottom attached element to bottom of browser."),o.fixBottom()):o.is.bound()&&n.top<=i.bottom-t.height&&(o.debug("Fixing bottom attached element to top of browser."),o.fixTop())))},bindTop:function(){o.debug("Binding element to top of parent container");o.remove.offset();v.css({left:"",top:"",marginBottom:""}).removeClass(y.fixed).removeClass(y.bottom).addClass(y.bound).addClass(y.top);a.onTop.call(p);a.onUnstick.call(p)},bindBottom:function(){o.debug("Binding element to bottom of parent container");o.remove.offset();v.css({left:"",top:""}).removeClass(y.fixed).removeClass(y.top).addClass(y.bound).addClass(y.bottom);a.onBottom.call(p);a.onUnstick.call(p)},setInitialPosition:function(){o.debug("Returning to initial position");o.unfix();o.unbind()},fixTop:function(){o.debug("Fixing element to top of page");o.set.minimumSize();o.set.offset();v.css({left:o.cache.element.left,bottom:"",marginBottom:""}).removeClass(y.bound).removeClass(y.bottom).addClass(y.fixed).addClass(y.top);a.onStick.call(p)},fixBottom:function(){o.debug("Sticking element to bottom of page");o.set.minimumSize();o.set.offset();v.css({left:o.cache.element.left,bottom:"",marginBottom:""}).removeClass(y.bound).removeClass(y.top).addClass(y.fixed).addClass(y.bottom);a.onStick.call(p)},unbind:function(){o.is.bound()&&(o.debug("Removing container bound position on element"),o.remove.offset(),v.removeClass(y.bound).removeClass(y.top).removeClass(y.bottom))},unfix:function(){o.is.fixed()&&(o.debug("Removing fixed position on element"),o.remove.offset(),v.removeClass(y.fixed).removeClass(y.top).removeClass(y.bottom),a.onUnstick.call(p))},reset:function(){o.debug("Resetting elements position");o.unbind();o.unfix();o.resetCSS();o.remove.offset();o.remove.lastScroll()},resetCSS:function(){v.css({width:"",height:""});b.css({height:""})},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,o,t);else{if(void 0===i)return o[t];o[t]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,a.name+":"),o.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),o.verbose.apply(console,arguments)))},error:function(){a.silent||(o.error=Function.prototype.bind.call(console.error,console,a.name+":"),o.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;a.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:p,"Execution Time":i}));clearTimeout(o.performance.timer);o.performance.timer=setTimeout(o.performance.display,0)},display:function(){var t=a.name+":",i=0;e=!1;clearTimeout(o.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var s,e,o,f=nt;return i=i||l,r=p||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};c?(void 0===nt&&o.initialize(),o.invoke(h)):(void 0!==nt&&nt.invoke("destroy"),o.initialize())}),void 0!==u?u:this};n.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:t,offset:0,bottomOffset:0,jitter:5,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{container:"Sticky element must be inside a relative container",visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to surpress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."},className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.tab=function(r){var u,f=n(n.isFunction(this)?t:this),s=f.selector||"",o=(new Date).getTime(),e=[],h=arguments[0],l="string"==typeof h,a=[].slice.call(arguments,1),c=!1;return f.each(function(){var d,w,b,g,v,nt,y=n.isPlainObject(r)?n.extend(!0,{},n.fn.tab.settings,r):n.extend({},n.fn.tab.settings),p=y.className,tt=y.metadata,ut=y.selector,it=y.error,ht="."+y.namespace,ft="module-"+y.namespace,k=n(this),et={},ct=!0,ot=0,st=this,rt=k.data(ft);v={initialize:function(){v.debug("Initializing tab menu item",k);v.fix.callbacks();v.determineTabs();v.debug("Determining tabs",y.context,w);y.auto&&v.set.auto();v.bind.events();y.history&&!c&&(v.initializeHistory(),c=!0);v.instantiate()},instantiate:function(){v.verbose("Storing instance of module",v);rt=v;k.data(ft,v)},destroy:function(){v.debug("Destroying tabs",k);k.removeData(ft).off(ht)},bind:{events:function(){n.isWindow(st)||(v.debug("Attaching tab activation events to element",k),k.on("click"+ht,v.event.click))}},determineTabs:function(){var t;"parent"===y.context?(k.closest(ut.ui).length>0?(t=k.closest(ut.ui),v.verbose("Using closest UI element as parent",t)):t=k,d=t.parent(),v.verbose("Determined parent element for creating context",d)):y.context?(d=n(y.context),v.verbose("Using selector for tab context",y.context,d)):d=n("body");y.childrenOnly?(w=d.children(ut.tabs),v.debug("Searching tab context children for tabs",d,w)):(w=d.find(ut.tabs),v.debug("Searching tab context for tabs",d,w))},fix:{callbacks:function(){n.isPlainObject(r)&&(r.onTabLoad||r.onTabInit)&&(r.onTabLoad&&(r.onLoad=r.onTabLoad,delete r.onTabLoad,v.error(it.legacyLoad,r.onLoad)),r.onTabInit&&(r.onFirstLoad=r.onTabInit,delete r.onTabInit,v.error(it.legacyInit,r.onFirstLoad)),y=n.extend(!0,{},n.fn.tab.settings,r))}},initializeHistory:function(){if(v.debug("Initializing page state"),void 0===n.address)return v.error(it.state),!1;if("state"==y.historyType){if(v.debug("Using HTML5 to manage state"),y.path===!1)return v.error(it.path),!1;n.address.history(!0).state(y.path)}n.address.bind("change",v.event.history.change)},event:{click:function(t){var i=n(this).data(tt.tab);void 0!==i?(y.history?(v.verbose("Updating page state",t),n.address.value(i)):(v.verbose("Changing tab",t),v.changeTab(i)),t.preventDefault()):v.debug("No tab specified")},history:{change:function(t){var i=t.pathNames.join("/")||v.get.initialPath(),r=y.templates.determineTitle(i)||!1;v.performance.display();v.debug("History change event",i,t);nt=t;void 0!==i&&v.changeTab(i);r&&n.address.title(r)}}},refresh:function(){b&&(v.debug("Refreshing tab",b),v.changeTab(b))},cache:{read:function(n){return void 0!==n&&et[n]},add:function(n,t){n=n||b;v.debug("Adding cached content for",n);et[n]=t},remove:function(n){n=n||b;v.debug("Removing cached content for",n);delete et[n]}},set:{auto:function(){var t="string"==typeof y.path?y.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";v.verbose("Setting up automatic tab retrieval from server",t);n.isPlainObject(y.apiSettings)?y.apiSettings.url=t:y.apiSettings={url:t}},loading:function(n){var t=v.get.tabElement(n);t.hasClass(p.loading)||(v.verbose("Setting loading state for",t),t.addClass(p.loading).siblings(w).removeClass(p.active+" "+p.loading),t.length>0&&y.onRequest.call(t[0],n))},state:function(t){n.address.value(t)}},changeTab:function(i){var e=t.history&&t.history.pushState,u=e&&y.ignoreFirstLoad&&ct,f=y.auto||n.isPlainObject(y.apiSettings),r=f&&!u?v.utilities.pathToArray(i):v.get.defaultPathArray(i);i=v.utilities.arrayToPath(r);n.each(r,function(t,e){var h,c,a,l,w=r.slice(0,t+1),o=v.utilities.arrayToPath(w),rt=v.is.tab(o),ut=t+1==r.length,s=v.get.tabElement(o);if(v.verbose("Looking for tab",e),rt){if(v.verbose("Tab was found",e),b=o,g=v.utilities.filterArray(r,w),ut?l=!0:(c=r.slice(0,t+2),a=v.utilities.arrayToPath(c),(l=!v.is.tab(a))&&v.verbose("Tab parameters found",c)),l&&f)return u?(v.debug("Ignoring remote content on first tab load",o),ct=!1,v.cache.add(i,s.html()),v.activate.all(o),y.onFirstLoad.call(s[0],o,g,nt),y.onLoad.call(s[0],o,g,nt)):(v.activate.navigation(o),v.fetch.content(o,i)),!1;v.debug("Opened local tab",o);v.activate.all(o);v.cache.read(o)||(v.cache.add(o,!0),v.debug("First time tab loaded calling tab init"),y.onFirstLoad.call(s[0],o,g,nt));y.onLoad.call(s[0],o,g,nt)}else{if(i.search("/")!=-1||""===i)return v.error(it.missingTab,k,d,o),!1;if(h=n("#"+i+', a[name="'+i+'"]'),o=h.closest("[data-tab]").data(tt.tab),s=v.get.tabElement(o),h&&h.length>0&&o)return v.debug("Anchor link used, opening parent tab",s,h),s.hasClass(p.active)||setTimeout(function(){v.scrollTo(h)},0),v.activate.all(o),v.cache.read(o)||(v.cache.add(o,!0),v.debug("First time tab loaded calling tab init"),y.onFirstLoad.call(s[0],o,g,nt)),y.onLoad.call(s[0],o,g,nt),!1}})},scrollTo:function(t){var r=!!(t&&t.length>0)&&t.offset().top;r!==!1&&(v.debug("Forcing scroll to an in-page link in a hidden tab",r,t),n(i).scrollTop(r))},update:{content:function(t,i,r){var u=v.get.tabElement(t),f=u[0];r=void 0!==r?r:y.evaluateScripts;"string"==typeof y.cacheType&&"dom"==y.cacheType.toLowerCase()&&"string"!=typeof i?u.empty().append(n(i).clone(!0)):r?(v.debug("Updating HTML and evaluating inline scripts",t,i),u.html(i)):(v.debug("Updating HTML",t,i),f.innerHTML=i)}},fetch:{content:function(t,i){var f,u,r=v.get.tabElement(t),o={dataType:"html",encodeParameters:!1,on:"now",cache:y.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(n){"response"==y.cacheType&&v.cache.add(i,n);v.update.content(t,n);t==b?(v.debug("Content loaded",t),v.activate.tab(t)):v.debug("Content loaded in background",t);y.onFirstLoad.call(r[0],t,g,nt);y.onLoad.call(r[0],t,g,nt);y.loadOnce?v.cache.add(i,!0):"string"==typeof y.cacheType&&"dom"==y.cacheType.toLowerCase()&&r.children().length>0?setTimeout(function(){var n=r.children().clone(!0);n=n.not("script");v.cache.add(i,n)},0):v.cache.add(i,r.html())},urlData:{tab:i}},e=r.api("get request")||!1,s=e&&"pending"===e.state();i=i||t;u=v.cache.read(i);y.cache&&u?(v.activate.tab(t),v.debug("Adding cached content",i),y.loadOnce||("once"==y.evaluateScripts?v.update.content(t,u,!1):v.update.content(t,u)),y.onLoad.call(r[0],t,g,nt)):s?(v.set.loading(t),v.debug("Content is already loading",i)):void 0!==n.api?(f=n.extend(!0,{},y.apiSettings,o),v.debug("Retrieving remote content",i,f),v.set.loading(t),r.api(f)):v.error(it.api)}},activate:{all:function(n){v.activate.tab(n);v.activate.navigation(n)},tab:function(n){var t=v.get.tabElement(n),i="siblings"==y.deactivate?t.siblings(w):w.not(t),r=t.hasClass(p.active);v.verbose("Showing tab content for",t);r||(t.addClass(p.active),i.removeClass(p.active+" "+p.loading),t.length>0&&y.onVisible.call(t[0],n))},navigation:function(n){var t=v.get.navElement(n),i="siblings"==y.deactivate?t.siblings(f):f.not(t),r=t.hasClass(p.active);v.verbose("Activating tab navigation for",t,n);r||(t.addClass(p.active),i.removeClass(p.active+" "+p.loading))}},deactivate:{all:function(){v.deactivate.navigation();v.deactivate.tabs()},navigation:function(){f.removeClass(p.active)},tabs:function(){w.removeClass(p.active+" "+p.loading)}},is:{tab:function(n){return void 0!==n&&v.get.tabElement(n).length>0}},get:{initialPath:function(){return f.eq(0).data(tt.tab)||w.eq(0).data(tt.tab)},path:function(){return n.address.value()},defaultPathArray:function(n){return v.utilities.pathToArray(v.get.defaultPath(n))},defaultPath:function(n){var i=f.filter("[data-"+tt.tab+'^="'+n+'/"]').eq(0),t=i.data(tt.tab)||!1;if(t){if(v.debug("Found default tab",t),ot<y.maxDepth)return ot++,v.get.defaultPath(t);v.error(it.recursion)}else v.debug("No default tabs found for",n,w);return ot=0,n},navElement:function(n){return n=n||b,f.filter("[data-"+tt.tab+'="'+n+'"]')},tabElement:function(n){var t,i,r,u;return n=n||b,r=v.utilities.pathToArray(n),u=v.utilities.last(r),t=w.filter("[data-"+tt.tab+'="'+n+'"]'),i=w.filter("[data-"+tt.tab+'="'+u+'"]'),t.length>0?t:i},tab:function(){return b}},utilities:{filterArray:function(t,i){return n.grep(t,function(t){return n.inArray(t,i)==-1})},last:function(t){return!!n.isArray(t)&&t[t.length-1]},pathToArray:function(n){return void 0===n&&(n=b),"string"==typeof n?n.split("/"):[n]},arrayToPath:function(t){return!!n.isArray(t)&&t.join("/")}},setting:function(t,i){if(v.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,y,t);else{if(void 0===i)return y[t];n.isPlainObject(y[t])?n.extend(!0,y[t],i):y[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];v[t]=i}},debug:function(){!y.silent&&y.debug&&(y.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,y.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!y.silent&&y.verbose&&y.debug&&(y.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,y.name+":"),v.verbose.apply(console,arguments)))},error:function(){y.silent||(v.error=Function.prototype.bind.call(console.error,console,y.name+":"),v.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;y.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,e.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:st,"Execution Time":i}));clearTimeout(v.performance.timer);v.performance.timer=setTimeout(v.performance.display,500)},display:function(){var t=y.name+":",i=0;o=!1;clearTimeout(v.performance.timer);n.each(e,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&e.length>0&&(console.groupCollapsed(t),console.table?console.table(e):n.each(e,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());e=[]}},invoke:function(t,i,r){var s,e,o,f=rt;return i=i||a,r=st||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]?(e=f[r],!1):(v.error(it.method,t),!1);f=f[r]}})),n.isFunction(e)?o=e.apply(r,i):void 0!==e&&(o=e),n.isArray(u)?u.push(o):void 0!==u?u=[u,o]:void 0!==o&&(u=o),e}};l?(void 0===rt&&v.initialize(),v.invoke(h)):(void 0!==rt&&rt.invoke("destroy"),v.initialize())}),void 0!==u?u:this};n.tab=function(){n(t).tab.apply(this,arguments)};n.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(){},onLoad:function(){},onVisible:function(){},onRequest:function(){},templates:{determineTitle:function(){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.transition=function(){var r,f=n(this),s=f.selector||"",e=(new Date).getTime(),u=[],h=arguments,c=h[0],l=[].slice.call(arguments,1),o="string"==typeof c;return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,f.each(function(t){var v,k,tt,p,g,b,nt,d,a,y=n(this),w=this;a={initialize:function(){v=a.get.settings.apply(w,h);p=v.className;tt=v.error;g=v.metadata;d="."+v.namespace;nt="module-"+v.namespace;k=y.data(nt)||a;b=a.get.animationEndEvent();o&&(o=a.invoke(c));o===!1&&(a.verbose("Converted arguments into settings object",v),v.interval?a.delay(v.animate):a.animate(),a.instantiate())},instantiate:function(){a.verbose("Storing instance of module",a);k=a;y.data(nt,k)},destroy:function(){a.verbose("Destroying previous module for",w);y.removeData(nt)},refresh:function(){a.verbose("Refreshing display type on next animation");delete a.displayType},forceRepaint:function(){a.verbose("Forcing element repaint");var t=y.parent(),n=y.next();0===n.length?y.detach().appendTo(t):y.detach().insertBefore(n)},repaint:function(){a.verbose("Repainting element");w.offsetWidth},delay:function(n){var u,i,r=a.get.animationDirection();r||(r=a.can.transition()?a.get.direction():"static");n=void 0!==n?n:v.interval;u="auto"==v.reverse&&r==p.outward;i=u||1==v.reverse?(f.length-t)*v.interval:t*v.interval;a.debug("Delaying animation by",i);setTimeout(a.animate,i)},animate:function(n){if(v=n||v,!a.is.supported())return a.error(tt.support),!1;if(a.debug("Preparing animation",v.animation),a.is.animating()){if(v.queue)return!v.allowRepeats&&a.has.direction()&&a.is.occurring()&&a.queuing!==!0?a.debug("Animation is currently occurring, preventing queueing same animation",v.animation):a.queue(v.animation),!1;if(!v.allowRepeats&&a.is.occurring())return a.debug("Animation is already occurring, will not execute repeated animation",v.animation),!1;a.debug("New animation started, completing previous early",v.animation);k.complete()}a.can.animate()?a.set.animating(v.animation):a.error(tt.noAnimation,v.animation,w)},reset:function(){a.debug("Resetting animation to beginning conditions");a.remove.animationCallbacks();a.restore.conditions();a.remove.animating()},queue:function(n){a.debug("Queueing animation of",n);a.queuing=!0;y.one(b+".queue"+d,function(){a.queuing=!1;a.repaint();a.animate.apply(this,v)})},complete:function(){a.debug("Animation complete",v.animation);a.remove.completeCallback();a.remove.failSafe();a.is.looping()||(a.is.outward()?(a.verbose("Animation is outward, hiding element"),a.restore.conditions(),a.hide()):a.is.inward()?(a.verbose("Animation is outward, showing element"),a.restore.conditions(),a.show()):(a.verbose("Static animation completed"),a.restore.conditions(),v.onComplete.call(w)))},force:{visible:function(){var t=y.attr("style"),i=a.get.userStyle(),n=a.get.displayType(),r=i+"display: "+n+" !important;",u=y.css("display"),f=void 0===t||""===t;u!==n?(a.verbose("Overriding default display to show element",n),y.attr("style",r)):f&&y.removeAttr("style")},hidden:function(){var n=y.attr("style"),t=y.css("display"),i=void 0===n||""===n;"none"===t||a.is.hidden()?i&&y.removeAttr("style"):(a.verbose("Overriding default display to hide element"),y.css("display","none"))}},has:{direction:function(t){var i=!1;return t=t||v.animation,"string"==typeof t&&(t=t.split(" "),n.each(t,function(n,t){t!==p.inward&&t!==p.outward||(i=!0)})),i},inlineDisplay:function(){var t=y.attr("style")||"";return n.isArray(t.match(/display.*?;/,""))}},set:{animating:function(n){var t;a.remove.completeCallback();n=n||v.animation;t=a.get.animationClass(n);a.save.animation(t);a.force.visible();a.remove.hidden();a.remove.direction();a.start.animation(t)},duration:function(n,t){t=t||v.duration;((t="number"==typeof t?t+"ms":t)||0===t)&&(a.verbose("Setting animation duration",t),y.css({"animation-duration":t}))},direction:function(n){n=n||a.get.direction();n==p.inward?a.set.inward():a.set.outward()},looping:function(){a.debug("Transition set to loop");y.addClass(p.looping)},hidden:function(){y.addClass(p.transition).addClass(p.hidden)},inward:function(){a.debug("Setting direction to inward");y.removeClass(p.outward).addClass(p.inward)},outward:function(){a.debug("Setting direction to outward");y.removeClass(p.inward).addClass(p.outward)},visible:function(){y.addClass(p.transition).addClass(p.visible)}},start:{animation:function(n){n=n||a.get.animationClass();a.debug("Starting tween",n);y.addClass(n).one(b+".complete"+d,a.complete);v.useFailSafe&&a.add.failSafe();a.set.duration(v.duration);v.onStart.call(w)}},save:{animation:function(n){a.cache||(a.cache={});a.cache.animation=n},displayType:function(n){"none"!==n&&y.data(g.displayType,n)},transitionExists:function(t,i){n.fn.transition.exists[t]=i;a.verbose("Saving existence of transition",t,i)}},restore:{conditions:function(){var n=a.get.currentAnimation();n&&(y.removeClass(n),a.verbose("Removing animation class",a.cache));a.remove.duration()}},add:{failSafe:function(){var n=a.get.duration();a.timer=setTimeout(function(){y.triggerHandler(b)},n+v.failSafeDelay);a.verbose("Adding fail safe timer",a.timer)}},remove:{animating:function(){y.removeClass(p.animating)},animationCallbacks:function(){a.remove.queueCallback();a.remove.completeCallback()},queueCallback:function(){y.off(".queue"+d)},completeCallback:function(){y.off(".complete"+d)},display:function(){y.css("display","")},direction:function(){y.removeClass(p.inward).removeClass(p.outward)},duration:function(){y.css("animation-duration","")},failSafe:function(){a.verbose("Removing fail safe timer",a.timer);a.timer&&clearTimeout(a.timer)},hidden:function(){y.removeClass(p.hidden)},visible:function(){y.removeClass(p.visible)},looping:function(){a.debug("Transitions are no longer looping");a.is.looping()&&(a.reset(),y.removeClass(p.looping))},transition:function(){y.removeClass(p.visible).removeClass(p.hidden)}},get:{settings:function(t,i,r){return"object"==typeof t?n.extend(!0,{},n.fn.transition.settings,t):"function"==typeof r?n.extend({},n.fn.transition.settings,{animation:t,onComplete:r,duration:i}):"string"==typeof i||"number"==typeof i?n.extend({},n.fn.transition.settings,{animation:t,duration:i}):"object"==typeof i?n.extend({},n.fn.transition.settings,i,{animation:t}):"function"==typeof i?n.extend({},n.fn.transition.settings,{animation:t,onComplete:i}):n.extend({},n.fn.transition.settings,{animation:t})},animationClass:function(n){var t=n||v.animation,i=a.can.transition()&&!a.has.direction()?a.get.direction()+" ":"";return p.animating+" "+p.transition+" "+i+t},currentAnimation:function(){return!(!a.cache||void 0===a.cache.animation)&&a.cache.animation},currentDirection:function(){return a.is.inward()?p.inward:p.outward},direction:function(){return a.is.hidden()||!a.is.visible()?p.inward:p.outward},animationDirection:function(t){var i;return t=t||v.animation,"string"==typeof t&&(t=t.split(" "),n.each(t,function(n,t){t===p.inward?i=p.inward:t===p.outward&&(i=p.outward)})),i||!1},duration:function(n){return n=n||v.duration,n===!1&&(n=y.css("animation-duration")||0),"string"==typeof n?n.indexOf("ms")>-1?parseFloat(n):1e3*parseFloat(n):n},displayType:function(n){return n=void 0===n||n,v.displayType?v.displayType:(n&&void 0===y.data(g.displayType)&&a.can.transition(!0),y.data(g.displayType))},userStyle:function(n){return n=n||y.attr("style")||"",n.replace(/display.*?;/,"")},transitionExists:function(t){return n.fn.transition.exists[t]},animationStartEvent:function(){var n,r=i.createElement("div"),t={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(n in t)if(void 0!==r.style[n])return t[n];return!1},animationEndEvent:function(){var n,r=i.createElement("div"),t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==r.style[n])return t[n];return!1}},can:{transition:function(t){var o,h,r,f,c,e,i=v.animation,s=a.get.transitionExists(i),u=a.get.displayType(!1);if(void 0===s||t){if(a.verbose("Determining whether animation exists"),o=y.attr("class"),h=y.prop("tagName"),r=n("<"+h+" />").addClass(o).insertAfter(y),f=r.addClass(i).removeClass(p.inward).removeClass(p.outward).addClass(p.animating).addClass(p.transition).css("animationName"),c=r.addClass(p.inward).css("animationName"),u||(u=r.attr("class",o).removeAttr("style").removeClass(p.hidden).removeClass(p.visible).show().css("display"),a.verbose("Determining final display state",u),a.save.displayType(u)),r.remove(),f!=c)a.debug("Direction exists for animation",i),e=!0;else{if("none"==f||!f)return void a.debug("No animation defined in css",i);a.debug("Static animation found",i,u);e=!1}a.save.transitionExists(i,e)}return void 0!==s?s:e},animate:function(){return void 0!==a.can.transition()}},is:{animating:function(){return y.hasClass(p.animating)},inward:function(){return y.hasClass(p.inward)},outward:function(){return y.hasClass(p.outward)},looping:function(){return y.hasClass(p.looping)},occurring:function(n){return n=n||v.animation,n="."+n.replace(" ","."),y.filter(n).length>0},visible:function(){return y.is(":visible")},hidden:function(){return"hidden"===y.css("visibility")},supported:function(){return b!==!1}},hide:function(){a.verbose("Hiding element");a.is.animating()&&a.reset();w.blur();a.remove.display();a.remove.visible();a.set.hidden();a.force.hidden();v.onHide.call(w);v.onComplete.call(w)},show:function(n){a.verbose("Showing element",n);a.remove.hidden();a.set.visible();a.force.visible();v.onShow.call(w);v.onComplete.call(w)},toggle:function(){a.is.visible()?a.hide():a.show()},stop:function(){a.debug("Stopping current animation");y.triggerHandler(b)},stopAll:function(){a.debug("Stopping all animation");a.remove.queueCallback();y.triggerHandler(b)},clear:{queue:function(){a.debug("Clearing animation queue");a.remove.queueCallback()}},enable:function(){a.verbose("Starting animation");y.removeClass(p.disabled)},disable:function(){a.debug("Stopping animation");y.addClass(p.disabled)},setting:function(t,i){if(a.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,v,t);else{if(void 0===i)return v[t];n.isPlainObject(v[t])?n.extend(!0,v[t],i):v[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,a,t);else{if(void 0===i)return a[t];a[t]=i}},debug:function(){!v.silent&&v.debug&&(v.performance?a.performance.log(arguments):(a.debug=Function.prototype.bind.call(console.info,console,v.name+":"),a.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?a.performance.log(arguments):(a.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),a.verbose.apply(console,arguments)))},error:function(){v.silent||(a.error=Function.prototype.bind.call(console.error,console,v.name+":"),a.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;v.performance&&(t=(new Date).getTime(),r=e||t,i=t-r,e=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:w,"Execution Time":i}));clearTimeout(a.performance.timer);a.performance.timer=setTimeout(a.performance.display,500)},display:function(){var t=v.name+":",i=0;e=!1;clearTimeout(a.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");f.length>1&&(t+=" ("+f.length+")");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var s,e,o,f=k;return i=i||l,u=w||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),s=t.length-1,n.each(t,function(i,r){var u=i!=s?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=s)f=f[u];else{if(void 0!==f[u])return e=f[u],!1;if(!n.isPlainObject(f[r])||i==s)return void 0!==f[r]&&(e=f[r],!1);f=f[r]}})),n.isFunction(e)?o=e.apply(u,i):void 0!==e&&(o=e),n.isArray(r)?r.push(o):void 0!==r?r=[r,o]:void 0!==o&&(r=o),void 0!==e&&e}};a.initialize()}),void 0!==r?r:this};n.fn.transition.exists={};n.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document),function(n,t){"use strict";var t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.api=n.fn.api=function(i){var r,e=n(n.isFunction(this)?t:this),o=e.selector||"",f=(new Date).getTime(),u=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var b,g,v,tt,e,l=n.isPlainObject(i)?n.extend(!0,{},n.fn.api.settings,i):n.extend({},n.fn.api.settings),rt=l.namespace,ut=l.metadata,ft=l.selector,p=l.error,nt=l.className,et="."+rt,it="module-"+rt,a=n(this),ot=a.closest(ft.form),y=l.stateContext?n(l.stateContext):a,k=this,w=y[0],d=a.data(it);e={initialize:function(){h||e.bind.events();e.instantiate()},instantiate:function(){e.verbose("Storing instance of module",e);d=e;a.data(it,d)},destroy:function(){e.verbose("Destroying previous module for",k);a.removeData(it).off(et)},bind:{events:function(){var n=e.get.event();n?(e.verbose("Attaching API events to element",n),a.on(n+et,e.event.trigger)):"now"==l.on&&(e.debug("Querying API endpoint immediately"),e.query())}},decode:{json:function(n){if(void 0!==n&&"string"==typeof n)try{n=JSON.parse(n)}catch(n){}return n}},read:{cachedResponse:function(n){var i;return void 0===t.Storage?void e.error(p.noStorage):(i=sessionStorage.getItem(n),e.debug("Using cached response",n,i),i=e.decode.json(i))}},write:{cachedResponse:function(i,r){return r&&""===r?void e.debug("Response empty, not caching",r):void 0===t.Storage?void e.error(p.noStorage):(n.isPlainObject(r)&&(r=JSON.stringify(r)),sessionStorage.setItem(i,r),void e.verbose("Storing cached response for url",i,r))}},query:function(){if(e.is.disabled())return void e.debug("Element is disabled API request aborted");if(e.is.loading()){if(!l.interruptRequests)return void e.debug("Cancelling request, previous request is still pending");e.debug("Interrupting previous request");e.abort()}if(l.defaultData&&n.extend(!0,l.urlData,e.get.defaultData()),l.serializeForm&&(l.data=e.add.formData(l.data)),(g=e.get.settings())===!1)return e.cancelled=!0,void e.error(p.beforeSend);if(e.cancelled=!1,!(v=e.get.templatedURL())&&!e.is.mocked())return void e.error(p.missingURL);if((v=e.add.urlData(v))||e.is.mocked()){if(g.url=l.base+v,b=n.extend(!0,{},l,{type:l.method||l.type,data:void 0,url:l.base+v,beforeSend:l.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),e.debug("Querying URL",b.url),e.verbose("Using AJAX settings",b),"local"===l.cache&&e.read.cachedResponse(v))return e.debug("Response returned from local cache"),e.request=e.create.request(),void e.request.resolveWith(w,[e.read.cachedResponse(v)]);l.throttle?l.throttleFirstRequest||e.timer?(e.debug("Throttling request",l.throttle),clearTimeout(e.timer),e.timer=setTimeout(function(){e.timer&&delete e.timer;e.debug("Sending throttled request",void 0,b.method);e.send.request()},l.throttle)):(e.debug("Sending request",void 0,b.method),e.send.request(),e.timer=setTimeout(function(){},l.throttle)):(e.debug("Sending request",void 0,b.method),e.send.request())}},should:{removeError:function(){return l.hideError===!0||"auto"===l.hideError&&!e.is.form()}},is:{disabled:function(){return a.filter(ft.disabled).length>0},expectingJSON:function(){return"json"===l.dataType||"jsonp"===l.dataType},form:function(){return a.is("form")||y.is("form")},mocked:function(){return l.mockResponse||l.mockResponseAsync||l.response||l.responseAsync},input:function(){return a.is("input")},loading:function(){return!!e.request&&"pending"==e.request.state()},abortedRequest:function(n){return n&&void 0!==n.readyState&&0===n.readyState?(e.verbose("XHR request determined to be aborted"),!0):(e.verbose("XHR request was not aborted"),!1)},validResponse:function(t){return e.is.expectingJSON()&&n.isFunction(l.successTest)?(e.debug("Checking JSON returned success",l.successTest,t),l.successTest(t)?(e.debug("Response passed success test",t),!0):(e.debug("Response failed success test",t),!1)):(e.verbose("Response is not JSON, skipping validation",l.successTest,t),!0)}},was:{cancelled:function(){return e.cancelled||!1},succesful:function(){return e.request&&"resolved"==e.request.state()},failure:function(){return e.request&&"rejected"==e.request.state()},complete:function(){return e.request&&("resolved"==e.request.state()||"rejected"==e.request.state())}},add:{urlData:function(t,i){var r,u;return t&&(r=t.match(l.regExp.required),u=t.match(l.regExp.optional),i=i||l.urlData,r&&(e.debug("Looking for required URL variables",r),n.each(r,function(r,u){var f=u.indexOf("$")!==-1?u.substr(2,u.length-3):u.substr(1,u.length-2),o=n.isPlainObject(i)&&void 0!==i[f]?i[f]:void 0!==a.data(f)?a.data(f):void 0!==y.data(f)?y.data(f):i[f];if(void 0===o)return e.error(p.requiredParameter,f,t),t=!1,!1;e.verbose("Found required variable",f,o);o=l.encodeParameters?e.get.urlEncodedValue(o):o;t=t.replace(u,o)})),u&&(e.debug("Looking for optional URL variables",r),n.each(u,function(r,u){var f=u.indexOf("$")!==-1?u.substr(3,u.length-4):u.substr(2,u.length-3),o=n.isPlainObject(i)&&void 0!==i[f]?i[f]:void 0!==a.data(f)?a.data(f):void 0!==y.data(f)?y.data(f):i[f];void 0!==o?(e.verbose("Optional variable Found",f,o),t=t.replace(u,o)):(e.verbose("Optional variable not found",f),t=t.indexOf("/"+u)!==-1?t.replace("/"+u,""):t.replace(u,""))}))),t},formData:function(t){var r,u=void 0!==n.fn.serializeObject,i=u?ot.serializeObject():ot.serialize();return t=t||l.data,r=n.isPlainObject(t),r?u?(e.debug("Extending existing data with form data",t,i),t=n.extend(!0,{},t,i)):(e.error(p.missingSerialize),e.debug("Cant extend data. Replacing data with form data",t,i),t=i):(e.debug("Adding form data",i),t=i),t}},send:{request:function(){e.set.loading();e.request=e.create.request();e.is.mocked()?e.mockedXHR=e.create.mockedXHR():e.xhr=e.create.xhr();l.onRequest.call(w,e.request,e.xhr)}},event:{trigger:function(n){e.query();"submit"!=n.type&&"click"!=n.type||n.preventDefault()},xhr:{always:function(){},done:function(t,i,r){var f=this,s=(new Date).getTime()-tt,u=l.loadingDuration-s,o=!!n.isFunction(l.onResponse)&&(e.is.expectingJSON()?l.onResponse.call(f,n.extend(!0,{},t)):l.onResponse.call(f,t));u=u>0?u:0;o&&(e.debug("Modified API response in onResponse callback",l.onResponse,o,t),t=o);u>0&&e.debug("Response completed early delaying state change by",u);setTimeout(function(){e.is.validResponse(t)?e.request.resolveWith(f,[t,r]):e.request.rejectWith(f,[r,"invalid"])},u)},fail:function(n,t,i){var u=this,f=(new Date).getTime()-tt,r=l.loadingDuration-f;r=r>0?r:0;r>0&&e.debug("Response completed early delaying state change by",r);setTimeout(function(){e.is.abortedRequest(n)?e.request.rejectWith(u,[n,"aborted",i]):e.request.rejectWith(u,[n,"error",t,i])},r)}},request:{done:function(n,t){e.debug("Successful API Response",n);"local"===l.cache&&v&&(e.write.cachedResponse(v,n),e.debug("Saving server response locally",e.cache));l.onSuccess.call(w,n,a,t)},complete:function(n,t){var i,r;e.was.succesful()?(r=n,i=t):(i=n,r=e.get.responseFromXHR(i));e.remove.loading();l.onComplete.call(w,r,a,i)},fail:function(n,t,i){var r=e.get.responseFromXHR(n),u=e.get.errorFromRequest(r,t,i);if("aborted"==t)return e.debug("XHR Aborted (Most likely caused by page navigation or CORS Policy)",t,i),l.onAbort.call(w,t,a,n),!0;"invalid"==t?e.debug("JSON did not pass success test. A server-side error has most likely occurred",r):"error"==t&&void 0!==n&&(e.debug("XHR produced a server error",t,i),200!=n.status&&void 0!==i&&""!==i&&e.error(p.statusMessage+i,b.url),l.onError.call(w,u,a,n));l.errorDuration&&"aborted"!==t&&(e.debug("Adding error state"),e.set.error(),e.should.removeError()&&setTimeout(e.remove.error,l.errorDuration));e.debug("API Request failed",u,n);l.onFailure.call(w,r,a,n)}}},create:{request:function(){return n.Deferred().always(e.event.request.complete).done(e.event.request.done).fail(e.event.request.fail)},mockedXHR:function(){var f,r,i,t=l.mockResponse||l.response,u=l.mockResponseAsync||l.responseAsync;return i=n.Deferred().always(e.event.xhr.complete).done(e.event.xhr.done).fail(e.event.xhr.fail),t?(n.isFunction(t)?(e.debug("Using specified synchronous callback",t),r=t.call(w,g)):(e.debug("Using settings specified response",t),r=t),i.resolveWith(w,[r,!1,{responseText:r}])):n.isFunction(u)&&(f=function(n){e.debug("Async callback returned response",n);n?i.resolveWith(w,[n,!1,{responseText:n}]):i.rejectWith(w,[{responseText:n},!1,!1])},e.debug("Using specified async response callback",u),u.call(w,g,f)),i},xhr:function(){var t;return t=n.ajax(b).always(e.event.xhr.always).done(e.event.xhr.done).fail(e.event.xhr.fail),e.verbose("Created server request",t,b),t}},set:{error:function(){e.verbose("Adding error state to element",y);y.addClass(nt.error)},loading:function(){e.verbose("Adding loading state to element",y);y.addClass(nt.loading);tt=(new Date).getTime()}},remove:{error:function(){e.verbose("Removing error state from element",y);y.removeClass(nt.error)},loading:function(){e.verbose("Removing loading state from element",y);y.removeClass(nt.loading)}},get:{responseFromXHR:function(t){return!!n.isPlainObject(t)&&(e.is.expectingJSON()?e.decode.json(t.responseText):t.responseText)},errorFromRequest:function(t,i,r){return n.isPlainObject(t)&&void 0!==t.error?t.error:void 0!==l.error[i]?l.error[i]:r},request:function(){return e.request||!1},xhr:function(){return e.xhr||!1},settings:function(){var t;return t=l.beforeSend.call(w,l),t&&(void 0!==t.success&&(e.debug("Legacy success callback detected",t),e.error(p.legacyParameters,t.success),t.onSuccess=t.success),void 0!==t.failure&&(e.debug("Legacy failure callback detected",t),e.error(p.legacyParameters,t.failure),t.onFailure=t.failure),void 0!==t.complete&&(e.debug("Legacy complete callback detected",t),e.error(p.legacyParameters,t.complete),t.onComplete=t.complete)),void 0===t&&e.error(p.noReturnedValue),t===!1?t:void 0!==t?n.extend(!0,{},t):n.extend(!0,{},l)},urlEncodedValue:function(n){var r=t.decodeURIComponent(n),i=t.encodeURIComponent(n);return r!==n?(e.debug("URL value is already encoded, avoiding double encoding",n),n):(e.verbose("Encoding value using encodeURIComponent",n,i),i)},defaultData:function(){var t={};return n.isWindow(k)||(e.is.input()?t.value=a.val():e.is.form()||(t.text=a.text())),t},event:function(){return n.isWindow(k)||"now"==l.on?(e.debug("API called without element, no events attached"),!1):"auto"==l.on?a.is("input")?void 0!==k.oninput?"input":void 0!==k.onpropertychange?"propertychange":"keyup":a.is("form")?"submit":"click":l.on},templatedURL:function(n){if(n=n||a.data(ut.action)||l.action||!1,v=a.data(ut.url)||l.url||!1)return e.debug("Using specified url",v),v;if(n){if(e.debug("Looking up url for action",n,l.api),void 0===l.api[n]&&!e.is.mocked())return void e.error(p.missingAction,l.action,l.api);v=l.api[n]}else e.is.form()&&(v=a.attr("action")||y.attr("action")||!1,e.debug("No url or action specified, defaulting to form action",v));return v}},abort:function(){var n=e.get.xhr();n&&"resolved"!==n.state()&&(e.debug("Cancelling API request"),n.abort())},reset:function(){e.remove.error();e.remove.loading()},setting:function(t,i){if(e.debug("Changing setting",t,i),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===i)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],i):l[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!l.silent&&l.debug&&(l.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,l.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),e.verbose.apply(console,arguments)))},error:function(){l.silent||(e.error=Function.prototype.bind.call(console.error,console,l.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;l.performance&&(t=(new Date).getTime(),r=f||t,i=t-r,f=t,u.push({Name:n[0],Arguments:[].slice.call(n,1)||"","Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=l.name+":",i=0;f=!1;clearTimeout(e.performance.timer);n.each(u,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";o&&(t+=" '"+o+"'");(void 0!==console.group||void 0!==console.table)&&u.length>0&&(console.groupCollapsed(t),console.table?console.table(u):n.each(u,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());u=[]}},invoke:function(t,i,u){var h,o,s,f=d;return i=i||c,u=k||u,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(p.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(u,i):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===d&&e.initialize(),e.invoke(s)):(void 0!==d&&d.invoke("destroy"),e.initialize())}),void 0!==r?r:this};n.api.settings={name:"API",namespace:"api",debug:!1,verbose:!1,performance:!0,api:{},cache:!0,interruptRequests:!0,on:"auto",stateContext:!1,loadingDuration:0,hideError:"auto",errorDuration:2e3,encodeParameters:!0,action:!1,url:!1,base:"",urlData:{},defaultData:!0,serializeForm:!1,throttle:0,throttleFirstRequest:!0,method:"get",data:{},dataType:"json",mockResponse:!1,mockResponseAsync:!1,response:!1,responseAsync:!1,beforeSend:function(n){return n},beforeXHR:function(){},onRequest:function(){},onResponse:!1,onSuccess:function(){},onComplete:function(){},onFailure:function(){},onError:function(){},onAbort:function(){},successTest:!1,error:{beforeSend:"The before send function has aborted the request",error:"There was an error with your request",exitConditions:"API Request Aborted. Exit conditions met",JSONParse:"JSON could not be parsed during error handling",legacyParameters:"You are using legacy API success callback names",method:"The method you called is not defined",missingAction:"API action used but no url was defined",missingSerialize:"jquery-serialize-object is required to add form data to an existing data object",missingURL:"No URL specified for api event",noReturnedValue:"The beforeSend callback must return a settings object, beforeSend ignored.",noStorage:"Caching responses locally requires session storage",parseError:"There was an error parsing your request",requiredParameter:"Missing a required URL parameter: ",statusMessage:"Server gave an error: ",timeout:"Your request timed out"},regExp:{required:/\{\$*[A-z0-9]+\}/g,optional:/\{\/\$*[A-z0-9]+\}/g},className:{loading:"loading",error:"error"},selector:{disabled:".disabled",form:"form"},metadata:{action:"action",url:"url"}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.state=function(t){var r,e=n(this),u=e.selector||"",o=(i.documentElement,(new Date).getTime()),f=[],s=arguments[0],h="string"==typeof s,c=[].slice.call(arguments,1);return e.each(function(){var i,l=n.isPlainObject(t)?n.extend(!0,{},n.fn.state.settings,t):n.extend({},n.fn.state.settings),tt=l.error,k=l.metadata,y=l.className,nt=l.namespace,d=l.states,v=l.text,w="."+nt,g=nt+"-module",a=n(this),p=this,b=a.data(g);i={initialize:function(){i.verbose("Initializing module");l.automatic&&i.add.defaults();l.context&&""!==u?n(l.context).on(u,"mouseenter"+w,i.change.text).on(u,"mouseleave"+w,i.reset.text).on(u,"click"+w,i.toggle.state):a.on("mouseenter"+w,i.change.text).on("mouseleave"+w,i.reset.text).on("click"+w,i.toggle.state);i.instantiate()},instantiate:function(){i.verbose("Storing instance of module",i);b=i;a.data(g,i)},destroy:function(){i.verbose("Destroying previous module",b);a.off(w).removeData(g)},refresh:function(){i.verbose("Refreshing selector cache");a=n(p)},add:{defaults:function(){var r=t&&n.isPlainObject(t.states)?t.states:{};n.each(l.defaults,function(t,u){void 0!==i.is[t]&&i.is[t]()&&(i.verbose("Adding default states",t,p),n.extend(l.states,u,r))})}},is:{active:function(){return a.hasClass(y.active)},loading:function(){return a.hasClass(y.loading)},inactive:function(){return!a.hasClass(y.active)},state:function(n){return void 0!==y[n]&&a.hasClass(y[n])},enabled:function(){return!a.is(l.filter.active)},disabled:function(){return a.is(l.filter.active)},textEnabled:function(){return!a.is(l.filter.text)},button:function(){return a.is(".button:not(a, .submit)")},input:function(){return a.is("input")},progress:function(){return a.is(".ui.progress")}},allow:function(n){i.debug("Now allowing state",n);d[n]=!0},disallow:function(n){i.debug("No longer allowing",n);d[n]=!1},allows:function(n){return d[n]||!1},enable:function(){a.removeClass(y.disabled)},disable:function(){a.addClass(y.disabled)},setState:function(n){i.allows(n)&&a.addClass(y[n])},removeState:function(n){i.allows(n)&&a.removeClass(y[n])},toggle:{state:function(){var t;if(i.allows("active")&&i.is.enabled()){if(i.refresh(),void 0!==n.fn.api)if(t=a.api("get request"),a.api("was cancelled"))i.debug("API Request cancelled by beforesend"),l.activateTest=function(){return!1},l.deactivateTest=function(){return!1};else if(t)return void i.listenTo(t);i.change.state()}}},listenTo:function(t){i.debug("API request detected, waiting for state signal",t);t&&(v.loading&&i.update.text(v.loading),n.when(t).then(function(){"resolved"==t.state()?(i.debug("API request succeeded"),l.activateTest=function(){return!0},l.deactivateTest=function(){return!0}):(i.debug("API request failed"),l.activateTest=function(){return!1},l.deactivateTest=function(){return!1});i.change.state()}))},change:{state:function(){i.debug("Determining state change direction");i.is.inactive()?i.activate():i.deactivate();l.sync&&i.sync();l.onChange.call(p)},text:function(){i.is.textEnabled()&&(i.is.disabled()?(i.verbose("Changing text to disabled text",v.hover),i.update.text(v.disabled)):i.is.active()?v.hover?(i.verbose("Changing text to hover text",v.hover),i.update.text(v.hover)):v.deactivate&&(i.verbose("Changing text to deactivating text",v.deactivate),i.update.text(v.deactivate)):v.hover?(i.verbose("Changing text to hover text",v.hover),i.update.text(v.hover)):v.activate&&(i.verbose("Changing text to activating text",v.activate),i.update.text(v.activate)))}},activate:function(){l.activateTest.call(p)&&(i.debug("Setting state to active"),a.addClass(y.active),i.update.text(v.active),l.onActivate.call(p))},deactivate:function(){l.deactivateTest.call(p)&&(i.debug("Setting state to inactive"),a.removeClass(y.active),i.update.text(v.inactive),l.onDeactivate.call(p))},sync:function(){i.verbose("Syncing other buttons to current state");i.is.active()?e.not(a).state("activate"):e.not(a).state("deactivate")},get:{text:function(){return l.selector.text?a.find(l.selector.text).text():a.html()},textFor:function(n){return v[n]||!1}},flash:{text:function(n,t,r){var u=i.get.text();i.debug("Flashing text message",n,t);n=n||l.text.flash;t=t||l.flashDuration;r=r||function(){};i.update.text(n);setTimeout(function(){i.update.text(u);r.call(p)},t)}},reset:{text:function(){var n=v.active||a.data(k.storedText),t=v.inactive||a.data(k.storedText);i.is.textEnabled()&&(i.is.active()&&n?(i.verbose("Resetting active text",n),i.update.text(n)):t&&(i.verbose("Resetting inactive text",n),i.update.text(t)))}},update:{text:function(n){var t=i.get.text();n&&n!==t?(i.debug("Updating text",n),l.selector.text?a.data(k.storedText,n).find(l.selector.text).text(n):a.data(k.storedText,n).html(n)):i.debug("Text is already set, ignoring update",n)}},setting:function(t,r){if(i.debug("Changing setting",t,r),n.isPlainObject(t))n.extend(!0,l,t);else{if(void 0===r)return l[t];n.isPlainObject(l[t])?n.extend(!0,l[t],r):l[t]=r}},internal:function(t,r){if(n.isPlainObject(t))n.extend(!0,i,t);else{if(void 0===r)return i[t];i[t]=r}},debug:function(){!l.silent&&l.debug&&(l.performance?i.performance.log(arguments):(i.debug=Function.prototype.bind.call(console.info,console,l.name+":"),i.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?i.performance.log(arguments):(i.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),i.verbose.apply(console,arguments)))},error:function(){l.silent||(i.error=Function.prototype.bind.call(console.error,console,l.name+":"),i.error.apply(console,arguments))},performance:{log:function(n){var t,r,u;l.performance&&(t=(new Date).getTime(),u=o||t,r=t-u,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:p,"Execution Time":r}));clearTimeout(i.performance.timer);i.performance.timer=setTimeout(i.performance.display,500)},display:function(){var t=l.name+":",r=0;o=!1;clearTimeout(i.performance.timer);n.each(f,function(n,t){r+=t["Execution Time"]});t+=" "+r+"ms";u&&(t+=" '"+u+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,u,f){var h,o,s,e=b;return u=u||c,f=p||f,"string"==typeof t&&void 0!==e&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(r,u){var f=r!=h?u+t[r+1].charAt(0).toUpperCase()+t[r+1].slice(1):t;if(n.isPlainObject(e[f])&&r!=h)e=e[f];else{if(void 0!==e[f])return o=e[f],!1;if(!n.isPlainObject(e[u])||r==h)return void 0!==e[u]?(o=e[u],!1):(i.error(tt.method,t),!1);e=e[u]}})),n.isFunction(o)?s=o.apply(f,u):void 0!==o&&(s=o),n.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),o}};h?(void 0===b&&i.initialize(),i.invoke(s)):(void 0!==b&&b.invoke("destroy"),i.initialize())}),void 0!==r?r:this};n.fn.state.settings={name:"State",debug:!1,verbose:!1,namespace:"state",performance:!0,onActivate:function(){},onDeactivate:function(){},onChange:function(){},activateTest:function(){return!0},deactivateTest:function(){return!0},automatic:!0,sync:!1,flashDuration:1e3,filter:{text:".loading, .disabled",active:".disabled"},context:!1,error:{beforeSend:"The before send function has cancelled state change",method:"The method you called is not defined."},metadata:{promise:"promise",storedText:"stored-text"},className:{active:"active",disabled:"disabled",error:"error",loading:"loading",success:"success",warning:"warning"},selector:{text:!1},defaults:{input:{disabled:!0,loading:!0,active:!0},button:{disabled:!0,loading:!0,active:!0},progress:{active:!0,success:!0,warning:!0,error:!0}},states:{active:!0,disabled:!0,error:!0,loading:!0,success:!0,warning:!0},text:{disabled:!1,flash:!1,hover:!1,active:!1,inactive:!1,activate:!1,deactivate:!1}}}(jQuery,window,document),function(n,t,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();n.fn.visibility=function(r){var u,e=n(this),s=e.selector||"",o=(new Date).getTime(),f=[],h=arguments[0],c="string"==typeof h,a=[].slice.call(arguments,1),v=e.length,l=0;return e.each(function(){var g,tt,nt,e,y=n.isPlainObject(r)?n.extend(!0,{},n.fn.visibility.settings,r):n.extend({},n.fn.visibility.settings),it=y.className,ot=y.namespace,st=y.error,ht=y.metadata,b="."+ot,rt="module-"+ot,ut=n(t),p=n(this),w=n(y.context),d=(p.selector,p.data(rt)),ft=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,0)},k=this,et=!1;e={initialize:function(){e.debug("Initializing",y);e.setup.cache();e.should.trackChanges()&&("image"==y.type&&e.setup.image(),"fixed"==y.type&&e.setup.fixed(),y.observeChanges&&e.observeChanges(),e.bind.events());e.save.position();e.is.visible()||e.error(st.visible,p);y.initialCheck&&e.checkVisibility();e.instantiate()},instantiate:function(){e.debug("Storing instance",e);p.data(rt,e);d=e},destroy:function(){e.verbose("Destroying previous module");nt&&nt.disconnect();tt&&tt.disconnect();ut.off("load"+b,e.event.load).off("resize"+b,e.event.resize);w.off("scroll"+b,e.event.scroll).off("scrollchange"+b,e.event.scrollchange);"fixed"==y.type&&(e.resetFixed(),e.remove.placeholder());p.off(b).removeData(rt)},observeChanges:function(){"MutationObserver"in t&&(tt=new MutationObserver(e.event.contextChanged),nt=new MutationObserver(e.event.changed),tt.observe(i,{childList:!0,subtree:!0}),nt.observe(k,{childList:!0,subtree:!0}),e.debug("Setting up mutation observer",nt))},bind:{events:function(){e.verbose("Binding visibility events to scroll and resize");y.refreshOnLoad&&ut.on("load"+b,e.event.load);ut.on("resize"+b,e.event.resize);w.off("scroll"+b).on("scroll"+b,e.event.scroll).on("scrollchange"+b,e.event.scrollchange)}},event:{changed:function(){e.verbose("DOM tree modified, updating visibility calculations");e.timer=setTimeout(function(){e.verbose("DOM tree modified, updating sticky menu");e.refresh()},100)},contextChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t==k||n(t).find(k).length>0)&&(e.debug("Element removed from DOM, tearing down events"),e.destroy())})})},resize:function(){e.debug("Window resized");y.refreshOnResize&&ft(e.refresh)},load:function(){e.debug("Page finished loading");ft(e.refresh)},scroll:function(){y.throttle?(clearTimeout(e.timer),e.timer=setTimeout(function(){w.triggerHandler("scrollchange"+b,[w.scrollTop()])},y.throttle)):ft(function(){w.triggerHandler("scrollchange"+b,[w.scrollTop()])})},scrollchange:function(n,t){e.checkVisibility(t)}},precache:function(t,r){t instanceof Array||(t=[t]);for(var f=t.length,o=0,s=[],u=i.createElement("img"),e=function(){++o>=t.length&&n.isFunction(r)&&r()};f--;)u=i.createElement("img"),u.onload=e,u.onerror=e,u.src=t[f],s.push(u)},enableCallbacks:function(){e.debug("Allowing callbacks to occur");et=!1},disableCallbacks:function(){e.debug("Disabling all callbacks temporarily");et=!0},should:{trackChanges:function(){return c?(e.debug("One time query, no need to bind events"),!1):(e.debug("Callbacks being attached"),!0)}},setup:{cache:function(){e.cache={occurred:{},screen:{},element:{}}},image:function(){var n=p.data(ht.src);n&&(e.verbose("Lazy loading image",n),y.once=!0,y.observeChanges=!1,y.onOnScreen=function(){e.debug("Image on screen",k);e.precache(n,function(){e.set.image(n,function(){l++;l==v&&y.onAllLoaded.call(this);y.onLoad.call(this)})})})},fixed:function(){e.debug("Setting up fixed");y.once=!1;y.observeChanges=!1;y.initialCheck=!0;y.refreshOnLoad=!0;r.transition||(y.transition=!1);e.create.placeholder();e.debug("Added placeholder",g);y.onTopPassed=function(){e.debug("Element passed, adding fixed position",p);e.show.placeholder();e.set.fixed();y.transition&&void 0!==n.fn.transition&&p.transition(y.transition,y.duration)};y.onTopPassedReverse=function(){e.debug("Element returned to position, removing fixed",p);e.hide.placeholder();e.remove.fixed()}}},create:{placeholder:function(){e.verbose("Creating fixed position placeholder");g=p.clone(!1).css("display","none").addClass(it.placeholder).insertAfter(p)}},show:{placeholder:function(){e.verbose("Showing placeholder");g.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){e.verbose("Hiding placeholder");g.css("display","none").css("visibility","")}},set:{fixed:function(){e.verbose("Setting element to fixed position");p.addClass(it.fixed).css({position:"fixed",top:y.offset+"px",left:"auto",zIndex:y.zIndex});y.onFixed.call(k)},image:function(t,i){if(p.attr("src",t),y.transition)if(void 0!==n.fn.transition){if(p.hasClass(it.visible))return void e.debug("Transition already occurred on this image, skipping animation");p.transition(y.transition,y.duration,i)}else p.fadeIn(y.duration,i);else p.show()}},is:{onScreen:function(){return e.get.elementCalculations().onScreen},offScreen:function(){return e.get.elementCalculations().offScreen},visible:function(){return!(!e.cache||!e.cache.element)&&!(0===e.cache.element.width&&0===e.cache.element.offset.top)},verticallyScrollableContext:function(){var n=w.get(0)!==t&&w.css("overflow-y");return"auto"==n||"scroll"==n},horizontallyScrollableContext:function(){var n=w.get(0)!==t&&w.css("overflow-x");return"auto"==n||"scroll"==n}},refresh:function(){e.debug("Refreshing constants (width/height)");"fixed"==y.type&&e.resetFixed();e.reset();e.save.position();y.checkOnRefresh&&e.checkVisibility();y.onRefresh.call(k)},resetFixed:function(){e.remove.fixed();e.remove.occurred()},reset:function(){e.verbose("Resetting all cached values");n.isPlainObject(e.cache)&&(e.cache.screen={},e.cache.element={})},checkVisibility:function(n){e.verbose("Checking visibility of element",e.cache.element);!et&&e.is.visible()&&(e.save.scroll(n),e.save.calculations(),e.passed(),e.passingReverse(),e.topVisibleReverse(),e.bottomVisibleReverse(),e.topPassedReverse(),e.bottomPassedReverse(),e.onScreen(),e.offScreen(),e.passing(),e.topVisible(),e.bottomVisible(),e.topPassed(),e.bottomPassed(),y.onUpdate&&y.onUpdate.call(k,e.get.elementCalculations()))},passed:function(t,i){var r=e.get.elementCalculations();if(t&&i)y.onPassed[t]=i;else{if(void 0!==t)return e.get.pixelsPassed(t)>r.pixelsPassed;r.passing&&n.each(y.onPassed,function(n,t){r.bottomVisible||r.pixelsPassed>e.get.pixelsPassed(n)?e.execute(t,n):y.once||e.remove.occurred(t)})}},onScreen:function(n){var t=e.get.elementCalculations(),i=n||y.onOnScreen;if(n&&(e.debug("Adding callback for onScreen",n),y.onOnScreen=n),t.onScreen?e.execute(i,"onScreen"):y.once||e.remove.occurred("onScreen"),void 0!==n)return t.onOnScreen},offScreen:function(n){var t=e.get.elementCalculations(),i=n||y.onOffScreen;if(n&&(e.debug("Adding callback for offScreen",n),y.onOffScreen=n),t.offScreen?e.execute(i,"offScreen"):y.once||e.remove.occurred("offScreen"),void 0!==n)return t.onOffScreen},passing:function(n){var t=e.get.elementCalculations(),i=n||y.onPassing;if(n&&(e.debug("Adding callback for passing",n),y.onPassing=n),t.passing?e.execute(i,"passing"):y.once||e.remove.occurred("passing"),void 0!==n)return t.passing},topVisible:function(n){var t=e.get.elementCalculations(),i=n||y.onTopVisible;if(n&&(e.debug("Adding callback for top visible",n),y.onTopVisible=n),t.topVisible?e.execute(i,"topVisible"):y.once||e.remove.occurred("topVisible"),void 0===n)return t.topVisible},bottomVisible:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomVisible;if(n&&(e.debug("Adding callback for bottom visible",n),y.onBottomVisible=n),t.bottomVisible?e.execute(i,"bottomVisible"):y.once||e.remove.occurred("bottomVisible"),void 0===n)return t.bottomVisible},topPassed:function(n){var t=e.get.elementCalculations(),i=n||y.onTopPassed;if(n&&(e.debug("Adding callback for top passed",n),y.onTopPassed=n),t.topPassed?e.execute(i,"topPassed"):y.once||e.remove.occurred("topPassed"),void 0===n)return t.topPassed},bottomPassed:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomPassed;if(n&&(e.debug("Adding callback for bottom passed",n),y.onBottomPassed=n),t.bottomPassed?e.execute(i,"bottomPassed"):y.once||e.remove.occurred("bottomPassed"),void 0===n)return t.bottomPassed},passingReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onPassingReverse;if(n&&(e.debug("Adding callback for passing reverse",n),y.onPassingReverse=n),t.passing?y.once||e.remove.occurred("passingReverse"):e.get.occurred("passing")&&e.execute(i,"passingReverse"),void 0!==n)return!t.passing},topVisibleReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onTopVisibleReverse;if(n&&(e.debug("Adding callback for top visible reverse",n),y.onTopVisibleReverse=n),t.topVisible?y.once||e.remove.occurred("topVisibleReverse"):e.get.occurred("topVisible")&&e.execute(i,"topVisibleReverse"),void 0===n)return!t.topVisible},bottomVisibleReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomVisibleReverse;if(n&&(e.debug("Adding callback for bottom visible reverse",n),y.onBottomVisibleReverse=n),t.bottomVisible?y.once||e.remove.occurred("bottomVisibleReverse"):e.get.occurred("bottomVisible")&&e.execute(i,"bottomVisibleReverse"),void 0===n)return!t.bottomVisible},topPassedReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onTopPassedReverse;if(n&&(e.debug("Adding callback for top passed reverse",n),y.onTopPassedReverse=n),t.topPassed?y.once||e.remove.occurred("topPassedReverse"):e.get.occurred("topPassed")&&e.execute(i,"topPassedReverse"),void 0===n)return!t.onTopPassed},bottomPassedReverse:function(n){var t=e.get.elementCalculations(),i=n||y.onBottomPassedReverse;if(n&&(e.debug("Adding callback for bottom passed reverse",n),y.onBottomPassedReverse=n),t.bottomPassed?y.once||e.remove.occurred("bottomPassedReverse"):e.get.occurred("bottomPassed")&&e.execute(i,"bottomPassedReverse"),void 0===n)return!t.bottomPassed},execute:function(n,t){var i=e.get.elementCalculations(),r=e.get.screenCalculations();n=n||!1;n&&(y.continuous?(e.debug("Callback being called continuously",t,i),n.call(k,i,r)):e.get.occurred(t)||(e.debug("Conditions met",t,i),n.call(k,i,r)));e.save.occurred(t)},remove:{fixed:function(){e.debug("Removing fixed position");p.removeClass(it.fixed).css({position:"",top:"",left:"",zIndex:""});y.onUnfixed.call(k)},placeholder:function(){e.debug("Removing placeholder content");g&&g.remove()},occurred:function(n){if(n){var t=e.cache.occurred;void 0!==t[n]&&t[n]===!0&&(e.debug("Callback can now be called again",n),e.cache.occurred[n]=!1)}else e.cache.occurred={}}},save:{calculations:function(){e.verbose("Saving all calculations necessary to determine positioning");e.save.direction();e.save.screenCalculations();e.save.elementCalculations()},occurred:function(n){n&&(void 0!==e.cache.occurred[n]&&e.cache.occurred[n]===!0||(e.verbose("Saving callback occurred",n),e.cache.occurred[n]=!0))},scroll:function(n){n=n+y.offset||w.scrollTop()+y.offset;e.cache.scroll=n},direction:function(){var t,i=e.get.scroll(),n=e.get.lastScroll();return t=i>n&&n?"down":i<n&&n?"up":"static",e.cache.direction=t,e.cache.direction},elementPosition:function(){var n=e.cache.element,t=e.get.screenSize();return e.verbose("Saving element position"),n.fits=n.height<t.height,n.offset=p.offset(),n.width=p.outerWidth(),n.height=p.outerHeight(),e.is.verticallyScrollableContext()&&(n.offset.top+=w.scrollTop()-w.offset().top),e.is.horizontallyScrollableContext()&&(n.offset.left+=w.scrollLeft-w.offset().left),e.cache.element=n,n},elementCalculations:function(){var t=e.get.screenCalculations(),n=e.get.elementPosition();return y.includeMargin?(n.margin={},n.margin.top=parseInt(p.css("margin-top"),10),n.margin.bottom=parseInt(p.css("margin-bottom"),10),n.top=n.offset.top-n.margin.top,n.bottom=n.offset.top+n.height+n.margin.bottom):(n.top=n.offset.top,n.bottom=n.offset.top+n.height),n.topPassed=t.top>=n.top,n.bottomPassed=t.top>=n.bottom,n.topVisible=t.bottom>=n.top&&!n.bottomPassed,n.bottomVisible=t.bottom>=n.bottom&&!n.topPassed,n.pixelsPassed=0,n.percentagePassed=0,n.onScreen=n.topVisible&&!n.bottomPassed,n.passing=n.topPassed&&!n.bottomPassed,n.offScreen=!n.onScreen,n.passing&&(n.pixelsPassed=t.top-n.top,n.percentagePassed=(t.top-n.top)/n.height),e.cache.element=n,e.verbose("Updated element calculations",n),n},screenCalculations:function(){var n=e.get.scroll();return e.save.direction(),e.cache.screen.top=n,e.cache.screen.bottom=n+e.cache.screen.height,e.cache.screen},screenSize:function(){e.verbose("Saving window position");e.cache.screen={height:w.height()}},position:function(){e.save.screenSize();e.save.elementPosition()}},get:{pixelsPassed:function(n){var t=e.get.elementCalculations();return n.search("%")>-1?t.height*(parseInt(n,10)/100):parseInt(n,10)},occurred:function(n){return void 0!==e.cache.occurred&&(e.cache.occurred[n]||!1)},direction:function(){return void 0===e.cache.direction&&e.save.direction(),e.cache.direction},elementPosition:function(){return void 0===e.cache.element&&e.save.elementPosition(),e.cache.element},elementCalculations:function(){return void 0===e.cache.element&&e.save.elementCalculations(),e.cache.element},screenCalculations:function(){return void 0===e.cache.screen&&e.save.screenCalculations(),e.cache.screen},screenSize:function(){return void 0===e.cache.screen&&e.save.screenSize(),e.cache.screen},scroll:function(){return void 0===e.cache.scroll&&e.save.scroll(),e.cache.scroll},lastScroll:function(){return void 0===e.cache.screen?(e.debug("First scroll event, no last scroll could be found"),!1):e.cache.screen.top}},setting:function(t,i){if(n.isPlainObject(t))n.extend(!0,y,t);else{if(void 0===i)return y[t];y[t]=i}},internal:function(t,i){if(n.isPlainObject(t))n.extend(!0,e,t);else{if(void 0===i)return e[t];e[t]=i}},debug:function(){!y.silent&&y.debug&&(y.performance?e.performance.log(arguments):(e.debug=Function.prototype.bind.call(console.info,console,y.name+":"),e.debug.apply(console,arguments)))},verbose:function(){!y.silent&&y.verbose&&y.debug&&(y.performance?e.performance.log(arguments):(e.verbose=Function.prototype.bind.call(console.info,console,y.name+":"),e.verbose.apply(console,arguments)))},error:function(){y.silent||(e.error=Function.prototype.bind.call(console.error,console,y.name+":"),e.error.apply(console,arguments))},performance:{log:function(n){var t,i,r;y.performance&&(t=(new Date).getTime(),r=o||t,i=t-r,o=t,f.push({Name:n[0],Arguments:[].slice.call(n,1)||"",Element:k,"Execution Time":i}));clearTimeout(e.performance.timer);e.performance.timer=setTimeout(e.performance.display,500)},display:function(){var t=y.name+":",i=0;o=!1;clearTimeout(e.performance.timer);n.each(f,function(n,t){i+=t["Execution Time"]});t+=" "+i+"ms";s&&(t+=" '"+s+"'");(void 0!==console.group||void 0!==console.table)&&f.length>0&&(console.groupCollapsed(t),console.table?console.table(f):n.each(f,function(n,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd());f=[]}},invoke:function(t,i,r){var h,o,s,f=d;return i=i||a,r=k||r,"string"==typeof t&&void 0!==f&&(t=t.split(/[\. ]/),h=t.length-1,n.each(t,function(i,r){var u=i!=h?r+t[i+1].charAt(0).toUpperCase()+t[i+1].slice(1):t;if(n.isPlainObject(f[u])&&i!=h)f=f[u];else{if(void 0!==f[u])return o=f[u],!1;if(!n.isPlainObject(f[r])||i==h)return void 0!==f[r]?(o=f[r],!1):(e.error(st.method,t),!1);f=f[r]}})),n.isFunction(o)?s=o.apply(r,i):void 0!==o&&(s=o),n.isArray(u)?u.push(s):void 0!==u?u=[u,s]:void 0!==s&&(u=s),o}};c?(void 0===d&&e.initialize(),d.save.scroll(),d.save.calculations(),e.invoke(h)):(void 0!==d&&d.invoke("destroy"),e.initialize())}),void 0!==u?u:this};n.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:t,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"placeholder",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document);!function(){"use strict";var n;(function(n){var t,r=["Webkit","Moz","O","ms"],u=document.createElement("div"),i=n in u.style;if(!i)for(n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<r.length&&!(i=r[t]+n in u.style);t+=1);return i})("fontFeatureSettings")||(delete(n={home:"&#xe600;",building:"&#xe600;",home2:"&#xe601;",building2:"&#xe601;",home3:"&#xe602;",building3:"&#xe602;",home4:"&#xe603;",building4:"&#xe603;",home5:"&#xe604;",building5:"&#xe604;",home6:"&#xe605;",building6:"&#xe605;",bathtub:"&#xe606;",shower:"&#xe606;",toothbrush:"&#xe607;",hygiene:"&#xe607;",bed:"&#xe608;",hotel:"&#xe608;",couch:"&#xe609;",furniture:"&#xe609;",chair:"&#xe60a;",furniture2:"&#xe60a;",city:"&#xe60b;",building7:"&#xe60b;",apartment:"&#xe60c;",building8:"&#xe60c;",pencil:"&#xe60d;",write:"&#xe60d;",pencil2:"&#xe60e;",write2:"&#xe60e;",pen:"&#xe60f;",write3:"&#xe60f;",pencil3:"&#xe610;",write4:"&#xe610;",eraser:"&#xe611;",rubber:"&#xe611;",pencil4:"&#xe612;",write5:"&#xe612;",pencil5:"&#xe613;",write6:"&#xe613;",feather:"&#xe614;",write7:"&#xe614;",feather2:"&#xe615;",write8:"&#xe615;",feather3:"&#xe616;",write9:"&#xe616;",pen2:"&#xe617;",write10:"&#xe617;","pen-add":"&#xe618;","pen-remove":"&#xe619;",vector:"&#xe61a;",bezier:"&#xe61a;",pen3:"&#xe61b;",write11:"&#xe61b;",blog:"&#xe61c;",write12:"&#xe61c;",brush:"&#xe61d;",paint:"&#xe61d;",brush2:"&#xe61e;",paint2:"&#xe61e;",spray:"&#xe61f;",paint3:"&#xe61f;","paint-roller":"&#xe620;",paint4:"&#xe620;",stamp:"&#xe621;","rubber-stamp":"&#xe621;",tape:"&#xe622;",adhesive:"&#xe622;","desk-tape":"&#xe623;",adhesive2:"&#xe623;",texture:"&#xe624;",design:"&#xe624;","eye-dropper":"&#xe625;","color-picker":"&#xe625;",palette:"&#xe626;",design2:"&#xe626;","color-sampler":"&#xe627;",design3:"&#xe627;",bucket:"&#xe628;",paint5:"&#xe628;",gradient:"&#xe629;",gradient2:"&#xe62a;","magic-wand":"&#xe62b;",tool:"&#xe62b;",magnet:"&#xe62c;",attract:"&#xe62c;","pencil-ruler":"&#xe62d;",design4:"&#xe62d;","pencil-ruler2":"&#xe62e;",design5:"&#xe62e;",compass:"&#xe62f;",tool2:"&#xe62f;",aim:"&#xe630;",target:"&#xe630;",gun:"&#xe631;",weapon:"&#xe631;",bottle:"&#xe632;",water:"&#xe632;",drop:"&#xe633;",droplet:"&#xe633;","drop-crossed":"&#xe634;",droplet2:"&#xe634;",drop2:"&#xe635;",droplet3:"&#xe635;",snow:"&#xe636;",winter:"&#xe636;",snow2:"&#xe637;",winter2:"&#xe637;",fire:"&#xe638;",flame:"&#xe638;",lighter:"&#xe639;",fire2:"&#xe639;",knife:"&#xe63a;",tool3:"&#xe63a;",dagger:"&#xe63b;",weapon2:"&#xe63b;",tissue:"&#xe63c;",napkin:"&#xe63c;","toilet-paper":"&#xe63d;",toilet:"&#xe63d;",poop:"&#xe63e;",toilet2:"&#xe63e;",umbrella:"&#xe63f;",rain:"&#xe63f;",umbrella2:"&#xe640;",rain2:"&#xe640;",rain3:"&#xe641;",weather:"&#xe641;",tornado:"&#xe642;",weather2:"&#xe642;",wind:"&#xe643;",weather3:"&#xe643;",fan:"&#xe644;",cooling:"&#xe644;",contrast:"&#xe645;","sun-small":"&#xe646;",brightness:"&#xe646;",sun:"&#xe647;",brightness2:"&#xe647;",sun2:"&#xe648;","brightness-auto":"&#xe648;",moon:"&#xe649;",night:"&#xe649;",cloud:"&#xe64a;",weather4:"&#xe64a;","cloud-upload":"&#xe64b;",cloud2:"&#xe64b;","cloud-download":"&#xe64c;",cloud3:"&#xe64c;","cloud-rain":"&#xe64d;",weather5:"&#xe64d;","cloud-hailstones":"&#xe64e;",weather6:"&#xe64e;","cloud-snow":"&#xe64f;",weather7:"&#xe64f;","cloud-windy":"&#xe650;",weather8:"&#xe650;","sun-wind":"&#xe651;",weather9:"&#xe651;","cloud-fog":"&#xe652;",weather10:"&#xe652;","cloud-sun":"&#xe653;",weather11:"&#xe653;","cloud-lightning":"&#xe654;",weather12:"&#xe654;","cloud-sync":"&#xe655;",cloud4:"&#xe655;","cloud-lock":"&#xe656;",cloud5:"&#xe656;","cloud-gear":"&#xe657;",cloud6:"&#xe657;","cloud-alert":"&#xe658;",cloud7:"&#xe658;","cloud-check":"&#xe659;",cloud8:"&#xe659;","cloud-cross":"&#xe65a;",cloud9:"&#xe65a;","cloud-crossed":"&#xe65b;",cloud10:"&#xe65b;","cloud-database":"&#xe65c;",cloud11:"&#xe65c;",database:"&#xe65d;",storage:"&#xe65d;","database-add":"&#xe65e;",database2:"&#xe65e;","database-remove":"&#xe65f;",database3:"&#xe65f;","database-lock":"&#xe660;",database4:"&#xe660;","database-refresh":"&#xe661;",database5:"&#xe661;","database-check":"&#xe662;",database6:"&#xe662;","database-history":"&#xe663;",database7:"&#xe663;","database-upload":"&#xe664;",database8:"&#xe664;","database-download":"&#xe665;",database9:"&#xe665;",server:"&#xe666;",hosting:"&#xe666;",shield:"&#xe667;",security:"&#xe667;","shield-check":"&#xe668;",shield2:"&#xe668;","shield-alert":"&#xe669;",shield3:"&#xe669;","shield-cross":"&#xe66a;",shield4:"&#xe66a;",lock:"&#xe66b;",privacy:"&#xe66b;","rotation-lock":"&#xe66c;","screen-lock":"&#xe66c;",unlock:"&#xe66d;",lock2:"&#xe66d;",key:"&#xe66e;",unlock2:"&#xe66e;","key-hole":"&#xe66f;",lock3:"&#xe66f;","toggle-off":"&#xe670;",toggle:"&#xe670;","toggle-on":"&#xe671;",toggle2:"&#xe671;",cog:"&#xe672;",gear:"&#xe672;",cog2:"&#xe673;",gear2:"&#xe673;",wrench:"&#xe674;",tool4:"&#xe674;",screwdriver:"&#xe675;",tool5:"&#xe675;","hammer-wrench":"&#xe676;",tool6:"&#xe676;",hammer:"&#xe677;",tool7:"&#xe677;",saw:"&#xe678;",tool8:"&#xe678;",axe:"&#xe679;",tool9:"&#xe679;",axe2:"&#xe67a;",tool10:"&#xe67a;",shovel:"&#xe67b;",tool11:"&#xe67b;",pickaxe:"&#xe67c;",tool12:"&#xe67c;",factory:"&#xe67d;",build:"&#xe67d;",factory2:"&#xe67e;",build2:"&#xe67e;",recycle:"&#xe67f;",trash:"&#xe680;",bin:"&#xe680;",trash2:"&#xe681;",bin2:"&#xe681;",trash3:"&#xe682;",bin3:"&#xe682;",broom:"&#xe683;",sweep:"&#xe683;",game:"&#xe684;",retro:"&#xe684;",gamepad:"&#xe685;",game2:"&#xe685;",joystick:"&#xe686;",game3:"&#xe686;",dice:"&#xe687;",game4:"&#xe687;",spades:"&#xe688;",cards:"&#xe688;",diamonds:"&#xe689;",cards2:"&#xe689;",clubs:"&#xe68a;",cards3:"&#xe68a;",hearts:"&#xe68b;",cards4:"&#xe68b;",heart:"&#xe68c;",love:"&#xe68c;",star:"&#xe68d;",rating:"&#xe68d;","star-half":"&#xe68e;",rating2:"&#xe68e;","star-empty":"&#xe68f;",rating3:"&#xe68f;",flag:"&#xe690;",report:"&#xe690;",flag2:"&#xe691;",report2:"&#xe691;",flag3:"&#xe692;",report3:"&#xe692;","mailbox-full":"&#xe693;",mailbox:"&#xe693;","mailbox-empty":"&#xe694;",mailbox2:"&#xe694;","at-sign":"&#xe695;",mail:"&#xe695;",envelope:"&#xe696;",mail2:"&#xe696;","envelope-open":"&#xe697;",mail3:"&#xe697;",paperclip:"&#xe698;",attachment:"&#xe698;","paper-plane":"&#xe699;",mail4:"&#xe699;",reply:"&#xe69a;",left:"&#xe69a;","reply-all":"&#xe69b;",left2:"&#xe69b;",inbox:"&#xe69c;",drawer:"&#xe69c;",inbox2:"&#xe69d;",drawer2:"&#xe69d;",outbox:"&#xe69e;",drawer3:"&#xe69e;",box:"&#xe69f;",storage2:"&#xe69f;",archive:"&#xe6a0;",drawer4:"&#xe6a0;",archive2:"&#xe6a1;",drawer5:"&#xe6a1;",drawers:"&#xe6a2;",drawer6:"&#xe6a2;",drawers2:"&#xe6a3;",drawer7:"&#xe6a3;",drawers3:"&#xe6a4;",drawer8:"&#xe6a4;",eye:"&#xe6a5;",vision:"&#xe6a5;","eye-crossed":"&#xe6a6;",eye2:"&#xe6a6;","eye-plus":"&#xe6a7;",eye3:"&#xe6a7;","eye-minus":"&#xe6a8;",eye4:"&#xe6a8;",binoculars:"&#xe6a9;",lookup:"&#xe6a9;",binoculars2:"&#xe6aa;",lookup2:"&#xe6aa;",hdd:"&#xe6ab;",storage3:"&#xe6ab;","hdd-down":"&#xe6ac;",hdd2:"&#xe6ac;","hdd-up":"&#xe6ad;",hdd3:"&#xe6ad;","floppy-disk":"&#xe6ae;",storage4:"&#xe6ae;",disc:"&#xe6af;",storage5:"&#xe6af;",tape2:"&#xe6b0;",storage6:"&#xe6b0;",printer:"&#xe6b1;",print:"&#xe6b1;",shredder:"&#xe6b2;",remove:"&#xe6b2;","file-empty":"&#xe6b3;",file:"&#xe6b3;","file-add":"&#xe6b4;",file2:"&#xe6b4;","file-check":"&#xe6b5;",file3:"&#xe6b5;","file-lock":"&#xe6b6;",file4:"&#xe6b6;",files:"&#xe6b7;",stack:"&#xe6b7;",copy:"&#xe6b8;",files2:"&#xe6b8;",compare:"&#xe6b9;",diff:"&#xe6b9;",folder:"&#xe6ba;",directory:"&#xe6ba;","folder-search":"&#xe6bb;",folder2:"&#xe6bb;","folder-plus":"&#xe6bc;",folder3:"&#xe6bc;","folder-minus":"&#xe6bd;",folder4:"&#xe6bd;","folder-download":"&#xe6be;",folder5:"&#xe6be;","folder-upload":"&#xe6bf;",folder6:"&#xe6bf;","folder-star":"&#xe6c0;",folder7:"&#xe6c0;","folder-heart":"&#xe6c1;",folder8:"&#xe6c1;","folder-user":"&#xe6c2;",folder9:"&#xe6c2;","folder-shared":"&#xe6c3;",folder10:"&#xe6c3;","folder-music":"&#xe6c4;",folder11:"&#xe6c4;","folder-picture":"&#xe6c5;",folder12:"&#xe6c5;","folder-film":"&#xe6c6;",folder13:"&#xe6c6;",scissors:"&#xe6c7;",tool13:"&#xe6c7;",paste:"&#xe6c8;",clipboard:"&#xe6c8;","clipboard-empty":"&#xe6c9;",clipboard2:"&#xe6c9;","clipboard-pencil":"&#xe6ca;",clipboard3:"&#xe6ca;","clipboard-text":"&#xe6cb;",clipboard4:"&#xe6cb;","clipboard-check":"&#xe6cc;",clipboard5:"&#xe6cc;","clipboard-down":"&#xe6cd;",clipboard6:"&#xe6cd;","clipboard-left":"&#xe6ce;",clipboard7:"&#xe6ce;","clipboard-alert":"&#xe6cf;",clipboard8:"&#xe6cf;","clipboard-user":"&#xe6d0;",clipboard9:"&#xe6d0;",register:"&#xe6d1;",signature:"&#xe6d1;",enter:"&#xe6d2;",door:"&#xe6d2;",exit:"&#xe6d3;",door2:"&#xe6d3;",papers:"&#xe6d4;",stack2:"&#xe6d4;",news:"&#xe6d5;",newspaper:"&#xe6d5;",reading:"&#xe6d6;",library:"&#xe6d6;",typewriter:"&#xe6d7;",typing:"&#xe6d7;",document:"&#xe6d8;",file5:"&#xe6d8;",document2:"&#xe6d9;",file6:"&#xe6d9;","graduation-hat":"&#xe6da;",education:"&#xe6da;",license:"&#xe6db;",certificate:"&#xe6db;",license2:"&#xe6dc;",certificate2:"&#xe6dc;","medal-empty":"&#xe6dd;",medal:"&#xe6dd;","medal-first":"&#xe6de;",medal2:"&#xe6de;","medal-second":"&#xe6df;",medal3:"&#xe6df;","medal-third":"&#xe6e0;",medal4:"&#xe6e0;",podium:"&#xe6e1;",standings:"&#xe6e1;",trophy:"&#xe6e2;",cup:"&#xe6e2;",trophy2:"&#xe6e3;",cup2:"&#xe6e3;","music-note":"&#xe6e4;",music:"&#xe6e4;","music-note2":"&#xe6e5;",music2:"&#xe6e5;","music-note3":"&#xe6e6;",music3:"&#xe6e6;",playlist:"&#xe6e7;","playlist-add":"&#xe6e8;",guitar:"&#xe6e9;",music4:"&#xe6e9;",trumpet:"&#xe6ea;",music5:"&#xe6ea;",album:"&#xe6eb;",music6:"&#xe6eb;",shuffle:"&#xe6ec;",randomize:"&#xe6ec;","repeat-one":"&#xe6ed;",loop:"&#xe6ed;",repeat:"&#xe6ee;",loop2:"&#xe6ee;",headphones:"&#xe6ef;",music7:"&#xe6ef;",headset:"&#xe6f0;",headphones2:"&#xe6f0;",loudspeaker:"&#xe6f1;",music8:"&#xe6f1;",equalizer:"&#xe6f2;",settings:"&#xe6f2;",theater:"&#xe6f3;",drama:"&#xe6f3;","3d-glasses":"&#xe6f4;",glasses:"&#xe6f4;",ticket:"&#xe6f5;",theater2:"&#xe6f5;",presentation:"&#xe6f6;",board:"&#xe6f6;",play:"&#xe6f7;",video:"&#xe6f7;","film-play":"&#xe6f8;",video2:"&#xe6f8;","clapboard-play":"&#xe6f9;",video3:"&#xe6f9;",media:"&#xe6fa;","film-picture-music":"&#xe6fa;",film:"&#xe6fb;",video4:"&#xe6fb;",film2:"&#xe6fc;",photo:"&#xe6fc;",surveillance:"&#xe6fd;","security-camera":"&#xe6fd;",surveillance2:"&#xe6fe;","security-camera2":"&#xe6fe;",camera:"&#xe6ff;",video5:"&#xe6ff;","camera-crossed":"&#xe700;",video6:"&#xe700;","camera-play":"&#xe701;",video7:"&#xe701;","time-lapse":"&#xe702;",video8:"&#xe702;",record:"&#xe703;",video9:"&#xe703;",camera2:"&#xe704;",photo2:"&#xe704;","camera-flip":"&#xe705;",panorama:"&#xe706;",photo3:"&#xe706;","time-lapse2":"&#xe707;",photo4:"&#xe707;",shutter:"&#xe708;",camera3:"&#xe708;",shutter2:"&#xe709;","face-detection":"&#xe70a;",flare:"&#xe70b;",convex:"&#xe70c;",concave:"&#xe70d;",picture:"&#xe70e;",photo5:"&#xe70e;",picture2:"&#xe70f;",photo6:"&#xe70f;",picture3:"&#xe710;",photo7:"&#xe710;",pictures:"&#xe711;",photo8:"&#xe711;",book:"&#xe712;",read:"&#xe712;","audio-book":"&#xe713;",book2:"&#xe713;",book3:"&#xe714;",read2:"&#xe714;",bookmark:"&#xe715;",book4:"&#xe715;",bookmark2:"&#xe716;",ribbon:"&#xe716;",label:"&#xe717;",library2:"&#xe718;",book5:"&#xe718;",library3:"&#xe719;",building9:"&#xe719;",contacts:"&#xe71a;",book6:"&#xe71a;",profile:"&#xe71b;",card:"&#xe71b;",portrait:"&#xe71c;",photo9:"&#xe71c;",portrait2:"&#xe71d;",photo10:"&#xe71d;",user:"&#xe71e;",persona:"&#xe71e;","user-plus":"&#xe71f;",user2:"&#xe71f;","user-minus":"&#xe720;",user3:"&#xe720;","user-lock":"&#xe721;",user4:"&#xe721;",users:"&#xe722;",group:"&#xe722;",users2:"&#xe723;",group2:"&#xe723;","users-plus":"&#xe724;",group3:"&#xe724;","users-minus":"&#xe725;",group4:"&#xe725;","group-work":"&#xe726;",group5:"&#xe726;",woman:"&#xe727;",female:"&#xe727;",man:"&#xe728;",male:"&#xe728;",baby:"&#xe729;",girl:"&#xe729;",baby2:"&#xe72a;",boy:"&#xe72a;",baby3:"&#xe72b;",newborn:"&#xe72b;","baby-bottle":"&#xe72c;",baby4:"&#xe72c;",walk:"&#xe72d;",human:"&#xe72d;","hand-waving":"&#xe72e;",human2:"&#xe72e;",jump:"&#xe72f;",human3:"&#xe72f;",run:"&#xe730;",human4:"&#xe730;",woman2:"&#xe731;",female2:"&#xe731;",man2:"&#xe732;",male2:"&#xe732;","man-woman":"&#xe733;",gender:"&#xe733;",height:"&#xe734;",weight:"&#xe735;",scale:"&#xe735;",scale2:"&#xe736;",button:"&#xe737;",clothing:"&#xe737;","bow-tie":"&#xe738;",clothing2:"&#xe738;",tie:"&#xe739;",clothing3:"&#xe739;",socks:"&#xe73a;",clothing4:"&#xe73a;",shoe:"&#xe73b;",clothing5:"&#xe73b;",shoes:"&#xe73c;",clothing6:"&#xe73c;",hat:"&#xe73d;",clothing7:"&#xe73d;",pants:"&#xe73e;",clothing8:"&#xe73e;",shorts:"&#xe73f;",clothing9:"&#xe73f;","flip-flops":"&#xe740;",clothing10:"&#xe740;",shirt:"&#xe741;",clothing11:"&#xe741;",hanger:"&#xe742;",clothing12:"&#xe742;",laundry:"&#xe743;","washing-machine":"&#xe743;",store:"&#xe744;",shop:"&#xe744;",haircut:"&#xe745;","scissors-comb":"&#xe745;","store-24":"&#xe746;",shop2:"&#xe746;",barcode:"&#xe747;",price:"&#xe747;",barcode2:"&#xe748;",price2:"&#xe748;",barcode3:"&#xe749;",price3:"&#xe749;",cashier:"&#xe74a;",checkout:"&#xe74a;",bag:"&#xe74b;",shop3:"&#xe74b;",bag2:"&#xe74c;",shop4:"&#xe74c;",cart:"&#xe74d;",shop5:"&#xe74d;","cart-empty":"&#xe74e;",shop6:"&#xe74e;","cart-full":"&#xe74f;",shop7:"&#xe74f;","cart-plus":"&#xe750;",shop8:"&#xe750;","cart-plus2":"&#xe751;",shop9:"&#xe751;","cart-add":"&#xe752;",shop10:"&#xe752;","cart-remove":"&#xe753;",shop11:"&#xe753;","cart-exchange":"&#xe754;",shop12:"&#xe754;",tag:"&#xe755;",price4:"&#xe755;",tags:"&#xe756;",price5:"&#xe756;",receipt:"&#xe757;",price6:"&#xe757;",wallet:"&#xe758;",money:"&#xe758;","credit-card":"&#xe759;",money2:"&#xe759;","cash-dollar":"&#xe75a;",money3:"&#xe75a;","cash-euro":"&#xe75b;",money4:"&#xe75b;","cash-pound":"&#xe75c;",money5:"&#xe75c;","cash-yen":"&#xe75d;",money6:"&#xe75d;","bag-dollar":"&#xe75e;",money7:"&#xe75e;","bag-euro":"&#xe75f;",money8:"&#xe75f;","bag-pound":"&#xe760;",money9:"&#xe760;","bag-yen":"&#xe761;",money10:"&#xe761;","coin-dollar":"&#xe762;",money11:"&#xe762;","coin-euro":"&#xe763;",money12:"&#xe763;","coin-pound":"&#xe764;",money13:"&#xe764;","coin-yen":"&#xe765;",money14:"&#xe765;",calculator:"&#xe766;",arithmetic:"&#xe766;",calculator2:"&#xe767;",arithmetic2:"&#xe767;",abacus:"&#xe768;",arithmetic3:"&#xe768;",vault:"&#xe769;",safe:"&#xe769;",telephone:"&#xe76a;",phone:"&#xe76a;","phone-lock":"&#xe76b;",phone2:"&#xe76b;","phone-wave":"&#xe76c;",phone3:"&#xe76c;","phone-pause":"&#xe76d;",phone4:"&#xe76d;","phone-outgoing":"&#xe76e;",phone5:"&#xe76e;","phone-incoming":"&#xe76f;",phone6:"&#xe76f;","phone-in-out":"&#xe770;",phone7:"&#xe770;","phone-error":"&#xe771;",phone8:"&#xe771;","phone-sip":"&#xe772;",phone9:"&#xe772;","phone-plus":"&#xe773;",phone10:"&#xe773;","phone-minus":"&#xe774;",phone11:"&#xe774;",voicemail:"&#xe775;",message:"&#xe775;",dial:"&#xe776;","dial-pad":"&#xe776;",telephone2:"&#xe777;",phone12:"&#xe777;",pushpin:"&#xe778;",pin:"&#xe778;",pushpin2:"&#xe779;",pin2:"&#xe779;","map-marker":"&#xe77a;",pin3:"&#xe77a;","map-marker-user":"&#xe77b;",pin4:"&#xe77b;","map-marker-down":"&#xe77c;",pin5:"&#xe77c;","map-marker-check":"&#xe77d;",pin6:"&#xe77d;","map-marker-crossed":"&#xe77e;",pin7:"&#xe77e;",radar:"&#xe77f;",scanner:"&#xe77f;",compass2:"&#xe780;",guide:"&#xe780;",map:"&#xe781;",guide2:"&#xe781;",map2:"&#xe782;",guide3:"&#xe782;",location:"&#xe783;",compass3:"&#xe783;","road-sign":"&#xe784;",directions:"&#xe784;","calendar-empty":"&#xe785;",calendar:"&#xe785;","calendar-check":"&#xe786;",calendar2:"&#xe786;","calendar-cross":"&#xe787;",calendar3:"&#xe787;","calendar-31":"&#xe788;",calendar4:"&#xe788;","calendar-full":"&#xe789;",calendar5:"&#xe789;","calendar-insert":"&#xe78a;",calendar6:"&#xe78a;","calendar-text":"&#xe78b;",calendar7:"&#xe78b;","calendar-user":"&#xe78c;",calendar8:"&#xe78c;",mouse:"&#xe78d;",click:"&#xe78d;","mouse-left":"&#xe78e;",click2:"&#xe78e;","mouse-right":"&#xe78f;",click3:"&#xe78f;","mouse-both":"&#xe790;",click4:"&#xe790;",keyboard:"&#xe791;",type:"&#xe791;","keyboard-up":"&#xe792;",keyboard2:"&#xe792;","keyboard-down":"&#xe793;",keyboard3:"&#xe793;","delete":"&#xe794;",backspace:"&#xe794;","spell-check":"&#xe795;",spelling:"&#xe795;",escape:"&#xe796;",enter2:"&#xe797;",screen:"&#xe798;",monitor:"&#xe798;","aspect-ratio":"&#xe799;",screen2:"&#xe799;",signal:"&#xe79a;",bars:"&#xe79a;","signal-lock":"&#xe79b;",signal2:"&#xe79b;","signal-80":"&#xe79c;",signal3:"&#xe79c;","signal-60":"&#xe79d;",signal4:"&#xe79d;","signal-40":"&#xe79e;",signal5:"&#xe79e;","signal-20":"&#xe79f;",signal6:"&#xe79f;","signal-0":"&#xe7a0;",signal7:"&#xe7a0;","signal-blocked":"&#xe7a1;",signal8:"&#xe7a1;",sim:"&#xe7a2;","sim-card":"&#xe7a2;","flash-memory":"&#xe7a3;","usb-drive":"&#xe7a4;","flash-memory2":"&#xe7a4;",phone13:"&#xe7a5;",mobile:"&#xe7a5;",smartphone:"&#xe7a6;",mobile2:"&#xe7a6;","smartphone-notification":"&#xe7a7;",mobile3:"&#xe7a7;","smartphone-vibration":"&#xe7a8;",mobile4:"&#xe7a8;","smartphone-embed":"&#xe7a9;",mobile5:"&#xe7a9;","smartphone-waves":"&#xe7aa;",mobile6:"&#xe7aa;",tablet:"&#xe7ab;",mobile7:"&#xe7ab;",tablet2:"&#xe7ac;",mobile8:"&#xe7ac;",laptop:"&#xe7ad;",computer:"&#xe7ad;","laptop-phone":"&#xe7ae;",devices:"&#xe7ae;",desktop:"&#xe7af;",computer2:"&#xe7af;",launch:"&#xe7b0;",share:"&#xe7b0;","new-tab":"&#xe7b1;","window-tab":"&#xe7b1;",window:"&#xe7b2;",program:"&#xe7b2;",cable:"&#xe7b3;",plug:"&#xe7b3;",cable2:"&#xe7b4;",plug2:"&#xe7b4;",tv:"&#xe7b5;",television:"&#xe7b5;",radio:"&#xe7b6;",music9:"&#xe7b6;","remote-control":"&#xe7b7;","power-switch":"&#xe7b8;",toggle3:"&#xe7b8;",power:"&#xe7b9;",lightning:"&#xe7b9;","power-crossed":"&#xe7ba;",lightning2:"&#xe7ba;","flash-auto":"&#xe7bb;",lightning3:"&#xe7bb;",lamp:"&#xe7bc;",light:"&#xe7bc;",flashlight:"&#xe7bd;",light2:"&#xe7bd;",lampshade:"&#xe7be;",light3:"&#xe7be;",cord:"&#xe7bf;",plug3:"&#xe7bf;",outlet:"&#xe7c0;",socket:"&#xe7c0;","battery-power":"&#xe7c1;",battery:"&#xe7c1;","battery-empty":"&#xe7c2;",battery2:"&#xe7c2;","battery-alert":"&#xe7c3;",battery3:"&#xe7c3;","battery-error":"&#xe7c4;",battery4:"&#xe7c4;","battery-low1":"&#xe7c5;",battery5:"&#xe7c5;","battery-low2":"&#xe7c6;",battery6:"&#xe7c6;","battery-low3":"&#xe7c7;",battery7:"&#xe7c7;","battery-mid1":"&#xe7c8;",battery8:"&#xe7c8;","battery-mid2":"&#xe7c9;",battery9:"&#xe7c9;","battery-mid3":"&#xe7ca;",battery10:"&#xe7ca;","battery-full":"&#xe7cb;",battery11:"&#xe7cb;","battery-charging":"&#xe7cc;",battery12:"&#xe7cc;","battery-charging2":"&#xe7cd;",battery13:"&#xe7cd;","battery-charging3":"&#xe7ce;",battery14:"&#xe7ce;","battery-charging4":"&#xe7cf;",battery15:"&#xe7cf;","battery-charging5":"&#xe7d0;",battery16:"&#xe7d0;","battery-charging6":"&#xe7d1;",battery17:"&#xe7d1;","battery-charging7":"&#xe7d2;",battery18:"&#xe7d2;",chip:"&#xe7d3;",cpu:"&#xe7d3;","chip-x64":"&#xe7d4;",cpu2:"&#xe7d4;","chip-x86":"&#xe7d5;",cpu3:"&#xe7d5;",bubble:"&#xe7d6;",chat:"&#xe7d6;",bubbles:"&#xe7d7;",chat2:"&#xe7d7;","bubble-dots":"&#xe7d8;",chat3:"&#xe7d8;","bubble-alert":"&#xe7d9;",chat4:"&#xe7d9;","bubble-question":"&#xe7da;",chat5:"&#xe7da;","bubble-text":"&#xe7db;",chat6:"&#xe7db;","bubble-pencil":"&#xe7dc;",chat7:"&#xe7dc;","bubble-picture":"&#xe7dd;",chat8:"&#xe7dd;","bubble-video":"&#xe7de;",chat9:"&#xe7de;","bubble-user":"&#xe7df;",chat10:"&#xe7df;","bubble-quote":"&#xe7e0;",chat11:"&#xe7e0;","bubble-heart":"&#xe7e1;",chat12:"&#xe7e1;","bubble-emoticon":"&#xe7e2;",chat13:"&#xe7e2;","bubble-attachment":"&#xe7e3;",chat14:"&#xe7e3;","phone-bubble":"&#xe7e4;",phone14:"&#xe7e4;","quote-open":"&#xe7e5;","quote-close":"&#xe7e6;",dna:"&#xe7e7;",gene:"&#xe7e7;","heart-pulse":"&#xe7e8;",health:"&#xe7e8;",pulse:"&#xe7e9;",health2:"&#xe7e9;",syringe:"&#xe7ea;",health3:"&#xe7ea;",pills:"&#xe7eb;",health4:"&#xe7eb;","first-aid":"&#xe7ec;",health5:"&#xe7ec;",lifebuoy:"&#xe7ed;",help:"&#xe7ed;",bandage:"&#xe7ee;",health6:"&#xe7ee;",bandages:"&#xe7ef;",health7:"&#xe7ef;",thermometer:"&#xe7f0;",temperature:"&#xe7f0;",microscope:"&#xe7f1;",lab:"&#xe7f1;",brain:"&#xe7f2;",mind:"&#xe7f2;",beaker:"&#xe7f3;",lab2:"&#xe7f3;",skull:"&#xe7f4;",skeleton:"&#xe7f4;",bone:"&#xe7f5;",dog:"&#xe7f5;",construction:"&#xe7f6;","road-sign2":"&#xe7f6;","construction-cone":"&#xe7f7;",construction2:"&#xe7f7;","pie-chart":"&#xe7f8;",chart:"&#xe7f8;","pie-chart2":"&#xe7f9;",chart2:"&#xe7f9;",graph:"&#xe7fa;",chart3:"&#xe7fa;","chart-growth":"&#xe7fb;",chart4:"&#xe7fb;","chart-bars":"&#xe7fc;",chart5:"&#xe7fc;","chart-settings":"&#xe7fd;",chart6:"&#xe7fd;",cake:"&#xe7fe;",birthday:"&#xe7fe;",gift:"&#xe7ff;",birthday2:"&#xe7ff;",balloon:"&#xe800;",birthday3:"&#xe800;",rank:"&#xe801;",chevron:"&#xe801;",rank2:"&#xe802;",chevron2:"&#xe802;",rank3:"&#xe803;",chevron3:"&#xe803;",crown:"&#xe804;",king:"&#xe804;",lotus:"&#xe805;",flower:"&#xe805;",diamond:"&#xe806;",jewelry:"&#xe806;",diamond2:"&#xe807;",jewelry2:"&#xe807;",diamond3:"&#xe808;",jewelry3:"&#xe808;",diamond4:"&#xe809;",jewelry4:"&#xe809;",linearicons:"&#xe80a;",perxis:"&#xe80a;",Linearicons:"&#xe80a;",teacup:"&#xe80b;",drink:"&#xe80b;",teapot:"&#xe80c;",drink2:"&#xe80c;",glass:"&#xe80d;",drink3:"&#xe80d;",bottle2:"&#xe80e;",drink4:"&#xe80e;","glass-cocktail":"&#xe80f;",drink5:"&#xe80f;",glass2:"&#xe810;",drink6:"&#xe810;",dinner:"&#xe811;",food:"&#xe811;",dinner2:"&#xe812;",food2:"&#xe812;",chef:"&#xe813;",food3:"&#xe813;",scale3:"&#xe814;",weight2:"&#xe814;",egg:"&#xe815;",food4:"&#xe815;",egg2:"&#xe816;",food5:"&#xe816;",eggs:"&#xe817;",food6:"&#xe817;",platter:"&#xe818;",food7:"&#xe818;",steak:"&#xe819;",food8:"&#xe819;",hamburger:"&#xe81a;",food9:"&#xe81a;",hotdog:"&#xe81b;",food10:"&#xe81b;",pizza:"&#xe81c;",food11:"&#xe81c;",sausage:"&#xe81d;",food12:"&#xe81d;",chicken:"&#xe81e;",food13:"&#xe81e;",fish:"&#xe81f;",food14:"&#xe81f;",carrot:"&#xe820;",food15:"&#xe820;",cheese:"&#xe821;",food16:"&#xe821;",bread:"&#xe822;",food17:"&#xe822;","ice-cream":"&#xe823;",dessert:"&#xe823;","ice-cream2":"&#xe824;",dessert2:"&#xe824;",candy:"&#xe825;",dessert3:"&#xe825;",lollipop:"&#xe826;",dessert4:"&#xe826;","coffee-bean":"&#xe827;",coffee:"&#xe827;","coffee-cup":"&#xe828;",drink7:"&#xe828;",cherry:"&#xe829;",fruit:"&#xe829;",grapes:"&#xe82a;",fruit2:"&#xe82a;",citrus:"&#xe82b;",fruit3:"&#xe82b;",apple:"&#xe82c;",fruit4:"&#xe82c;",leaf:"&#xe82d;",nature:"&#xe82d;",landscape:"&#xe82e;",nature2:"&#xe82e;","pine-tree":"&#xe82f;",nature3:"&#xe82f;",tree:"&#xe830;",nature4:"&#xe830;",cactus:"&#xe831;",nature5:"&#xe831;",paw:"&#xe832;",pet:"&#xe832;",footprint:"&#xe833;",steps:"&#xe833;","speed-slow":"&#xe834;",gauge:"&#xe834;","speed-medium":"&#xe835;",gauge2:"&#xe835;","speed-fast":"&#xe836;",gauge3:"&#xe836;",rocket:"&#xe837;",spaceship:"&#xe837;",hammer2:"&#xe838;",justice:"&#xe838;",balance:"&#xe839;",justice2:"&#xe839;",briefcase:"&#xe83a;",suitcase:"&#xe83a;","luggage-weight":"&#xe83b;",scale4:"&#xe83b;",dolly:"&#xe83c;",luggage:"&#xe83c;",plane:"&#xe83d;",flight:"&#xe83d;","plane-crossed":"&#xe83e;",flight2:"&#xe83e;",helicopter:"&#xe83f;",flight3:"&#xe83f;","traffic-lights":"&#xe840;","traffic-signals":"&#xe840;",siren:"&#xe841;",alarm:"&#xe841;",road:"&#xe842;",travel:"&#xe842;",engine:"&#xe843;",motor:"&#xe843;","oil-pressure":"&#xe844;","coolant-temperature":"&#xe845;",thermometer2:"&#xe845;","car-battery":"&#xe846;",battery19:"&#xe846;",gas:"&#xe847;",fuel:"&#xe847;",gallon:"&#xe848;",gas2:"&#xe848;",transmission:"&#xe849;","stick-shift":"&#xe849;",car:"&#xe84a;",travel2:"&#xe84a;","car-wash":"&#xe84b;","car-wash2":"&#xe84c;",bus:"&#xe84d;",travel3:"&#xe84d;",bus2:"&#xe84e;",travel4:"&#xe84e;",car2:"&#xe84f;",travel5:"&#xe84f;",parking:"&#xe850;","car-lock":"&#xe851;",taxi:"&#xe852;",travel6:"&#xe852;","car-siren":"&#xe853;",police:"&#xe853;","car-wash3":"&#xe854;","car-wash4":"&#xe855;",ambulance:"&#xe856;",health8:"&#xe856;",truck:"&#xe857;",delivery:"&#xe857;",trailer:"&#xe858;",delivery2:"&#xe858;","scale-truck":"&#xe859;",weighbridge:"&#xe859;",train:"&#xe85a;",travel7:"&#xe85a;",ship:"&#xe85b;",travel8:"&#xe85b;",ship2:"&#xe85c;",travel9:"&#xe85c;",anchor:"&#xe85d;",sailing:"&#xe85d;",boat:"&#xe85e;",travel10:"&#xe85e;",bicycle:"&#xe85f;",travel11:"&#xe85f;",bicycle2:"&#xe860;",exercise:"&#xe860;",dumbbell:"&#xe861;",exercise2:"&#xe861;","bench-press":"&#xe862;",exercise3:"&#xe862;",swim:"&#xe863;",exercise4:"&#xe863;",football:"&#xe864;",sports:"&#xe864;","baseball-bat":"&#xe865;",sports2:"&#xe865;",baseball:"&#xe866;",sports3:"&#xe866;",tennis:"&#xe867;",sports4:"&#xe867;",tennis2:"&#xe868;",sports5:"&#xe868;","ping-pong":"&#xe869;",sports6:"&#xe869;",hockey:"&#xe86a;",sports7:"&#xe86a;","8ball":"&#xe86b;",sports8:"&#xe86b;",bowling:"&#xe86c;",sports9:"&#xe86c;","bowling-pins":"&#xe86d;",sports10:"&#xe86d;",golf:"&#xe86e;",sports11:"&#xe86e;",golf2:"&#xe86f;",sports12:"&#xe86f;",archery:"&#xe870;",sports13:"&#xe870;",slingshot:"&#xe871;",weapon3:"&#xe871;",soccer:"&#xe872;",sports14:"&#xe872;",basketball:"&#xe873;",sports15:"&#xe873;",cube:"&#xe874;",geometry:"&#xe874;","3d-rotate":"&#xe875;",puzzle:"&#xe876;",piece:"&#xe876;",glasses2:"&#xe877;",vision2:"&#xe877;",glasses3:"&#xe878;",vision3:"&#xe878;",accessibility:"&#xe879;",wheelchair:"&#xe87a;",disabled:"&#xe87a;",wall:"&#xe87b;",bricks:"&#xe87b;",fence:"&#xe87c;",wall2:"&#xe87c;",wall3:"&#xe87d;",bricks2:"&#xe87d;",icons:"&#xe87e;",grid:"&#xe87e;","resize-handle":"&#xe87f;",icons2:"&#xe880;",grid2:"&#xe880;",select:"&#xe881;",cursor:"&#xe881;",select2:"&#xe882;",cursor2:"&#xe882;","site-map":"&#xe883;",tree2:"&#xe883;",earth:"&#xe884;",globe:"&#xe884;","earth-lock":"&#xe885;","internet-lock":"&#xe885;",network:"&#xe886;",globe2:"&#xe886;","network-lock":"&#xe887;","internet-lock2":"&#xe887;",planet:"&#xe888;",globe3:"&#xe888;",happy:"&#xe889;",emoticon:"&#xe889;",smile:"&#xe88a;",emoticon2:"&#xe88a;",grin:"&#xe88b;",emoticon3:"&#xe88b;",tongue:"&#xe88c;",emoticon4:"&#xe88c;",sad:"&#xe88d;",emoticon5:"&#xe88d;",wink:"&#xe88e;",emoticon6:"&#xe88e;",dream:"&#xe88f;",emoticon7:"&#xe88f;",shocked:"&#xe890;",emoticon8:"&#xe890;",shocked2:"&#xe891;",emoticon9:"&#xe891;",tongue2:"&#xe892;",emoticon10:"&#xe892;",neutral:"&#xe893;",emoticon11:"&#xe893;","happy-grin":"&#xe894;",emoticon12:"&#xe894;",cool:"&#xe895;",emoticon13:"&#xe895;",mad:"&#xe896;",emoticon14:"&#xe896;","grin-evil":"&#xe897;",emoticon15:"&#xe897;",evil:"&#xe898;",emoticon16:"&#xe898;",wow:"&#xe899;",emoticon17:"&#xe899;",annoyed:"&#xe89a;",emoticon18:"&#xe89a;",wondering:"&#xe89b;",emoticon19:"&#xe89b;",confused:"&#xe89c;",emoticon20:"&#xe89c;",zipped:"&#xe89d;",emoticon21:"&#xe89d;",grumpy:"&#xe89e;",emoticon22:"&#xe89e;",mustache:"&#xe89f;",emoticon23:"&#xe89f;","tombstone-hipster":"&#xe8a0;",rip:"&#xe8a0;",tombstone:"&#xe8a1;",rip2:"&#xe8a1;",ghost:"&#xe8a2;",spirit:"&#xe8a2;","ghost-hipster":"&#xe8a3;",spirit2:"&#xe8a3;",halloween:"&#xe8a4;",pumpkin:"&#xe8a4;",christmas:"&#xe8a5;",tree3:"&#xe8a5;","easter-egg":"&#xe8a6;",egg3:"&#xe8a6;",mustache2:"&#xe8a7;",hipster:"&#xe8a7;","mustache-glasses":"&#xe8a8;",hipster2:"&#xe8a8;",pipe:"&#xe8a9;",hipster3:"&#xe8a9;",alarm2:"&#xe8aa;",bell:"&#xe8aa;","alarm-add":"&#xe8ab;",bell2:"&#xe8ab;","alarm-snooze":"&#xe8ac;",bell3:"&#xe8ac;","alarm-ringing":"&#xe8ad;",bell4:"&#xe8ad;",bullhorn:"&#xe8ae;",megaphone:"&#xe8ae;",hearing:"&#xe8af;",health9:"&#xe8af;","volume-high":"&#xe8b0;",speaker:"&#xe8b0;","volume-medium":"&#xe8b1;",speaker2:"&#xe8b1;","volume-low":"&#xe8b2;",speaker3:"&#xe8b2;",volume:"&#xe8b3;",speaker4:"&#xe8b3;",mute:"&#xe8b4;",speaker5:"&#xe8b4;",lan:"&#xe8b5;",network2:"&#xe8b5;",lan2:"&#xe8b6;",network3:"&#xe8b6;",wifi:"&#xe8b7;",connection:"&#xe8b7;","wifi-lock":"&#xe8b8;",connection2:"&#xe8b8;","wifi-blocked":"&#xe8b9;",connection3:"&#xe8b9;","wifi-mid":"&#xe8ba;",connection4:"&#xe8ba;","wifi-low":"&#xe8bb;",connection5:"&#xe8bb;","wifi-low2":"&#xe8bc;",connection6:"&#xe8bc;","wifi-alert":"&#xe8bd;",connection7:"&#xe8bd;","wifi-alert-mid":"&#xe8be;",connection8:"&#xe8be;","wifi-alert-low":"&#xe8bf;",connection9:"&#xe8bf;","wifi-alert-low2":"&#xe8c0;",connection10:"&#xe8c0;",stream:"&#xe8c1;",broadcast:"&#xe8c1;","stream-check":"&#xe8c2;",stream2:"&#xe8c2;","stream-error":"&#xe8c3;",stream3:"&#xe8c3;","stream-alert":"&#xe8c4;",stream4:"&#xe8c4;",communication:"&#xe8c5;",waves:"&#xe8c5;","communication-crossed":"&#xe8c6;",waves2:"&#xe8c6;",broadcast2:"&#xe8c7;",waves3:"&#xe8c7;",antenna:"&#xe8c8;",waves4:"&#xe8c8;",satellite:"&#xe8c9;",gps:"&#xe8c9;",satellite2:"&#xe8ca;",antenna2:"&#xe8ca;",mic:"&#xe8cb;",voice:"&#xe8cb;","mic-mute":"&#xe8cc;",voice2:"&#xe8cc;",mic2:"&#xe8cd;",voice3:"&#xe8cd;",spotlights:"&#xe8ce;",featured:"&#xe8ce;",hourglass:"&#xe8cf;",loading:"&#xe8cf;",loading2:"&#xe8d0;",spinner:"&#xe8d0;",loading3:"&#xe8d1;",spinner2:"&#xe8d1;",loading4:"&#xe8d2;",spinner3:"&#xe8d2;",refresh:"&#xe8d3;",spinner4:"&#xe8d3;",refresh2:"&#xe8d4;",spinner5:"&#xe8d4;",undo:"&#xe8d5;",left3:"&#xe8d5;",redo:"&#xe8d6;",right:"&#xe8d6;",jump2:"&#xe8d7;","step-over":"&#xe8d7;",undo2:"&#xe8d8;",ccw:"&#xe8d8;",redo2:"&#xe8d9;",cw:"&#xe8d9;",sync:"&#xe8da;",spinner6:"&#xe8da;","repeat-one2":"&#xe8db;","sync-crossed":"&#xe8dc;",sync2:"&#xe8dd;",spinner7:"&#xe8dd;","repeat-one3":"&#xe8de;","sync-crossed2":"&#xe8df;","return":"&#xe8e0;",backward:"&#xe8e0;",return2:"&#xe8e1;",backward2:"&#xe8e1;",refund:"&#xe8e2;",return3:"&#xe8e2;",history:"&#xe8e3;",archive3:"&#xe8e3;",history2:"&#xe8e4;",archive4:"&#xe8e4;","self-timer":"&#xe8e5;",clock:"&#xe8e6;",time:"&#xe8e6;",clock2:"&#xe8e7;",time2:"&#xe8e7;",clock3:"&#xe8e8;",time3:"&#xe8e8;",watch:"&#xe8e9;",time4:"&#xe8e9;",alarm3:"&#xe8ea;",time5:"&#xe8ea;","alarm-add2":"&#xe8eb;",time6:"&#xe8eb;","alarm-remove":"&#xe8ec;",time7:"&#xe8ec;","alarm-check":"&#xe8ed;",time8:"&#xe8ed;","alarm-error":"&#xe8ee;",time9:"&#xe8ee;",timer:"&#xe8ef;",time10:"&#xe8ef;","timer-crossed":"&#xe8f0;",time11:"&#xe8f0;",timer2:"&#xe8f1;",time12:"&#xe8f1;","timer-crossed2":"&#xe8f2;",time13:"&#xe8f2;",download:"&#xe8f3;",down:"&#xe8f3;",upload:"&#xe8f4;",up:"&#xe8f4;",download2:"&#xe8f5;",down2:"&#xe8f5;",upload2:"&#xe8f6;",up2:"&#xe8f6;","enter-up":"&#xe8f7;",up3:"&#xe8f7;","enter-down":"&#xe8f8;",down3:"&#xe8f8;","enter-left":"&#xe8f9;",left4:"&#xe8f9;","enter-right":"&#xe8fa;",right2:"&#xe8fa;","exit-up":"&#xe8fb;",up4:"&#xe8fb;","exit-down":"&#xe8fc;",down4:"&#xe8fc;","exit-left":"&#xe8fd;",left5:"&#xe8fd;","exit-right":"&#xe8fe;",right3:"&#xe8fe;","enter-up2":"&#xe8ff;",up5:"&#xe8ff;","enter-down2":"&#xe900;",down5:"&#xe900;","enter-vertical":"&#xe901;","enter-left2":"&#xe902;",left6:"&#xe902;","enter-right2":"&#xe903;",right4:"&#xe903;","enter-horizontal":"&#xe904;",arrow:"&#xe904;","exit-up2":"&#xe905;",up6:"&#xe905;","exit-down2":"&#xe906;",down6:"&#xe906;","exit-left2":"&#xe907;",left7:"&#xe907;","exit-right2":"&#xe908;",right5:"&#xe908;",cli:"&#xe909;",console:"&#xe909;",bug:"&#xe90a;",insect:"&#xe90a;",code:"&#xe90b;",embed:"&#xe90b;","file-code":"&#xe90c;",file7:"&#xe90c;","file-image":"&#xe90d;",file8:"&#xe90d;","file-zip":"&#xe90e;",file9:"&#xe90e;","file-audio":"&#xe90f;",file10:"&#xe90f;","file-video":"&#xe910;",file11:"&#xe910;","file-preview":"&#xe911;",file12:"&#xe911;","file-charts":"&#xe912;",file13:"&#xe912;","file-stats":"&#xe913;",file14:"&#xe913;","file-spreadsheet":"&#xe914;",file15:"&#xe914;",link:"&#xe915;",url:"&#xe915;",unlink:"&#xe916;",url2:"&#xe916;",link2:"&#xe917;",url3:"&#xe917;",unlink2:"&#xe918;",url4:"&#xe918;","thumbs-up":"&#xe919;",like:"&#xe919;","thumbs-down":"&#xe91a;",dislike:"&#xe91a;","thumbs-up2":"&#xe91b;",like2:"&#xe91b;","thumbs-down2":"&#xe91c;",dislike2:"&#xe91c;","thumbs-up3":"&#xe91d;",like3:"&#xe91d;","thumbs-down3":"&#xe91e;",dislike3:"&#xe91e;",share2:"&#xe91f;","export":"&#xe91f;",share3:"&#xe920;",social:"&#xe920;",share4:"&#xe921;",social2:"&#xe921;",magnifier:"&#xe922;",search:"&#xe922;","file-search":"&#xe923;",file16:"&#xe923;","find-replace":"&#xe924;",search2:"&#xe924;","zoom-in":"&#xe925;",magnifier2:"&#xe925;","zoom-out":"&#xe926;",magnifier3:"&#xe926;",loupe:"&#xe927;",magnifier4:"&#xe927;","loupe-zoom-in":"&#xe928;",magnifier5:"&#xe928;","loupe-zoom-out":"&#xe929;",magnifier6:"&#xe929;",cross:"&#xe92a;",cancel:"&#xe92a;",menu:"&#xe92b;",options:"&#xe92b;",list:"&#xe92c;",options2:"&#xe92c;",list2:"&#xe92d;",options3:"&#xe92d;",list3:"&#xe92e;",options4:"&#xe92e;",menu2:"&#xe92f;",options5:"&#xe92f;",list4:"&#xe930;",options6:"&#xe930;",menu3:"&#xe931;",dropdown:"&#xe931;",exclamation:"&#xe932;",alert:"&#xe932;",question:"&#xe933;",help2:"&#xe933;",check:"&#xe934;",checkmark:"&#xe934;",cross2:"&#xe935;",cancel2:"&#xe935;",plus:"&#xe936;",add:"&#xe936;",minus:"&#xe937;",subtract:"&#xe937;",percent:"&#xe938;",discount:"&#xe938;","chevron-up":"&#xe939;",up7:"&#xe939;","chevron-down":"&#xe93a;",down7:"&#xe93a;","chevron-left":"&#xe93b;",left8:"&#xe93b;","chevron-right":"&#xe93c;",right6:"&#xe93c;","chevrons-expand-vertical":"&#xe93d;",chevrons:"&#xe93d;","chevrons-expand-horizontal":"&#xe93e;",chevrons2:"&#xe93e;","chevrons-contract-vertical":"&#xe93f;",chevrons3:"&#xe93f;","chevrons-contract-horizontal":"&#xe940;",chevrons4:"&#xe940;","arrow-up":"&#xe941;",up8:"&#xe941;","arrow-down":"&#xe942;",down8:"&#xe942;","arrow-left":"&#xe943;",left9:"&#xe943;","arrow-right":"&#xe944;",right7:"&#xe944;","arrow-up-right":"&#xe945;","up-right":"&#xe945;","arrows-merge":"&#xe946;",up9:"&#xe946;","arrows-split":"&#xe947;",up10:"&#xe947;","arrow-divert":"&#xe948;",reflect:"&#xe948;","arrow-return":"&#xe949;",left10:"&#xe949;",expand:"&#xe94a;",maximize:"&#xe94a;",contract:"&#xe94b;",minimize:"&#xe94b;",expand2:"&#xe94c;",maximize2:"&#xe94c;",contract2:"&#xe94d;",minimize2:"&#xe94d;",move:"&#xe94e;",arrows:"&#xe94e;",tab:"&#xe94f;","switch":"&#xe94f;","arrow-wave":"&#xe950;",expand3:"&#xe951;",maximize3:"&#xe951;",expand4:"&#xe952;",maximize4:"&#xe952;",contract3:"&#xe953;",minimize3:"&#xe953;",notification:"&#xe954;",alert2:"&#xe954;",warning:"&#xe955;",alert3:"&#xe955;","notification-circle":"&#xe956;",alert4:"&#xe956;","question-circle":"&#xe957;",help3:"&#xe957;","menu-circle":"&#xe958;",menu4:"&#xe958;","checkmark-circle":"&#xe959;",checkmark2:"&#xe959;","cross-circle":"&#xe95a;",cross3:"&#xe95a;","plus-circle":"&#xe95b;",plus2:"&#xe95b;","circle-minus":"&#xe95c;",minus2:"&#xe95c;","percent-circle":"&#xe95d;",discount2:"&#xe95d;","arrow-up-circle":"&#xe95e;",up11:"&#xe95e;","arrow-down-circle":"&#xe95f;",down9:"&#xe95f;","arrow-left-circle":"&#xe960;",left11:"&#xe960;","arrow-right-circle":"&#xe961;",right8:"&#xe961;","chevron-up-circle":"&#xe962;",up12:"&#xe962;","chevron-down-circle":"&#xe963;",down10:"&#xe963;","chevron-left-circle":"&#xe964;",left12:"&#xe964;","chevron-right-circle":"&#xe965;",right9:"&#xe965;","backward-circle":"&#xe966;",backward3:"&#xe966;","first-circle":"&#xe967;",first:"&#xe967;","previous-circle":"&#xe968;",previous:"&#xe968;","stop-circle":"&#xe969;",stop:"&#xe969;","play-circle":"&#xe96a;",play2:"&#xe96a;","pause-circle":"&#xe96b;",pause:"&#xe96b;","next-circle":"&#xe96c;",next:"&#xe96c;","last-circle":"&#xe96d;",last:"&#xe96d;","forward-circle":"&#xe96e;",forward:"&#xe96e;","eject-circle":"&#xe96f;",eject:"&#xe96f;",crop:"&#xe970;",cut:"&#xe970;","frame-expand":"&#xe971;",maximize5:"&#xe971;","frame-contract":"&#xe972;",minimize4:"&#xe972;",focus:"&#xe973;",target2:"&#xe973;",transform:"&#xe974;","bounding-box":"&#xe974;",grid3:"&#xe975;",squares:"&#xe975;","grid-crossed":"&#xe976;",squares2:"&#xe976;",layers:"&#xe977;",stack3:"&#xe977;","layers-crossed":"&#xe978;",stack4:"&#xe978;",toggle4:"&#xe979;",fold:"&#xe979;",rulers:"&#xe97a;",tool14:"&#xe97a;",ruler:"&#xe97b;",tool15:"&#xe97b;",funnel:"&#xe97c;",filter:"&#xe97c;","flip-horizontal":"&#xe97d;",mirror:"&#xe97d;","flip-vertical":"&#xe97e;",mirror2:"&#xe97e;","flip-horizontal2":"&#xe97f;",mirror3:"&#xe97f;","flip-vertical2":"&#xe980;",mirror4:"&#xe980;",angle:"&#xe981;",measurement:"&#xe981;",angle2:"&#xe982;",measurement2:"&#xe982;",subtract2:"&#xe983;","boolean-operation":"&#xe983;",combine:"&#xe984;","boolean-operation2":"&#xe984;",intersect:"&#xe985;","boolean-operation3":"&#xe985;",exclude:"&#xe986;","boolean-operation4":"&#xe986;","align-center-vertical":"&#xe987;",align:"&#xe987;","align-right":"&#xe988;",align2:"&#xe988;","align-bottom":"&#xe989;",align3:"&#xe989;","align-left":"&#xe98a;",align4:"&#xe98a;","align-center-horizontal":"&#xe98b;",align5:"&#xe98b;","align-top":"&#xe98c;",align6:"&#xe98c;",square:"&#xe98d;",geometry2:"&#xe98d;","plus-square":"&#xe98e;",add2:"&#xe98e;","minus-square":"&#xe98f;",subtract3:"&#xe98f;","percent-square":"&#xe990;",discount3:"&#xe990;","arrow-up-square":"&#xe991;",up13:"&#xe991;","arrow-down-square":"&#xe992;",down11:"&#xe992;","arrow-left-square":"&#xe993;",left13:"&#xe993;","arrow-right-square":"&#xe994;",right10:"&#xe994;","chevron-up-square":"&#xe995;",up14:"&#xe995;","chevron-down-square":"&#xe996;",down12:"&#xe996;","chevron-left-square":"&#xe997;",left14:"&#xe997;","chevron-right-square":"&#xe998;",right11:"&#xe998;","check-square":"&#xe999;",checkmark3:"&#xe999;","cross-square":"&#xe99a;",cross4:"&#xe99a;","menu-square":"&#xe99b;",menu5:"&#xe99b;",prohibited:"&#xe99c;",forbidden:"&#xe99c;",circle:"&#xe99d;",geometry3:"&#xe99d;","radio-button":"&#xe99e;",ligature:"&#xe99f;",typography:"&#xe99f;","text-format":"&#xe9a0;",typography2:"&#xe9a0;","text-format-remove":"&#xe9a1;",typography3:"&#xe9a1;","text-size":"&#xe9a2;",typography4:"&#xe9a2;",bold:"&#xe9a3;",typography5:"&#xe9a3;",italic:"&#xe9a4;",typography6:"&#xe9a4;",underline:"&#xe9a5;",typography7:"&#xe9a5;",strikethrough:"&#xe9a6;",typography8:"&#xe9a6;",highlight:"&#xe9a7;","magic-marker":"&#xe9a7;","text-align-left":"&#xe9a8;",typography9:"&#xe9a8;","text-align-center":"&#xe9a9;",typography10:"&#xe9a9;","text-align-right":"&#xe9aa;",typography11:"&#xe9aa;","text-align-justify":"&#xe9ab;",typography12:"&#xe9ab;","line-spacing":"&#xe9ac;",typography13:"&#xe9ac;","indent-increase":"&#xe9ad;",typography14:"&#xe9ad;","indent-decrease":"&#xe9ae;",typography15:"&#xe9ae;","text-wrap":"&#xe9af;",typography16:"&#xe9af;",pilcrow:"&#xe9b0;",typography17:"&#xe9b0;","direction-ltr":"&#xe9b1;",typography18:"&#xe9b1;","direction-rtl":"&#xe9b2;",typography19:"&#xe9b2;","page-break":"&#xe9b3;","page-break2":"&#xe9b4;","sort-alpha-asc":"&#xe9b5;",sort:"&#xe9b5;","sort-alpha-desc":"&#xe9b6;",sort2:"&#xe9b6;","sort-numeric-asc":"&#xe9b7;",sort3:"&#xe9b7;","sort-numeric-desc":"&#xe9b8;",sort4:"&#xe9b8;","sort-amount-asc":"&#xe9b9;",sort5:"&#xe9b9;","sort-amount-desc":"&#xe9ba;",sort6:"&#xe9ba;","sort-time-asc":"&#xe9bb;",sort7:"&#xe9bb;","sort-time-desc":"&#xe9bc;",sort8:"&#xe9bc;",sigma:"&#xe9bd;",symbols:"&#xe9bd;","pencil-line":"&#xe9be;","border-color":"&#xe9be;",hand:"&#xe9bf;",drag:"&#xe9bf;","pointer-up":"&#xe9c0;",hand2:"&#xe9c0;","pointer-right":"&#xe9c1;",hand3:"&#xe9c1;","pointer-down":"&#xe9c2;",hand4:"&#xe9c2;","pointer-left":"&#xe9c3;",hand5:"&#xe9c3;","finger-tap":"&#xe9c4;",hand6:"&#xe9c4;","fingers-tap":"&#xe9c5;",hand7:"&#xe9c5;",reminder:"&#xe9c6;",hand8:"&#xe9c6;","fingers-crossed":"&#xe9c7;",hand9:"&#xe9c7;","fingers-victory":"&#xe9c8;",hand10:"&#xe9c8;","gesture-zoom":"&#xe9c9;",hand11:"&#xe9c9;","gesture-pinch":"&#xe9ca;",hand12:"&#xe9ca;","fingers-scroll-horizontal":"&#xe9cb;",hand13:"&#xe9cb;","fingers-scroll-vertical":"&#xe9cc;",hand14:"&#xe9cc;","fingers-scroll-left":"&#xe9cd;",hand15:"&#xe9cd;","fingers-scroll-right":"&#xe9ce;",hand16:"&#xe9ce;",hand17:"&#xe9cf;",drag2:"&#xe9cf;","pointer-up2":"&#xe9d0;",hand18:"&#xe9d0;","pointer-right2":"&#xe9d1;",hand19:"&#xe9d1;","pointer-down2":"&#xe9d2;",hand20:"&#xe9d2;","pointer-left2":"&#xe9d3;",hand21:"&#xe9d3;","finger-tap2":"&#xe9d4;",hand22:"&#xe9d4;","fingers-tap2":"&#xe9d5;",hand23:"&#xe9d5;",reminder2:"&#xe9d6;",hand24:"&#xe9d6;","gesture-zoom2":"&#xe9d7;",hand25:"&#xe9d7;","gesture-pinch2":"&#xe9d8;",hand26:"&#xe9d8;","fingers-scroll-horizontal2":"&#xe9d9;",hand27:"&#xe9d9;","fingers-scroll-vertical2":"&#xe9da;",hand28:"&#xe9da;","fingers-scroll-left2":"&#xe9db;",hand29:"&#xe9db;","fingers-scroll-right2":"&#xe9dc;",hand30:"&#xe9dc;","fingers-scroll-vertical3":"&#xe9dd;",hand31:"&#xe9dd;","border-style":"&#xe9de;",border:"&#xe9de;","border-all":"&#xe9df;",border2:"&#xe9df;","border-outer":"&#xe9e0;",border3:"&#xe9e0;","border-inner":"&#xe9e1;",border4:"&#xe9e1;","border-top":"&#xe9e2;",border5:"&#xe9e2;","border-horizontal":"&#xe9e3;",border6:"&#xe9e3;","border-bottom":"&#xe9e4;",border7:"&#xe9e4;","border-left":"&#xe9e5;",border8:"&#xe9e5;","border-vertical":"&#xe9e6;",border9:"&#xe9e6;","border-right":"&#xe9e7;",border10:"&#xe9e7;","border-none":"&#xe9e8;",border11:"&#xe9e8;",ellipsis:"&#xe9e9;",dots:"&#xe9e9;",0:0})[0],window.icomoonLiga=function(t){var e,r,f,i,u;for((t=t||document.getElementsByTagName("*")).length||(t=[t]),f=0;r=t[f];f+=1)if(e=r.className,/icon-/.test(e)&&(i=r.innerHTML)&&i.length>1){for(u in n)n.hasOwnProperty(u)&&(i=i.replace(new RegExp(u,"g"),n[u]));r.innerHTML=i}},window.icomoonLiga())}()